@experts_hub/shared 1.0.627 → 1.0.629

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
@@ -3622,12 +3622,16 @@ declare enum ContractTypeEnumDto {
3622
3622
  SOW = "SOW",
3623
3623
  MSA = "MSA"
3624
3624
  }
3625
+ declare enum PreferredEngagementTypeEnum$1 {
3626
+ FREELANCE = "FREELANCE"
3627
+ }
3625
3628
  declare class GenerateContractDto {
3626
3629
  jobId: number;
3627
3630
  freelancerId: number;
3628
3631
  contractType?: ContractTypeEnumDto;
3629
3632
  contractStartDate?: string;
3630
3633
  contractInvoicingCycle?: string;
3634
+ preferredEngagementType?: PreferredEngagementTypeEnum$1;
3631
3635
  source?: ContractSourceEnum$1;
3632
3636
  sourceUuid?: string;
3633
3637
  }
@@ -3886,9 +3890,14 @@ declare const HIRING_PATTERN: {
3886
3890
  createHiring: string;
3887
3891
  };
3888
3892
 
3893
+ declare enum PreferredEngagementTypeEnum {
3894
+ FTE = "FTE",
3895
+ FREELANCE = "FREELANCE"
3896
+ }
3889
3897
  declare class CreateHiringDto {
3890
3898
  freelancerId: number;
3891
3899
  jobId: number;
3900
+ preferredEngagementType?: PreferredEngagementTypeEnum;
3892
3901
  }
3893
3902
 
3894
3903
  declare const LLM_PATTERN: {
package/dist/index.d.ts CHANGED
@@ -3622,12 +3622,16 @@ declare enum ContractTypeEnumDto {
3622
3622
  SOW = "SOW",
3623
3623
  MSA = "MSA"
3624
3624
  }
3625
+ declare enum PreferredEngagementTypeEnum$1 {
3626
+ FREELANCE = "FREELANCE"
3627
+ }
3625
3628
  declare class GenerateContractDto {
3626
3629
  jobId: number;
3627
3630
  freelancerId: number;
3628
3631
  contractType?: ContractTypeEnumDto;
3629
3632
  contractStartDate?: string;
3630
3633
  contractInvoicingCycle?: string;
3634
+ preferredEngagementType?: PreferredEngagementTypeEnum$1;
3631
3635
  source?: ContractSourceEnum$1;
3632
3636
  sourceUuid?: string;
3633
3637
  }
@@ -3886,9 +3890,14 @@ declare const HIRING_PATTERN: {
3886
3890
  createHiring: string;
3887
3891
  };
3888
3892
 
3893
+ declare enum PreferredEngagementTypeEnum {
3894
+ FTE = "FTE",
3895
+ FREELANCE = "FREELANCE"
3896
+ }
3889
3897
  declare class CreateHiringDto {
3890
3898
  freelancerId: number;
3891
3899
  jobId: number;
3900
+ preferredEngagementType?: PreferredEngagementTypeEnum;
3892
3901
  }
3893
3902
 
3894
3903
  declare const LLM_PATTERN: {
package/dist/index.js CHANGED
@@ -2008,8 +2008,7 @@ __decorateClass([
2008
2008
  (0, import_class_validator50.IsOptional)()
2009
2009
  ], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
2010
2010
  __decorateClass([
2011
- (0, import_class_validator50.ValidateIf)((o) => !o.isDraft),
2012
- (0, import_class_validator50.IsNotEmpty)({ message: "Please enter the academic qualification" }),
2011
+ (0, import_class_validator50.IsOptional)(),
2013
2012
  (0, import_class_validator50.IsString)({ message: "Academic qualification must be a string" })
2014
2013
  ], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
2015
2014
  __decorateClass([
@@ -9055,8 +9054,7 @@ __decorateClass([
9055
9054
  (0, import_class_transformer17.Type)(() => JobLocationAdminDto)
9056
9055
  ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
9057
9056
  __decorateClass([
9058
- (0, import_class_validator89.ValidateIf)((o) => !o.isDraft),
9059
- (0, import_class_validator89.IsNotEmpty)({ message: "Please enter the academic qualification" }),
9057
+ (0, import_class_validator89.IsOptional)(),
9060
9058
  (0, import_class_validator89.IsString)({ message: "Academic qualification must be a string" })
9061
9059
  ], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
9062
9060
  __decorateClass([
@@ -9801,6 +9799,10 @@ var ContractTypeEnumDto = /* @__PURE__ */ ((ContractTypeEnumDto2) => {
9801
9799
  ContractTypeEnumDto2["MSA"] = "MSA";
9802
9800
  return ContractTypeEnumDto2;
9803
9801
  })(ContractTypeEnumDto || {});
9802
+ var PreferredEngagementTypeEnum = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
9803
+ PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
9804
+ return PreferredEngagementTypeEnum3;
9805
+ })(PreferredEngagementTypeEnum || {});
9804
9806
  var GenerateContractDto = class {
9805
9807
  };
9806
9808
  __decorateClass([
@@ -9825,6 +9827,12 @@ __decorateClass([
9825
9827
  (0, import_class_validator112.IsOptional)(),
9826
9828
  (0, import_class_validator112.IsString)({ message: "Contract invoicing cycle must be a string." })
9827
9829
  ], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
9830
+ __decorateClass([
9831
+ (0, import_class_validator112.IsNotEmpty)({ message: "Preferred engagement type is required" }),
9832
+ (0, import_class_validator112.IsEnum)(PreferredEngagementTypeEnum, {
9833
+ message: "Preferred engagement type must be FREELANCE."
9834
+ })
9835
+ ], GenerateContractDto.prototype, "preferredEngagementType", 2);
9828
9836
  __decorateClass([
9829
9837
  (0, import_class_validator112.IsOptional)(),
9830
9838
  (0, import_class_validator112.IsEnum)(ContractSourceEnum, {
@@ -10402,6 +10410,11 @@ var HIRING_PATTERN = {
10402
10410
 
10403
10411
  // src/modules/hiring/dto/create-hiring.dto.ts
10404
10412
  var import_class_validator139 = require("class-validator");
10413
+ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
10414
+ PreferredEngagementTypeEnum3["FTE"] = "FTE";
10415
+ PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
10416
+ return PreferredEngagementTypeEnum3;
10417
+ })(PreferredEngagementTypeEnum2 || {});
10405
10418
  var CreateHiringDto = class {
10406
10419
  };
10407
10420
  __decorateClass([
@@ -10412,6 +10425,12 @@ __decorateClass([
10412
10425
  (0, import_class_validator139.IsNotEmpty)({ message: "Job ID is required" }),
10413
10426
  (0, import_class_validator139.IsNumber)({}, { message: "Job ID must be a number" })
10414
10427
  ], CreateHiringDto.prototype, "jobId", 2);
10428
+ __decorateClass([
10429
+ (0, import_class_validator139.IsNotEmpty)({ message: "Preferred engagement type is required" }),
10430
+ (0, import_class_validator139.IsEnum)(PreferredEngagementTypeEnum2, {
10431
+ message: "Preferred engagement type must be one of FTE or FREELANCE."
10432
+ })
10433
+ ], CreateHiringDto.prototype, "preferredEngagementType", 2);
10415
10434
 
10416
10435
  // src/modules/llm/pattern/pattern.ts
10417
10436
  var LLM_PATTERN = {
package/dist/index.mjs CHANGED
@@ -1701,8 +1701,7 @@ __decorateClass([
1701
1701
  IsOptional22()
1702
1702
  ], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
1703
1703
  __decorateClass([
1704
- ValidateIf4((o) => !o.isDraft),
1705
- IsNotEmpty42({ message: "Please enter the academic qualification" }),
1704
+ IsOptional22(),
1706
1705
  IsString22({ message: "Academic qualification must be a string" })
1707
1706
  ], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
1708
1707
  __decorateClass([
@@ -9096,8 +9095,7 @@ __decorateClass([
9096
9095
  Type14(() => JobLocationAdminDto)
9097
9096
  ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
9098
9097
  __decorateClass([
9099
- ValidateIf9((o) => !o.isDraft),
9100
- IsNotEmpty74({ message: "Please enter the academic qualification" }),
9098
+ IsOptional50(),
9101
9099
  IsString48({ message: "Academic qualification must be a string" })
9102
9100
  ], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
9103
9101
  __decorateClass([
@@ -9905,6 +9903,10 @@ var ContractTypeEnumDto = /* @__PURE__ */ ((ContractTypeEnumDto2) => {
9905
9903
  ContractTypeEnumDto2["MSA"] = "MSA";
9906
9904
  return ContractTypeEnumDto2;
9907
9905
  })(ContractTypeEnumDto || {});
9906
+ var PreferredEngagementTypeEnum = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
9907
+ PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
9908
+ return PreferredEngagementTypeEnum3;
9909
+ })(PreferredEngagementTypeEnum || {});
9908
9910
  var GenerateContractDto = class {
9909
9911
  };
9910
9912
  __decorateClass([
@@ -9929,6 +9931,12 @@ __decorateClass([
9929
9931
  IsOptional66(),
9930
9932
  IsString68({ message: "Contract invoicing cycle must be a string." })
9931
9933
  ], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
9934
+ __decorateClass([
9935
+ IsNotEmpty91({ message: "Preferred engagement type is required" }),
9936
+ IsEnum37(PreferredEngagementTypeEnum, {
9937
+ message: "Preferred engagement type must be FREELANCE."
9938
+ })
9939
+ ], GenerateContractDto.prototype, "preferredEngagementType", 2);
9932
9940
  __decorateClass([
9933
9941
  IsOptional66(),
9934
9942
  IsEnum37(ContractSourceEnum, {
@@ -10534,7 +10542,12 @@ var HIRING_PATTERN = {
10534
10542
  };
10535
10543
 
10536
10544
  // src/modules/hiring/dto/create-hiring.dto.ts
10537
- import { IsNotEmpty as IsNotEmpty117, IsNumber as IsNumber37 } from "class-validator";
10545
+ import { IsEnum as IsEnum42, IsNotEmpty as IsNotEmpty117, IsNumber as IsNumber37 } from "class-validator";
10546
+ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
10547
+ PreferredEngagementTypeEnum3["FTE"] = "FTE";
10548
+ PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
10549
+ return PreferredEngagementTypeEnum3;
10550
+ })(PreferredEngagementTypeEnum2 || {});
10538
10551
  var CreateHiringDto = class {
10539
10552
  };
10540
10553
  __decorateClass([
@@ -10545,6 +10558,12 @@ __decorateClass([
10545
10558
  IsNotEmpty117({ message: "Job ID is required" }),
10546
10559
  IsNumber37({}, { message: "Job ID must be a number" })
10547
10560
  ], CreateHiringDto.prototype, "jobId", 2);
10561
+ __decorateClass([
10562
+ IsNotEmpty117({ message: "Preferred engagement type is required" }),
10563
+ IsEnum42(PreferredEngagementTypeEnum2, {
10564
+ message: "Preferred engagement type must be one of FTE or FREELANCE."
10565
+ })
10566
+ ], CreateHiringDto.prototype, "preferredEngagementType", 2);
10548
10567
 
10549
10568
  // src/modules/llm/pattern/pattern.ts
10550
10569
  var LLM_PATTERN = {
@@ -9,12 +9,16 @@ declare enum ContractTypeEnumDto {
9
9
  SOW = "SOW",
10
10
  MSA = "MSA"
11
11
  }
12
+ declare enum PreferredEngagementTypeEnum {
13
+ FREELANCE = "FREELANCE"
14
+ }
12
15
  export declare class GenerateContractDto {
13
16
  jobId: number;
14
17
  freelancerId: number;
15
18
  contractType?: ContractTypeEnumDto;
16
19
  contractStartDate?: string;
17
20
  contractInvoicingCycle?: string;
21
+ preferredEngagementType?: PreferredEngagementTypeEnum;
18
22
  source?: ContractSourceEnum;
19
23
  sourceUuid?: string;
20
24
  }
@@ -1,4 +1,10 @@
1
+ declare enum PreferredEngagementTypeEnum {
2
+ FTE = "FTE",
3
+ FREELANCE = "FREELANCE"
4
+ }
1
5
  export declare class CreateHiringDto {
2
6
  freelancerId: number;
3
7
  jobId: number;
8
+ preferredEngagementType?: PreferredEngagementTypeEnum;
4
9
  }
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.627",
3
+ "version": "1.0.629",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",