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