aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/schedule-video-update.ts
blob: 95a53d13968a1da7f361b6728e8f00150adc86e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
import { PickWith } from '@server/typings/utils'
import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'

type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>

// ############################################################################

export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>

// ############################################################################

export type MScheduleVideoUpdateVideoAll =
  MScheduleVideoUpdate &
  Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>

// Format for API or AP object

export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>