diff options
Diffstat (limited to 'server/typings/models/video/video-file.ts')
-rw-r--r-- | server/typings/models/video/video-file.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/typings/models/video/video-file.ts b/server/typings/models/video/video-file.ts new file mode 100644 index 000000000..afa659d1f --- /dev/null +++ b/server/typings/models/video/video-file.ts | |||
@@ -0,0 +1,15 @@ | |||
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' | ||
5 | |||
6 | export type MVideoFile = Omit<VideoFileModel, 'Video' | 'RedundancyVideos'> | ||
7 | |||
8 | export type MVideoFileVideo = MVideoFile & | ||
9 | PickWith<VideoFileModel, 'Video', MVideo> | ||
10 | |||
11 | export type MVideoFileVideoUUID = MVideoFile & | ||
12 | PickWith<VideoFileModel, 'Video', MVideoUUID> | ||
13 | |||
14 | export type MVideoFileRedundanciesOpt = MVideoFile & | ||
15 | PickWithOpt<VideoFileModel, 'RedundancyVideos', MVideoRedundancyFileUrl[]> | ||