aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types
diff options
context:
space:
mode:
Diffstat (limited to 'server/types')
-rw-r--r--server/types/express.d.ts3
-rw-r--r--server/types/models/video/index.ts1
-rw-r--r--server/types/models/video/video-channel-sync.ts17
3 files changed, 21 insertions, 0 deletions
diff --git a/server/types/express.d.ts b/server/types/express.d.ts
index 8f8c65102..27d60da72 100644
--- a/server/types/express.d.ts
+++ b/server/types/express.d.ts
@@ -8,6 +8,7 @@ import {
8 MActorFollowActorsDefault, 8 MActorFollowActorsDefault,
9 MActorUrl, 9 MActorUrl,
10 MChannelBannerAccountDefault, 10 MChannelBannerAccountDefault,
11 MChannelSyncChannel,
11 MStreamingPlaylist, 12 MStreamingPlaylist,
12 MVideoChangeOwnershipFull, 13 MVideoChangeOwnershipFull,
13 MVideoFile, 14 MVideoFile,
@@ -145,6 +146,7 @@ declare module 'express' {
145 videoStreamingPlaylist?: MStreamingPlaylist 146 videoStreamingPlaylist?: MStreamingPlaylist
146 147
147 videoChannel?: MChannelBannerAccountDefault 148 videoChannel?: MChannelBannerAccountDefault
149 videoChannelSync?: MChannelSyncChannel
148 150
149 videoPlaylistFull?: MVideoPlaylistFull 151 videoPlaylistFull?: MVideoPlaylistFull
150 videoPlaylistSummary?: MVideoPlaylistFullSummary 152 videoPlaylistSummary?: MVideoPlaylistFullSummary
@@ -194,6 +196,7 @@ declare module 'express' {
194 plugin?: MPlugin 196 plugin?: MPlugin
195 197
196 localViewerFull?: MLocalVideoViewerWithWatchSections 198 localViewerFull?: MLocalVideoViewerWithWatchSections
199
197 } 200 }
198 } 201 }
199} 202}
diff --git a/server/types/models/video/index.ts b/server/types/models/video/index.ts
index fdf8e1ddb..940f0ac0d 100644
--- a/server/types/models/video/index.ts
+++ b/server/types/models/video/index.ts
@@ -8,6 +8,7 @@ export * from './video'
8export * from './video-blacklist' 8export * from './video-blacklist'
9export * from './video-caption' 9export * from './video-caption'
10export * from './video-change-ownership' 10export * from './video-change-ownership'
11export * from './video-channel-sync'
11export * from './video-channels' 12export * from './video-channels'
12export * from './video-comment' 13export * from './video-comment'
13export * from './video-file' 14export * from './video-file'
diff --git a/server/types/models/video/video-channel-sync.ts b/server/types/models/video/video-channel-sync.ts
new file mode 100644
index 000000000..429ab70b0
--- /dev/null
+++ b/server/types/models/video/video-channel-sync.ts
@@ -0,0 +1,17 @@
1import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync'
2import { FunctionProperties, PickWith } from '@shared/typescript-utils'
3import { MChannelAccountDefault, MChannelFormattable } from './video-channels'
4
5type Use<K extends keyof VideoChannelSyncModel, M> = PickWith<VideoChannelSyncModel, K, M>
6
7export type MChannelSync = Omit<VideoChannelSyncModel, 'VideoChannel'>
8
9export type MChannelSyncChannel =
10 MChannelSync &
11 Use<'VideoChannel', MChannelAccountDefault> &
12 FunctionProperties<VideoChannelSyncModel>
13
14export type MChannelSyncFormattable =
15 FunctionProperties<MChannelSyncChannel> &
16 Use<'VideoChannel', MChannelFormattable> &
17 MChannelSync