X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fusers%2Fuser.model.ts;h=efb4510148e12ddedc6f1b2c84a1b9ad3f89851a;hb=7cd1b12c19d0589d1d692ed0571ca0800f028aea;hp=82af175160a787cf28df67059924b5f3ba057c35;hpb=2a8c5d0af13f3ccb9a505e1fbc9d324b9d33ba1f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 82af17516..efb451014 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts @@ -2,23 +2,57 @@ import { Account } from '../actors' import { VideoChannel } from '../videos/channel/video-channel.model' import { UserRole } from './user-role' import { NSFWPolicyType } from '../videos/nsfw-policy.type' +import { UserNotificationSetting } from './user-notification-setting.model' +import { UserAdminFlag } from './user-flag.model' +import { VideoPlaylistType } from '@shared/models' export interface User { id: number username: string email: string + pendingEmail: string | null + emailVerified: boolean nsfwPolicy: NSFWPolicyType + + adminFlags?: UserAdminFlag + autoPlayVideo: boolean + autoPlayNextVideo: boolean + autoPlayNextVideoPlaylist: boolean + webTorrentEnabled: boolean + videosHistoryEnabled: boolean + videoLanguages: string[] + role: UserRole + roleLabel: string + videoQuota: number videoQuotaDaily: number - createdAt: Date + videoQuotaUsed?: number + videoQuotaUsedDaily?: number + + theme: string + account: Account + notificationSettings?: UserNotificationSetting videoChannels?: VideoChannel[] blocked: boolean blockedReason?: string - videoQuotaUsed?: number + noInstanceConfigWarningModal: boolean + noWelcomeModal: boolean + + createdAt: Date +} + +export interface MyUserSpecialPlaylist { + id: number + name: string + type: VideoPlaylistType +} + +export interface MyUser extends User { + specialPlaylists: MyUserSpecialPlaylist[] }