]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/users/user.model.ts
Add import finished and video published notifs
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
index 867a6dde5bad19bcdd96b65f8ab53889c0a4097d..af783d38907e085cce43989e11caf7ac06065ae9 100644 (file)
@@ -1,11 +1,30 @@
-import { UserRole } from './user-role.type'
+import { Account } from '../actors'
+import { VideoChannel } from '../videos/channel/video-channel.model'
+import { UserRole } from './user-role'
+import { NSFWPolicyType } from '../videos/nsfw-policy.type'
+import { UserNotificationSetting } from './user-notification-setting.model'
 
 export interface User {
   id: number
   username: string
   email: string
-  displayNSFW: boolean
+  emailVerified: boolean
+  nsfwPolicy: NSFWPolicyType
+
+  autoPlayVideo: boolean
+  webTorrentEnabled: boolean
+  videosHistoryEnabled: boolean
+
   role: UserRole
   videoQuota: number
+  videoQuotaDaily: number
   createdAt: Date
+  account: Account
+  notificationSettings?: UserNotificationSetting
+  videoChannels?: VideoChannel[]
+
+  blocked: boolean
+  blockedReason?: string
+
+  videoQuotaUsed?: number
 }