X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypings%2Fmodels%2Fvideo%2Fvideo-redundancy.ts;h=5107aa7f4034d22de40e60bc09856b5a466f5c87;hb=a15871560f80e07386c1dabb8370cd2664ecfd1f;hp=25bdac057e5d29aa2b469cb878ada176190bbf32;hpb=a22046d166805222ca76060e471b6cb3d419a32d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/typings/models/video/video-redundancy.ts b/server/typings/models/video/video-redundancy.ts index 25bdac057..5107aa7f4 100644 --- a/server/typings/models/video/video-redundancy.ts +++ b/server/typings/models/video/video-redundancy.ts @@ -16,16 +16,20 @@ export type MVideoRedundancyFileUrl = Pick // ############################################################################ -export type MVideoRedundancyFile = MVideoRedundancy & +export type MVideoRedundancyFile = + MVideoRedundancy & Use<'VideoFile', MVideoFile> -export type MVideoRedundancyFileVideo = MVideoRedundancy & +export type MVideoRedundancyFileVideo = + MVideoRedundancy & Use<'VideoFile', MVideoFileVideo> -export type MVideoRedundancyStreamingPlaylistVideo = MVideoRedundancy & +export type MVideoRedundancyStreamingPlaylistVideo = + MVideoRedundancy & Use<'VideoStreamingPlaylist', MStreamingPlaylistVideo> -export type MVideoRedundancyVideo = MVideoRedundancy & +export type MVideoRedundancyVideo = + MVideoRedundancy & Use<'VideoFile', MVideoFileVideo> & Use<'VideoStreamingPlaylist', MStreamingPlaylistVideo> @@ -33,6 +37,7 @@ export type MVideoRedundancyVideo = MVideoRedundancy & // Format for API or AP object -export type MVideoRedundancyAP = MVideoRedundancy & +export type MVideoRedundancyAP = + MVideoRedundancy & PickWithOpt> & PickWithOpt>