@punks/backend-entity-manager 0.0.502 → 0.0.503

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.
@@ -1,6 +1,6 @@
1
1
  export type AwsSesEmailTemplateData = {
2
2
  subjectTemplate: string;
3
- htmlTemplate: string;
3
+ bodyTemplate: string;
4
4
  from?: string;
5
5
  to?: string[];
6
6
  cc?: string[];
@@ -1,2 +1,2 @@
1
1
  import { AwsSesEmailTemplateData } from "../abstractions";
2
- export declare const WpAwsSesEmailTemplate: (templateId: string, sendgridTemplateData: AwsSesEmailTemplateData) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
2
+ export declare const WpAwsSesEmailTemplate: (templateId: string, templateData: AwsSesEmailTemplateData) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
package/dist/esm/index.js CHANGED
@@ -36167,9 +36167,9 @@ class AwsSesEmailTemplate {
36167
36167
  }
36168
36168
  }
36169
36169
 
36170
- const WpAwsSesEmailTemplate = (templateId, sendgridTemplateData) => applyDecorators(Injectable(), SetMetadata(EntityManagerSymbols.EmailTemplate, {
36170
+ const WpAwsSesEmailTemplate = (templateId, templateData) => applyDecorators(Injectable(), SetMetadata(EntityManagerSymbols.EmailTemplate, {
36171
36171
  templateId,
36172
- }), SetMetadata(AwsSesModuleSymbols.EmailTemplate, sendgridTemplateData));
36172
+ }), SetMetadata(AwsSesModuleSymbols.EmailTemplate, templateData));
36173
36173
 
36174
36174
  const awsSesSettings = new AppInMemorySettings("awsSesSettings");
36175
36175
 
@@ -41292,7 +41292,7 @@ let AwsSesEmailProvider = class AwsSesEmailProvider {
41292
41292
  const processedPayload = await template.processPayload(input.payload);
41293
41293
  const templateData = await template.getTemplateData(processedPayload);
41294
41294
  await this.sendHtmlEmail({
41295
- bodyTemplate: templateData.htmlTemplate,
41295
+ bodyTemplate: templateData.bodyTemplate,
41296
41296
  payload: processedPayload,
41297
41297
  subjectTemplate: templateData.subjectTemplate,
41298
41298
  to: input.to ?? templateData.to,