@punks/backend-entity-manager 0.0.75 → 0.0.76

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 CHANGED
@@ -26524,6 +26524,31 @@ exports.SendgridEmailModule = SendgridEmailModule_1 = __decorate([
26524
26524
  })
26525
26525
  ], exports.SendgridEmailModule);
26526
26526
 
26527
+ exports.InMemoryEmailProvider = class InMemoryEmailProvider {
26528
+ constructor() {
26529
+ this.sentEmails = [];
26530
+ }
26531
+ async sendTemplatedEmail(input, template) {
26532
+ this.sentEmails.push({
26533
+ input,
26534
+ template,
26535
+ type: "templated",
26536
+ });
26537
+ }
26538
+ async sendHtmlEmail(input) {
26539
+ this.sentEmails.push({
26540
+ input,
26541
+ type: "html",
26542
+ });
26543
+ }
26544
+ getSentEmails() {
26545
+ return this.sentEmails;
26546
+ }
26547
+ };
26548
+ exports.InMemoryEmailProvider = __decorate([
26549
+ WpEmailProvider("in-memory")
26550
+ ], exports.InMemoryEmailProvider);
26551
+
26527
26552
  exports.AUTHENTICATION_EVENTS_NAMESPACE = AUTHENTICATION_EVENTS_NAMESPACE;
26528
26553
  exports.AppExceptionsFilterBase = AppExceptionsFilterBase;
26529
26554
  exports.AppInMemorySettings = AppInMemorySettings;