@experts_hub/shared 1.0.478 → 1.0.479

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
@@ -563,7 +563,7 @@ declare class UpdateFreelancerProfileDto {
563
563
  mobile: string;
564
564
  countryId: number;
565
565
  expectedHourlyCompensation: string;
566
- numberOfHours: string;
566
+ numberOfHours?: number;
567
567
  natureOfWork: NatureOfWorkDto;
568
568
  modeOfWork: ModeOfWorkDto;
569
569
  portfolioLink?: string;
package/dist/index.d.ts CHANGED
@@ -563,7 +563,7 @@ declare class UpdateFreelancerProfileDto {
563
563
  mobile: string;
564
564
  countryId: number;
565
565
  expectedHourlyCompensation: string;
566
- numberOfHours: string;
566
+ numberOfHours?: number;
567
567
  natureOfWork: NatureOfWorkDto;
568
568
  modeOfWork: ModeOfWorkDto;
569
569
  portfolioLink?: string;
package/dist/index.js CHANGED
@@ -1427,6 +1427,7 @@ __decorateClass([
1427
1427
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
1428
1428
 
1429
1429
  // src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
1430
+ var import_types = require("class-transformer/types");
1430
1431
  var import_class_validator39 = require("class-validator");
1431
1432
  var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
1432
1433
  NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
@@ -1479,8 +1480,10 @@ __decorateClass([
1479
1480
  (0, import_class_validator39.IsNotEmpty)({ message: "Please enter expected hourly compensation." })
1480
1481
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1481
1482
  __decorateClass([
1482
- (0, import_class_validator39.IsOptional)(),
1483
- (0, import_class_validator39.IsString)()
1483
+ (0, import_class_validator39.ValidateIf)((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */),
1484
+ (0, import_types.Type)(() => Number),
1485
+ (0, import_class_validator39.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
1486
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please enter weekly availability hours" })
1484
1487
  ], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
1485
1488
  __decorateClass([
1486
1489
  (0, import_class_validator39.IsNotEmpty)({ message: "Please select engagement type." }),
package/dist/index.mjs CHANGED
@@ -1217,13 +1217,16 @@ __decorateClass([
1217
1217
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
1218
1218
 
1219
1219
  // src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
1220
+ import { Type as Type3 } from "class-transformer/types";
1220
1221
  import {
1221
1222
  IsOptional as IsOptional15,
1222
1223
  IsString as IsString16,
1223
1224
  IsEmail as IsEmail5,
1224
1225
  IsNumber as IsNumber2,
1225
1226
  IsEnum as IsEnum12,
1226
- IsNotEmpty as IsNotEmpty33
1227
+ IsNotEmpty as IsNotEmpty33,
1228
+ ValidateIf as ValidateIf4,
1229
+ IsInt
1227
1230
  } from "class-validator";
1228
1231
  var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
1229
1232
  NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
@@ -1276,8 +1279,10 @@ __decorateClass([
1276
1279
  IsNotEmpty33({ message: "Please enter expected hourly compensation." })
1277
1280
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1278
1281
  __decorateClass([
1279
- IsOptional15(),
1280
- IsString16()
1282
+ ValidateIf4((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */),
1283
+ Type3(() => Number),
1284
+ IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
1285
+ IsNotEmpty33({ message: "Please enter weekly availability hours" })
1281
1286
  ], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
1282
1287
  __decorateClass([
1283
1288
  IsNotEmpty33({ message: "Please select engagement type." }),
@@ -1341,7 +1346,7 @@ import {
1341
1346
  IsNotEmpty as IsNotEmpty34,
1342
1347
  IsOptional as IsOptional16,
1343
1348
  IsString as IsString17,
1344
- ValidateIf as ValidateIf4
1349
+ ValidateIf as ValidateIf5
1345
1350
  } from "class-validator";
1346
1351
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1347
1352
  BankAccountScope2["DOMESTIC"] = "DOMESTIC";
@@ -1376,19 +1381,19 @@ __decorateClass([
1376
1381
  IsString17()
1377
1382
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1378
1383
  __decorateClass([
1379
- ValidateIf4((dto) => dto.accountScope === "DOMESTIC"),
1384
+ ValidateIf5((dto) => dto.accountScope === "DOMESTIC"),
1380
1385
  IsNotEmpty34({ message: "IFSC Code is required for DOMESTIC accounts." })
1381
1386
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1382
1387
  __decorateClass([
1383
- ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
1388
+ ValidateIf5((dto) => dto.accountScope === "INTERNATIONAL"),
1384
1389
  IsNotEmpty34({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1385
1390
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1386
1391
  __decorateClass([
1387
- ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
1392
+ ValidateIf5((dto) => dto.accountScope === "INTERNATIONAL"),
1388
1393
  IsNotEmpty34({ message: "ABA Number is required for INTERNATIONAL accounts." })
1389
1394
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1390
1395
  __decorateClass([
1391
- ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
1396
+ ValidateIf5((dto) => dto.accountScope === "INTERNATIONAL"),
1392
1397
  IsNotEmpty34({ message: "IBAN is required for INTERNATIONAL accounts." })
1393
1398
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1394
1399
  __decorateClass([
@@ -1452,7 +1457,7 @@ var RATING_PATTERN = {
1452
1457
  // src/modules/rating/dto/add.rating.dto.ts
1453
1458
  import {
1454
1459
  IsEnum as IsEnum15,
1455
- IsInt,
1460
+ IsInt as IsInt2,
1456
1461
  IsNotEmpty as IsNotEmpty35,
1457
1462
  IsOptional as IsOptional17,
1458
1463
  IsString as IsString18,
@@ -5536,7 +5541,7 @@ Rating = __decorateClass([
5536
5541
  var CreateRatingDto = class {
5537
5542
  };
5538
5543
  __decorateClass([
5539
- IsInt({ message: "Reviewee ID must be a valid integer" }),
5544
+ IsInt2({ message: "Reviewee ID must be a valid integer" }),
5540
5545
  IsNotEmpty35({ message: "Reviewee ID is required" })
5541
5546
  ], CreateRatingDto.prototype, "revieweeId", 2);
5542
5547
  __decorateClass([
@@ -5545,7 +5550,7 @@ __decorateClass([
5545
5550
  })
5546
5551
  ], CreateRatingDto.prototype, "ratingType", 2);
5547
5552
  __decorateClass([
5548
- IsInt({ message: "Rating must be an integer value" }),
5553
+ IsInt2({ message: "Rating must be an integer value" }),
5549
5554
  Min2(1, { message: "Rating must be at least 1" }),
5550
5555
  Max2(5, { message: "Rating must be at most 5" })
5551
5556
  ], CreateRatingDto.prototype, "rating", 2);
@@ -5567,7 +5572,7 @@ var COMPANY_ROLES_PATTERNS = {
5567
5572
  };
5568
5573
 
5569
5574
  // src/modules/company-role/dto/create-company-role.dto.ts
5570
- import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional18 } from "class-validator";
5575
+ import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt3, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional18 } from "class-validator";
5571
5576
  var CreateCompanyRoleDto = class {
5572
5577
  };
5573
5578
  __decorateClass([
@@ -5582,7 +5587,7 @@ __decorateClass([
5582
5587
  __decorateClass([
5583
5588
  IsArray2({ message: "Permission IDs must be an array." }),
5584
5589
  ArrayNotEmpty2({ message: "Please select at least one permission." }),
5585
- IsInt2({ each: true, message: "Each permission ID must be an integer." })
5590
+ IsInt3({ each: true, message: "Each permission ID must be an integer." })
5586
5591
  ], CreateCompanyRoleDto.prototype, "permissionIds", 2);
5587
5592
  __decorateClass([
5588
5593
  IsOptional18(),
@@ -5590,7 +5595,7 @@ __decorateClass([
5590
5595
  ], CreateCompanyRoleDto.prototype, "isActive", 2);
5591
5596
 
5592
5597
  // src/modules/company-role/dto/update-company-role.dto.ts
5593
- import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional19 } from "class-validator";
5598
+ import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt4, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional19 } from "class-validator";
5594
5599
  var UpdateCompanyRoleDto = class {
5595
5600
  };
5596
5601
  __decorateClass([
@@ -5605,7 +5610,7 @@ __decorateClass([
5605
5610
  __decorateClass([
5606
5611
  IsArray3({ message: "Permission IDs must be an array." }),
5607
5612
  ArrayNotEmpty3({ message: "Please select at least one permission." }),
5608
- IsInt3({ each: true, message: "Each permission ID must be an integer." })
5613
+ IsInt4({ each: true, message: "Each permission ID must be an integer." })
5609
5614
  ], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
5610
5615
  __decorateClass([
5611
5616
  IsOptional19(),
@@ -5635,7 +5640,7 @@ import {
5635
5640
  MaxLength as MaxLength11,
5636
5641
  ValidateNested
5637
5642
  } from "class-validator";
5638
- import { Type as Type3 } from "class-transformer";
5643
+ import { Type as Type4 } from "class-transformer";
5639
5644
  var ExperienceDto = class {
5640
5645
  };
5641
5646
  __decorateClass([
@@ -5663,7 +5668,7 @@ var FreelancerExperienceDto = class {
5663
5668
  __decorateClass([
5664
5669
  ValidateNested({ each: true }),
5665
5670
  ArrayMinSize(1, { message: "At least one experience is required." }),
5666
- Type3(() => ExperienceDto)
5671
+ Type4(() => ExperienceDto)
5667
5672
  ], FreelancerExperienceDto.prototype, "experiences", 2);
5668
5673
 
5669
5674
  // src/modules/company-member/pattern/pattern.ts
@@ -5679,7 +5684,7 @@ var COMPANY_MEMBERS_PATTERNS = {
5679
5684
  };
5680
5685
 
5681
5686
  // src/modules/company-member/dto/create-company-member.dto.ts
5682
- import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty39 } from "class-validator";
5687
+ import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt5, IsNotEmpty as IsNotEmpty39 } from "class-validator";
5683
5688
  var CreateCompanyMemberDto = class {
5684
5689
  };
5685
5690
  __decorateClass([
@@ -5691,11 +5696,11 @@ __decorateClass([
5691
5696
  __decorateClass([
5692
5697
  IsArray4({ message: "Role IDs must be an array." }),
5693
5698
  ArrayNotEmpty4({ message: "Please select at least one role." }),
5694
- IsInt4({ each: true, message: "Each role ID must be an integer." })
5699
+ IsInt5({ each: true, message: "Each role ID must be an integer." })
5695
5700
  ], CreateCompanyMemberDto.prototype, "roleIds", 2);
5696
5701
 
5697
5702
  // src/modules/company-member/dto/update-company-member.dto.ts
5698
- import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty40 } from "class-validator";
5703
+ import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt6, IsNotEmpty as IsNotEmpty40 } from "class-validator";
5699
5704
  var UpdateCompanyMemberDto = class {
5700
5705
  };
5701
5706
  __decorateClass([
@@ -5707,7 +5712,7 @@ __decorateClass([
5707
5712
  __decorateClass([
5708
5713
  IsArray5({ message: "Role IDs must be an array." }),
5709
5714
  ArrayNotEmpty5({ message: "Please select at least one role." }),
5710
- IsInt5({ each: true, message: "Each role ID must be an integer." })
5715
+ IsInt6({ each: true, message: "Each role ID must be an integer." })
5711
5716
  ], UpdateCompanyMemberDto.prototype, "roleIds", 2);
5712
5717
 
5713
5718
  // src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
@@ -5726,7 +5731,7 @@ var FREELANCER_EDUCATION_PATTERN = {
5726
5731
 
5727
5732
  // src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
5728
5733
  import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString24, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional23, ArrayMinSize as ArrayMinSize2 } from "class-validator";
5729
- import { Type as Type4 } from "class-transformer";
5734
+ import { Type as Type5 } from "class-transformer";
5730
5735
  var EducationDto = class {
5731
5736
  };
5732
5737
  __decorateClass([
@@ -5750,7 +5755,7 @@ __decorateClass([
5750
5755
  IsArray6(),
5751
5756
  ArrayMinSize2(1, { message: "At least one education is required." }),
5752
5757
  ValidateNested2({ each: true }),
5753
- Type4(() => EducationDto)
5758
+ Type5(() => EducationDto)
5754
5759
  ], FreelancerEducationDto.prototype, "educations", 2);
5755
5760
 
5756
5761
  // src/modules/user/freelancer-project/pattern/pattern.ts
@@ -5761,7 +5766,7 @@ var FREELANCER_PROJECT_PATTERN = {
5761
5766
 
5762
5767
  // src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
5763
5768
  import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString25, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional24, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
5764
- import { Type as Type5 } from "class-transformer";
5769
+ import { Type as Type6 } from "class-transformer";
5765
5770
  var ProjectDto = class {
5766
5771
  };
5767
5772
  __decorateClass([
@@ -5816,12 +5821,12 @@ __decorateClass([
5816
5821
  IsArray7(),
5817
5822
  ArrayMinSize3(1, { message: "At least one project is required." }),
5818
5823
  ValidateNested3({ each: true }),
5819
- Type5(() => ProjectDto)
5824
+ Type6(() => ProjectDto)
5820
5825
  ], FreelancerProjectDto.prototype, "projects", 2);
5821
5826
  __decorateClass([
5822
5827
  IsArray7(),
5823
5828
  ValidateNested3({ each: true }),
5824
- Type5(() => CaseStudyDto)
5829
+ Type6(() => CaseStudyDto)
5825
5830
  ], FreelancerProjectDto.prototype, "casestudies", 2);
5826
5831
 
5827
5832
  // src/modules/permission/pattern/pattern.ts
@@ -5837,7 +5842,7 @@ var FREELANCER_SKILL_PATTERN = {
5837
5842
 
5838
5843
  // src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
5839
5844
  import { IsArray as IsArray8, IsString as IsString26, IsOptional as IsOptional25 } from "class-validator";
5840
- import { Type as Type6 } from "class-transformer";
5845
+ import { Type as Type7 } from "class-transformer";
5841
5846
  var FreelancerSkillDto = class {
5842
5847
  constructor() {
5843
5848
  this.coreSkills = [];
@@ -5848,19 +5853,19 @@ var FreelancerSkillDto = class {
5848
5853
  __decorateClass([
5849
5854
  IsOptional25(),
5850
5855
  IsArray8(),
5851
- Type6(() => String),
5856
+ Type7(() => String),
5852
5857
  IsString26({ each: true })
5853
5858
  ], FreelancerSkillDto.prototype, "coreSkills", 2);
5854
5859
  __decorateClass([
5855
5860
  IsOptional25(),
5856
5861
  IsArray8(),
5857
- Type6(() => String),
5862
+ Type7(() => String),
5858
5863
  IsString26({ each: true })
5859
5864
  ], FreelancerSkillDto.prototype, "tools", 2);
5860
5865
  __decorateClass([
5861
5866
  IsOptional25(),
5862
5867
  IsArray8(),
5863
- Type6(() => String),
5868
+ Type7(() => String),
5864
5869
  IsString26({ each: true })
5865
5870
  ], FreelancerSkillDto.prototype, "frameworks", 2);
5866
5871
 
@@ -5890,9 +5895,9 @@ import {
5890
5895
  IsNotEmpty as IsNotEmpty44,
5891
5896
  MinLength as MinLength12,
5892
5897
  Matches as Matches9,
5893
- ValidateIf as ValidateIf5
5898
+ ValidateIf as ValidateIf6
5894
5899
  } from "class-validator";
5895
- import { Type as Type7 } from "class-transformer";
5900
+ import { Type as Type8 } from "class-transformer";
5896
5901
  var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
5897
5902
  NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
5898
5903
  NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
@@ -5934,7 +5939,7 @@ __decorateClass([
5934
5939
  ], CreateFreelancerDto.prototype, "confirmPassword", 2);
5935
5940
  __decorateClass([
5936
5941
  IsBoolean10({ message: "Developer flag must be true or false" }),
5937
- Type7(() => Boolean)
5942
+ Type8(() => Boolean)
5938
5943
  ], CreateFreelancerDto.prototype, "developer", 2);
5939
5944
  __decorateClass([
5940
5945
  IsEnum16(NatureOfWorkEnum, {
@@ -5946,7 +5951,7 @@ __decorateClass([
5946
5951
  __decorateClass([
5947
5952
  IsNumber3({}, { message: "Expected hourly compensation must be a number" }),
5948
5953
  Min3(0, { message: "Expected hourly compensation must be 0 or more" }),
5949
- Type7(() => Number)
5954
+ Type8(() => Number)
5950
5955
  ], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
5951
5956
  __decorateClass([
5952
5957
  IsEnum16(ModeOfWorkEnum, {
@@ -5957,10 +5962,10 @@ __decorateClass([
5957
5962
  ], CreateFreelancerDto.prototype, "modeOfWork", 2);
5958
5963
  __decorateClass([
5959
5964
  IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
5960
- Type7(() => Boolean)
5965
+ Type8(() => Boolean)
5961
5966
  ], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
5962
5967
  __decorateClass([
5963
- ValidateIf5((o) => o.isImmediateJoiner === false),
5968
+ ValidateIf6((o) => o.isImmediateJoiner === false),
5964
5969
  IsNotEmpty44({ message: "Please enter availability to join." })
5965
5970
  ], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
5966
5971
  __decorateClass([
@@ -5998,9 +6003,9 @@ import {
5998
6003
  MinLength as MinLength13,
5999
6004
  Matches as Matches10,
6000
6005
  IsNotEmpty as IsNotEmpty45,
6001
- ValidateIf as ValidateIf6
6006
+ ValidateIf as ValidateIf7
6002
6007
  } from "class-validator";
6003
- import { Transform as Transform2, Type as Type8 } from "class-transformer";
6008
+ import { Transform as Transform2, Type as Type9 } from "class-transformer";
6004
6009
  var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
6005
6010
  NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
6006
6011
  NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
@@ -6044,7 +6049,7 @@ __decorateClass([
6044
6049
  __decorateClass([
6045
6050
  IsOptional27(),
6046
6051
  IsBoolean11({ message: "Developer flag must be true or false" }),
6047
- Type8(() => Boolean)
6052
+ Type9(() => Boolean)
6048
6053
  ], UpdateFreelancerDto.prototype, "developer", 2);
6049
6054
  __decorateClass([
6050
6055
  IsOptional27(),
@@ -6058,7 +6063,7 @@ __decorateClass([
6058
6063
  IsOptional27(),
6059
6064
  IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
6060
6065
  Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
6061
- Type8(() => Number)
6066
+ Type9(() => Number)
6062
6067
  ], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
6063
6068
  __decorateClass([
6064
6069
  IsOptional27(),
@@ -6071,10 +6076,10 @@ __decorateClass([
6071
6076
  __decorateClass([
6072
6077
  IsOptional27(),
6073
6078
  IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
6074
- Type8(() => Boolean)
6079
+ Type9(() => Boolean)
6075
6080
  ], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
6076
6081
  __decorateClass([
6077
- ValidateIf6((o) => o.isImmediateJoiner === false),
6082
+ ValidateIf7((o) => o.isImmediateJoiner === false),
6078
6083
  IsNotEmpty45({ message: "Please enter availability to join." })
6079
6084
  ], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
6080
6085
  __decorateClass([
@@ -6374,11 +6379,11 @@ var ADMIN_JOB_PATTERN = {
6374
6379
  };
6375
6380
 
6376
6381
  // src/modules/job-admin/dto/admin-create-job-information.dto.ts
6377
- import { Type as Type9 } from "class-transformer";
6382
+ import { Type as Type10 } from "class-transformer";
6378
6383
  import {
6379
6384
  IsString as IsString33,
6380
6385
  IsEnum as IsEnum21,
6381
- IsInt as IsInt6,
6386
+ IsInt as IsInt7,
6382
6387
  IsOptional as IsOptional33,
6383
6388
  IsArray as IsArray11,
6384
6389
  IsDateString as IsDateString4,
@@ -6415,7 +6420,7 @@ __decorateClass([
6415
6420
  IsString33({ each: true, message: "Each skill must be a valid string." })
6416
6421
  ], AdminCreateJobInformationDto.prototype, "skills", 2);
6417
6422
  __decorateClass([
6418
- IsInt6({ message: "Openings must be a valid integer." }),
6423
+ IsInt7({ message: "Openings must be a valid integer." }),
6419
6424
  Min5(1, { message: "There must be at least one opening." })
6420
6425
  ], AdminCreateJobInformationDto.prototype, "openings", 2);
6421
6426
  __decorateClass([
@@ -6445,11 +6450,11 @@ __decorateClass([
6445
6450
  IsNotEmpty52({ message: "Currency is required." })
6446
6451
  ], AdminCreateJobInformationDto.prototype, "currency", 2);
6447
6452
  __decorateClass([
6448
- Type9(() => Number),
6453
+ Type10(() => Number),
6449
6454
  IsNumber5({}, { message: "Expected salary from must be a number." })
6450
6455
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
6451
6456
  __decorateClass([
6452
- Type9(() => Number),
6457
+ Type10(() => Number),
6453
6458
  IsNumber5({}, { message: "Expected salary to must be a number." })
6454
6459
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
6455
6460
  __decorateClass([
@@ -6469,24 +6474,24 @@ __decorateClass([
6469
6474
  IsString33({ message: "Additional comment must be a string." })
6470
6475
  ], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
6471
6476
  __decorateClass([
6472
- IsInt6({ message: "Country ID must be a valid integer." })
6477
+ IsInt7({ message: "Country ID must be a valid integer." })
6473
6478
  ], AdminCreateJobInformationDto.prototype, "countryId", 2);
6474
6479
  __decorateClass([
6475
- IsInt6({ message: "State ID must be a valid integer." })
6480
+ IsInt7({ message: "State ID must be a valid integer." })
6476
6481
  ], AdminCreateJobInformationDto.prototype, "stateId", 2);
6477
6482
  __decorateClass([
6478
- IsInt6({ message: "City ID must be a valid integer." })
6483
+ IsInt7({ message: "City ID must be a valid integer." })
6479
6484
  ], AdminCreateJobInformationDto.prototype, "cityId", 2);
6480
6485
  __decorateClass([
6481
- IsInt6({ message: "Client ID must be a valid integer." })
6486
+ IsInt7({ message: "Client ID must be a valid integer." })
6482
6487
  ], AdminCreateJobInformationDto.prototype, "clientId", 2);
6483
6488
 
6484
6489
  // src/modules/job-admin/dto/admin-update-job-information.dto.ts
6485
- import { Type as Type10 } from "class-transformer";
6490
+ import { Type as Type11 } from "class-transformer";
6486
6491
  import {
6487
6492
  IsString as IsString34,
6488
6493
  IsEnum as IsEnum22,
6489
- IsInt as IsInt7,
6494
+ IsInt as IsInt8,
6490
6495
  IsOptional as IsOptional34,
6491
6496
  IsArray as IsArray12,
6492
6497
  IsDateString as IsDateString5,
@@ -6523,7 +6528,7 @@ __decorateClass([
6523
6528
  IsString34({ each: true, message: "Each skill must be a valid string." })
6524
6529
  ], AdminUpdateJobInformationDto.prototype, "skills", 2);
6525
6530
  __decorateClass([
6526
- IsInt7({ message: "Openings must be a valid integer." }),
6531
+ IsInt8({ message: "Openings must be a valid integer." }),
6527
6532
  Min6(1, { message: "There must be at least one opening." })
6528
6533
  ], AdminUpdateJobInformationDto.prototype, "openings", 2);
6529
6534
  __decorateClass([
@@ -6553,11 +6558,11 @@ __decorateClass([
6553
6558
  IsNotEmpty53({ message: "Currency is required." })
6554
6559
  ], AdminUpdateJobInformationDto.prototype, "currency", 2);
6555
6560
  __decorateClass([
6556
- Type10(() => Number),
6561
+ Type11(() => Number),
6557
6562
  IsNumber6({}, { message: "Expected salary from must be a number." })
6558
6563
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
6559
6564
  __decorateClass([
6560
- Type10(() => Number),
6565
+ Type11(() => Number),
6561
6566
  IsNumber6({}, { message: "Expected salary to must be a number." })
6562
6567
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
6563
6568
  __decorateClass([
@@ -6577,16 +6582,16 @@ __decorateClass([
6577
6582
  IsString34({ message: "Additional comment must be a string." })
6578
6583
  ], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
6579
6584
  __decorateClass([
6580
- IsInt7({ message: "Country ID must be a valid integer." })
6585
+ IsInt8({ message: "Country ID must be a valid integer." })
6581
6586
  ], AdminUpdateJobInformationDto.prototype, "countryId", 2);
6582
6587
  __decorateClass([
6583
- IsInt7({ message: "State ID must be a valid integer." })
6588
+ IsInt8({ message: "State ID must be a valid integer." })
6584
6589
  ], AdminUpdateJobInformationDto.prototype, "stateId", 2);
6585
6590
  __decorateClass([
6586
- IsInt7({ message: "City ID must be a valid integer." })
6591
+ IsInt8({ message: "City ID must be a valid integer." })
6587
6592
  ], AdminUpdateJobInformationDto.prototype, "cityId", 2);
6588
6593
  __decorateClass([
6589
- IsInt7({ message: "Client ID must be a valid integer." })
6594
+ IsInt8({ message: "Client ID must be a valid integer." })
6590
6595
  ], AdminUpdateJobInformationDto.prototype, "clientId", 2);
6591
6596
 
6592
6597
  // src/modules/lead/pattern/pattern.ts
@@ -6714,10 +6719,10 @@ import {
6714
6719
  IsEmail as IsEmail15,
6715
6720
  IsUUID as IsUUID12,
6716
6721
  IsEnum as IsEnum24,
6717
- ValidateIf as ValidateIf7,
6722
+ ValidateIf as ValidateIf8,
6718
6723
  ValidateNested as ValidateNested5
6719
6724
  } from "class-validator";
6720
- import { Type as Type11 } from "class-transformer";
6725
+ import { Type as Type12 } from "class-transformer";
6721
6726
  var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
6722
6727
  CandidateType2["SHORTLISTED"] = "SHORTLISTED";
6723
6728
  CandidateType2["APPLICATNTS"] = "APPLICATNTS";
@@ -6752,18 +6757,18 @@ __decorateClass([
6752
6757
  var CandidatesDto = class {
6753
6758
  };
6754
6759
  __decorateClass([
6755
- ValidateIf7((o) => o.exixtingCandidates?.length > 0),
6760
+ ValidateIf8((o) => o.exixtingCandidates?.length > 0),
6756
6761
  IsArray13({ message: "Existing candidates should be an array." }),
6757
6762
  ArrayNotEmpty8({ message: "Please select at least one candidate." }),
6758
6763
  ValidateNested5({ each: true }),
6759
- Type11(() => ExistingCandidateDto)
6764
+ Type12(() => ExistingCandidateDto)
6760
6765
  ], CandidatesDto.prototype, "exixtingCandidates", 2);
6761
6766
  __decorateClass([
6762
- ValidateIf7((o) => o.newCandidates?.length > 0),
6767
+ ValidateIf8((o) => o.newCandidates?.length > 0),
6763
6768
  IsArray13({ message: "New candidates should be an array." }),
6764
6769
  ArrayNotEmpty8({ message: "Please add at least one candidate." }),
6765
6770
  ValidateNested5({ each: true }),
6766
- Type11(() => NewCandidateDto)
6771
+ Type12(() => NewCandidateDto)
6767
6772
  ], CandidatesDto.prototype, "newCandidates", 2);
6768
6773
  var InterviewInviteDto = class {
6769
6774
  };
@@ -6772,7 +6777,7 @@ __decorateClass([
6772
6777
  ], InterviewInviteDto.prototype, "jobId", 2);
6773
6778
  __decorateClass([
6774
6779
  ValidateNested5({ each: true }),
6775
- Type11(() => CandidatesDto)
6780
+ Type12(() => CandidatesDto)
6776
6781
  ], InterviewInviteDto.prototype, "candidates", 2);
6777
6782
 
6778
6783
  // src/modules/interview/dto/create-f2f-interview.dto.ts
@@ -6865,17 +6870,17 @@ var CONTRACT_PATTERN = {
6865
6870
 
6866
6871
  // src/modules/contract/dto/sign-contract-for-client.dto.ts
6867
6872
  import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber9 } from "class-validator";
6868
- import { Type as Type12 } from "class-transformer";
6873
+ import { Type as Type13 } from "class-transformer";
6869
6874
  var SignContractForClientDto = class {
6870
6875
  };
6871
6876
  __decorateClass([
6872
6877
  IsNotEmpty61({ message: "Job Id is required." }),
6873
- Type12(() => Number),
6878
+ Type13(() => Number),
6874
6879
  IsNumber9({}, { message: "Job ID must be a number." })
6875
6880
  ], SignContractForClientDto.prototype, "jobId", 2);
6876
6881
  __decorateClass([
6877
6882
  IsNotEmpty61({ message: "Freelancer ID is required." }),
6878
- Type12(() => Number),
6883
+ Type13(() => Number),
6879
6884
  IsNumber9({}, { message: "Freelancer ID must be a number." })
6880
6885
  ], SignContractForClientDto.prototype, "freelancerId", 2);
6881
6886
  __decorateClass([
@@ -6885,17 +6890,17 @@ __decorateClass([
6885
6890
 
6886
6891
  // src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
6887
6892
  import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber10 } from "class-validator";
6888
- import { Type as Type13 } from "class-transformer";
6893
+ import { Type as Type14 } from "class-transformer";
6889
6894
  var SignContractForFreelancerDto = class {
6890
6895
  };
6891
6896
  __decorateClass([
6892
6897
  IsNotEmpty62({ message: "Job Id is required." }),
6893
- Type13(() => Number),
6898
+ Type14(() => Number),
6894
6899
  IsNumber10({}, { message: "Job ID must be a number." })
6895
6900
  ], SignContractForFreelancerDto.prototype, "jobId", 2);
6896
6901
  __decorateClass([
6897
6902
  IsNotEmpty62({ message: "Client ID is required." }),
6898
- Type13(() => Number),
6903
+ Type14(() => Number),
6899
6904
  IsNumber10({}, { message: "Client ID must be a number." })
6900
6905
  ], SignContractForFreelancerDto.prototype, "clientId", 2);
6901
6906
  __decorateClass([
@@ -6947,7 +6952,7 @@ var TIMESHEET_CLIENT_PATTERN = {
6947
6952
  // src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
6948
6953
  import {
6949
6954
  IsDateString as IsDateString6,
6950
- IsInt as IsInt8,
6955
+ IsInt as IsInt9,
6951
6956
  IsNotEmpty as IsNotEmpty64,
6952
6957
  IsOptional as IsOptional40,
6953
6958
  IsString as IsString43,
@@ -6982,7 +6987,7 @@ __decorateClass([
6982
6987
  ], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
6983
6988
  __decorateClass([
6984
6989
  IsOptional40(),
6985
- IsInt8()
6990
+ IsInt9()
6986
6991
  ], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
6987
6992
  __decorateClass([
6988
6993
  IsOptional40(),
@@ -7003,7 +7008,7 @@ __decorateClass([
7003
7008
  // src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
7004
7009
  import {
7005
7010
  IsDateString as IsDateString7,
7006
- IsInt as IsInt9,
7011
+ IsInt as IsInt10,
7007
7012
  IsNotEmpty as IsNotEmpty65,
7008
7013
  IsOptional as IsOptional41,
7009
7014
  IsString as IsString44,
@@ -7038,7 +7043,7 @@ __decorateClass([
7038
7043
  ], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
7039
7044
  __decorateClass([
7040
7045
  IsOptional41(),
7041
- IsInt9()
7046
+ IsInt10()
7042
7047
  ], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
7043
7048
  __decorateClass([
7044
7049
  IsOptional41(),
@@ -18,7 +18,7 @@ export declare class UpdateFreelancerProfileDto {
18
18
  mobile: string;
19
19
  countryId: number;
20
20
  expectedHourlyCompensation: string;
21
- numberOfHours: string;
21
+ numberOfHours?: number;
22
22
  natureOfWork: NatureOfWorkDto;
23
23
  modeOfWork: ModeOfWorkDto;
24
24
  portfolioLink?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.478",
3
+ "version": "1.0.479",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",