diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-22 14:35:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-22 16:25:14 +0100 |
commit | 1808a1f8e4b7b102823492a2007a46929aebf189 (patch) | |
tree | a345140ec9a7a20c222ace3cda18ac999277c8c3 /shared/models/server | |
parent | 348c2ce3ff3fe2f25a31f08bfb36c88723a0ce46 (diff) | |
download | PeerTube-1808a1f8e4b7b102823492a2007a46929aebf189.tar.gz PeerTube-1808a1f8e4b7b102823492a2007a46929aebf189.tar.zst PeerTube-1808a1f8e4b7b102823492a2007a46929aebf189.zip |
Add video edition finished notification
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/job.model.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index d81b72696..3b4855eaa 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { ContextType } from '../activitypub/context' | 1 | import { ContextType } from '../activitypub/context' |
2 | import { VideoState } from '../videos' | ||
2 | import { VideoEditorTaskCut } from '../videos/editor' | 3 | import { VideoEditorTaskCut } from '../videos/editor' |
3 | import { VideoResolution } from '../videos/file/video-resolution.enum' | 4 | import { VideoResolution } from '../videos/file/video-resolution.enum' |
4 | import { SendEmailOptions } from './emailer.model' | 5 | import { SendEmailOptions } from './emailer.model' |
@@ -116,6 +117,9 @@ export type ManageVideoTorrentPayload = | |||
116 | interface BaseTranscodingPayload { | 117 | interface BaseTranscodingPayload { |
117 | videoUUID: string | 118 | videoUUID: string |
118 | isNewVideo?: boolean | 119 | isNewVideo?: boolean |
120 | |||
121 | // Custom notification when the task is finished | ||
122 | notification?: 'default' | 'video-edition' | ||
119 | } | 123 | } |
120 | 124 | ||
121 | export interface HLSTranscodingPayload extends BaseTranscodingPayload { | 125 | export interface HLSTranscodingPayload extends BaseTranscodingPayload { |
@@ -171,6 +175,7 @@ export interface DeleteResumableUploadMetaFilePayload { | |||
171 | export interface MoveObjectStoragePayload { | 175 | export interface MoveObjectStoragePayload { |
172 | videoUUID: string | 176 | videoUUID: string |
173 | isNewVideo: boolean | 177 | isNewVideo: boolean |
178 | previousVideoState: VideoState | ||
174 | } | 179 | } |
175 | 180 | ||
176 | export type VideoEditorTaskCutPayload = VideoEditorTaskCut | 181 | export type VideoEditorTaskCutPayload = VideoEditorTaskCut |