aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/users/user-right.enum.ts3
-rw-r--r--shared/models/videos/index.ts2
-rw-r--r--shared/models/videos/video-change-ownership-accept.model.ts3
-rw-r--r--shared/models/videos/video-change-ownership-create.model.ts3
-rw-r--r--shared/models/videos/video-change-ownership.model.ts21
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'
11export * from './channel/video-channel-create.model' 11export * from './channel/video-channel-create.model'
12export * from './channel/video-channel-update.model' 12export * from './channel/video-channel-update.model'
13export * from './channel/video-channel.model' 13export * from './channel/video-channel.model'
14export * from './video-change-ownership.model'
15export * from './video-change-ownership-create.model'
14export * from './video-create.model' 16export * from './video-create.model'
15export * from './video-privacy.enum' 17export * from './video-privacy.enum'
16export * from './video-rate.type' 18export * 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 @@
1export 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 @@
1export 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 @@
1import { Account } from '../actors'
2
3export 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
17export enum VideoChangeOwnershipStatus {
18 WAITING = 'WAITING',
19 ACCEPTED = 'ACCEPTED',
20 REFUSED = 'REFUSED'
21}