]>
Commit | Line | Data |
---|---|---|
50d6de9c | 1 | import { Account } from '../actors' |
59c76ffa | 2 | import { VideoChannel } from '../videos/channel/video-channel.model' |
29128b2f | 3 | import { VideoPlaylist } from '../videos/playlist/video-playlist.model' |
954605a8 | 4 | import { UserRole } from './user-role' |
0883b324 | 5 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
cef534ed | 6 | import { UserNotificationSetting } from './user-notification-setting.model' |
1eddc9a7 | 7 | import { UserAdminFlag } from './user-flag.model' |
ee9e7b61 | 8 | |
69818c93 C |
9 | export interface User { |
10 | id: number | |
11 | username: string | |
12 | email: string | |
d1ab89de | 13 | pendingEmail: string | null |
43d0ea7f | 14 | |
fc2ec87a | 15 | emailVerified: boolean |
0883b324 | 16 | nsfwPolicy: NSFWPolicyType |
276d9652 | 17 | |
1eddc9a7 C |
18 | adminFlags?: UserAdminFlag |
19 | ||
7efe153b | 20 | autoPlayVideo: boolean |
6aa54148 | 21 | autoPlayNextVideo: boolean |
bee29df8 | 22 | autoPlayNextVideoPlaylist: boolean |
276d9652 C |
23 | webTorrentEnabled: boolean |
24 | videosHistoryEnabled: boolean | |
43d0ea7f | 25 | videoLanguages: string[] |
276d9652 | 26 | |
ee9e7b61 | 27 | role: UserRole |
1eddc9a7 C |
28 | roleLabel: string |
29 | ||
b0f9f39e | 30 | videoQuota: number |
bee0abff | 31 | videoQuotaDaily: number |
43d0ea7f C |
32 | videoQuotaUsed?: number |
33 | videoQuotaUsedDaily?: number | |
ffb321be C |
34 | |
35 | theme: string | |
36 | ||
2295ce6c | 37 | account: Account |
cef534ed | 38 | notificationSettings?: UserNotificationSetting |
72c7248b | 39 | videoChannels?: VideoChannel[] |
eacb25c4 C |
40 | |
41 | blocked: boolean | |
42 | blockedReason?: string | |
a76138ff | 43 | |
43d0ea7f C |
44 | noInstanceConfigWarningModal: boolean |
45 | noWelcomeModal: boolean | |
46 | ||
47 | createdAt: Date | |
69818c93 | 48 | } |
29128b2f RK |
49 | |
50 | export interface MyUser extends User { | |
51 | specialPlaylists: Partial<VideoPlaylist>[] | |
52 | } |