X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypings%2Fmodels%2Fuser%2Fuser.ts;h=6ac19c20b615add1e4b7ad472de6f77bfa2a6259;hb=26469f9ed85f5e7d67ccecaa820f33e37179b76a;hp=52d6d4a057f191ffde59366cb95c2fbc6813c0ec;hpb=d5c8932a601c1854db0a2e399ccaf26e17385f1a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/typings/models/user/user.ts b/server/typings/models/user/user.ts index 52d6d4a05..6ac19c20b 100644 --- a/server/typings/models/user/user.ts +++ b/server/typings/models/user/user.ts @@ -11,7 +11,8 @@ import { } from '../account' import { MNotificationSetting, MNotificationSettingFormattable } from './user-notification-setting' import { AccountModel } from '@server/models/account/account' -import { MChannelFormattable } from '@server/typings/models' +import { MChannelFormattable } from '../video/video-channels' +import { MVideoPlaylist } from '@server/typings/models' type Use = PickWith @@ -65,6 +66,13 @@ export type MUserDefault = MUser & // Format for API or AP object +type MAccountWithChannels = MAccountFormattable & PickWithOpt +type MAccountWithChannelsAndSpecialPlaylists = MAccountWithChannels & + PickWithOpt + export type MUserFormattable = MUserQuotaUsed & - Use<'Account', MAccountFormattable & PickWithOpt> & + Use<'Account', MAccountWithChannels> & PickWithOpt + +export type MMyUserFormattable = MUserFormattable & + Use<'Account', MAccountWithChannelsAndSpecialPlaylists>