@experts_hub/shared 1.0.545 → 1.0.549

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
@@ -626,6 +626,7 @@ declare class UpdateFreelancerProfileDto {
626
626
  stateId: number;
627
627
  cityId: number;
628
628
  expectedHourlyCompensation: string;
629
+ expectedAnnualCompensation: string;
629
630
  numberOfHours?: number;
630
631
  natureOfWork: NatureOfWorkDto;
631
632
  modeOfWork: ModeOfWorkDto;
@@ -2841,8 +2842,8 @@ declare class AdminJobBasicInformationV2Dto {
2841
2842
  openings: number;
2842
2843
  location: JobLocationAdminEnumDto;
2843
2844
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2844
- expectedSalaryFrom: number;
2845
- expectedSalaryTo: number;
2845
+ expectedSalaryFrom?: number;
2846
+ expectedSalaryTo?: number;
2846
2847
  locations: JobLocationAdminDto[];
2847
2848
  academicQualification?: string;
2848
2849
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
package/dist/index.d.ts CHANGED
@@ -626,6 +626,7 @@ declare class UpdateFreelancerProfileDto {
626
626
  stateId: number;
627
627
  cityId: number;
628
628
  expectedHourlyCompensation: string;
629
+ expectedAnnualCompensation: string;
629
630
  numberOfHours?: number;
630
631
  natureOfWork: NatureOfWorkDto;
631
632
  modeOfWork: ModeOfWorkDto;
@@ -2841,8 +2842,8 @@ declare class AdminJobBasicInformationV2Dto {
2841
2842
  openings: number;
2842
2843
  location: JobLocationAdminEnumDto;
2843
2844
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2844
- expectedSalaryFrom: number;
2845
- expectedSalaryTo: number;
2845
+ expectedSalaryFrom?: number;
2846
+ expectedSalaryTo?: number;
2846
2847
  locations: JobLocationAdminDto[];
2847
2848
  academicQualification?: string;
2848
2849
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
package/dist/index.js CHANGED
@@ -1734,6 +1734,10 @@ __decorateClass([
1734
1734
  __decorateClass([
1735
1735
  (0, import_class_validator40.IsNotEmpty)({ message: "Please enter expected hourly compensation." })
1736
1736
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1737
+ __decorateClass([
1738
+ (0, import_class_validator40.ValidateIf)((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
1739
+ (0, import_class_validator40.IsNotEmpty)({ message: "Please enter expected annual compensation." })
1740
+ ], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
1737
1741
  __decorateClass([
1738
1742
  (0, import_class_validator40.ValidateIf)((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
1739
1743
  (0, import_class_validator40.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
@@ -7530,13 +7534,13 @@ __decorateClass([
7530
7534
  })
7531
7535
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7532
7536
  __decorateClass([
7533
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7537
+ (0, import_class_validator64.IsOptional)(),
7534
7538
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
7535
7539
  (0, import_class_validator64.Min)(0, { message: "Expected salary (from) cannot be negative" }),
7536
7540
  (0, import_class_transformer14.Type)(() => Number)
7537
7541
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7538
7542
  __decorateClass([
7539
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7543
+ (0, import_class_validator64.IsOptional)(),
7540
7544
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
7541
7545
  (0, import_class_validator64.Min)(0, { message: "Expected salary (to) cannot be negative" }),
7542
7546
  (0, import_class_transformer14.Type)(() => Number)
package/dist/index.mjs CHANGED
@@ -1519,6 +1519,10 @@ __decorateClass([
1519
1519
  __decorateClass([
1520
1520
  IsNotEmpty34({ message: "Please enter expected hourly compensation." })
1521
1521
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1522
+ __decorateClass([
1523
+ ValidateIf5((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
1524
+ IsNotEmpty34({ message: "Please enter expected annual compensation." })
1525
+ ], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
1522
1526
  __decorateClass([
1523
1527
  ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
1524
1528
  IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
@@ -7650,13 +7654,13 @@ __decorateClass([
7650
7654
  })
7651
7655
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7652
7656
  __decorateClass([
7653
- ValidateIf9((o) => !o.isDraft),
7657
+ IsOptional36(),
7654
7658
  IsNumber9({}, { message: "Expected salary (from) must be a number" }),
7655
7659
  Min8(0, { message: "Expected salary (from) cannot be negative" }),
7656
7660
  Type12(() => Number)
7657
7661
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7658
7662
  __decorateClass([
7659
- ValidateIf9((o) => !o.isDraft),
7663
+ IsOptional36(),
7660
7664
  IsNumber9({}, { message: "Expected salary (to) must be a number" }),
7661
7665
  Min8(0, { message: "Expected salary (to) cannot be negative" }),
7662
7666
  Type12(() => Number)
@@ -29,8 +29,8 @@ export declare class AdminJobBasicInformationV2Dto {
29
29
  openings: number;
30
30
  location: JobLocationAdminEnumDto;
31
31
  typeOfEmployment: EmploymentTypeAdminEnumDto;
32
- expectedSalaryFrom: number;
33
- expectedSalaryTo: number;
32
+ expectedSalaryFrom?: number;
33
+ expectedSalaryTo?: number;
34
34
  locations: JobLocationAdminDto[];
35
35
  academicQualification?: string;
36
36
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
@@ -20,6 +20,7 @@ export declare class UpdateFreelancerProfileDto {
20
20
  stateId: number;
21
21
  cityId: number;
22
22
  expectedHourlyCompensation: string;
23
+ expectedAnnualCompensation: string;
23
24
  numberOfHours?: number;
24
25
  natureOfWork: NatureOfWorkDto;
25
26
  modeOfWork: ModeOfWorkDto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.545",
3
+ "version": "1.0.549",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",