@experts_hub/shared 1.0.548 → 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
@@ -2842,8 +2842,8 @@ declare class AdminJobBasicInformationV2Dto {
2842
2842
  openings: number;
2843
2843
  location: JobLocationAdminEnumDto;
2844
2844
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2845
- expectedSalaryFrom: number;
2846
- expectedSalaryTo: number;
2845
+ expectedSalaryFrom?: number;
2846
+ expectedSalaryTo?: number;
2847
2847
  locations: JobLocationAdminDto[];
2848
2848
  academicQualification?: string;
2849
2849
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
package/dist/index.d.ts CHANGED
@@ -2842,8 +2842,8 @@ declare class AdminJobBasicInformationV2Dto {
2842
2842
  openings: number;
2843
2843
  location: JobLocationAdminEnumDto;
2844
2844
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2845
- expectedSalaryFrom: number;
2846
- expectedSalaryTo: number;
2845
+ expectedSalaryFrom?: number;
2846
+ expectedSalaryTo?: number;
2847
2847
  locations: JobLocationAdminDto[];
2848
2848
  academicQualification?: string;
2849
2849
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
package/dist/index.js CHANGED
@@ -7534,13 +7534,13 @@ __decorateClass([
7534
7534
  })
7535
7535
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7536
7536
  __decorateClass([
7537
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7537
+ (0, import_class_validator64.IsOptional)(),
7538
7538
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
7539
7539
  (0, import_class_validator64.Min)(0, { message: "Expected salary (from) cannot be negative" }),
7540
7540
  (0, import_class_transformer14.Type)(() => Number)
7541
7541
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7542
7542
  __decorateClass([
7543
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7543
+ (0, import_class_validator64.IsOptional)(),
7544
7544
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
7545
7545
  (0, import_class_validator64.Min)(0, { message: "Expected salary (to) cannot be negative" }),
7546
7546
  (0, import_class_transformer14.Type)(() => Number)
package/dist/index.mjs CHANGED
@@ -7654,13 +7654,13 @@ __decorateClass([
7654
7654
  })
7655
7655
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7656
7656
  __decorateClass([
7657
- ValidateIf9((o) => !o.isDraft),
7657
+ IsOptional36(),
7658
7658
  IsNumber9({}, { message: "Expected salary (from) must be a number" }),
7659
7659
  Min8(0, { message: "Expected salary (from) cannot be negative" }),
7660
7660
  Type12(() => Number)
7661
7661
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7662
7662
  __decorateClass([
7663
- ValidateIf9((o) => !o.isDraft),
7663
+ IsOptional36(),
7664
7664
  IsNumber9({}, { message: "Expected salary (to) must be a number" }),
7665
7665
  Min8(0, { message: "Expected salary (to) cannot be negative" }),
7666
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.548",
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/",