]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - shared/models/users/user.model.ts
Put box-shadow for input focus in variables, apply form-control to p-multiselect
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
... / ...
CommitLineData
1import { Account } from '../actors'
2import { VideoChannel } from '../videos/channel/video-channel.model'
3import { UserRole } from './user-role'
4import { NSFWPolicyType } from '../videos/nsfw-policy.type'
5import { UserNotificationSetting } from './user-notification-setting.model'
6import { UserAdminFlag } from './user-flag.model'
7import { VideoPlaylistType } from '@shared/models'
8
9export interface User {
10 id: number
11 username: string
12 email: string
13 pendingEmail: string | null
14
15 emailVerified: boolean
16 nsfwPolicy: NSFWPolicyType
17
18 adminFlags?: UserAdminFlag
19
20 autoPlayVideo: boolean
21 autoPlayNextVideo: boolean
22 autoPlayNextVideoPlaylist: boolean
23 webTorrentEnabled: boolean
24 videosHistoryEnabled: boolean
25 videoLanguages: string[]
26
27 role: UserRole
28 roleLabel: string
29
30 videoQuota: number
31 videoQuotaDaily: number
32 videoQuotaUsed?: number
33 videoQuotaUsedDaily?: number
34 videosCount?: number
35 videoAbusesCount?: number
36 videoAbusesAcceptedCount?: number
37 videoAbusesCreatedCount?: number
38 videoCommentsCount? : number
39
40 theme: string
41
42 account: Account
43 notificationSettings?: UserNotificationSetting
44 videoChannels?: VideoChannel[]
45
46 blocked: boolean
47 blockedReason?: string
48
49 noInstanceConfigWarningModal: boolean
50 noWelcomeModal: boolean
51
52 createdAt: Date
53}
54
55export interface MyUserSpecialPlaylist {
56 id: number
57 name: string
58 type: VideoPlaylistType
59}
60
61export interface MyUser extends User {
62 specialPlaylists: MyUserSpecialPlaylist[]
63}