2019-08-15 04:53:26 -05:00
|
|
|
import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
|
2019-11-15 08:06:03 -06:00
|
|
|
import { PickWith } from '@server/typings/utils'
|
|
|
|
import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'
|
|
|
|
|
|
|
|
type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>
|
|
|
|
|
|
|
|
// ############################################################################
|
2019-08-15 04:53:26 -05:00
|
|
|
|
|
|
|
export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
|
2019-08-20 12:05:31 -05:00
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-11-15 08:06:03 -06:00
|
|
|
export type MScheduleVideoUpdateVideoAll = MScheduleVideoUpdate &
|
|
|
|
Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
|
|
|
|
|
2019-08-20 12:05:31 -05:00
|
|
|
// Format for API or AP object
|
|
|
|
|
|
|
|
export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>
|