PeerTube/server/typings/models/video/video-import.ts

16 lines
751 B
TypeScript
Raw Normal View History

2019-08-15 11:53:26 +02:00
import { VideoImportModel } from '@server/models/video/video-import'
import { PickWith } from '@server/typings/utils'
import { MUser, MVideo, MVideoAccountLight, MVideoTag, MVideoThumbnail, MVideoWithFile } from '@server/typings/models'
export type MVideoImport = Omit<VideoImportModel, 'User' | 'Video'>
export type MVideoImportDefault = MVideoImport &
PickWith<VideoImportModel, 'User', MUser> &
PickWith<VideoImportModel, 'Video', MVideoTag & MVideoAccountLight & MVideoThumbnail>
export type MVideoImportDefaultFiles = MVideoImportDefault &
PickWith<VideoImportModel, 'Video', MVideoTag & MVideoAccountLight & MVideoThumbnail & MVideoWithFile>
export type MVideoImportVideo = MVideoImport &
PickWith<VideoImportModel, 'Video', MVideo>