aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/types/models/video/video.ts')
-rw-r--r--server/types/models/video/video.ts23
1 files changed, 14 insertions, 9 deletions
diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts
index ae23cc30f..92dcbaf59 100644
--- a/server/types/models/video/video.ts
+++ b/server/types/models/video/video.ts
@@ -1,27 +1,28 @@
1import { VideoModel } from '../../../models/video/video'
2import { PickWith, PickWithOpt } from '@shared/core-utils' 1import { PickWith, PickWithOpt } from '@shared/core-utils'
2import { VideoModel } from '../../../models/video/video'
3import { MUserVideoHistoryTime } from '../user/user-video-history'
4import { MScheduleVideoUpdate } from './schedule-video-update'
5import { MTag } from './tag'
6import { MThumbnail } from './thumbnail'
7import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist'
8import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption'
3import { 9import {
4 MChannelAccountDefault, 10 MChannelAccountDefault,
5 MChannelAccountLight, 11 MChannelAccountLight,
6 MChannelAccountSummaryFormattable, 12 MChannelAccountSummaryFormattable,
7 MChannelActor, 13 MChannelActor,
8 MChannelFormattable, 14 MChannelFormattable,
15 MChannelHost,
9 MChannelUserId 16 MChannelUserId
10} from './video-channels' 17} from './video-channels'
11import { MTag } from './tag' 18import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file'
12import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' 19import { MVideoLive } from './video-live'
13import { 20import {
14 MStreamingPlaylistFiles, 21 MStreamingPlaylistFiles,
15 MStreamingPlaylistRedundancies, 22 MStreamingPlaylistRedundancies,
16 MStreamingPlaylistRedundanciesAll, 23 MStreamingPlaylistRedundanciesAll,
17 MStreamingPlaylistRedundanciesOpt 24 MStreamingPlaylistRedundanciesOpt
18} from './video-streaming-playlist' 25} from './video-streaming-playlist'
19import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file'
20import { MThumbnail } from './thumbnail'
21import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist'
22import { MScheduleVideoUpdate } from './schedule-video-update'
23import { MUserVideoHistoryTime } from '../user/user-video-history'
24import { MVideoLive } from './video-live'
25 26
26type Use<K extends keyof VideoModel, M> = PickWith<VideoModel, K, M> 27type Use<K extends keyof VideoModel, M> = PickWith<VideoModel, K, M>
27 28
@@ -143,6 +144,10 @@ export type MVideoWithChannelActor =
143 MVideo & 144 MVideo &
144 Use<'VideoChannel', MChannelActor> 145 Use<'VideoChannel', MChannelActor>
145 146
147export type MVideoWithHost =
148 MVideo &
149 Use<'VideoChannel', MChannelHost>
150
146export type MVideoFullLight = 151export type MVideoFullLight =
147 MVideo & 152 MVideo &
148 Use<'Thumbnails', MThumbnail[]> & 153 Use<'Thumbnails', MThumbnail[]> &