diff options
Diffstat (limited to 'server/typings/models')
-rw-r--r-- | server/typings/models/video/video-caption.ts | 1 | ||||
-rw-r--r-- | server/typings/models/video/video.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/server/typings/models/video/video-caption.ts b/server/typings/models/video/video-caption.ts index ffa56f544..eeddedb40 100644 --- a/server/typings/models/video/video-caption.ts +++ b/server/typings/models/video/video-caption.ts | |||
@@ -11,6 +11,7 @@ export type MVideoCaption = Omit<VideoCaptionModel, 'Video'> | |||
11 | // ############################################################################ | 11 | // ############################################################################ |
12 | 12 | ||
13 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> | 13 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> |
14 | export type MVideoCaptionLanguageUrl = Pick<MVideoCaption, 'language' | 'fileUrl' | 'getFileUrl'> | ||
14 | 15 | ||
15 | export type MVideoCaptionVideo = MVideoCaption & | 16 | export type MVideoCaptionVideo = MVideoCaption & |
16 | Use<'Video', Pick<MVideo, 'id' | 'remote' | 'uuid'>> | 17 | Use<'Video', Pick<MVideo, 'id' | 'remote' | 'uuid'>> |
diff --git a/server/typings/models/video/video.ts b/server/typings/models/video/video.ts index bcc5e5028..82d76f40c 100644 --- a/server/typings/models/video/video.ts +++ b/server/typings/models/video/video.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | MChannelUserId | 9 | MChannelUserId |
10 | } from './video-channels' | 10 | } from './video-channels' |
11 | import { MTag } from './tag' | 11 | import { MTag } from './tag' |
12 | import { MVideoCaptionLanguage } from './video-caption' | 12 | import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' |
13 | import { | 13 | import { |
14 | MStreamingPlaylistFiles, | 14 | MStreamingPlaylistFiles, |
15 | MStreamingPlaylistRedundancies, | 15 | MStreamingPlaylistRedundancies, |
@@ -140,7 +140,7 @@ export type MVideoAP = MVideo & | |||
140 | Use<'Tags', MTag[]> & | 140 | Use<'Tags', MTag[]> & |
141 | Use<'VideoChannel', MChannelAccountLight> & | 141 | Use<'VideoChannel', MChannelAccountLight> & |
142 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & | 142 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & |
143 | Use<'VideoCaptions', MVideoCaptionLanguage[]> & | 143 | Use<'VideoCaptions', MVideoCaptionLanguageUrl[]> & |
144 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & | 144 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & |
145 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & | 145 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & |
146 | Use<'Thumbnails', MThumbnail[]> | 146 | Use<'Thumbnails', MThumbnail[]> |