32 lines
987 B
TypeScript
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
|