]>
Commit | Line | Data |
---|---|---|
50d6de9c | 1 | import { Account } from '../actors' |
59c76ffa | 2 | import { VideoChannel } from '../videos/channel/video-channel.model' |
954605a8 | 3 | import { UserRole } from './user-role' |
0883b324 | 4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
cef534ed | 5 | import { UserNotificationSetting } from './user-notification-setting.model' |
1eddc9a7 | 6 | import { UserAdminFlag } from './user-flag.model' |
ac0868bc | 7 | import { VideoPlaylistType } from '@shared/models' |
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 | |
4f32032f | 34 | |
76314386 | 35 | videosCount?: number |
4f32032f C |
36 | |
37 | abusesCount?: number | |
38 | abusesAcceptedCount?: number | |
39 | abusesCreatedCount?: number | |
40 | ||
76314386 | 41 | videoCommentsCount? : number |
ffb321be C |
42 | |
43 | theme: string | |
44 | ||
2295ce6c | 45 | account: Account |
cef534ed | 46 | notificationSettings?: UserNotificationSetting |
72c7248b | 47 | videoChannels?: VideoChannel[] |
eacb25c4 C |
48 | |
49 | blocked: boolean | |
50 | blockedReason?: string | |
a76138ff | 51 | |
43d0ea7f C |
52 | noInstanceConfigWarningModal: boolean |
53 | noWelcomeModal: boolean | |
54 | ||
55 | createdAt: Date | |
8bb71f2e C |
56 | |
57 | pluginAuth: string | null | |
3cc665f4 C |
58 | |
59 | lastLoginDate: Date | null | |
69818c93 | 60 | } |
29128b2f | 61 | |
ac0868bc C |
62 | export interface MyUserSpecialPlaylist { |
63 | id: number | |
64 | name: string | |
65 | type: VideoPlaylistType | |
66 | } | |
67 | ||
29128b2f | 68 | export interface MyUser extends User { |
ac0868bc | 69 | specialPlaylists: MyUserSpecialPlaylist[] |
29128b2f | 70 | } |