diff options
Diffstat (limited to 'server/types')
-rw-r--r-- | server/types/express.d.ts | 3 | ||||
-rw-r--r-- | server/types/models/video/index.ts | 1 | ||||
-rw-r--r-- | server/types/models/video/video-channel-sync.ts | 17 |
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' | |||
8 | export * from './video-blacklist' | 8 | export * from './video-blacklist' |
9 | export * from './video-caption' | 9 | export * from './video-caption' |
10 | export * from './video-change-ownership' | 10 | export * from './video-change-ownership' |
11 | export * from './video-channel-sync' | ||
11 | export * from './video-channels' | 12 | export * from './video-channels' |
12 | export * from './video-comment' | 13 | export * from './video-comment' |
13 | export * from './video-file' | 14 | export * 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 @@ | |||
1 | import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync' | ||
2 | import { FunctionProperties, PickWith } from '@shared/typescript-utils' | ||
3 | import { MChannelAccountDefault, MChannelFormattable } from './video-channels' | ||
4 | |||
5 | type Use<K extends keyof VideoChannelSyncModel, M> = PickWith<VideoChannelSyncModel, K, M> | ||
6 | |||
7 | export type MChannelSync = Omit<VideoChannelSyncModel, 'VideoChannel'> | ||
8 | |||
9 | export type MChannelSyncChannel = | ||
10 | MChannelSync & | ||
11 | Use<'VideoChannel', MChannelAccountDefault> & | ||
12 | FunctionProperties<VideoChannelSyncModel> | ||
13 | |||
14 | export type MChannelSyncFormattable = | ||
15 | FunctionProperties<MChannelSyncChannel> & | ||
16 | Use<'VideoChannel', MChannelFormattable> & | ||
17 | MChannelSync | ||