Files
alrahma_sunday_school_api/apps/api/dist/services/notificationService.d.ts
T
2026-06-11 03:22:12 -04:00

32 lines
987 B
TypeScript

import { NotificationType, NotificationChannel } from '@rentaldrivego/database';
import type { NotificationTemplateVariables } from './notificationLocalizationService';
interface SendNotificationOptions {
type: NotificationType;
title?: string;
body?: string;
data?: Record<string, unknown>;
companyId?: string;
employeeId?: string;
renterId?: string;
billingAccountId?: string;
email?: string;
phone?: string;
fcmToken?: string;
channels: NotificationChannel[];
locale?: string;
templateKey?: string;
templateVariables?: NotificationTemplateVariables;
}
export declare function sendNotification(opts: SendNotificationOptions): Promise<{
channel: NotificationChannel;
success: boolean;
error?: string;
}[]>;
export declare function sendTransactionalEmail(opts: {
to: string;
subject: string;
html: string;
text: string;
}): Promise<void>;
export {};
//# sourceMappingURL=notificationService.d.ts.map