]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
CommitLineData
50d6de9c 1import { Account } from '../actors'
59c76ffa 2import { VideoChannel } from '../videos/channel/video-channel.model'
954605a8 3import { UserRole } from './user-role'
0883b324 4import { NSFWPolicyType } from '../videos/nsfw-policy.type'
cef534ed 5import { UserNotificationSetting } from './user-notification-setting.model'
1eddc9a7 6import { UserAdminFlag } from './user-flag.model'
0fecf427 7import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'
ee9e7b61 8
69818c93
C
9export 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
a9bfa85d
C
23
24 // @deprecated in favour of p2pEnabled
276d9652 25 webTorrentEnabled: boolean
a9bfa85d
C
26 p2pEnabled: boolean
27
276d9652 28 videosHistoryEnabled: boolean
43d0ea7f 29 videoLanguages: string[]
276d9652 30
ee9e7b61 31 role: UserRole
1eddc9a7
C
32 roleLabel: string
33
b0f9f39e 34 videoQuota: number
bee0abff 35 videoQuotaDaily: number
43d0ea7f
C
36 videoQuotaUsed?: number
37 videoQuotaUsedDaily?: number
4f32032f 38
76314386 39 videosCount?: number
4f32032f
C
40
41 abusesCount?: number
42 abusesAcceptedCount?: number
43 abusesCreatedCount?: number
44
1a578165 45 videoCommentsCount?: number
ffb321be
C
46
47 theme: string
48
2295ce6c 49 account: Account
cef534ed 50 notificationSettings?: UserNotificationSetting
72c7248b 51 videoChannels?: VideoChannel[]
eacb25c4
C
52
53 blocked: boolean
54 blockedReason?: string
a76138ff 55
43d0ea7f
C
56 noInstanceConfigWarningModal: boolean
57 noWelcomeModal: boolean
8f581725 58 noAccountSetupWarningModal: boolean
43d0ea7f
C
59
60 createdAt: Date
8bb71f2e
C
61
62 pluginAuth: string | null
3cc665f4
C
63
64 lastLoginDate: Date | null
69818c93 65}
29128b2f 66
ac0868bc
C
67export interface MyUserSpecialPlaylist {
68 id: number
69 name: string
70 type: VideoPlaylistType
71}
72
29128b2f 73export interface MyUser extends User {
ac0868bc 74 specialPlaylists: MyUserSpecialPlaylist[]
29128b2f 75}