@punks/backend-entity-manager 0.0.502 → 0.0.504

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,7 @@
1
1
  export type AwsSesEmailTemplateData = {
2
+ type: "html";
2
3
  subjectTemplate: string;
3
- htmlTemplate: string;
4
+ bodyTemplate: string;
4
5
  from?: string;
5
6
  to?: string[];
6
7
  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/index.d.ts CHANGED
@@ -3635,8 +3635,9 @@ declare class AwsDynamoDbModule {
3635
3635
  }
3636
3636
 
3637
3637
  type AwsSesEmailTemplateData = {
3638
+ type: "html";
3638
3639
  subjectTemplate: string;
3639
- htmlTemplate: string;
3640
+ bodyTemplate: string;
3640
3641
  from?: string;
3641
3642
  to?: string[];
3642
3643
  cc?: string[];
@@ -3649,7 +3650,7 @@ declare abstract class AwsSesEmailTemplate<TPayload, TAugmentedPayload = TPayloa
3649
3650
  getTemplateData(payload: TAugmentedPayload): Promise<AwsSesEmailTemplateData>;
3650
3651
  }
3651
3652
 
3652
- declare const WpAwsSesEmailTemplate: (templateId: string, sendgridTemplateData: AwsSesEmailTemplateData) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
3653
+ declare const WpAwsSesEmailTemplate: (templateId: string, templateData: AwsSesEmailTemplateData) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
3653
3654
 
3654
3655
  type AwsSesSettings = {
3655
3656
  awsAccessKeyId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.502",
3
+ "version": "0.0.504",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",