diff options
Diffstat (limited to 'server/types')
-rw-r--r-- | server/types/express.d.ts | 1 | ||||
-rw-r--r-- | server/types/models/video/index.ts | 2 | ||||
-rw-r--r-- | server/types/models/video/video-live-session.ts | 15 |
3 files changed, 18 insertions, 0 deletions
diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 4537c57c6..7cc13f21d 100644 --- a/server/types/express.d.ts +++ b/server/types/express.d.ts | |||
@@ -119,6 +119,7 @@ declare module 'express' { | |||
119 | videoId?: MVideoId | 119 | videoId?: MVideoId |
120 | 120 | ||
121 | videoLive?: MVideoLive | 121 | videoLive?: MVideoLive |
122 | videoLiveSession?: MVideoLiveSession | ||
122 | 123 | ||
123 | videoShare?: MVideoShareActor | 124 | videoShare?: MVideoShareActor |
124 | 125 | ||
diff --git a/server/types/models/video/index.ts b/server/types/models/video/index.ts index 5ddffcab5..fdf8e1ddb 100644 --- a/server/types/models/video/index.ts +++ b/server/types/models/video/index.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | export * from './local-video-viewer-watch-section' | 1 | export * from './local-video-viewer-watch-section' |
2 | export * from './local-video-viewer-watch-section' | ||
2 | export * from './local-video-viewer' | 3 | export * from './local-video-viewer' |
3 | export * from './schedule-video-update' | 4 | export * from './schedule-video-update' |
4 | export * from './tag' | 5 | export * from './tag' |
@@ -11,6 +12,7 @@ export * from './video-channels' | |||
11 | export * from './video-comment' | 12 | export * from './video-comment' |
12 | export * from './video-file' | 13 | export * from './video-file' |
13 | export * from './video-import' | 14 | export * from './video-import' |
15 | export * from './video-live-session' | ||
14 | export * from './video-live' | 16 | export * from './video-live' |
15 | export * from './video-playlist' | 17 | export * from './video-playlist' |
16 | export * from './video-playlist-element' | 18 | export * from './video-playlist-element' |
diff --git a/server/types/models/video/video-live-session.ts b/server/types/models/video/video-live-session.ts new file mode 100644 index 000000000..2e5e4b684 --- /dev/null +++ b/server/types/models/video/video-live-session.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { VideoLiveSessionModel } from '@server/models/video/video-live-session' | ||
2 | import { PickWith } from '@shared/typescript-utils' | ||
3 | import { MVideo } from './video' | ||
4 | |||
5 | type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
9 | export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive'> | ||
10 | |||
11 | // ############################################################################ | ||
12 | |||
13 | export type MVideoLiveSessionReplay = | ||
14 | MVideoLiveSession & | ||
15 | Use<'ReplayVideo', MVideo> | ||