1 import { VideoStreamingPlaylistModel } from '../../../models/video/video-streaming-playlist'
2 import { PickWith, PickWithOpt } from '../../utils'
3 import { MVideoRedundancyFileUrl } from './video-redundancy'
4 import { MVideo, MVideoUrl } from '@server/typings/models'
6 type Use<K extends keyof VideoStreamingPlaylistModel, M> = PickWith<VideoStreamingPlaylistModel, K, M>
8 // ############################################################################
10 export type MStreamingPlaylist = Omit<VideoStreamingPlaylistModel, 'Video' | 'RedundancyVideos'>
12 export type MStreamingPlaylistVideo = MStreamingPlaylist &
15 export type MStreamingPlaylistRedundancies = MStreamingPlaylist &
16 Use<'RedundancyVideos', MVideoRedundancyFileUrl[]>
18 export type MStreamingPlaylistRedundanciesOpt = MStreamingPlaylist &
19 PickWithOpt<VideoStreamingPlaylistModel, 'RedundancyVideos', MVideoRedundancyFileUrl[]>