fiberx-backend-toolkit 0.1.3 → 0.1.4
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.
|
@@ -150,7 +150,7 @@ class EmailDeliveryProcessor {
|
|
|
150
150
|
this.logger.error(`Failed to Send email for Record ${record_id}`, { email_sent, recipient_email });
|
|
151
151
|
throw new Error(`Failed to Send email for Record ${record_id}`);
|
|
152
152
|
}
|
|
153
|
-
await this.adapter.updateEmailRecordAsCompleted(record);
|
|
153
|
+
await this.adapter.updateEmailRecordAsCompleted(record, rendered_subject, rendered_body);
|
|
154
154
|
this.logger.success(`Completed Processing email queue Record ${record_id}`, { record_id, recipient_email });
|
|
155
155
|
}
|
|
156
156
|
catch (error) {
|
|
@@ -101,6 +101,6 @@ export interface EmailDeliveryQueueAdapter<TQueueEntity, TTemplate, TBaseTemplat
|
|
|
101
101
|
getLocalEmailPreviewFileBaseName(record: TQueueEntity): string;
|
|
102
102
|
getFullEmailPayload(record: TQueueEntity, subject: string, body: string, payload: EmailBasePayloadInterface): Promise<Record<string, any>>;
|
|
103
103
|
getMailerTransporterConfig(record: TQueueEntity, config: TMailerConfig): Promise<MailerTransporterConfigInterface>;
|
|
104
|
-
updateEmailRecordAsCompleted(record: TQueueEntity): Promise<TQueueEntity>;
|
|
104
|
+
updateEmailRecordAsCompleted(record: TQueueEntity, rendered_subject: string, rendered_body: string): Promise<TQueueEntity>;
|
|
105
105
|
updateEmailRecordAsFailed(record: TQueueEntity, message?: string): Promise<TQueueEntity>;
|
|
106
106
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiberx-backend-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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",
|