notifcation
This commit is contained in:
@@ -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',
|
||||
}
|
||||
Reference in New Issue
Block a user