aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live-session.ts
blob: 852e2c24b85e139c8c7949a0935660d2bb23e192 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { VideoLiveSessionModel } from '@server/models/video/video-live-session'
import { PickWith } from '@shared/typescript-utils'
import { MVideo } from './video'
import { MLiveReplaySetting } from './video-live-replay-setting'

type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M>

// ############################################################################

export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive' | 'ReplaySetting'>

// ############################################################################

export type MVideoLiveSessionReplay =
  MVideoLiveSession &
  Use<'ReplayVideo', MVideo> &
  Use<'ReplaySetting', MLiveReplaySetting>