]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Implement abuses check params
[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'
ac0868bc 7import { VideoPlaylistType } from '@shared/models'
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
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
76314386
RK
34 videosCount?: number
35 videoAbusesCount?: number
36 videoAbusesAcceptedCount?: number
37 videoAbusesCreatedCount?: number
38 videoCommentsCount? : number
ffb321be
C
39
40 theme: string
41
2295ce6c 42 account: Account
cef534ed 43 notificationSettings?: UserNotificationSetting
72c7248b 44 videoChannels?: VideoChannel[]
eacb25c4
C
45
46 blocked: boolean
47 blockedReason?: string
a76138ff 48
43d0ea7f
C
49 noInstanceConfigWarningModal: boolean
50 noWelcomeModal: boolean
51
52 createdAt: Date
8bb71f2e
C
53
54 pluginAuth: string | null
3cc665f4
C
55
56 lastLoginDate: Date | null
69818c93 57}
29128b2f 58
ac0868bc
C
59export interface MyUserSpecialPlaylist {
60 id: number
61 name: string
62 type: VideoPlaylistType
63}
64
29128b2f 65export interface MyUser extends User {
ac0868bc 66 specialPlaylists: MyUserSpecialPlaylist[]
29128b2f 67}