notification

This commit is contained in:
2026-02-23 10:47:23 +03:30
parent 1e7ad2f72e
commit 8303a4c108
14 changed files with 245 additions and 466 deletions
@@ -3,11 +3,7 @@ export enum NotifChannelEnum {
SMS = 'sms',
PUSH = 'push',
}
export enum NotifTypeEnum {
TRANSACTIONAL = 'transactional',
PROMOTIONAL = 'promotional',
SYSTEM = 'system',
}
export enum NotifEvent {
NEW_REQUEST = 'newRequest',
INVOICED = 'invoiced',
@@ -25,28 +21,13 @@ export interface NotifRequestMessage {
templateId: string;
parameters?: Record<string, string>;
};
pushNotif: {
title: string;
content: string;
icon: string;
action: {
type: string; //view order
url: string;
};
};
}
export interface NotifRequest {
// requestId: string;
// timestamp: Date;
// notifType: NotifTypeEnum;
// channels: NotifChannelEnum[];
channels: NotifChannelEnum[];
recipients: recipientType[];
message: NotifRequestMessage;
metadata: {
priority: number;
// retries: number;
};
}
//************************************************ */
interface INotifySmsPayload {