aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/schedule-video-update.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/types/models/video/schedule-video-update.ts')
-rw-r--r--server/types/models/video/schedule-video-update.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/types/models/video/schedule-video-update.ts b/server/types/models/video/schedule-video-update.ts
new file mode 100644
index 000000000..6336fdabe
--- /dev/null
+++ b/server/types/models/video/schedule-video-update.ts
@@ -0,0 +1,19 @@
1import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
2import { PickWith } from '@server/types/utils'
3import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'
4
5type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>
6
7// ############################################################################
8
9export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
10
11// ############################################################################
12
13export type MScheduleVideoUpdateVideoAll =
14 MScheduleVideoUpdate &
15 Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
16
17// Format for API or AP object
18
19export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>