diff options
Diffstat (limited to 'server/types/models/video')
-rw-r--r-- | server/types/models/video/video-channels.ts | 7 | ||||
-rw-r--r-- | server/types/models/video/video.ts | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/server/types/models/video/video-channels.ts b/server/types/models/video/video-channels.ts index af8c2ffe4..57e991494 100644 --- a/server/types/models/video/video-channels.ts +++ b/server/types/models/video/video-channels.ts | |||
@@ -21,6 +21,7 @@ import { | |||
21 | MActorDefaultLight, | 21 | MActorDefaultLight, |
22 | MActorFormattable, | 22 | MActorFormattable, |
23 | MActorHost, | 23 | MActorHost, |
24 | MActorHostOnly, | ||
24 | MActorLight, | 25 | MActorLight, |
25 | MActorSummary, | 26 | MActorSummary, |
26 | MActorSummaryFormattable, | 27 | MActorSummaryFormattable, |
@@ -77,9 +78,13 @@ export type MChannelAccountLight = | |||
77 | Use<'Account', MAccountLight> | 78 | Use<'Account', MAccountLight> |
78 | 79 | ||
79 | export type MChannelHost = | 80 | export type MChannelHost = |
80 | MChannelId & | 81 | MChannel & |
81 | Use<'Actor', MActorHost> | 82 | Use<'Actor', MActorHost> |
82 | 83 | ||
84 | export type MChannelHostOnly = | ||
85 | MChannelId & | ||
86 | Use<'Actor', MActorHostOnly> | ||
87 | |||
83 | // ############################################################################ | 88 | // ############################################################################ |
84 | 89 | ||
85 | // Account associations | 90 | // Account associations |
diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index d1af53b92..58ae7baad 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts | |||
@@ -13,7 +13,7 @@ import { | |||
13 | MChannelAccountSummaryFormattable, | 13 | MChannelAccountSummaryFormattable, |
14 | MChannelActor, | 14 | MChannelActor, |
15 | MChannelFormattable, | 15 | MChannelFormattable, |
16 | MChannelHost, | 16 | MChannelHostOnly, |
17 | MChannelUserId | 17 | MChannelUserId |
18 | } from './video-channels' | 18 | } from './video-channels' |
19 | import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file' | 19 | import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file' |
@@ -146,7 +146,7 @@ export type MVideoWithChannelActor = | |||
146 | 146 | ||
147 | export type MVideoWithHost = | 147 | export type MVideoWithHost = |
148 | MVideo & | 148 | MVideo & |
149 | Use<'VideoChannel', MChannelHost> | 149 | Use<'VideoChannel', MChannelHostOnly> |
150 | 150 | ||
151 | export type MVideoFullLight = | 151 | export type MVideoFullLight = |
152 | MVideo & | 152 | MVideo & |