X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypings%2Fmodels%2Fuser%2Fuser.ts;h=6ac19c20b615add1e4b7ad472de6f77bfa2a6259;hb=26469f9ed85f5e7d67ccecaa820f33e37179b76a;hp=a2750adc7855d7a67967e7f5e53dfd67b0e27d79;hpb=d7a25329f9e607894d29ab342b9cb66638b56dc0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/typings/models/user/user.ts b/server/typings/models/user/user.ts index a2750adc7..6ac19c20b 100644 --- a/server/typings/models/user/user.ts +++ b/server/typings/models/user/user.ts @@ -12,6 +12,7 @@ import { import { MNotificationSetting, MNotificationSettingFormattable } from './user-notification-setting' import { AccountModel } from '@server/models/account/account' 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>