aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live-session.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/types/models/video/video-live-session.ts')
-rw-r--r--server/types/models/video/video-live-session.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/types/models/video/video-live-session.ts b/server/types/models/video/video-live-session.ts
index 2e5e4b684..852e2c24b 100644
--- a/server/types/models/video/video-live-session.ts
+++ b/server/types/models/video/video-live-session.ts
@@ -1,15 +1,17 @@
1import { VideoLiveSessionModel } from '@server/models/video/video-live-session' 1import { VideoLiveSessionModel } from '@server/models/video/video-live-session'
2import { PickWith } from '@shared/typescript-utils' 2import { PickWith } from '@shared/typescript-utils'
3import { MVideo } from './video' 3import { MVideo } from './video'
4import { MLiveReplaySetting } from './video-live-replay-setting'
4 5
5type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M> 6type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M>
6 7
7// ############################################################################ 8// ############################################################################
8 9
9export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive'> 10export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive' | 'ReplaySetting'>
10 11
11// ############################################################################ 12// ############################################################################
12 13
13export type MVideoLiveSessionReplay = 14export type MVideoLiveSessionReplay =
14 MVideoLiveSession & 15 MVideoLiveSession &
15 Use<'ReplayVideo', MVideo> 16 Use<'ReplayVideo', MVideo> &
17 Use<'ReplaySetting', MLiveReplaySetting>