X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fusers%2Fuser-notification-setting.model.ts;h=35656f14c91130429c2fa8e1a519c1ccca1e03fd;hb=1808a1f8e4b7b102823492a2007a46929aebf189;hp=531e12bba3a3756160f51c39007dae6ac0e32884;hpb=88108880bbdba473cfe36ecbebc1c3c4f972e102;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/users/user-notification-setting.model.ts b/shared/models/users/user-notification-setting.model.ts index 531e12bba..35656f14c 100644 --- a/shared/models/users/user-notification-setting.model.ts +++ b/shared/models/users/user-notification-setting.model.ts @@ -1,17 +1,32 @@ -export enum UserNotificationSettingValue { +export const enum UserNotificationSettingValue { NONE = 0, WEB = 1 << 0, EMAIL = 1 << 1 } export interface UserNotificationSetting { + abuseAsModerator: UserNotificationSettingValue + videoAutoBlacklistAsModerator: UserNotificationSettingValue + newUserRegistration: UserNotificationSettingValue + newVideoFromSubscription: UserNotificationSettingValue - newCommentOnMyVideo: UserNotificationSettingValue - videoAbuseAsModerator: UserNotificationSettingValue + blacklistOnMyVideo: UserNotificationSettingValue myVideoPublished: UserNotificationSettingValue myVideoImportFinished: UserNotificationSettingValue - newUserRegistration: UserNotificationSettingValue - newFollow: UserNotificationSettingValue + commentMention: UserNotificationSettingValue + newCommentOnMyVideo: UserNotificationSettingValue + + newFollow: UserNotificationSettingValue + newInstanceFollower: UserNotificationSettingValue + autoInstanceFollowing: UserNotificationSettingValue + + abuseStateChange: UserNotificationSettingValue + abuseNewMessage: UserNotificationSettingValue + + newPeerTubeVersion: UserNotificationSettingValue + newPluginVersion: UserNotificationSettingValue + + myVideoEditionFinished: UserNotificationSettingValue }