@experts_hub/shared 1.0.597 → 1.0.599

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
@@ -3529,7 +3529,7 @@ declare class CustomQuestionItemDto {
3529
3529
  declare class AiQuestionItemDto {
3530
3530
  uuid?: string;
3531
3531
  question: string;
3532
- concepts?: string;
3532
+ concepts?: string[];
3533
3533
  }
3534
3534
  declare class CreateInterviewQuestionsDto {
3535
3535
  questions?: CustomQuestionItemDto[];
@@ -3603,7 +3603,7 @@ declare enum ContractTypeEnumDto {
3603
3603
  MSA = "MSA"
3604
3604
  }
3605
3605
  declare class GenerateContractDto {
3606
- jobId: string;
3606
+ jobId: number;
3607
3607
  freelancerId: number;
3608
3608
  contractType?: ContractTypeEnumDto;
3609
3609
  contractStartDate?: string;
package/dist/index.d.ts CHANGED
@@ -3529,7 +3529,7 @@ declare class CustomQuestionItemDto {
3529
3529
  declare class AiQuestionItemDto {
3530
3530
  uuid?: string;
3531
3531
  question: string;
3532
- concepts?: string;
3532
+ concepts?: string[];
3533
3533
  }
3534
3534
  declare class CreateInterviewQuestionsDto {
3535
3535
  questions?: CustomQuestionItemDto[];
@@ -3603,7 +3603,7 @@ declare enum ContractTypeEnumDto {
3603
3603
  MSA = "MSA"
3604
3604
  }
3605
3605
  declare class GenerateContractDto {
3606
- jobId: string;
3606
+ jobId: number;
3607
3607
  freelancerId: number;
3608
3608
  contractType?: ContractTypeEnumDto;
3609
3609
  contractStartDate?: string;
package/dist/index.js CHANGED
@@ -9138,8 +9138,7 @@ var import_class_transformer20 = require("class-transformer");
9138
9138
  var InterviewSkillItemDto = class {
9139
9139
  };
9140
9140
  __decorateClass([
9141
- (0, import_class_validator105.IsOptional)(),
9142
- (0, import_class_validator105.IsUUID)("4", { message: "Skill UUID must be a valid UUID." })
9141
+ (0, import_class_validator105.IsOptional)()
9143
9142
  ], InterviewSkillItemDto.prototype, "uuid", 2);
9144
9143
  __decorateClass([
9145
9144
  (0, import_class_validator105.IsString)({ message: "Skill name must be a string." }),
@@ -9183,7 +9182,8 @@ __decorateClass([
9183
9182
  ], AiQuestionItemDto.prototype, "question", 2);
9184
9183
  __decorateClass([
9185
9184
  (0, import_class_validator106.IsOptional)(),
9186
- (0, import_class_validator106.IsString)({ message: "Concepts must be a string." })
9185
+ (0, import_class_validator106.IsArray)({ message: "Concepts must be an array." }),
9186
+ (0, import_class_validator106.IsString)({ each: true, message: "Each concept must be a string." })
9187
9187
  ], AiQuestionItemDto.prototype, "concepts", 2);
9188
9188
  var CreateInterviewQuestionsDto = class {
9189
9189
  };
@@ -9327,7 +9327,7 @@ var ContractTypeEnumDto = /* @__PURE__ */ ((ContractTypeEnumDto2) => {
9327
9327
  var GenerateContractDto = class {
9328
9328
  };
9329
9329
  __decorateClass([
9330
- (0, import_class_validator110.IsUUID)("4", { message: "Job ID must be a valid UUID." }),
9330
+ (0, import_class_validator110.IsNumber)({}, { message: "Job ID must be a number." }),
9331
9331
  (0, import_class_validator110.IsNotEmpty)({ message: "Job ID is required." })
9332
9332
  ], GenerateContractDto.prototype, "jobId", 2);
9333
9333
  __decorateClass([
package/dist/index.mjs CHANGED
@@ -9212,15 +9212,13 @@ import {
9212
9212
  IsNotEmpty as IsNotEmpty86,
9213
9213
  IsOptional as IsOptional62,
9214
9214
  IsString as IsString64,
9215
- IsUUID as IsUUID21,
9216
9215
  ValidateNested as ValidateNested9
9217
9216
  } from "class-validator";
9218
9217
  import { Type as Type18 } from "class-transformer";
9219
9218
  var InterviewSkillItemDto = class {
9220
9219
  };
9221
9220
  __decorateClass([
9222
- IsOptional62(),
9223
- IsUUID21("4", { message: "Skill UUID must be a valid UUID." })
9221
+ IsOptional62()
9224
9222
  ], InterviewSkillItemDto.prototype, "uuid", 2);
9225
9223
  __decorateClass([
9226
9224
  IsString64({ message: "Skill name must be a string." }),
@@ -9271,7 +9269,8 @@ __decorateClass([
9271
9269
  ], AiQuestionItemDto.prototype, "question", 2);
9272
9270
  __decorateClass([
9273
9271
  IsOptional63(),
9274
- IsString65({ message: "Concepts must be a string." })
9272
+ IsArray23({ message: "Concepts must be an array." }),
9273
+ IsString65({ each: true, message: "Each concept must be a string." })
9275
9274
  ], AiQuestionItemDto.prototype, "concepts", 2);
9276
9275
  var CreateInterviewQuestionsDto = class {
9277
9276
  };
@@ -9427,7 +9426,7 @@ var ContractTypeEnumDto = /* @__PURE__ */ ((ContractTypeEnumDto2) => {
9427
9426
  var GenerateContractDto = class {
9428
9427
  };
9429
9428
  __decorateClass([
9430
- IsUUID23("4", { message: "Job ID must be a valid UUID." }),
9429
+ IsNumber22({}, { message: "Job ID must be a number." }),
9431
9430
  IsNotEmpty90({ message: "Job ID is required." })
9432
9431
  ], GenerateContractDto.prototype, "jobId", 2);
9433
9432
  __decorateClass([
@@ -10,7 +10,7 @@ export declare enum ContractTypeEnumDto {
10
10
  MSA = "MSA"
11
11
  }
12
12
  export declare class GenerateContractDto {
13
- jobId: string;
13
+ jobId: number;
14
14
  freelancerId: number;
15
15
  contractType?: ContractTypeEnumDto;
16
16
  contractStartDate?: string;
@@ -5,7 +5,7 @@ export declare class CustomQuestionItemDto {
5
5
  export declare class AiQuestionItemDto {
6
6
  uuid?: string;
7
7
  question: string;
8
- concepts?: string;
8
+ concepts?: string[];
9
9
  }
10
10
  export declare class CreateInterviewQuestionsDto {
11
11
  questions?: CustomQuestionItemDto[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.597",
3
+ "version": "1.0.599",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",