schedule-video-update.ts 810 B

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