]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/job.model.ts
Add nsfw support in import-videos
[github/Chocobozzz/PeerTube.git] / shared / models / job.model.ts
index 10696e3f899b92d51d6d68579a4dd14804ccf99a..5ebb75a5c08ba74aed9172901c708b2d9032fd79 100644 (file)
@@ -1,2 +1,17 @@
-export type JobState = 'pending' | 'processing' | 'error' | 'success'
-export type JobCategory = 'transcoding' | 'activitypub-http'
+export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed'
+
+export type JobType = 'activitypub-http-unicast' |
+  'activitypub-http-broadcast' |
+  'activitypub-http-fetcher' |
+  'video-file' |
+  'email'
+
+export interface Job {
+  id: number
+  state: JobState
+  type: JobType
+  data: any,
+  error: any,
+  createdAt: Date
+  updatedAt: Date
+}