diff options
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user.model.ts | 11 |
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' | |||
5 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 5 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
6 | import { UserNotificationSetting } from './user-notification-setting.model' | 6 | import { UserNotificationSetting } from './user-notification-setting.model' |
7 | import { UserAdminFlag } from './user-flag.model' | 7 | import { UserAdminFlag } from './user-flag.model' |
8 | import { VideoPlaylistType } from '@shared/models' | ||
8 | 9 | ||
9 | export interface User { | 10 | export 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 | ||
51 | export interface MyUserSpecialPlaylist { | ||
52 | id: number | ||
53 | name: string | ||
54 | type: VideoPlaylistType | ||
55 | } | ||
56 | |||
50 | export interface MyUser extends User { | 57 | export interface MyUser extends User { |
51 | specialPlaylists: Partial<VideoPlaylist>[] | 58 | specialPlaylists: MyUserSpecialPlaylist[] |
52 | } | 59 | } |
60 | |||
61 | |||