feat: Add Gotify to notification channels

- Add Gotify  as a new channel type in the notification settings. The Gotify channel will use the `api_token` and `server_url` field for API key storage in PB.
This commit is contained in:
Tola Leng
2025-09-06 19:33:14 +07:00
parent e6093f9fe2
commit 87c829e100
3 changed files with 57 additions and 2 deletions
@@ -7,7 +7,7 @@ export interface AlertConfiguration {
collectionId?: string;
collectionName?: string;
service_id: string;
notification_type: "telegram" | "discord" | "slack" | "signal" | "google_chat" | "email" | "ntfy" | "pushover" | "notifiarr" | "webhook";
notification_type: "telegram" | "discord" | "slack" | "signal" | "google_chat" | "email" | "ntfy" | "pushover" | "notifiarr" | "gotify" | "webhook";
telegram_chat_id?: string;
discord_webhook_url?: string;
signal_number?: string;
@@ -31,6 +31,7 @@ export interface AlertConfiguration {
ntfy_endpoint?: string;
api_token?: string;
user_key?: string;
server_url?: string;
webhook_url?: string;
webhook_payload_template?: string;
}
@@ -95,6 +96,10 @@ export const alertConfigService = {
} else if (config.notification_type === "notifiarr") {
cleanConfig.api_token = config.api_token || "";
cleanConfig.channel_id = config.channel_id || "";
} else if (config.notification_type === "gotify") {
cleanConfig.api_token = config.api_token || "";
cleanConfig.server_url = config.server_url || "";
} else if (config.notification_type === "webhook") {
cleanConfig.webhook_url = config.webhook_url || "";