@punks/backend-entity-manager 0.0.357 → 0.0.359
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.
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/email.d.ts +10 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/email.d.ts +10 -0
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -40400,6 +40400,7 @@ let AwsSesEmailProvider = class AwsSesEmailProvider {
|
|
|
40400
40400
|
bcc: input.bcc ?? templateData.bcc,
|
|
40401
40401
|
cc: input.cc ?? templateData.cc,
|
|
40402
40402
|
from: input.from ?? templateData.from,
|
|
40403
|
+
attachments: input.attachments,
|
|
40403
40404
|
});
|
|
40404
40405
|
}
|
|
40405
40406
|
async sendHtmlEmail(input) {
|
|
@@ -40501,6 +40502,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
40501
40502
|
cc: input.cc ?? templateData.cc,
|
|
40502
40503
|
from: input.from ?? templateData.from,
|
|
40503
40504
|
to: input.to ?? templateData.to,
|
|
40505
|
+
attachments: input.attachments?.map((attachment) => ({
|
|
40506
|
+
...attachment,
|
|
40507
|
+
content: attachment.content instanceof Buffer
|
|
40508
|
+
? attachment.content.toString("utf-8")
|
|
40509
|
+
: attachment.content,
|
|
40510
|
+
})),
|
|
40504
40511
|
});
|
|
40505
40512
|
return;
|
|
40506
40513
|
}
|
|
@@ -40526,6 +40533,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
40526
40533
|
...processedPayload,
|
|
40527
40534
|
},
|
|
40528
40535
|
templateId: templateData.sendgridTemplateId,
|
|
40536
|
+
attachments: input.attachments?.map((attachment) => ({
|
|
40537
|
+
...attachment,
|
|
40538
|
+
content: attachment.content instanceof Buffer
|
|
40539
|
+
? attachment.content.toString("utf-8")
|
|
40540
|
+
: attachment.content,
|
|
40541
|
+
})),
|
|
40529
40542
|
});
|
|
40530
40543
|
if (sendgridSettings.value.loggingEnabled) {
|
|
40531
40544
|
this.logger.info("Sending templated email", {
|