From 2baea0c77cc765f7cbca9c9a2f4272268892a35c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Jun 2018 18:06:56 +0200 Subject: Add ability for uploaders to schedule video update --- shared/models/videos/video-create.model.ts | 4 ++++ shared/models/videos/video-update.model.ts | 4 ++++ shared/models/videos/video.model.ts | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'shared') 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 { tags?: string[] commentsEnabled?: boolean privacy: VideoPrivacy + scheduleUpdate?: { + updateAt: Date + privacy?: VideoPrivacy.PUBLIC | VideoPrivacy.UNLISTED + } } 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 { channelId?: number thumbnailfile?: Blob previewfile?: Blob + scheduleUpdate?: { + updateAt: Date + privacy?: VideoPrivacy + } } 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 { waitTranscoding?: boolean state?: VideoConstant + scheduledUpdate?: { + updateAt: Date | string + privacy?: VideoPrivacy + } account: { id: number -- cgit v1.2.3