feat(notifications): add slack notification agent

re #365
This commit is contained in:
sct
2020-12-25 19:02:04 +09:00
parent 5d06a34731
commit 1163e81adc
12 changed files with 657 additions and 24 deletions

View File

@@ -66,6 +66,12 @@ export interface NotificationAgentDiscord extends NotificationAgentConfig {
};
}
export interface NotificationAgentSlack extends NotificationAgentConfig {
options: {
webhookUrl: string;
};
}
export interface NotificationAgentEmail extends NotificationAgentConfig {
options: {
emailFrom: string;
@@ -81,6 +87,7 @@ export interface NotificationAgentEmail extends NotificationAgentConfig {
interface NotificationAgents {
email: NotificationAgentEmail;
discord: NotificationAgentDiscord;
slack: NotificationAgentSlack;
}
interface NotificationSettings {
@@ -142,6 +149,13 @@ class Settings {
webhookUrl: '',
},
},
slack: {
enabled: false,
types: 0,
options: {
webhookUrl: '',
},
},
},
},
};