diff options
Diffstat (limited to 'shared/models/users/user-notification.model.ts')
-rw-r--r-- | shared/models/users/user-notification.model.ts | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index ee9ac275a..9dd4f099f 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts | |||
@@ -6,7 +6,10 @@ export enum UserNotificationType { | |||
6 | UNBLACKLIST_ON_MY_VIDEO = 5, | 6 | UNBLACKLIST_ON_MY_VIDEO = 5, |
7 | MY_VIDEO_PUBLISHED = 6, | 7 | MY_VIDEO_PUBLISHED = 6, |
8 | MY_VIDEO_IMPORT_SUCCESS = 7, | 8 | MY_VIDEO_IMPORT_SUCCESS = 7, |
9 | MY_VIDEO_IMPORT_ERROR = 8 | 9 | MY_VIDEO_IMPORT_ERROR = 8, |
10 | NEW_USER_REGISTRATION = 9, | ||
11 | NEW_FOLLOW = 10, | ||
12 | COMMENT_MENTION = 11 | ||
10 | } | 13 | } |
11 | 14 | ||
12 | export interface VideoInfo { | 15 | export interface VideoInfo { |
@@ -55,6 +58,25 @@ export interface UserNotification { | |||
55 | video: VideoInfo | 58 | video: VideoInfo |
56 | } | 59 | } |
57 | 60 | ||
61 | account?: { | ||
62 | id: number | ||
63 | displayName: string | ||
64 | name: string | ||
65 | } | ||
66 | |||
67 | actorFollow?: { | ||
68 | id: number | ||
69 | follower: { | ||
70 | name: string | ||
71 | displayName: string | ||
72 | } | ||
73 | following: { | ||
74 | type: 'account' | 'channel' | ||
75 | name: string | ||
76 | displayName: string | ||
77 | } | ||
78 | } | ||
79 | |||
58 | createdAt: string | 80 | createdAt: string |
59 | updatedAt: string | 81 | updatedAt: string |
60 | } | 82 | } |