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