@experts_hub/shared 1.0.404 → 1.0.406

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
@@ -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;
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;
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" }),
@@ -2943,7 +2958,7 @@ __decorateClass([
2943
2958
  (0, import_typeorm20.Index)()
2944
2959
  ], JobRecommendation.prototype, "clientId", 2);
2945
2960
  __decorateClass([
2946
- (0, import_typeorm20.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
2961
+ (0, import_typeorm20.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
2947
2962
  ], JobRecommendation.prototype, "matchScore", 2);
2948
2963
  __decorateClass([
2949
2964
  (0, import_typeorm20.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
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
 
@@ -2871,7 +2887,7 @@ __decorateClass([
2871
2887
  Index13()
2872
2888
  ], JobRecommendation.prototype, "clientId", 2);
2873
2889
  __decorateClass([
2874
- Column20({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
2890
+ Column20({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
2875
2891
  ], JobRecommendation.prototype, "matchScore", 2);
2876
2892
  __decorateClass([
2877
2893
  Column20({ name: "match_score_summary", type: "jsonb", nullable: true })
@@ -4980,7 +4996,7 @@ __decorateClass([
4980
4996
  __decorateClass([
4981
4997
  IsInt({ message: "Rating must be an integer value" }),
4982
4998
  Min2(1, { message: "Rating must be at least 1" }),
4983
- Max(5, { message: "Rating must be at most 5" })
4999
+ Max2(5, { message: "Rating must be at most 5" })
4984
5000
  ], CreateRatingDto.prototype, "rating", 2);
4985
5001
  __decorateClass([
4986
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.404",
3
+ "version": "1.0.406",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",