aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/models/users/user.model.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 1434dca81..328b69df6 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -5,6 +5,7 @@ import { UserRole } from './user-role'
5import { NSFWPolicyType } from '../videos/nsfw-policy.type' 5import { NSFWPolicyType } from '../videos/nsfw-policy.type'
6import { UserNotificationSetting } from './user-notification-setting.model' 6import { UserNotificationSetting } from './user-notification-setting.model'
7import { UserAdminFlag } from './user-flag.model' 7import { UserAdminFlag } from './user-flag.model'
8import { VideoPlaylistType } from '@shared/models'
8 9
9export interface User { 10export interface User {
10 id: number 11 id: number
@@ -47,6 +48,14 @@ export interface User {
47 createdAt: Date 48 createdAt: Date
48} 49}
49 50
51export interface MyUserSpecialPlaylist {
52 id: number
53 name: string
54 type: VideoPlaylistType
55}
56
50export interface MyUser extends User { 57export interface MyUser extends User {
51 specialPlaylists: Partial<VideoPlaylist>[] 58 specialPlaylists: MyUserSpecialPlaylist[]
52} 59}
60
61