X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fmodels%2Fvideo%2Fvideo.ts;h=d1af53b92dd79ec72c738d907abb595677153114;hb=0582b4f972a72c2297676faf1e574f817a5712f9;hp=5225fbce5f959d2a289021bdeea30779c7a2784f;hpb=d7df188f23bb3c4773ac26e6fa8b3d82b1229e6d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index 5225fbce5..d1af53b92 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts @@ -1,4 +1,4 @@ -import { PickWith, PickWithOpt } from '@shared/core-utils' +import { PickWith, PickWithOpt } from '@shared/typescript-utils' import { VideoModel } from '../../../models/video/video' import { MTrackerUrl } from '../server/tracker' import { MUserVideoHistoryTime } from '../user/user-video-history' @@ -32,7 +32,7 @@ type Use = PickWith export type MVideo = Omit + 'ScheduleVideoUpdate' | 'VideoBlacklist' | 'VideoImport' | 'VideoCaptions' | 'VideoLive' | 'Trackers'> // ############################################################################ @@ -186,7 +186,8 @@ export type MVideoDetails = Use<'Thumbnails', MThumbnail[]> & Use<'UserVideoHistories', MUserVideoHistoryTime[]> & Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundancies[]> & - Use<'VideoFiles', MVideoFileRedundanciesOpt[]> + Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & + Use<'Trackers', MTrackerUrl[]> export type MVideoForUser = MVideo & @@ -209,7 +210,9 @@ export type MVideoFormattable = PickWithOpt & Use<'VideoChannel', MChannelAccountSummaryFormattable> & PickWithOpt> & - PickWithOpt> + PickWithOpt> & + PickWithOpt & + PickWithOpt export type MVideoFormattableDetails = MVideoFormattable & @@ -217,4 +220,4 @@ export type MVideoFormattableDetails = Use<'Tags', MTag[]> & Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & - Use<'Trackers', MTrackerUrl[]> + PickWithOpt