notifcation

This commit is contained in:
2025-12-09 10:19:28 +03:30
parent 44fd209c92
commit ead1e096a5
16 changed files with 510 additions and 606 deletions
@@ -1,13 +1,14 @@
import { NotificationChannel } from '../entities/notification.entity';
import type { NotificationType } from './notification.interface';
import type { NotificationTitle } from '../entities/notification.entity';
export interface NotificationQueueJob {
restaurantId: string;
userId?: string;
notificationType: string;
channel: NotificationChannel;
payload: Record<string, any>;
title: NotificationTitle;
content: string;
idempotencyKey?: string;
notificationId?: string; // For retries
notificationType: NotificationType;
}
export interface NotificationQueueJobResult {
@@ -16,4 +17,3 @@ export interface NotificationQueueJobResult {
providerResponse?: Record<string, any>;
error?: string;
}
@@ -0,0 +1,6 @@
export enum NotificationType {
NONE = 'none',
SMS = 'sms',
PUSH = 'push',
Both = 'both',
}