aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-14 18:06:56 +0200
committerChocobozzz <me@florianbigard.com>2018-06-14 18:06:56 +0200
commit2baea0c77cc765f7cbca9c9a2f4272268892a35c (patch)
tree47b1be5535439409a97eb80c0222c9c821b83dae /shared
parentbf079b7bfd7f0fb75ceb28e333bb4b74d8840dd4 (diff)
downloadPeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.tar.gz
PeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.tar.zst
PeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.zip
Add ability for uploaders to schedule video update
Diffstat (limited to 'shared')
-rw-r--r--shared/models/videos/video-create.model.ts4
-rw-r--r--shared/models/videos/video-update.model.ts4
-rw-r--r--shared/models/videos/video.model.ts4
3 files changed, 12 insertions, 0 deletions
diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts
index 2a1f622f6..531eafe54 100644
--- a/shared/models/videos/video-create.model.ts
+++ b/shared/models/videos/video-create.model.ts
@@ -13,4 +13,8 @@ export interface VideoCreate {
13 tags?: string[] 13 tags?: string[]
14 commentsEnabled?: boolean 14 commentsEnabled?: boolean
15 privacy: VideoPrivacy 15 privacy: VideoPrivacy
16 scheduleUpdate?: {
17 updateAt: Date
18 privacy?: VideoPrivacy.PUBLIC | VideoPrivacy.UNLISTED
19 }
16} 20}
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts
index 681b00b18..fc0df6810 100644
--- a/shared/models/videos/video-update.model.ts
+++ b/shared/models/videos/video-update.model.ts
@@ -15,4 +15,8 @@ export interface VideoUpdate {
15 channelId?: number 15 channelId?: number
16 thumbnailfile?: Blob 16 thumbnailfile?: Blob
17 previewfile?: Blob 17 previewfile?: Blob
18 scheduleUpdate?: {
19 updateAt: Date
20 privacy?: VideoPrivacy
21 }
18} 22}
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 857ca1fd9..676354ce3 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -43,6 +43,10 @@ export interface Video {
43 43
44 waitTranscoding?: boolean 44 waitTranscoding?: boolean
45 state?: VideoConstant<VideoState> 45 state?: VideoConstant<VideoState>
46 scheduledUpdate?: {
47 updateAt: Date | string
48 privacy?: VideoPrivacy
49 }
46 50
47 account: { 51 account: {
48 id: number 52 id: number