aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-08 15:48:17 +0200
committerChocobozzz <me@florianbigard.com>2022-08-09 09:18:07 +0200
commitbd911b54b555b11df7e9849cf92d358bccfecf6e (patch)
tree23e94b4acbe6819fedc1cb5e067b700cbdd880c3 /shared
parent5a921e7b74910414626bfc9672b857e987e3ebed (diff)
downloadPeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.tar.gz
PeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.tar.zst
PeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.zip
Use bullmq job dependency
Diffstat (limited to 'shared')
-rw-r--r--shared/models/server/job.model.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts
index a924183f2..8c8f64de9 100644
--- a/shared/models/server/job.model.ts
+++ b/shared/models/server/job.model.ts
@@ -25,6 +25,8 @@ export type JobType =
25 | 'manage-video-torrent' 25 | 'manage-video-torrent'
26 | 'move-to-object-storage' 26 | 'move-to-object-storage'
27 | 'video-studio-edition' 27 | 'video-studio-edition'
28 | 'notify'
29 | 'federate-video'
28 30
29export interface Job { 31export interface Job {
30 id: number | string 32 id: number | string
@@ -214,3 +216,18 @@ export interface VideoStudioEditionPayload {
214 videoUUID: string 216 videoUUID: string
215 tasks: VideoStudioTaskPayload[] 217 tasks: VideoStudioTaskPayload[]
216} 218}
219
220// ---------------------------------------------------------------------------
221
222export type NotifyPayload =
223 {
224 action: 'new-video'
225 videoUUID: string
226 }
227
228// ---------------------------------------------------------------------------
229
230export interface FederateVideoPayload {
231 videoUUID: string
232 isNewVideo: boolean
233}