diff options
Diffstat (limited to 'server/types')
-rw-r--r-- | server/types/models/video/video.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index 3d8f85b3d..ae23cc30f 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts | |||
@@ -21,6 +21,7 @@ import { MThumbnail } from './thumbnail' | |||
21 | import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist' | 21 | import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist' |
22 | import { MScheduleVideoUpdate } from './schedule-video-update' | 22 | import { MScheduleVideoUpdate } from './schedule-video-update' |
23 | import { MUserVideoHistoryTime } from '../user/user-video-history' | 23 | import { MUserVideoHistoryTime } from '../user/user-video-history' |
24 | import { MVideoLive } from './video-live' | ||
24 | 25 | ||
25 | type Use<K extends keyof VideoModel, M> = PickWith<VideoModel, K, M> | 26 | type Use<K extends keyof VideoModel, M> = PickWith<VideoModel, K, M> |
26 | 27 | ||
@@ -29,7 +30,7 @@ type Use<K extends keyof VideoModel, M> = PickWith<VideoModel, K, M> | |||
29 | export type MVideo = | 30 | export type MVideo = |
30 | Omit<VideoModel, 'VideoChannel' | 'Tags' | 'Thumbnails' | 'VideoPlaylistElements' | 'VideoAbuses' | | 31 | Omit<VideoModel, 'VideoChannel' | 'Tags' | 'Thumbnails' | 'VideoPlaylistElements' | 'VideoAbuses' | |
31 | 'VideoFiles' | 'VideoStreamingPlaylists' | 'VideoShares' | 'AccountVideoRates' | 'VideoComments' | 'VideoViews' | 'UserVideoHistories' | | 32 | 'VideoFiles' | 'VideoStreamingPlaylists' | 'VideoShares' | 'AccountVideoRates' | 'VideoComments' | 'VideoViews' | 'UserVideoHistories' | |
32 | 'ScheduleVideoUpdate' | 'VideoBlacklist' | 'VideoImport' | 'VideoCaptions'> | 33 | 'ScheduleVideoUpdate' | 'VideoBlacklist' | 'VideoImport' | 'VideoCaptions' | 'VideoLive'> |
33 | 34 | ||
34 | // ############################################################################ | 35 | // ############################################################################ |
35 | 36 | ||
@@ -151,7 +152,8 @@ export type MVideoFullLight = | |||
151 | Use<'UserVideoHistories', MUserVideoHistoryTime[]> & | 152 | Use<'UserVideoHistories', MUserVideoHistoryTime[]> & |
152 | Use<'VideoFiles', MVideoFile[]> & | 153 | Use<'VideoFiles', MVideoFile[]> & |
153 | Use<'ScheduleVideoUpdate', MScheduleVideoUpdate> & | 154 | Use<'ScheduleVideoUpdate', MScheduleVideoUpdate> & |
154 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> | 155 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & |
156 | Use<'VideoLive', MVideoLive> | ||
155 | 157 | ||
156 | // ############################################################################ | 158 | // ############################################################################ |
157 | 159 | ||
@@ -165,7 +167,8 @@ export type MVideoAP = | |||
165 | Use<'VideoCaptions', MVideoCaptionLanguageUrl[]> & | 167 | Use<'VideoCaptions', MVideoCaptionLanguageUrl[]> & |
166 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & | 168 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & |
167 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & | 169 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & |
168 | Use<'Thumbnails', MThumbnail[]> | 170 | Use<'Thumbnails', MThumbnail[]> & |
171 | Use<'VideoLive', MVideoLive> | ||
169 | 172 | ||
170 | export type MVideoAPWithoutCaption = Omit<MVideoAP, 'VideoCaptions'> | 173 | export type MVideoAPWithoutCaption = Omit<MVideoAP, 'VideoCaptions'> |
171 | 174 | ||