aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos')
-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
4 files changed, 29 insertions, 0 deletions
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}