diff options
Diffstat (limited to 'shared/models/server/job.model.ts')
-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 new file mode 100644 index 000000000..5ebb75a5c --- /dev/null +++ b/shared/models/server/job.model.ts | |||
@@ -0,0 +1,17 @@ | |||
1 | export type JobState = 'active' | 'complete' | 'failed' | 'inactive' | 'delayed' | ||
2 | |||
3 | export type JobType = 'activitypub-http-unicast' | | ||
4 | 'activitypub-http-broadcast' | | ||
5 | 'activitypub-http-fetcher' | | ||
6 | 'video-file' | | ||
7 | 'email' | ||
8 | |||
9 | export interface Job { | ||
10 | id: number | ||
11 | state: JobState | ||
12 | type: JobType | ||
13 | data: any, | ||
14 | error: any, | ||
15 | createdAt: Date | ||
16 | updatedAt: Date | ||
17 | } | ||