@experts_hub/shared 1.0.421 → 1.0.422

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.js CHANGED
@@ -1285,7 +1285,7 @@ __decorateClass([
1285
1285
  (0, import_class_validator33.IsString)({ message: "End date must be valid" })
1286
1286
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1287
1287
  __decorateClass([
1288
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && o.typeOfEmployment === "HOURLY" /* HOURLY */),
1288
+ (0, import_class_validator33.IsOptional)(),
1289
1289
  (0, import_class_validator33.IsNumber)({}, { message: "Number of hours must be a number" }),
1290
1290
  (0, import_class_validator33.Min)(0, { message: "Number of hours cannot be negative" }),
1291
1291
  (0, import_class_validator33.Max)(40, { message: "Number of hours cannot exceed 40" }),
package/dist/index.mjs CHANGED
@@ -1088,7 +1088,7 @@ __decorateClass([
1088
1088
  IsString12({ message: "End date must be valid" })
1089
1089
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1090
1090
  __decorateClass([
1091
- ValidateIf3((o) => !o.isDraft && o.typeOfEmployment === "HOURLY" /* HOURLY */),
1091
+ IsOptional12(),
1092
1092
  IsNumber({}, { message: "Number of hours must be a number" }),
1093
1093
  Min(0, { message: "Number of hours cannot be negative" }),
1094
1094
  Max(40, { message: "Number of hours cannot exceed 40" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.421",
3
+ "version": "1.0.422",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",