2019-08-15 04:53:26 -05:00
|
|
|
import { VideoCaptionModel } from '../../../models/video/video-caption'
|
|
|
|
import { PickWith } from '@server/typings/utils'
|
|
|
|
import { VideoModel } from '@server/models/video/video'
|
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M>
|
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
export type MVideoCaption = Omit<VideoCaptionModel, 'Video'>
|
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'>
|
|
|
|
|
|
|
|
export type MVideoCaptionVideo = MVideoCaption &
|
2019-08-20 06:52:49 -05:00
|
|
|
Use<'Video', Pick<VideoModel, 'id' | 'remote' | 'uuid'>>
|