@punks/backend-entity-manager 0.0.501 → 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.
package/dist/cjs/index.js CHANGED
@@ -23583,7 +23583,14 @@ let UserPasswordResetCompleteHandler = class UserPasswordResetCompleteHandler {
23583
23583
  }
23584
23584
  : {}),
23585
23585
  });
23586
- return user.id;
23586
+ const token = await this.generateUserJwtToken(user, input.context);
23587
+ return {
23588
+ userId: user.id,
23589
+ token,
23590
+ };
23591
+ }
23592
+ async generateUserJwtToken(user, context) {
23593
+ return await this.jwtProvider.sign(extractUserTokenData(user, context));
23587
23594
  }
23588
23595
  async decodeToken(token) {
23589
23596
  return await this.jwtProvider.verify(token);
@@ -36175,9 +36182,9 @@ class AwsSesEmailTemplate {
36175
36182
  }
36176
36183
  }
36177
36184
 
36178
- const WpAwsSesEmailTemplate = (templateId, sendgridTemplateData) => common.applyDecorators(common.Injectable(), common.SetMetadata(EntityManagerSymbols.EmailTemplate, {
36185
+ const WpAwsSesEmailTemplate = (templateId, templateData) => common.applyDecorators(common.Injectable(), common.SetMetadata(EntityManagerSymbols.EmailTemplate, {
36179
36186
  templateId,
36180
- }), common.SetMetadata(AwsSesModuleSymbols.EmailTemplate, sendgridTemplateData));
36187
+ }), common.SetMetadata(AwsSesModuleSymbols.EmailTemplate, templateData));
36181
36188
 
36182
36189
  const awsSesSettings = new AppInMemorySettings("awsSesSettings");
36183
36190
 
@@ -41300,7 +41307,7 @@ let AwsSesEmailProvider = class AwsSesEmailProvider {
41300
41307
  const processedPayload = await template.processPayload(input.payload);
41301
41308
  const templateData = await template.getTemplateData(processedPayload);
41302
41309
  await this.sendHtmlEmail({
41303
- bodyTemplate: templateData.htmlTemplate,
41310
+ bodyTemplate: templateData.bodyTemplate,
41304
41311
  payload: processedPayload,
41305
41312
  subjectTemplate: templateData.subjectTemplate,
41306
41313
  to: input.to ?? templateData.to,