@experts_hub/shared 1.0.153 → 1.0.154

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
@@ -1155,7 +1155,7 @@ declare class EducationDto {
1155
1155
  yearOfGraduation: string;
1156
1156
  }
1157
1157
  declare class FreelancerEducationDto {
1158
- education: EducationDto[];
1158
+ educations: EducationDto[];
1159
1159
  }
1160
1160
 
1161
1161
  declare const FREELANCER_PROJECT_PATTERN: {
@@ -1179,8 +1179,8 @@ declare class CaseStudyDto {
1179
1179
  description?: string;
1180
1180
  }
1181
1181
  declare class FreelancerProjectDto {
1182
- project: ProjectDto[];
1183
- casestudy: CaseStudyDto[];
1182
+ projects: ProjectDto[];
1183
+ casestudies: CaseStudyDto[];
1184
1184
  }
1185
1185
 
1186
1186
  declare const UserTCPAdapter: () => MicroserviceOptions;
package/dist/index.d.ts CHANGED
@@ -1155,7 +1155,7 @@ declare class EducationDto {
1155
1155
  yearOfGraduation: string;
1156
1156
  }
1157
1157
  declare class FreelancerEducationDto {
1158
- education: EducationDto[];
1158
+ educations: EducationDto[];
1159
1159
  }
1160
1160
 
1161
1161
  declare const FREELANCER_PROJECT_PATTERN: {
@@ -1179,8 +1179,8 @@ declare class CaseStudyDto {
1179
1179
  description?: string;
1180
1180
  }
1181
1181
  declare class FreelancerProjectDto {
1182
- project: ProjectDto[];
1183
- casestudy: CaseStudyDto[];
1182
+ projects: ProjectDto[];
1183
+ casestudies: CaseStudyDto[];
1184
1184
  }
1185
1185
 
1186
1186
  declare const UserTCPAdapter: () => MicroserviceOptions;
package/dist/index.js CHANGED
@@ -2476,15 +2476,15 @@ __decorateClass([
2476
2476
  ], EducationDto.prototype, "uuid", 2);
2477
2477
  __decorateClass([
2478
2478
  (0, import_class_validator38.IsString)(),
2479
- (0, import_class_validator38.IsNotEmpty)()
2479
+ (0, import_class_validator38.IsNotEmpty)({ message: "Please Enter Degree " })
2480
2480
  ], EducationDto.prototype, "degree", 2);
2481
2481
  __decorateClass([
2482
2482
  (0, import_class_validator38.IsString)(),
2483
- (0, import_class_validator38.IsNotEmpty)()
2483
+ (0, import_class_validator38.IsNotEmpty)({ message: "Please Enter University " })
2484
2484
  ], EducationDto.prototype, "university", 2);
2485
2485
  __decorateClass([
2486
2486
  (0, import_class_validator38.IsString)(),
2487
- (0, import_class_validator38.IsNotEmpty)()
2487
+ (0, import_class_validator38.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
2488
2488
  ], EducationDto.prototype, "yearOfGraduation", 2);
2489
2489
  var FreelancerEducationDto = class {
2490
2490
  };
@@ -2492,7 +2492,7 @@ __decorateClass([
2492
2492
  (0, import_class_validator38.IsArray)(),
2493
2493
  (0, import_class_validator38.ValidateNested)({ each: true }),
2494
2494
  (0, import_class_transformer3.Type)(() => EducationDto)
2495
- ], FreelancerEducationDto.prototype, "education", 2);
2495
+ ], FreelancerEducationDto.prototype, "educations", 2);
2496
2496
 
2497
2497
  // src/modules/user/freelancer-project/pattern/pattern.ts
2498
2498
  var FREELANCER_PROJECT_PATTERN = {
@@ -2510,15 +2510,15 @@ __decorateClass([
2510
2510
  ], ProjectDto.prototype, "uuid", 2);
2511
2511
  __decorateClass([
2512
2512
  (0, import_class_validator39.IsString)(),
2513
- (0, import_class_validator39.IsNotEmpty)()
2513
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Project Name " })
2514
2514
  ], ProjectDto.prototype, "projectName", 2);
2515
2515
  __decorateClass([
2516
2516
  (0, import_class_validator39.IsDateString)(),
2517
- (0, import_class_validator39.IsNotEmpty)()
2517
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Start Date " })
2518
2518
  ], ProjectDto.prototype, "startDate", 2);
2519
2519
  __decorateClass([
2520
2520
  (0, import_class_validator39.IsDateString)(),
2521
- (0, import_class_validator39.IsNotEmpty)()
2521
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please Enter End Date " })
2522
2522
  ], ProjectDto.prototype, "endDate", 2);
2523
2523
  __decorateClass([
2524
2524
  (0, import_class_validator39.IsOptional)(),
@@ -2540,15 +2540,16 @@ __decorateClass([
2540
2540
  ], CaseStudyDto.prototype, "uuid", 2);
2541
2541
  __decorateClass([
2542
2542
  (0, import_class_validator39.IsString)(),
2543
- (0, import_class_validator39.IsNotEmpty)()
2543
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Project Name " })
2544
2544
  ], CaseStudyDto.prototype, "projectName", 2);
2545
2545
  __decorateClass([
2546
2546
  (0, import_class_validator39.IsString)(),
2547
- (0, import_class_validator39.IsNotEmpty)()
2547
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please Enter Case Study Link " })
2548
2548
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
2549
2549
  __decorateClass([
2550
2550
  (0, import_class_validator39.IsOptional)(),
2551
- (0, import_class_validator39.IsString)()
2551
+ (0, import_class_validator39.IsString)(),
2552
+ (0, import_class_validator39.MaxLength)(500, { message: "Description must not exceed 500 characters" })
2552
2553
  ], CaseStudyDto.prototype, "description", 2);
2553
2554
  var FreelancerProjectDto = class {
2554
2555
  };
@@ -2556,12 +2557,12 @@ __decorateClass([
2556
2557
  (0, import_class_validator39.IsArray)(),
2557
2558
  (0, import_class_validator39.ValidateNested)({ each: true }),
2558
2559
  (0, import_class_transformer4.Type)(() => ProjectDto)
2559
- ], FreelancerProjectDto.prototype, "project", 2);
2560
+ ], FreelancerProjectDto.prototype, "projects", 2);
2560
2561
  __decorateClass([
2561
2562
  (0, import_class_validator39.IsArray)(),
2562
2563
  (0, import_class_validator39.ValidateNested)({ each: true }),
2563
2564
  (0, import_class_transformer4.Type)(() => CaseStudyDto)
2564
- ], FreelancerProjectDto.prototype, "casestudy", 2);
2565
+ ], FreelancerProjectDto.prototype, "casestudies", 2);
2565
2566
 
2566
2567
  // src/adapters/tcp/user.tcp.adapter.ts
2567
2568
  var import_dotenv = require("dotenv");
package/dist/index.mjs CHANGED
@@ -2536,15 +2536,15 @@ __decorateClass([
2536
2536
  ], EducationDto.prototype, "uuid", 2);
2537
2537
  __decorateClass([
2538
2538
  IsString21(),
2539
- IsNotEmpty30()
2539
+ IsNotEmpty30({ message: "Please Enter Degree " })
2540
2540
  ], EducationDto.prototype, "degree", 2);
2541
2541
  __decorateClass([
2542
2542
  IsString21(),
2543
- IsNotEmpty30()
2543
+ IsNotEmpty30({ message: "Please Enter University " })
2544
2544
  ], EducationDto.prototype, "university", 2);
2545
2545
  __decorateClass([
2546
2546
  IsString21(),
2547
- IsNotEmpty30()
2547
+ IsNotEmpty30({ message: "Please Enter Year of Graduation " })
2548
2548
  ], EducationDto.prototype, "yearOfGraduation", 2);
2549
2549
  var FreelancerEducationDto = class {
2550
2550
  };
@@ -2552,7 +2552,7 @@ __decorateClass([
2552
2552
  IsArray2(),
2553
2553
  ValidateNested2({ each: true }),
2554
2554
  Type3(() => EducationDto)
2555
- ], FreelancerEducationDto.prototype, "education", 2);
2555
+ ], FreelancerEducationDto.prototype, "educations", 2);
2556
2556
 
2557
2557
  // src/modules/user/freelancer-project/pattern/pattern.ts
2558
2558
  var FREELANCER_PROJECT_PATTERN = {
@@ -2570,15 +2570,15 @@ __decorateClass([
2570
2570
  ], ProjectDto.prototype, "uuid", 2);
2571
2571
  __decorateClass([
2572
2572
  IsString22(),
2573
- IsNotEmpty31()
2573
+ IsNotEmpty31({ message: "Please Enter Project Name " })
2574
2574
  ], ProjectDto.prototype, "projectName", 2);
2575
2575
  __decorateClass([
2576
2576
  IsDateString(),
2577
- IsNotEmpty31()
2577
+ IsNotEmpty31({ message: "Please Enter Start Date " })
2578
2578
  ], ProjectDto.prototype, "startDate", 2);
2579
2579
  __decorateClass([
2580
2580
  IsDateString(),
2581
- IsNotEmpty31()
2581
+ IsNotEmpty31({ message: "Please Enter End Date " })
2582
2582
  ], ProjectDto.prototype, "endDate", 2);
2583
2583
  __decorateClass([
2584
2584
  IsOptional16(),
@@ -2600,15 +2600,16 @@ __decorateClass([
2600
2600
  ], CaseStudyDto.prototype, "uuid", 2);
2601
2601
  __decorateClass([
2602
2602
  IsString22(),
2603
- IsNotEmpty31()
2603
+ IsNotEmpty31({ message: "Please Enter Project Name " })
2604
2604
  ], CaseStudyDto.prototype, "projectName", 2);
2605
2605
  __decorateClass([
2606
2606
  IsString22(),
2607
- IsNotEmpty31()
2607
+ IsNotEmpty31({ message: "Please Enter Case Study Link " })
2608
2608
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
2609
2609
  __decorateClass([
2610
2610
  IsOptional16(),
2611
- IsString22()
2611
+ IsString22(),
2612
+ MaxLength13(500, { message: "Description must not exceed 500 characters" })
2612
2613
  ], CaseStudyDto.prototype, "description", 2);
2613
2614
  var FreelancerProjectDto = class {
2614
2615
  };
@@ -2616,12 +2617,12 @@ __decorateClass([
2616
2617
  IsArray3(),
2617
2618
  ValidateNested3({ each: true }),
2618
2619
  Type4(() => ProjectDto)
2619
- ], FreelancerProjectDto.prototype, "project", 2);
2620
+ ], FreelancerProjectDto.prototype, "projects", 2);
2620
2621
  __decorateClass([
2621
2622
  IsArray3(),
2622
2623
  ValidateNested3({ each: true }),
2623
2624
  Type4(() => CaseStudyDto)
2624
- ], FreelancerProjectDto.prototype, "casestudy", 2);
2625
+ ], FreelancerProjectDto.prototype, "casestudies", 2);
2625
2626
 
2626
2627
  // src/adapters/tcp/user.tcp.adapter.ts
2627
2628
  import { config } from "dotenv";
@@ -5,5 +5,5 @@ export declare class EducationDto {
5
5
  yearOfGraduation: string;
6
6
  }
7
7
  export declare class FreelancerEducationDto {
8
- education: EducationDto[];
8
+ educations: EducationDto[];
9
9
  }
@@ -14,6 +14,6 @@ export declare class CaseStudyDto {
14
14
  description?: string;
15
15
  }
16
16
  export declare class FreelancerProjectDto {
17
- project: ProjectDto[];
18
- casestudy: CaseStudyDto[];
17
+ projects: ProjectDto[];
18
+ casestudies: CaseStudyDto[];
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.153",
3
+ "version": "1.0.154",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",