]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Fix grammar in translation documentation
[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
ffb321be
C
34
35 theme: string
36
2295ce6c 37 account: Account
cef534ed 38 notificationSettings?: UserNotificationSetting
72c7248b 39 videoChannels?: VideoChannel[]
eacb25c4
C
40
41 blocked: boolean
42 blockedReason?: string
a76138ff 43
43d0ea7f
C
44 noInstanceConfigWarningModal: boolean
45 noWelcomeModal: boolean
46
47 createdAt: Date
69818c93 48}
29128b2f 49
ac0868bc
C
50export interface MyUserSpecialPlaylist {
51 id: number
52 name: string
53 type: VideoPlaylistType
54}
55
29128b2f 56export interface MyUser extends User {
ac0868bc 57 specialPlaylists: MyUserSpecialPlaylist[]
29128b2f 58}