feat(notifications): add pushover integration (#574)

* feat(notifications): add pushover integration

* refactor(pushover): group i18n translations
This commit is contained in:
Jakob Ankarhem
2021-01-05 05:19:25 +01:00
committed by GitHub
parent 67f2b57f00
commit ee5d0181fc
10 changed files with 558 additions and 0 deletions

View File

@@ -92,11 +92,21 @@ export interface NotificationAgentTelegram extends NotificationAgentConfig {
};
}
export interface NotificationAgentPushover extends NotificationAgentConfig {
options: {
accessToken: string;
userToken: string;
priority: number;
sound: string;
};
}
interface NotificationAgents {
email: NotificationAgentEmail;
discord: NotificationAgentDiscord;
slack: NotificationAgentSlack;
telegram: NotificationAgentTelegram;
pushover: NotificationAgentPushover;
}
interface NotificationSettings {
@@ -174,6 +184,16 @@ class Settings {
chatId: '',
},
},
pushover: {
enabled: false,
types: 0,
options: {
accessToken: '',
userToken: '',
priority: 0,
sound: '',
},
},
},
},
};