22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import type { NotificationType } from './notification.interface';
|
|
import type { NotifTitleEnum } from './notification.interface';
|
|
|
|
export interface NotificationQueueJob {
|
|
restaurantId: string;
|
|
userId?: string;
|
|
title: NotifTitleEnum;
|
|
content: string;
|
|
idempotencyKey?: string;
|
|
notificationId?: string; // For retries
|
|
notificationType: NotificationType;
|
|
pushToken?: string; // FCM token for push notifications
|
|
pushTokens?: string[]; // Multiple FCM tokens for bulk push notifications
|
|
}
|
|
|
|
export interface NotificationQueueJobResult {
|
|
success: boolean;
|
|
notificationId: string;
|
|
providerResponse?: Record<string, any>;
|
|
error?: string;
|
|
}
|