diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user-right.enum.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/index.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/video-change-ownership-accept.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/video-change-ownership-create.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/video-change-ownership.model.ts | 21 |
5 files changed, 31 insertions, 1 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 142a0474b..64ad3e9b9 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -12,5 +12,6 @@ export enum UserRight { | |||
12 | REMOVE_ANY_VIDEO, | 12 | REMOVE_ANY_VIDEO, |
13 | REMOVE_ANY_VIDEO_CHANNEL, | 13 | REMOVE_ANY_VIDEO_CHANNEL, |
14 | REMOVE_ANY_VIDEO_COMMENT, | 14 | REMOVE_ANY_VIDEO_COMMENT, |
15 | UPDATE_ANY_VIDEO | 15 | UPDATE_ANY_VIDEO, |
16 | CHANGE_VIDEO_OWNERSHIP | ||
16 | } | 17 | } |
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts index f1a3d52e1..90a0e3053 100644 --- a/shared/models/videos/index.ts +++ b/shared/models/videos/index.ts | |||
@@ -11,6 +11,8 @@ export * from './blacklist/video-blacklist-update.model' | |||
11 | export * from './channel/video-channel-create.model' | 11 | export * from './channel/video-channel-create.model' |
12 | export * from './channel/video-channel-update.model' | 12 | export * from './channel/video-channel-update.model' |
13 | export * from './channel/video-channel.model' | 13 | export * from './channel/video-channel.model' |
14 | export * from './video-change-ownership.model' | ||
15 | export * from './video-change-ownership-create.model' | ||
14 | export * from './video-create.model' | 16 | export * from './video-create.model' |
15 | export * from './video-privacy.enum' | 17 | export * from './video-privacy.enum' |
16 | export * from './video-rate.type' | 18 | export * from './video-rate.type' |
diff --git a/shared/models/videos/video-change-ownership-accept.model.ts b/shared/models/videos/video-change-ownership-accept.model.ts new file mode 100644 index 000000000..f27247633 --- /dev/null +++ b/shared/models/videos/video-change-ownership-accept.model.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export interface VideoChangeOwnershipAccept { | ||
2 | channelId: number | ||
3 | } | ||
diff --git a/shared/models/videos/video-change-ownership-create.model.ts b/shared/models/videos/video-change-ownership-create.model.ts new file mode 100644 index 000000000..40fcca285 --- /dev/null +++ b/shared/models/videos/video-change-ownership-create.model.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export interface VideoChangeOwnershipCreate { | ||
2 | username: string | ||
3 | } | ||
diff --git a/shared/models/videos/video-change-ownership.model.ts b/shared/models/videos/video-change-ownership.model.ts new file mode 100644 index 000000000..0d735c798 --- /dev/null +++ b/shared/models/videos/video-change-ownership.model.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import { Account } from '../actors' | ||
2 | |||
3 | export interface VideoChangeOwnership { | ||
4 | id: number | ||
5 | status: VideoChangeOwnershipStatus | ||
6 | initiatorAccount: Account | ||
7 | nextOwnerAccount: Account | ||
8 | video: { | ||
9 | id: number | ||
10 | name: string | ||
11 | uuid: string | ||
12 | url: string | ||
13 | } | ||
14 | createdAt: Date | ||
15 | } | ||
16 | |||
17 | export enum VideoChangeOwnershipStatus { | ||
18 | WAITING = 'WAITING', | ||
19 | ACCEPTED = 'ACCEPTED', | ||
20 | REFUSED = 'REFUSED' | ||
21 | } | ||