@punks/backend-entity-manager 0.0.44 → 0.0.46

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.
@@ -4,10 +4,12 @@ import { UserEntityManager } from "../../entities/users/user.manager";
4
4
  import { AppUserContext } from "../../infrastructure/authentication";
5
5
  import { UserRegistrationData } from "./auth.dto";
6
6
  import { OrganizationEntityManager } from "../../entities/organizations/organization.manager";
7
+ import { UserProfileEntityManager } from "../../entities/userProfiles/userProfile.manager";
7
8
  export declare class AuthUserService implements IUserService<UserEntity, AppUserContext, UserRegistrationData> {
8
9
  private readonly userManager;
10
+ private readonly userProfileManager;
9
11
  private readonly organizationsManager;
10
- constructor(userManager: UserEntityManager, organizationsManager: OrganizationEntityManager);
12
+ constructor(userManager: UserEntityManager, userProfileManager: UserProfileEntityManager, organizationsManager: OrganizationEntityManager);
11
13
  getById(id: string): Promise<UserEntity>;
12
14
  getByEmail(email: string, context?: AppUserContext | undefined): Promise<UserEntity>;
13
15
  getByUserName(userName: string, context?: AppUserContext | undefined): Promise<UserEntity>;
package/dist/esm/index.js CHANGED
@@ -19049,8 +19049,8 @@ let UserRegistrationHandler = class UserRegistrationHandler {
19049
19049
  templateId: AuthenticationEmailTemplates.Registration,
19050
19050
  languageId,
19051
19051
  payload: {
19052
- firstName: user.profile?.firstName,
19053
- lastName: user.profile?.lastName,
19052
+ firstName: user.profile.firstName,
19053
+ lastName: user.profile.lastName,
19054
19054
  callbackUrl: callback.urlTemplate.replace(callback.tokenPlaceholder, token),
19055
19055
  },
19056
19056
  });
@@ -25040,6 +25040,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
25040
25040
  }
25041
25041
  const request = removeUndefinedProps({
25042
25042
  from: input.from ?? templateData.from ?? sendgridSettings.value.defaultSender,
25043
+ to: sanitizeArray(input.to ?? templateData.to),
25043
25044
  cc: sanitizeArray([
25044
25045
  ...(input.cc ?? templateData.cc ?? []),
25045
25046
  ...(sendgridSettings.value.defaultCc ?? []),
@@ -25077,6 +25078,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
25077
25078
  async sendHtmlEmail(input) {
25078
25079
  const request = removeUndefinedProps({
25079
25080
  from: input.from ?? sendgridSettings.value.defaultSender,
25081
+ to: sanitizeArray(input.to),
25080
25082
  cc: sanitizeArray(input.cc),
25081
25083
  bcc: sanitizeArray([
25082
25084
  ...(input.bcc ?? []),