aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/users/user-notification-setting.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models/src/users/user-notification-setting.model.ts')
-rw-r--r--packages/models/src/users/user-notification-setting.model.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/models/src/users/user-notification-setting.model.ts b/packages/models/src/users/user-notification-setting.model.ts
new file mode 100644
index 000000000..fbd94994e
--- /dev/null
+++ b/packages/models/src/users/user-notification-setting.model.ts
@@ -0,0 +1,34 @@
1export const UserNotificationSettingValue = {
2 NONE: 0,
3 WEB: 1 << 0,
4 EMAIL: 1 << 1
5} as const
6
7export type UserNotificationSettingValueType = typeof UserNotificationSettingValue[keyof typeof UserNotificationSettingValue]
8
9export interface UserNotificationSetting {
10 abuseAsModerator: UserNotificationSettingValueType
11 videoAutoBlacklistAsModerator: UserNotificationSettingValueType
12 newUserRegistration: UserNotificationSettingValueType
13
14 newVideoFromSubscription: UserNotificationSettingValueType
15
16 blacklistOnMyVideo: UserNotificationSettingValueType
17 myVideoPublished: UserNotificationSettingValueType
18 myVideoImportFinished: UserNotificationSettingValueType
19
20 commentMention: UserNotificationSettingValueType
21 newCommentOnMyVideo: UserNotificationSettingValueType
22
23 newFollow: UserNotificationSettingValueType
24 newInstanceFollower: UserNotificationSettingValueType
25 autoInstanceFollowing: UserNotificationSettingValueType
26
27 abuseStateChange: UserNotificationSettingValueType
28 abuseNewMessage: UserNotificationSettingValueType
29
30 newPeerTubeVersion: UserNotificationSettingValueType
31 newPluginVersion: UserNotificationSettingValueType
32
33 myVideoStudioEditionFinished: UserNotificationSettingValueType
34}