Add Telegram as a new notification type, allowing users to receive monitor alerts via a Telegram bot. Configuration requires: - Bot token (obtained from @BotFather) - Chat ID (user, group, or channel) Changes: - TelegramProvider: sends HTML-formatted messages via Telegram Bot API - NotificationsService: route telegram type to TelegramProvider - Notification model/types: add 'telegram' to NotificationChannel enum - Server validation: telegram schema (accessToken + address/chat_id) - Client Types/Validation: telegram schema with accessToken + address - useNotificationForm: handle telegram defaults - Notifications create page: render Telegram config UI - en.json: add telegram i18n keys
36 lines
1.9 KiB
TypeScript
36 lines
1.9 KiB
TypeScript
// Business services
|
|
export * from "@/service/business/checkService.js";
|
|
export * from "@/service/business/diagnosticService.js";
|
|
export * from "@/service/business/geoChecksService.js";
|
|
export * from "@/service/business/incidentService.js";
|
|
export * from "@/service/business/inviteService.js";
|
|
export * from "@/service/business/maintenanceWindowService.js";
|
|
export * from "@/service/business/monitorService.js";
|
|
export * from "@/service/business/statusPageService.js";
|
|
export * from "@/service/business/userService.js";
|
|
|
|
// Infrastructure services
|
|
export * from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueue.js";
|
|
export * from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js";
|
|
export * from "@/service/infrastructure/notificationMessageBuilder.js";
|
|
export * from "@/service/infrastructure/bufferService.js";
|
|
export * from "@/service/infrastructure/emailService.js";
|
|
export * from "@/service/infrastructure/globalPingService.js";
|
|
export * from "@/service/infrastructure/networkService.js";
|
|
export * from "@/service/infrastructure/notificationsService.js";
|
|
export * from "@/service/infrastructure/statusService.js";
|
|
|
|
// Notification providers
|
|
export * from "@/service/infrastructure/notificationProviders/discord.js";
|
|
export * from "@/service/infrastructure/notificationProviders/email.js";
|
|
export * from "@/service/infrastructure/notificationProviders/INotificationProvider.js";
|
|
export * from "@/service/infrastructure/notificationProviders/matrix.js";
|
|
export * from "@/service/infrastructure/notificationProviders/pagerduty.js";
|
|
export * from "@/service/infrastructure/notificationProviders/slack.js";
|
|
export * from "@/service/infrastructure/notificationProviders/teams.js";
|
|
export * from "@/service/infrastructure/notificationProviders/webhook.js";
|
|
export * from "@/service/infrastructure/notificationProviders/telegram.js";
|
|
|
|
// System services
|
|
export * from "@/service/system/settingsService.js";
|