aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/models/job.model.ts10
-rw-r--r--shared/models/users/user-right.enum.ts1
-rw-r--r--shared/models/users/user-role.ts1
3 files changed, 12 insertions, 0 deletions
diff --git a/shared/models/job.model.ts b/shared/models/job.model.ts
index 10696e3f8..1c46a7900 100644
--- a/shared/models/job.model.ts
+++ b/shared/models/job.model.ts
@@ -1,2 +1,12 @@
1export type JobState = 'pending' | 'processing' | 'error' | 'success' 1export type JobState = 'pending' | 'processing' | 'error' | 'success'
2export type JobCategory = 'transcoding' | 'activitypub-http' 2export type JobCategory = 'transcoding' | 'activitypub-http'
3
4export interface Job {
5 id: number
6 state: JobState
7 category: JobCategory
8 handlerName: string
9 handlerInputData: any
10 createdAt: Date
11 updatedAt: Date
12}
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts
index 9460b668e..238e38a36 100644
--- a/shared/models/users/user-right.enum.ts
+++ b/shared/models/users/user-right.enum.ts
@@ -4,6 +4,7 @@ export enum UserRight {
4 MANAGE_SERVER_FOLLOW, 4 MANAGE_SERVER_FOLLOW,
5 MANAGE_VIDEO_ABUSES, 5 MANAGE_VIDEO_ABUSES,
6 MANAGE_VIDEO_BLACKLIST, 6 MANAGE_VIDEO_BLACKLIST,
7 MANAGE_JOBS,
7 REMOVE_ANY_VIDEO, 8 REMOVE_ANY_VIDEO,
8 REMOVE_ANY_VIDEO_CHANNEL 9 REMOVE_ANY_VIDEO_CHANNEL
9} 10}
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts
index cc32c768d..954fa426e 100644
--- a/shared/models/users/user-role.ts
+++ b/shared/models/users/user-role.ts
@@ -1,4 +1,5 @@
1import { UserRight } from './user-right.enum' 1import { UserRight } from './user-right.enum'
2import user from '../../../server/models/account/user'
2 3
3// Keep the order 4// Keep the order
4export enum UserRole { 5export enum UserRole {