1 import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
2 import { PickWith } from '@server/typings/utils'
3 import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'
5 type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>
7 // ############################################################################
9 export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
11 // ############################################################################
13 export type MScheduleVideoUpdateVideoAll = MScheduleVideoUpdate &
14 Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
16 // Format for API or AP object
18 export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>