@experts_hub/shared 1.0.434 → 1.0.436
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 +46 -38
- package/dist/index.mjs +139 -131
- package/dist/modules/job/dto/job-description.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
|
@@ -1336,8 +1336,16 @@ __decorateClass([
|
|
|
1336
1336
|
|
|
1337
1337
|
// src/modules/job/dto/job-description.dto.ts
|
|
1338
1338
|
var import_class_validator35 = require("class-validator");
|
|
1339
|
+
var import_class_transformer3 = require("class-transformer");
|
|
1339
1340
|
var JobDescriptionDto = class {
|
|
1341
|
+
constructor() {
|
|
1342
|
+
this.isDraft = false;
|
|
1343
|
+
}
|
|
1340
1344
|
};
|
|
1345
|
+
__decorateClass([
|
|
1346
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1347
|
+
(0, import_class_transformer3.Type)(() => Boolean)
|
|
1348
|
+
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
1341
1349
|
__decorateClass([
|
|
1342
1350
|
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1343
1351
|
(0, import_class_validator35.IsString)({ message: "Description must be a string" }),
|
|
@@ -5287,7 +5295,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
5287
5295
|
|
|
5288
5296
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
5289
5297
|
var import_class_validator46 = require("class-validator");
|
|
5290
|
-
var
|
|
5298
|
+
var import_class_transformer4 = require("class-transformer");
|
|
5291
5299
|
var ExperienceDto = class {
|
|
5292
5300
|
};
|
|
5293
5301
|
__decorateClass([
|
|
@@ -5315,7 +5323,7 @@ var FreelancerExperienceDto = class {
|
|
|
5315
5323
|
__decorateClass([
|
|
5316
5324
|
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
5317
5325
|
(0, import_class_validator46.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
5318
|
-
(0,
|
|
5326
|
+
(0, import_class_transformer4.Type)(() => ExperienceDto)
|
|
5319
5327
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
5320
5328
|
|
|
5321
5329
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -5378,7 +5386,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5378
5386
|
|
|
5379
5387
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5380
5388
|
var import_class_validator50 = require("class-validator");
|
|
5381
|
-
var
|
|
5389
|
+
var import_class_transformer5 = require("class-transformer");
|
|
5382
5390
|
var EducationDto = class {
|
|
5383
5391
|
};
|
|
5384
5392
|
__decorateClass([
|
|
@@ -5402,7 +5410,7 @@ __decorateClass([
|
|
|
5402
5410
|
(0, import_class_validator50.IsArray)(),
|
|
5403
5411
|
(0, import_class_validator50.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
5404
5412
|
(0, import_class_validator50.ValidateNested)({ each: true }),
|
|
5405
|
-
(0,
|
|
5413
|
+
(0, import_class_transformer5.Type)(() => EducationDto)
|
|
5406
5414
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
5407
5415
|
|
|
5408
5416
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -5413,7 +5421,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5413
5421
|
|
|
5414
5422
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5415
5423
|
var import_class_validator51 = require("class-validator");
|
|
5416
|
-
var
|
|
5424
|
+
var import_class_transformer6 = require("class-transformer");
|
|
5417
5425
|
var ProjectDto = class {
|
|
5418
5426
|
};
|
|
5419
5427
|
__decorateClass([
|
|
@@ -5468,12 +5476,12 @@ __decorateClass([
|
|
|
5468
5476
|
(0, import_class_validator51.IsArray)(),
|
|
5469
5477
|
(0, import_class_validator51.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
5470
5478
|
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
5471
|
-
(0,
|
|
5479
|
+
(0, import_class_transformer6.Type)(() => ProjectDto)
|
|
5472
5480
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
5473
5481
|
__decorateClass([
|
|
5474
5482
|
(0, import_class_validator51.IsArray)(),
|
|
5475
5483
|
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
5476
|
-
(0,
|
|
5484
|
+
(0, import_class_transformer6.Type)(() => CaseStudyDto)
|
|
5477
5485
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
5478
5486
|
|
|
5479
5487
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -5489,7 +5497,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5489
5497
|
|
|
5490
5498
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5491
5499
|
var import_class_validator52 = require("class-validator");
|
|
5492
|
-
var
|
|
5500
|
+
var import_class_transformer7 = require("class-transformer");
|
|
5493
5501
|
var FreelancerSkillDto = class {
|
|
5494
5502
|
constructor() {
|
|
5495
5503
|
this.coreSkills = [];
|
|
@@ -5500,19 +5508,19 @@ var FreelancerSkillDto = class {
|
|
|
5500
5508
|
__decorateClass([
|
|
5501
5509
|
(0, import_class_validator52.IsOptional)(),
|
|
5502
5510
|
(0, import_class_validator52.IsArray)(),
|
|
5503
|
-
(0,
|
|
5511
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5504
5512
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5505
5513
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5506
5514
|
__decorateClass([
|
|
5507
5515
|
(0, import_class_validator52.IsOptional)(),
|
|
5508
5516
|
(0, import_class_validator52.IsArray)(),
|
|
5509
|
-
(0,
|
|
5517
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5510
5518
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5511
5519
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5512
5520
|
__decorateClass([
|
|
5513
5521
|
(0, import_class_validator52.IsOptional)(),
|
|
5514
5522
|
(0, import_class_validator52.IsArray)(),
|
|
5515
|
-
(0,
|
|
5523
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5516
5524
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5517
5525
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
5518
5526
|
|
|
@@ -5530,7 +5538,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
5530
5538
|
|
|
5531
5539
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
5532
5540
|
var import_class_validator53 = require("class-validator");
|
|
5533
|
-
var
|
|
5541
|
+
var import_class_transformer8 = require("class-transformer");
|
|
5534
5542
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5535
5543
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5536
5544
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5572,7 +5580,7 @@ __decorateClass([
|
|
|
5572
5580
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
5573
5581
|
__decorateClass([
|
|
5574
5582
|
(0, import_class_validator53.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
5575
|
-
(0,
|
|
5583
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
5576
5584
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
5577
5585
|
__decorateClass([
|
|
5578
5586
|
(0, import_class_validator53.IsEnum)(NatureOfWorkEnum, {
|
|
@@ -5584,7 +5592,7 @@ __decorateClass([
|
|
|
5584
5592
|
__decorateClass([
|
|
5585
5593
|
(0, import_class_validator53.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
5586
5594
|
(0, import_class_validator53.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5587
|
-
(0,
|
|
5595
|
+
(0, import_class_transformer8.Type)(() => Number)
|
|
5588
5596
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5589
5597
|
__decorateClass([
|
|
5590
5598
|
(0, import_class_validator53.IsEnum)(ModeOfWorkEnum, {
|
|
@@ -5595,7 +5603,7 @@ __decorateClass([
|
|
|
5595
5603
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5596
5604
|
__decorateClass([
|
|
5597
5605
|
(0, import_class_validator53.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
5598
|
-
(0,
|
|
5606
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
5599
5607
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5600
5608
|
__decorateClass([
|
|
5601
5609
|
(0, import_class_validator53.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -5624,7 +5632,7 @@ __decorateClass([
|
|
|
5624
5632
|
|
|
5625
5633
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
5626
5634
|
var import_class_validator54 = require("class-validator");
|
|
5627
|
-
var
|
|
5635
|
+
var import_class_transformer9 = require("class-transformer");
|
|
5628
5636
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5629
5637
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5630
5638
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5658,7 +5666,7 @@ __decorateClass([
|
|
|
5658
5666
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
5659
5667
|
__decorateClass([
|
|
5660
5668
|
(0, import_class_validator54.IsOptional)(),
|
|
5661
|
-
(0,
|
|
5669
|
+
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5662
5670
|
(0, import_class_validator54.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
5663
5671
|
(0, import_class_validator54.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
5664
5672
|
(0, import_class_validator54.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -5668,7 +5676,7 @@ __decorateClass([
|
|
|
5668
5676
|
__decorateClass([
|
|
5669
5677
|
(0, import_class_validator54.IsOptional)(),
|
|
5670
5678
|
(0, import_class_validator54.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
5671
|
-
(0,
|
|
5679
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
5672
5680
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5673
5681
|
__decorateClass([
|
|
5674
5682
|
(0, import_class_validator54.IsOptional)(),
|
|
@@ -5682,7 +5690,7 @@ __decorateClass([
|
|
|
5682
5690
|
(0, import_class_validator54.IsOptional)(),
|
|
5683
5691
|
(0, import_class_validator54.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
5684
5692
|
(0, import_class_validator54.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5685
|
-
(0,
|
|
5693
|
+
(0, import_class_transformer9.Type)(() => Number)
|
|
5686
5694
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5687
5695
|
__decorateClass([
|
|
5688
5696
|
(0, import_class_validator54.IsOptional)(),
|
|
@@ -5695,7 +5703,7 @@ __decorateClass([
|
|
|
5695
5703
|
__decorateClass([
|
|
5696
5704
|
(0, import_class_validator54.IsOptional)(),
|
|
5697
5705
|
(0, import_class_validator54.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
5698
|
-
(0,
|
|
5706
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
5699
5707
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5700
5708
|
__decorateClass([
|
|
5701
5709
|
(0, import_class_validator54.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -5814,7 +5822,7 @@ __decorateClass([
|
|
|
5814
5822
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
5815
5823
|
|
|
5816
5824
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
5817
|
-
var
|
|
5825
|
+
var import_class_transformer10 = require("class-transformer");
|
|
5818
5826
|
var import_class_validator57 = require("class-validator");
|
|
5819
5827
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
5820
5828
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -5844,7 +5852,7 @@ __decorateClass([
|
|
|
5844
5852
|
], UpdateClientDto.prototype, "email", 2);
|
|
5845
5853
|
__decorateClass([
|
|
5846
5854
|
(0, import_class_validator57.IsOptional)(),
|
|
5847
|
-
(0,
|
|
5855
|
+
(0, import_class_transformer10.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5848
5856
|
(0, import_class_validator57.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
5849
5857
|
(0, import_class_validator57.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
5850
5858
|
(0, import_class_validator57.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -5978,7 +5986,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
5978
5986
|
};
|
|
5979
5987
|
|
|
5980
5988
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
5981
|
-
var
|
|
5989
|
+
var import_class_transformer11 = require("class-transformer");
|
|
5982
5990
|
var import_class_validator61 = require("class-validator");
|
|
5983
5991
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
5984
5992
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -6038,11 +6046,11 @@ __decorateClass([
|
|
|
6038
6046
|
(0, import_class_validator61.IsNotEmpty)({ message: "Currency is required." })
|
|
6039
6047
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6040
6048
|
__decorateClass([
|
|
6041
|
-
(0,
|
|
6049
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
6042
6050
|
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6043
6051
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6044
6052
|
__decorateClass([
|
|
6045
|
-
(0,
|
|
6053
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
6046
6054
|
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6047
6055
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6048
6056
|
__decorateClass([
|
|
@@ -6075,7 +6083,7 @@ __decorateClass([
|
|
|
6075
6083
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6076
6084
|
|
|
6077
6085
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6078
|
-
var
|
|
6086
|
+
var import_class_transformer12 = require("class-transformer");
|
|
6079
6087
|
var import_class_validator62 = require("class-validator");
|
|
6080
6088
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6081
6089
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -6135,11 +6143,11 @@ __decorateClass([
|
|
|
6135
6143
|
(0, import_class_validator62.IsNotEmpty)({ message: "Currency is required." })
|
|
6136
6144
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6137
6145
|
__decorateClass([
|
|
6138
|
-
(0,
|
|
6146
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
6139
6147
|
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6140
6148
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6141
6149
|
__decorateClass([
|
|
6142
|
-
(0,
|
|
6150
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
6143
6151
|
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6144
6152
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6145
6153
|
__decorateClass([
|
|
@@ -6289,7 +6297,7 @@ var CALENDLY_PATTERN = {
|
|
|
6289
6297
|
|
|
6290
6298
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
6291
6299
|
var import_class_validator67 = require("class-validator");
|
|
6292
|
-
var
|
|
6300
|
+
var import_class_transformer13 = require("class-transformer");
|
|
6293
6301
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
6294
6302
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
6295
6303
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -6328,14 +6336,14 @@ __decorateClass([
|
|
|
6328
6336
|
(0, import_class_validator67.IsArray)({ message: "Existing candidates should be an array." }),
|
|
6329
6337
|
(0, import_class_validator67.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
6330
6338
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6331
|
-
(0,
|
|
6339
|
+
(0, import_class_transformer13.Type)(() => ExistingCandidateDto)
|
|
6332
6340
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
6333
6341
|
__decorateClass([
|
|
6334
6342
|
(0, import_class_validator67.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
6335
6343
|
(0, import_class_validator67.IsArray)({ message: "New candidates should be an array." }),
|
|
6336
6344
|
(0, import_class_validator67.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
6337
6345
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6338
|
-
(0,
|
|
6346
|
+
(0, import_class_transformer13.Type)(() => NewCandidateDto)
|
|
6339
6347
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
6340
6348
|
var InterviewInviteDto = class {
|
|
6341
6349
|
};
|
|
@@ -6344,7 +6352,7 @@ __decorateClass([
|
|
|
6344
6352
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
6345
6353
|
__decorateClass([
|
|
6346
6354
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6347
|
-
(0,
|
|
6355
|
+
(0, import_class_transformer13.Type)(() => CandidatesDto)
|
|
6348
6356
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
6349
6357
|
|
|
6350
6358
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
@@ -6424,17 +6432,17 @@ var CONTRACT_PATTERN = {
|
|
|
6424
6432
|
|
|
6425
6433
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6426
6434
|
var import_class_validator71 = require("class-validator");
|
|
6427
|
-
var
|
|
6435
|
+
var import_class_transformer14 = require("class-transformer");
|
|
6428
6436
|
var SignContractForClientDto = class {
|
|
6429
6437
|
};
|
|
6430
6438
|
__decorateClass([
|
|
6431
6439
|
(0, import_class_validator71.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6432
|
-
(0,
|
|
6440
|
+
(0, import_class_transformer14.Type)(() => Number),
|
|
6433
6441
|
(0, import_class_validator71.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6434
6442
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6435
6443
|
__decorateClass([
|
|
6436
6444
|
(0, import_class_validator71.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
6437
|
-
(0,
|
|
6445
|
+
(0, import_class_transformer14.Type)(() => Number),
|
|
6438
6446
|
(0, import_class_validator71.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
6439
6447
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6440
6448
|
__decorateClass([
|
|
@@ -6444,17 +6452,17 @@ __decorateClass([
|
|
|
6444
6452
|
|
|
6445
6453
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6446
6454
|
var import_class_validator72 = require("class-validator");
|
|
6447
|
-
var
|
|
6455
|
+
var import_class_transformer15 = require("class-transformer");
|
|
6448
6456
|
var SignContractForFreelancerDto = class {
|
|
6449
6457
|
};
|
|
6450
6458
|
__decorateClass([
|
|
6451
6459
|
(0, import_class_validator72.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6452
|
-
(0,
|
|
6460
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
6453
6461
|
(0, import_class_validator72.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6454
6462
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6455
6463
|
__decorateClass([
|
|
6456
6464
|
(0, import_class_validator72.IsNotEmpty)({ message: "Client ID is required." }),
|
|
6457
|
-
(0,
|
|
6465
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
6458
6466
|
(0, import_class_validator72.IsNumber)({}, { message: "Client ID must be a number." })
|
|
6459
6467
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6460
6468
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -1133,9 +1133,17 @@ __decorateClass([
|
|
|
1133
1133
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1134
1134
|
|
|
1135
1135
|
// src/modules/job/dto/job-description.dto.ts
|
|
1136
|
-
import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength8 } from "class-validator";
|
|
1136
|
+
import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength8, IsOptional as IsOptional14 } from "class-validator";
|
|
1137
|
+
import { Type as Type2 } from "class-transformer";
|
|
1137
1138
|
var JobDescriptionDto = class {
|
|
1139
|
+
constructor() {
|
|
1140
|
+
this.isDraft = false;
|
|
1141
|
+
}
|
|
1138
1142
|
};
|
|
1143
|
+
__decorateClass([
|
|
1144
|
+
IsOptional14(),
|
|
1145
|
+
Type2(() => Boolean)
|
|
1146
|
+
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
1139
1147
|
__decorateClass([
|
|
1140
1148
|
IsNotEmpty30({ message: "Please enter job description" }),
|
|
1141
1149
|
IsString14({ message: "Description must be a string" }),
|
|
@@ -1209,7 +1217,7 @@ __decorateClass([
|
|
|
1209
1217
|
|
|
1210
1218
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1211
1219
|
import {
|
|
1212
|
-
IsOptional as
|
|
1220
|
+
IsOptional as IsOptional15,
|
|
1213
1221
|
IsString as IsString16,
|
|
1214
1222
|
IsEmail as IsEmail5,
|
|
1215
1223
|
IsNumber as IsNumber2,
|
|
@@ -1258,7 +1266,7 @@ __decorateClass([
|
|
|
1258
1266
|
IsString16({ message: "Please enter valid mobile number." })
|
|
1259
1267
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1260
1268
|
__decorateClass([
|
|
1261
|
-
|
|
1269
|
+
IsOptional15(),
|
|
1262
1270
|
IsNumber2()
|
|
1263
1271
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1264
1272
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
@@ -1282,35 +1290,35 @@ __decorateClass([
|
|
|
1282
1290
|
})
|
|
1283
1291
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1284
1292
|
__decorateClass([
|
|
1285
|
-
|
|
1293
|
+
IsOptional15(),
|
|
1286
1294
|
IsString16()
|
|
1287
1295
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1288
1296
|
__decorateClass([
|
|
1289
|
-
|
|
1297
|
+
IsOptional15(),
|
|
1290
1298
|
IsString16()
|
|
1291
1299
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1292
1300
|
__decorateClass([
|
|
1293
|
-
|
|
1301
|
+
IsOptional15(),
|
|
1294
1302
|
IsString16()
|
|
1295
1303
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1296
1304
|
__decorateClass([
|
|
1297
|
-
|
|
1305
|
+
IsOptional15(),
|
|
1298
1306
|
IsString16()
|
|
1299
1307
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1300
1308
|
__decorateClass([
|
|
1301
|
-
|
|
1309
|
+
IsOptional15(),
|
|
1302
1310
|
IsString16()
|
|
1303
1311
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1304
1312
|
__decorateClass([
|
|
1305
|
-
|
|
1313
|
+
IsOptional15(),
|
|
1306
1314
|
IsString16()
|
|
1307
1315
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1308
1316
|
__decorateClass([
|
|
1309
|
-
|
|
1317
|
+
IsOptional15(),
|
|
1310
1318
|
IsString16()
|
|
1311
1319
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1312
1320
|
__decorateClass([
|
|
1313
|
-
|
|
1321
|
+
IsOptional15(),
|
|
1314
1322
|
IsString16()
|
|
1315
1323
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1316
1324
|
|
|
@@ -1325,7 +1333,7 @@ var BANK_PATTERN = {
|
|
|
1325
1333
|
import {
|
|
1326
1334
|
IsEnum as IsEnum13,
|
|
1327
1335
|
IsNotEmpty as IsNotEmpty34,
|
|
1328
|
-
IsOptional as
|
|
1336
|
+
IsOptional as IsOptional16,
|
|
1329
1337
|
ValidateIf as ValidateIf4
|
|
1330
1338
|
} from "class-validator";
|
|
1331
1339
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1345,7 +1353,7 @@ __decorateClass([
|
|
|
1345
1353
|
IsNotEmpty34({ message: "Please enter Email." })
|
|
1346
1354
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1347
1355
|
__decorateClass([
|
|
1348
|
-
|
|
1356
|
+
IsOptional16()
|
|
1349
1357
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1350
1358
|
__decorateClass([
|
|
1351
1359
|
IsNotEmpty34({ message: "Please enter Account Number." })
|
|
@@ -1373,7 +1381,7 @@ __decorateClass([
|
|
|
1373
1381
|
IsNotEmpty34({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1374
1382
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1375
1383
|
__decorateClass([
|
|
1376
|
-
|
|
1384
|
+
IsOptional16()
|
|
1377
1385
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1378
1386
|
__decorateClass([
|
|
1379
1387
|
IsEnum13(BankAccountScope, {
|
|
@@ -1435,7 +1443,7 @@ import {
|
|
|
1435
1443
|
IsEnum as IsEnum15,
|
|
1436
1444
|
IsInt,
|
|
1437
1445
|
IsNotEmpty as IsNotEmpty35,
|
|
1438
|
-
IsOptional as
|
|
1446
|
+
IsOptional as IsOptional17,
|
|
1439
1447
|
IsString as IsString17,
|
|
1440
1448
|
Max as Max2,
|
|
1441
1449
|
Min as Min2
|
|
@@ -5246,7 +5254,7 @@ __decorateClass([
|
|
|
5246
5254
|
Max2(5, { message: "Rating must be at most 5" })
|
|
5247
5255
|
], CreateRatingDto.prototype, "rating", 2);
|
|
5248
5256
|
__decorateClass([
|
|
5249
|
-
|
|
5257
|
+
IsOptional17(),
|
|
5250
5258
|
IsString17({ message: "Review must be a string" })
|
|
5251
5259
|
], CreateRatingDto.prototype, "review", 2);
|
|
5252
5260
|
|
|
@@ -5263,7 +5271,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
5263
5271
|
};
|
|
5264
5272
|
|
|
5265
5273
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
5266
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as
|
|
5274
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional18 } from "class-validator";
|
|
5267
5275
|
var CreateCompanyRoleDto = class {
|
|
5268
5276
|
};
|
|
5269
5277
|
__decorateClass([
|
|
@@ -5281,12 +5289,12 @@ __decorateClass([
|
|
|
5281
5289
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
5282
5290
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5283
5291
|
__decorateClass([
|
|
5284
|
-
|
|
5292
|
+
IsOptional18(),
|
|
5285
5293
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
5286
5294
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
5287
5295
|
|
|
5288
5296
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
5289
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as
|
|
5297
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional19 } from "class-validator";
|
|
5290
5298
|
var UpdateCompanyRoleDto = class {
|
|
5291
5299
|
};
|
|
5292
5300
|
__decorateClass([
|
|
@@ -5304,7 +5312,7 @@ __decorateClass([
|
|
|
5304
5312
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
5305
5313
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5306
5314
|
__decorateClass([
|
|
5307
|
-
|
|
5315
|
+
IsOptional19(),
|
|
5308
5316
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
5309
5317
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
5310
5318
|
|
|
@@ -5326,16 +5334,16 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
5326
5334
|
import {
|
|
5327
5335
|
ArrayMinSize,
|
|
5328
5336
|
IsNotEmpty as IsNotEmpty38,
|
|
5329
|
-
IsOptional as
|
|
5337
|
+
IsOptional as IsOptional20,
|
|
5330
5338
|
IsString as IsString20,
|
|
5331
5339
|
MaxLength as MaxLength11,
|
|
5332
5340
|
ValidateNested
|
|
5333
5341
|
} from "class-validator";
|
|
5334
|
-
import { Type as
|
|
5342
|
+
import { Type as Type3 } from "class-transformer";
|
|
5335
5343
|
var ExperienceDto = class {
|
|
5336
5344
|
};
|
|
5337
5345
|
__decorateClass([
|
|
5338
|
-
|
|
5346
|
+
IsOptional20()
|
|
5339
5347
|
], ExperienceDto.prototype, "uuid", 2);
|
|
5340
5348
|
__decorateClass([
|
|
5341
5349
|
IsNotEmpty38(),
|
|
@@ -5350,7 +5358,7 @@ __decorateClass([
|
|
|
5350
5358
|
IsString20()
|
|
5351
5359
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
5352
5360
|
__decorateClass([
|
|
5353
|
-
|
|
5361
|
+
IsOptional20(),
|
|
5354
5362
|
IsString20(),
|
|
5355
5363
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5356
5364
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -5359,7 +5367,7 @@ var FreelancerExperienceDto = class {
|
|
|
5359
5367
|
__decorateClass([
|
|
5360
5368
|
ValidateNested({ each: true }),
|
|
5361
5369
|
ArrayMinSize(1, { message: "At least one experience is required." }),
|
|
5362
|
-
|
|
5370
|
+
Type3(() => ExperienceDto)
|
|
5363
5371
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
5364
5372
|
|
|
5365
5373
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -5421,12 +5429,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5421
5429
|
};
|
|
5422
5430
|
|
|
5423
5431
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5424
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as
|
|
5425
|
-
import { Type as
|
|
5432
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional23, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
5433
|
+
import { Type as Type4 } from "class-transformer";
|
|
5426
5434
|
var EducationDto = class {
|
|
5427
5435
|
};
|
|
5428
5436
|
__decorateClass([
|
|
5429
|
-
|
|
5437
|
+
IsOptional23()
|
|
5430
5438
|
], EducationDto.prototype, "uuid", 2);
|
|
5431
5439
|
__decorateClass([
|
|
5432
5440
|
IsString23(),
|
|
@@ -5446,7 +5454,7 @@ __decorateClass([
|
|
|
5446
5454
|
IsArray6(),
|
|
5447
5455
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
5448
5456
|
ValidateNested2({ each: true }),
|
|
5449
|
-
|
|
5457
|
+
Type4(() => EducationDto)
|
|
5450
5458
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
5451
5459
|
|
|
5452
5460
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -5456,12 +5464,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5456
5464
|
};
|
|
5457
5465
|
|
|
5458
5466
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5459
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as
|
|
5460
|
-
import { Type as
|
|
5467
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional24, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
5468
|
+
import { Type as Type5 } from "class-transformer";
|
|
5461
5469
|
var ProjectDto = class {
|
|
5462
5470
|
};
|
|
5463
5471
|
__decorateClass([
|
|
5464
|
-
|
|
5472
|
+
IsOptional24()
|
|
5465
5473
|
], ProjectDto.prototype, "uuid", 2);
|
|
5466
5474
|
__decorateClass([
|
|
5467
5475
|
IsString24(),
|
|
@@ -5476,33 +5484,33 @@ __decorateClass([
|
|
|
5476
5484
|
IsNotEmpty42({ message: "Please Enter End Date " })
|
|
5477
5485
|
], ProjectDto.prototype, "endDate", 2);
|
|
5478
5486
|
__decorateClass([
|
|
5479
|
-
|
|
5487
|
+
IsOptional24(),
|
|
5480
5488
|
IsString24()
|
|
5481
5489
|
], ProjectDto.prototype, "clientName", 2);
|
|
5482
5490
|
__decorateClass([
|
|
5483
|
-
|
|
5491
|
+
IsOptional24(),
|
|
5484
5492
|
IsString24()
|
|
5485
5493
|
], ProjectDto.prototype, "gitLink", 2);
|
|
5486
5494
|
__decorateClass([
|
|
5487
|
-
|
|
5495
|
+
IsOptional24(),
|
|
5488
5496
|
IsString24(),
|
|
5489
5497
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5490
5498
|
], ProjectDto.prototype, "description", 2);
|
|
5491
5499
|
var CaseStudyDto = class {
|
|
5492
5500
|
};
|
|
5493
5501
|
__decorateClass([
|
|
5494
|
-
|
|
5502
|
+
IsOptional24()
|
|
5495
5503
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
5496
5504
|
__decorateClass([
|
|
5497
5505
|
IsString24(),
|
|
5498
5506
|
IsNotEmpty42({ message: "Please Enter Project Name " })
|
|
5499
5507
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
5500
5508
|
__decorateClass([
|
|
5501
|
-
|
|
5509
|
+
IsOptional24(),
|
|
5502
5510
|
IsString24()
|
|
5503
5511
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
5504
5512
|
__decorateClass([
|
|
5505
|
-
|
|
5513
|
+
IsOptional24(),
|
|
5506
5514
|
IsString24(),
|
|
5507
5515
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5508
5516
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -5512,12 +5520,12 @@ __decorateClass([
|
|
|
5512
5520
|
IsArray7(),
|
|
5513
5521
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
5514
5522
|
ValidateNested3({ each: true }),
|
|
5515
|
-
|
|
5523
|
+
Type5(() => ProjectDto)
|
|
5516
5524
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
5517
5525
|
__decorateClass([
|
|
5518
5526
|
IsArray7(),
|
|
5519
5527
|
ValidateNested3({ each: true }),
|
|
5520
|
-
|
|
5528
|
+
Type5(() => CaseStudyDto)
|
|
5521
5529
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
5522
5530
|
|
|
5523
5531
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -5532,8 +5540,8 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5532
5540
|
};
|
|
5533
5541
|
|
|
5534
5542
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5535
|
-
import { IsArray as IsArray8, IsString as IsString25, IsOptional as
|
|
5536
|
-
import { Type as
|
|
5543
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional25 } from "class-validator";
|
|
5544
|
+
import { Type as Type6 } from "class-transformer";
|
|
5537
5545
|
var FreelancerSkillDto = class {
|
|
5538
5546
|
constructor() {
|
|
5539
5547
|
this.coreSkills = [];
|
|
@@ -5542,21 +5550,21 @@ var FreelancerSkillDto = class {
|
|
|
5542
5550
|
}
|
|
5543
5551
|
};
|
|
5544
5552
|
__decorateClass([
|
|
5545
|
-
|
|
5553
|
+
IsOptional25(),
|
|
5546
5554
|
IsArray8(),
|
|
5547
|
-
|
|
5555
|
+
Type6(() => String),
|
|
5548
5556
|
IsString25({ each: true })
|
|
5549
5557
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5550
5558
|
__decorateClass([
|
|
5551
|
-
|
|
5559
|
+
IsOptional25(),
|
|
5552
5560
|
IsArray8(),
|
|
5553
|
-
|
|
5561
|
+
Type6(() => String),
|
|
5554
5562
|
IsString25({ each: true })
|
|
5555
5563
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5556
5564
|
__decorateClass([
|
|
5557
|
-
|
|
5565
|
+
IsOptional25(),
|
|
5558
5566
|
IsArray8(),
|
|
5559
|
-
|
|
5567
|
+
Type6(() => String),
|
|
5560
5568
|
IsString25({ each: true })
|
|
5561
5569
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
5562
5570
|
|
|
@@ -5577,7 +5585,7 @@ import {
|
|
|
5577
5585
|
IsString as IsString26,
|
|
5578
5586
|
IsEmail as IsEmail10,
|
|
5579
5587
|
IsBoolean as IsBoolean10,
|
|
5580
|
-
IsOptional as
|
|
5588
|
+
IsOptional as IsOptional26,
|
|
5581
5589
|
IsEnum as IsEnum16,
|
|
5582
5590
|
IsNumber as IsNumber3,
|
|
5583
5591
|
IsUrl as IsUrl3,
|
|
@@ -5588,7 +5596,7 @@ import {
|
|
|
5588
5596
|
Matches as Matches9,
|
|
5589
5597
|
ValidateIf as ValidateIf5
|
|
5590
5598
|
} from "class-validator";
|
|
5591
|
-
import { Type as
|
|
5599
|
+
import { Type as Type7 } from "class-transformer";
|
|
5592
5600
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5593
5601
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5594
5602
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5630,7 +5638,7 @@ __decorateClass([
|
|
|
5630
5638
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
5631
5639
|
__decorateClass([
|
|
5632
5640
|
IsBoolean10({ message: "Developer flag must be true or false" }),
|
|
5633
|
-
|
|
5641
|
+
Type7(() => Boolean)
|
|
5634
5642
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
5635
5643
|
__decorateClass([
|
|
5636
5644
|
IsEnum16(NatureOfWorkEnum, {
|
|
@@ -5642,7 +5650,7 @@ __decorateClass([
|
|
|
5642
5650
|
__decorateClass([
|
|
5643
5651
|
IsNumber3({}, { message: "Expected hourly compensation must be a number" }),
|
|
5644
5652
|
Min3(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5645
|
-
|
|
5653
|
+
Type7(() => Number)
|
|
5646
5654
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5647
5655
|
__decorateClass([
|
|
5648
5656
|
IsEnum16(ModeOfWorkEnum, {
|
|
@@ -5653,30 +5661,30 @@ __decorateClass([
|
|
|
5653
5661
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5654
5662
|
__decorateClass([
|
|
5655
5663
|
IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
|
|
5656
|
-
|
|
5664
|
+
Type7(() => Boolean)
|
|
5657
5665
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5658
5666
|
__decorateClass([
|
|
5659
5667
|
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
5660
5668
|
IsNotEmpty44({ message: "Please enter availability to join." })
|
|
5661
5669
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5662
5670
|
__decorateClass([
|
|
5663
|
-
|
|
5671
|
+
IsOptional26(),
|
|
5664
5672
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5665
5673
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5666
5674
|
__decorateClass([
|
|
5667
|
-
|
|
5675
|
+
IsOptional26(),
|
|
5668
5676
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
5669
5677
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5670
5678
|
__decorateClass([
|
|
5671
|
-
|
|
5679
|
+
IsOptional26(),
|
|
5672
5680
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
5673
5681
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5674
5682
|
__decorateClass([
|
|
5675
|
-
|
|
5683
|
+
IsOptional26(),
|
|
5676
5684
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5677
5685
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5678
5686
|
__decorateClass([
|
|
5679
|
-
|
|
5687
|
+
IsOptional26(),
|
|
5680
5688
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
5681
5689
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5682
5690
|
|
|
@@ -5685,7 +5693,7 @@ import {
|
|
|
5685
5693
|
IsString as IsString27,
|
|
5686
5694
|
IsEmail as IsEmail11,
|
|
5687
5695
|
IsBoolean as IsBoolean11,
|
|
5688
|
-
IsOptional as
|
|
5696
|
+
IsOptional as IsOptional27,
|
|
5689
5697
|
IsEnum as IsEnum17,
|
|
5690
5698
|
IsNumber as IsNumber4,
|
|
5691
5699
|
IsUrl as IsUrl4,
|
|
@@ -5696,7 +5704,7 @@ import {
|
|
|
5696
5704
|
IsNotEmpty as IsNotEmpty45,
|
|
5697
5705
|
ValidateIf as ValidateIf6
|
|
5698
5706
|
} from "class-validator";
|
|
5699
|
-
import { Transform as Transform2, Type as
|
|
5707
|
+
import { Transform as Transform2, Type as Type8 } from "class-transformer";
|
|
5700
5708
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5701
5709
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5702
5710
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5712,24 +5720,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
5712
5720
|
var UpdateFreelancerDto = class {
|
|
5713
5721
|
};
|
|
5714
5722
|
__decorateClass([
|
|
5715
|
-
|
|
5723
|
+
IsOptional27(),
|
|
5716
5724
|
IsString27({ message: "Full name must be a string" }),
|
|
5717
5725
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
5718
5726
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
5719
5727
|
__decorateClass([
|
|
5720
|
-
|
|
5728
|
+
IsOptional27(),
|
|
5721
5729
|
IsEmail11({}, { message: "Invalid email address" })
|
|
5722
5730
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
5723
5731
|
__decorateClass([
|
|
5724
|
-
|
|
5732
|
+
IsOptional27(),
|
|
5725
5733
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5726
5734
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
5727
5735
|
__decorateClass([
|
|
5728
|
-
|
|
5736
|
+
IsOptional27(),
|
|
5729
5737
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5730
5738
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
5731
5739
|
__decorateClass([
|
|
5732
|
-
|
|
5740
|
+
IsOptional27(),
|
|
5733
5741
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5734
5742
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
5735
5743
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5738,12 +5746,12 @@ __decorateClass([
|
|
|
5738
5746
|
})
|
|
5739
5747
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
5740
5748
|
__decorateClass([
|
|
5741
|
-
|
|
5749
|
+
IsOptional27(),
|
|
5742
5750
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
5743
|
-
|
|
5751
|
+
Type8(() => Boolean)
|
|
5744
5752
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5745
5753
|
__decorateClass([
|
|
5746
|
-
|
|
5754
|
+
IsOptional27(),
|
|
5747
5755
|
IsEnum17(NatureOfWorkEnum2, {
|
|
5748
5756
|
message: `Nature of work must be one of: ${Object.values(
|
|
5749
5757
|
NatureOfWorkEnum2
|
|
@@ -5751,13 +5759,13 @@ __decorateClass([
|
|
|
5751
5759
|
})
|
|
5752
5760
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
5753
5761
|
__decorateClass([
|
|
5754
|
-
|
|
5762
|
+
IsOptional27(),
|
|
5755
5763
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
5756
5764
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5757
|
-
|
|
5765
|
+
Type8(() => Number)
|
|
5758
5766
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5759
5767
|
__decorateClass([
|
|
5760
|
-
|
|
5768
|
+
IsOptional27(),
|
|
5761
5769
|
IsEnum17(ModeOfWorkEnum2, {
|
|
5762
5770
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
5763
5771
|
", "
|
|
@@ -5765,32 +5773,32 @@ __decorateClass([
|
|
|
5765
5773
|
})
|
|
5766
5774
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5767
5775
|
__decorateClass([
|
|
5768
|
-
|
|
5776
|
+
IsOptional27(),
|
|
5769
5777
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
5770
|
-
|
|
5778
|
+
Type8(() => Boolean)
|
|
5771
5779
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5772
5780
|
__decorateClass([
|
|
5773
5781
|
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
5774
5782
|
IsNotEmpty45({ message: "Please enter availability to join." })
|
|
5775
5783
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5776
5784
|
__decorateClass([
|
|
5777
|
-
|
|
5785
|
+
IsOptional27(),
|
|
5778
5786
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5779
5787
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5780
5788
|
__decorateClass([
|
|
5781
|
-
|
|
5789
|
+
IsOptional27(),
|
|
5782
5790
|
IsString27({ message: "Kaggle profile link must be a string" })
|
|
5783
5791
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5784
5792
|
__decorateClass([
|
|
5785
|
-
|
|
5793
|
+
IsOptional27(),
|
|
5786
5794
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
5787
5795
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5788
5796
|
__decorateClass([
|
|
5789
|
-
|
|
5797
|
+
IsOptional27(),
|
|
5790
5798
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5791
5799
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5792
5800
|
__decorateClass([
|
|
5793
|
-
|
|
5801
|
+
IsOptional27(),
|
|
5794
5802
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
5795
5803
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5796
5804
|
|
|
@@ -5811,7 +5819,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
5811
5819
|
import {
|
|
5812
5820
|
IsNotEmpty as IsNotEmpty46,
|
|
5813
5821
|
IsEmail as IsEmail12,
|
|
5814
|
-
IsOptional as
|
|
5822
|
+
IsOptional as IsOptional28,
|
|
5815
5823
|
IsString as IsString28,
|
|
5816
5824
|
IsArray as IsArray9,
|
|
5817
5825
|
MinLength as MinLength14,
|
|
@@ -5882,7 +5890,7 @@ __decorateClass([
|
|
|
5882
5890
|
IsString28()
|
|
5883
5891
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
5884
5892
|
__decorateClass([
|
|
5885
|
-
|
|
5893
|
+
IsOptional28(),
|
|
5886
5894
|
IsString28()
|
|
5887
5895
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5888
5896
|
|
|
@@ -5900,7 +5908,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
5900
5908
|
import {
|
|
5901
5909
|
IsNotEmpty as IsNotEmpty48,
|
|
5902
5910
|
IsEmail as IsEmail13,
|
|
5903
|
-
IsOptional as
|
|
5911
|
+
IsOptional as IsOptional29,
|
|
5904
5912
|
IsString as IsString30,
|
|
5905
5913
|
IsArray as IsArray10,
|
|
5906
5914
|
MinLength as MinLength15,
|
|
@@ -5935,7 +5943,7 @@ __decorateClass([
|
|
|
5935
5943
|
IsEmail13()
|
|
5936
5944
|
], UpdateClientDto.prototype, "email", 2);
|
|
5937
5945
|
__decorateClass([
|
|
5938
|
-
|
|
5946
|
+
IsOptional29(),
|
|
5939
5947
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5940
5948
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
5941
5949
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5968,7 +5976,7 @@ __decorateClass([
|
|
|
5968
5976
|
IsString30()
|
|
5969
5977
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
5970
5978
|
__decorateClass([
|
|
5971
|
-
|
|
5979
|
+
IsOptional29(),
|
|
5972
5980
|
IsString30()
|
|
5973
5981
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5974
5982
|
|
|
@@ -5979,7 +5987,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
5979
5987
|
};
|
|
5980
5988
|
|
|
5981
5989
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
5982
|
-
import { IsOptional as
|
|
5990
|
+
import { IsOptional as IsOptional30, IsEnum as IsEnum20, IsString as IsString31, IsNotEmpty as IsNotEmpty49, IsIn as IsIn3 } from "class-validator";
|
|
5983
5991
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
5984
5992
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
5985
5993
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -5990,7 +5998,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
5990
5998
|
var FreelancerDeclarationDto = class {
|
|
5991
5999
|
};
|
|
5992
6000
|
__decorateClass([
|
|
5993
|
-
|
|
6001
|
+
IsOptional30(),
|
|
5994
6002
|
IsString31({ message: "UUID must be a string" })
|
|
5995
6003
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
5996
6004
|
__decorateClass([
|
|
@@ -6014,35 +6022,35 @@ var CMS_PATTERNS = {
|
|
|
6014
6022
|
};
|
|
6015
6023
|
|
|
6016
6024
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
6017
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as
|
|
6025
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as IsOptional31 } from "class-validator";
|
|
6018
6026
|
var CreateCmsDto = class {
|
|
6019
6027
|
};
|
|
6020
6028
|
__decorateClass([
|
|
6021
6029
|
IsNotEmpty50({ message: "Please enter name." })
|
|
6022
6030
|
], CreateCmsDto.prototype, "title", 2);
|
|
6023
6031
|
__decorateClass([
|
|
6024
|
-
|
|
6032
|
+
IsOptional31()
|
|
6025
6033
|
], CreateCmsDto.prototype, "content", 2);
|
|
6026
6034
|
__decorateClass([
|
|
6027
|
-
|
|
6035
|
+
IsOptional31(),
|
|
6028
6036
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
6029
6037
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
6030
6038
|
|
|
6031
6039
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
6032
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as
|
|
6040
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional32 } from "class-validator";
|
|
6033
6041
|
var UpdateCmsDto = class {
|
|
6034
6042
|
};
|
|
6035
6043
|
__decorateClass([
|
|
6036
|
-
|
|
6044
|
+
IsOptional32()
|
|
6037
6045
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
6038
6046
|
__decorateClass([
|
|
6039
6047
|
IsNotEmpty51({ message: "Please enter name." })
|
|
6040
6048
|
], UpdateCmsDto.prototype, "title", 2);
|
|
6041
6049
|
__decorateClass([
|
|
6042
|
-
|
|
6050
|
+
IsOptional32()
|
|
6043
6051
|
], UpdateCmsDto.prototype, "content", 2);
|
|
6044
6052
|
__decorateClass([
|
|
6045
|
-
|
|
6053
|
+
IsOptional32(),
|
|
6046
6054
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
6047
6055
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
6048
6056
|
|
|
@@ -6070,12 +6078,12 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6070
6078
|
};
|
|
6071
6079
|
|
|
6072
6080
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
6073
|
-
import { Type as
|
|
6081
|
+
import { Type as Type9 } from "class-transformer";
|
|
6074
6082
|
import {
|
|
6075
6083
|
IsString as IsString32,
|
|
6076
6084
|
IsEnum as IsEnum21,
|
|
6077
6085
|
IsInt as IsInt6,
|
|
6078
|
-
IsOptional as
|
|
6086
|
+
IsOptional as IsOptional33,
|
|
6079
6087
|
IsArray as IsArray11,
|
|
6080
6088
|
IsDateString as IsDateString4,
|
|
6081
6089
|
IsNotEmpty as IsNotEmpty52,
|
|
@@ -6102,7 +6110,7 @@ __decorateClass([
|
|
|
6102
6110
|
IsNotEmpty52({ message: "Job role is required." })
|
|
6103
6111
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
6104
6112
|
__decorateClass([
|
|
6105
|
-
|
|
6113
|
+
IsOptional33(),
|
|
6106
6114
|
IsString32({ message: "Note must be a string." })
|
|
6107
6115
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
6108
6116
|
__decorateClass([
|
|
@@ -6141,11 +6149,11 @@ __decorateClass([
|
|
|
6141
6149
|
IsNotEmpty52({ message: "Currency is required." })
|
|
6142
6150
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6143
6151
|
__decorateClass([
|
|
6144
|
-
|
|
6152
|
+
Type9(() => Number),
|
|
6145
6153
|
IsNumber5({}, { message: "Expected salary from must be a number." })
|
|
6146
6154
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6147
6155
|
__decorateClass([
|
|
6148
|
-
|
|
6156
|
+
Type9(() => Number),
|
|
6149
6157
|
IsNumber5({}, { message: "Expected salary to must be a number." })
|
|
6150
6158
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6151
6159
|
__decorateClass([
|
|
@@ -6161,7 +6169,7 @@ __decorateClass([
|
|
|
6161
6169
|
)
|
|
6162
6170
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6163
6171
|
__decorateClass([
|
|
6164
|
-
|
|
6172
|
+
IsOptional33(),
|
|
6165
6173
|
IsString32({ message: "Additional comment must be a string." })
|
|
6166
6174
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
6167
6175
|
__decorateClass([
|
|
@@ -6178,12 +6186,12 @@ __decorateClass([
|
|
|
6178
6186
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6179
6187
|
|
|
6180
6188
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6181
|
-
import { Type as
|
|
6189
|
+
import { Type as Type10 } from "class-transformer";
|
|
6182
6190
|
import {
|
|
6183
6191
|
IsString as IsString33,
|
|
6184
6192
|
IsEnum as IsEnum22,
|
|
6185
6193
|
IsInt as IsInt7,
|
|
6186
|
-
IsOptional as
|
|
6194
|
+
IsOptional as IsOptional34,
|
|
6187
6195
|
IsArray as IsArray12,
|
|
6188
6196
|
IsDateString as IsDateString5,
|
|
6189
6197
|
IsNotEmpty as IsNotEmpty53,
|
|
@@ -6210,7 +6218,7 @@ __decorateClass([
|
|
|
6210
6218
|
IsNotEmpty53({ message: "Job role is required." })
|
|
6211
6219
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
6212
6220
|
__decorateClass([
|
|
6213
|
-
|
|
6221
|
+
IsOptional34(),
|
|
6214
6222
|
IsString33({ message: "Note must be a string." })
|
|
6215
6223
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
6216
6224
|
__decorateClass([
|
|
@@ -6249,11 +6257,11 @@ __decorateClass([
|
|
|
6249
6257
|
IsNotEmpty53({ message: "Currency is required." })
|
|
6250
6258
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6251
6259
|
__decorateClass([
|
|
6252
|
-
|
|
6260
|
+
Type10(() => Number),
|
|
6253
6261
|
IsNumber6({}, { message: "Expected salary from must be a number." })
|
|
6254
6262
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6255
6263
|
__decorateClass([
|
|
6256
|
-
|
|
6264
|
+
Type10(() => Number),
|
|
6257
6265
|
IsNumber6({}, { message: "Expected salary to must be a number." })
|
|
6258
6266
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6259
6267
|
__decorateClass([
|
|
@@ -6269,7 +6277,7 @@ __decorateClass([
|
|
|
6269
6277
|
)
|
|
6270
6278
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6271
6279
|
__decorateClass([
|
|
6272
|
-
|
|
6280
|
+
IsOptional34(),
|
|
6273
6281
|
IsString33({ message: "Additional comment must be a string." })
|
|
6274
6282
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
6275
6283
|
__decorateClass([
|
|
@@ -6292,7 +6300,7 @@ var LEAD_PATTERN = {
|
|
|
6292
6300
|
};
|
|
6293
6301
|
|
|
6294
6302
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
6295
|
-
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as
|
|
6303
|
+
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as IsOptional35, IsEnum as IsEnum23 } from "class-validator";
|
|
6296
6304
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
6297
6305
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
6298
6306
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -6313,7 +6321,7 @@ __decorateClass([
|
|
|
6313
6321
|
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6314
6322
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
6315
6323
|
__decorateClass([
|
|
6316
|
-
|
|
6324
|
+
IsOptional35(),
|
|
6317
6325
|
IsString34({ message: "Description must be a string" })
|
|
6318
6326
|
], CreateLeadDto.prototype, "description", 2);
|
|
6319
6327
|
__decorateClass([
|
|
@@ -6337,7 +6345,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
6337
6345
|
};
|
|
6338
6346
|
|
|
6339
6347
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
6340
|
-
import { IsNotEmpty as IsNotEmpty54, IsOptional as
|
|
6348
|
+
import { IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional36, IsString as IsString35 } from "class-validator";
|
|
6341
6349
|
var CreateAdminRoleDto = class {
|
|
6342
6350
|
};
|
|
6343
6351
|
__decorateClass([
|
|
@@ -6345,12 +6353,12 @@ __decorateClass([
|
|
|
6345
6353
|
IsString35({ message: "Role name must be a string." })
|
|
6346
6354
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
6347
6355
|
__decorateClass([
|
|
6348
|
-
|
|
6356
|
+
IsOptional36(),
|
|
6349
6357
|
IsString35({ message: "Role description must be a string." })
|
|
6350
6358
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6351
6359
|
|
|
6352
6360
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
6353
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as
|
|
6361
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional37, IsString as IsString36 } from "class-validator";
|
|
6354
6362
|
var UpdateAdminRoleDto = class {
|
|
6355
6363
|
};
|
|
6356
6364
|
__decorateClass([
|
|
@@ -6358,11 +6366,11 @@ __decorateClass([
|
|
|
6358
6366
|
IsString36({ message: "Role name must be a string." })
|
|
6359
6367
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
6360
6368
|
__decorateClass([
|
|
6361
|
-
|
|
6369
|
+
IsOptional37(),
|
|
6362
6370
|
IsString36({ message: "Role description must be a string." })
|
|
6363
6371
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6364
6372
|
__decorateClass([
|
|
6365
|
-
|
|
6373
|
+
IsOptional37(),
|
|
6366
6374
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
6367
6375
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
6368
6376
|
|
|
@@ -6413,7 +6421,7 @@ import {
|
|
|
6413
6421
|
ValidateIf as ValidateIf7,
|
|
6414
6422
|
ValidateNested as ValidateNested5
|
|
6415
6423
|
} from "class-validator";
|
|
6416
|
-
import { Type as
|
|
6424
|
+
import { Type as Type11 } from "class-transformer";
|
|
6417
6425
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
6418
6426
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
6419
6427
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -6452,14 +6460,14 @@ __decorateClass([
|
|
|
6452
6460
|
IsArray13({ message: "Existing candidates should be an array." }),
|
|
6453
6461
|
ArrayNotEmpty8({ message: "Please select at least one candidate." }),
|
|
6454
6462
|
ValidateNested5({ each: true }),
|
|
6455
|
-
|
|
6463
|
+
Type11(() => ExistingCandidateDto)
|
|
6456
6464
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
6457
6465
|
__decorateClass([
|
|
6458
6466
|
ValidateIf7((o) => o.newCandidates?.length > 0),
|
|
6459
6467
|
IsArray13({ message: "New candidates should be an array." }),
|
|
6460
6468
|
ArrayNotEmpty8({ message: "Please add at least one candidate." }),
|
|
6461
6469
|
ValidateNested5({ each: true }),
|
|
6462
|
-
|
|
6470
|
+
Type11(() => NewCandidateDto)
|
|
6463
6471
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
6464
6472
|
var InterviewInviteDto = class {
|
|
6465
6473
|
};
|
|
@@ -6468,7 +6476,7 @@ __decorateClass([
|
|
|
6468
6476
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
6469
6477
|
__decorateClass([
|
|
6470
6478
|
ValidateNested5({ each: true }),
|
|
6471
|
-
|
|
6479
|
+
Type11(() => CandidatesDto)
|
|
6472
6480
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
6473
6481
|
|
|
6474
6482
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
@@ -6561,17 +6569,17 @@ var CONTRACT_PATTERN = {
|
|
|
6561
6569
|
|
|
6562
6570
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6563
6571
|
import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber9 } from "class-validator";
|
|
6564
|
-
import { Type as
|
|
6572
|
+
import { Type as Type12 } from "class-transformer";
|
|
6565
6573
|
var SignContractForClientDto = class {
|
|
6566
6574
|
};
|
|
6567
6575
|
__decorateClass([
|
|
6568
6576
|
IsNotEmpty61({ message: "Job Id is required." }),
|
|
6569
|
-
|
|
6577
|
+
Type12(() => Number),
|
|
6570
6578
|
IsNumber9({}, { message: "Job ID must be a number." })
|
|
6571
6579
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6572
6580
|
__decorateClass([
|
|
6573
6581
|
IsNotEmpty61({ message: "Freelancer ID is required." }),
|
|
6574
|
-
|
|
6582
|
+
Type12(() => Number),
|
|
6575
6583
|
IsNumber9({}, { message: "Freelancer ID must be a number." })
|
|
6576
6584
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6577
6585
|
__decorateClass([
|
|
@@ -6581,17 +6589,17 @@ __decorateClass([
|
|
|
6581
6589
|
|
|
6582
6590
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6583
6591
|
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber10 } from "class-validator";
|
|
6584
|
-
import { Type as
|
|
6592
|
+
import { Type as Type13 } from "class-transformer";
|
|
6585
6593
|
var SignContractForFreelancerDto = class {
|
|
6586
6594
|
};
|
|
6587
6595
|
__decorateClass([
|
|
6588
6596
|
IsNotEmpty62({ message: "Job Id is required." }),
|
|
6589
|
-
|
|
6597
|
+
Type13(() => Number),
|
|
6590
6598
|
IsNumber10({}, { message: "Job ID must be a number." })
|
|
6591
6599
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6592
6600
|
__decorateClass([
|
|
6593
6601
|
IsNotEmpty62({ message: "Client ID is required." }),
|
|
6594
|
-
|
|
6602
|
+
Type13(() => Number),
|
|
6595
6603
|
IsNumber10({}, { message: "Client ID must be a number." })
|
|
6596
6604
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6597
6605
|
__decorateClass([
|
|
@@ -6645,7 +6653,7 @@ import {
|
|
|
6645
6653
|
IsDateString as IsDateString6,
|
|
6646
6654
|
IsInt as IsInt8,
|
|
6647
6655
|
IsNotEmpty as IsNotEmpty64,
|
|
6648
|
-
IsOptional as
|
|
6656
|
+
IsOptional as IsOptional40,
|
|
6649
6657
|
IsString as IsString42,
|
|
6650
6658
|
Matches as Matches13,
|
|
6651
6659
|
IsNumber as IsNumber11
|
|
@@ -6677,19 +6685,19 @@ __decorateClass([
|
|
|
6677
6685
|
})
|
|
6678
6686
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6679
6687
|
__decorateClass([
|
|
6680
|
-
|
|
6688
|
+
IsOptional40(),
|
|
6681
6689
|
IsInt8()
|
|
6682
6690
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6683
6691
|
__decorateClass([
|
|
6684
|
-
|
|
6692
|
+
IsOptional40(),
|
|
6685
6693
|
IsString42()
|
|
6686
6694
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6687
6695
|
__decorateClass([
|
|
6688
|
-
|
|
6696
|
+
IsOptional40(),
|
|
6689
6697
|
IsString42()
|
|
6690
6698
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6691
6699
|
__decorateClass([
|
|
6692
|
-
|
|
6700
|
+
IsOptional40(),
|
|
6693
6701
|
IsString42()
|
|
6694
6702
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6695
6703
|
__decorateClass([
|
|
@@ -6701,7 +6709,7 @@ import {
|
|
|
6701
6709
|
IsDateString as IsDateString7,
|
|
6702
6710
|
IsInt as IsInt9,
|
|
6703
6711
|
IsNotEmpty as IsNotEmpty65,
|
|
6704
|
-
IsOptional as
|
|
6712
|
+
IsOptional as IsOptional41,
|
|
6705
6713
|
IsString as IsString43,
|
|
6706
6714
|
Matches as Matches14,
|
|
6707
6715
|
IsNumber as IsNumber12
|
|
@@ -6733,19 +6741,19 @@ __decorateClass([
|
|
|
6733
6741
|
})
|
|
6734
6742
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6735
6743
|
__decorateClass([
|
|
6736
|
-
|
|
6744
|
+
IsOptional41(),
|
|
6737
6745
|
IsInt9()
|
|
6738
6746
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6739
6747
|
__decorateClass([
|
|
6740
|
-
|
|
6748
|
+
IsOptional41(),
|
|
6741
6749
|
IsString43()
|
|
6742
6750
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6743
6751
|
__decorateClass([
|
|
6744
|
-
|
|
6752
|
+
IsOptional41(),
|
|
6745
6753
|
IsString43()
|
|
6746
6754
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6747
6755
|
__decorateClass([
|
|
6748
|
-
|
|
6756
|
+
IsOptional41(),
|
|
6749
6757
|
IsString43()
|
|
6750
6758
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6751
6759
|
__decorateClass([
|