refactor to use repository
This commit is contained in:
1 parent
c42932a7b3
commit
58a77d6aa2
11 files changed
+120
-44
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user