You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
export enum NotificationAgentType {
|
|
NONE = 0,
|
|
EMAIL = 2,
|
|
DISCORD = 4,
|
|
TELEGRAM = 8,
|
|
PUSHOVER = 16,
|
|
PUSHBULLET = 32,
|
|
SLACK = 64,
|
|
}
|
|
|
|
export const hasNotificationAgentEnabled = (
|
|
agent: NotificationAgentType,
|
|
value: number
|
|
): boolean => {
|
|
return !!(value & agent);
|
|
};
|