]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/job.model.ts
Fix internal videos in playlists
[github/Chocobozzz/PeerTube.git] / shared / models / server / job.model.ts
index 5ebb75a5c08ba74aed9172901c708b2d9032fd79..cf29d20d40098d05d828017df950512aafa78b5b 100644 (file)
@@ -1,17 +1,25 @@
-export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed'
+export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
 
-export type JobType = 'activitypub-http-unicast' |
-  'activitypub-http-broadcast' |
-  'activitypub-http-fetcher' |
-  'video-file' |
-  'email'
+export type JobType =
+  | 'activitypub-http-unicast'
+  | 'activitypub-http-broadcast'
+  | 'activitypub-http-fetcher'
+  | 'activitypub-follow'
+  | 'video-file-import'
+  | 'video-transcoding'
+  | 'email'
+  | 'video-import'
+  | 'videos-views'
+  | 'activitypub-refresher'
+  | 'video-redundancy'
 
 export interface Job {
   id: number
   state: JobState
   type: JobType
-  data: any,
-  error: any,
-  createdAt: Date
-  updatedAt: Date
+  data: any
+  error: any
+  createdAt: Date | string
+  finishedOn: Date | string
+  processedOn: Date | string
 }