@experts_hub/shared 1.0.515 → 1.0.516

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
@@ -553,9 +553,9 @@ declare enum typeOfExperienceDtoEnumV2 {
553
553
  RANGE = "RANGE"
554
554
  }
555
555
  declare class JobLocationDto {
556
- cityId?: string;
557
- stateId?: string;
558
556
  countryId: number;
557
+ stateId: number;
558
+ cityId: number;
559
559
  }
560
560
  declare class JobBasicInformationV2Dto {
561
561
  isDraft?: boolean;
package/dist/index.d.ts CHANGED
@@ -553,9 +553,9 @@ declare enum typeOfExperienceDtoEnumV2 {
553
553
  RANGE = "RANGE"
554
554
  }
555
555
  declare class JobLocationDto {
556
- cityId?: string;
557
- stateId?: string;
558
556
  countryId: number;
557
+ stateId: number;
558
+ cityId: number;
559
559
  }
560
560
  declare class JobBasicInformationV2Dto {
561
561
  isDraft?: boolean;
package/dist/index.js CHANGED
@@ -1472,17 +1472,16 @@ var JobLocationDto = class {
1472
1472
  };
1473
1473
  __decorateClass([
1474
1474
  (0, import_class_validator38.IsOptional)(),
1475
- (0, import_class_validator38.IsString)({ message: "City id must be a string" })
1476
- ], JobLocationDto.prototype, "cityId", 2);
1475
+ (0, import_class_validator38.IsNumber)()
1476
+ ], JobLocationDto.prototype, "countryId", 2);
1477
1477
  __decorateClass([
1478
1478
  (0, import_class_validator38.IsOptional)(),
1479
- (0, import_class_validator38.IsString)({ message: "State id must be a string" })
1479
+ (0, import_class_validator38.IsNumber)()
1480
1480
  ], JobLocationDto.prototype, "stateId", 2);
1481
1481
  __decorateClass([
1482
- (0, import_class_validator38.IsNotEmpty)({ message: "Country id is required" }),
1483
- (0, import_class_validator38.IsNumber)({}, { message: "Country id must be a number" }),
1484
- (0, import_class_transformer4.Type)(() => Number)
1485
- ], JobLocationDto.prototype, "countryId", 2);
1482
+ (0, import_class_validator38.IsOptional)(),
1483
+ (0, import_class_validator38.IsNumber)()
1484
+ ], JobLocationDto.prototype, "cityId", 2);
1486
1485
  var JobBasicInformationV2Dto = class {
1487
1486
  constructor() {
1488
1487
  this.isDraft = false;
package/dist/index.mjs CHANGED
@@ -1255,17 +1255,16 @@ var JobLocationDto = class {
1255
1255
  };
1256
1256
  __decorateClass([
1257
1257
  IsOptional15(),
1258
- IsString15({ message: "City id must be a string" })
1259
- ], JobLocationDto.prototype, "cityId", 2);
1258
+ IsNumber3()
1259
+ ], JobLocationDto.prototype, "countryId", 2);
1260
1260
  __decorateClass([
1261
1261
  IsOptional15(),
1262
- IsString15({ message: "State id must be a string" })
1262
+ IsNumber3()
1263
1263
  ], JobLocationDto.prototype, "stateId", 2);
1264
1264
  __decorateClass([
1265
- IsNotEmpty32({ message: "Country id is required" }),
1266
- IsNumber3({}, { message: "Country id must be a number" }),
1267
- Type3(() => Number)
1268
- ], JobLocationDto.prototype, "countryId", 2);
1265
+ IsOptional15(),
1266
+ IsNumber3()
1267
+ ], JobLocationDto.prototype, "cityId", 2);
1269
1268
  var JobBasicInformationV2Dto = class {
1270
1269
  constructor() {
1271
1270
  this.isDraft = false;
@@ -16,9 +16,9 @@ export declare enum typeOfExperienceDtoEnumV2 {
16
16
  RANGE = "RANGE"
17
17
  }
18
18
  export declare class JobLocationDto {
19
- cityId?: string;
20
- stateId?: string;
21
19
  countryId: number;
20
+ stateId: number;
21
+ cityId: number;
22
22
  }
23
23
  export declare class JobBasicInformationV2Dto {
24
24
  isDraft?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.515",
3
+ "version": "1.0.516",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",