@experts_hub/shared 1.0.403 → 1.0.405

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.
@@ -18,7 +18,9 @@ export declare enum JobLocationEnum {
18
18
  export declare enum TypeOfEmploymentEnum {
19
19
  FULLTIME = "FULLTIME",
20
20
  PARTTIME = "PARTTIME",
21
- BOTH = "BOTH"
21
+ BOTH = "BOTH",
22
+ HOURLY = "HOURLY",
23
+ FTE = "FTE"
22
24
  }
23
25
  export declare enum Step {
24
26
  BASIC_INFORMATION = "BASIC_INFORMATION",
package/dist/index.d.mts CHANGED
@@ -466,7 +466,9 @@ declare enum JobLocation {
466
466
  declare enum EmploymentType {
467
467
  FULLTIME = "FULLTIME",
468
468
  PARTTIME = "PARTTIME",
469
- BOTH = "BOTH"
469
+ BOTH = "BOTH",
470
+ HOURLY = "HOURLY",
471
+ FTE = "FTE"
470
472
  }
471
473
  declare class JobBasicInformationDto {
472
474
  isDraft?: boolean;
@@ -482,9 +484,12 @@ declare class JobBasicInformationDto {
482
484
  typeOfEmployment: EmploymentType;
483
485
  currency?: string;
484
486
  expectedSalaryFrom: number;
487
+ hideExpectedSalaryFrom: boolean;
485
488
  expectedSalaryTo: number;
489
+ hideExpectedSalaryTo: boolean;
486
490
  tentativeStartDate: string;
487
491
  tentativeEndDate: string;
492
+ numberOfHours: number;
488
493
  onboardingTat?: string;
489
494
  candidateCommunicationSkills?: string;
490
495
  academicQualification?: string;
@@ -1186,7 +1191,9 @@ declare enum JobLocationEnum {
1186
1191
  declare enum TypeOfEmploymentEnum {
1187
1192
  FULLTIME = "FULLTIME",
1188
1193
  PARTTIME = "PARTTIME",
1189
- BOTH = "BOTH"
1194
+ BOTH = "BOTH",
1195
+ HOURLY = "HOURLY",
1196
+ FTE = "FTE"
1190
1197
  }
1191
1198
  declare enum Step {
1192
1199
  BASIC_INFORMATION = "BASIC_INFORMATION",
package/dist/index.d.ts CHANGED
@@ -466,7 +466,9 @@ declare enum JobLocation {
466
466
  declare enum EmploymentType {
467
467
  FULLTIME = "FULLTIME",
468
468
  PARTTIME = "PARTTIME",
469
- BOTH = "BOTH"
469
+ BOTH = "BOTH",
470
+ HOURLY = "HOURLY",
471
+ FTE = "FTE"
470
472
  }
471
473
  declare class JobBasicInformationDto {
472
474
  isDraft?: boolean;
@@ -482,9 +484,12 @@ declare class JobBasicInformationDto {
482
484
  typeOfEmployment: EmploymentType;
483
485
  currency?: string;
484
486
  expectedSalaryFrom: number;
487
+ hideExpectedSalaryFrom: boolean;
485
488
  expectedSalaryTo: number;
489
+ hideExpectedSalaryTo: boolean;
486
490
  tentativeStartDate: string;
487
491
  tentativeEndDate: string;
492
+ numberOfHours: number;
488
493
  onboardingTat?: string;
489
494
  candidateCommunicationSkills?: string;
490
495
  academicQualification?: string;
@@ -1186,7 +1191,9 @@ declare enum JobLocationEnum {
1186
1191
  declare enum TypeOfEmploymentEnum {
1187
1192
  FULLTIME = "FULLTIME",
1188
1193
  PARTTIME = "PARTTIME",
1189
- BOTH = "BOTH"
1194
+ BOTH = "BOTH",
1195
+ HOURLY = "HOURLY",
1196
+ FTE = "FTE"
1190
1197
  }
1191
1198
  declare enum Step {
1192
1199
  BASIC_INFORMATION = "BASIC_INFORMATION",
package/dist/index.js CHANGED
@@ -1177,6 +1177,8 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
1177
1177
  EmploymentType2["FULLTIME"] = "FULLTIME";
1178
1178
  EmploymentType2["PARTTIME"] = "PARTTIME";
1179
1179
  EmploymentType2["BOTH"] = "BOTH";
1180
+ EmploymentType2["HOURLY"] = "HOURLY";
1181
+ EmploymentType2["FTE"] = "FTE";
1180
1182
  return EmploymentType2;
1181
1183
  })(EmploymentType || {});
1182
1184
  var JobBasicInformationDto = class {
@@ -1254,12 +1256,18 @@ __decorateClass([
1254
1256
  (0, import_class_validator33.Min)(0, { message: "Expected salary (from) cannot be negative" }),
1255
1257
  (0, import_class_transformer2.Type)(() => Number)
1256
1258
  ], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
1259
+ __decorateClass([
1260
+ (0, import_class_validator33.IsOptional)()
1261
+ ], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
1257
1262
  __decorateClass([
1258
1263
  (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1259
1264
  (0, import_class_validator33.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
1260
1265
  (0, import_class_validator33.Min)(0, { message: "Expected salary (to) cannot be negative" }),
1261
1266
  (0, import_class_transformer2.Type)(() => Number)
1262
1267
  ], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
1268
+ __decorateClass([
1269
+ (0, import_class_validator33.IsOptional)()
1270
+ ], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
1263
1271
  __decorateClass([
1264
1272
  (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1265
1273
  (0, import_class_validator33.IsNotEmpty)({ message: "Please enter start date" }),
@@ -1270,6 +1278,13 @@ __decorateClass([
1270
1278
  (0, import_class_validator33.IsNotEmpty)({ message: "Please enter end date" }),
1271
1279
  (0, import_class_validator33.IsString)({ message: "End date must be valid" })
1272
1280
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1281
+ __decorateClass([
1282
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && o.typeOfEmployment === "HOURLY" /* HOURLY */),
1283
+ (0, import_class_validator33.IsNumber)({}, { message: "Number of hours must be a number" }),
1284
+ (0, import_class_validator33.Min)(0, { message: "Number of hours cannot be negative" }),
1285
+ (0, import_class_validator33.Max)(40, { message: "Number of hours cannot exceed 40" }),
1286
+ (0, import_class_transformer2.Type)(() => Number)
1287
+ ], JobBasicInformationDto.prototype, "numberOfHours", 2);
1273
1288
  __decorateClass([
1274
1289
  (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1275
1290
  (0, import_class_validator33.IsString)({ message: "Onboarding TAT must be a string" }),
@@ -3417,6 +3432,8 @@ var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
3417
3432
  TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
3418
3433
  TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
3419
3434
  TypeOfEmploymentEnum2["BOTH"] = "BOTH";
3435
+ TypeOfEmploymentEnum2["HOURLY"] = "HOURLY";
3436
+ TypeOfEmploymentEnum2["FTE"] = "FTE";
3420
3437
  return TypeOfEmploymentEnum2;
3421
3438
  })(TypeOfEmploymentEnum || {});
3422
3439
  var Step = /* @__PURE__ */ ((Step2) => {
package/dist/index.mjs CHANGED
@@ -965,7 +965,8 @@ import {
965
965
  IsEnum as IsEnum10,
966
966
  Min,
967
967
  ValidateIf as ValidateIf3,
968
- MaxLength as MaxLength6
968
+ MaxLength as MaxLength6,
969
+ Max
969
970
  } from "class-validator";
970
971
  import { Type } from "class-transformer";
971
972
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
@@ -978,6 +979,8 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
978
979
  EmploymentType2["FULLTIME"] = "FULLTIME";
979
980
  EmploymentType2["PARTTIME"] = "PARTTIME";
980
981
  EmploymentType2["BOTH"] = "BOTH";
982
+ EmploymentType2["HOURLY"] = "HOURLY";
983
+ EmploymentType2["FTE"] = "FTE";
981
984
  return EmploymentType2;
982
985
  })(EmploymentType || {});
983
986
  var JobBasicInformationDto = class {
@@ -1055,12 +1058,18 @@ __decorateClass([
1055
1058
  Min(0, { message: "Expected salary (from) cannot be negative" }),
1056
1059
  Type(() => Number)
1057
1060
  ], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
1061
+ __decorateClass([
1062
+ IsOptional11()
1063
+ ], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
1058
1064
  __decorateClass([
1059
1065
  ValidateIf3((o) => !o.isDraft),
1060
1066
  IsNumber({}, { message: "Expected salary (to) must be a number" }),
1061
1067
  Min(0, { message: "Expected salary (to) cannot be negative" }),
1062
1068
  Type(() => Number)
1063
1069
  ], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
1070
+ __decorateClass([
1071
+ IsOptional11()
1072
+ ], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
1064
1073
  __decorateClass([
1065
1074
  ValidateIf3((o) => !o.isDraft),
1066
1075
  IsNotEmpty29({ message: "Please enter start date" }),
@@ -1071,6 +1080,13 @@ __decorateClass([
1071
1080
  IsNotEmpty29({ message: "Please enter end date" }),
1072
1081
  IsString12({ message: "End date must be valid" })
1073
1082
  ], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
1083
+ __decorateClass([
1084
+ ValidateIf3((o) => !o.isDraft && o.typeOfEmployment === "HOURLY" /* HOURLY */),
1085
+ IsNumber({}, { message: "Number of hours must be a number" }),
1086
+ Min(0, { message: "Number of hours cannot be negative" }),
1087
+ Max(40, { message: "Number of hours cannot exceed 40" }),
1088
+ Type(() => Number)
1089
+ ], JobBasicInformationDto.prototype, "numberOfHours", 2);
1074
1090
  __decorateClass([
1075
1091
  ValidateIf3((o) => !o.isDraft),
1076
1092
  IsString12({ message: "Onboarding TAT must be a string" }),
@@ -1421,7 +1437,7 @@ import {
1421
1437
  IsNotEmpty as IsNotEmpty35,
1422
1438
  IsOptional as IsOptional15,
1423
1439
  IsString as IsString17,
1424
- Max,
1440
+ Max as Max2,
1425
1441
  Min as Min2
1426
1442
  } from "class-validator";
1427
1443
 
@@ -3345,6 +3361,8 @@ var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
3345
3361
  TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
3346
3362
  TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
3347
3363
  TypeOfEmploymentEnum2["BOTH"] = "BOTH";
3364
+ TypeOfEmploymentEnum2["HOURLY"] = "HOURLY";
3365
+ TypeOfEmploymentEnum2["FTE"] = "FTE";
3348
3366
  return TypeOfEmploymentEnum2;
3349
3367
  })(TypeOfEmploymentEnum || {});
3350
3368
  var Step = /* @__PURE__ */ ((Step2) => {
@@ -4978,7 +4996,7 @@ __decorateClass([
4978
4996
  __decorateClass([
4979
4997
  IsInt({ message: "Rating must be an integer value" }),
4980
4998
  Min2(1, { message: "Rating must be at least 1" }),
4981
- Max(5, { message: "Rating must be at most 5" })
4999
+ Max2(5, { message: "Rating must be at most 5" })
4982
5000
  ], CreateRatingDto.prototype, "rating", 2);
4983
5001
  __decorateClass([
4984
5002
  IsOptional15(),
@@ -6,7 +6,9 @@ export declare enum JobLocation {
6
6
  export declare enum EmploymentType {
7
7
  FULLTIME = "FULLTIME",
8
8
  PARTTIME = "PARTTIME",
9
- BOTH = "BOTH"
9
+ BOTH = "BOTH",
10
+ HOURLY = "HOURLY",
11
+ FTE = "FTE"
10
12
  }
11
13
  export declare class JobBasicInformationDto {
12
14
  isDraft?: boolean;
@@ -22,9 +24,12 @@ export declare class JobBasicInformationDto {
22
24
  typeOfEmployment: EmploymentType;
23
25
  currency?: string;
24
26
  expectedSalaryFrom: number;
27
+ hideExpectedSalaryFrom: boolean;
25
28
  expectedSalaryTo: number;
29
+ hideExpectedSalaryTo: boolean;
26
30
  tentativeStartDate: string;
27
31
  tentativeEndDate: string;
32
+ numberOfHours: number;
28
33
  onboardingTat?: string;
29
34
  candidateCommunicationSkills?: string;
30
35
  academicQualification?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.403",
3
+ "version": "1.0.405",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",