@experts_hub/shared 1.0.531 → 1.0.534
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +17 -11
- package/dist/index.mjs +17 -11
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +4 -4
- package/package.json +1 -1
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
|
-
countryId: number;
|
|
557
|
-
stateId: number;
|
|
558
|
-
cityId: number;
|
|
556
|
+
countryId: number | null;
|
|
557
|
+
stateId: number | null;
|
|
558
|
+
cityId: number | null;
|
|
559
559
|
}
|
|
560
560
|
declare class JobBasicInformationV2Dto {
|
|
561
561
|
isDraft?: boolean;
|
|
@@ -565,9 +565,9 @@ declare class JobBasicInformationV2Dto {
|
|
|
565
565
|
note?: string;
|
|
566
566
|
skills: string[];
|
|
567
567
|
goodToHaveSkills: string[];
|
|
568
|
-
locations: JobLocationDto[];
|
|
569
568
|
openings: number;
|
|
570
569
|
locationMode: JobLocationEnumV2;
|
|
570
|
+
locations: JobLocationDto[];
|
|
571
571
|
typeOfEmployment: EmploymentTypeV2;
|
|
572
572
|
currency?: string;
|
|
573
573
|
expectedSalaryFrom: number;
|
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
|
-
countryId: number;
|
|
557
|
-
stateId: number;
|
|
558
|
-
cityId: number;
|
|
556
|
+
countryId: number | null;
|
|
557
|
+
stateId: number | null;
|
|
558
|
+
cityId: number | null;
|
|
559
559
|
}
|
|
560
560
|
declare class JobBasicInformationV2Dto {
|
|
561
561
|
isDraft?: boolean;
|
|
@@ -565,9 +565,9 @@ declare class JobBasicInformationV2Dto {
|
|
|
565
565
|
note?: string;
|
|
566
566
|
skills: string[];
|
|
567
567
|
goodToHaveSkills: string[];
|
|
568
|
-
locations: JobLocationDto[];
|
|
569
568
|
openings: number;
|
|
570
569
|
locationMode: JobLocationEnumV2;
|
|
570
|
+
locations: JobLocationDto[];
|
|
571
571
|
typeOfEmployment: EmploymentTypeV2;
|
|
572
572
|
currency?: string;
|
|
573
573
|
expectedSalaryFrom: number;
|
package/dist/index.js
CHANGED
|
@@ -1480,15 +1480,21 @@ var JobLocationDto = class {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
__decorateClass([
|
|
1482
1482
|
(0, import_class_validator38.IsOptional)(),
|
|
1483
|
-
(0, import_class_validator38.
|
|
1483
|
+
(0, import_class_validator38.ValidateIf)((o) => o.countryId !== null && o.countryId !== void 0),
|
|
1484
|
+
(0, import_class_validator38.IsNumber)({}, { message: "Country id must be a number" }),
|
|
1485
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1484
1486
|
], JobLocationDto.prototype, "countryId", 2);
|
|
1485
1487
|
__decorateClass([
|
|
1486
1488
|
(0, import_class_validator38.IsOptional)(),
|
|
1487
|
-
(0, import_class_validator38.
|
|
1489
|
+
(0, import_class_validator38.ValidateIf)((o) => o.stateId !== null && o.stateId !== void 0),
|
|
1490
|
+
(0, import_class_validator38.IsNumber)({}, { message: "State id must be a number" }),
|
|
1491
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1488
1492
|
], JobLocationDto.prototype, "stateId", 2);
|
|
1489
1493
|
__decorateClass([
|
|
1490
1494
|
(0, import_class_validator38.IsOptional)(),
|
|
1491
|
-
(0, import_class_validator38.
|
|
1495
|
+
(0, import_class_validator38.ValidateIf)((o) => o.cityId !== null && o.cityId !== void 0),
|
|
1496
|
+
(0, import_class_validator38.IsNumber)({}, { message: "City id must be a number" }),
|
|
1497
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1492
1498
|
], JobLocationDto.prototype, "cityId", 2);
|
|
1493
1499
|
var JobBasicInformationV2Dto = class {
|
|
1494
1500
|
constructor() {
|
|
@@ -1529,14 +1535,6 @@ __decorateClass([
|
|
|
1529
1535
|
(0, import_class_validator38.IsOptional)(),
|
|
1530
1536
|
(0, import_class_transformer4.Type)(() => String)
|
|
1531
1537
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1532
|
-
__decorateClass([
|
|
1533
|
-
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1534
|
-
(0, import_class_validator38.IsArray)({ message: "locations must be an array" }),
|
|
1535
|
-
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
1536
|
-
(0, import_class_validator38.ValidateNested)({ each: true }),
|
|
1537
|
-
(0, import_class_transformer4.Type)(() => JobLocationDto),
|
|
1538
|
-
(0, import_class_validator38.IsOptional)()
|
|
1539
|
-
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1540
1538
|
__decorateClass([
|
|
1541
1539
|
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1542
1540
|
(0, import_class_validator38.IsNumber)({}, { message: "Openings must be a number" }),
|
|
@@ -1551,6 +1549,13 @@ __decorateClass([
|
|
|
1551
1549
|
)}`
|
|
1552
1550
|
})
|
|
1553
1551
|
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1552
|
+
__decorateClass([
|
|
1553
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1554
|
+
(0, import_class_validator38.IsArray)({ message: "locations must be an array" }),
|
|
1555
|
+
(0, import_class_validator38.ValidateNested)({ each: true }),
|
|
1556
|
+
(0, import_class_transformer4.Type)(() => JobLocationDto),
|
|
1557
|
+
(0, import_class_validator38.IsOptional)()
|
|
1558
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1554
1559
|
__decorateClass([
|
|
1555
1560
|
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1556
1561
|
(0, import_class_validator38.IsEnum)(EmploymentTypeV2, {
|
|
@@ -1680,6 +1685,7 @@ __decorateClass([
|
|
|
1680
1685
|
(0, import_class_validator40.IsString)({ message: "Please enter valid first name." })
|
|
1681
1686
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1682
1687
|
__decorateClass([
|
|
1688
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1683
1689
|
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1684
1690
|
(0, import_class_validator40.IsString)({ message: "Please enter valid last name." })
|
|
1685
1691
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -1255,15 +1255,21 @@ var JobLocationDto = class {
|
|
|
1255
1255
|
};
|
|
1256
1256
|
__decorateClass([
|
|
1257
1257
|
IsOptional15(),
|
|
1258
|
-
|
|
1258
|
+
ValidateIf4((o) => o.countryId !== null && o.countryId !== void 0),
|
|
1259
|
+
IsNumber3({}, { message: "Country id must be a number" }),
|
|
1260
|
+
Type3(() => Number)
|
|
1259
1261
|
], JobLocationDto.prototype, "countryId", 2);
|
|
1260
1262
|
__decorateClass([
|
|
1261
1263
|
IsOptional15(),
|
|
1262
|
-
|
|
1264
|
+
ValidateIf4((o) => o.stateId !== null && o.stateId !== void 0),
|
|
1265
|
+
IsNumber3({}, { message: "State id must be a number" }),
|
|
1266
|
+
Type3(() => Number)
|
|
1263
1267
|
], JobLocationDto.prototype, "stateId", 2);
|
|
1264
1268
|
__decorateClass([
|
|
1265
1269
|
IsOptional15(),
|
|
1266
|
-
|
|
1270
|
+
ValidateIf4((o) => o.cityId !== null && o.cityId !== void 0),
|
|
1271
|
+
IsNumber3({}, { message: "City id must be a number" }),
|
|
1272
|
+
Type3(() => Number)
|
|
1267
1273
|
], JobLocationDto.prototype, "cityId", 2);
|
|
1268
1274
|
var JobBasicInformationV2Dto = class {
|
|
1269
1275
|
constructor() {
|
|
@@ -1304,14 +1310,6 @@ __decorateClass([
|
|
|
1304
1310
|
IsOptional15(),
|
|
1305
1311
|
Type3(() => String)
|
|
1306
1312
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1307
|
-
__decorateClass([
|
|
1308
|
-
ValidateIf4((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1309
|
-
IsArray2({ message: "locations must be an array" }),
|
|
1310
|
-
ArrayNotEmpty2({ message: "Please select at least one location" }),
|
|
1311
|
-
ValidateNested({ each: true }),
|
|
1312
|
-
Type3(() => JobLocationDto),
|
|
1313
|
-
IsOptional15()
|
|
1314
|
-
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1315
1313
|
__decorateClass([
|
|
1316
1314
|
ValidateIf4((o) => !o.isDraft),
|
|
1317
1315
|
IsNumber3({}, { message: "Openings must be a number" }),
|
|
@@ -1326,6 +1324,13 @@ __decorateClass([
|
|
|
1326
1324
|
)}`
|
|
1327
1325
|
})
|
|
1328
1326
|
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1327
|
+
__decorateClass([
|
|
1328
|
+
ValidateIf4((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1329
|
+
IsArray2({ message: "locations must be an array" }),
|
|
1330
|
+
ValidateNested({ each: true }),
|
|
1331
|
+
Type3(() => JobLocationDto),
|
|
1332
|
+
IsOptional15()
|
|
1333
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1329
1334
|
__decorateClass([
|
|
1330
1335
|
ValidateIf4((o) => !o.isDraft),
|
|
1331
1336
|
IsEnum12(EmploymentTypeV2, {
|
|
@@ -1470,6 +1475,7 @@ __decorateClass([
|
|
|
1470
1475
|
IsString17({ message: "Please enter valid first name." })
|
|
1471
1476
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1472
1477
|
__decorateClass([
|
|
1478
|
+
IsOptional16(),
|
|
1473
1479
|
IsNotEmpty34({ message: "Please enter last name." }),
|
|
1474
1480
|
IsString17({ message: "Please enter valid last name." })
|
|
1475
1481
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
@@ -16,9 +16,9 @@ export declare enum typeOfExperienceDtoEnumV2 {
|
|
|
16
16
|
RANGE = "RANGE"
|
|
17
17
|
}
|
|
18
18
|
export declare class JobLocationDto {
|
|
19
|
-
countryId: number;
|
|
20
|
-
stateId: number;
|
|
21
|
-
cityId: number;
|
|
19
|
+
countryId: number | null;
|
|
20
|
+
stateId: number | null;
|
|
21
|
+
cityId: number | null;
|
|
22
22
|
}
|
|
23
23
|
export declare class JobBasicInformationV2Dto {
|
|
24
24
|
isDraft?: boolean;
|
|
@@ -28,9 +28,9 @@ export declare class JobBasicInformationV2Dto {
|
|
|
28
28
|
note?: string;
|
|
29
29
|
skills: string[];
|
|
30
30
|
goodToHaveSkills: string[];
|
|
31
|
-
locations: JobLocationDto[];
|
|
32
31
|
openings: number;
|
|
33
32
|
locationMode: JobLocationEnumV2;
|
|
33
|
+
locations: JobLocationDto[];
|
|
34
34
|
typeOfEmployment: EmploymentTypeV2;
|
|
35
35
|
currency?: string;
|
|
36
36
|
expectedSalaryFrom: number;
|