]>
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' |
ac0868bc | 8 | import { VideoPlaylistType } from '@shared/models' |
ee9e7b61 | 9 | |
69818c93 C |
10 | export interface User { |
11 | id: number | |
12 | username: string | |
13 | email: string | |
d1ab89de | 14 | pendingEmail: string | null |
43d0ea7f | 15 | |
fc2ec87a | 16 | emailVerified: boolean |
0883b324 | 17 | nsfwPolicy: NSFWPolicyType |
276d9652 | 18 | |
1eddc9a7 C |
19 | adminFlags?: UserAdminFlag |
20 | ||
7efe153b | 21 | autoPlayVideo: boolean |
6aa54148 | 22 | autoPlayNextVideo: boolean |
bee29df8 | 23 | autoPlayNextVideoPlaylist: boolean |
276d9652 C |
24 | webTorrentEnabled: boolean |
25 | videosHistoryEnabled: boolean | |
43d0ea7f | 26 | videoLanguages: string[] |
276d9652 | 27 | |
ee9e7b61 | 28 | role: UserRole |
1eddc9a7 C |
29 | roleLabel: string |
30 | ||
b0f9f39e | 31 | videoQuota: number |
bee0abff | 32 | videoQuotaDaily: number |
43d0ea7f C |
33 | videoQuotaUsed?: number |
34 | videoQuotaUsedDaily?: number | |
ffb321be C |
35 | |
36 | theme: string | |
37 | ||
2295ce6c | 38 | account: Account |
cef534ed | 39 | notificationSettings?: UserNotificationSetting |
72c7248b | 40 | videoChannels?: VideoChannel[] |
eacb25c4 C |
41 | |
42 | blocked: boolean | |
43 | blockedReason?: string | |
a76138ff | 44 | |
43d0ea7f C |
45 | noInstanceConfigWarningModal: boolean |
46 | noWelcomeModal: boolean | |
47 | ||
48 | createdAt: Date | |
69818c93 | 49 | } |
29128b2f | 50 | |
ac0868bc C |
51 | export interface MyUserSpecialPlaylist { |
52 | id: number | |
53 | name: string | |
54 | type: VideoPlaylistType | |
55 | } | |
56 | ||
29128b2f | 57 | export interface MyUser extends User { |
ac0868bc | 58 | specialPlaylists: MyUserSpecialPlaylist[] |
29128b2f | 59 | } |