-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotification-channels.d.ts
More file actions
64 lines (54 loc) · 1.28 KB
/
notification-channels.d.ts
File metadata and controls
64 lines (54 loc) · 1.28 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* This file contains common structures both for account notifications and project notifications
* Interfaces represents how notification channels stored in DB records.
*/
/**
* Available channels
*/
export interface NotificationsChannelsDBScheme {
/**
* Alerts on email
*/
email?: NotificationsChannelSettingsDBScheme;
/**
* Alerts through the Slack
*/
slack?: NotificationsChannelSettingsDBScheme;
/**
* Alerts through the Loop
*/
loop?: NotificationsChannelSettingsDBScheme;
/**
* Alerts through the Telegram
*/
telegram?: NotificationsChannelSettingsDBScheme;
/**
* Browser pushes
*/
webPush?: NotificationsChannelSettingsDBScheme;
/**
* Pushes through the Hawk Desktop app
*/
desktopPush?: NotificationsChannelSettingsDBScheme;
/**
* Alerts through a custom Webhook URL
*/
webhook?: NotificationsChannelSettingsDBScheme;
}
/**
* Setting of a channel
*/
export interface NotificationsChannelSettingsDBScheme {
/**
* Allows to disable channel without removing endpoint
*/
isEnabled: boolean;
/**
* Endpoint: email, slack/loop webhook, telegram bot webhook, push subscription id, etc
*/
endpoint: string;
/**
* Minimal pause between second notification, in seconds
*/
minPeriod: number;
}