This commit is contained in:
2025-12-12 22:42:58 +03:30
parent 10e13c7901
commit 0434329db6
5 changed files with 42 additions and 36 deletions
@@ -15,7 +15,7 @@ export enum NotifTitleEnum {
REVIEW_CREATED = 'review.created',
ORDER_STATUS_CHANGED = 'order.status.changed',
}
export type recipientType = { userId: string; restaurantId: string } | { adminId: string; restaurantId: string };
export type recipientType = { userId: string } | { adminId: string };
export interface NotifRequestMessage {
subject: NotifTitleEnum;
@@ -37,6 +37,7 @@ export interface NotifRequest {
// timestamp: Date;
// notifType: NotifTypeEnum;
// channels: NotifChannelEnum[];
restaurantId: string;
recipients: recipientType[];
message: NotifRequestMessage;
metadata: {