aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/users/user-notification-setting.model.ts
blob: 35656f14c91130429c2fa8e1a519c1ccca1e03fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export const enum UserNotificationSettingValue {
  NONE = 0,
  WEB = 1 << 0,
  EMAIL = 1 << 1
}

export interface UserNotificationSetting {
  abuseAsModerator: UserNotificationSettingValue
  videoAutoBlacklistAsModerator: UserNotificationSettingValue
  newUserRegistration: UserNotificationSettingValue

  newVideoFromSubscription: UserNotificationSettingValue

  blacklistOnMyVideo: UserNotificationSettingValue
  myVideoPublished: UserNotificationSettingValue
  myVideoImportFinished: UserNotificationSettingValue

  commentMention: UserNotificationSettingValue
  newCommentOnMyVideo: UserNotificationSettingValue

  newFollow: UserNotificationSettingValue
  newInstanceFollower: UserNotificationSettingValue
  autoInstanceFollowing: UserNotificationSettingValue

  abuseStateChange: UserNotificationSettingValue
  abuseNewMessage: UserNotificationSettingValue

  newPeerTubeVersion: UserNotificationSettingValue
  newPluginVersion: UserNotificationSettingValue

  myVideoEditionFinished: UserNotificationSettingValue
}