X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fusers%2Fuser.model.ts;h=63c5c8a92f961e36da3e9b4e40e064e27cb713e4;hb=28368da08762fafc094dacc911679977c662af13;hp=a9c9bce30da1464ceab717f0e9db6424cd7fa7dc;hpb=76314386aeafdd6849b7b70c517779d6b2013473;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index a9c9bce30..63c5c8a92 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts @@ -4,7 +4,7 @@ import { UserRole } from './user-role' import { NSFWPolicyType } from '../videos/nsfw-policy.type' import { UserNotificationSetting } from './user-notification-setting.model' import { UserAdminFlag } from './user-flag.model' -import { VideoPlaylistType } from '@shared/models' +import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model' export interface User { id: number @@ -20,7 +20,11 @@ export interface User { autoPlayVideo: boolean autoPlayNextVideo: boolean autoPlayNextVideoPlaylist: boolean + + // @deprecated in favour of p2pEnabled webTorrentEnabled: boolean + p2pEnabled: boolean + videosHistoryEnabled: boolean videoLanguages: string[] @@ -31,11 +35,14 @@ export interface User { videoQuotaDaily: number videoQuotaUsed?: number videoQuotaUsedDaily?: number + videosCount?: number - videoAbusesCount?: number - videoAbusesAcceptedCount?: number - videoAbusesCreatedCount?: number - videoCommentsCount? : number + + abusesCount?: number + abusesAcceptedCount?: number + abusesCreatedCount?: number + + videoCommentsCount?: number theme: string @@ -48,8 +55,13 @@ export interface User { noInstanceConfigWarningModal: boolean noWelcomeModal: boolean + noAccountSetupWarningModal: boolean createdAt: Date + + pluginAuth: string | null + + lastLoginDate: Date | null } export interface MyUserSpecialPlaylist {