]>
Commit | Line | Data |
---|---|---|
26e3e98f C |
1 | import { VideoLiveSessionModel } from '@server/models/video/video-live-session' |
2 | import { PickWith } from '@shared/typescript-utils' | |
3 | import { MVideo } from './video' | |
05a60d85 | 4 | import { MLiveReplaySetting } from './video-live-replay-setting' |
26e3e98f C |
5 | |
6 | type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M> | |
7 | ||
8 | // ############################################################################ | |
9 | ||
05a60d85 | 10 | export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive' | 'ReplaySetting'> |
26e3e98f C |
11 | |
12 | // ############################################################################ | |
13 | ||
14 | export type MVideoLiveSessionReplay = | |
15 | MVideoLiveSession & | |
05a60d85 W |
16 | Use<'ReplayVideo', MVideo> & |
17 | Use<'ReplaySetting', MLiveReplaySetting> |