@experts_hub/shared 1.0.461 → 1.0.462

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
@@ -1246,17 +1246,17 @@ __decorateClass([
1246
1246
  })
1247
1247
  ], JobBasicInformationDto.prototype, "location", 2);
1248
1248
  __decorateClass([
1249
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1249
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1250
1250
  (0, import_class_validator33.IsNumber)({}, { message: "Country id must be a number" }),
1251
1251
  (0, import_class_transformer2.Type)(() => Number)
1252
1252
  ], JobBasicInformationDto.prototype, "countryId", 2);
1253
1253
  __decorateClass([
1254
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1254
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1255
1255
  (0, import_class_validator33.IsNumber)({}, { message: "State id must be a number" }),
1256
1256
  (0, import_class_transformer2.Type)(() => Number)
1257
1257
  ], JobBasicInformationDto.prototype, "stateId", 2);
1258
1258
  __decorateClass([
1259
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1259
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1260
1260
  (0, import_class_validator33.IsNumber)({}, { message: "City id must be a number" }),
1261
1261
  (0, import_class_transformer2.Type)(() => Number)
1262
1262
  ], JobBasicInformationDto.prototype, "cityId", 2);
package/dist/index.mjs CHANGED
@@ -1034,17 +1034,17 @@ __decorateClass([
1034
1034
  })
1035
1035
  ], JobBasicInformationDto.prototype, "location", 2);
1036
1036
  __decorateClass([
1037
- ValidateIf3((o) => !o.isDraft),
1037
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1038
1038
  IsNumber({}, { message: "Country id must be a number" }),
1039
1039
  Type(() => Number)
1040
1040
  ], JobBasicInformationDto.prototype, "countryId", 2);
1041
1041
  __decorateClass([
1042
- ValidateIf3((o) => !o.isDraft),
1042
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1043
1043
  IsNumber({}, { message: "State id must be a number" }),
1044
1044
  Type(() => Number)
1045
1045
  ], JobBasicInformationDto.prototype, "stateId", 2);
1046
1046
  __decorateClass([
1047
- ValidateIf3((o) => !o.isDraft),
1047
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1048
1048
  IsNumber({}, { message: "City id must be a number" }),
1049
1049
  Type(() => Number)
1050
1050
  ], JobBasicInformationDto.prototype, "cityId", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.461",
3
+ "version": "1.0.462",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",