@experts_hub/shared 1.0.521 → 1.0.522
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1527,7 +1527,7 @@ __decorateClass([
|
|
|
1527
1527
|
(0, import_class_transformer4.Type)(() => String)
|
|
1528
1528
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1529
1529
|
__decorateClass([
|
|
1530
|
-
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1530
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1531
1531
|
(0, import_class_validator38.IsArray)({ message: "locations must be an array" }),
|
|
1532
1532
|
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
1533
1533
|
(0, import_class_validator38.ValidateNested)({ each: true }),
|
|
@@ -7319,7 +7319,7 @@ __decorateClass([
|
|
|
7319
7319
|
(0, import_class_transformer14.Type)(() => String)
|
|
7320
7320
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7321
7321
|
__decorateClass([
|
|
7322
|
-
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7322
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
|
|
7323
7323
|
(0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
|
|
7324
7324
|
(0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
7325
7325
|
(0, import_class_validator64.ValidateNested)({ each: true }),
|
package/dist/index.mjs
CHANGED
|
@@ -1305,7 +1305,7 @@ __decorateClass([
|
|
|
1305
1305
|
Type3(() => String)
|
|
1306
1306
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1307
1307
|
__decorateClass([
|
|
1308
|
-
ValidateIf4((o) => !o.isDraft),
|
|
1308
|
+
ValidateIf4((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1309
1309
|
IsArray2({ message: "locations must be an array" }),
|
|
1310
1310
|
ArrayNotEmpty2({ message: "Please select at least one location" }),
|
|
1311
1311
|
ValidateNested({ each: true }),
|
|
@@ -7436,7 +7436,7 @@ __decorateClass([
|
|
|
7436
7436
|
Type12(() => String)
|
|
7437
7437
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7438
7438
|
__decorateClass([
|
|
7439
|
-
ValidateIf9((o) => !o.isDraft),
|
|
7439
|
+
ValidateIf9((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
|
|
7440
7440
|
IsArray14({ message: "locations must be an array" }),
|
|
7441
7441
|
ArrayNotEmpty9({ message: "Please select at least one location" }),
|
|
7442
7442
|
ValidateNested6({ each: true }),
|