aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/change-ownership
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-11 11:27:40 +0200
committerChocobozzz <me@florianbigard.com>2021-05-11 11:32:31 +0200
commit2b02c520e66ea452687cab39401b371711caa9ed (patch)
treeecc216ee5a7453384ee1aad6e3a825b1c058f001 /shared/models/videos/change-ownership
parent7d9ba5c08999c6482f0bc5e0c09c6f55b7724090 (diff)
downloadPeerTube-2b02c520e66ea452687cab39401b371711caa9ed.tar.gz
PeerTube-2b02c520e66ea452687cab39401b371711caa9ed.tar.zst
PeerTube-2b02c520e66ea452687cab39401b371711caa9ed.zip
Cleanup shared models
Diffstat (limited to 'shared/models/videos/change-ownership')
-rw-r--r--shared/models/videos/change-ownership/index.ts3
-rw-r--r--shared/models/videos/change-ownership/video-change-ownership-accept.model.ts3
-rw-r--r--shared/models/videos/change-ownership/video-change-ownership-create.model.ts3
-rw-r--r--shared/models/videos/change-ownership/video-change-ownership.model.ts17
4 files changed, 26 insertions, 0 deletions
diff --git a/shared/models/videos/change-ownership/index.ts b/shared/models/videos/change-ownership/index.ts
new file mode 100644
index 000000000..a942fb2cd
--- /dev/null
+++ b/shared/models/videos/change-ownership/index.ts
@@ -0,0 +1,3 @@
1export * from './video-change-ownership-accept.model'
2export * from './video-change-ownership-create.model'
3export * from './video-change-ownership.model'
diff --git a/shared/models/videos/change-ownership/video-change-ownership-accept.model.ts b/shared/models/videos/change-ownership/video-change-ownership-accept.model.ts
new file mode 100644
index 000000000..f27247633
--- /dev/null
+++ b/shared/models/videos/change-ownership/video-change-ownership-accept.model.ts
@@ -0,0 +1,3 @@
1export interface VideoChangeOwnershipAccept {
2 channelId: number
3}
diff --git a/shared/models/videos/change-ownership/video-change-ownership-create.model.ts b/shared/models/videos/change-ownership/video-change-ownership-create.model.ts
new file mode 100644
index 000000000..40fcca285
--- /dev/null
+++ b/shared/models/videos/change-ownership/video-change-ownership-create.model.ts
@@ -0,0 +1,3 @@
1export interface VideoChangeOwnershipCreate {
2 username: string
3}
diff --git a/shared/models/videos/change-ownership/video-change-ownership.model.ts b/shared/models/videos/change-ownership/video-change-ownership.model.ts
new file mode 100644
index 000000000..3d31cad0a
--- /dev/null
+++ b/shared/models/videos/change-ownership/video-change-ownership.model.ts
@@ -0,0 +1,17 @@
1import { Account } from '../../actors'
2import { Video } from '../video.model'
3
4export interface VideoChangeOwnership {
5 id: number
6 status: VideoChangeOwnershipStatus
7 initiatorAccount: Account
8 nextOwnerAccount: Account
9 video: Video
10 createdAt: Date
11}
12
13export const enum VideoChangeOwnershipStatus {
14 WAITING = 'WAITING',
15 ACCEPTED = 'ACCEPTED',
16 REFUSED = 'REFUSED'
17}