1 import { VideoFileModel } from '../../../models/video/video-file'
2 import { PickWith, PickWithOpt } from '../../utils'
3 import { MVideo, MVideoUUID } from './video'
4 import { MVideoRedundancyFileUrl } from './video-redundancy'
6 type Use<K extends keyof VideoFileModel, M> = PickWith<VideoFileModel, K, M>
8 // ############################################################################
10 export type MVideoFile = Omit<VideoFileModel, 'Video' | 'RedundancyVideos'>
12 export type MVideoFileVideo = MVideoFile &
15 export type MVideoFileVideoUUID = MVideoFile &
16 Use<'Video', MVideoUUID>
18 export type MVideoFileRedundanciesOpt = MVideoFile &
19 PickWithOpt<VideoFileModel, 'RedundancyVideos', MVideoRedundancyFileUrl[]>