archetecture security fix
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
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
|
||||
Reference in New Issue
Block a user