]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/types/models/video/video-live-session.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-live-session.ts
1 import { VideoLiveSessionModel } from '@server/models/video/video-live-session'
2 import { PickWith } from '@shared/typescript-utils'
3 import { MVideo } from './video'
4 import { MLiveReplaySetting } from './video-live-replay-setting'
5
6 type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M>
7
8 // ############################################################################
9
10 export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive' | 'ReplaySetting'>
11
12 // ############################################################################
13
14 export type MVideoLiveSessionReplay =
15 MVideoLiveSession &
16 Use<'ReplayVideo', MVideo> &
17 Use<'ReplaySetting', MLiveReplaySetting>