@experts_hub/shared 1.0.420 → 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.d.mts CHANGED
@@ -463,7 +463,7 @@ declare const JOB_PATTERN: {
463
463
  declare enum JobLocation {
464
464
  ONSITE = "ONSITE",
465
465
  REMOTE = "REMOTE",
466
- BOTH = "BOTH"
466
+ HYBRID = "HYBRID"
467
467
  }
468
468
  declare enum EmploymentType {
469
469
  FULLTIME = "FULLTIME",
package/dist/index.d.ts CHANGED
@@ -463,7 +463,7 @@ declare const JOB_PATTERN: {
463
463
  declare enum JobLocation {
464
464
  ONSITE = "ONSITE",
465
465
  REMOTE = "REMOTE",
466
- BOTH = "BOTH"
466
+ HYBRID = "HYBRID"
467
467
  }
468
468
  declare enum EmploymentType {
469
469
  FULLTIME = "FULLTIME",
package/dist/index.js CHANGED
@@ -1176,7 +1176,7 @@ var import_class_transformer2 = require("class-transformer");
1176
1176
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
1177
1177
  JobLocation2["ONSITE"] = "ONSITE";
1178
1178
  JobLocation2["REMOTE"] = "REMOTE";
1179
- JobLocation2["BOTH"] = "BOTH";
1179
+ JobLocation2["HYBRID"] = "HYBRID";
1180
1180
  return JobLocation2;
1181
1181
  })(JobLocation || {});
1182
1182
  var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
@@ -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
@@ -979,7 +979,7 @@ import { Type } from "class-transformer";
979
979
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
980
980
  JobLocation2["ONSITE"] = "ONSITE";
981
981
  JobLocation2["REMOTE"] = "REMOTE";
982
- JobLocation2["BOTH"] = "BOTH";
982
+ JobLocation2["HYBRID"] = "HYBRID";
983
983
  return JobLocation2;
984
984
  })(JobLocation || {});
985
985
  var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
@@ -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" }),
@@ -1,7 +1,7 @@
1
1
  export declare enum JobLocation {
2
2
  ONSITE = "ONSITE",
3
3
  REMOTE = "REMOTE",
4
- BOTH = "BOTH"
4
+ HYBRID = "HYBRID"
5
5
  }
6
6
  export declare enum EmploymentType {
7
7
  FULLTIME = "FULLTIME",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.420",
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/",