@experts_hub/shared 1.0.261 → 1.0.263

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.
@@ -5,6 +5,7 @@ export declare class Otp {
5
5
  otp: string;
6
6
  otpPurpose: string;
7
7
  target: string;
8
+ fallbackTarget: string;
8
9
  expiresAt: Date;
9
10
  isUsed: boolean;
10
11
  isVerified: boolean;
package/dist/index.d.mts CHANGED
@@ -625,6 +625,7 @@ declare class Otp {
625
625
  otp: string;
626
626
  otpPurpose: string;
627
627
  target: string;
628
+ fallbackTarget: string;
628
629
  expiresAt: Date;
629
630
  isUsed: boolean;
630
631
  isVerified: boolean;
package/dist/index.d.ts CHANGED
@@ -625,6 +625,7 @@ declare class Otp {
625
625
  otp: string;
626
626
  otpPurpose: string;
627
627
  target: string;
628
+ fallbackTarget: string;
628
629
  expiresAt: Date;
629
630
  isUsed: boolean;
630
631
  isVerified: boolean;
package/dist/index.js CHANGED
@@ -368,7 +368,7 @@ __decorateClass([
368
368
  (0, import_class_validator7.IsString)({ message: "Please enter valid target." })
369
369
  ], SendGuestOtpDto.prototype, "target", 2);
370
370
  __decorateClass([
371
- (0, import_class_validator7.IsNotEmpty)({ message: "Please enter fallback target." }),
371
+ (0, import_class_validator7.IsOptional)(),
372
372
  (0, import_class_validator7.IsString)({ message: "Please enter valid fallback target." })
373
373
  ], SendGuestOtpDto.prototype, "fallbackTarget", 2);
374
374
  __decorateClass([
@@ -1446,6 +1446,10 @@ __decorateClass([
1446
1446
  (0, import_typeorm4.Column)({ name: "target", type: "varchar", nullable: true }),
1447
1447
  (0, import_typeorm4.Index)()
1448
1448
  ], Otp.prototype, "target", 2);
1449
+ __decorateClass([
1450
+ (0, import_typeorm4.Column)({ name: "fallback_target", type: "varchar", nullable: true }),
1451
+ (0, import_typeorm4.Index)()
1452
+ ], Otp.prototype, "fallbackTarget", 2);
1449
1453
  // support expiration checks
1450
1454
  __decorateClass([
1451
1455
  (0, import_typeorm4.Column)({ name: "expire_at", type: "timestamp" }),
package/dist/index.mjs CHANGED
@@ -148,7 +148,7 @@ var OTP_PATTERN = {
148
148
  };
149
149
 
150
150
  // src/modules/otp/dto/send-guest-otp.dto.ts
151
- import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty7, IsString } from "class-validator";
151
+ import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty7, IsOptional, IsString } from "class-validator";
152
152
  var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
153
153
  SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
154
154
  return SendGuestOtpPurposeEnum2;
@@ -169,7 +169,7 @@ __decorateClass([
169
169
  IsString({ message: "Please enter valid target." })
170
170
  ], SendGuestOtpDto.prototype, "target", 2);
171
171
  __decorateClass([
172
- IsNotEmpty7({ message: "Please enter fallback target." }),
172
+ IsOptional(),
173
173
  IsString({ message: "Please enter valid fallback target." })
174
174
  ], SendGuestOtpDto.prototype, "fallbackTarget", 2);
175
175
  __decorateClass([
@@ -390,7 +390,7 @@ __decorateClass([
390
390
  ], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
391
391
 
392
392
  // src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
393
- import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty15, IsOptional } from "class-validator";
393
+ import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty15, IsOptional as IsOptional2 } from "class-validator";
394
394
  var FreelancerCaptureAiAssessmentStatusDto = class {
395
395
  };
396
396
  __decorateClass([
@@ -404,7 +404,7 @@ __decorateClass([
404
404
  IsNotEmpty15({ message: "Please enter assessment status." })
405
405
  ], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
406
406
  __decorateClass([
407
- IsOptional()
407
+ IsOptional2()
408
408
  ], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
409
409
 
410
410
  // src/modules/onboarding/dto/freelancer-development-preference.dto.ts
@@ -451,7 +451,7 @@ __decorateClass([
451
451
  // src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
452
452
  import {
453
453
  IsNotEmpty as IsNotEmpty18,
454
- IsOptional as IsOptional2,
454
+ IsOptional as IsOptional3,
455
455
  IsUrl,
456
456
  IsString as IsString5,
457
457
  IsUUID as IsUUID9
@@ -468,19 +468,19 @@ __decorateClass([
468
468
  IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
469
469
  ], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
470
470
  __decorateClass([
471
- IsOptional2(),
471
+ IsOptional3(),
472
472
  IsUrl({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
473
473
  ], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
474
474
  __decorateClass([
475
- IsOptional2(),
475
+ IsOptional3(),
476
476
  IsUrl({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
477
477
  ], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
478
478
  __decorateClass([
479
- IsOptional2(),
479
+ IsOptional3(),
480
480
  IsUrl({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
481
481
  ], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
482
482
  __decorateClass([
483
- IsOptional2(),
483
+ IsOptional3(),
484
484
  IsUrl({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
485
485
  ], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
486
486
 
@@ -725,7 +725,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
725
725
  // src/modules/question/dto/create-question.dto.ts
726
726
  import {
727
727
  IsNotEmpty as IsNotEmpty25,
728
- IsOptional as IsOptional3,
728
+ IsOptional as IsOptional4,
729
729
  IsBoolean as IsBoolean2
730
730
  } from "class-validator";
731
731
  var CreateQuestionDto = class {
@@ -743,7 +743,7 @@ __decorateClass([
743
743
  IsNotEmpty25({ message: "Please enter options." })
744
744
  ], CreateQuestionDto.prototype, "options", 2);
745
745
  __decorateClass([
746
- IsOptional3(),
746
+ IsOptional4(),
747
747
  IsBoolean2({ message: "Whether the question status active" })
748
748
  ], CreateQuestionDto.prototype, "isActive", 2);
749
749
 
@@ -778,7 +778,7 @@ import {
778
778
  IsArray,
779
779
  ArrayNotEmpty,
780
780
  IsNumber,
781
- IsOptional as IsOptional4,
781
+ IsOptional as IsOptional5,
782
782
  IsEnum as IsEnum7,
783
783
  Min
784
784
  } from "class-validator";
@@ -802,7 +802,7 @@ __decorateClass([
802
802
  IsString11({ message: "Job role must be a string" })
803
803
  ], JobBasicInformationDto.prototype, "jobRole", 2);
804
804
  __decorateClass([
805
- IsOptional4(),
805
+ IsOptional5(),
806
806
  IsString11({ message: "Note must be a string" })
807
807
  ], JobBasicInformationDto.prototype, "note", 2);
808
808
  __decorateClass([
@@ -865,19 +865,19 @@ __decorateClass([
865
865
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
866
866
  __decorateClass([
867
867
  IsString11({ message: "Onboarding TAT must be a string" }),
868
- IsOptional4()
868
+ IsOptional5()
869
869
  ], JobBasicInformationDto.prototype, "onboardingTat", 2);
870
870
  __decorateClass([
871
871
  IsString11({ message: "Candidate communication skills must be a string" }),
872
- IsOptional4()
872
+ IsOptional5()
873
873
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
874
874
 
875
875
  // src/modules/job/dto/job-additional-comment.dto.ts
876
- import { IsOptional as IsOptional5, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
876
+ import { IsOptional as IsOptional6, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
877
877
  var JobAdditionalCommentDto = class {
878
878
  };
879
879
  __decorateClass([
880
- IsOptional5(),
880
+ IsOptional6(),
881
881
  IsString12({ message: "Additional comment must be a string" }),
882
882
  MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
883
883
  ], JobAdditionalCommentDto.prototype, "additionalComment", 2);
@@ -959,7 +959,7 @@ __decorateClass([
959
959
 
960
960
  // src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
961
961
  import {
962
- IsOptional as IsOptional6,
962
+ IsOptional as IsOptional7,
963
963
  IsString as IsString15,
964
964
  IsEmail as IsEmail5,
965
965
  IsNumber as IsNumber2,
@@ -1037,35 +1037,35 @@ __decorateClass([
1037
1037
  })
1038
1038
  ], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
1039
1039
  __decorateClass([
1040
- IsOptional6(),
1040
+ IsOptional7(),
1041
1041
  IsString15()
1042
1042
  ], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
1043
1043
  __decorateClass([
1044
- IsOptional6(),
1044
+ IsOptional7(),
1045
1045
  IsString15()
1046
1046
  ], UpdateFreelancerProfileDto.prototype, "address", 2);
1047
1047
  __decorateClass([
1048
- IsOptional6(),
1048
+ IsOptional7(),
1049
1049
  IsString15()
1050
1050
  ], UpdateFreelancerProfileDto.prototype, "about", 2);
1051
1051
  __decorateClass([
1052
- IsOptional6(),
1052
+ IsOptional7(),
1053
1053
  IsString15()
1054
1054
  ], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
1055
1055
  __decorateClass([
1056
- IsOptional6(),
1056
+ IsOptional7(),
1057
1057
  IsString15()
1058
1058
  ], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
1059
1059
  __decorateClass([
1060
- IsOptional6(),
1060
+ IsOptional7(),
1061
1061
  IsString15()
1062
1062
  ], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
1063
1063
  __decorateClass([
1064
- IsOptional6(),
1064
+ IsOptional7(),
1065
1065
  IsString15()
1066
1066
  ], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
1067
1067
  __decorateClass([
1068
- IsOptional6(),
1068
+ IsOptional7(),
1069
1069
  IsString15()
1070
1070
  ], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
1071
1071
 
@@ -1080,7 +1080,7 @@ var BANK_PATTERN = {
1080
1080
  import {
1081
1081
  IsEnum as IsEnum10,
1082
1082
  IsNotEmpty as IsNotEmpty31,
1083
- IsOptional as IsOptional7,
1083
+ IsOptional as IsOptional8,
1084
1084
  ValidateIf as ValidateIf2
1085
1085
  } from "class-validator";
1086
1086
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
@@ -1100,7 +1100,7 @@ __decorateClass([
1100
1100
  IsNotEmpty31({ message: "Please enter Email." })
1101
1101
  ], FreelancerBankDetailsDto.prototype, "email", 2);
1102
1102
  __decorateClass([
1103
- IsOptional7()
1103
+ IsOptional8()
1104
1104
  ], FreelancerBankDetailsDto.prototype, "address", 2);
1105
1105
  __decorateClass([
1106
1106
  IsNotEmpty31({ message: "Please enter Account Number." })
@@ -1128,7 +1128,7 @@ __decorateClass([
1128
1128
  IsNotEmpty31({ message: "IBAN is required for INTERNATIONAL accounts." })
1129
1129
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1130
1130
  __decorateClass([
1131
- IsOptional7()
1131
+ IsOptional8()
1132
1132
  ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1133
1133
  __decorateClass([
1134
1134
  IsEnum10(BankAccountScope, {
@@ -1190,7 +1190,7 @@ import {
1190
1190
  IsEnum as IsEnum12,
1191
1191
  IsInt,
1192
1192
  IsNotEmpty as IsNotEmpty32,
1193
- IsOptional as IsOptional8,
1193
+ IsOptional as IsOptional9,
1194
1194
  IsString as IsString16,
1195
1195
  Max,
1196
1196
  Min as Min2
@@ -1378,6 +1378,10 @@ __decorateClass([
1378
1378
  Column4({ name: "target", type: "varchar", nullable: true }),
1379
1379
  Index()
1380
1380
  ], Otp.prototype, "target", 2);
1381
+ __decorateClass([
1382
+ Column4({ name: "fallback_target", type: "varchar", nullable: true }),
1383
+ Index()
1384
+ ], Otp.prototype, "fallbackTarget", 2);
1381
1385
  // support expiration checks
1382
1386
  __decorateClass([
1383
1387
  Column4({ name: "expire_at", type: "timestamp" }),
@@ -3375,7 +3379,7 @@ __decorateClass([
3375
3379
  Max(5, { message: "Rating must be at most 5" })
3376
3380
  ], CreateRatingDto.prototype, "rating", 2);
3377
3381
  __decorateClass([
3378
- IsOptional8(),
3382
+ IsOptional9(),
3379
3383
  IsString16({ message: "Review must be a string" })
3380
3384
  ], CreateRatingDto.prototype, "review", 2);
3381
3385
 
@@ -3392,7 +3396,7 @@ var COMPANY_ROLES_PATTERNS = {
3392
3396
  };
3393
3397
 
3394
3398
  // src/modules/company-role/dto/create-company-role.dto.ts
3395
- import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional9 } from "class-validator";
3399
+ import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional10 } from "class-validator";
3396
3400
  var CreateCompanyRoleDto = class {
3397
3401
  };
3398
3402
  __decorateClass([
@@ -3410,12 +3414,12 @@ __decorateClass([
3410
3414
  IsInt2({ each: true, message: "Each permission ID must be an integer." })
3411
3415
  ], CreateCompanyRoleDto.prototype, "permissionIds", 2);
3412
3416
  __decorateClass([
3413
- IsOptional9(),
3417
+ IsOptional10(),
3414
3418
  IsBoolean4({ message: "Is active must be a boolean value" })
3415
3419
  ], CreateCompanyRoleDto.prototype, "isActive", 2);
3416
3420
 
3417
3421
  // src/modules/company-role/dto/update-company-role.dto.ts
3418
- import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional10 } from "class-validator";
3422
+ import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional11 } from "class-validator";
3419
3423
  var UpdateCompanyRoleDto = class {
3420
3424
  };
3421
3425
  __decorateClass([
@@ -3433,7 +3437,7 @@ __decorateClass([
3433
3437
  IsInt3({ each: true, message: "Each permission ID must be an integer." })
3434
3438
  ], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
3435
3439
  __decorateClass([
3436
- IsOptional10(),
3440
+ IsOptional11(),
3437
3441
  IsBoolean5({ message: "Is active must be a boolean value" })
3438
3442
  ], UpdateCompanyRoleDto.prototype, "isActive", 2);
3439
3443
 
@@ -3455,7 +3459,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
3455
3459
  import {
3456
3460
  ArrayMinSize,
3457
3461
  IsNotEmpty as IsNotEmpty35,
3458
- IsOptional as IsOptional11,
3462
+ IsOptional as IsOptional12,
3459
3463
  IsString as IsString19,
3460
3464
  MaxLength as MaxLength9,
3461
3465
  ValidateNested
@@ -3464,7 +3468,7 @@ import { Type as Type2 } from "class-transformer";
3464
3468
  var ExperienceDto = class {
3465
3469
  };
3466
3470
  __decorateClass([
3467
- IsOptional11()
3471
+ IsOptional12()
3468
3472
  ], ExperienceDto.prototype, "uuid", 2);
3469
3473
  __decorateClass([
3470
3474
  IsNotEmpty35(),
@@ -3550,12 +3554,12 @@ var FREELANCER_EDUCATION_PATTERN = {
3550
3554
  };
3551
3555
 
3552
3556
  // src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
3553
- import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional14, ArrayMinSize as ArrayMinSize2 } from "class-validator";
3557
+ import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional15, ArrayMinSize as ArrayMinSize2 } from "class-validator";
3554
3558
  import { Type as Type3 } from "class-transformer";
3555
3559
  var EducationDto = class {
3556
3560
  };
3557
3561
  __decorateClass([
3558
- IsOptional14()
3562
+ IsOptional15()
3559
3563
  ], EducationDto.prototype, "uuid", 2);
3560
3564
  __decorateClass([
3561
3565
  IsString22(),
@@ -3585,12 +3589,12 @@ var FREELANCER_PROJECT_PATTERN = {
3585
3589
  };
3586
3590
 
3587
3591
  // src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
3588
- import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional15, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
3592
+ import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
3589
3593
  import { Type as Type4 } from "class-transformer";
3590
3594
  var ProjectDto = class {
3591
3595
  };
3592
3596
  __decorateClass([
3593
- IsOptional15()
3597
+ IsOptional16()
3594
3598
  ], ProjectDto.prototype, "uuid", 2);
3595
3599
  __decorateClass([
3596
3600
  IsString23(),
@@ -3605,22 +3609,22 @@ __decorateClass([
3605
3609
  IsNotEmpty39({ message: "Please Enter End Date " })
3606
3610
  ], ProjectDto.prototype, "endDate", 2);
3607
3611
  __decorateClass([
3608
- IsOptional15(),
3612
+ IsOptional16(),
3609
3613
  IsString23()
3610
3614
  ], ProjectDto.prototype, "clientName", 2);
3611
3615
  __decorateClass([
3612
- IsOptional15(),
3616
+ IsOptional16(),
3613
3617
  IsString23()
3614
3618
  ], ProjectDto.prototype, "gitLink", 2);
3615
3619
  __decorateClass([
3616
- IsOptional15(),
3620
+ IsOptional16(),
3617
3621
  IsString23(),
3618
3622
  MaxLength11(500, { message: "Description must not exceed 500 characters" })
3619
3623
  ], ProjectDto.prototype, "description", 2);
3620
3624
  var CaseStudyDto = class {
3621
3625
  };
3622
3626
  __decorateClass([
3623
- IsOptional15()
3627
+ IsOptional16()
3624
3628
  ], CaseStudyDto.prototype, "uuid", 2);
3625
3629
  __decorateClass([
3626
3630
  IsString23(),
@@ -3631,7 +3635,7 @@ __decorateClass([
3631
3635
  IsNotEmpty39({ message: "Please Enter Case Study Link " })
3632
3636
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
3633
3637
  __decorateClass([
3634
- IsOptional15(),
3638
+ IsOptional16(),
3635
3639
  IsString23(),
3636
3640
  MaxLength11(500, { message: "Description must not exceed 500 characters" })
3637
3641
  ], CaseStudyDto.prototype, "description", 2);
@@ -3661,7 +3665,7 @@ var FREELANCER_SKILL_PATTERN = {
3661
3665
  };
3662
3666
 
3663
3667
  // src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
3664
- import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional16 } from "class-validator";
3668
+ import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional17 } from "class-validator";
3665
3669
  import { Type as Type5 } from "class-transformer";
3666
3670
  var FreelancerSkillDto = class {
3667
3671
  constructor() {
@@ -3671,19 +3675,19 @@ var FreelancerSkillDto = class {
3671
3675
  }
3672
3676
  };
3673
3677
  __decorateClass([
3674
- IsOptional16(),
3678
+ IsOptional17(),
3675
3679
  IsArray8(),
3676
3680
  Type5(() => String),
3677
3681
  IsString24({ each: true })
3678
3682
  ], FreelancerSkillDto.prototype, "coreSkills", 2);
3679
3683
  __decorateClass([
3680
- IsOptional16(),
3684
+ IsOptional17(),
3681
3685
  IsArray8(),
3682
3686
  Type5(() => String),
3683
3687
  IsString24({ each: true })
3684
3688
  ], FreelancerSkillDto.prototype, "tools", 2);
3685
3689
  __decorateClass([
3686
- IsOptional16(),
3690
+ IsOptional17(),
3687
3691
  IsArray8(),
3688
3692
  Type5(() => String),
3689
3693
  IsString24({ each: true })
@@ -3706,7 +3710,7 @@ import {
3706
3710
  IsString as IsString25,
3707
3711
  IsEmail as IsEmail10,
3708
3712
  IsBoolean as IsBoolean10,
3709
- IsOptional as IsOptional17,
3713
+ IsOptional as IsOptional18,
3710
3714
  IsEnum as IsEnum13,
3711
3715
  IsNumber as IsNumber3,
3712
3716
  IsUrl as IsUrl3,
@@ -3789,23 +3793,23 @@ __decorateClass([
3789
3793
  IsNotEmpty41({ message: "Please enter availability to join." })
3790
3794
  ], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
3791
3795
  __decorateClass([
3792
- IsOptional17(),
3796
+ IsOptional18(),
3793
3797
  IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
3794
3798
  ], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
3795
3799
  __decorateClass([
3796
- IsOptional17(),
3800
+ IsOptional18(),
3797
3801
  IsString25({ message: "Kaggle profile link must be a string" })
3798
3802
  ], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
3799
3803
  __decorateClass([
3800
- IsOptional17(),
3804
+ IsOptional18(),
3801
3805
  IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
3802
3806
  ], CreateFreelancerDto.prototype, "githubProfileLink", 2);
3803
3807
  __decorateClass([
3804
- IsOptional17(),
3808
+ IsOptional18(),
3805
3809
  IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
3806
3810
  ], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
3807
3811
  __decorateClass([
3808
- IsOptional17(),
3812
+ IsOptional18(),
3809
3813
  IsUrl3({}, { message: "Portfolio link must be a valid URL" })
3810
3814
  ], CreateFreelancerDto.prototype, "portfolioLink", 2);
3811
3815
 
@@ -3814,7 +3818,7 @@ import {
3814
3818
  IsString as IsString26,
3815
3819
  IsEmail as IsEmail11,
3816
3820
  IsBoolean as IsBoolean11,
3817
- IsOptional as IsOptional18,
3821
+ IsOptional as IsOptional19,
3818
3822
  IsEnum as IsEnum14,
3819
3823
  IsNumber as IsNumber4,
3820
3824
  IsUrl as IsUrl4,
@@ -3841,24 +3845,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
3841
3845
  var UpdateFreelancerDto = class {
3842
3846
  };
3843
3847
  __decorateClass([
3844
- IsOptional18(),
3848
+ IsOptional19(),
3845
3849
  IsString26({ message: "Full name must be a string" }),
3846
3850
  MaxLength14(100, { message: "Full name must not exceed 100 characters" })
3847
3851
  ], UpdateFreelancerDto.prototype, "fullName", 2);
3848
3852
  __decorateClass([
3849
- IsOptional18(),
3853
+ IsOptional19(),
3850
3854
  IsEmail11({}, { message: "Invalid email address" })
3851
3855
  ], UpdateFreelancerDto.prototype, "email", 2);
3852
3856
  __decorateClass([
3853
- IsOptional18(),
3857
+ IsOptional19(),
3854
3858
  IsString26({ message: "Mobile code must be a string (e.g., +1)" })
3855
3859
  ], UpdateFreelancerDto.prototype, "mobileCode", 2);
3856
3860
  __decorateClass([
3857
- IsOptional18(),
3861
+ IsOptional19(),
3858
3862
  IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
3859
3863
  ], UpdateFreelancerDto.prototype, "mobile", 2);
3860
3864
  __decorateClass([
3861
- IsOptional18(),
3865
+ IsOptional19(),
3862
3866
  MinLength12(6, { message: "Password must be at least 6 characters." }),
3863
3867
  MaxLength14(32, { message: "Password must not exceed 32 characters." }),
3864
3868
  Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
@@ -3866,12 +3870,12 @@ __decorateClass([
3866
3870
  })
3867
3871
  ], UpdateFreelancerDto.prototype, "password", 2);
3868
3872
  __decorateClass([
3869
- IsOptional18(),
3873
+ IsOptional19(),
3870
3874
  IsBoolean11({ message: "Developer flag must be true or false" }),
3871
3875
  Type7(() => Boolean)
3872
3876
  ], UpdateFreelancerDto.prototype, "developer", 2);
3873
3877
  __decorateClass([
3874
- IsOptional18(),
3878
+ IsOptional19(),
3875
3879
  IsEnum14(NatureOfWorkEnum2, {
3876
3880
  message: `Nature of work must be one of: ${Object.values(
3877
3881
  NatureOfWorkEnum2
@@ -3879,13 +3883,13 @@ __decorateClass([
3879
3883
  })
3880
3884
  ], UpdateFreelancerDto.prototype, "natureOfWork", 2);
3881
3885
  __decorateClass([
3882
- IsOptional18(),
3886
+ IsOptional19(),
3883
3887
  IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
3884
3888
  Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
3885
3889
  Type7(() => Number)
3886
3890
  ], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
3887
3891
  __decorateClass([
3888
- IsOptional18(),
3892
+ IsOptional19(),
3889
3893
  IsEnum14(ModeOfWorkEnum2, {
3890
3894
  message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
3891
3895
  ", "
@@ -3893,7 +3897,7 @@ __decorateClass([
3893
3897
  })
3894
3898
  ], UpdateFreelancerDto.prototype, "modeOfWork", 2);
3895
3899
  __decorateClass([
3896
- IsOptional18(),
3900
+ IsOptional19(),
3897
3901
  IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
3898
3902
  Type7(() => Boolean)
3899
3903
  ], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
@@ -3902,23 +3906,23 @@ __decorateClass([
3902
3906
  IsNotEmpty42({ message: "Please enter availability to join." })
3903
3907
  ], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
3904
3908
  __decorateClass([
3905
- IsOptional18(),
3909
+ IsOptional19(),
3906
3910
  IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
3907
3911
  ], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
3908
3912
  __decorateClass([
3909
- IsOptional18(),
3913
+ IsOptional19(),
3910
3914
  IsString26({ message: "Kaggle profile link must be a string" })
3911
3915
  ], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
3912
3916
  __decorateClass([
3913
- IsOptional18(),
3917
+ IsOptional19(),
3914
3918
  IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
3915
3919
  ], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
3916
3920
  __decorateClass([
3917
- IsOptional18(),
3921
+ IsOptional19(),
3918
3922
  IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
3919
3923
  ], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
3920
3924
  __decorateClass([
3921
- IsOptional18(),
3925
+ IsOptional19(),
3922
3926
  IsUrl4({}, { message: "Portfolio link must be a valid URL" })
3923
3927
  ], UpdateFreelancerDto.prototype, "portfolioLink", 2);
3924
3928
 
@@ -3939,7 +3943,7 @@ var CLIENT_ADMIN_PATTERNS = {
3939
3943
  import {
3940
3944
  IsNotEmpty as IsNotEmpty43,
3941
3945
  IsEmail as IsEmail12,
3942
- IsOptional as IsOptional19,
3946
+ IsOptional as IsOptional20,
3943
3947
  IsString as IsString27,
3944
3948
  IsArray as IsArray9,
3945
3949
  MinLength as MinLength13,
@@ -4010,7 +4014,7 @@ __decorateClass([
4010
4014
  IsString27()
4011
4015
  ], CreateClientDto.prototype, "foundUsOn", 2);
4012
4016
  __decorateClass([
4013
- IsOptional19(),
4017
+ IsOptional20(),
4014
4018
  IsString27()
4015
4019
  ], CreateClientDto.prototype, "foundUsOnDetail", 2);
4016
4020
 
@@ -4027,7 +4031,7 @@ __decorateClass([
4027
4031
  import {
4028
4032
  IsNotEmpty as IsNotEmpty45,
4029
4033
  IsEmail as IsEmail13,
4030
- IsOptional as IsOptional20,
4034
+ IsOptional as IsOptional21,
4031
4035
  IsString as IsString29,
4032
4036
  IsArray as IsArray10,
4033
4037
  MinLength as MinLength14,
@@ -4062,7 +4066,7 @@ __decorateClass([
4062
4066
  IsEmail13()
4063
4067
  ], UpdateClientDto.prototype, "email", 2);
4064
4068
  __decorateClass([
4065
- IsOptional20(),
4069
+ IsOptional21(),
4066
4070
  MinLength14(6, { message: "Password must be at least 6 characters." }),
4067
4071
  MaxLength16(32, { message: "Password must not exceed 32 characters." }),
4068
4072
  Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
@@ -4094,7 +4098,7 @@ __decorateClass([
4094
4098
  IsString29()
4095
4099
  ], UpdateClientDto.prototype, "foundUsOn", 2);
4096
4100
  __decorateClass([
4097
- IsOptional20(),
4101
+ IsOptional21(),
4098
4102
  IsString29()
4099
4103
  ], UpdateClientDto.prototype, "foundUsOnDetail", 2);
4100
4104
 
@@ -4105,7 +4109,7 @@ var FREELANCER_DECLARATION_PATTERN = {
4105
4109
  };
4106
4110
 
4107
4111
  // src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
4108
- import { IsOptional as IsOptional21, IsEnum as IsEnum17, IsString as IsString30, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
4112
+ import { IsOptional as IsOptional22, IsEnum as IsEnum17, IsString as IsString30, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
4109
4113
  var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
4110
4114
  DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
4111
4115
  DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
@@ -4116,7 +4120,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
4116
4120
  var FreelancerDeclarationDto = class {
4117
4121
  };
4118
4122
  __decorateClass([
4119
- IsOptional21(),
4123
+ IsOptional22(),
4120
4124
  IsString30({ message: "UUID must be a string" })
4121
4125
  ], FreelancerDeclarationDto.prototype, "uuid", 2);
4122
4126
  __decorateClass([
@@ -4140,35 +4144,35 @@ var CMS_PATTERNS = {
4140
4144
  };
4141
4145
 
4142
4146
  // src/modules/cms/dto/create-cms.dto.ts
4143
- import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional22 } from "class-validator";
4147
+ import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional23 } from "class-validator";
4144
4148
  var CreateCmsDto = class {
4145
4149
  };
4146
4150
  __decorateClass([
4147
4151
  IsNotEmpty47({ message: "Please enter name." })
4148
4152
  ], CreateCmsDto.prototype, "title", 2);
4149
4153
  __decorateClass([
4150
- IsOptional22()
4154
+ IsOptional23()
4151
4155
  ], CreateCmsDto.prototype, "content", 2);
4152
4156
  __decorateClass([
4153
- IsOptional22(),
4157
+ IsOptional23(),
4154
4158
  IsBoolean12({ message: "Is active must be a boolean value" })
4155
4159
  ], CreateCmsDto.prototype, "isActive", 2);
4156
4160
 
4157
4161
  // src/modules/cms/dto/update-cms.dto.ts
4158
- import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional23 } from "class-validator";
4162
+ import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional24 } from "class-validator";
4159
4163
  var UpdateCmsDto = class {
4160
4164
  };
4161
4165
  __decorateClass([
4162
- IsOptional23()
4166
+ IsOptional24()
4163
4167
  ], UpdateCmsDto.prototype, "uuid", 2);
4164
4168
  __decorateClass([
4165
4169
  IsNotEmpty48({ message: "Please enter name." })
4166
4170
  ], UpdateCmsDto.prototype, "title", 2);
4167
4171
  __decorateClass([
4168
- IsOptional23()
4172
+ IsOptional24()
4169
4173
  ], UpdateCmsDto.prototype, "content", 2);
4170
4174
  __decorateClass([
4171
- IsOptional23(),
4175
+ IsOptional24(),
4172
4176
  IsBoolean13({ message: "Is active must be a boolean value" })
4173
4177
  ], UpdateCmsDto.prototype, "isActive", 2);
4174
4178
 
@@ -4201,7 +4205,7 @@ import {
4201
4205
  IsString as IsString31,
4202
4206
  IsEnum as IsEnum18,
4203
4207
  IsInt as IsInt6,
4204
- IsOptional as IsOptional24,
4208
+ IsOptional as IsOptional25,
4205
4209
  IsArray as IsArray11,
4206
4210
  IsDateString as IsDateString4,
4207
4211
  IsNotEmpty as IsNotEmpty49,
@@ -4228,7 +4232,7 @@ __decorateClass([
4228
4232
  IsNotEmpty49({ message: "Job role is required." })
4229
4233
  ], AdminCreateJobInformationDto.prototype, "jobRole", 2);
4230
4234
  __decorateClass([
4231
- IsOptional24(),
4235
+ IsOptional25(),
4232
4236
  IsString31({ message: "Note must be a string." })
4233
4237
  ], AdminCreateJobInformationDto.prototype, "note", 2);
4234
4238
  __decorateClass([
@@ -4278,7 +4282,7 @@ __decorateClass([
4278
4282
  IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
4279
4283
  ], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
4280
4284
  __decorateClass([
4281
- IsOptional24(),
4285
+ IsOptional25(),
4282
4286
  IsString31({ message: "Additional comment must be a string." })
4283
4287
  ], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
4284
4288
  __decorateClass([
@@ -4300,7 +4304,7 @@ import {
4300
4304
  IsString as IsString32,
4301
4305
  IsEnum as IsEnum19,
4302
4306
  IsInt as IsInt7,
4303
- IsOptional as IsOptional25,
4307
+ IsOptional as IsOptional26,
4304
4308
  IsArray as IsArray12,
4305
4309
  IsDateString as IsDateString5,
4306
4310
  IsNotEmpty as IsNotEmpty50,
@@ -4327,7 +4331,7 @@ __decorateClass([
4327
4331
  IsNotEmpty50({ message: "Job role is required." })
4328
4332
  ], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
4329
4333
  __decorateClass([
4330
- IsOptional25(),
4334
+ IsOptional26(),
4331
4335
  IsString32({ message: "Note must be a string." })
4332
4336
  ], AdminUpdateJobInformationDto.prototype, "note", 2);
4333
4337
  __decorateClass([
@@ -4377,7 +4381,7 @@ __decorateClass([
4377
4381
  IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
4378
4382
  ], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
4379
4383
  __decorateClass([
4380
- IsOptional25(),
4384
+ IsOptional26(),
4381
4385
  IsString32({ message: "Additional comment must be a string." })
4382
4386
  ], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
4383
4387
  __decorateClass([
@@ -4400,7 +4404,7 @@ var LEAD_PATTERN = {
4400
4404
  };
4401
4405
 
4402
4406
  // src/modules/lead/dto/create-lead.dto.ts
4403
- import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional26, IsEnum as IsEnum20 } from "class-validator";
4407
+ import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional27, IsEnum as IsEnum20 } from "class-validator";
4404
4408
  var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
4405
4409
  CategoryEmumDto2["BUSINESS"] = "BUSINESS";
4406
4410
  CategoryEmumDto2["FREELANCER"] = "FREELANCER";
@@ -4421,7 +4425,7 @@ __decorateClass([
4421
4425
  IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
4422
4426
  ], CreateLeadDto.prototype, "mobile", 2);
4423
4427
  __decorateClass([
4424
- IsOptional26(),
4428
+ IsOptional27(),
4425
4429
  IsString33({ message: "Description must be a string" })
4426
4430
  ], CreateLeadDto.prototype, "description", 2);
4427
4431
  __decorateClass([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.261",
3
+ "version": "1.0.263",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",