Files
dmenu-api/src/modules/notifications/interfaces/notification-queue.interface.ts
T
2025-12-12 16:45:53 +03:30

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;
}