refactor to use repository

This commit is contained in:
Alex Holliday committed 2026-01-08 17:47:26 +00:00
1 parent c42932a7b3
commit 58a77d6aa2
11 files changed
+120 -44

No files matched your search

+5 -5
View File
@@ -1,19 +1,19 @@
export const ChannelTypes = ["email", "slack", "discord", "webhook"] as const;
export type ChannelType = (typeof ChannelTypes)[number];
export interface INotificationChannelConfig {
export interface NotificationChannelConfig {
url?: string; // For webhook, slack, discord
emailAddress?: string; // For email
}
export interface INotificationChannel {
_id: string;
export interface NotificationChannel {
id: string;
orgId: string;
teamId: string;
name: string;
type: ChannelType;
config: INotificationChannelConfig;
isActive: boolean;
config: NotificationChannelConfig;
isActive: boolean | unknown;
createdBy: string;
updatedBy: string;
createdAt: Date;