@experts_hub/shared 1.0.350 → 1.0.352

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/index.d.mts CHANGED
@@ -85,7 +85,6 @@ declare enum SendGuestOtpScopeEnum {
85
85
  FREELANCER = "FREELANCER"
86
86
  }
87
87
  declare class SendGuestOtpDto {
88
- fullName: string;
89
88
  target: string;
90
89
  fallbackTarget: string;
91
90
  purpose: SendGuestOtpPurposeEnum;
@@ -178,12 +177,8 @@ declare class ClientProfileQuestionDto {
178
177
  }
179
178
 
180
179
  declare class ClientCreateAccountDto {
181
- firstName: string;
182
- lastName: string;
183
180
  email: string;
184
181
  companyName: string;
185
- password: string;
186
- confirmPassword: string;
187
182
  onBoardedBy: string;
188
183
  }
189
184
 
package/dist/index.d.ts CHANGED
@@ -85,7 +85,6 @@ declare enum SendGuestOtpScopeEnum {
85
85
  FREELANCER = "FREELANCER"
86
86
  }
87
87
  declare class SendGuestOtpDto {
88
- fullName: string;
89
88
  target: string;
90
89
  fallbackTarget: string;
91
90
  purpose: SendGuestOtpPurposeEnum;
@@ -178,12 +177,8 @@ declare class ClientProfileQuestionDto {
178
177
  }
179
178
 
180
179
  declare class ClientCreateAccountDto {
181
- firstName: string;
182
- lastName: string;
183
180
  email: string;
184
181
  companyName: string;
185
- password: string;
186
- confirmPassword: string;
187
182
  onBoardedBy: string;
188
183
  }
189
184
 
package/dist/index.js CHANGED
@@ -416,10 +416,6 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
416
416
  })(SendGuestOtpScopeEnum || {});
417
417
  var SendGuestOtpDto = class {
418
418
  };
419
- __decorateClass([
420
- (0, import_class_validator8.IsNotEmpty)({ message: "Please enter full name." }),
421
- (0, import_class_validator8.IsString)({ message: "Please enter valid full name." })
422
- ], SendGuestOtpDto.prototype, "fullName", 2);
423
419
  __decorateClass([
424
420
  (0, import_class_validator8.IsNotEmpty)({ message: "Please enter target." }),
425
421
  (0, import_class_validator8.IsString)({ message: "Please enter valid target." })
@@ -862,14 +858,6 @@ __decorateClass([
862
858
  var import_class_validator24 = require("class-validator");
863
859
  var ClientCreateAccountDto = class {
864
860
  };
865
- __decorateClass([
866
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter first name." }),
867
- (0, import_class_validator24.IsString)({ message: "Please enter valid first name." })
868
- ], ClientCreateAccountDto.prototype, "firstName", 2);
869
- __decorateClass([
870
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter last name." }),
871
- (0, import_class_validator24.IsString)({ message: "Please enter valid last name." })
872
- ], ClientCreateAccountDto.prototype, "lastName", 2);
873
861
  __decorateClass([
874
862
  (0, import_class_validator24.IsNotEmpty)({ message: "Please enter email." }),
875
863
  (0, import_class_validator24.IsEmail)(),
@@ -879,18 +867,6 @@ __decorateClass([
879
867
  (0, import_class_validator24.IsNotEmpty)({ message: "Please enter company name." }),
880
868
  (0, import_class_validator24.IsString)({ message: "Please enter valid company name." })
881
869
  ], ClientCreateAccountDto.prototype, "companyName", 2);
882
- __decorateClass([
883
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter password." }),
884
- (0, import_class_validator24.MinLength)(6),
885
- (0, import_class_validator24.MaxLength)(32),
886
- (0, import_class_validator24.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
887
- message: "Password must include letters, numbers and symbols."
888
- })
889
- ], ClientCreateAccountDto.prototype, "password", 2);
890
- __decorateClass([
891
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
892
- Match("password", { message: "Passwords do not match" })
893
- ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
894
870
  __decorateClass([
895
871
  (0, import_class_validator24.IsOptional)()
896
872
  ], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
package/dist/index.mjs CHANGED
@@ -184,10 +184,6 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
184
184
  })(SendGuestOtpScopeEnum || {});
185
185
  var SendGuestOtpDto = class {
186
186
  };
187
- __decorateClass([
188
- IsNotEmpty8({ message: "Please enter full name." }),
189
- IsString({ message: "Please enter valid full name." })
190
- ], SendGuestOtpDto.prototype, "fullName", 2);
191
187
  __decorateClass([
192
188
  IsNotEmpty8({ message: "Please enter target." }),
193
189
  IsString({ message: "Please enter valid target." })
@@ -665,22 +661,11 @@ __decorateClass([
665
661
  import {
666
662
  IsNotEmpty as IsNotEmpty21,
667
663
  IsEmail as IsEmail3,
668
- Matches as Matches4,
669
- MinLength as MinLength4,
670
- MaxLength as MaxLength4,
671
664
  IsString as IsString7,
672
665
  IsOptional as IsOptional6
673
666
  } from "class-validator";
674
667
  var ClientCreateAccountDto = class {
675
668
  };
676
- __decorateClass([
677
- IsNotEmpty21({ message: "Please enter first name." }),
678
- IsString7({ message: "Please enter valid first name." })
679
- ], ClientCreateAccountDto.prototype, "firstName", 2);
680
- __decorateClass([
681
- IsNotEmpty21({ message: "Please enter last name." }),
682
- IsString7({ message: "Please enter valid last name." })
683
- ], ClientCreateAccountDto.prototype, "lastName", 2);
684
669
  __decorateClass([
685
670
  IsNotEmpty21({ message: "Please enter email." }),
686
671
  IsEmail3(),
@@ -690,18 +675,6 @@ __decorateClass([
690
675
  IsNotEmpty21({ message: "Please enter company name." }),
691
676
  IsString7({ message: "Please enter valid company name." })
692
677
  ], ClientCreateAccountDto.prototype, "companyName", 2);
693
- __decorateClass([
694
- IsNotEmpty21({ message: "Please enter password." }),
695
- MinLength4(6),
696
- MaxLength4(32),
697
- Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
698
- message: "Password must include letters, numbers and symbols."
699
- })
700
- ], ClientCreateAccountDto.prototype, "password", 2);
701
- __decorateClass([
702
- IsNotEmpty21({ message: "Please enter confirm password." }),
703
- Match("password", { message: "Passwords do not match" })
704
- ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
705
678
  __decorateClass([
706
679
  IsOptional6()
707
680
  ], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
@@ -1,9 +1,5 @@
1
1
  export declare class ClientCreateAccountDto {
2
- firstName: string;
3
- lastName: string;
4
2
  email: string;
5
3
  companyName: string;
6
- password: string;
7
- confirmPassword: string;
8
4
  onBoardedBy: string;
9
5
  }
@@ -6,7 +6,6 @@ export declare enum SendGuestOtpScopeEnum {
6
6
  FREELANCER = "FREELANCER"
7
7
  }
8
8
  export declare class SendGuestOtpDto {
9
- fullName: string;
10
9
  target: string;
11
10
  fallbackTarget: string;
12
11
  purpose: SendGuestOtpPurposeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.350",
3
+ "version": "1.0.352",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",