@experts_hub/shared 1.0.155 → 1.0.156

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
@@ -259,8 +259,8 @@ declare class UpdateCompanyProfileDto {
259
259
  }
260
260
 
261
261
  declare class ClientChangePasswordDto {
262
- oldPassword: string;
263
262
  newPassword: string;
263
+ confirmPassword: string;
264
264
  }
265
265
 
266
266
  interface IFetchClientProfileQuery {
package/dist/index.d.ts CHANGED
@@ -259,8 +259,8 @@ declare class UpdateCompanyProfileDto {
259
259
  }
260
260
 
261
261
  declare class ClientChangePasswordDto {
262
- oldPassword: string;
263
262
  newPassword: string;
263
+ confirmPassword: string;
264
264
  }
265
265
 
266
266
  interface IFetchClientProfileQuery {
package/dist/index.js CHANGED
@@ -635,18 +635,16 @@ var import_class_validator19 = require("class-validator");
635
635
  var ClientChangePasswordDto = class {
636
636
  };
637
637
  __decorateClass([
638
- (0, import_class_validator19.IsNotEmpty)({ message: "Please enter Old Password." }),
639
- (0, import_class_validator19.IsString)()
640
- ], ClientChangePasswordDto.prototype, "oldPassword", 2);
641
- __decorateClass([
642
- (0, import_class_validator19.IsNotEmpty)({ message: "Please enter New Password." }),
643
638
  (0, import_class_validator19.IsString)(),
644
- (0, import_class_validator19.MinLength)(6),
645
- (0, import_class_validator19.MaxLength)(32),
646
- (0, import_class_validator19.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
647
- message: "New Password must include letters, numbers and symbols."
639
+ (0, import_class_validator19.MinLength)(8, { message: "Password must be at least 8 characters long." }),
640
+ (0, import_class_validator19.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
641
+ message: "Password must contain at least one uppercase letter and one number."
648
642
  })
649
643
  ], ClientChangePasswordDto.prototype, "newPassword", 2);
644
+ __decorateClass([
645
+ (0, import_class_validator19.IsNotEmpty)({ message: "Please enter confirm password." }),
646
+ Match("newPassword", { message: "Passwords do not match" })
647
+ ], ClientChangePasswordDto.prototype, "confirmPassword", 2);
650
648
 
651
649
  // src/modules/question/pattern/pattern.ts
652
650
  var QUESTION_PATTERN = {
package/dist/index.mjs CHANGED
@@ -547,26 +547,23 @@ __decorateClass([
547
547
  // src/modules/user/client-profile/dto/client-change-password.dto.ts
548
548
  import {
549
549
  IsString as IsString9,
550
- IsNotEmpty as IsNotEmpty17,
551
- MaxLength as MaxLength6,
552
550
  MinLength as MinLength6,
553
- Matches as Matches6
551
+ Matches as Matches6,
552
+ IsNotEmpty as IsNotEmpty17
554
553
  } from "class-validator";
555
554
  var ClientChangePasswordDto = class {
556
555
  };
557
556
  __decorateClass([
558
- IsNotEmpty17({ message: "Please enter Old Password." }),
559
- IsString9()
560
- ], ClientChangePasswordDto.prototype, "oldPassword", 2);
561
- __decorateClass([
562
- IsNotEmpty17({ message: "Please enter New Password." }),
563
557
  IsString9(),
564
- MinLength6(6),
565
- MaxLength6(32),
566
- Matches6(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
567
- message: "New Password must include letters, numbers and symbols."
558
+ MinLength6(8, { message: "Password must be at least 8 characters long." }),
559
+ Matches6(/^(?=.*[A-Z])(?=.*\d).+$/, {
560
+ message: "Password must contain at least one uppercase letter and one number."
568
561
  })
569
562
  ], ClientChangePasswordDto.prototype, "newPassword", 2);
563
+ __decorateClass([
564
+ IsNotEmpty17({ message: "Please enter confirm password." }),
565
+ Match("newPassword", { message: "Passwords do not match" })
566
+ ], ClientChangePasswordDto.prototype, "confirmPassword", 2);
570
567
 
571
568
  // src/modules/question/pattern/pattern.ts
572
569
  var QUESTION_PATTERN = {
@@ -698,23 +695,23 @@ __decorateClass([
698
695
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
699
696
 
700
697
  // src/modules/job/dto/job-additional-comment.dto.ts
701
- import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as MaxLength7 } from "class-validator";
698
+ import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as MaxLength6 } from "class-validator";
702
699
  var JobAdditionalCommentDto = class {
703
700
  };
704
701
  __decorateClass([
705
702
  IsOptional6(),
706
703
  IsString11({ message: "Additional comment must be a string" }),
707
- MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
704
+ MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
708
705
  ], JobAdditionalCommentDto.prototype, "additionalComment", 2);
709
706
 
710
707
  // src/modules/job/dto/job-description.dto.ts
711
- import { IsString as IsString12, IsNotEmpty as IsNotEmpty20, MaxLength as MaxLength8 } from "class-validator";
708
+ import { IsString as IsString12, IsNotEmpty as IsNotEmpty20, MaxLength as MaxLength7 } from "class-validator";
712
709
  var JobDescriptionDto = class {
713
710
  };
714
711
  __decorateClass([
715
712
  IsNotEmpty20({ message: "Please enter job description" }),
716
713
  IsString12({ message: "Description must be a string" }),
717
- MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
714
+ MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
718
715
  ], JobDescriptionDto.prototype, "description", 2);
719
716
 
720
717
  // src/modules/job/dto/job-status.dto.ts
@@ -758,7 +755,7 @@ var PROFILE_PATTERN = {
758
755
  import {
759
756
  IsString as IsString13,
760
757
  IsNotEmpty as IsNotEmpty22,
761
- MaxLength as MaxLength9,
758
+ MaxLength as MaxLength8,
762
759
  MinLength as MinLength7,
763
760
  Matches as Matches7
764
761
  } from "class-validator";
@@ -772,7 +769,7 @@ __decorateClass([
772
769
  IsNotEmpty22({ message: "Please enter New Password." }),
773
770
  IsString13(),
774
771
  MinLength7(6),
775
- MaxLength9(32),
772
+ MaxLength8(32),
776
773
  Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
777
774
  message: "New Password must include letters, numbers and symbols."
778
775
  })
@@ -2443,7 +2440,7 @@ import {
2443
2440
  IsNotEmpty as IsNotEmpty27,
2444
2441
  IsOptional as IsOptional12,
2445
2442
  IsString as IsString18,
2446
- MaxLength as MaxLength11,
2443
+ MaxLength as MaxLength10,
2447
2444
  ValidateNested
2448
2445
  } from "class-validator";
2449
2446
  import { Type as Type2 } from "class-transformer";
@@ -2467,7 +2464,7 @@ __decorateClass([
2467
2464
  __decorateClass([
2468
2465
  IsNotEmpty27(),
2469
2466
  IsString18(),
2470
- MaxLength11(500, { message: "Description must not exceed 500 characters" })
2467
+ MaxLength10(500, { message: "Description must not exceed 500 characters" })
2471
2468
  ], ExperienceDto.prototype, "description", 2);
2472
2469
  var FreelancerExperienceDto = class {
2473
2470
  };
@@ -2561,7 +2558,7 @@ var FREELANCER_PROJECT_PATTERN = {
2561
2558
  };
2562
2559
 
2563
2560
  // src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
2564
- import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength13 } from "class-validator";
2561
+ import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
2565
2562
  import { Type as Type4 } from "class-transformer";
2566
2563
  var ProjectDto = class {
2567
2564
  };
@@ -2591,7 +2588,7 @@ __decorateClass([
2591
2588
  __decorateClass([
2592
2589
  IsOptional16(),
2593
2590
  IsString22(),
2594
- MaxLength13(500, { message: "Description must not exceed 500 characters" })
2591
+ MaxLength12(500, { message: "Description must not exceed 500 characters" })
2595
2592
  ], ProjectDto.prototype, "description", 2);
2596
2593
  var CaseStudyDto = class {
2597
2594
  };
@@ -2609,7 +2606,7 @@ __decorateClass([
2609
2606
  __decorateClass([
2610
2607
  IsOptional16(),
2611
2608
  IsString22(),
2612
- MaxLength13(500, { message: "Description must not exceed 500 characters" })
2609
+ MaxLength12(500, { message: "Description must not exceed 500 characters" })
2613
2610
  ], CaseStudyDto.prototype, "description", 2);
2614
2611
  var FreelancerProjectDto = class {
2615
2612
  };
@@ -1,4 +1,4 @@
1
1
  export declare class ClientChangePasswordDto {
2
- oldPassword: string;
3
2
  newPassword: string;
3
+ confirmPassword: string;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.155",
3
+ "version": "1.0.156",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",