]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/users/user.model.ts
Fix videos language tests
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
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 import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'
8
9 export 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
35 videosCount?: number
36
37 abusesCount?: number
38 abusesAcceptedCount?: number
39 abusesCreatedCount?: number
40
41 videoCommentsCount?: number
42
43 theme: string
44
45 account: Account
46 notificationSettings?: UserNotificationSetting
47 videoChannels?: VideoChannel[]
48
49 blocked: boolean
50 blockedReason?: string
51
52 noInstanceConfigWarningModal: boolean
53 noWelcomeModal: boolean
54 noAccountSetupWarningModal: boolean
55
56 createdAt: Date
57
58 pluginAuth: string | null
59
60 lastLoginDate: Date | null
61 }
62
63 export interface MyUserSpecialPlaylist {
64 id: number
65 name: string
66 type: VideoPlaylistType
67 }
68
69 export interface MyUser extends User {
70 specialPlaylists: MyUserSpecialPlaylist[]
71 }