-
Notifications
You must be signed in to change notification settings - Fork 35
/
subscriptions.js
25 lines (25 loc) · 1.11 KB
/
subscriptions.js
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
/**
* Subscription types used by the notification system
* @readonly
* @enum {string}
*/
export const SUBSCRIPTION_TYPE = {
/** All: This subscription type is not defined yet. */
all: 'all',
/** Incident: Users with this subscription type will be notified
* when the incident associated is updated.
* This subscription type needs an incident_id value associated. */
incident: 'incident',
/** New Incident: Users with this subscription type will be notified
* when a new Incident is created. */
newIncidents: 'new-incidents',
/** Entitys: Users can subscribe to an specific Entity.
* The user with this subscription type will be notified when a
* new Incident associated with an specific Entity is created or
* when an existing Incident is updated to be associated with that Entity. */
entity: 'entity',
/** Submission promoted: Users that create submissions are automatically subscribed to their promotions.
* The user with this subscription type will be notified when a
* new Incident associated with an specific Submission is created */
submissionPromoted: 'submission-promoted',
};