MAccountSummaryBlocks,
MAccountSummaryFormattable,
MAccountUrl,
- MAccountUserId,
+ MAccountUserId
+} from '../account'
+import {
MActor,
MActorAccountChannelId,
- MActorAP,
+ MActorAPChannel,
MActorAPI,
MActorDefault,
+ MActorDefaultBanner,
MActorDefaultLight,
MActorFormattable,
+ MActorHost,
MActorLight,
MActorSummary,
- MActorSummaryFormattable, MActorUrl
-} from '../account'
+ MActorSummaryFormattable,
+ MActorUrl
+} from '../actor'
import { MVideo } from './video'
type Use<K extends keyof VideoChannelModel, M> = PickWith<VideoChannelModel, K, M>
MChannel &
Use<'Actor', MActorDefault>
+export type MChannelBannerDefault =
+ MChannel &
+ Use<'Actor', MActorDefaultBanner>
+
// ############################################################################
// Not all association attributes
-export type MChannelLight =
- MChannel &
- Use<'Actor', MActorDefaultLight>
-
export type MChannelActorLight =
MChannel &
Use<'Actor', MActorLight>
Use<'Actor', MActorDefaultLight> &
Use<'Account', MAccountLight>
+export type MChannelHost =
+ MChannelId &
+ Use<'Actor', MActorHost>
+
// ############################################################################
// Account associations
MChannel &
Use<'Account', MAccountActor>
-export type MChannelAccountDefault =
+export type MChannelBannerAccountDefault =
MChannel &
- Use<'Actor', MActorDefault> &
+ Use<'Actor', MActorDefaultBanner> &
Use<'Account', MAccountDefault>
-export type MChannelActorAccountActor =
+export type MChannelAccountDefault =
MChannel &
- Use<'Account', MAccountActor> &
- Use<'Actor', MActor>
+ Use<'Actor', MActorDefault> &
+ Use<'Account', MAccountDefault>
// ############################################################################
-// Videos associations
+// Videos associations
export type MChannelVideos =
MChannel &
Use<'Videos', MVideo[]>
-export type MChannelActorAccountDefaultVideos =
- MChannel &
- Use<'Actor', MActorDefault> &
- Use<'Account', MAccountDefault> &
- Use<'Videos', MVideo[]>
-
// ############################################################################
// For API
export type MChannelAP =
Pick<MChannel, 'name' | 'description' | 'support'> &
- Use<'Actor', MActorAP> &
+ Use<'Actor', MActorAPChannel> &
Use<'Account', MAccountUrl>