@experts_hub/shared 1.0.661 → 1.0.663
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1438 -1417
- package/dist/index.mjs +688 -662
- package/dist/modules/job/pattern/pattern.d.ts +1 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6344,16 +6344,20 @@ __decorateClass([
|
|
|
6344
6344
|
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
6345
6345
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
6346
6346
|
|
|
6347
|
-
// src/modules/user/client-profile/dto/
|
|
6347
|
+
// src/modules/user/client-profile/dto/request-password-change-otp.dto.ts
|
|
6348
6348
|
import {
|
|
6349
6349
|
IsString as IsString18,
|
|
6350
6350
|
IsNotEmpty as IsNotEmpty38,
|
|
6351
|
-
Matches as Matches8,
|
|
6352
6351
|
MinLength as MinLength8,
|
|
6353
|
-
MaxLength as MaxLength6
|
|
6352
|
+
MaxLength as MaxLength6,
|
|
6353
|
+
Matches as Matches8
|
|
6354
6354
|
} from "class-validator";
|
|
6355
|
-
var
|
|
6355
|
+
var RequestPasswordChangeOtpDto = class {
|
|
6356
6356
|
};
|
|
6357
|
+
__decorateClass([
|
|
6358
|
+
IsNotEmpty38({ message: "Current password is required" }),
|
|
6359
|
+
IsString18()
|
|
6360
|
+
], RequestPasswordChangeOtpDto.prototype, "currentPassword", 2);
|
|
6357
6361
|
__decorateClass([
|
|
6358
6362
|
IsNotEmpty38({ message: "New password is required" }),
|
|
6359
6363
|
IsString18(),
|
|
@@ -6362,11 +6366,31 @@ __decorateClass([
|
|
|
6362
6366
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6363
6367
|
message: "Password must include letters, numbers, and special characters"
|
|
6364
6368
|
})
|
|
6369
|
+
], RequestPasswordChangeOtpDto.prototype, "newPassword", 2);
|
|
6370
|
+
|
|
6371
|
+
// src/modules/user/client-profile/dto/verify-password-change-otp.dto.ts
|
|
6372
|
+
import {
|
|
6373
|
+
IsString as IsString19,
|
|
6374
|
+
IsNotEmpty as IsNotEmpty39,
|
|
6375
|
+
Matches as Matches9,
|
|
6376
|
+
MinLength as MinLength9,
|
|
6377
|
+
MaxLength as MaxLength7
|
|
6378
|
+
} from "class-validator";
|
|
6379
|
+
var VerifyPasswordChangeOtpDto = class {
|
|
6380
|
+
};
|
|
6381
|
+
__decorateClass([
|
|
6382
|
+
IsNotEmpty39({ message: "New password is required" }),
|
|
6383
|
+
IsString19(),
|
|
6384
|
+
MinLength9(8, { message: "Password must be at least 8 characters long" }),
|
|
6385
|
+
MaxLength7(32, { message: "Password must not exceed 32 characters" }),
|
|
6386
|
+
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6387
|
+
message: "Password must include letters, numbers, and special characters"
|
|
6388
|
+
})
|
|
6365
6389
|
], VerifyPasswordChangeOtpDto.prototype, "newPassword", 2);
|
|
6366
6390
|
__decorateClass([
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6391
|
+
IsNotEmpty39({ message: "OTP is required" }),
|
|
6392
|
+
IsString19(),
|
|
6393
|
+
Matches9(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
6370
6394
|
], VerifyPasswordChangeOtpDto.prototype, "otp", 2);
|
|
6371
6395
|
|
|
6372
6396
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -6383,23 +6407,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
6383
6407
|
|
|
6384
6408
|
// src/modules/question/dto/create-question.dto.ts
|
|
6385
6409
|
import {
|
|
6386
|
-
IsNotEmpty as
|
|
6410
|
+
IsNotEmpty as IsNotEmpty40,
|
|
6387
6411
|
IsOptional as IsOptional16,
|
|
6388
6412
|
IsBoolean as IsBoolean2
|
|
6389
6413
|
} from "class-validator";
|
|
6390
6414
|
var CreateQuestionDto = class {
|
|
6391
6415
|
};
|
|
6392
6416
|
__decorateClass([
|
|
6393
|
-
|
|
6417
|
+
IsNotEmpty40({ message: "Please enter unique id." })
|
|
6394
6418
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
6395
6419
|
__decorateClass([
|
|
6396
|
-
|
|
6420
|
+
IsNotEmpty40({ message: "Please enter question." })
|
|
6397
6421
|
], CreateQuestionDto.prototype, "question", 2);
|
|
6398
6422
|
__decorateClass([
|
|
6399
|
-
|
|
6423
|
+
IsNotEmpty40({ message: "Please enter for whom the question is." })
|
|
6400
6424
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
6401
6425
|
__decorateClass([
|
|
6402
|
-
|
|
6426
|
+
IsNotEmpty40({ message: "Please enter options." })
|
|
6403
6427
|
], CreateQuestionDto.prototype, "options", 2);
|
|
6404
6428
|
__decorateClass([
|
|
6405
6429
|
IsOptional16(),
|
|
@@ -6407,42 +6431,42 @@ __decorateClass([
|
|
|
6407
6431
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
6408
6432
|
|
|
6409
6433
|
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
6410
|
-
import { IsNotEmpty as
|
|
6434
|
+
import { IsNotEmpty as IsNotEmpty41, IsString as IsString20, IsOptional as IsOptional17, IsObject as IsObject2 } from "class-validator";
|
|
6411
6435
|
var RecordAssessmentAnswerDto = class {
|
|
6412
6436
|
};
|
|
6413
6437
|
__decorateClass([
|
|
6414
|
-
|
|
6415
|
-
|
|
6438
|
+
IsNotEmpty41({ message: "Question ID is required" }),
|
|
6439
|
+
IsString20({ message: "Question ID must be a string" })
|
|
6416
6440
|
], RecordAssessmentAnswerDto.prototype, "questionId", 2);
|
|
6417
6441
|
__decorateClass([
|
|
6418
|
-
|
|
6442
|
+
IsNotEmpty41({ message: "Answer is required" }),
|
|
6419
6443
|
IsObject2()
|
|
6420
6444
|
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
6421
6445
|
__decorateClass([
|
|
6422
6446
|
IsOptional17(),
|
|
6423
|
-
|
|
6447
|
+
IsString20()
|
|
6424
6448
|
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
6425
6449
|
__decorateClass([
|
|
6426
6450
|
IsOptional17(),
|
|
6427
|
-
|
|
6451
|
+
IsString20()
|
|
6428
6452
|
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
6429
6453
|
|
|
6430
6454
|
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
6431
|
-
import { IsNotEmpty as
|
|
6455
|
+
import { IsNotEmpty as IsNotEmpty42, IsArray, IsObject as IsObject3, IsOptional as IsOptional18, IsString as IsString21 } from "class-validator";
|
|
6432
6456
|
var RecordAssessmentAnswersDto = class {
|
|
6433
6457
|
};
|
|
6434
6458
|
__decorateClass([
|
|
6435
|
-
|
|
6459
|
+
IsNotEmpty42({ message: "Answers array is required" }),
|
|
6436
6460
|
IsArray({ message: "Answers must be an array" }),
|
|
6437
6461
|
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
6438
6462
|
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
6439
6463
|
__decorateClass([
|
|
6440
6464
|
IsOptional18(),
|
|
6441
|
-
|
|
6465
|
+
IsString21()
|
|
6442
6466
|
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
6443
6467
|
__decorateClass([
|
|
6444
6468
|
IsOptional18(),
|
|
6445
|
-
|
|
6469
|
+
IsString21()
|
|
6446
6470
|
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
6447
6471
|
|
|
6448
6472
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -6490,7 +6514,8 @@ var JOB_PATTERN = {
|
|
|
6490
6514
|
fetchJobByIdForTimesheet: "fetch.job.by.id.for.timesheet",
|
|
6491
6515
|
jobDataSetup: "job.data.Setup",
|
|
6492
6516
|
fetchJobsForComparison: "fetch.jobs.for.comparison",
|
|
6493
|
-
fetchJobSkillDropdownForClient: "fetch.job.skill.dropdown.for.client"
|
|
6517
|
+
fetchJobSkillDropdownForClient: "fetch.job.skill.dropdown.for.client",
|
|
6518
|
+
createJobDealBreakers: "create.job.deal.breakers"
|
|
6494
6519
|
};
|
|
6495
6520
|
var JOB_APPLICATION_PATTERN = {
|
|
6496
6521
|
fetchJobApplicationCountAsPerStatusByJobId: "fetch.job.application.count.as.per.status.by.job.id",
|
|
@@ -6503,8 +6528,8 @@ var JOB_APPLICATION_PATTERN = {
|
|
|
6503
6528
|
|
|
6504
6529
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
6505
6530
|
import {
|
|
6506
|
-
IsString as
|
|
6507
|
-
IsNotEmpty as
|
|
6531
|
+
IsString as IsString22,
|
|
6532
|
+
IsNotEmpty as IsNotEmpty43,
|
|
6508
6533
|
IsArray as IsArray2,
|
|
6509
6534
|
ArrayNotEmpty,
|
|
6510
6535
|
IsNumber as IsNumber3,
|
|
@@ -6512,7 +6537,7 @@ import {
|
|
|
6512
6537
|
IsEnum as IsEnum15,
|
|
6513
6538
|
Min,
|
|
6514
6539
|
ValidateIf as ValidateIf3,
|
|
6515
|
-
MaxLength as
|
|
6540
|
+
MaxLength as MaxLength8,
|
|
6516
6541
|
Max
|
|
6517
6542
|
} from "class-validator";
|
|
6518
6543
|
import { Type } from "class-transformer";
|
|
@@ -6541,32 +6566,32 @@ __decorateClass([
|
|
|
6541
6566
|
Type(() => Boolean)
|
|
6542
6567
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
6543
6568
|
__decorateClass([
|
|
6544
|
-
|
|
6545
|
-
|
|
6569
|
+
IsNotEmpty43({ message: "Please enter job role" }),
|
|
6570
|
+
IsString22({ message: "Job role must be a string" })
|
|
6546
6571
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
6547
6572
|
__decorateClass([
|
|
6548
6573
|
IsOptional19()
|
|
6549
6574
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
6550
6575
|
__decorateClass([
|
|
6551
6576
|
IsOptional19(),
|
|
6552
|
-
|
|
6577
|
+
IsString22({ message: "Project name must be a string" })
|
|
6553
6578
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
6554
6579
|
__decorateClass([
|
|
6555
6580
|
IsOptional19(),
|
|
6556
|
-
|
|
6581
|
+
IsString22({ message: "Note must be a string" })
|
|
6557
6582
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
6558
6583
|
__decorateClass([
|
|
6559
6584
|
ValidateIf3((o) => !o.isDraft),
|
|
6560
6585
|
IsOptional19(),
|
|
6561
6586
|
IsArray2({ message: "Skills must be an array" }),
|
|
6562
6587
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
6563
|
-
|
|
6588
|
+
IsString22({ each: true, message: "Each skill must be a string" }),
|
|
6564
6589
|
Type(() => String)
|
|
6565
6590
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
6566
6591
|
__decorateClass([
|
|
6567
6592
|
ValidateIf3((o) => !o.isDraft),
|
|
6568
6593
|
IsArray2({ message: "Good to have skills must be an array" }),
|
|
6569
|
-
|
|
6594
|
+
IsString22({ each: true, message: "Each skill must be a string" }),
|
|
6570
6595
|
IsOptional19(),
|
|
6571
6596
|
Type(() => String)
|
|
6572
6597
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6609,7 +6634,7 @@ __decorateClass([
|
|
|
6609
6634
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
6610
6635
|
__decorateClass([
|
|
6611
6636
|
ValidateIf3((o) => !o.isDraft),
|
|
6612
|
-
|
|
6637
|
+
IsString22({ message: "Currency must be a string" })
|
|
6613
6638
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
6614
6639
|
__decorateClass([
|
|
6615
6640
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -6650,41 +6675,41 @@ __decorateClass([
|
|
|
6650
6675
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
6651
6676
|
__decorateClass([
|
|
6652
6677
|
ValidateIf3((o) => !o.isDraft),
|
|
6653
|
-
|
|
6678
|
+
IsString22({ message: "Candidate communication skills must be a string" }),
|
|
6654
6679
|
IsOptional19()
|
|
6655
6680
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6656
6681
|
__decorateClass([
|
|
6657
6682
|
ValidateIf3((o) => !o.isDraft),
|
|
6658
|
-
|
|
6659
|
-
|
|
6683
|
+
IsNotEmpty43({ message: "Please enter the academic qualification" }),
|
|
6684
|
+
IsString22({ message: "Academic qualification must be a string" })
|
|
6660
6685
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
6661
6686
|
__decorateClass([
|
|
6662
6687
|
ValidateIf3((o) => !o.isDraft),
|
|
6663
|
-
|
|
6664
|
-
|
|
6688
|
+
IsNotEmpty43({ message: "Please enter the years of experience" }),
|
|
6689
|
+
IsString22({ message: "Years of experience must be a string" })
|
|
6665
6690
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
6666
6691
|
__decorateClass([
|
|
6667
6692
|
IsOptional19(),
|
|
6668
|
-
|
|
6693
|
+
IsString22({ message: "Business industry must be a string" })
|
|
6669
6694
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
6670
6695
|
__decorateClass([
|
|
6671
6696
|
IsOptional19(),
|
|
6672
|
-
|
|
6673
|
-
|
|
6697
|
+
IsString22({ message: "Additional comment must be a string" }),
|
|
6698
|
+
MaxLength8(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6674
6699
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
6675
6700
|
|
|
6676
6701
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
6677
|
-
import { IsOptional as IsOptional20, IsString as
|
|
6702
|
+
import { IsOptional as IsOptional20, IsString as IsString23, MaxLength as MaxLength9 } from "class-validator";
|
|
6678
6703
|
var JobAdditionalCommentDto = class {
|
|
6679
6704
|
};
|
|
6680
6705
|
__decorateClass([
|
|
6681
6706
|
IsOptional20(),
|
|
6682
|
-
|
|
6683
|
-
|
|
6707
|
+
IsString23({ message: "Additional comment must be a string" }),
|
|
6708
|
+
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6684
6709
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
6685
6710
|
|
|
6686
6711
|
// src/modules/job/dto/job-description.dto.ts
|
|
6687
|
-
import { IsString as
|
|
6712
|
+
import { IsString as IsString24, IsNotEmpty as IsNotEmpty44, MaxLength as MaxLength10, IsOptional as IsOptional21 } from "class-validator";
|
|
6688
6713
|
import { Type as Type2 } from "class-transformer";
|
|
6689
6714
|
var JobDescriptionDto = class {
|
|
6690
6715
|
constructor() {
|
|
@@ -6696,15 +6721,15 @@ __decorateClass([
|
|
|
6696
6721
|
Type2(() => Boolean)
|
|
6697
6722
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
6698
6723
|
__decorateClass([
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6724
|
+
IsNotEmpty44({ message: "Please enter job description" }),
|
|
6725
|
+
IsString24({ message: "Description must be a string" }),
|
|
6726
|
+
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6702
6727
|
], JobDescriptionDto.prototype, "description", 2);
|
|
6703
6728
|
|
|
6704
6729
|
// src/modules/job/dto/create-job-via-ai.dto..ts
|
|
6705
6730
|
import {
|
|
6706
|
-
IsString as
|
|
6707
|
-
IsNotEmpty as
|
|
6731
|
+
IsString as IsString25,
|
|
6732
|
+
IsNotEmpty as IsNotEmpty45,
|
|
6708
6733
|
IsArray as IsArray3,
|
|
6709
6734
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
6710
6735
|
IsNumber as IsNumber4,
|
|
@@ -6712,7 +6737,7 @@ import {
|
|
|
6712
6737
|
IsEnum as IsEnum16,
|
|
6713
6738
|
Min as Min2,
|
|
6714
6739
|
ValidateIf as ValidateIf4,
|
|
6715
|
-
MaxLength as
|
|
6740
|
+
MaxLength as MaxLength11,
|
|
6716
6741
|
Max as Max2
|
|
6717
6742
|
} from "class-validator";
|
|
6718
6743
|
import { Type as Type3 } from "class-transformer";
|
|
@@ -6752,18 +6777,18 @@ __decorateClass([
|
|
|
6752
6777
|
], JobLocationDto.prototype, "cityId", 2);
|
|
6753
6778
|
__decorateClass([
|
|
6754
6779
|
IsOptional22(),
|
|
6755
|
-
|
|
6756
|
-
|
|
6780
|
+
IsString25({ message: "Country name must be a string" }),
|
|
6781
|
+
MaxLength11(255, { message: "Country name must not exceed 255 characters" })
|
|
6757
6782
|
], JobLocationDto.prototype, "countryName", 2);
|
|
6758
6783
|
__decorateClass([
|
|
6759
6784
|
IsOptional22(),
|
|
6760
|
-
|
|
6761
|
-
|
|
6785
|
+
IsString25({ message: "State name must be a string" }),
|
|
6786
|
+
MaxLength11(255, { message: "State name must not exceed 255 characters" })
|
|
6762
6787
|
], JobLocationDto.prototype, "stateName", 2);
|
|
6763
6788
|
__decorateClass([
|
|
6764
6789
|
IsOptional22(),
|
|
6765
|
-
|
|
6766
|
-
|
|
6790
|
+
IsString25({ message: "City name must be a string" }),
|
|
6791
|
+
MaxLength11(255, { message: "City name must not exceed 255 characters" })
|
|
6767
6792
|
], JobLocationDto.prototype, "cityName", 2);
|
|
6768
6793
|
var CreateJobViaAIDto = class {
|
|
6769
6794
|
constructor() {
|
|
@@ -6779,32 +6804,32 @@ __decorateClass([
|
|
|
6779
6804
|
Type3(() => Boolean)
|
|
6780
6805
|
], CreateJobViaAIDto.prototype, "isDraft", 2);
|
|
6781
6806
|
__decorateClass([
|
|
6782
|
-
|
|
6783
|
-
|
|
6807
|
+
IsNotEmpty45({ message: "Please enter job role" }),
|
|
6808
|
+
IsString25({ message: "Job role must be a string" })
|
|
6784
6809
|
], CreateJobViaAIDto.prototype, "jobRole", 2);
|
|
6785
6810
|
__decorateClass([
|
|
6786
6811
|
IsOptional22()
|
|
6787
6812
|
], CreateJobViaAIDto.prototype, "jobRoleCanonicalName", 2);
|
|
6788
6813
|
__decorateClass([
|
|
6789
6814
|
IsOptional22(),
|
|
6790
|
-
|
|
6815
|
+
IsString25({ message: "Project name must be a string" })
|
|
6791
6816
|
], CreateJobViaAIDto.prototype, "projectName", 2);
|
|
6792
6817
|
__decorateClass([
|
|
6793
6818
|
IsOptional22(),
|
|
6794
|
-
|
|
6819
|
+
IsString25({ message: "Note must be a string" })
|
|
6795
6820
|
], CreateJobViaAIDto.prototype, "note", 2);
|
|
6796
6821
|
__decorateClass([
|
|
6797
6822
|
ValidateIf4((o) => !o.isDraft),
|
|
6798
6823
|
IsOptional22(),
|
|
6799
6824
|
IsArray3({ message: "Skills must be an array" }),
|
|
6800
6825
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
6801
|
-
|
|
6826
|
+
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
6802
6827
|
Type3(() => String)
|
|
6803
6828
|
], CreateJobViaAIDto.prototype, "skills", 2);
|
|
6804
6829
|
__decorateClass([
|
|
6805
6830
|
ValidateIf4((o) => !o.isDraft),
|
|
6806
6831
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
6807
|
-
|
|
6832
|
+
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
6808
6833
|
IsOptional22(),
|
|
6809
6834
|
Type3(() => String)
|
|
6810
6835
|
], CreateJobViaAIDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6836,7 +6861,7 @@ __decorateClass([
|
|
|
6836
6861
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
6837
6862
|
__decorateClass([
|
|
6838
6863
|
ValidateIf4((o) => !o.isDraft),
|
|
6839
|
-
|
|
6864
|
+
IsString25({ message: "Currency must be a string" })
|
|
6840
6865
|
], CreateJobViaAIDto.prototype, "currency", 2);
|
|
6841
6866
|
__decorateClass([
|
|
6842
6867
|
ValidateIf4((o) => !o.isDraft),
|
|
@@ -6895,26 +6920,26 @@ __decorateClass([
|
|
|
6895
6920
|
], CreateJobViaAIDto.prototype, "numberOfHours", 2);
|
|
6896
6921
|
__decorateClass([
|
|
6897
6922
|
ValidateIf4((o) => !o.isDraft),
|
|
6898
|
-
|
|
6923
|
+
IsString25({ message: "Candidate communication skills must be a string" }),
|
|
6899
6924
|
IsOptional22()
|
|
6900
6925
|
], CreateJobViaAIDto.prototype, "candidateCommunicationSkills", 2);
|
|
6901
6926
|
__decorateClass([
|
|
6902
6927
|
IsOptional22(),
|
|
6903
|
-
|
|
6928
|
+
IsString25({ message: "Academic qualification must be a string" })
|
|
6904
6929
|
], CreateJobViaAIDto.prototype, "academicQualification", 2);
|
|
6905
6930
|
__decorateClass([
|
|
6906
6931
|
ValidateIf4((o) => !o.isDraft),
|
|
6907
|
-
|
|
6908
|
-
|
|
6932
|
+
IsNotEmpty45({ message: "Please enter the years of experience" }),
|
|
6933
|
+
IsString25({ message: "Years of experience must be a string" })
|
|
6909
6934
|
], CreateJobViaAIDto.prototype, "yearsOfExperienceFrom", 2);
|
|
6910
6935
|
__decorateClass([
|
|
6911
6936
|
ValidateIf4((o) => !o.isDraft),
|
|
6912
|
-
|
|
6913
|
-
|
|
6937
|
+
IsNotEmpty45({ message: "Please enter the years of experience upto" }),
|
|
6938
|
+
IsString25({ message: "Years of experience must be a string" })
|
|
6914
6939
|
], CreateJobViaAIDto.prototype, "yearsOfExperienceTo", 2);
|
|
6915
6940
|
__decorateClass([
|
|
6916
6941
|
IsOptional22(),
|
|
6917
|
-
|
|
6942
|
+
IsString25({ message: "Business industry must be a string" })
|
|
6918
6943
|
], CreateJobViaAIDto.prototype, "businessIndustry", 2);
|
|
6919
6944
|
__decorateClass([
|
|
6920
6945
|
IsOptional22(),
|
|
@@ -6926,17 +6951,17 @@ __decorateClass([
|
|
|
6926
6951
|
], CreateJobViaAIDto.prototype, "stepCompleted", 2);
|
|
6927
6952
|
__decorateClass([
|
|
6928
6953
|
IsOptional22(),
|
|
6929
|
-
|
|
6930
|
-
|
|
6954
|
+
IsString25({ message: "Additional comment must be a string" }),
|
|
6955
|
+
MaxLength11(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6931
6956
|
], CreateJobViaAIDto.prototype, "additionalComment", 2);
|
|
6932
6957
|
__decorateClass([
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6958
|
+
IsNotEmpty45({ message: "Please enter job description" }),
|
|
6959
|
+
IsString25({ message: "Description must be a string" }),
|
|
6960
|
+
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6936
6961
|
], CreateJobViaAIDto.prototype, "description", 2);
|
|
6937
6962
|
|
|
6938
6963
|
// src/modules/job/dto/job-status.dto.ts
|
|
6939
|
-
import { IsEnum as IsEnum17, IsNotEmpty as
|
|
6964
|
+
import { IsEnum as IsEnum17, IsNotEmpty as IsNotEmpty46 } from "class-validator";
|
|
6940
6965
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
6941
6966
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
6942
6967
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -6949,7 +6974,7 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
6949
6974
|
var JobStatusDto = class {
|
|
6950
6975
|
};
|
|
6951
6976
|
__decorateClass([
|
|
6952
|
-
|
|
6977
|
+
IsNotEmpty46({ message: "Please provide a job status" }),
|
|
6953
6978
|
IsEnum17(JobStatus, {
|
|
6954
6979
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
6955
6980
|
})
|
|
@@ -6967,8 +6992,8 @@ __decorateClass([
|
|
|
6967
6992
|
|
|
6968
6993
|
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
6969
6994
|
import {
|
|
6970
|
-
IsString as
|
|
6971
|
-
IsNotEmpty as
|
|
6995
|
+
IsString as IsString26,
|
|
6996
|
+
IsNotEmpty as IsNotEmpty47,
|
|
6972
6997
|
IsArray as IsArray4,
|
|
6973
6998
|
ArrayNotEmpty as ArrayNotEmpty3,
|
|
6974
6999
|
IsNumber as IsNumber5,
|
|
@@ -6976,7 +7001,7 @@ import {
|
|
|
6976
7001
|
IsEnum as IsEnum18,
|
|
6977
7002
|
Min as Min3,
|
|
6978
7003
|
ValidateIf as ValidateIf5,
|
|
6979
|
-
MaxLength as
|
|
7004
|
+
MaxLength as MaxLength12,
|
|
6980
7005
|
Max as Max3
|
|
6981
7006
|
} from "class-validator";
|
|
6982
7007
|
import { Type as Type4 } from "class-transformer";
|
|
@@ -7021,18 +7046,18 @@ __decorateClass([
|
|
|
7021
7046
|
], JobLocationDto2.prototype, "cityId", 2);
|
|
7022
7047
|
__decorateClass([
|
|
7023
7048
|
IsOptional23(),
|
|
7024
|
-
|
|
7025
|
-
|
|
7049
|
+
IsString26({ message: "Country name must be a string" }),
|
|
7050
|
+
MaxLength12(255, { message: "Country name must not exceed 255 characters" })
|
|
7026
7051
|
], JobLocationDto2.prototype, "countryName", 2);
|
|
7027
7052
|
__decorateClass([
|
|
7028
7053
|
IsOptional23(),
|
|
7029
|
-
|
|
7030
|
-
|
|
7054
|
+
IsString26({ message: "State name must be a string" }),
|
|
7055
|
+
MaxLength12(255, { message: "State name must not exceed 255 characters" })
|
|
7031
7056
|
], JobLocationDto2.prototype, "stateName", 2);
|
|
7032
7057
|
__decorateClass([
|
|
7033
7058
|
IsOptional23(),
|
|
7034
|
-
|
|
7035
|
-
|
|
7059
|
+
IsString26({ message: "City name must be a string" }),
|
|
7060
|
+
MaxLength12(255, { message: "City name must not exceed 255 characters" })
|
|
7036
7061
|
], JobLocationDto2.prototype, "cityName", 2);
|
|
7037
7062
|
var JobBasicInformationV2Dto = class {
|
|
7038
7063
|
constructor() {
|
|
@@ -7044,32 +7069,32 @@ __decorateClass([
|
|
|
7044
7069
|
Type4(() => Boolean)
|
|
7045
7070
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7046
7071
|
__decorateClass([
|
|
7047
|
-
|
|
7048
|
-
|
|
7072
|
+
IsNotEmpty47({ message: "Please enter job role" }),
|
|
7073
|
+
IsString26({ message: "Job role must be a string" })
|
|
7049
7074
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7050
7075
|
__decorateClass([
|
|
7051
7076
|
IsOptional23()
|
|
7052
7077
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7053
7078
|
__decorateClass([
|
|
7054
7079
|
IsOptional23(),
|
|
7055
|
-
|
|
7080
|
+
IsString26({ message: "Project name must be a string" })
|
|
7056
7081
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7057
7082
|
__decorateClass([
|
|
7058
7083
|
IsOptional23(),
|
|
7059
|
-
|
|
7084
|
+
IsString26({ message: "Note must be a string" })
|
|
7060
7085
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
7061
7086
|
__decorateClass([
|
|
7062
7087
|
ValidateIf5((o) => !o.isDraft),
|
|
7063
7088
|
IsOptional23(),
|
|
7064
7089
|
IsArray4({ message: "Skills must be an array" }),
|
|
7065
7090
|
ArrayNotEmpty3({ message: "Please select at least one skill" }),
|
|
7066
|
-
|
|
7091
|
+
IsString26({ each: true, message: "Each skill must be a string" }),
|
|
7067
7092
|
Type4(() => String)
|
|
7068
7093
|
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7069
7094
|
__decorateClass([
|
|
7070
7095
|
ValidateIf5((o) => !o.isDraft),
|
|
7071
7096
|
IsArray4({ message: "Good to have skills must be an array" }),
|
|
7072
|
-
|
|
7097
|
+
IsString26({ each: true, message: "Each skill must be a string" }),
|
|
7073
7098
|
IsOptional23(),
|
|
7074
7099
|
Type4(() => String)
|
|
7075
7100
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -7107,7 +7132,7 @@ __decorateClass([
|
|
|
7107
7132
|
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
7108
7133
|
__decorateClass([
|
|
7109
7134
|
ValidateIf5((o) => !o.isDraft),
|
|
7110
|
-
|
|
7135
|
+
IsString26({ message: "Currency must be a string" })
|
|
7111
7136
|
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7112
7137
|
__decorateClass([
|
|
7113
7138
|
ValidateIf5((o) => !o.isDraft),
|
|
@@ -7166,26 +7191,26 @@ __decorateClass([
|
|
|
7166
7191
|
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7167
7192
|
__decorateClass([
|
|
7168
7193
|
ValidateIf5((o) => !o.isDraft),
|
|
7169
|
-
|
|
7194
|
+
IsString26({ message: "Candidate communication skills must be a string" }),
|
|
7170
7195
|
IsOptional23()
|
|
7171
7196
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7172
7197
|
__decorateClass([
|
|
7173
7198
|
IsOptional23(),
|
|
7174
|
-
|
|
7199
|
+
IsString26({ message: "Academic qualification must be a string" })
|
|
7175
7200
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7176
7201
|
__decorateClass([
|
|
7177
7202
|
ValidateIf5((o) => !o.isDraft),
|
|
7178
|
-
|
|
7179
|
-
|
|
7203
|
+
IsNotEmpty47({ message: "Please enter the years of experience" }),
|
|
7204
|
+
IsString26({ message: "Years of experience must be a string" })
|
|
7180
7205
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7181
7206
|
__decorateClass([
|
|
7182
7207
|
ValidateIf5((o) => !o.isDraft),
|
|
7183
|
-
|
|
7184
|
-
|
|
7208
|
+
IsNotEmpty47({ message: "Please enter the years of experience upto" }),
|
|
7209
|
+
IsString26({ message: "Years of experience must be a string" })
|
|
7185
7210
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7186
7211
|
__decorateClass([
|
|
7187
7212
|
IsOptional23(),
|
|
7188
|
-
|
|
7213
|
+
IsString26({ message: "Business industry must be a string" })
|
|
7189
7214
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7190
7215
|
__decorateClass([
|
|
7191
7216
|
IsOptional23(),
|
|
@@ -7197,26 +7222,26 @@ __decorateClass([
|
|
|
7197
7222
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
7198
7223
|
__decorateClass([
|
|
7199
7224
|
IsOptional23(),
|
|
7200
|
-
|
|
7201
|
-
|
|
7225
|
+
IsString26({ message: "Additional comment must be a string" }),
|
|
7226
|
+
MaxLength12(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7202
7227
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7203
7228
|
|
|
7204
7229
|
// src/modules/job/dto/close-job.dto.ts
|
|
7205
|
-
import { IsOptional as IsOptional24, IsString as
|
|
7230
|
+
import { IsOptional as IsOptional24, IsString as IsString27 } from "class-validator";
|
|
7206
7231
|
var CloseJobDto = class {
|
|
7207
7232
|
};
|
|
7208
7233
|
__decorateClass([
|
|
7209
7234
|
IsOptional24(),
|
|
7210
|
-
|
|
7235
|
+
IsString27()
|
|
7211
7236
|
], CloseJobDto.prototype, "reason", 2);
|
|
7212
7237
|
|
|
7213
7238
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
7214
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
7239
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional25, IsString as IsString28 } from "class-validator";
|
|
7215
7240
|
var CreateJobApplicationDto = class {
|
|
7216
7241
|
};
|
|
7217
7242
|
__decorateClass([
|
|
7218
|
-
|
|
7219
|
-
|
|
7243
|
+
IsNotEmpty48({ message: "Job ID is required" }),
|
|
7244
|
+
IsString28({ message: "Job ID must be a string" })
|
|
7220
7245
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
7221
7246
|
__decorateClass([
|
|
7222
7247
|
IsOptional25(),
|
|
@@ -7224,7 +7249,7 @@ __decorateClass([
|
|
|
7224
7249
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
7225
7250
|
|
|
7226
7251
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
7227
|
-
import { IsEnum as IsEnum19, IsNotEmpty as
|
|
7252
|
+
import { IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty49 } from "class-validator";
|
|
7228
7253
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
7229
7254
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
7230
7255
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -7236,14 +7261,14 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
7236
7261
|
var ChangeJobApplicationStatusDto = class {
|
|
7237
7262
|
};
|
|
7238
7263
|
__decorateClass([
|
|
7239
|
-
|
|
7264
|
+
IsNotEmpty49({ message: "Status is required" }),
|
|
7240
7265
|
IsEnum19(JobApplicationStatus, {
|
|
7241
7266
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
7242
7267
|
})
|
|
7243
7268
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
7244
7269
|
|
|
7245
7270
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
7246
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum20, IsNotEmpty as
|
|
7271
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty50, IsNumber as IsNumber6 } from "class-validator";
|
|
7247
7272
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
7248
7273
|
};
|
|
7249
7274
|
__decorateClass([
|
|
@@ -7252,7 +7277,7 @@ __decorateClass([
|
|
|
7252
7277
|
IsNumber6({}, { each: true, message: "Each job application ID must be a number" })
|
|
7253
7278
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
7254
7279
|
__decorateClass([
|
|
7255
|
-
|
|
7280
|
+
IsNotEmpty50({ message: "Status is required" }),
|
|
7256
7281
|
IsEnum20(JobApplicationStatus, {
|
|
7257
7282
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
7258
7283
|
})
|
|
@@ -7301,24 +7326,24 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
7301
7326
|
|
|
7302
7327
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
7303
7328
|
import {
|
|
7304
|
-
IsString as
|
|
7305
|
-
IsNotEmpty as
|
|
7306
|
-
MaxLength as
|
|
7307
|
-
MinLength as
|
|
7308
|
-
Matches as
|
|
7329
|
+
IsString as IsString29,
|
|
7330
|
+
IsNotEmpty as IsNotEmpty51,
|
|
7331
|
+
MaxLength as MaxLength13,
|
|
7332
|
+
MinLength as MinLength10,
|
|
7333
|
+
Matches as Matches10
|
|
7309
7334
|
} from "class-validator";
|
|
7310
7335
|
var FreelancerChangePasswordDto = class {
|
|
7311
7336
|
};
|
|
7312
7337
|
__decorateClass([
|
|
7313
|
-
|
|
7314
|
-
|
|
7338
|
+
IsNotEmpty51({ message: "Please enter Old Password." }),
|
|
7339
|
+
IsString29()
|
|
7315
7340
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
7316
7341
|
__decorateClass([
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7342
|
+
IsNotEmpty51({ message: "Please enter New Password." }),
|
|
7343
|
+
IsString29(),
|
|
7344
|
+
MinLength10(6),
|
|
7345
|
+
MaxLength13(32),
|
|
7346
|
+
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7322
7347
|
message: "New Password must include letters, numbers and symbols."
|
|
7323
7348
|
})
|
|
7324
7349
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -7326,11 +7351,11 @@ __decorateClass([
|
|
|
7326
7351
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
7327
7352
|
import {
|
|
7328
7353
|
IsOptional as IsOptional26,
|
|
7329
|
-
IsString as
|
|
7354
|
+
IsString as IsString30,
|
|
7330
7355
|
IsEmail as IsEmail7,
|
|
7331
7356
|
IsNumber as IsNumber7,
|
|
7332
7357
|
IsEnum as IsEnum21,
|
|
7333
|
-
IsNotEmpty as
|
|
7358
|
+
IsNotEmpty as IsNotEmpty52,
|
|
7334
7359
|
ValidateIf as ValidateIf6,
|
|
7335
7360
|
IsInt
|
|
7336
7361
|
} from "class-validator";
|
|
@@ -7349,33 +7374,33 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
7349
7374
|
var UpdateFreelancerProfileDto = class {
|
|
7350
7375
|
};
|
|
7351
7376
|
__decorateClass([
|
|
7352
|
-
|
|
7353
|
-
|
|
7377
|
+
IsNotEmpty52({ message: "Please enter first name." }),
|
|
7378
|
+
IsString30({ message: "Please enter valid first name." })
|
|
7354
7379
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
7355
7380
|
__decorateClass([
|
|
7356
7381
|
IsOptional26(),
|
|
7357
|
-
|
|
7358
|
-
|
|
7382
|
+
IsNotEmpty52({ message: "Please enter last name." }),
|
|
7383
|
+
IsString30({ message: "Please enter valid last name." })
|
|
7359
7384
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
7360
7385
|
__decorateClass([
|
|
7361
|
-
|
|
7362
|
-
|
|
7386
|
+
IsNotEmpty52({ message: "Please enter designation." }),
|
|
7387
|
+
IsString30({ message: "Please enter valid designation." })
|
|
7363
7388
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
7364
7389
|
__decorateClass([
|
|
7365
|
-
|
|
7366
|
-
|
|
7390
|
+
IsNotEmpty52({ message: "Please enter experience." }),
|
|
7391
|
+
IsString30({ message: "Please enter valid experience." })
|
|
7367
7392
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
7368
7393
|
__decorateClass([
|
|
7369
|
-
|
|
7394
|
+
IsNotEmpty52({ message: "Please enter email id." }),
|
|
7370
7395
|
IsEmail7()
|
|
7371
7396
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
7372
7397
|
__decorateClass([
|
|
7373
|
-
|
|
7374
|
-
|
|
7398
|
+
IsNotEmpty52({ message: "Please enter mobile code." }),
|
|
7399
|
+
IsString30({ message: "Please enter valid mobile code." })
|
|
7375
7400
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
7376
7401
|
__decorateClass([
|
|
7377
|
-
|
|
7378
|
-
|
|
7402
|
+
IsNotEmpty52({ message: "Please enter mobile number." }),
|
|
7403
|
+
IsString30({ message: "Please enter valid mobile number." })
|
|
7379
7404
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
7380
7405
|
__decorateClass([
|
|
7381
7406
|
IsOptional26(),
|
|
@@ -7392,19 +7417,19 @@ __decorateClass([
|
|
|
7392
7417
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
7393
7418
|
__decorateClass([
|
|
7394
7419
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7395
|
-
|
|
7420
|
+
IsNotEmpty52({ message: "Please enter expected hourly compensation." })
|
|
7396
7421
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
7397
7422
|
__decorateClass([
|
|
7398
7423
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7399
|
-
|
|
7424
|
+
IsNotEmpty52({ message: "Please enter expected annual compensation." })
|
|
7400
7425
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
7401
7426
|
__decorateClass([
|
|
7402
7427
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7403
7428
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7404
|
-
|
|
7429
|
+
IsNotEmpty52({ message: "Please enter weekly availability hours" })
|
|
7405
7430
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
7406
7431
|
__decorateClass([
|
|
7407
|
-
|
|
7432
|
+
IsNotEmpty52({ message: "Please select engagement type." }),
|
|
7408
7433
|
IsEnum21(NatureOfWorkDto, {
|
|
7409
7434
|
message: `Engagement Type must be one of: ${Object.values(
|
|
7410
7435
|
NatureOfWorkDto
|
|
@@ -7412,7 +7437,7 @@ __decorateClass([
|
|
|
7412
7437
|
})
|
|
7413
7438
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
7414
7439
|
__decorateClass([
|
|
7415
|
-
|
|
7440
|
+
IsNotEmpty52({ message: "Please select mode of work." }),
|
|
7416
7441
|
IsEnum21(ModeOfWorkDto, {
|
|
7417
7442
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
7418
7443
|
", "
|
|
@@ -7421,70 +7446,70 @@ __decorateClass([
|
|
|
7421
7446
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
7422
7447
|
__decorateClass([
|
|
7423
7448
|
IsOptional26(),
|
|
7424
|
-
|
|
7449
|
+
IsString30()
|
|
7425
7450
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
7426
7451
|
__decorateClass([
|
|
7427
|
-
|
|
7428
|
-
|
|
7452
|
+
IsNotEmpty52({ message: "Please enter address." }),
|
|
7453
|
+
IsString30()
|
|
7429
7454
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
7430
7455
|
__decorateClass([
|
|
7431
7456
|
IsOptional26(),
|
|
7432
|
-
|
|
7457
|
+
IsString30()
|
|
7433
7458
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
7434
7459
|
__decorateClass([
|
|
7435
|
-
|
|
7436
|
-
|
|
7460
|
+
IsNotEmpty52({ message: "Please enter postalCode." }),
|
|
7461
|
+
IsString30()
|
|
7437
7462
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
7438
7463
|
__decorateClass([
|
|
7439
7464
|
IsOptional26(),
|
|
7440
|
-
|
|
7465
|
+
IsString30()
|
|
7441
7466
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
7442
7467
|
__decorateClass([
|
|
7443
7468
|
IsOptional26(),
|
|
7444
|
-
|
|
7469
|
+
IsString30()
|
|
7445
7470
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
7446
7471
|
__decorateClass([
|
|
7447
7472
|
IsOptional26(),
|
|
7448
|
-
|
|
7473
|
+
IsString30()
|
|
7449
7474
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
7450
7475
|
__decorateClass([
|
|
7451
7476
|
IsOptional26(),
|
|
7452
|
-
|
|
7477
|
+
IsString30()
|
|
7453
7478
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
7454
7479
|
__decorateClass([
|
|
7455
7480
|
IsOptional26(),
|
|
7456
|
-
|
|
7481
|
+
IsString30()
|
|
7457
7482
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
7458
7483
|
__decorateClass([
|
|
7459
7484
|
IsOptional26(),
|
|
7460
|
-
|
|
7485
|
+
IsString30()
|
|
7461
7486
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
7462
7487
|
|
|
7463
7488
|
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
7464
|
-
import { IsNotEmpty as
|
|
7489
|
+
import { IsNotEmpty as IsNotEmpty53, IsUUID as IsUUID17 } from "class-validator";
|
|
7465
7490
|
var FreelancerESignatureDto = class {
|
|
7466
7491
|
};
|
|
7467
7492
|
__decorateClass([
|
|
7468
7493
|
IsUUID17("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
7469
|
-
|
|
7494
|
+
IsNotEmpty53({ message: "Freelancer UUID is required." })
|
|
7470
7495
|
], FreelancerESignatureDto.prototype, "uuid", 2);
|
|
7471
7496
|
|
|
7472
7497
|
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
7473
|
-
import { IsNotEmpty as
|
|
7498
|
+
import { IsNotEmpty as IsNotEmpty54, IsNumber as IsNumber8 } from "class-validator";
|
|
7474
7499
|
var FetchClientInfoForChatDto = class {
|
|
7475
7500
|
};
|
|
7476
7501
|
__decorateClass([
|
|
7477
|
-
|
|
7502
|
+
IsNotEmpty54({ message: "Client ID is required" }),
|
|
7478
7503
|
IsNumber8({}, { message: "Client ID must be a number" })
|
|
7479
7504
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
7480
7505
|
|
|
7481
7506
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
7482
|
-
import { IsNotEmpty as
|
|
7507
|
+
import { IsNotEmpty as IsNotEmpty55, IsString as IsString31, IsOptional as IsOptional27, IsObject as IsObject4 } from "class-validator";
|
|
7483
7508
|
var CaptureAiAssessmentResultDto = class {
|
|
7484
7509
|
};
|
|
7485
7510
|
__decorateClass([
|
|
7486
|
-
|
|
7487
|
-
|
|
7511
|
+
IsNotEmpty55({ message: "AI Assessment UUID is required" }),
|
|
7512
|
+
IsString31({ message: "AI Assessment UUID must be a string" })
|
|
7488
7513
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
7489
7514
|
__decorateClass([
|
|
7490
7515
|
IsOptional27(),
|
|
@@ -7492,7 +7517,7 @@ __decorateClass([
|
|
|
7492
7517
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
7493
7518
|
__decorateClass([
|
|
7494
7519
|
IsOptional27(),
|
|
7495
|
-
|
|
7520
|
+
IsString31()
|
|
7496
7521
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7497
7522
|
|
|
7498
7523
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -7508,9 +7533,9 @@ var BANK_PATTERN = {
|
|
|
7508
7533
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7509
7534
|
import {
|
|
7510
7535
|
IsEnum as IsEnum22,
|
|
7511
|
-
IsNotEmpty as
|
|
7536
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7512
7537
|
IsOptional as IsOptional28,
|
|
7513
|
-
IsString as
|
|
7538
|
+
IsString as IsString32,
|
|
7514
7539
|
ValidateIf as ValidateIf7
|
|
7515
7540
|
} from "class-validator";
|
|
7516
7541
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -7521,45 +7546,45 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7521
7546
|
var FreelancerBankDetailsDto = class {
|
|
7522
7547
|
};
|
|
7523
7548
|
__decorateClass([
|
|
7524
|
-
|
|
7549
|
+
IsNotEmpty56({ message: "Please enter Account Holder Name." })
|
|
7525
7550
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7526
7551
|
__decorateClass([
|
|
7527
|
-
|
|
7552
|
+
IsNotEmpty56({ message: "Please enter Mobile Code." })
|
|
7528
7553
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7529
7554
|
__decorateClass([
|
|
7530
|
-
|
|
7555
|
+
IsNotEmpty56({ message: "Please enter Mobile Number." })
|
|
7531
7556
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7532
7557
|
__decorateClass([
|
|
7533
|
-
|
|
7558
|
+
IsNotEmpty56({ message: "Please enter Email." })
|
|
7534
7559
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7535
7560
|
__decorateClass([
|
|
7536
7561
|
IsOptional28()
|
|
7537
7562
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7538
7563
|
__decorateClass([
|
|
7539
|
-
|
|
7564
|
+
IsNotEmpty56({ message: "Please enter Account Number." })
|
|
7540
7565
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7541
7566
|
__decorateClass([
|
|
7542
|
-
|
|
7567
|
+
IsNotEmpty56({ message: "Please enter Bank Name." })
|
|
7543
7568
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7544
7569
|
__decorateClass([
|
|
7545
7570
|
IsOptional28(),
|
|
7546
|
-
|
|
7571
|
+
IsString32()
|
|
7547
7572
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7548
7573
|
__decorateClass([
|
|
7549
7574
|
ValidateIf7((dto) => dto.accountScope === "DOMESTIC"),
|
|
7550
|
-
|
|
7575
|
+
IsNotEmpty56({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7551
7576
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7552
7577
|
__decorateClass([
|
|
7553
7578
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7554
|
-
|
|
7579
|
+
IsNotEmpty56({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7555
7580
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7556
7581
|
__decorateClass([
|
|
7557
7582
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7558
|
-
|
|
7583
|
+
IsNotEmpty56({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7559
7584
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7560
7585
|
__decorateClass([
|
|
7561
7586
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7562
|
-
|
|
7587
|
+
IsNotEmpty56({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7563
7588
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7564
7589
|
__decorateClass([
|
|
7565
7590
|
IsOptional28()
|
|
@@ -7615,26 +7640,26 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7615
7640
|
|
|
7616
7641
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7617
7642
|
import {
|
|
7618
|
-
IsString as
|
|
7619
|
-
IsNotEmpty as
|
|
7620
|
-
MaxLength as
|
|
7643
|
+
IsString as IsString33,
|
|
7644
|
+
IsNotEmpty as IsNotEmpty57,
|
|
7645
|
+
MaxLength as MaxLength14
|
|
7621
7646
|
} from "class-validator";
|
|
7622
7647
|
var AddGlobalSettingDto = class {
|
|
7623
7648
|
};
|
|
7624
7649
|
__decorateClass([
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7650
|
+
IsNotEmpty57({ message: "Key is required" }),
|
|
7651
|
+
IsString33({ message: "Key must be a string" }),
|
|
7652
|
+
MaxLength14(255, { message: "Key must not exceed 255 characters" })
|
|
7628
7653
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7629
7654
|
__decorateClass([
|
|
7630
|
-
|
|
7631
|
-
|
|
7655
|
+
IsNotEmpty57({ message: "Value is required" }),
|
|
7656
|
+
IsString33({ message: "Value must be a string" })
|
|
7632
7657
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7633
7658
|
|
|
7634
7659
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7635
7660
|
import {
|
|
7636
|
-
IsString as
|
|
7637
|
-
IsNotEmpty as
|
|
7661
|
+
IsString as IsString34,
|
|
7662
|
+
IsNotEmpty as IsNotEmpty58,
|
|
7638
7663
|
IsUUID as IsUUID18,
|
|
7639
7664
|
ValidateIf as ValidateIf8
|
|
7640
7665
|
} from "class-validator";
|
|
@@ -7642,13 +7667,13 @@ var RemoveGlobalSettingDto = class {
|
|
|
7642
7667
|
};
|
|
7643
7668
|
__decorateClass([
|
|
7644
7669
|
ValidateIf8((o) => !o.key),
|
|
7645
|
-
|
|
7670
|
+
IsNotEmpty58({ message: "Either uuid or key is required" }),
|
|
7646
7671
|
IsUUID18("4", { message: "UUID must be a valid UUID" })
|
|
7647
7672
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7648
7673
|
__decorateClass([
|
|
7649
7674
|
ValidateIf8((o) => !o.uuid),
|
|
7650
|
-
|
|
7651
|
-
|
|
7675
|
+
IsNotEmpty58({ message: "Either uuid or key is required" }),
|
|
7676
|
+
IsString34({ message: "Key must be a string" })
|
|
7652
7677
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7653
7678
|
|
|
7654
7679
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7694,7 +7719,7 @@ var EMAIL_PATTERN = {
|
|
|
7694
7719
|
};
|
|
7695
7720
|
|
|
7696
7721
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7697
|
-
import { IsOptional as IsOptional29, IsString as
|
|
7722
|
+
import { IsOptional as IsOptional29, IsString as IsString35, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
7698
7723
|
var TestNotificationDto = class {
|
|
7699
7724
|
};
|
|
7700
7725
|
__decorateClass([
|
|
@@ -7707,7 +7732,7 @@ __decorateClass([
|
|
|
7707
7732
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7708
7733
|
__decorateClass([
|
|
7709
7734
|
IsOptional29(),
|
|
7710
|
-
|
|
7735
|
+
IsString35()
|
|
7711
7736
|
], TestNotificationDto.prototype, "message", 2);
|
|
7712
7737
|
__decorateClass([
|
|
7713
7738
|
IsOptional29(),
|
|
@@ -7715,7 +7740,7 @@ __decorateClass([
|
|
|
7715
7740
|
], TestNotificationDto.prototype, "data", 2);
|
|
7716
7741
|
__decorateClass([
|
|
7717
7742
|
IsOptional29(),
|
|
7718
|
-
|
|
7743
|
+
IsString35()
|
|
7719
7744
|
], TestNotificationDto.prototype, "type", 2);
|
|
7720
7745
|
|
|
7721
7746
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7729,9 +7754,9 @@ var RATING_PATTERN = {
|
|
|
7729
7754
|
import {
|
|
7730
7755
|
IsEnum as IsEnum24,
|
|
7731
7756
|
IsInt as IsInt2,
|
|
7732
|
-
IsNotEmpty as
|
|
7757
|
+
IsNotEmpty as IsNotEmpty59,
|
|
7733
7758
|
IsOptional as IsOptional30,
|
|
7734
|
-
IsString as
|
|
7759
|
+
IsString as IsString36,
|
|
7735
7760
|
IsNumber as IsNumber9,
|
|
7736
7761
|
Min as Min4,
|
|
7737
7762
|
Max as Max4
|
|
@@ -7748,7 +7773,7 @@ __decorateClass([
|
|
|
7748
7773
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7749
7774
|
__decorateClass([
|
|
7750
7775
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7751
|
-
|
|
7776
|
+
IsNotEmpty59({ message: "Job ID is required" })
|
|
7752
7777
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7753
7778
|
__decorateClass([
|
|
7754
7779
|
IsEnum24(RatingTypeEnum, {
|
|
@@ -7757,7 +7782,7 @@ __decorateClass([
|
|
|
7757
7782
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7758
7783
|
__decorateClass([
|
|
7759
7784
|
IsOptional30(),
|
|
7760
|
-
|
|
7785
|
+
IsString36({ message: "Reviewer comment must be a string" })
|
|
7761
7786
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7762
7787
|
__decorateClass([
|
|
7763
7788
|
IsOptional30(),
|
|
@@ -7839,17 +7864,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7839
7864
|
};
|
|
7840
7865
|
|
|
7841
7866
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7842
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
7867
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty60, IsOptional as IsOptional31 } from "class-validator";
|
|
7843
7868
|
var CreateCompanyRoleDto = class {
|
|
7844
7869
|
};
|
|
7845
7870
|
__decorateClass([
|
|
7846
|
-
|
|
7871
|
+
IsNotEmpty60({ message: "Please enter company role name." })
|
|
7847
7872
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7848
7873
|
__decorateClass([
|
|
7849
|
-
|
|
7874
|
+
IsNotEmpty60({ message: "Please enter company role slug" })
|
|
7850
7875
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7851
7876
|
__decorateClass([
|
|
7852
|
-
|
|
7877
|
+
IsNotEmpty60({ message: "Please enter description" })
|
|
7853
7878
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7854
7879
|
__decorateClass([
|
|
7855
7880
|
IsArray6({ message: "Permission IDs must be an array." }),
|
|
@@ -7862,17 +7887,17 @@ __decorateClass([
|
|
|
7862
7887
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7863
7888
|
|
|
7864
7889
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7865
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as
|
|
7890
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty61, IsOptional as IsOptional32 } from "class-validator";
|
|
7866
7891
|
var UpdateCompanyRoleDto = class {
|
|
7867
7892
|
};
|
|
7868
7893
|
__decorateClass([
|
|
7869
|
-
|
|
7894
|
+
IsNotEmpty61({ message: "Please enter company name." })
|
|
7870
7895
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7871
7896
|
__decorateClass([
|
|
7872
|
-
|
|
7897
|
+
IsNotEmpty61({ message: "Please enter slug" })
|
|
7873
7898
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7874
7899
|
__decorateClass([
|
|
7875
|
-
|
|
7900
|
+
IsNotEmpty61({ message: "Please enter description" })
|
|
7876
7901
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7877
7902
|
__decorateClass([
|
|
7878
7903
|
IsArray7({ message: "Permission IDs must be an array." }),
|
|
@@ -7901,10 +7926,10 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7901
7926
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7902
7927
|
import {
|
|
7903
7928
|
ArrayMinSize,
|
|
7904
|
-
IsNotEmpty as
|
|
7929
|
+
IsNotEmpty as IsNotEmpty62,
|
|
7905
7930
|
IsOptional as IsOptional33,
|
|
7906
|
-
IsString as
|
|
7907
|
-
MaxLength as
|
|
7931
|
+
IsString as IsString39,
|
|
7932
|
+
MaxLength as MaxLength16,
|
|
7908
7933
|
ValidateNested as ValidateNested3
|
|
7909
7934
|
} from "class-validator";
|
|
7910
7935
|
import { Type as Type5 } from "class-transformer";
|
|
@@ -7914,21 +7939,21 @@ __decorateClass([
|
|
|
7914
7939
|
IsOptional33()
|
|
7915
7940
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7916
7941
|
__decorateClass([
|
|
7917
|
-
|
|
7918
|
-
|
|
7942
|
+
IsNotEmpty62(),
|
|
7943
|
+
IsString39()
|
|
7919
7944
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7920
7945
|
__decorateClass([
|
|
7921
|
-
|
|
7922
|
-
|
|
7946
|
+
IsNotEmpty62(),
|
|
7947
|
+
IsString39()
|
|
7923
7948
|
], ExperienceDto.prototype, "designation", 2);
|
|
7924
7949
|
__decorateClass([
|
|
7925
|
-
|
|
7926
|
-
|
|
7950
|
+
IsNotEmpty62(),
|
|
7951
|
+
IsString39()
|
|
7927
7952
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7928
7953
|
__decorateClass([
|
|
7929
7954
|
IsOptional33(),
|
|
7930
|
-
|
|
7931
|
-
|
|
7955
|
+
IsString39(),
|
|
7956
|
+
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7932
7957
|
], ExperienceDto.prototype, "description", 2);
|
|
7933
7958
|
var FreelancerExperienceDto = class {
|
|
7934
7959
|
};
|
|
@@ -7951,14 +7976,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7951
7976
|
};
|
|
7952
7977
|
|
|
7953
7978
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7954
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as
|
|
7979
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as IsNotEmpty63 } from "class-validator";
|
|
7955
7980
|
var CreateCompanyMemberDto = class {
|
|
7956
7981
|
};
|
|
7957
7982
|
__decorateClass([
|
|
7958
|
-
|
|
7983
|
+
IsNotEmpty63({ message: "Please enter name." })
|
|
7959
7984
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7960
7985
|
__decorateClass([
|
|
7961
|
-
|
|
7986
|
+
IsNotEmpty63({ message: "Please enter email" })
|
|
7962
7987
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7963
7988
|
__decorateClass([
|
|
7964
7989
|
IsArray8({ message: "Role IDs must be an array." }),
|
|
@@ -7967,14 +7992,14 @@ __decorateClass([
|
|
|
7967
7992
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7968
7993
|
|
|
7969
7994
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7970
|
-
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as
|
|
7995
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as IsNotEmpty64 } from "class-validator";
|
|
7971
7996
|
var UpdateCompanyMemberDto = class {
|
|
7972
7997
|
};
|
|
7973
7998
|
__decorateClass([
|
|
7974
|
-
|
|
7999
|
+
IsNotEmpty64({ message: "Please enter name." })
|
|
7975
8000
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7976
8001
|
__decorateClass([
|
|
7977
|
-
|
|
8002
|
+
IsNotEmpty64({ message: "Please enter email" })
|
|
7978
8003
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7979
8004
|
__decorateClass([
|
|
7980
8005
|
IsArray9({ message: "Role IDs must be an array." }),
|
|
@@ -7997,7 +8022,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7997
8022
|
};
|
|
7998
8023
|
|
|
7999
8024
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
8000
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as
|
|
8025
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString42, IsNotEmpty as IsNotEmpty65, IsOptional as IsOptional36, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
8001
8026
|
import { Type as Type6 } from "class-transformer";
|
|
8002
8027
|
var EducationDto = class {
|
|
8003
8028
|
};
|
|
@@ -8005,16 +8030,16 @@ __decorateClass([
|
|
|
8005
8030
|
IsOptional36()
|
|
8006
8031
|
], EducationDto.prototype, "uuid", 2);
|
|
8007
8032
|
__decorateClass([
|
|
8008
|
-
|
|
8009
|
-
|
|
8033
|
+
IsString42(),
|
|
8034
|
+
IsNotEmpty65({ message: "Please Enter Degree " })
|
|
8010
8035
|
], EducationDto.prototype, "degree", 2);
|
|
8011
8036
|
__decorateClass([
|
|
8012
|
-
|
|
8013
|
-
|
|
8037
|
+
IsString42(),
|
|
8038
|
+
IsNotEmpty65({ message: "Please Enter University " })
|
|
8014
8039
|
], EducationDto.prototype, "university", 2);
|
|
8015
8040
|
__decorateClass([
|
|
8016
|
-
|
|
8017
|
-
|
|
8041
|
+
IsString42(),
|
|
8042
|
+
IsNotEmpty65({ message: "Please Enter Year of Graduation " })
|
|
8018
8043
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
8019
8044
|
var FreelancerEducationDto = class {
|
|
8020
8045
|
};
|
|
@@ -8032,7 +8057,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
8032
8057
|
};
|
|
8033
8058
|
|
|
8034
8059
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
8035
|
-
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as
|
|
8060
|
+
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString43, IsNotEmpty as IsNotEmpty66, IsOptional as IsOptional37, IsDateString, MaxLength as MaxLength18, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
8036
8061
|
import { Type as Type7 } from "class-transformer";
|
|
8037
8062
|
var ProjectDto = class {
|
|
8038
8063
|
};
|
|
@@ -8040,29 +8065,29 @@ __decorateClass([
|
|
|
8040
8065
|
IsOptional37()
|
|
8041
8066
|
], ProjectDto.prototype, "uuid", 2);
|
|
8042
8067
|
__decorateClass([
|
|
8043
|
-
|
|
8044
|
-
|
|
8068
|
+
IsString43(),
|
|
8069
|
+
IsNotEmpty66({ message: "Please Enter Project Name " })
|
|
8045
8070
|
], ProjectDto.prototype, "projectName", 2);
|
|
8046
8071
|
__decorateClass([
|
|
8047
8072
|
IsDateString(),
|
|
8048
|
-
|
|
8073
|
+
IsNotEmpty66({ message: "Please Enter Start Date " })
|
|
8049
8074
|
], ProjectDto.prototype, "startDate", 2);
|
|
8050
8075
|
__decorateClass([
|
|
8051
8076
|
IsDateString(),
|
|
8052
|
-
|
|
8077
|
+
IsNotEmpty66({ message: "Please Enter End Date " })
|
|
8053
8078
|
], ProjectDto.prototype, "endDate", 2);
|
|
8054
8079
|
__decorateClass([
|
|
8055
8080
|
IsOptional37(),
|
|
8056
|
-
|
|
8081
|
+
IsString43()
|
|
8057
8082
|
], ProjectDto.prototype, "clientName", 2);
|
|
8058
8083
|
__decorateClass([
|
|
8059
8084
|
IsOptional37(),
|
|
8060
|
-
|
|
8085
|
+
IsString43()
|
|
8061
8086
|
], ProjectDto.prototype, "gitLink", 2);
|
|
8062
8087
|
__decorateClass([
|
|
8063
8088
|
IsOptional37(),
|
|
8064
|
-
|
|
8065
|
-
|
|
8089
|
+
IsString43(),
|
|
8090
|
+
MaxLength18(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8066
8091
|
], ProjectDto.prototype, "description", 2);
|
|
8067
8092
|
var CaseStudyDto = class {
|
|
8068
8093
|
};
|
|
@@ -8070,17 +8095,17 @@ __decorateClass([
|
|
|
8070
8095
|
IsOptional37()
|
|
8071
8096
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
8072
8097
|
__decorateClass([
|
|
8073
|
-
|
|
8074
|
-
|
|
8098
|
+
IsString43(),
|
|
8099
|
+
IsNotEmpty66({ message: "Please Enter Project Name " })
|
|
8075
8100
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
8076
8101
|
__decorateClass([
|
|
8077
8102
|
IsOptional37(),
|
|
8078
|
-
|
|
8103
|
+
IsString43()
|
|
8079
8104
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
8080
8105
|
__decorateClass([
|
|
8081
8106
|
IsOptional37(),
|
|
8082
|
-
|
|
8083
|
-
|
|
8107
|
+
IsString43(),
|
|
8108
|
+
MaxLength18(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8084
8109
|
], CaseStudyDto.prototype, "description", 2);
|
|
8085
8110
|
var FreelancerProjectDto = class {
|
|
8086
8111
|
};
|
|
@@ -8109,7 +8134,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
8109
8134
|
};
|
|
8110
8135
|
|
|
8111
8136
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
8112
|
-
import { IsArray as IsArray12, IsString as
|
|
8137
|
+
import { IsArray as IsArray12, IsString as IsString44, IsOptional as IsOptional38 } from "class-validator";
|
|
8113
8138
|
import { Type as Type8 } from "class-transformer";
|
|
8114
8139
|
var FreelancerSkillDto = class {
|
|
8115
8140
|
constructor() {
|
|
@@ -8123,25 +8148,25 @@ __decorateClass([
|
|
|
8123
8148
|
IsOptional38(),
|
|
8124
8149
|
IsArray12(),
|
|
8125
8150
|
Type8(() => String),
|
|
8126
|
-
|
|
8151
|
+
IsString44({ each: true })
|
|
8127
8152
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
8128
8153
|
__decorateClass([
|
|
8129
8154
|
IsOptional38(),
|
|
8130
8155
|
IsArray12(),
|
|
8131
8156
|
Type8(() => String),
|
|
8132
|
-
|
|
8157
|
+
IsString44({ each: true })
|
|
8133
8158
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
8134
8159
|
__decorateClass([
|
|
8135
8160
|
IsOptional38(),
|
|
8136
8161
|
IsArray12(),
|
|
8137
8162
|
Type8(() => String),
|
|
8138
|
-
|
|
8163
|
+
IsString44({ each: true })
|
|
8139
8164
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
8140
8165
|
__decorateClass([
|
|
8141
8166
|
IsOptional38(),
|
|
8142
8167
|
IsArray12(),
|
|
8143
8168
|
Type8(() => String),
|
|
8144
|
-
|
|
8169
|
+
IsString44({ each: true })
|
|
8145
8170
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
8146
8171
|
|
|
8147
8172
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -8175,17 +8200,17 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
8175
8200
|
|
|
8176
8201
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
8177
8202
|
import {
|
|
8178
|
-
IsString as
|
|
8203
|
+
IsString as IsString45,
|
|
8179
8204
|
IsEmail as IsEmail13,
|
|
8180
8205
|
IsBoolean as IsBoolean11,
|
|
8181
8206
|
IsOptional as IsOptional39,
|
|
8182
8207
|
IsEnum as IsEnum25,
|
|
8183
8208
|
IsNumber as IsNumber10,
|
|
8184
8209
|
IsUrl as IsUrl3,
|
|
8185
|
-
MaxLength as
|
|
8186
|
-
MinLength as
|
|
8187
|
-
Matches as
|
|
8188
|
-
IsNotEmpty as
|
|
8210
|
+
MaxLength as MaxLength20,
|
|
8211
|
+
MinLength as MinLength15,
|
|
8212
|
+
Matches as Matches11,
|
|
8213
|
+
IsNotEmpty as IsNotEmpty68,
|
|
8189
8214
|
ValidateIf as ValidateIf9,
|
|
8190
8215
|
IsInt as IsInt7
|
|
8191
8216
|
} from "class-validator";
|
|
@@ -8206,8 +8231,8 @@ var CreateFreelancerDto = class {
|
|
|
8206
8231
|
};
|
|
8207
8232
|
__decorateClass([
|
|
8208
8233
|
IsOptional39(),
|
|
8209
|
-
|
|
8210
|
-
|
|
8234
|
+
IsString45({ message: "Full name must be a string" }),
|
|
8235
|
+
MaxLength20(100, { message: "Full name must not exceed 100 characters" }),
|
|
8211
8236
|
Transform2(({ value }) => {
|
|
8212
8237
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8213
8238
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8223,7 +8248,7 @@ __decorateClass([
|
|
|
8223
8248
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
8224
8249
|
__decorateClass([
|
|
8225
8250
|
IsOptional39(),
|
|
8226
|
-
|
|
8251
|
+
IsString45({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8227
8252
|
Transform2(({ value }) => {
|
|
8228
8253
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8229
8254
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8231,15 +8256,15 @@ __decorateClass([
|
|
|
8231
8256
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
8232
8257
|
__decorateClass([
|
|
8233
8258
|
IsOptional39(),
|
|
8234
|
-
|
|
8259
|
+
IsString45({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8235
8260
|
Transform2(({ value }) => {
|
|
8236
8261
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8237
8262
|
return typeof value === "string" ? value.trim() : value;
|
|
8238
8263
|
})
|
|
8239
8264
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
8240
8265
|
__decorateClass([
|
|
8241
|
-
|
|
8242
|
-
|
|
8266
|
+
IsNotEmpty68({ message: "Please enter address." }),
|
|
8267
|
+
IsString45({ message: "address must be a string" }),
|
|
8243
8268
|
Transform2(({ value }) => {
|
|
8244
8269
|
if (Array.isArray(value)) {
|
|
8245
8270
|
const val = value[0];
|
|
@@ -8250,7 +8275,7 @@ __decorateClass([
|
|
|
8250
8275
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
8251
8276
|
__decorateClass([
|
|
8252
8277
|
IsOptional39(),
|
|
8253
|
-
|
|
8278
|
+
IsString45({ message: "addressLine must be a string" }),
|
|
8254
8279
|
Transform2(({ value }) => {
|
|
8255
8280
|
if (Array.isArray(value)) {
|
|
8256
8281
|
const val = value[0];
|
|
@@ -8290,7 +8315,7 @@ __decorateClass([
|
|
|
8290
8315
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
8291
8316
|
__decorateClass([
|
|
8292
8317
|
IsOptional39(),
|
|
8293
|
-
|
|
8318
|
+
IsString45({ message: "postalCode must be a string" }),
|
|
8294
8319
|
Transform2(({ value }) => {
|
|
8295
8320
|
if (Array.isArray(value)) {
|
|
8296
8321
|
const val = value[0];
|
|
@@ -8303,7 +8328,7 @@ __decorateClass([
|
|
|
8303
8328
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
8304
8329
|
__decorateClass([
|
|
8305
8330
|
IsOptional39(),
|
|
8306
|
-
|
|
8331
|
+
IsString45({ message: "about must be a string" }),
|
|
8307
8332
|
Transform2(({ value }) => {
|
|
8308
8333
|
if (Array.isArray(value)) {
|
|
8309
8334
|
const val = value[0];
|
|
@@ -8316,7 +8341,7 @@ __decorateClass([
|
|
|
8316
8341
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
8317
8342
|
__decorateClass([
|
|
8318
8343
|
IsOptional39(),
|
|
8319
|
-
|
|
8344
|
+
IsString45({ message: "designation must be a string" }),
|
|
8320
8345
|
Transform2(({ value }) => {
|
|
8321
8346
|
if (Array.isArray(value)) {
|
|
8322
8347
|
const val = value[0];
|
|
@@ -8342,14 +8367,14 @@ __decorateClass([
|
|
|
8342
8367
|
if (Array.isArray(value)) value = value[0];
|
|
8343
8368
|
return value === null || value === "" ? void 0 : value;
|
|
8344
8369
|
}),
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8370
|
+
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
8371
|
+
MaxLength20(32, { message: "Password must not exceed 32 characters." }),
|
|
8372
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8348
8373
|
message: "Password must include letters, numbers and symbols."
|
|
8349
8374
|
})
|
|
8350
8375
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
8351
8376
|
__decorateClass([
|
|
8352
|
-
|
|
8377
|
+
IsNotEmpty68({ message: "Please enter confirm password." }),
|
|
8353
8378
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
8354
8379
|
Transform2(({ value }) => {
|
|
8355
8380
|
if (Array.isArray(value)) {
|
|
@@ -8434,7 +8459,7 @@ __decorateClass([
|
|
|
8434
8459
|
__decorateClass([
|
|
8435
8460
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8436
8461
|
IsOptional39(),
|
|
8437
|
-
|
|
8462
|
+
IsString45({ message: "availabilityToJoin must be a string" }),
|
|
8438
8463
|
Transform2(({ value }) => {
|
|
8439
8464
|
if (Array.isArray(value)) {
|
|
8440
8465
|
const val = value[0];
|
|
@@ -8460,7 +8485,7 @@ __decorateClass([
|
|
|
8460
8485
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8461
8486
|
__decorateClass([
|
|
8462
8487
|
IsOptional39(),
|
|
8463
|
-
|
|
8488
|
+
IsString45({ message: "Kaggle profile link must be a string" }),
|
|
8464
8489
|
Transform2(({ value }) => {
|
|
8465
8490
|
if (Array.isArray(value)) {
|
|
8466
8491
|
const val = value[0];
|
|
@@ -8516,17 +8541,17 @@ __decorateClass([
|
|
|
8516
8541
|
|
|
8517
8542
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8518
8543
|
import {
|
|
8519
|
-
IsString as
|
|
8544
|
+
IsString as IsString46,
|
|
8520
8545
|
IsEmail as IsEmail14,
|
|
8521
8546
|
IsBoolean as IsBoolean12,
|
|
8522
8547
|
IsOptional as IsOptional40,
|
|
8523
8548
|
IsEnum as IsEnum26,
|
|
8524
8549
|
IsNumber as IsNumber11,
|
|
8525
8550
|
IsUrl as IsUrl4,
|
|
8526
|
-
MaxLength as
|
|
8527
|
-
MinLength as
|
|
8528
|
-
Matches as
|
|
8529
|
-
IsNotEmpty as
|
|
8551
|
+
MaxLength as MaxLength21,
|
|
8552
|
+
MinLength as MinLength16,
|
|
8553
|
+
Matches as Matches12,
|
|
8554
|
+
IsNotEmpty as IsNotEmpty69,
|
|
8530
8555
|
ValidateIf as ValidateIf10,
|
|
8531
8556
|
IsInt as IsInt8
|
|
8532
8557
|
} from "class-validator";
|
|
@@ -8547,8 +8572,8 @@ var UpdateFreelancerDto = class {
|
|
|
8547
8572
|
};
|
|
8548
8573
|
__decorateClass([
|
|
8549
8574
|
IsOptional40(),
|
|
8550
|
-
|
|
8551
|
-
|
|
8575
|
+
IsString46({ message: "Full name must be a string" }),
|
|
8576
|
+
MaxLength21(100, { message: "Full name must not exceed 100 characters" }),
|
|
8552
8577
|
Transform3(({ value }) => {
|
|
8553
8578
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8554
8579
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8564,7 +8589,7 @@ __decorateClass([
|
|
|
8564
8589
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8565
8590
|
__decorateClass([
|
|
8566
8591
|
IsOptional40(),
|
|
8567
|
-
|
|
8592
|
+
IsString46({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8568
8593
|
Transform3(({ value }) => {
|
|
8569
8594
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8570
8595
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8572,15 +8597,15 @@ __decorateClass([
|
|
|
8572
8597
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8573
8598
|
__decorateClass([
|
|
8574
8599
|
IsOptional40(),
|
|
8575
|
-
|
|
8600
|
+
IsString46({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8576
8601
|
Transform3(({ value }) => {
|
|
8577
8602
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8578
8603
|
return typeof value === "string" ? value.trim() : value;
|
|
8579
8604
|
})
|
|
8580
8605
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8581
8606
|
__decorateClass([
|
|
8582
|
-
|
|
8583
|
-
|
|
8607
|
+
IsNotEmpty69({ message: "Please enter address." }),
|
|
8608
|
+
IsString46({ message: "address must be a string" }),
|
|
8584
8609
|
Transform3(({ value }) => {
|
|
8585
8610
|
if (Array.isArray(value)) {
|
|
8586
8611
|
const val = value[0];
|
|
@@ -8591,7 +8616,7 @@ __decorateClass([
|
|
|
8591
8616
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8592
8617
|
__decorateClass([
|
|
8593
8618
|
IsOptional40(),
|
|
8594
|
-
|
|
8619
|
+
IsString46({ message: "addressLine must be a string" }),
|
|
8595
8620
|
Transform3(({ value }) => {
|
|
8596
8621
|
if (Array.isArray(value)) {
|
|
8597
8622
|
const val = value[0];
|
|
@@ -8631,7 +8656,7 @@ __decorateClass([
|
|
|
8631
8656
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8632
8657
|
__decorateClass([
|
|
8633
8658
|
IsOptional40(),
|
|
8634
|
-
|
|
8659
|
+
IsString46({ message: "postalCode must be a string" }),
|
|
8635
8660
|
Transform3(({ value }) => {
|
|
8636
8661
|
if (Array.isArray(value)) {
|
|
8637
8662
|
const val = value[0];
|
|
@@ -8644,7 +8669,7 @@ __decorateClass([
|
|
|
8644
8669
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8645
8670
|
__decorateClass([
|
|
8646
8671
|
IsOptional40(),
|
|
8647
|
-
|
|
8672
|
+
IsString46({ message: "about must be a string" }),
|
|
8648
8673
|
Transform3(({ value }) => {
|
|
8649
8674
|
if (Array.isArray(value)) {
|
|
8650
8675
|
const val = value[0];
|
|
@@ -8657,7 +8682,7 @@ __decorateClass([
|
|
|
8657
8682
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8658
8683
|
__decorateClass([
|
|
8659
8684
|
IsOptional40(),
|
|
8660
|
-
|
|
8685
|
+
IsString46({ message: "designation must be a string" }),
|
|
8661
8686
|
Transform3(({ value }) => {
|
|
8662
8687
|
if (Array.isArray(value)) {
|
|
8663
8688
|
const val = value[0];
|
|
@@ -8683,9 +8708,9 @@ __decorateClass([
|
|
|
8683
8708
|
if (Array.isArray(value)) value = value[0];
|
|
8684
8709
|
return value === null || value === "" ? void 0 : value;
|
|
8685
8710
|
}),
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8711
|
+
MinLength16(6, { message: "Password must be at least 6 characters." }),
|
|
8712
|
+
MaxLength21(32, { message: "Password must not exceed 32 characters." }),
|
|
8713
|
+
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8689
8714
|
message: "Password must include letters, numbers and symbols."
|
|
8690
8715
|
})
|
|
8691
8716
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
@@ -8764,7 +8789,7 @@ __decorateClass([
|
|
|
8764
8789
|
__decorateClass([
|
|
8765
8790
|
ValidateIf10((o) => o.isImmediateJoiner === false),
|
|
8766
8791
|
IsOptional40(),
|
|
8767
|
-
|
|
8792
|
+
IsString46({ message: "availabilityToJoin must be a string" }),
|
|
8768
8793
|
Transform3(({ value }) => {
|
|
8769
8794
|
if (Array.isArray(value)) {
|
|
8770
8795
|
const val = value[0];
|
|
@@ -8790,7 +8815,7 @@ __decorateClass([
|
|
|
8790
8815
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8791
8816
|
__decorateClass([
|
|
8792
8817
|
IsOptional40(),
|
|
8793
|
-
|
|
8818
|
+
IsString46({ message: "Kaggle profile link must be a string" }),
|
|
8794
8819
|
Transform3(({ value }) => {
|
|
8795
8820
|
if (Array.isArray(value)) {
|
|
8796
8821
|
const val = value[0];
|
|
@@ -8845,16 +8870,16 @@ __decorateClass([
|
|
|
8845
8870
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8846
8871
|
|
|
8847
8872
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8848
|
-
import { IsNotEmpty as
|
|
8873
|
+
import { IsNotEmpty as IsNotEmpty70, IsUUID as IsUUID19 } from "class-validator";
|
|
8849
8874
|
var SendAiAssessmentLinkDto = class {
|
|
8850
8875
|
};
|
|
8851
8876
|
__decorateClass([
|
|
8852
8877
|
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8853
|
-
|
|
8878
|
+
IsNotEmpty70({ message: "Freelancer UUID is required." })
|
|
8854
8879
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8855
8880
|
|
|
8856
8881
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8857
|
-
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as
|
|
8882
|
+
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as IsString47 } from "class-validator";
|
|
8858
8883
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8859
8884
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8860
8885
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8871,7 +8896,7 @@ __decorateClass([
|
|
|
8871
8896
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8872
8897
|
__decorateClass([
|
|
8873
8898
|
IsOptional41(),
|
|
8874
|
-
|
|
8899
|
+
IsString47()
|
|
8875
8900
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8876
8901
|
|
|
8877
8902
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8917,13 +8942,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8917
8942
|
|
|
8918
8943
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8919
8944
|
import {
|
|
8920
|
-
IsNotEmpty as
|
|
8945
|
+
IsNotEmpty as IsNotEmpty71,
|
|
8921
8946
|
IsEmail as IsEmail16,
|
|
8922
8947
|
IsOptional as IsOptional43,
|
|
8923
|
-
IsString as
|
|
8924
|
-
MinLength as
|
|
8925
|
-
MaxLength as
|
|
8926
|
-
Matches as
|
|
8948
|
+
IsString as IsString48,
|
|
8949
|
+
MinLength as MinLength17,
|
|
8950
|
+
MaxLength as MaxLength22,
|
|
8951
|
+
Matches as Matches13,
|
|
8927
8952
|
IsInt as IsInt9,
|
|
8928
8953
|
IsUrl as IsUrl5
|
|
8929
8954
|
} from "class-validator";
|
|
@@ -8931,52 +8956,52 @@ import { Type as Type9 } from "class-transformer";
|
|
|
8931
8956
|
var CreateClientDto = class {
|
|
8932
8957
|
};
|
|
8933
8958
|
__decorateClass([
|
|
8934
|
-
|
|
8935
|
-
|
|
8959
|
+
IsNotEmpty71({ message: "Please enter first name." }),
|
|
8960
|
+
IsString48()
|
|
8936
8961
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8937
8962
|
__decorateClass([
|
|
8938
|
-
|
|
8939
|
-
|
|
8963
|
+
IsNotEmpty71({ message: "Please enter last name." }),
|
|
8964
|
+
IsString48()
|
|
8940
8965
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8941
8966
|
__decorateClass([
|
|
8942
|
-
|
|
8967
|
+
IsNotEmpty71({ message: "Please enter email." }),
|
|
8943
8968
|
IsEmail16()
|
|
8944
8969
|
], CreateClientDto.prototype, "email", 2);
|
|
8945
8970
|
__decorateClass([
|
|
8946
|
-
|
|
8947
|
-
|
|
8971
|
+
IsNotEmpty71({ message: "Please enter mobile code." }),
|
|
8972
|
+
IsString48({ message: "Mobile code must be a string." })
|
|
8948
8973
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8949
8974
|
__decorateClass([
|
|
8950
|
-
|
|
8951
|
-
|
|
8975
|
+
IsNotEmpty71({ message: "Please enter phone number." }),
|
|
8976
|
+
IsString48({ message: "Phone number must be a string." })
|
|
8952
8977
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8953
8978
|
__decorateClass([
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8979
|
+
IsNotEmpty71({ message: "Please enter password." }),
|
|
8980
|
+
MinLength17(6),
|
|
8981
|
+
MaxLength22(32),
|
|
8982
|
+
Matches13(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8958
8983
|
message: "Password must include letters, numbers and symbols."
|
|
8959
8984
|
})
|
|
8960
8985
|
], CreateClientDto.prototype, "password", 2);
|
|
8961
8986
|
__decorateClass([
|
|
8962
|
-
|
|
8987
|
+
IsNotEmpty71({ message: "Please enter confirm password." }),
|
|
8963
8988
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8964
8989
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8965
8990
|
__decorateClass([
|
|
8966
|
-
|
|
8967
|
-
|
|
8991
|
+
IsNotEmpty71({ message: "Please enter company name." }),
|
|
8992
|
+
IsString48()
|
|
8968
8993
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8969
8994
|
__decorateClass([
|
|
8970
8995
|
IsOptional43(),
|
|
8971
|
-
|
|
8996
|
+
IsString48()
|
|
8972
8997
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8973
8998
|
__decorateClass([
|
|
8974
8999
|
IsOptional43(),
|
|
8975
|
-
|
|
9000
|
+
IsString48()
|
|
8976
9001
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8977
9002
|
__decorateClass([
|
|
8978
9003
|
IsOptional43(),
|
|
8979
|
-
|
|
9004
|
+
IsString48({ message: "About company must be a string." })
|
|
8980
9005
|
], CreateClientDto.prototype, "about", 2);
|
|
8981
9006
|
__decorateClass([
|
|
8982
9007
|
IsOptional43(),
|
|
@@ -8984,15 +9009,15 @@ __decorateClass([
|
|
|
8984
9009
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8985
9010
|
__decorateClass([
|
|
8986
9011
|
IsOptional43(),
|
|
8987
|
-
|
|
9012
|
+
IsString48({ message: "Company address must be a string." })
|
|
8988
9013
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8989
9014
|
__decorateClass([
|
|
8990
9015
|
IsOptional43(),
|
|
8991
|
-
|
|
9016
|
+
IsString48({ message: "Address line must be a string." })
|
|
8992
9017
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8993
9018
|
__decorateClass([
|
|
8994
9019
|
IsOptional43(),
|
|
8995
|
-
|
|
9020
|
+
IsString48({ message: "Postal code must be a string." })
|
|
8996
9021
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8997
9022
|
__decorateClass([
|
|
8998
9023
|
IsOptional43(),
|
|
@@ -9023,76 +9048,76 @@ __decorateClass([
|
|
|
9023
9048
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
9024
9049
|
import { Transform as Transform5, Type as Type10 } from "class-transformer";
|
|
9025
9050
|
import {
|
|
9026
|
-
IsNotEmpty as
|
|
9051
|
+
IsNotEmpty as IsNotEmpty72,
|
|
9027
9052
|
IsEmail as IsEmail17,
|
|
9028
9053
|
IsOptional as IsOptional44,
|
|
9029
|
-
IsString as
|
|
9030
|
-
MinLength as
|
|
9031
|
-
MaxLength as
|
|
9032
|
-
Matches as
|
|
9054
|
+
IsString as IsString49,
|
|
9055
|
+
MinLength as MinLength18,
|
|
9056
|
+
MaxLength as MaxLength23,
|
|
9057
|
+
Matches as Matches14
|
|
9033
9058
|
} from "class-validator";
|
|
9034
9059
|
var UpdateClientDto = class {
|
|
9035
9060
|
};
|
|
9036
9061
|
__decorateClass([
|
|
9037
|
-
|
|
9038
|
-
|
|
9062
|
+
IsNotEmpty72({ message: "Please enter first name." }),
|
|
9063
|
+
IsString49()
|
|
9039
9064
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
9040
9065
|
__decorateClass([
|
|
9041
|
-
|
|
9042
|
-
|
|
9066
|
+
IsNotEmpty72({ message: "Please enter last name." }),
|
|
9067
|
+
IsString49()
|
|
9043
9068
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
9044
9069
|
__decorateClass([
|
|
9045
|
-
|
|
9070
|
+
IsNotEmpty72({ message: "Please enter email." }),
|
|
9046
9071
|
IsEmail17()
|
|
9047
9072
|
], UpdateClientDto.prototype, "email", 2);
|
|
9048
9073
|
__decorateClass([
|
|
9049
9074
|
IsOptional44(),
|
|
9050
|
-
|
|
9075
|
+
IsString49({ message: "Mobile code must be a string." })
|
|
9051
9076
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
9052
9077
|
__decorateClass([
|
|
9053
9078
|
IsOptional44(),
|
|
9054
|
-
|
|
9079
|
+
IsString49({ message: "Phone number must be a string." })
|
|
9055
9080
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
9056
9081
|
__decorateClass([
|
|
9057
9082
|
IsOptional44(),
|
|
9058
9083
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9084
|
+
MinLength18(6, { message: "Password must be at least 6 characters." }),
|
|
9085
|
+
MaxLength23(32, { message: "Password must not exceed 32 characters." }),
|
|
9086
|
+
Matches14(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
9062
9087
|
message: "Password must include letters, numbers and symbols."
|
|
9063
9088
|
})
|
|
9064
9089
|
], UpdateClientDto.prototype, "password", 2);
|
|
9065
9090
|
__decorateClass([
|
|
9066
|
-
|
|
9067
|
-
|
|
9091
|
+
IsNotEmpty72({ message: "Please enter company name." }),
|
|
9092
|
+
IsString49()
|
|
9068
9093
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
9069
9094
|
__decorateClass([
|
|
9070
9095
|
IsOptional44(),
|
|
9071
|
-
|
|
9096
|
+
IsString49()
|
|
9072
9097
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
9073
9098
|
__decorateClass([
|
|
9074
9099
|
IsOptional44(),
|
|
9075
|
-
|
|
9100
|
+
IsString49()
|
|
9076
9101
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9077
9102
|
__decorateClass([
|
|
9078
9103
|
IsOptional44(),
|
|
9079
|
-
|
|
9104
|
+
IsString49({ message: "About company must be a string." })
|
|
9080
9105
|
], UpdateClientDto.prototype, "about", 2);
|
|
9081
9106
|
__decorateClass([
|
|
9082
9107
|
IsOptional44(),
|
|
9083
|
-
|
|
9108
|
+
IsString49({ message: "Website must be a string." })
|
|
9084
9109
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
9085
9110
|
__decorateClass([
|
|
9086
9111
|
IsOptional44(),
|
|
9087
|
-
|
|
9112
|
+
IsString49({ message: "Company address must be a string." })
|
|
9088
9113
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
9089
9114
|
__decorateClass([
|
|
9090
9115
|
IsOptional44(),
|
|
9091
|
-
|
|
9116
|
+
IsString49({ message: "Address line must be a string." })
|
|
9092
9117
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
9093
9118
|
__decorateClass([
|
|
9094
9119
|
IsOptional44(),
|
|
9095
|
-
|
|
9120
|
+
IsString49({ message: "Postal code must be a string." })
|
|
9096
9121
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
9097
9122
|
__decorateClass([
|
|
9098
9123
|
IsOptional44(),
|
|
@@ -9132,20 +9157,20 @@ __decorateClass([
|
|
|
9132
9157
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
9133
9158
|
|
|
9134
9159
|
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
9135
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
9160
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty73 } from "class-validator";
|
|
9136
9161
|
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
9137
9162
|
};
|
|
9138
9163
|
__decorateClass([
|
|
9139
|
-
|
|
9164
|
+
IsNotEmpty73({ message: "Job posting restriction status is required." }),
|
|
9140
9165
|
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
9141
9166
|
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
9142
9167
|
|
|
9143
9168
|
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
9144
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
9169
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty74 } from "class-validator";
|
|
9145
9170
|
var SkipServiceAgreementFlowDto = class {
|
|
9146
9171
|
};
|
|
9147
9172
|
__decorateClass([
|
|
9148
|
-
|
|
9173
|
+
IsNotEmpty74({ message: "Skip service agreement flag is required." }),
|
|
9149
9174
|
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
9150
9175
|
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
9151
9176
|
|
|
@@ -9156,7 +9181,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
9156
9181
|
};
|
|
9157
9182
|
|
|
9158
9183
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
9159
|
-
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as
|
|
9184
|
+
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as IsString50, IsNotEmpty as IsNotEmpty75, IsIn as IsIn3 } from "class-validator";
|
|
9160
9185
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
9161
9186
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
9162
9187
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -9168,14 +9193,14 @@ var FreelancerDeclarationDto = class {
|
|
|
9168
9193
|
};
|
|
9169
9194
|
__decorateClass([
|
|
9170
9195
|
IsOptional46(),
|
|
9171
|
-
|
|
9196
|
+
IsString50({ message: "UUID must be a string" })
|
|
9172
9197
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
9173
9198
|
__decorateClass([
|
|
9174
9199
|
IsEnum33(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
9175
9200
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
9176
9201
|
__decorateClass([
|
|
9177
|
-
|
|
9178
|
-
|
|
9202
|
+
IsNotEmpty75({ message: "Please accept the declaration " }),
|
|
9203
|
+
IsString50(),
|
|
9179
9204
|
IsIn3([
|
|
9180
9205
|
"true"
|
|
9181
9206
|
])
|
|
@@ -9191,12 +9216,12 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
9191
9216
|
};
|
|
9192
9217
|
|
|
9193
9218
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
9194
|
-
import { IsNotEmpty as
|
|
9219
|
+
import { IsNotEmpty as IsNotEmpty76, IsNumber as IsNumber12, IsOptional as IsOptional47 } from "class-validator";
|
|
9195
9220
|
import { Type as Type11 } from "class-transformer";
|
|
9196
9221
|
var MarkCandidateStatusDto = class {
|
|
9197
9222
|
};
|
|
9198
9223
|
__decorateClass([
|
|
9199
|
-
|
|
9224
|
+
IsNotEmpty76({ message: "Candidate ID is required." }),
|
|
9200
9225
|
IsNumber12({}, { message: "Candidate ID must be a number." }),
|
|
9201
9226
|
Type11(() => Number)
|
|
9202
9227
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
@@ -9234,11 +9259,11 @@ var CMS_PATTERNS = {
|
|
|
9234
9259
|
};
|
|
9235
9260
|
|
|
9236
9261
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
9237
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
9262
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty77, IsOptional as IsOptional49 } from "class-validator";
|
|
9238
9263
|
var CreateCmsDto = class {
|
|
9239
9264
|
};
|
|
9240
9265
|
__decorateClass([
|
|
9241
|
-
|
|
9266
|
+
IsNotEmpty77({ message: "Please enter name." })
|
|
9242
9267
|
], CreateCmsDto.prototype, "title", 2);
|
|
9243
9268
|
__decorateClass([
|
|
9244
9269
|
IsOptional49()
|
|
@@ -9249,23 +9274,23 @@ __decorateClass([
|
|
|
9249
9274
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
9250
9275
|
|
|
9251
9276
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
9252
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
9277
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty78 } from "class-validator";
|
|
9253
9278
|
var UpdateCmsStatusDto = class {
|
|
9254
9279
|
};
|
|
9255
9280
|
__decorateClass([
|
|
9256
|
-
|
|
9281
|
+
IsNotEmpty78({ message: "Please specify cms status." }),
|
|
9257
9282
|
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
9258
9283
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
9259
9284
|
|
|
9260
9285
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
9261
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as
|
|
9286
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty79, IsOptional as IsOptional50 } from "class-validator";
|
|
9262
9287
|
var UpdateCmsDto = class {
|
|
9263
9288
|
};
|
|
9264
9289
|
__decorateClass([
|
|
9265
9290
|
IsOptional50()
|
|
9266
9291
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
9267
9292
|
__decorateClass([
|
|
9268
|
-
|
|
9293
|
+
IsNotEmpty79({ message: "Please enter name." })
|
|
9269
9294
|
], UpdateCmsDto.prototype, "title", 2);
|
|
9270
9295
|
__decorateClass([
|
|
9271
9296
|
IsOptional50()
|
|
@@ -9308,13 +9333,13 @@ var ADMIN_JOB_PATTERN = {
|
|
|
9308
9333
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
9309
9334
|
import { Type as Type13 } from "class-transformer";
|
|
9310
9335
|
import {
|
|
9311
|
-
IsString as
|
|
9336
|
+
IsString as IsString51,
|
|
9312
9337
|
IsEnum as IsEnum34,
|
|
9313
9338
|
IsInt as IsInt10,
|
|
9314
9339
|
IsOptional as IsOptional51,
|
|
9315
9340
|
IsArray as IsArray18,
|
|
9316
9341
|
IsDateString as IsDateString3,
|
|
9317
|
-
IsNotEmpty as
|
|
9342
|
+
IsNotEmpty as IsNotEmpty80,
|
|
9318
9343
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9319
9344
|
Min as Min7,
|
|
9320
9345
|
IsNumber as IsNumber14
|
|
@@ -9334,17 +9359,17 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
9334
9359
|
var AdminCreateJobInformationDto = class {
|
|
9335
9360
|
};
|
|
9336
9361
|
__decorateClass([
|
|
9337
|
-
|
|
9338
|
-
|
|
9362
|
+
IsString51({ message: "Job role must be a string." }),
|
|
9363
|
+
IsNotEmpty80({ message: "Job role is required." })
|
|
9339
9364
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
9340
9365
|
__decorateClass([
|
|
9341
9366
|
IsOptional51(),
|
|
9342
|
-
|
|
9367
|
+
IsString51({ message: "Note must be a string." })
|
|
9343
9368
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
9344
9369
|
__decorateClass([
|
|
9345
9370
|
IsArray18({ message: "Skills must be an array of skill names." }),
|
|
9346
9371
|
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
9347
|
-
|
|
9372
|
+
IsString51({ each: true, message: "Each skill must be a valid string." })
|
|
9348
9373
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
9349
9374
|
__decorateClass([
|
|
9350
9375
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
@@ -9365,16 +9390,16 @@ __decorateClass([
|
|
|
9365
9390
|
})
|
|
9366
9391
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9367
9392
|
__decorateClass([
|
|
9368
|
-
|
|
9369
|
-
|
|
9393
|
+
IsString51({ message: "Onboarding Days must be a string." }),
|
|
9394
|
+
IsNotEmpty80({ message: "Onboarding Days is required." })
|
|
9370
9395
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9371
9396
|
__decorateClass([
|
|
9372
|
-
|
|
9373
|
-
|
|
9397
|
+
IsString51({ message: "Communication skills must be a string." }),
|
|
9398
|
+
IsNotEmpty80({ message: "Communication skills are required." })
|
|
9374
9399
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9375
9400
|
__decorateClass([
|
|
9376
|
-
|
|
9377
|
-
|
|
9401
|
+
IsString51({ message: "Currency must be a string." }),
|
|
9402
|
+
IsNotEmpty80({ message: "Currency is required." })
|
|
9378
9403
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
9379
9404
|
__decorateClass([
|
|
9380
9405
|
Type13(() => Number),
|
|
@@ -9398,7 +9423,7 @@ __decorateClass([
|
|
|
9398
9423
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9399
9424
|
__decorateClass([
|
|
9400
9425
|
IsOptional51(),
|
|
9401
|
-
|
|
9426
|
+
IsString51({ message: "Additional comment must be a string." })
|
|
9402
9427
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
9403
9428
|
__decorateClass([
|
|
9404
9429
|
IsOptional51(),
|
|
@@ -9419,13 +9444,13 @@ __decorateClass([
|
|
|
9419
9444
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
9420
9445
|
import { Type as Type14 } from "class-transformer";
|
|
9421
9446
|
import {
|
|
9422
|
-
IsString as
|
|
9447
|
+
IsString as IsString52,
|
|
9423
9448
|
IsEnum as IsEnum35,
|
|
9424
9449
|
IsInt as IsInt11,
|
|
9425
9450
|
IsOptional as IsOptional52,
|
|
9426
9451
|
IsArray as IsArray19,
|
|
9427
9452
|
IsDateString as IsDateString4,
|
|
9428
|
-
IsNotEmpty as
|
|
9453
|
+
IsNotEmpty as IsNotEmpty81,
|
|
9429
9454
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9430
9455
|
Min as Min8,
|
|
9431
9456
|
IsNumber as IsNumber15
|
|
@@ -9445,17 +9470,17 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
9445
9470
|
var AdminUpdateJobInformationDto = class {
|
|
9446
9471
|
};
|
|
9447
9472
|
__decorateClass([
|
|
9448
|
-
|
|
9449
|
-
|
|
9473
|
+
IsString52({ message: "Job role must be a string." }),
|
|
9474
|
+
IsNotEmpty81({ message: "Job role is required." })
|
|
9450
9475
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9451
9476
|
__decorateClass([
|
|
9452
9477
|
IsOptional52(),
|
|
9453
|
-
|
|
9478
|
+
IsString52({ message: "Note must be a string." })
|
|
9454
9479
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
9455
9480
|
__decorateClass([
|
|
9456
9481
|
IsArray19({ message: "Skills must be an array of skill names." }),
|
|
9457
9482
|
ArrayNotEmpty11({ message: "At least one skill must be provided." }),
|
|
9458
|
-
|
|
9483
|
+
IsString52({ each: true, message: "Each skill must be a valid string." })
|
|
9459
9484
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
9460
9485
|
__decorateClass([
|
|
9461
9486
|
IsInt11({ message: "Openings must be a valid integer." }),
|
|
@@ -9476,16 +9501,16 @@ __decorateClass([
|
|
|
9476
9501
|
})
|
|
9477
9502
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9478
9503
|
__decorateClass([
|
|
9479
|
-
|
|
9480
|
-
|
|
9504
|
+
IsString52({ message: "Onboarding Days must be a string." }),
|
|
9505
|
+
IsNotEmpty81({ message: "Onboarding Days is required." })
|
|
9481
9506
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9482
9507
|
__decorateClass([
|
|
9483
|
-
|
|
9484
|
-
|
|
9508
|
+
IsString52({ message: "Communication skills must be a string." }),
|
|
9509
|
+
IsNotEmpty81({ message: "Communication skills are required." })
|
|
9485
9510
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9486
9511
|
__decorateClass([
|
|
9487
|
-
|
|
9488
|
-
|
|
9512
|
+
IsString52({ message: "Currency must be a string." }),
|
|
9513
|
+
IsNotEmpty81({ message: "Currency is required." })
|
|
9489
9514
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9490
9515
|
__decorateClass([
|
|
9491
9516
|
Type14(() => Number),
|
|
@@ -9509,7 +9534,7 @@ __decorateClass([
|
|
|
9509
9534
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9510
9535
|
__decorateClass([
|
|
9511
9536
|
IsOptional52(),
|
|
9512
|
-
|
|
9537
|
+
IsString52({ message: "Additional comment must be a string." })
|
|
9513
9538
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9514
9539
|
__decorateClass([
|
|
9515
9540
|
IsOptional52(),
|
|
@@ -9529,8 +9554,8 @@ __decorateClass([
|
|
|
9529
9554
|
|
|
9530
9555
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9531
9556
|
import {
|
|
9532
|
-
IsString as
|
|
9533
|
-
IsNotEmpty as
|
|
9557
|
+
IsString as IsString53,
|
|
9558
|
+
IsNotEmpty as IsNotEmpty82,
|
|
9534
9559
|
IsArray as IsArray20,
|
|
9535
9560
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9536
9561
|
IsNumber as IsNumber16,
|
|
@@ -9538,7 +9563,7 @@ import {
|
|
|
9538
9563
|
IsEnum as IsEnum36,
|
|
9539
9564
|
Min as Min9,
|
|
9540
9565
|
ValidateIf as ValidateIf11,
|
|
9541
|
-
MaxLength as
|
|
9566
|
+
MaxLength as MaxLength24,
|
|
9542
9567
|
Max as Max5,
|
|
9543
9568
|
IsInt as IsInt12
|
|
9544
9569
|
} from "class-validator";
|
|
@@ -9600,19 +9625,19 @@ __decorateClass([
|
|
|
9600
9625
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9601
9626
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9602
9627
|
__decorateClass([
|
|
9603
|
-
|
|
9604
|
-
|
|
9628
|
+
IsNotEmpty82({ message: "Please enter job role" }),
|
|
9629
|
+
IsString53({ message: "Job role must be a string" })
|
|
9605
9630
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9606
9631
|
__decorateClass([
|
|
9607
9632
|
IsOptional53(),
|
|
9608
|
-
|
|
9633
|
+
IsString53({ message: "Note must be a string" })
|
|
9609
9634
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9610
9635
|
__decorateClass([
|
|
9611
9636
|
ValidateIf11((o) => !o.isDraft),
|
|
9612
9637
|
IsOptional53(),
|
|
9613
9638
|
IsArray20({ message: "Skills must be an array" }),
|
|
9614
9639
|
ArrayNotEmpty12({ message: "Please select at least one skill" }),
|
|
9615
|
-
|
|
9640
|
+
IsString53({ each: true, message: "Each skill must be a string" }),
|
|
9616
9641
|
Type15(() => String)
|
|
9617
9642
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9618
9643
|
__decorateClass([
|
|
@@ -9661,7 +9686,7 @@ __decorateClass([
|
|
|
9661
9686
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9662
9687
|
__decorateClass([
|
|
9663
9688
|
IsOptional53(),
|
|
9664
|
-
|
|
9689
|
+
IsString53({ message: "Academic qualification must be a string" })
|
|
9665
9690
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9666
9691
|
__decorateClass([
|
|
9667
9692
|
ValidateIf11((o) => !o.isDraft),
|
|
@@ -9673,21 +9698,21 @@ __decorateClass([
|
|
|
9673
9698
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9674
9699
|
__decorateClass([
|
|
9675
9700
|
ValidateIf11((o) => !o.isDraft),
|
|
9676
|
-
|
|
9677
|
-
|
|
9701
|
+
IsNotEmpty82({ message: "Please enter the years of experience" }),
|
|
9702
|
+
IsString53({ message: "Years of experience must be a string" })
|
|
9678
9703
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9679
9704
|
__decorateClass([
|
|
9680
9705
|
ValidateIf11((o) => !o.isDraft),
|
|
9681
|
-
|
|
9682
|
-
|
|
9706
|
+
IsNotEmpty82({ message: "Please enter the years of experience upto" }),
|
|
9707
|
+
IsString53({ message: "Years of experience must be a string" })
|
|
9683
9708
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9684
9709
|
__decorateClass([
|
|
9685
9710
|
IsOptional53(),
|
|
9686
|
-
|
|
9711
|
+
IsString53({ message: "Business industry must be a string" })
|
|
9687
9712
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9688
9713
|
__decorateClass([
|
|
9689
9714
|
IsOptional53(),
|
|
9690
|
-
|
|
9715
|
+
IsString53({ message: "Project name must be a string" })
|
|
9691
9716
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9692
9717
|
__decorateClass([
|
|
9693
9718
|
IsOptional53()
|
|
@@ -9734,13 +9759,13 @@ __decorateClass([
|
|
|
9734
9759
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9735
9760
|
__decorateClass([
|
|
9736
9761
|
IsOptional53(),
|
|
9737
|
-
|
|
9738
|
-
|
|
9762
|
+
IsString53({ message: "Additional comment must be a string" }),
|
|
9763
|
+
MaxLength24(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9739
9764
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9740
9765
|
__decorateClass([
|
|
9741
9766
|
ValidateIf11((o) => !o.isDraft),
|
|
9742
9767
|
IsArray20({ message: "Good to have skills must be an array" }),
|
|
9743
|
-
|
|
9768
|
+
IsString53({ each: true, message: "Each skill must be a string" }),
|
|
9744
9769
|
IsOptional53(),
|
|
9745
9770
|
Type15(() => String)
|
|
9746
9771
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -9763,7 +9788,7 @@ var LEAD_PATTERN = {
|
|
|
9763
9788
|
};
|
|
9764
9789
|
|
|
9765
9790
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9766
|
-
import { IsString as
|
|
9791
|
+
import { IsString as IsString54, IsEmail as IsEmail19, IsOptional as IsOptional54, IsEnum as IsEnum37 } from "class-validator";
|
|
9767
9792
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9768
9793
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9769
9794
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9772,20 +9797,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9772
9797
|
var CreateLeadDto = class {
|
|
9773
9798
|
};
|
|
9774
9799
|
__decorateClass([
|
|
9775
|
-
|
|
9800
|
+
IsString54({ message: "Name must be a string" })
|
|
9776
9801
|
], CreateLeadDto.prototype, "name", 2);
|
|
9777
9802
|
__decorateClass([
|
|
9778
9803
|
IsEmail19({}, { message: "Invalid email address" })
|
|
9779
9804
|
], CreateLeadDto.prototype, "email", 2);
|
|
9780
9805
|
__decorateClass([
|
|
9781
|
-
|
|
9806
|
+
IsString54({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9782
9807
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9783
9808
|
__decorateClass([
|
|
9784
|
-
|
|
9809
|
+
IsString54({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9785
9810
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9786
9811
|
__decorateClass([
|
|
9787
9812
|
IsOptional54(),
|
|
9788
|
-
|
|
9813
|
+
IsString54({ message: "Description must be a string" })
|
|
9789
9814
|
], CreateLeadDto.prototype, "description", 2);
|
|
9790
9815
|
__decorateClass([
|
|
9791
9816
|
IsEnum37(CategoryEmumDto, {
|
|
@@ -9810,16 +9835,16 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9810
9835
|
};
|
|
9811
9836
|
|
|
9812
9837
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9813
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as
|
|
9838
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty83, IsOptional as IsOptional55, IsString as IsString55 } from "class-validator";
|
|
9814
9839
|
var CreateAdminRoleDto = class {
|
|
9815
9840
|
};
|
|
9816
9841
|
__decorateClass([
|
|
9817
|
-
|
|
9818
|
-
|
|
9842
|
+
IsNotEmpty83({ message: "Please enter admin role name." }),
|
|
9843
|
+
IsString55({ message: "Role name must be a string." })
|
|
9819
9844
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9820
9845
|
__decorateClass([
|
|
9821
9846
|
IsOptional55(),
|
|
9822
|
-
|
|
9847
|
+
IsString55({ message: "Role description must be a string." })
|
|
9823
9848
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9824
9849
|
__decorateClass([
|
|
9825
9850
|
IsOptional55(),
|
|
@@ -9827,16 +9852,16 @@ __decorateClass([
|
|
|
9827
9852
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9828
9853
|
|
|
9829
9854
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9830
|
-
import { IsBoolean as IsBoolean19, IsNotEmpty as
|
|
9855
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty84, IsOptional as IsOptional56, IsString as IsString56 } from "class-validator";
|
|
9831
9856
|
var UpdateAdminRoleDto = class {
|
|
9832
9857
|
};
|
|
9833
9858
|
__decorateClass([
|
|
9834
|
-
|
|
9835
|
-
|
|
9859
|
+
IsNotEmpty84({ message: "Please enter admin role name." }),
|
|
9860
|
+
IsString56({ message: "Role name must be a string." })
|
|
9836
9861
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9837
9862
|
__decorateClass([
|
|
9838
9863
|
IsOptional56(),
|
|
9839
|
-
|
|
9864
|
+
IsString56({ message: "Role description must be a string." })
|
|
9840
9865
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9841
9866
|
__decorateClass([
|
|
9842
9867
|
IsOptional56(),
|
|
@@ -9844,24 +9869,24 @@ __decorateClass([
|
|
|
9844
9869
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9845
9870
|
|
|
9846
9871
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9847
|
-
import { IsNotEmpty as
|
|
9872
|
+
import { IsNotEmpty as IsNotEmpty85, IsString as IsString57 } from "class-validator";
|
|
9848
9873
|
var AttachPermissionsToRoleDto = class {
|
|
9849
9874
|
};
|
|
9850
9875
|
__decorateClass([
|
|
9851
|
-
|
|
9852
|
-
|
|
9876
|
+
IsNotEmpty85({ message: "Please enter admin role ID." }),
|
|
9877
|
+
IsString57({ message: "Role ID must be a string." })
|
|
9853
9878
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9854
9879
|
__decorateClass([
|
|
9855
|
-
|
|
9856
|
-
|
|
9880
|
+
IsNotEmpty85({ message: "Please enter permission IDs." }),
|
|
9881
|
+
IsString57({ message: "Permission IDs must be a comma-separated string." })
|
|
9857
9882
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9858
9883
|
|
|
9859
9884
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9860
|
-
import { IsBoolean as IsBoolean20, IsNotEmpty as
|
|
9885
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty86 } from "class-validator";
|
|
9861
9886
|
var UpdateAdminRoleStatusDto = class {
|
|
9862
9887
|
};
|
|
9863
9888
|
__decorateClass([
|
|
9864
|
-
|
|
9889
|
+
IsNotEmpty86({ message: "Please specify admin role status." }),
|
|
9865
9890
|
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9866
9891
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9867
9892
|
|
|
@@ -9944,8 +9969,8 @@ var INTERVIEW_PATTERN = {
|
|
|
9944
9969
|
|
|
9945
9970
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9946
9971
|
import {
|
|
9947
|
-
IsString as
|
|
9948
|
-
IsNotEmpty as
|
|
9972
|
+
IsString as IsString58,
|
|
9973
|
+
IsNotEmpty as IsNotEmpty87,
|
|
9949
9974
|
IsArray as IsArray21,
|
|
9950
9975
|
ArrayNotEmpty as ArrayNotEmpty13,
|
|
9951
9976
|
IsEmail as IsEmail20,
|
|
@@ -9975,8 +10000,8 @@ __decorateClass([
|
|
|
9975
10000
|
var NewCandidateDto = class {
|
|
9976
10001
|
};
|
|
9977
10002
|
__decorateClass([
|
|
9978
|
-
|
|
9979
|
-
|
|
10003
|
+
IsNotEmpty87({ message: "Please enter the candidate name" }),
|
|
10004
|
+
IsString58({ message: "Name must be a string" })
|
|
9980
10005
|
], NewCandidateDto.prototype, "name", 2);
|
|
9981
10006
|
__decorateClass([
|
|
9982
10007
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
@@ -10014,8 +10039,8 @@ __decorateClass([
|
|
|
10014
10039
|
|
|
10015
10040
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
10016
10041
|
import {
|
|
10017
|
-
IsString as
|
|
10018
|
-
IsNotEmpty as
|
|
10042
|
+
IsString as IsString59,
|
|
10043
|
+
IsNotEmpty as IsNotEmpty88,
|
|
10019
10044
|
IsArray as IsArray22,
|
|
10020
10045
|
IsUUID as IsUUID21,
|
|
10021
10046
|
IsEnum as IsEnum39,
|
|
@@ -10035,35 +10060,35 @@ var ExistingCandidateDto2 = class {
|
|
|
10035
10060
|
};
|
|
10036
10061
|
__decorateClass([
|
|
10037
10062
|
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
10038
|
-
|
|
10063
|
+
IsNotEmpty88({ message: "Candidate ID is required." })
|
|
10039
10064
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
10040
10065
|
__decorateClass([
|
|
10041
10066
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10042
10067
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
10043
10068
|
}),
|
|
10044
|
-
|
|
10069
|
+
IsNotEmpty88({ message: "Candidate type is required." })
|
|
10045
10070
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
10046
10071
|
var NewCandidateDto2 = class {
|
|
10047
10072
|
};
|
|
10048
10073
|
__decorateClass([
|
|
10049
|
-
|
|
10050
|
-
|
|
10074
|
+
IsString59({ message: "Name must be a string." }),
|
|
10075
|
+
IsNotEmpty88({ message: "Candidate name is required." })
|
|
10051
10076
|
], NewCandidateDto2.prototype, "name", 2);
|
|
10052
10077
|
__decorateClass([
|
|
10053
10078
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
10054
|
-
|
|
10079
|
+
IsNotEmpty88({ message: "Email is required." })
|
|
10055
10080
|
], NewCandidateDto2.prototype, "email", 2);
|
|
10056
10081
|
__decorateClass([
|
|
10057
10082
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10058
10083
|
message: "Type must be NEW for new candidates."
|
|
10059
10084
|
}),
|
|
10060
|
-
|
|
10085
|
+
IsNotEmpty88({ message: "Candidate type is required." })
|
|
10061
10086
|
], NewCandidateDto2.prototype, "type", 2);
|
|
10062
10087
|
var SendInterviewInviteDto = class {
|
|
10063
10088
|
};
|
|
10064
10089
|
__decorateClass([
|
|
10065
10090
|
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
10066
|
-
|
|
10091
|
+
IsNotEmpty88({ message: "Job ID is required." })
|
|
10067
10092
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
10068
10093
|
__decorateClass([
|
|
10069
10094
|
IsArray22({ message: "Existing candidates must be an array." }),
|
|
@@ -10080,8 +10105,8 @@ __decorateClass([
|
|
|
10080
10105
|
|
|
10081
10106
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
10082
10107
|
import {
|
|
10083
|
-
IsString as
|
|
10084
|
-
IsNotEmpty as
|
|
10108
|
+
IsString as IsString60,
|
|
10109
|
+
IsNotEmpty as IsNotEmpty89,
|
|
10085
10110
|
IsEmail as IsEmail22,
|
|
10086
10111
|
IsNumber as IsNumber17
|
|
10087
10112
|
} from "class-validator";
|
|
@@ -10089,11 +10114,11 @@ var CreateF2FInterviewDto = class {
|
|
|
10089
10114
|
};
|
|
10090
10115
|
__decorateClass([
|
|
10091
10116
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
10092
|
-
|
|
10117
|
+
IsNotEmpty89({ message: "Invitee email is required." })
|
|
10093
10118
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
10094
10119
|
__decorateClass([
|
|
10095
|
-
|
|
10096
|
-
|
|
10120
|
+
IsString60({ message: "Invitee name must be a string." }),
|
|
10121
|
+
IsNotEmpty89({ message: "Invitee name is required." })
|
|
10097
10122
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
10098
10123
|
__decorateClass([
|
|
10099
10124
|
IsNumber17({}, { message: "Interview ID must be a number." })
|
|
@@ -10104,8 +10129,8 @@ __decorateClass([
|
|
|
10104
10129
|
|
|
10105
10130
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
10106
10131
|
import {
|
|
10107
|
-
IsString as
|
|
10108
|
-
IsNotEmpty as
|
|
10132
|
+
IsString as IsString61,
|
|
10133
|
+
IsNotEmpty as IsNotEmpty90,
|
|
10109
10134
|
IsEmail as IsEmail23,
|
|
10110
10135
|
IsNumber as IsNumber18
|
|
10111
10136
|
} from "class-validator";
|
|
@@ -10113,11 +10138,11 @@ var CreateF2FInterviewDirectDto = class {
|
|
|
10113
10138
|
};
|
|
10114
10139
|
__decorateClass([
|
|
10115
10140
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
10116
|
-
|
|
10141
|
+
IsNotEmpty90({ message: "Invitee email is required." })
|
|
10117
10142
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
10118
10143
|
__decorateClass([
|
|
10119
|
-
|
|
10120
|
-
|
|
10144
|
+
IsString61({ message: "Invitee name must be a string." }),
|
|
10145
|
+
IsNotEmpty90({ message: "Invitee name is required." })
|
|
10121
10146
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
10122
10147
|
__decorateClass([
|
|
10123
10148
|
IsNumber18({}, { message: "Job ID must be a number." })
|
|
@@ -10128,8 +10153,8 @@ __decorateClass([
|
|
|
10128
10153
|
|
|
10129
10154
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
10130
10155
|
import {
|
|
10131
|
-
IsString as
|
|
10132
|
-
IsNotEmpty as
|
|
10156
|
+
IsString as IsString62,
|
|
10157
|
+
IsNotEmpty as IsNotEmpty91,
|
|
10133
10158
|
IsOptional as IsOptional59,
|
|
10134
10159
|
IsUUID as IsUUID22
|
|
10135
10160
|
} from "class-validator";
|
|
@@ -10137,60 +10162,60 @@ var CreateF2FInterviewRescheduleRequestDto = class {
|
|
|
10137
10162
|
};
|
|
10138
10163
|
__decorateClass([
|
|
10139
10164
|
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
10140
|
-
|
|
10165
|
+
IsNotEmpty91({ message: "F2F Interview ID is required." })
|
|
10141
10166
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
10142
10167
|
__decorateClass([
|
|
10143
|
-
|
|
10168
|
+
IsNotEmpty91({ message: "Rescheduled date is required." })
|
|
10144
10169
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
10145
10170
|
__decorateClass([
|
|
10146
|
-
|
|
10147
|
-
|
|
10171
|
+
IsString62({ message: "Rescheduled slot must be a string." }),
|
|
10172
|
+
IsNotEmpty91({ message: "Rescheduled slot is required." })
|
|
10148
10173
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
10149
10174
|
__decorateClass([
|
|
10150
10175
|
IsOptional59(),
|
|
10151
|
-
|
|
10176
|
+
IsString62({ message: "Freelancer request reason must be a string." })
|
|
10152
10177
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10153
10178
|
|
|
10154
10179
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
10155
10180
|
import {
|
|
10156
|
-
IsString as
|
|
10157
|
-
IsNotEmpty as
|
|
10181
|
+
IsString as IsString63,
|
|
10182
|
+
IsNotEmpty as IsNotEmpty92
|
|
10158
10183
|
} from "class-validator";
|
|
10159
10184
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
10160
10185
|
};
|
|
10161
10186
|
__decorateClass([
|
|
10162
|
-
|
|
10187
|
+
IsNotEmpty92({ message: "AI Interview ID is required." })
|
|
10163
10188
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
10164
10189
|
__decorateClass([
|
|
10165
|
-
|
|
10190
|
+
IsString63({ message: "Freelancer reason must be a string." })
|
|
10166
10191
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10167
10192
|
|
|
10168
10193
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
10169
10194
|
import {
|
|
10170
|
-
IsString as
|
|
10195
|
+
IsString as IsString64
|
|
10171
10196
|
} from "class-validator";
|
|
10172
10197
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
10173
10198
|
};
|
|
10174
10199
|
__decorateClass([
|
|
10175
|
-
|
|
10200
|
+
IsString64({ message: "Client reject reason must be a string." })
|
|
10176
10201
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10177
10202
|
|
|
10178
10203
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
10179
|
-
import { IsOptional as IsOptional61, IsString as
|
|
10204
|
+
import { IsOptional as IsOptional61, IsString as IsString65 } from "class-validator";
|
|
10180
10205
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
10181
10206
|
};
|
|
10182
10207
|
__decorateClass([
|
|
10183
10208
|
IsOptional61(),
|
|
10184
|
-
|
|
10209
|
+
IsString65()
|
|
10185
10210
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10186
10211
|
|
|
10187
10212
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
10188
|
-
import { IsNotEmpty as
|
|
10213
|
+
import { IsNotEmpty as IsNotEmpty93, IsString as IsString66, IsOptional as IsOptional62, IsObject as IsObject6 } from "class-validator";
|
|
10189
10214
|
var CaptureAiInterviewResultPublicDto = class {
|
|
10190
10215
|
};
|
|
10191
10216
|
__decorateClass([
|
|
10192
|
-
|
|
10193
|
-
|
|
10217
|
+
IsNotEmpty93({ message: "AI Interview UUID is required" }),
|
|
10218
|
+
IsString66({ message: "AI Interview UUID must be a string" })
|
|
10194
10219
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
10195
10220
|
__decorateClass([
|
|
10196
10221
|
IsOptional62(),
|
|
@@ -10198,33 +10223,33 @@ __decorateClass([
|
|
|
10198
10223
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
10199
10224
|
__decorateClass([
|
|
10200
10225
|
IsOptional62(),
|
|
10201
|
-
|
|
10226
|
+
IsString66()
|
|
10202
10227
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
10203
10228
|
|
|
10204
10229
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
10205
|
-
import { IsNotEmpty as
|
|
10230
|
+
import { IsNotEmpty as IsNotEmpty94, IsString as IsString67, IsNumber as IsNumber19 } from "class-validator";
|
|
10206
10231
|
var CreateInterviewBasicInformationDto = class {
|
|
10207
10232
|
};
|
|
10208
10233
|
__decorateClass([
|
|
10209
|
-
|
|
10234
|
+
IsNotEmpty94({ message: "Job ID is required" }),
|
|
10210
10235
|
IsNumber19({}, { message: "Job ID must be a number" })
|
|
10211
10236
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
10212
10237
|
__decorateClass([
|
|
10213
|
-
|
|
10214
|
-
|
|
10238
|
+
IsNotEmpty94({ message: "Interview name is required" }),
|
|
10239
|
+
IsString67({ message: "Interview name must be a string" })
|
|
10215
10240
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
10216
10241
|
|
|
10217
10242
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
10218
|
-
import { IsOptional as IsOptional64, IsString as
|
|
10243
|
+
import { IsOptional as IsOptional64, IsString as IsString68, IsNumber as IsNumber20, IsArray as IsArray24, IsDateString as IsDateString8 } from "class-validator";
|
|
10219
10244
|
var UpdateInterviewBasicInformationDto = class {
|
|
10220
10245
|
};
|
|
10221
10246
|
__decorateClass([
|
|
10222
10247
|
IsOptional64(),
|
|
10223
|
-
|
|
10248
|
+
IsString68()
|
|
10224
10249
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
10225
10250
|
__decorateClass([
|
|
10226
10251
|
IsOptional64(),
|
|
10227
|
-
|
|
10252
|
+
IsString68()
|
|
10228
10253
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
10229
10254
|
__decorateClass([
|
|
10230
10255
|
IsOptional64(),
|
|
@@ -10241,15 +10266,15 @@ __decorateClass([
|
|
|
10241
10266
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
10242
10267
|
__decorateClass([
|
|
10243
10268
|
IsOptional64(),
|
|
10244
|
-
|
|
10269
|
+
IsString68()
|
|
10245
10270
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
10246
10271
|
|
|
10247
10272
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
10248
10273
|
import {
|
|
10249
10274
|
IsArray as IsArray25,
|
|
10250
|
-
IsNotEmpty as
|
|
10275
|
+
IsNotEmpty as IsNotEmpty95,
|
|
10251
10276
|
IsOptional as IsOptional65,
|
|
10252
|
-
IsString as
|
|
10277
|
+
IsString as IsString69,
|
|
10253
10278
|
ValidateNested as ValidateNested10
|
|
10254
10279
|
} from "class-validator";
|
|
10255
10280
|
import { Type as Type18 } from "class-transformer";
|
|
@@ -10259,18 +10284,18 @@ __decorateClass([
|
|
|
10259
10284
|
IsOptional65()
|
|
10260
10285
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
10261
10286
|
__decorateClass([
|
|
10262
|
-
|
|
10263
|
-
|
|
10287
|
+
IsString69({ message: "Skill name must be a string." }),
|
|
10288
|
+
IsNotEmpty95({ message: "Skill name is required." })
|
|
10264
10289
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
10265
10290
|
__decorateClass([
|
|
10266
10291
|
IsOptional65(),
|
|
10267
|
-
|
|
10292
|
+
IsString69({ message: "Skill description must be a string." })
|
|
10268
10293
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
10269
10294
|
var CreateInterviewSkillsDto = class {
|
|
10270
10295
|
};
|
|
10271
10296
|
__decorateClass([
|
|
10272
10297
|
IsArray25({ message: "Skills must be an array." }),
|
|
10273
|
-
|
|
10298
|
+
IsNotEmpty95({ message: "At least one skill is required." }),
|
|
10274
10299
|
ValidateNested10({ each: true }),
|
|
10275
10300
|
Type18(() => InterviewSkillItemDto)
|
|
10276
10301
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
@@ -10278,9 +10303,9 @@ __decorateClass([
|
|
|
10278
10303
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
10279
10304
|
import {
|
|
10280
10305
|
IsArray as IsArray26,
|
|
10281
|
-
IsNotEmpty as
|
|
10306
|
+
IsNotEmpty as IsNotEmpty96,
|
|
10282
10307
|
IsOptional as IsOptional66,
|
|
10283
|
-
IsString as
|
|
10308
|
+
IsString as IsString70,
|
|
10284
10309
|
IsUUID as IsUUID24,
|
|
10285
10310
|
ValidateNested as ValidateNested11
|
|
10286
10311
|
} from "class-validator";
|
|
@@ -10292,8 +10317,8 @@ __decorateClass([
|
|
|
10292
10317
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10293
10318
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
10294
10319
|
__decorateClass([
|
|
10295
|
-
|
|
10296
|
-
|
|
10320
|
+
IsString70({ message: "Question must be a string." }),
|
|
10321
|
+
IsNotEmpty96({ message: "Question is required." })
|
|
10297
10322
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
10298
10323
|
var AiQuestionItemDto = class {
|
|
10299
10324
|
};
|
|
@@ -10302,13 +10327,13 @@ __decorateClass([
|
|
|
10302
10327
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10303
10328
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
10304
10329
|
__decorateClass([
|
|
10305
|
-
|
|
10306
|
-
|
|
10330
|
+
IsString70({ message: "Question must be a string." }),
|
|
10331
|
+
IsNotEmpty96({ message: "Question is required." })
|
|
10307
10332
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
10308
10333
|
__decorateClass([
|
|
10309
10334
|
IsOptional66(),
|
|
10310
10335
|
IsArray26({ message: "Concepts must be an array." }),
|
|
10311
|
-
|
|
10336
|
+
IsString70({ each: true, message: "Each concept must be a string." })
|
|
10312
10337
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
10313
10338
|
var CreateInterviewQuestionsDto = class {
|
|
10314
10339
|
};
|
|
@@ -10329,14 +10354,14 @@ __decorateClass([
|
|
|
10329
10354
|
import {
|
|
10330
10355
|
IsBoolean as IsBoolean21,
|
|
10331
10356
|
IsOptional as IsOptional67,
|
|
10332
|
-
IsString as
|
|
10357
|
+
IsString as IsString71
|
|
10333
10358
|
} from "class-validator";
|
|
10334
10359
|
import { Type as Type20 } from "class-transformer";
|
|
10335
10360
|
var UpdateInterviewSettingDto = class {
|
|
10336
10361
|
};
|
|
10337
10362
|
__decorateClass([
|
|
10338
10363
|
IsOptional67(),
|
|
10339
|
-
|
|
10364
|
+
IsString71({ message: "Interview language must be a string." })
|
|
10340
10365
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
10341
10366
|
__decorateClass([
|
|
10342
10367
|
IsOptional67(),
|
|
@@ -10345,32 +10370,32 @@ __decorateClass([
|
|
|
10345
10370
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
10346
10371
|
__decorateClass([
|
|
10347
10372
|
IsOptional67(),
|
|
10348
|
-
|
|
10373
|
+
IsString71({ message: "Interview duration must be a string." })
|
|
10349
10374
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
10350
10375
|
__decorateClass([
|
|
10351
10376
|
IsOptional67(),
|
|
10352
|
-
|
|
10377
|
+
IsString71({ message: "Interview validity period must be a string." })
|
|
10353
10378
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
10354
10379
|
__decorateClass([
|
|
10355
10380
|
IsOptional67(),
|
|
10356
|
-
|
|
10381
|
+
IsString71({ message: "Maximum attempts allowed must be a string." })
|
|
10357
10382
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
10358
10383
|
__decorateClass([
|
|
10359
10384
|
IsOptional67(),
|
|
10360
|
-
|
|
10385
|
+
IsString71({ message: "Start interview message must be a string." })
|
|
10361
10386
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
10362
10387
|
__decorateClass([
|
|
10363
10388
|
IsOptional67(),
|
|
10364
|
-
|
|
10389
|
+
IsString71({ message: "End interview message must be a string." })
|
|
10365
10390
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
10366
10391
|
|
|
10367
10392
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
10368
|
-
import { IsOptional as IsOptional68, IsString as
|
|
10393
|
+
import { IsOptional as IsOptional68, IsString as IsString72 } from "class-validator";
|
|
10369
10394
|
var UpdateInterviewTypeInformationDto = class {
|
|
10370
10395
|
};
|
|
10371
10396
|
__decorateClass([
|
|
10372
10397
|
IsOptional68(),
|
|
10373
|
-
|
|
10398
|
+
IsString72({ message: "Interview type must be a string." })
|
|
10374
10399
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
10375
10400
|
|
|
10376
10401
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -10409,51 +10434,51 @@ var CONTRACT_PATTERN = {
|
|
|
10409
10434
|
};
|
|
10410
10435
|
|
|
10411
10436
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10412
|
-
import { IsEnum as IsEnum40, IsNotEmpty as
|
|
10437
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber21 } from "class-validator";
|
|
10413
10438
|
import { Type as Type21 } from "class-transformer";
|
|
10414
10439
|
var SignContractForClientDto = class {
|
|
10415
10440
|
};
|
|
10416
10441
|
__decorateClass([
|
|
10417
|
-
|
|
10442
|
+
IsNotEmpty97({ message: "Job Id is required." }),
|
|
10418
10443
|
Type21(() => Number),
|
|
10419
10444
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10420
10445
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10421
10446
|
__decorateClass([
|
|
10422
|
-
|
|
10447
|
+
IsNotEmpty97({ message: "Freelancer ID is required." }),
|
|
10423
10448
|
Type21(() => Number),
|
|
10424
10449
|
IsNumber21({}, { message: "Freelancer ID must be a number." })
|
|
10425
10450
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10426
10451
|
__decorateClass([
|
|
10427
|
-
|
|
10452
|
+
IsNotEmpty97({ message: "Contract type is required." }),
|
|
10428
10453
|
IsEnum40(ContractTypeEnum)
|
|
10429
10454
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10430
10455
|
|
|
10431
10456
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10432
|
-
import { IsEnum as IsEnum41, IsNotEmpty as
|
|
10457
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber22 } from "class-validator";
|
|
10433
10458
|
import { Type as Type22 } from "class-transformer";
|
|
10434
10459
|
var SignContractForFreelancerDto = class {
|
|
10435
10460
|
};
|
|
10436
10461
|
__decorateClass([
|
|
10437
|
-
|
|
10462
|
+
IsNotEmpty98({ message: "Job Id is required." }),
|
|
10438
10463
|
Type22(() => Number),
|
|
10439
10464
|
IsNumber22({}, { message: "Job ID must be a number." })
|
|
10440
10465
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10441
10466
|
__decorateClass([
|
|
10442
|
-
|
|
10467
|
+
IsNotEmpty98({ message: "Client ID is required." }),
|
|
10443
10468
|
Type22(() => Number),
|
|
10444
10469
|
IsNumber22({}, { message: "Client ID must be a number." })
|
|
10445
10470
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10446
10471
|
__decorateClass([
|
|
10447
|
-
|
|
10472
|
+
IsNotEmpty98({ message: "Contract type is required." }),
|
|
10448
10473
|
IsEnum41(ContractTypeEnum)
|
|
10449
10474
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10450
10475
|
|
|
10451
10476
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10452
10477
|
import {
|
|
10453
|
-
IsNotEmpty as
|
|
10478
|
+
IsNotEmpty as IsNotEmpty99,
|
|
10454
10479
|
IsNumber as IsNumber23,
|
|
10455
10480
|
IsOptional as IsOptional69,
|
|
10456
|
-
IsString as
|
|
10481
|
+
IsString as IsString73,
|
|
10457
10482
|
IsUUID as IsUUID25,
|
|
10458
10483
|
IsEnum as IsEnum42
|
|
10459
10484
|
} from "class-validator";
|
|
@@ -10478,11 +10503,11 @@ var GenerateContractDto = class {
|
|
|
10478
10503
|
};
|
|
10479
10504
|
__decorateClass([
|
|
10480
10505
|
IsNumber23({}, { message: "Job ID must be a number." }),
|
|
10481
|
-
|
|
10506
|
+
IsNotEmpty99({ message: "Job ID is required." })
|
|
10482
10507
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10483
10508
|
__decorateClass([
|
|
10484
10509
|
IsNumber23({}, { message: "Freelancer ID must be a number." }),
|
|
10485
|
-
|
|
10510
|
+
IsNotEmpty99({ message: "Freelancer ID is required." })
|
|
10486
10511
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10487
10512
|
__decorateClass([
|
|
10488
10513
|
IsOptional69(),
|
|
@@ -10491,19 +10516,19 @@ __decorateClass([
|
|
|
10491
10516
|
})
|
|
10492
10517
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10493
10518
|
__decorateClass([
|
|
10494
|
-
|
|
10495
|
-
|
|
10519
|
+
IsNotEmpty99({ message: "Contract start date is required." }),
|
|
10520
|
+
IsString73({ message: "Contract start date must be a string." })
|
|
10496
10521
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10497
10522
|
__decorateClass([
|
|
10498
|
-
|
|
10499
|
-
|
|
10523
|
+
IsNotEmpty99({ message: "Contract end date is required." }),
|
|
10524
|
+
IsString73({ message: "Contract end date must be a string." })
|
|
10500
10525
|
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
10501
10526
|
__decorateClass([
|
|
10502
10527
|
IsOptional69(),
|
|
10503
|
-
|
|
10528
|
+
IsString73({ message: "Contract invoicing cycle must be a string." })
|
|
10504
10529
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10505
10530
|
__decorateClass([
|
|
10506
|
-
|
|
10531
|
+
IsNotEmpty99({ message: "Preferred engagement type is required" }),
|
|
10507
10532
|
IsEnum42(PreferredEngagementTypeEnum, {
|
|
10508
10533
|
message: "Preferred engagement type must be FREELANCE."
|
|
10509
10534
|
})
|
|
@@ -10520,34 +10545,34 @@ __decorateClass([
|
|
|
10520
10545
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10521
10546
|
|
|
10522
10547
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10523
|
-
import { IsNotEmpty as
|
|
10548
|
+
import { IsNotEmpty as IsNotEmpty100, IsUUID as IsUUID26 } from "class-validator";
|
|
10524
10549
|
var EsignContractClientDto = class {
|
|
10525
10550
|
};
|
|
10526
10551
|
__decorateClass([
|
|
10527
10552
|
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10528
|
-
|
|
10553
|
+
IsNotEmpty100({ message: "Contract UUID is required." })
|
|
10529
10554
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10530
10555
|
|
|
10531
10556
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10532
|
-
import { IsNotEmpty as
|
|
10557
|
+
import { IsNotEmpty as IsNotEmpty101, IsUUID as IsUUID27 } from "class-validator";
|
|
10533
10558
|
var EsignContractFreelancerDto = class {
|
|
10534
10559
|
};
|
|
10535
10560
|
__decorateClass([
|
|
10536
10561
|
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10537
|
-
|
|
10562
|
+
IsNotEmpty101({ message: "Contract UUID is required." })
|
|
10538
10563
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10539
10564
|
|
|
10540
10565
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10541
|
-
import { IsNotEmpty as
|
|
10566
|
+
import { IsNotEmpty as IsNotEmpty102, IsUUID as IsUUID28 } from "class-validator";
|
|
10542
10567
|
var EscrowFundContractDto = class {
|
|
10543
10568
|
};
|
|
10544
10569
|
__decorateClass([
|
|
10545
10570
|
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10546
|
-
|
|
10571
|
+
IsNotEmpty102({ message: "Contract ID is required." })
|
|
10547
10572
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10548
10573
|
|
|
10549
10574
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10550
|
-
import { IsNotEmpty as
|
|
10575
|
+
import { IsNotEmpty as IsNotEmpty103, IsOptional as IsOptional70, IsUUID as IsUUID29, IsEnum as IsEnum43 } from "class-validator";
|
|
10551
10576
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10552
10577
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10553
10578
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10558,7 +10583,7 @@ var SendNdaContractToFreelancerDto = class {
|
|
|
10558
10583
|
};
|
|
10559
10584
|
__decorateClass([
|
|
10560
10585
|
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10561
|
-
|
|
10586
|
+
IsNotEmpty103({ message: "Contract UUID is required." })
|
|
10562
10587
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10563
10588
|
__decorateClass([
|
|
10564
10589
|
IsOptional70(),
|
|
@@ -10572,12 +10597,12 @@ __decorateClass([
|
|
|
10572
10597
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10573
10598
|
|
|
10574
10599
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10575
|
-
import { IsOptional as IsOptional71, IsString as
|
|
10600
|
+
import { IsOptional as IsOptional71, IsString as IsString75 } from "class-validator";
|
|
10576
10601
|
var RejectContractDto = class {
|
|
10577
10602
|
};
|
|
10578
10603
|
__decorateClass([
|
|
10579
10604
|
IsOptional71(),
|
|
10580
|
-
|
|
10605
|
+
IsString75({ message: "Reject reason must be a string." })
|
|
10581
10606
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10582
10607
|
|
|
10583
10608
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10602,55 +10627,55 @@ var STRIPE_PATTERN = {
|
|
|
10602
10627
|
|
|
10603
10628
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10604
10629
|
import {
|
|
10605
|
-
IsNotEmpty as
|
|
10630
|
+
IsNotEmpty as IsNotEmpty104
|
|
10606
10631
|
} from "class-validator";
|
|
10607
10632
|
var CreateCheckoutSessionDto = class {
|
|
10608
10633
|
};
|
|
10609
10634
|
__decorateClass([
|
|
10610
|
-
|
|
10635
|
+
IsNotEmpty104({ message: "Amount is required" })
|
|
10611
10636
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10612
10637
|
|
|
10613
10638
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10614
|
-
import { IsNotEmpty as
|
|
10639
|
+
import { IsNotEmpty as IsNotEmpty105, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString76 } from "class-validator";
|
|
10615
10640
|
var PreCheckoutCalculationDto = class {
|
|
10616
10641
|
};
|
|
10617
10642
|
__decorateClass([
|
|
10618
|
-
|
|
10643
|
+
IsNotEmpty105({ message: "Amount is required" }),
|
|
10619
10644
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10620
10645
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10621
10646
|
__decorateClass([
|
|
10622
10647
|
IsOptional72(),
|
|
10623
|
-
|
|
10648
|
+
IsString76()
|
|
10624
10649
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10625
10650
|
__decorateClass([
|
|
10626
10651
|
IsOptional72(),
|
|
10627
|
-
|
|
10652
|
+
IsString76()
|
|
10628
10653
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10629
10654
|
|
|
10630
10655
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10631
|
-
import { IsNotEmpty as
|
|
10656
|
+
import { IsNotEmpty as IsNotEmpty106, IsNumber as IsNumber25, IsOptional as IsOptional73, IsString as IsString77 } from "class-validator";
|
|
10632
10657
|
var ClientAddFundDto = class {
|
|
10633
10658
|
};
|
|
10634
10659
|
__decorateClass([
|
|
10635
|
-
|
|
10660
|
+
IsNotEmpty106({ message: "Amount is required" }),
|
|
10636
10661
|
IsNumber25({}, { message: "Amount must be a number" })
|
|
10637
10662
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10638
10663
|
__decorateClass([
|
|
10639
10664
|
IsOptional73(),
|
|
10640
|
-
|
|
10665
|
+
IsString77()
|
|
10641
10666
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10642
10667
|
__decorateClass([
|
|
10643
10668
|
IsOptional73(),
|
|
10644
|
-
|
|
10669
|
+
IsString77()
|
|
10645
10670
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10646
10671
|
|
|
10647
10672
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10648
|
-
import { IsNotEmpty as
|
|
10673
|
+
import { IsNotEmpty as IsNotEmpty107, IsUUID as IsUUID30 } from "class-validator";
|
|
10649
10674
|
var TransferFundsDto = class {
|
|
10650
10675
|
};
|
|
10651
10676
|
__decorateClass([
|
|
10652
10677
|
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10653
|
-
|
|
10678
|
+
IsNotEmpty107({ message: "Invoice UUID is required." })
|
|
10654
10679
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10655
10680
|
|
|
10656
10681
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10697,35 +10722,35 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10697
10722
|
import {
|
|
10698
10723
|
IsDateString as IsDateString10,
|
|
10699
10724
|
IsInt as IsInt13,
|
|
10700
|
-
IsNotEmpty as
|
|
10725
|
+
IsNotEmpty as IsNotEmpty108,
|
|
10701
10726
|
IsOptional as IsOptional74,
|
|
10702
|
-
IsString as
|
|
10703
|
-
Matches as
|
|
10727
|
+
IsString as IsString78,
|
|
10728
|
+
Matches as Matches15,
|
|
10704
10729
|
IsNumber as IsNumber26
|
|
10705
10730
|
} from "class-validator";
|
|
10706
10731
|
var CreateFreelancerTimesheetDto = class {
|
|
10707
10732
|
};
|
|
10708
10733
|
__decorateClass([
|
|
10709
|
-
|
|
10734
|
+
IsNotEmpty108({ message: "Job id is required" }),
|
|
10710
10735
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10711
10736
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10712
10737
|
__decorateClass([
|
|
10713
|
-
|
|
10738
|
+
IsNotEmpty108({ message: "start date is required" }),
|
|
10714
10739
|
IsDateString10()
|
|
10715
10740
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10716
10741
|
__decorateClass([
|
|
10717
|
-
|
|
10742
|
+
IsNotEmpty108({ message: "end date is required" }),
|
|
10718
10743
|
IsDateString10()
|
|
10719
10744
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10720
10745
|
__decorateClass([
|
|
10721
|
-
|
|
10722
|
-
|
|
10746
|
+
IsNotEmpty108({ message: "start time is required" }),
|
|
10747
|
+
Matches15(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10723
10748
|
message: "startTime must be in HH:mm:ss format"
|
|
10724
10749
|
})
|
|
10725
10750
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10726
10751
|
__decorateClass([
|
|
10727
|
-
|
|
10728
|
-
|
|
10752
|
+
IsNotEmpty108({ message: "end time is required" }),
|
|
10753
|
+
Matches15(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10729
10754
|
message: "endTime must be in HH:mm:ss format"
|
|
10730
10755
|
})
|
|
10731
10756
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10735,53 +10760,53 @@ __decorateClass([
|
|
|
10735
10760
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10736
10761
|
__decorateClass([
|
|
10737
10762
|
IsOptional74(),
|
|
10738
|
-
|
|
10763
|
+
IsString78()
|
|
10739
10764
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10740
10765
|
__decorateClass([
|
|
10741
10766
|
IsOptional74(),
|
|
10742
|
-
|
|
10767
|
+
IsString78()
|
|
10743
10768
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10744
10769
|
__decorateClass([
|
|
10745
10770
|
IsOptional74(),
|
|
10746
|
-
|
|
10771
|
+
IsString78()
|
|
10747
10772
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10748
10773
|
__decorateClass([
|
|
10749
|
-
|
|
10774
|
+
IsNotEmpty108({ message: "Description is required" })
|
|
10750
10775
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10751
10776
|
|
|
10752
10777
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10753
10778
|
import {
|
|
10754
10779
|
IsDateString as IsDateString11,
|
|
10755
10780
|
IsInt as IsInt14,
|
|
10756
|
-
IsNotEmpty as
|
|
10781
|
+
IsNotEmpty as IsNotEmpty109,
|
|
10757
10782
|
IsOptional as IsOptional75,
|
|
10758
|
-
IsString as
|
|
10759
|
-
Matches as
|
|
10783
|
+
IsString as IsString79,
|
|
10784
|
+
Matches as Matches16,
|
|
10760
10785
|
IsNumber as IsNumber27
|
|
10761
10786
|
} from "class-validator";
|
|
10762
10787
|
var UpdateFreelancerTimesheetDto = class {
|
|
10763
10788
|
};
|
|
10764
10789
|
__decorateClass([
|
|
10765
|
-
|
|
10790
|
+
IsNotEmpty109({ message: "Job id is required" }),
|
|
10766
10791
|
IsNumber27({}, { message: "Job id must be a number" })
|
|
10767
10792
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10768
10793
|
__decorateClass([
|
|
10769
|
-
|
|
10794
|
+
IsNotEmpty109({ message: "start date is required" }),
|
|
10770
10795
|
IsDateString11()
|
|
10771
10796
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10772
10797
|
__decorateClass([
|
|
10773
|
-
|
|
10798
|
+
IsNotEmpty109({ message: "end date is required" }),
|
|
10774
10799
|
IsDateString11()
|
|
10775
10800
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10776
10801
|
__decorateClass([
|
|
10777
|
-
|
|
10778
|
-
|
|
10802
|
+
IsNotEmpty109({ message: "start time is required" }),
|
|
10803
|
+
Matches16(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10779
10804
|
message: "startTime must be in HH:mm:ss format"
|
|
10780
10805
|
})
|
|
10781
10806
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10782
10807
|
__decorateClass([
|
|
10783
|
-
|
|
10784
|
-
|
|
10808
|
+
IsNotEmpty109({ message: "end time is required" }),
|
|
10809
|
+
Matches16(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10785
10810
|
message: "endTime must be in HH:mm:ss format"
|
|
10786
10811
|
})
|
|
10787
10812
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10791,78 +10816,78 @@ __decorateClass([
|
|
|
10791
10816
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10792
10817
|
__decorateClass([
|
|
10793
10818
|
IsOptional75(),
|
|
10794
|
-
|
|
10819
|
+
IsString79()
|
|
10795
10820
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10796
10821
|
__decorateClass([
|
|
10797
10822
|
IsOptional75(),
|
|
10798
|
-
|
|
10823
|
+
IsString79()
|
|
10799
10824
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10800
10825
|
__decorateClass([
|
|
10801
10826
|
IsOptional75(),
|
|
10802
|
-
|
|
10827
|
+
IsString79()
|
|
10803
10828
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10804
10829
|
__decorateClass([
|
|
10805
|
-
|
|
10830
|
+
IsNotEmpty109({ message: "Description is required" })
|
|
10806
10831
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10807
10832
|
|
|
10808
10833
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10809
|
-
import { IsNotEmpty as
|
|
10834
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber28 } from "class-validator";
|
|
10810
10835
|
var SubmitTimesheetDto = class {
|
|
10811
10836
|
};
|
|
10812
10837
|
__decorateClass([
|
|
10813
|
-
|
|
10838
|
+
IsNotEmpty110({ message: "Timesheet line ID is required" }),
|
|
10814
10839
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10815
10840
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10816
10841
|
|
|
10817
10842
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10818
|
-
import { IsNotEmpty as
|
|
10843
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber29 } from "class-validator";
|
|
10819
10844
|
var ResubmitTimesheetDto = class {
|
|
10820
10845
|
};
|
|
10821
10846
|
__decorateClass([
|
|
10822
|
-
|
|
10847
|
+
IsNotEmpty111({ message: "Timesheet line ID is required" }),
|
|
10823
10848
|
IsNumber29({}, { message: "Timesheet line ID must be a number" })
|
|
10824
10849
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10825
10850
|
|
|
10826
10851
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10827
|
-
import { IsNotEmpty as
|
|
10852
|
+
import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber30 } from "class-validator";
|
|
10828
10853
|
import { Type as Type23 } from "class-transformer";
|
|
10829
10854
|
var ApproveTimesheetsDto = class {
|
|
10830
10855
|
};
|
|
10831
10856
|
__decorateClass([
|
|
10832
10857
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10833
|
-
|
|
10858
|
+
IsNotEmpty112({ message: "Timesheet line ID is required." }),
|
|
10834
10859
|
Type23(() => Number)
|
|
10835
10860
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10836
10861
|
|
|
10837
10862
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10838
|
-
import { IsNotEmpty as
|
|
10863
|
+
import { IsNotEmpty as IsNotEmpty113, IsNumber as IsNumber31, IsOptional as IsOptional76, IsString as IsString80 } from "class-validator";
|
|
10839
10864
|
import { Type as Type24 } from "class-transformer";
|
|
10840
10865
|
var SendBackTimesheetsDto = class {
|
|
10841
10866
|
};
|
|
10842
10867
|
__decorateClass([
|
|
10843
10868
|
IsNumber31({}, { message: "Timesheet line ID must be a number." }),
|
|
10844
|
-
|
|
10869
|
+
IsNotEmpty113({ message: "Timesheet line ID is required." }),
|
|
10845
10870
|
Type24(() => Number)
|
|
10846
10871
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10847
10872
|
__decorateClass([
|
|
10848
10873
|
IsOptional76(),
|
|
10849
|
-
|
|
10874
|
+
IsString80({ message: "Client send back reason must be a string." })
|
|
10850
10875
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10851
10876
|
|
|
10852
10877
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10853
|
-
import { IsNotEmpty as
|
|
10878
|
+
import { IsNotEmpty as IsNotEmpty114, IsNumber as IsNumber32 } from "class-validator";
|
|
10854
10879
|
var CreateDefaultTimesheetLineDto = class {
|
|
10855
10880
|
};
|
|
10856
10881
|
__decorateClass([
|
|
10857
|
-
|
|
10882
|
+
IsNotEmpty114({ message: "Contract ID is required" }),
|
|
10858
10883
|
IsNumber32({}, { message: "Contract ID must be a number" })
|
|
10859
10884
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10860
10885
|
__decorateClass([
|
|
10861
|
-
|
|
10886
|
+
IsNotEmpty114({ message: "Freelancer ID is required" }),
|
|
10862
10887
|
IsNumber32({}, { message: "Freelancer ID must be a number" })
|
|
10863
10888
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10864
10889
|
__decorateClass([
|
|
10865
|
-
|
|
10890
|
+
IsNotEmpty114({ message: "Client ID is required" }),
|
|
10866
10891
|
IsNumber32({}, { message: "Client ID must be a number" })
|
|
10867
10892
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10868
10893
|
|
|
@@ -10885,22 +10910,22 @@ var INVOICE_PATTERN = {
|
|
|
10885
10910
|
};
|
|
10886
10911
|
|
|
10887
10912
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10888
|
-
import { IsEnum as IsEnum46, IsNotEmpty as
|
|
10913
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty115 } from "class-validator";
|
|
10889
10914
|
var UpdateInvoiceStatusDto = class {
|
|
10890
10915
|
};
|
|
10891
10916
|
__decorateClass([
|
|
10892
|
-
|
|
10917
|
+
IsNotEmpty115({ message: "Please provide invoice status." }),
|
|
10893
10918
|
IsEnum46(InvoiceStatusEnum, {
|
|
10894
10919
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10895
10920
|
})
|
|
10896
10921
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10897
10922
|
|
|
10898
10923
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10899
|
-
import { IsNotEmpty as
|
|
10924
|
+
import { IsNotEmpty as IsNotEmpty116, IsNumber as IsNumber33 } from "class-validator";
|
|
10900
10925
|
var CreateInvoiceDto = class {
|
|
10901
10926
|
};
|
|
10902
10927
|
__decorateClass([
|
|
10903
|
-
|
|
10928
|
+
IsNotEmpty116({ message: "Timesheet line ID is required" }),
|
|
10904
10929
|
IsNumber33({}, { message: "Timesheet line ID must be a number" })
|
|
10905
10930
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10906
10931
|
|
|
@@ -10913,11 +10938,11 @@ var DISPUTE_PATTERN = {
|
|
|
10913
10938
|
|
|
10914
10939
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10915
10940
|
import {
|
|
10916
|
-
IsString as
|
|
10917
|
-
IsNotEmpty as
|
|
10941
|
+
IsString as IsString81,
|
|
10942
|
+
IsNotEmpty as IsNotEmpty117,
|
|
10918
10943
|
IsIn as IsIn4,
|
|
10919
10944
|
IsOptional as IsOptional77,
|
|
10920
|
-
MaxLength as
|
|
10945
|
+
MaxLength as MaxLength25,
|
|
10921
10946
|
IsObject as IsObject7,
|
|
10922
10947
|
IsNumber as IsNumber34,
|
|
10923
10948
|
ValidateIf as ValidateIf13
|
|
@@ -10936,23 +10961,23 @@ __decorateClass([
|
|
|
10936
10961
|
Type25(() => Number)
|
|
10937
10962
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10938
10963
|
__decorateClass([
|
|
10939
|
-
|
|
10940
|
-
|
|
10964
|
+
IsNotEmpty117({ message: "Please select dispute type." }),
|
|
10965
|
+
IsString81(),
|
|
10941
10966
|
IsIn4(["JOB", "INVOICE"])
|
|
10942
10967
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10943
10968
|
__decorateClass([
|
|
10944
|
-
|
|
10945
|
-
|
|
10969
|
+
IsNotEmpty117({ message: "Please provide initiator type." }),
|
|
10970
|
+
IsString81()
|
|
10946
10971
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10947
10972
|
__decorateClass([
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10973
|
+
IsNotEmpty117({ message: "Please enter description." }),
|
|
10974
|
+
IsString81({ message: "Description must be a string" }),
|
|
10975
|
+
MaxLength25(500, { message: "Description must not exceed 500 characters" })
|
|
10951
10976
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10952
10977
|
__decorateClass([
|
|
10953
10978
|
IsOptional77(),
|
|
10954
|
-
|
|
10955
|
-
|
|
10979
|
+
IsString81({ message: "Comment must be a string" }),
|
|
10980
|
+
MaxLength25(500, { message: "Comment must not exceed 500 characters" })
|
|
10956
10981
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10957
10982
|
__decorateClass([
|
|
10958
10983
|
IsOptional77(),
|
|
@@ -10978,76 +11003,76 @@ var SENSELOAF_PATTERN = {
|
|
|
10978
11003
|
|
|
10979
11004
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10980
11005
|
import {
|
|
10981
|
-
IsNotEmpty as
|
|
11006
|
+
IsNotEmpty as IsNotEmpty118
|
|
10982
11007
|
} from "class-validator";
|
|
10983
11008
|
var AiInterviewQuestionGenerateDto = class {
|
|
10984
11009
|
};
|
|
10985
11010
|
__decorateClass([
|
|
10986
|
-
|
|
11011
|
+
IsNotEmpty118({ message: "Please enter job description." })
|
|
10987
11012
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10988
11013
|
__decorateClass([
|
|
10989
|
-
|
|
11014
|
+
IsNotEmpty118({ message: "Please enter number of questions." })
|
|
10990
11015
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10991
11016
|
|
|
10992
11017
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10993
|
-
import { IsNotEmpty as
|
|
11018
|
+
import { IsNotEmpty as IsNotEmpty119, IsString as IsString82, IsOptional as IsOptional78 } from "class-validator";
|
|
10994
11019
|
var ResumeParsingByUrlDto = class {
|
|
10995
11020
|
};
|
|
10996
11021
|
__decorateClass([
|
|
10997
|
-
|
|
10998
|
-
|
|
11022
|
+
IsNotEmpty119({ message: "Resume URL is required" }),
|
|
11023
|
+
IsString82({ message: "Resume URL must be a string" })
|
|
10999
11024
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
11000
11025
|
__decorateClass([
|
|
11001
11026
|
IsOptional78(),
|
|
11002
|
-
|
|
11027
|
+
IsString82()
|
|
11003
11028
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
11004
11029
|
|
|
11005
11030
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
11006
|
-
import { IsNotEmpty as
|
|
11031
|
+
import { IsNotEmpty as IsNotEmpty120, IsString as IsString83, IsOptional as IsOptional79, IsObject as IsObject8 } from "class-validator";
|
|
11007
11032
|
var ResumeDataProcessingDto = class {
|
|
11008
11033
|
};
|
|
11009
11034
|
__decorateClass([
|
|
11010
|
-
|
|
11035
|
+
IsNotEmpty120({ message: "Resume data is required" }),
|
|
11011
11036
|
IsObject8()
|
|
11012
11037
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
11013
11038
|
__decorateClass([
|
|
11014
11039
|
IsOptional79(),
|
|
11015
|
-
|
|
11040
|
+
IsString83()
|
|
11016
11041
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
11017
11042
|
__decorateClass([
|
|
11018
11043
|
IsOptional79(),
|
|
11019
|
-
|
|
11044
|
+
IsString83()
|
|
11020
11045
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
11021
11046
|
|
|
11022
11047
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
11023
|
-
import { IsNotEmpty as
|
|
11048
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional80, IsObject as IsObject9 } from "class-validator";
|
|
11024
11049
|
var CheckResumeEligibilityDto = class {
|
|
11025
11050
|
};
|
|
11026
11051
|
__decorateClass([
|
|
11027
|
-
|
|
11052
|
+
IsNotEmpty121({ message: "Resume data is required" }),
|
|
11028
11053
|
IsObject9()
|
|
11029
11054
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
11030
11055
|
__decorateClass([
|
|
11031
11056
|
IsOptional80(),
|
|
11032
|
-
|
|
11057
|
+
IsString84()
|
|
11033
11058
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
11034
11059
|
__decorateClass([
|
|
11035
11060
|
IsOptional80(),
|
|
11036
|
-
|
|
11061
|
+
IsString84()
|
|
11037
11062
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
11038
11063
|
|
|
11039
11064
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
11040
|
-
import { IsNotEmpty as
|
|
11065
|
+
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as IsOptional81, IsArray as IsArray27, IsNumber as IsNumber35 } from "class-validator";
|
|
11041
11066
|
var AiInterviewTemplateGenerationDto = class {
|
|
11042
11067
|
};
|
|
11043
11068
|
__decorateClass([
|
|
11044
|
-
|
|
11045
|
-
|
|
11069
|
+
IsNotEmpty122({ message: "Job ID is required" }),
|
|
11070
|
+
IsString85({ message: "Job ID must be a string" })
|
|
11046
11071
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
11047
11072
|
__decorateClass([
|
|
11048
11073
|
IsOptional81(),
|
|
11049
11074
|
IsArray27(),
|
|
11050
|
-
|
|
11075
|
+
IsString85({ each: true, message: "Each skill must be a string" })
|
|
11051
11076
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
11052
11077
|
__decorateClass([
|
|
11053
11078
|
IsOptional81(),
|
|
@@ -11055,24 +11080,24 @@ __decorateClass([
|
|
|
11055
11080
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
11056
11081
|
__decorateClass([
|
|
11057
11082
|
IsOptional81(),
|
|
11058
|
-
|
|
11083
|
+
IsString85()
|
|
11059
11084
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
11060
11085
|
|
|
11061
11086
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
11062
|
-
import { IsNotEmpty as
|
|
11087
|
+
import { IsNotEmpty as IsNotEmpty123, IsString as IsString86, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
11063
11088
|
var AiInterviewLinkGenerationDto = class {
|
|
11064
11089
|
};
|
|
11065
11090
|
__decorateClass([
|
|
11066
|
-
|
|
11067
|
-
|
|
11091
|
+
IsNotEmpty123({ message: "Template ID is required" }),
|
|
11092
|
+
IsString86({ message: "Template ID must be a string" })
|
|
11068
11093
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
11069
11094
|
__decorateClass([
|
|
11070
|
-
|
|
11071
|
-
|
|
11095
|
+
IsNotEmpty123({ message: "Freelancer ID is required" }),
|
|
11096
|
+
IsString86({ message: "Freelancer ID must be a string" })
|
|
11072
11097
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
11073
11098
|
__decorateClass([
|
|
11074
11099
|
IsOptional82(),
|
|
11075
|
-
|
|
11100
|
+
IsString86()
|
|
11076
11101
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
11077
11102
|
__decorateClass([
|
|
11078
11103
|
IsOptional82(),
|
|
@@ -11080,16 +11105,16 @@ __decorateClass([
|
|
|
11080
11105
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
11081
11106
|
|
|
11082
11107
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
11083
|
-
import { IsNotEmpty as
|
|
11108
|
+
import { IsNotEmpty as IsNotEmpty124, IsString as IsString87, IsOptional as IsOptional83, IsNumber as IsNumber37 } from "class-validator";
|
|
11084
11109
|
var AiAssessmentCreationDto = class {
|
|
11085
11110
|
};
|
|
11086
11111
|
__decorateClass([
|
|
11087
|
-
|
|
11088
|
-
|
|
11112
|
+
IsNotEmpty124({ message: "User ID is required" }),
|
|
11113
|
+
IsString87({ message: "User ID must be a string" })
|
|
11089
11114
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
11090
11115
|
__decorateClass([
|
|
11091
11116
|
IsOptional83(),
|
|
11092
|
-
|
|
11117
|
+
IsString87()
|
|
11093
11118
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
11094
11119
|
__decorateClass([
|
|
11095
11120
|
IsOptional83(),
|
|
@@ -11097,7 +11122,7 @@ __decorateClass([
|
|
|
11097
11122
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
11098
11123
|
__decorateClass([
|
|
11099
11124
|
IsOptional83(),
|
|
11100
|
-
|
|
11125
|
+
IsString87()
|
|
11101
11126
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
11102
11127
|
|
|
11103
11128
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -11113,7 +11138,7 @@ var HIRING_PATTERN = {
|
|
|
11113
11138
|
};
|
|
11114
11139
|
|
|
11115
11140
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
11116
|
-
import { IsEnum as IsEnum47, IsNotEmpty as
|
|
11141
|
+
import { IsEnum as IsEnum47, IsNotEmpty as IsNotEmpty125, IsNumber as IsNumber38 } from "class-validator";
|
|
11117
11142
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
11118
11143
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
11119
11144
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -11122,15 +11147,15 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
11122
11147
|
var CreateHiringDto = class {
|
|
11123
11148
|
};
|
|
11124
11149
|
__decorateClass([
|
|
11125
|
-
|
|
11150
|
+
IsNotEmpty125({ message: "Freelancer ID is required" }),
|
|
11126
11151
|
IsNumber38({}, { message: "Freelancer ID must be a number" })
|
|
11127
11152
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
11128
11153
|
__decorateClass([
|
|
11129
|
-
|
|
11154
|
+
IsNotEmpty125({ message: "Job ID is required" }),
|
|
11130
11155
|
IsNumber38({}, { message: "Job ID must be a number" })
|
|
11131
11156
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
11132
11157
|
__decorateClass([
|
|
11133
|
-
|
|
11158
|
+
IsNotEmpty125({ message: "Preferred engagement type is required" }),
|
|
11134
11159
|
IsEnum47(PreferredEngagementTypeEnum2, {
|
|
11135
11160
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
11136
11161
|
})
|
|
@@ -11154,16 +11179,16 @@ var SIGNATURE_PATTERN = {
|
|
|
11154
11179
|
};
|
|
11155
11180
|
|
|
11156
11181
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
11157
|
-
import { IsOptional as IsOptional84, IsString as
|
|
11182
|
+
import { IsOptional as IsOptional84, IsString as IsString88 } from "class-validator";
|
|
11158
11183
|
var SaveSignatureDto = class {
|
|
11159
11184
|
};
|
|
11160
11185
|
__decorateClass([
|
|
11161
11186
|
IsOptional84(),
|
|
11162
|
-
|
|
11187
|
+
IsString88()
|
|
11163
11188
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
11164
11189
|
__decorateClass([
|
|
11165
11190
|
IsOptional84(),
|
|
11166
|
-
|
|
11191
|
+
IsString88()
|
|
11167
11192
|
], SaveSignatureDto.prototype, "description", 2);
|
|
11168
11193
|
|
|
11169
11194
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -11181,25 +11206,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
11181
11206
|
};
|
|
11182
11207
|
|
|
11183
11208
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
11184
|
-
import { IsNotEmpty as
|
|
11209
|
+
import { IsNotEmpty as IsNotEmpty126, IsNumber as IsNumber39, IsUUID as IsUUID31 } from "class-validator";
|
|
11185
11210
|
var AddTopupEscrowAmountDto = class {
|
|
11186
11211
|
};
|
|
11187
11212
|
__decorateClass([
|
|
11188
|
-
|
|
11213
|
+
IsNotEmpty126({ message: "Amount is required" }),
|
|
11189
11214
|
IsNumber39({}, { message: "Amount must be a number" })
|
|
11190
11215
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
11191
11216
|
__decorateClass([
|
|
11192
|
-
|
|
11217
|
+
IsNotEmpty126({ message: "Escrow wallet UUID is required" }),
|
|
11193
11218
|
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
11194
11219
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
11195
11220
|
|
|
11196
11221
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
11197
|
-
import { IsNotEmpty as
|
|
11222
|
+
import { IsNotEmpty as IsNotEmpty127, IsUUID as IsUUID32 } from "class-validator";
|
|
11198
11223
|
var DebitCommissionFteHiringDto = class {
|
|
11199
11224
|
};
|
|
11200
11225
|
__decorateClass([
|
|
11201
11226
|
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
11202
|
-
|
|
11227
|
+
IsNotEmpty127({ message: "Invoice UUID is required." })
|
|
11203
11228
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
11204
11229
|
|
|
11205
11230
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12308,28 +12333,28 @@ function createDiscordTransport(options) {
|
|
|
12308
12333
|
}
|
|
12309
12334
|
|
|
12310
12335
|
// src/modules/in-app-notification/dto/create-in-app-notification.dto.ts
|
|
12311
|
-
import { IsNotEmpty as
|
|
12336
|
+
import { IsNotEmpty as IsNotEmpty128, IsNumber as IsNumber40, IsOptional as IsOptional85, IsString as IsString89, IsObject as IsObject10 } from "class-validator";
|
|
12312
12337
|
var CreateInAppNotificationDto = class {
|
|
12313
12338
|
};
|
|
12314
12339
|
__decorateClass([
|
|
12315
|
-
|
|
12340
|
+
IsNotEmpty128(),
|
|
12316
12341
|
IsNumber40()
|
|
12317
12342
|
], CreateInAppNotificationDto.prototype, "userId", 2);
|
|
12318
12343
|
__decorateClass([
|
|
12319
12344
|
IsOptional85(),
|
|
12320
|
-
|
|
12345
|
+
IsString89()
|
|
12321
12346
|
], CreateInAppNotificationDto.prototype, "event", 2);
|
|
12322
12347
|
__decorateClass([
|
|
12323
12348
|
IsOptional85(),
|
|
12324
|
-
|
|
12349
|
+
IsString89()
|
|
12325
12350
|
], CreateInAppNotificationDto.prototype, "title", 2);
|
|
12326
12351
|
__decorateClass([
|
|
12327
|
-
|
|
12328
|
-
|
|
12352
|
+
IsNotEmpty128(),
|
|
12353
|
+
IsString89()
|
|
12329
12354
|
], CreateInAppNotificationDto.prototype, "message", 2);
|
|
12330
12355
|
__decorateClass([
|
|
12331
12356
|
IsOptional85(),
|
|
12332
|
-
|
|
12357
|
+
IsString89()
|
|
12333
12358
|
], CreateInAppNotificationDto.prototype, "redirectUrl", 2);
|
|
12334
12359
|
__decorateClass([
|
|
12335
12360
|
IsOptional85(),
|
|
@@ -12337,7 +12362,7 @@ __decorateClass([
|
|
|
12337
12362
|
], CreateInAppNotificationDto.prototype, "metaData", 2);
|
|
12338
12363
|
|
|
12339
12364
|
// src/modules/in-app-notification/dto/update-is-read.dto.ts
|
|
12340
|
-
import { IsNotEmpty as
|
|
12365
|
+
import { IsNotEmpty as IsNotEmpty129, IsNumber as IsNumber41, IsBoolean as IsBoolean22, IsOptional as IsOptional86, IsArray as IsArray29 } from "class-validator";
|
|
12341
12366
|
import { Type as Type26 } from "class-transformer";
|
|
12342
12367
|
var UpdateIsReadDto = class {
|
|
12343
12368
|
};
|
|
@@ -12353,7 +12378,7 @@ __decorateClass([
|
|
|
12353
12378
|
Type26(() => Number)
|
|
12354
12379
|
], UpdateIsReadDto.prototype, "ids", 2);
|
|
12355
12380
|
__decorateClass([
|
|
12356
|
-
|
|
12381
|
+
IsNotEmpty129(),
|
|
12357
12382
|
IsBoolean22()
|
|
12358
12383
|
], UpdateIsReadDto.prototype, "isRead", 2);
|
|
12359
12384
|
|
|
@@ -12382,10 +12407,10 @@ import {
|
|
|
12382
12407
|
IsBoolean as IsBoolean23,
|
|
12383
12408
|
IsEmail as IsEmail24,
|
|
12384
12409
|
IsEnum as IsEnum48,
|
|
12385
|
-
IsNotEmpty as
|
|
12410
|
+
IsNotEmpty as IsNotEmpty130,
|
|
12386
12411
|
IsNumber as IsNumber42,
|
|
12387
12412
|
IsOptional as IsOptional87,
|
|
12388
|
-
IsString as
|
|
12413
|
+
IsString as IsString90,
|
|
12389
12414
|
ValidateNested as ValidateNested12
|
|
12390
12415
|
} from "class-validator";
|
|
12391
12416
|
import { Type as Type27 } from "class-transformer";
|
|
@@ -12398,15 +12423,15 @@ var DocuSealSubmitterDto = class {
|
|
|
12398
12423
|
};
|
|
12399
12424
|
__decorateClass([
|
|
12400
12425
|
IsEmail24({}, { message: "Submitter email must be valid." }),
|
|
12401
|
-
|
|
12426
|
+
IsNotEmpty130({ message: "Submitter email is required." })
|
|
12402
12427
|
], DocuSealSubmitterDto.prototype, "email", 2);
|
|
12403
12428
|
__decorateClass([
|
|
12404
12429
|
IsOptional87(),
|
|
12405
|
-
|
|
12430
|
+
IsString90()
|
|
12406
12431
|
], DocuSealSubmitterDto.prototype, "name", 2);
|
|
12407
12432
|
__decorateClass([
|
|
12408
12433
|
IsOptional87(),
|
|
12409
|
-
|
|
12434
|
+
IsString90()
|
|
12410
12435
|
], DocuSealSubmitterDto.prototype, "phone", 2);
|
|
12411
12436
|
__decorateClass([
|
|
12412
12437
|
IsOptional87(),
|
|
@@ -12416,17 +12441,17 @@ var DocuSealMessageDto = class {
|
|
|
12416
12441
|
};
|
|
12417
12442
|
__decorateClass([
|
|
12418
12443
|
IsOptional87(),
|
|
12419
|
-
|
|
12444
|
+
IsString90()
|
|
12420
12445
|
], DocuSealMessageDto.prototype, "subject", 2);
|
|
12421
12446
|
__decorateClass([
|
|
12422
12447
|
IsOptional87(),
|
|
12423
|
-
|
|
12448
|
+
IsString90()
|
|
12424
12449
|
], DocuSealMessageDto.prototype, "body", 2);
|
|
12425
12450
|
var CreateUserSigningDto = class {
|
|
12426
12451
|
};
|
|
12427
12452
|
__decorateClass([
|
|
12428
12453
|
IsNumber42({}, { message: "Template ID must be a number." }),
|
|
12429
|
-
|
|
12454
|
+
IsNotEmpty130({ message: "Template ID is required." })
|
|
12430
12455
|
], CreateUserSigningDto.prototype, "templateId", 2);
|
|
12431
12456
|
__decorateClass([
|
|
12432
12457
|
IsOptional87(),
|
|
@@ -12450,54 +12475,54 @@ __decorateClass([
|
|
|
12450
12475
|
], CreateUserSigningDto.prototype, "message", 2);
|
|
12451
12476
|
__decorateClass([
|
|
12452
12477
|
IsOptional87(),
|
|
12453
|
-
|
|
12478
|
+
IsString90()
|
|
12454
12479
|
], CreateUserSigningDto.prototype, "completedRedirectUrl", 2);
|
|
12455
12480
|
__decorateClass([
|
|
12456
12481
|
IsOptional87(),
|
|
12457
|
-
|
|
12482
|
+
IsString90()
|
|
12458
12483
|
], CreateUserSigningDto.prototype, "expireAt", 2);
|
|
12459
12484
|
|
|
12460
12485
|
// src/modules/docuseal/dto/get-submission.dto.ts
|
|
12461
|
-
import { IsNotEmpty as
|
|
12486
|
+
import { IsNotEmpty as IsNotEmpty131, IsNumber as IsNumber43 } from "class-validator";
|
|
12462
12487
|
import { Type as Type28 } from "class-transformer";
|
|
12463
12488
|
var GetSubmissionDto = class {
|
|
12464
12489
|
};
|
|
12465
12490
|
__decorateClass([
|
|
12466
12491
|
IsNumber43({}, { message: "Submission ID must be a number." }),
|
|
12467
|
-
|
|
12492
|
+
IsNotEmpty131({ message: "Submission ID is required." }),
|
|
12468
12493
|
Type28(() => Number)
|
|
12469
12494
|
], GetSubmissionDto.prototype, "submissionId", 2);
|
|
12470
12495
|
|
|
12471
12496
|
// src/modules/docuseal/dto/get-submitter.dto.ts
|
|
12472
|
-
import { IsNotEmpty as
|
|
12497
|
+
import { IsNotEmpty as IsNotEmpty132, IsNumber as IsNumber44 } from "class-validator";
|
|
12473
12498
|
import { Type as Type29 } from "class-transformer";
|
|
12474
12499
|
var GetSubmitterDto = class {
|
|
12475
12500
|
};
|
|
12476
12501
|
__decorateClass([
|
|
12477
12502
|
IsNumber44({}, { message: "Submitter ID must be a number." }),
|
|
12478
|
-
|
|
12503
|
+
IsNotEmpty132({ message: "Submitter ID is required." }),
|
|
12479
12504
|
Type29(() => Number)
|
|
12480
12505
|
], GetSubmitterDto.prototype, "submitterId", 2);
|
|
12481
12506
|
|
|
12482
12507
|
// src/modules/docuseal/dto/get-template.dto.ts
|
|
12483
|
-
import { IsNotEmpty as
|
|
12508
|
+
import { IsNotEmpty as IsNotEmpty133, IsNumber as IsNumber45 } from "class-validator";
|
|
12484
12509
|
import { Type as Type30 } from "class-transformer";
|
|
12485
12510
|
var GetTemplateDto = class {
|
|
12486
12511
|
};
|
|
12487
12512
|
__decorateClass([
|
|
12488
12513
|
IsNumber45({}, { message: "Template ID must be a number." }),
|
|
12489
|
-
|
|
12514
|
+
IsNotEmpty133({ message: "Template ID is required." }),
|
|
12490
12515
|
Type30(() => Number)
|
|
12491
12516
|
], GetTemplateDto.prototype, "templateId", 2);
|
|
12492
12517
|
|
|
12493
12518
|
// src/modules/docuseal/dto/archive-submission.dto.ts
|
|
12494
|
-
import { IsNotEmpty as
|
|
12519
|
+
import { IsNotEmpty as IsNotEmpty134, IsNumber as IsNumber46 } from "class-validator";
|
|
12495
12520
|
import { Type as Type31 } from "class-transformer";
|
|
12496
12521
|
var ArchiveSubmissionDto = class {
|
|
12497
12522
|
};
|
|
12498
12523
|
__decorateClass([
|
|
12499
12524
|
IsNumber46({}, { message: "Submission ID must be a number." }),
|
|
12500
|
-
|
|
12525
|
+
IsNotEmpty134({ message: "Submission ID is required." }),
|
|
12501
12526
|
Type31(() => Number)
|
|
12502
12527
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12503
12528
|
|
|
@@ -13865,6 +13890,7 @@ export {
|
|
|
13865
13890
|
RejectContractDto,
|
|
13866
13891
|
RejectF2FInterviewRescheduleRequestDto,
|
|
13867
13892
|
RemoveGlobalSettingDto,
|
|
13893
|
+
RequestPasswordChangeOtpDto,
|
|
13868
13894
|
ResetPasswordDto,
|
|
13869
13895
|
ResetPasswordTokenValidationDto,
|
|
13870
13896
|
ResetUserPasswordByAdminDto,
|