fiberx-backend-toolkit 0.0.78 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,7 @@ class MailerDataLoaderUtil {
|
|
|
116
116
|
if (templates_by_notification_code.has(code)) {
|
|
117
117
|
return templates_by_notification_code.get(code) ?? null;
|
|
118
118
|
}
|
|
119
|
-
return await this.provider.
|
|
119
|
+
return await this.provider.fetchEmailContentTemplateByNotificationCode(code);
|
|
120
120
|
}
|
|
121
121
|
// --------------------------
|
|
122
122
|
// Refresh
|
|
@@ -44,7 +44,7 @@ export interface MailerDataLoaderProvider<TMailerConfig, TBaseTemplate, TNotific
|
|
|
44
44
|
fetchBaseTemplate(): Promise<TBaseTemplate | null>;
|
|
45
45
|
fetchNotificationTypes(): Promise<TNotificationType[]>;
|
|
46
46
|
fetchEmailContentTemplates(): Promise<TEmailContentTempltae[]>;
|
|
47
|
-
|
|
47
|
+
fetchEmailContentTemplateByNotificationCode(code: string): Promise<TEmailContentTempltae | null>;
|
|
48
48
|
getNotificaionCodeFromNotification(notification: TNotificationType): string;
|
|
49
49
|
getNotificaionCodeFromTemplate(email_content_template: TEmailContentTempltae): string;
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiberx-backend-toolkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.79",
|
|
4
4
|
"description": "A TypeScript backend toolkit providing shared domain logic, infrastructure helpers, and utilities for FiberX server-side applications and services.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|