@experts_hub/shared 1.0.400 → 1.0.402

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
@@ -490,6 +490,7 @@ declare class JobBasicInformationDto {
490
490
  academicQualification?: string;
491
491
  yearsOfExperience?: string;
492
492
  businessIndustry?: string;
493
+ additionalComment?: string;
493
494
  }
494
495
 
495
496
  declare class JobAdditionalCommentDto {
package/dist/index.d.ts CHANGED
@@ -490,6 +490,7 @@ declare class JobBasicInformationDto {
490
490
  academicQualification?: string;
491
491
  yearsOfExperience?: string;
492
492
  businessIndustry?: string;
493
+ additionalComment?: string;
493
494
  }
494
495
 
495
496
  declare class JobAdditionalCommentDto {
package/dist/index.js CHANGED
@@ -1291,10 +1291,14 @@ __decorateClass([
1291
1291
  (0, import_class_validator33.IsString)({ message: "Years of experience must be a string" })
1292
1292
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1293
1293
  __decorateClass([
1294
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1295
- (0, import_class_validator33.IsNotEmpty)({ message: "Please enter the business industry" }),
1294
+ (0, import_class_validator33.IsOptional)(),
1296
1295
  (0, import_class_validator33.IsString)({ message: "Business industry must be a string" })
1297
1296
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
1297
+ __decorateClass([
1298
+ (0, import_class_validator33.IsOptional)(),
1299
+ (0, import_class_validator33.IsString)({ message: "Additional comment must be a string" }),
1300
+ (0, import_class_validator33.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
1301
+ ], JobBasicInformationDto.prototype, "additionalComment", 2);
1298
1302
 
1299
1303
  // src/modules/job/dto/job-additional-comment.dto.ts
1300
1304
  var import_class_validator34 = require("class-validator");
package/dist/index.mjs CHANGED
@@ -964,7 +964,8 @@ import {
964
964
  IsOptional as IsOptional11,
965
965
  IsEnum as IsEnum10,
966
966
  Min,
967
- ValidateIf as ValidateIf3
967
+ ValidateIf as ValidateIf3,
968
+ MaxLength as MaxLength6
968
969
  } from "class-validator";
969
970
  import { Type } from "class-transformer";
970
971
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
@@ -1091,29 +1092,33 @@ __decorateClass([
1091
1092
  IsString12({ message: "Years of experience must be a string" })
1092
1093
  ], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
1093
1094
  __decorateClass([
1094
- ValidateIf3((o) => !o.isDraft),
1095
- IsNotEmpty29({ message: "Please enter the business industry" }),
1095
+ IsOptional11(),
1096
1096
  IsString12({ message: "Business industry must be a string" })
1097
1097
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
1098
+ __decorateClass([
1099
+ IsOptional11(),
1100
+ IsString12({ message: "Additional comment must be a string" }),
1101
+ MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
1102
+ ], JobBasicInformationDto.prototype, "additionalComment", 2);
1098
1103
 
1099
1104
  // src/modules/job/dto/job-additional-comment.dto.ts
1100
- import { IsOptional as IsOptional12, IsString as IsString13, MaxLength as MaxLength6 } from "class-validator";
1105
+ import { IsOptional as IsOptional12, IsString as IsString13, MaxLength as MaxLength7 } from "class-validator";
1101
1106
  var JobAdditionalCommentDto = class {
1102
1107
  };
1103
1108
  __decorateClass([
1104
1109
  IsOptional12(),
1105
1110
  IsString13({ message: "Additional comment must be a string" }),
1106
- MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
1111
+ MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
1107
1112
  ], JobAdditionalCommentDto.prototype, "additionalComment", 2);
1108
1113
 
1109
1114
  // src/modules/job/dto/job-description.dto.ts
1110
- import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength7 } from "class-validator";
1115
+ import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength8 } from "class-validator";
1111
1116
  var JobDescriptionDto = class {
1112
1117
  };
1113
1118
  __decorateClass([
1114
1119
  IsNotEmpty30({ message: "Please enter job description" }),
1115
1120
  IsString14({ message: "Description must be a string" }),
1116
- MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
1121
+ MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
1117
1122
  ], JobDescriptionDto.prototype, "description", 2);
1118
1123
 
1119
1124
  // src/modules/job/dto/job-status.dto.ts
@@ -1161,7 +1166,7 @@ var PROFILE_PATTERN = {
1161
1166
  import {
1162
1167
  IsString as IsString15,
1163
1168
  IsNotEmpty as IsNotEmpty32,
1164
- MaxLength as MaxLength8,
1169
+ MaxLength as MaxLength9,
1165
1170
  MinLength as MinLength7,
1166
1171
  Matches as Matches8
1167
1172
  } from "class-validator";
@@ -1175,7 +1180,7 @@ __decorateClass([
1175
1180
  IsNotEmpty32({ message: "Please enter New Password." }),
1176
1181
  IsString15(),
1177
1182
  MinLength7(6),
1178
- MaxLength8(32),
1183
+ MaxLength9(32),
1179
1184
  Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1180
1185
  message: "New Password must include letters, numbers and symbols."
1181
1186
  })
@@ -5035,7 +5040,7 @@ import {
5035
5040
  IsNotEmpty as IsNotEmpty38,
5036
5041
  IsOptional as IsOptional18,
5037
5042
  IsString as IsString20,
5038
- MaxLength as MaxLength10,
5043
+ MaxLength as MaxLength11,
5039
5044
  ValidateNested
5040
5045
  } from "class-validator";
5041
5046
  import { Type as Type2 } from "class-transformer";
@@ -5059,7 +5064,7 @@ __decorateClass([
5059
5064
  __decorateClass([
5060
5065
  IsOptional18(),
5061
5066
  IsString20(),
5062
- MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
5067
+ MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
5063
5068
  ], ExperienceDto.prototype, "description", 2);
5064
5069
  var FreelancerExperienceDto = class {
5065
5070
  };
@@ -5163,7 +5168,7 @@ var FREELANCER_PROJECT_PATTERN = {
5163
5168
  };
5164
5169
 
5165
5170
  // src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
5166
- import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional22, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
5171
+ import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional22, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
5167
5172
  import { Type as Type4 } from "class-transformer";
5168
5173
  var ProjectDto = class {
5169
5174
  };
@@ -5193,7 +5198,7 @@ __decorateClass([
5193
5198
  __decorateClass([
5194
5199
  IsOptional22(),
5195
5200
  IsString24(),
5196
- MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
5201
+ MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
5197
5202
  ], ProjectDto.prototype, "description", 2);
5198
5203
  var CaseStudyDto = class {
5199
5204
  };
@@ -5211,7 +5216,7 @@ __decorateClass([
5211
5216
  __decorateClass([
5212
5217
  IsOptional22(),
5213
5218
  IsString24(),
5214
- MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
5219
+ MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
5215
5220
  ], CaseStudyDto.prototype, "description", 2);
5216
5221
  var FreelancerProjectDto = class {
5217
5222
  };
@@ -5289,7 +5294,7 @@ import {
5289
5294
  IsNumber as IsNumber3,
5290
5295
  IsUrl as IsUrl3,
5291
5296
  Min as Min3,
5292
- MaxLength as MaxLength14,
5297
+ MaxLength as MaxLength15,
5293
5298
  IsNotEmpty as IsNotEmpty44,
5294
5299
  MinLength as MinLength12,
5295
5300
  Matches as Matches9,
@@ -5312,7 +5317,7 @@ var CreateFreelancerDto = class {
5312
5317
  };
5313
5318
  __decorateClass([
5314
5319
  IsString26({ message: "Full name must be a string" }),
5315
- MaxLength14(100, { message: "Full name must not exceed 100 characters" })
5320
+ MaxLength15(100, { message: "Full name must not exceed 100 characters" })
5316
5321
  ], CreateFreelancerDto.prototype, "fullName", 2);
5317
5322
  __decorateClass([
5318
5323
  IsEmail10({}, { message: "Invalid email address" })
@@ -5326,7 +5331,7 @@ __decorateClass([
5326
5331
  __decorateClass([
5327
5332
  IsNotEmpty44({ message: "Please enter password." }),
5328
5333
  MinLength12(6),
5329
- MaxLength14(32),
5334
+ MaxLength15(32),
5330
5335
  Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
5331
5336
  message: "Password must include letters, numbers and symbols."
5332
5337
  })
@@ -5397,7 +5402,7 @@ import {
5397
5402
  IsNumber as IsNumber4,
5398
5403
  IsUrl as IsUrl4,
5399
5404
  Min as Min4,
5400
- MaxLength as MaxLength15,
5405
+ MaxLength as MaxLength16,
5401
5406
  MinLength as MinLength13,
5402
5407
  Matches as Matches10,
5403
5408
  IsNotEmpty as IsNotEmpty45,
@@ -5421,7 +5426,7 @@ var UpdateFreelancerDto = class {
5421
5426
  __decorateClass([
5422
5427
  IsOptional25(),
5423
5428
  IsString27({ message: "Full name must be a string" }),
5424
- MaxLength15(100, { message: "Full name must not exceed 100 characters" })
5429
+ MaxLength16(100, { message: "Full name must not exceed 100 characters" })
5425
5430
  ], UpdateFreelancerDto.prototype, "fullName", 2);
5426
5431
  __decorateClass([
5427
5432
  IsOptional25(),
@@ -5439,7 +5444,7 @@ __decorateClass([
5439
5444
  IsOptional25(),
5440
5445
  Transform2(({ value }) => value === null || value === "" ? void 0 : value),
5441
5446
  MinLength13(6, { message: "Password must be at least 6 characters." }),
5442
- MaxLength15(32, { message: "Password must not exceed 32 characters." }),
5447
+ MaxLength16(32, { message: "Password must not exceed 32 characters." }),
5443
5448
  Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
5444
5449
  message: "Password must include letters, numbers and symbols."
5445
5450
  })
@@ -5522,7 +5527,7 @@ import {
5522
5527
  IsString as IsString28,
5523
5528
  IsArray as IsArray9,
5524
5529
  MinLength as MinLength14,
5525
- MaxLength as MaxLength16,
5530
+ MaxLength as MaxLength17,
5526
5531
  IsEnum as IsEnum18,
5527
5532
  Matches as Matches11
5528
5533
  } from "class-validator";
@@ -5555,7 +5560,7 @@ __decorateClass([
5555
5560
  __decorateClass([
5556
5561
  IsNotEmpty46({ message: "Please enter password." }),
5557
5562
  MinLength14(6),
5558
- MaxLength16(32),
5563
+ MaxLength17(32),
5559
5564
  Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
5560
5565
  message: "Password must include letters, numbers and symbols."
5561
5566
  })
@@ -5611,7 +5616,7 @@ import {
5611
5616
  IsString as IsString30,
5612
5617
  IsArray as IsArray10,
5613
5618
  MinLength as MinLength15,
5614
- MaxLength as MaxLength17,
5619
+ MaxLength as MaxLength18,
5615
5620
  IsEnum as IsEnum19,
5616
5621
  Matches as Matches12
5617
5622
  } from "class-validator";
@@ -5645,7 +5650,7 @@ __decorateClass([
5645
5650
  IsOptional27(),
5646
5651
  Transform3(({ value }) => value === null || value === "" ? void 0 : value),
5647
5652
  MinLength15(6, { message: "Password must be at least 6 characters." }),
5648
- MaxLength17(32, { message: "Password must not exceed 32 characters." }),
5653
+ MaxLength18(32, { message: "Password must not exceed 32 characters." }),
5649
5654
  Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
5650
5655
  message: "Password must include letters, numbers and symbols."
5651
5656
  })
@@ -30,4 +30,5 @@ export declare class JobBasicInformationDto {
30
30
  academicQualification?: string;
31
31
  yearsOfExperience?: string;
32
32
  businessIndustry?: string;
33
+ additionalComment?: string;
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.400",
3
+ "version": "1.0.402",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",