diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-02 16:37:43 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-01-09 11:15:15 +0100 |
commit | dc13348070d808d0ba3feb56a435b835c2e7e791 (patch) | |
tree | 887202a33f1aa680fd8ece6ee465381f3931c64e /shared/models | |
parent | 6e7e63b83f08ba68edc2bb9f72ff03d1802e45df (diff) | |
download | PeerTube-dc13348070d808d0ba3feb56a435b835c2e7e791.tar.gz PeerTube-dc13348070d808d0ba3feb56a435b835c2e7e791.tar.zst PeerTube-dc13348070d808d0ba3feb56a435b835c2e7e791.zip |
Add import finished and video published notifs
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user-notification-setting.model.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user-notification.model.ts | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/shared/models/users/user-notification-setting.model.ts b/shared/models/users/user-notification-setting.model.ts index 7cecd70a2..55d351abf 100644 --- a/shared/models/users/user-notification-setting.model.ts +++ b/shared/models/users/user-notification-setting.model.ts | |||
@@ -10,4 +10,6 @@ export interface UserNotificationSetting { | |||
10 | newCommentOnMyVideo: UserNotificationSettingValue | 10 | newCommentOnMyVideo: UserNotificationSettingValue |
11 | videoAbuseAsModerator: UserNotificationSettingValue | 11 | videoAbuseAsModerator: UserNotificationSettingValue |
12 | blacklistOnMyVideo: UserNotificationSettingValue | 12 | blacklistOnMyVideo: UserNotificationSettingValue |
13 | myVideoPublished: UserNotificationSettingValue | ||
14 | myVideoImportFinished: UserNotificationSettingValue | ||
13 | } | 15 | } |
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index 39beb2350..ee9ac275a 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts | |||
@@ -3,10 +3,13 @@ export enum UserNotificationType { | |||
3 | NEW_COMMENT_ON_MY_VIDEO = 2, | 3 | NEW_COMMENT_ON_MY_VIDEO = 2, |
4 | NEW_VIDEO_ABUSE_FOR_MODERATORS = 3, | 4 | NEW_VIDEO_ABUSE_FOR_MODERATORS = 3, |
5 | BLACKLIST_ON_MY_VIDEO = 4, | 5 | BLACKLIST_ON_MY_VIDEO = 4, |
6 | UNBLACKLIST_ON_MY_VIDEO = 5 | 6 | UNBLACKLIST_ON_MY_VIDEO = 5, |
7 | MY_VIDEO_PUBLISHED = 6, | ||
8 | MY_VIDEO_IMPORT_SUCCESS = 7, | ||
9 | MY_VIDEO_IMPORT_ERROR = 8 | ||
7 | } | 10 | } |
8 | 11 | ||
9 | interface VideoInfo { | 12 | export interface VideoInfo { |
10 | id: number | 13 | id: number |
11 | uuid: string | 14 | uuid: string |
12 | name: string | 15 | name: string |
@@ -24,12 +27,22 @@ export interface UserNotification { | |||
24 | } | 27 | } |
25 | } | 28 | } |
26 | 29 | ||
30 | videoImport?: { | ||
31 | id: number | ||
32 | video?: VideoInfo | ||
33 | torrentName?: string | ||
34 | magnetUri?: string | ||
35 | targetUrl?: string | ||
36 | } | ||
37 | |||
27 | comment?: { | 38 | comment?: { |
28 | id: number | 39 | id: number |
40 | threadId: number | ||
29 | account: { | 41 | account: { |
30 | id: number | 42 | id: number |
31 | displayName: string | 43 | displayName: string |
32 | } | 44 | } |
45 | video: VideoInfo | ||
33 | } | 46 | } |
34 | 47 | ||
35 | videoAbuse?: { | 48 | videoAbuse?: { |