X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fmodels%2Fvideo%2Fvideo.ts;h=58ae7baad3043804c96deb625878e1153ba4e3e8;hb=64aa66c4a61e1c6aa83a775e7af498e288ea82e4;hp=692490230bcfa6b611e6be294f5bdc1fe24b3644;hpb=d9a2a03196275065c28f4a0b7d4d7bc9992d77a1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index 692490230..58ae7baad 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' @@ -13,7 +13,7 @@ import { MChannelAccountSummaryFormattable, MChannelActor, MChannelFormattable, - MChannelHost, + MChannelHostOnly, MChannelUserId } from './video-channels' import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file' @@ -32,7 +32,7 @@ type Use = PickWith export type MVideo = Omit + 'ScheduleVideoUpdate' | 'VideoBlacklist' | 'VideoImport' | 'VideoCaptions' | 'VideoLive' | 'Trackers'> // ############################################################################ @@ -107,7 +107,6 @@ export type MVideoAccountLight = export type MVideoWithRights = MVideo & Use<'VideoBlacklist', MVideoBlacklistLight> & - Use<'Thumbnails', MThumbnail[]> & Use<'VideoChannel', MChannelUserId> // ############################################################################ @@ -147,7 +146,7 @@ export type MVideoWithChannelActor = export type MVideoWithHost = MVideo & - Use<'VideoChannel', MChannelHost> + Use<'VideoChannel', MChannelHostOnly> export type MVideoFullLight = MVideo & @@ -187,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 & @@ -210,7 +210,9 @@ export type MVideoFormattable = PickWithOpt & Use<'VideoChannel', MChannelAccountSummaryFormattable> & PickWithOpt> & - PickWithOpt> + PickWithOpt> & + PickWithOpt & + PickWithOpt export type MVideoFormattableDetails = MVideoFormattable & @@ -218,4 +220,4 @@ export type MVideoFormattableDetails = Use<'Tags', MTag[]> & Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & - Use<'Trackers', MTrackerUrl[]> + PickWithOpt