]>
Commit | Line | Data |
---|---|---|
1 | import { Account } from '../actors' | |
2 | import { VideoChannel } from '../videos/channel/video-channel.model' | |
3 | import { UserRole } from './user-role' | |
4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | |
5 | import { UserNotificationSetting } from './user-notification-setting.model' | |
6 | import { UserAdminFlag } from './user-flag.model' | |
7 | ||
8 | export interface User { | |
9 | id: number | |
10 | username: string | |
11 | email: string | |
12 | pendingEmail: string | null | |
13 | emailVerified: boolean | |
14 | nsfwPolicy: NSFWPolicyType | |
15 | ||
16 | adminFlags?: UserAdminFlag | |
17 | ||
18 | autoPlayVideo: boolean | |
19 | webTorrentEnabled: boolean | |
20 | videosHistoryEnabled: boolean | |
21 | ||
22 | role: UserRole | |
23 | roleLabel: string | |
24 | ||
25 | videoQuota: number | |
26 | videoQuotaDaily: number | |
27 | createdAt: Date | |
28 | account: Account | |
29 | notificationSettings?: UserNotificationSetting | |
30 | videoChannels?: VideoChannel[] | |
31 | ||
32 | blocked: boolean | |
33 | blockedReason?: string | |
34 | ||
35 | videoQuotaUsed?: number | |
36 | } |