aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/video-caption.ts
blob: fe0e664c2a7ea2247cb60210f50e2b37c12c4d7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { VideoCaptionModel } from '../../../models/video/video-caption'
import { PickWith } from '@server/typings/utils'
import { VideoModel } from '@server/models/video/video'

type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M>

// ############################################################################

export type MVideoCaption = Omit<VideoCaptionModel, 'Video'>

// ############################################################################

export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'>

export type MVideoCaptionVideo = MVideoCaption &
  Use<'Video', Pick<VideoModel, 'id' | 'remote' | 'uuid'>>