2019-08-15 11:53:26 +02:00
|
|
|
import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
|
2019-11-15 15:06:03 +01: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 11:53:26 +02:00
|
|
|
|
|
|
|
export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
|
2019-08-20 19:05:31 +02:00
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-11-15 15:06:03 +01:00
|
|
|
export type MScheduleVideoUpdateVideoAll = MScheduleVideoUpdate &
|
|
|
|
Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
|
|
|
|
|
2019-08-20 19:05:31 +02:00
|
|
|
// Format for API or AP object
|
|
|
|
|
|
|
|
export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>
|