diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/server/job.model.ts | 17 |
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 | ||
29 | export interface Job { | 31 | export 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 | |||
222 | export type NotifyPayload = | ||
223 | { | ||
224 | action: 'new-video' | ||
225 | videoUUID: string | ||
226 | } | ||
227 | |||
228 | // --------------------------------------------------------------------------- | ||
229 | |||
230 | export interface FederateVideoPayload { | ||
231 | videoUUID: string | ||
232 | isNewVideo: boolean | ||
233 | } | ||