aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/types/models/video/schedule-video-update.ts
blob: 6336fdabe9c51f755e334801670574ecf591707b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                      
                                              




                                                                                                

                                                                          


                                                                               

                                          

                                                                 


                                                                                                
import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
import { PickWith } from '@server/types/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'>