@experts_hub/shared 1.0.658 → 1.0.661
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/entities/job.entity.d.ts +1 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +1444 -1412
- package/dist/index.mjs +693 -656
- package/dist/modules/job/dto/create-job-via-ai.dto..d.ts +1 -0
- package/dist/modules/notification/pattern/pattern.d.ts +1 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +2 -0
- package/dist/modules/user/client-profile/dto/request-password-change-otp.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/dto/verify-password-change-otp.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/pattern/pattern.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4301,6 +4301,9 @@ __decorateClass([
|
|
|
4301
4301
|
nullable: true
|
|
4302
4302
|
})
|
|
4303
4303
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4304
|
+
__decorateClass([
|
|
4305
|
+
Column35({ name: "deal_breakers", type: "jsonb", nullable: true })
|
|
4306
|
+
], Job.prototype, "dealBreakers", 2);
|
|
4304
4307
|
__decorateClass([
|
|
4305
4308
|
Column35({
|
|
4306
4309
|
name: "step_completed",
|
|
@@ -6217,7 +6220,10 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
6217
6220
|
fetchFreelancersForComparison: "fetch.freelancers.for.comparison",
|
|
6218
6221
|
deleteClientProfilePic: "delete.client.profile.pic",
|
|
6219
6222
|
fetchFreelancerInfoForChat: "fetch.freelancer.info.for.chat",
|
|
6220
|
-
fetchClientAndFreelancerDetailsForChatChannelCreation: "fetch.client.and.freelancer.details.for.chat.channel.creation"
|
|
6223
|
+
fetchClientAndFreelancerDetailsForChatChannelCreation: "fetch.client.and.freelancer.details.for.chat.channel.creation",
|
|
6224
|
+
fetchCustomeResume: "fetch.custome.resume",
|
|
6225
|
+
requestPasswordChangeOtp: "request.password.change.otp",
|
|
6226
|
+
verifyPasswordChangeOtp: "verify.password.change.otp"
|
|
6221
6227
|
};
|
|
6222
6228
|
|
|
6223
6229
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -6338,6 +6344,31 @@ __decorateClass([
|
|
|
6338
6344
|
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
6339
6345
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
6340
6346
|
|
|
6347
|
+
// src/modules/user/client-profile/dto/verify-password-change-otp.dto.ts
|
|
6348
|
+
import {
|
|
6349
|
+
IsString as IsString18,
|
|
6350
|
+
IsNotEmpty as IsNotEmpty38,
|
|
6351
|
+
Matches as Matches8,
|
|
6352
|
+
MinLength as MinLength8,
|
|
6353
|
+
MaxLength as MaxLength6
|
|
6354
|
+
} from "class-validator";
|
|
6355
|
+
var VerifyPasswordChangeOtpDto = class {
|
|
6356
|
+
};
|
|
6357
|
+
__decorateClass([
|
|
6358
|
+
IsNotEmpty38({ message: "New password is required" }),
|
|
6359
|
+
IsString18(),
|
|
6360
|
+
MinLength8(8, { message: "Password must be at least 8 characters long" }),
|
|
6361
|
+
MaxLength6(32, { message: "Password must not exceed 32 characters" }),
|
|
6362
|
+
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6363
|
+
message: "Password must include letters, numbers, and special characters"
|
|
6364
|
+
})
|
|
6365
|
+
], VerifyPasswordChangeOtpDto.prototype, "newPassword", 2);
|
|
6366
|
+
__decorateClass([
|
|
6367
|
+
IsNotEmpty38({ message: "OTP is required" }),
|
|
6368
|
+
IsString18(),
|
|
6369
|
+
Matches8(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
6370
|
+
], VerifyPasswordChangeOtpDto.prototype, "otp", 2);
|
|
6371
|
+
|
|
6341
6372
|
// src/modules/question/pattern/pattern.ts
|
|
6342
6373
|
var ONBOARDING_QUESTION_PATTERN = {
|
|
6343
6374
|
fetchOnboardingQuestions: "fetch.onboarding.questions"
|
|
@@ -6352,23 +6383,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
6352
6383
|
|
|
6353
6384
|
// src/modules/question/dto/create-question.dto.ts
|
|
6354
6385
|
import {
|
|
6355
|
-
IsNotEmpty as
|
|
6386
|
+
IsNotEmpty as IsNotEmpty39,
|
|
6356
6387
|
IsOptional as IsOptional16,
|
|
6357
6388
|
IsBoolean as IsBoolean2
|
|
6358
6389
|
} from "class-validator";
|
|
6359
6390
|
var CreateQuestionDto = class {
|
|
6360
6391
|
};
|
|
6361
6392
|
__decorateClass([
|
|
6362
|
-
|
|
6393
|
+
IsNotEmpty39({ message: "Please enter unique id." })
|
|
6363
6394
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
6364
6395
|
__decorateClass([
|
|
6365
|
-
|
|
6396
|
+
IsNotEmpty39({ message: "Please enter question." })
|
|
6366
6397
|
], CreateQuestionDto.prototype, "question", 2);
|
|
6367
6398
|
__decorateClass([
|
|
6368
|
-
|
|
6399
|
+
IsNotEmpty39({ message: "Please enter for whom the question is." })
|
|
6369
6400
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
6370
6401
|
__decorateClass([
|
|
6371
|
-
|
|
6402
|
+
IsNotEmpty39({ message: "Please enter options." })
|
|
6372
6403
|
], CreateQuestionDto.prototype, "options", 2);
|
|
6373
6404
|
__decorateClass([
|
|
6374
6405
|
IsOptional16(),
|
|
@@ -6376,42 +6407,42 @@ __decorateClass([
|
|
|
6376
6407
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
6377
6408
|
|
|
6378
6409
|
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
6379
|
-
import { IsNotEmpty as
|
|
6410
|
+
import { IsNotEmpty as IsNotEmpty40, IsString as IsString19, IsOptional as IsOptional17, IsObject as IsObject2 } from "class-validator";
|
|
6380
6411
|
var RecordAssessmentAnswerDto = class {
|
|
6381
6412
|
};
|
|
6382
6413
|
__decorateClass([
|
|
6383
|
-
|
|
6384
|
-
|
|
6414
|
+
IsNotEmpty40({ message: "Question ID is required" }),
|
|
6415
|
+
IsString19({ message: "Question ID must be a string" })
|
|
6385
6416
|
], RecordAssessmentAnswerDto.prototype, "questionId", 2);
|
|
6386
6417
|
__decorateClass([
|
|
6387
|
-
|
|
6418
|
+
IsNotEmpty40({ message: "Answer is required" }),
|
|
6388
6419
|
IsObject2()
|
|
6389
6420
|
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
6390
6421
|
__decorateClass([
|
|
6391
6422
|
IsOptional17(),
|
|
6392
|
-
|
|
6423
|
+
IsString19()
|
|
6393
6424
|
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
6394
6425
|
__decorateClass([
|
|
6395
6426
|
IsOptional17(),
|
|
6396
|
-
|
|
6427
|
+
IsString19()
|
|
6397
6428
|
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
6398
6429
|
|
|
6399
6430
|
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
6400
|
-
import { IsNotEmpty as
|
|
6431
|
+
import { IsNotEmpty as IsNotEmpty41, IsArray, IsObject as IsObject3, IsOptional as IsOptional18, IsString as IsString20 } from "class-validator";
|
|
6401
6432
|
var RecordAssessmentAnswersDto = class {
|
|
6402
6433
|
};
|
|
6403
6434
|
__decorateClass([
|
|
6404
|
-
|
|
6435
|
+
IsNotEmpty41({ message: "Answers array is required" }),
|
|
6405
6436
|
IsArray({ message: "Answers must be an array" }),
|
|
6406
6437
|
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
6407
6438
|
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
6408
6439
|
__decorateClass([
|
|
6409
6440
|
IsOptional18(),
|
|
6410
|
-
|
|
6441
|
+
IsString20()
|
|
6411
6442
|
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
6412
6443
|
__decorateClass([
|
|
6413
6444
|
IsOptional18(),
|
|
6414
|
-
|
|
6445
|
+
IsString20()
|
|
6415
6446
|
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
6416
6447
|
|
|
6417
6448
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -6472,8 +6503,8 @@ var JOB_APPLICATION_PATTERN = {
|
|
|
6472
6503
|
|
|
6473
6504
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
6474
6505
|
import {
|
|
6475
|
-
IsString as
|
|
6476
|
-
IsNotEmpty as
|
|
6506
|
+
IsString as IsString21,
|
|
6507
|
+
IsNotEmpty as IsNotEmpty42,
|
|
6477
6508
|
IsArray as IsArray2,
|
|
6478
6509
|
ArrayNotEmpty,
|
|
6479
6510
|
IsNumber as IsNumber3,
|
|
@@ -6481,7 +6512,7 @@ import {
|
|
|
6481
6512
|
IsEnum as IsEnum15,
|
|
6482
6513
|
Min,
|
|
6483
6514
|
ValidateIf as ValidateIf3,
|
|
6484
|
-
MaxLength as
|
|
6515
|
+
MaxLength as MaxLength7,
|
|
6485
6516
|
Max
|
|
6486
6517
|
} from "class-validator";
|
|
6487
6518
|
import { Type } from "class-transformer";
|
|
@@ -6510,32 +6541,32 @@ __decorateClass([
|
|
|
6510
6541
|
Type(() => Boolean)
|
|
6511
6542
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
6512
6543
|
__decorateClass([
|
|
6513
|
-
|
|
6514
|
-
|
|
6544
|
+
IsNotEmpty42({ message: "Please enter job role" }),
|
|
6545
|
+
IsString21({ message: "Job role must be a string" })
|
|
6515
6546
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
6516
6547
|
__decorateClass([
|
|
6517
6548
|
IsOptional19()
|
|
6518
6549
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
6519
6550
|
__decorateClass([
|
|
6520
6551
|
IsOptional19(),
|
|
6521
|
-
|
|
6552
|
+
IsString21({ message: "Project name must be a string" })
|
|
6522
6553
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
6523
6554
|
__decorateClass([
|
|
6524
6555
|
IsOptional19(),
|
|
6525
|
-
|
|
6556
|
+
IsString21({ message: "Note must be a string" })
|
|
6526
6557
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
6527
6558
|
__decorateClass([
|
|
6528
6559
|
ValidateIf3((o) => !o.isDraft),
|
|
6529
6560
|
IsOptional19(),
|
|
6530
6561
|
IsArray2({ message: "Skills must be an array" }),
|
|
6531
6562
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
6532
|
-
|
|
6563
|
+
IsString21({ each: true, message: "Each skill must be a string" }),
|
|
6533
6564
|
Type(() => String)
|
|
6534
6565
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
6535
6566
|
__decorateClass([
|
|
6536
6567
|
ValidateIf3((o) => !o.isDraft),
|
|
6537
6568
|
IsArray2({ message: "Good to have skills must be an array" }),
|
|
6538
|
-
|
|
6569
|
+
IsString21({ each: true, message: "Each skill must be a string" }),
|
|
6539
6570
|
IsOptional19(),
|
|
6540
6571
|
Type(() => String)
|
|
6541
6572
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6578,7 +6609,7 @@ __decorateClass([
|
|
|
6578
6609
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
6579
6610
|
__decorateClass([
|
|
6580
6611
|
ValidateIf3((o) => !o.isDraft),
|
|
6581
|
-
|
|
6612
|
+
IsString21({ message: "Currency must be a string" })
|
|
6582
6613
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
6583
6614
|
__decorateClass([
|
|
6584
6615
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -6619,41 +6650,41 @@ __decorateClass([
|
|
|
6619
6650
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
6620
6651
|
__decorateClass([
|
|
6621
6652
|
ValidateIf3((o) => !o.isDraft),
|
|
6622
|
-
|
|
6653
|
+
IsString21({ message: "Candidate communication skills must be a string" }),
|
|
6623
6654
|
IsOptional19()
|
|
6624
6655
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6625
6656
|
__decorateClass([
|
|
6626
6657
|
ValidateIf3((o) => !o.isDraft),
|
|
6627
|
-
|
|
6628
|
-
|
|
6658
|
+
IsNotEmpty42({ message: "Please enter the academic qualification" }),
|
|
6659
|
+
IsString21({ message: "Academic qualification must be a string" })
|
|
6629
6660
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
6630
6661
|
__decorateClass([
|
|
6631
6662
|
ValidateIf3((o) => !o.isDraft),
|
|
6632
|
-
|
|
6633
|
-
|
|
6663
|
+
IsNotEmpty42({ message: "Please enter the years of experience" }),
|
|
6664
|
+
IsString21({ message: "Years of experience must be a string" })
|
|
6634
6665
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
6635
6666
|
__decorateClass([
|
|
6636
6667
|
IsOptional19(),
|
|
6637
|
-
|
|
6668
|
+
IsString21({ message: "Business industry must be a string" })
|
|
6638
6669
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
6639
6670
|
__decorateClass([
|
|
6640
6671
|
IsOptional19(),
|
|
6641
|
-
|
|
6642
|
-
|
|
6672
|
+
IsString21({ message: "Additional comment must be a string" }),
|
|
6673
|
+
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6643
6674
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
6644
6675
|
|
|
6645
6676
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
6646
|
-
import { IsOptional as IsOptional20, IsString as
|
|
6677
|
+
import { IsOptional as IsOptional20, IsString as IsString22, MaxLength as MaxLength8 } from "class-validator";
|
|
6647
6678
|
var JobAdditionalCommentDto = class {
|
|
6648
6679
|
};
|
|
6649
6680
|
__decorateClass([
|
|
6650
6681
|
IsOptional20(),
|
|
6651
|
-
|
|
6652
|
-
|
|
6682
|
+
IsString22({ message: "Additional comment must be a string" }),
|
|
6683
|
+
MaxLength8(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6653
6684
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
6654
6685
|
|
|
6655
6686
|
// src/modules/job/dto/job-description.dto.ts
|
|
6656
|
-
import { IsString as
|
|
6687
|
+
import { IsString as IsString23, IsNotEmpty as IsNotEmpty43, MaxLength as MaxLength9, IsOptional as IsOptional21 } from "class-validator";
|
|
6657
6688
|
import { Type as Type2 } from "class-transformer";
|
|
6658
6689
|
var JobDescriptionDto = class {
|
|
6659
6690
|
constructor() {
|
|
@@ -6665,15 +6696,15 @@ __decorateClass([
|
|
|
6665
6696
|
Type2(() => Boolean)
|
|
6666
6697
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
6667
6698
|
__decorateClass([
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6699
|
+
IsNotEmpty43({ message: "Please enter job description" }),
|
|
6700
|
+
IsString23({ message: "Description must be a string" }),
|
|
6701
|
+
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6671
6702
|
], JobDescriptionDto.prototype, "description", 2);
|
|
6672
6703
|
|
|
6673
6704
|
// src/modules/job/dto/create-job-via-ai.dto..ts
|
|
6674
6705
|
import {
|
|
6675
|
-
IsString as
|
|
6676
|
-
IsNotEmpty as
|
|
6706
|
+
IsString as IsString24,
|
|
6707
|
+
IsNotEmpty as IsNotEmpty44,
|
|
6677
6708
|
IsArray as IsArray3,
|
|
6678
6709
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
6679
6710
|
IsNumber as IsNumber4,
|
|
@@ -6681,7 +6712,7 @@ import {
|
|
|
6681
6712
|
IsEnum as IsEnum16,
|
|
6682
6713
|
Min as Min2,
|
|
6683
6714
|
ValidateIf as ValidateIf4,
|
|
6684
|
-
MaxLength as
|
|
6715
|
+
MaxLength as MaxLength10,
|
|
6685
6716
|
Max as Max2
|
|
6686
6717
|
} from "class-validator";
|
|
6687
6718
|
import { Type as Type3 } from "class-transformer";
|
|
@@ -6721,55 +6752,59 @@ __decorateClass([
|
|
|
6721
6752
|
], JobLocationDto.prototype, "cityId", 2);
|
|
6722
6753
|
__decorateClass([
|
|
6723
6754
|
IsOptional22(),
|
|
6724
|
-
|
|
6725
|
-
|
|
6755
|
+
IsString24({ message: "Country name must be a string" }),
|
|
6756
|
+
MaxLength10(255, { message: "Country name must not exceed 255 characters" })
|
|
6726
6757
|
], JobLocationDto.prototype, "countryName", 2);
|
|
6727
6758
|
__decorateClass([
|
|
6728
6759
|
IsOptional22(),
|
|
6729
|
-
|
|
6730
|
-
|
|
6760
|
+
IsString24({ message: "State name must be a string" }),
|
|
6761
|
+
MaxLength10(255, { message: "State name must not exceed 255 characters" })
|
|
6731
6762
|
], JobLocationDto.prototype, "stateName", 2);
|
|
6732
6763
|
__decorateClass([
|
|
6733
6764
|
IsOptional22(),
|
|
6734
|
-
|
|
6735
|
-
|
|
6765
|
+
IsString24({ message: "City name must be a string" }),
|
|
6766
|
+
MaxLength10(255, { message: "City name must not exceed 255 characters" })
|
|
6736
6767
|
], JobLocationDto.prototype, "cityName", 2);
|
|
6737
6768
|
var CreateJobViaAIDto = class {
|
|
6738
6769
|
constructor() {
|
|
6739
6770
|
this.isDraft = false;
|
|
6740
6771
|
}
|
|
6741
6772
|
};
|
|
6773
|
+
__decorateClass([
|
|
6774
|
+
IsNumber4({}, { message: "User ID must be a number" }),
|
|
6775
|
+
Type3(() => Number)
|
|
6776
|
+
], CreateJobViaAIDto.prototype, "userId", 2);
|
|
6742
6777
|
__decorateClass([
|
|
6743
6778
|
IsOptional22(),
|
|
6744
6779
|
Type3(() => Boolean)
|
|
6745
6780
|
], CreateJobViaAIDto.prototype, "isDraft", 2);
|
|
6746
6781
|
__decorateClass([
|
|
6747
|
-
|
|
6748
|
-
|
|
6782
|
+
IsNotEmpty44({ message: "Please enter job role" }),
|
|
6783
|
+
IsString24({ message: "Job role must be a string" })
|
|
6749
6784
|
], CreateJobViaAIDto.prototype, "jobRole", 2);
|
|
6750
6785
|
__decorateClass([
|
|
6751
6786
|
IsOptional22()
|
|
6752
6787
|
], CreateJobViaAIDto.prototype, "jobRoleCanonicalName", 2);
|
|
6753
6788
|
__decorateClass([
|
|
6754
6789
|
IsOptional22(),
|
|
6755
|
-
|
|
6790
|
+
IsString24({ message: "Project name must be a string" })
|
|
6756
6791
|
], CreateJobViaAIDto.prototype, "projectName", 2);
|
|
6757
6792
|
__decorateClass([
|
|
6758
6793
|
IsOptional22(),
|
|
6759
|
-
|
|
6794
|
+
IsString24({ message: "Note must be a string" })
|
|
6760
6795
|
], CreateJobViaAIDto.prototype, "note", 2);
|
|
6761
6796
|
__decorateClass([
|
|
6762
6797
|
ValidateIf4((o) => !o.isDraft),
|
|
6763
6798
|
IsOptional22(),
|
|
6764
6799
|
IsArray3({ message: "Skills must be an array" }),
|
|
6765
6800
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
6766
|
-
|
|
6801
|
+
IsString24({ each: true, message: "Each skill must be a string" }),
|
|
6767
6802
|
Type3(() => String)
|
|
6768
6803
|
], CreateJobViaAIDto.prototype, "skills", 2);
|
|
6769
6804
|
__decorateClass([
|
|
6770
6805
|
ValidateIf4((o) => !o.isDraft),
|
|
6771
6806
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
6772
|
-
|
|
6807
|
+
IsString24({ each: true, message: "Each skill must be a string" }),
|
|
6773
6808
|
IsOptional22(),
|
|
6774
6809
|
Type3(() => String)
|
|
6775
6810
|
], CreateJobViaAIDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6801,7 +6836,7 @@ __decorateClass([
|
|
|
6801
6836
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
6802
6837
|
__decorateClass([
|
|
6803
6838
|
ValidateIf4((o) => !o.isDraft),
|
|
6804
|
-
|
|
6839
|
+
IsString24({ message: "Currency must be a string" })
|
|
6805
6840
|
], CreateJobViaAIDto.prototype, "currency", 2);
|
|
6806
6841
|
__decorateClass([
|
|
6807
6842
|
ValidateIf4((o) => !o.isDraft),
|
|
@@ -6860,26 +6895,26 @@ __decorateClass([
|
|
|
6860
6895
|
], CreateJobViaAIDto.prototype, "numberOfHours", 2);
|
|
6861
6896
|
__decorateClass([
|
|
6862
6897
|
ValidateIf4((o) => !o.isDraft),
|
|
6863
|
-
|
|
6898
|
+
IsString24({ message: "Candidate communication skills must be a string" }),
|
|
6864
6899
|
IsOptional22()
|
|
6865
6900
|
], CreateJobViaAIDto.prototype, "candidateCommunicationSkills", 2);
|
|
6866
6901
|
__decorateClass([
|
|
6867
6902
|
IsOptional22(),
|
|
6868
|
-
|
|
6903
|
+
IsString24({ message: "Academic qualification must be a string" })
|
|
6869
6904
|
], CreateJobViaAIDto.prototype, "academicQualification", 2);
|
|
6870
6905
|
__decorateClass([
|
|
6871
6906
|
ValidateIf4((o) => !o.isDraft),
|
|
6872
|
-
|
|
6873
|
-
|
|
6907
|
+
IsNotEmpty44({ message: "Please enter the years of experience" }),
|
|
6908
|
+
IsString24({ message: "Years of experience must be a string" })
|
|
6874
6909
|
], CreateJobViaAIDto.prototype, "yearsOfExperienceFrom", 2);
|
|
6875
6910
|
__decorateClass([
|
|
6876
6911
|
ValidateIf4((o) => !o.isDraft),
|
|
6877
|
-
|
|
6878
|
-
|
|
6912
|
+
IsNotEmpty44({ message: "Please enter the years of experience upto" }),
|
|
6913
|
+
IsString24({ message: "Years of experience must be a string" })
|
|
6879
6914
|
], CreateJobViaAIDto.prototype, "yearsOfExperienceTo", 2);
|
|
6880
6915
|
__decorateClass([
|
|
6881
6916
|
IsOptional22(),
|
|
6882
|
-
|
|
6917
|
+
IsString24({ message: "Business industry must be a string" })
|
|
6883
6918
|
], CreateJobViaAIDto.prototype, "businessIndustry", 2);
|
|
6884
6919
|
__decorateClass([
|
|
6885
6920
|
IsOptional22(),
|
|
@@ -6891,17 +6926,17 @@ __decorateClass([
|
|
|
6891
6926
|
], CreateJobViaAIDto.prototype, "stepCompleted", 2);
|
|
6892
6927
|
__decorateClass([
|
|
6893
6928
|
IsOptional22(),
|
|
6894
|
-
|
|
6895
|
-
|
|
6929
|
+
IsString24({ message: "Additional comment must be a string" }),
|
|
6930
|
+
MaxLength10(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6896
6931
|
], CreateJobViaAIDto.prototype, "additionalComment", 2);
|
|
6897
6932
|
__decorateClass([
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6933
|
+
IsNotEmpty44({ message: "Please enter job description" }),
|
|
6934
|
+
IsString24({ message: "Description must be a string" }),
|
|
6935
|
+
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6901
6936
|
], CreateJobViaAIDto.prototype, "description", 2);
|
|
6902
6937
|
|
|
6903
6938
|
// src/modules/job/dto/job-status.dto.ts
|
|
6904
|
-
import { IsEnum as IsEnum17, IsNotEmpty as
|
|
6939
|
+
import { IsEnum as IsEnum17, IsNotEmpty as IsNotEmpty45 } from "class-validator";
|
|
6905
6940
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
6906
6941
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
6907
6942
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -6914,7 +6949,7 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
6914
6949
|
var JobStatusDto = class {
|
|
6915
6950
|
};
|
|
6916
6951
|
__decorateClass([
|
|
6917
|
-
|
|
6952
|
+
IsNotEmpty45({ message: "Please provide a job status" }),
|
|
6918
6953
|
IsEnum17(JobStatus, {
|
|
6919
6954
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
6920
6955
|
})
|
|
@@ -6932,8 +6967,8 @@ __decorateClass([
|
|
|
6932
6967
|
|
|
6933
6968
|
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
6934
6969
|
import {
|
|
6935
|
-
IsString as
|
|
6936
|
-
IsNotEmpty as
|
|
6970
|
+
IsString as IsString25,
|
|
6971
|
+
IsNotEmpty as IsNotEmpty46,
|
|
6937
6972
|
IsArray as IsArray4,
|
|
6938
6973
|
ArrayNotEmpty as ArrayNotEmpty3,
|
|
6939
6974
|
IsNumber as IsNumber5,
|
|
@@ -6941,7 +6976,7 @@ import {
|
|
|
6941
6976
|
IsEnum as IsEnum18,
|
|
6942
6977
|
Min as Min3,
|
|
6943
6978
|
ValidateIf as ValidateIf5,
|
|
6944
|
-
MaxLength as
|
|
6979
|
+
MaxLength as MaxLength11,
|
|
6945
6980
|
Max as Max3
|
|
6946
6981
|
} from "class-validator";
|
|
6947
6982
|
import { Type as Type4 } from "class-transformer";
|
|
@@ -6986,18 +7021,18 @@ __decorateClass([
|
|
|
6986
7021
|
], JobLocationDto2.prototype, "cityId", 2);
|
|
6987
7022
|
__decorateClass([
|
|
6988
7023
|
IsOptional23(),
|
|
6989
|
-
|
|
6990
|
-
|
|
7024
|
+
IsString25({ message: "Country name must be a string" }),
|
|
7025
|
+
MaxLength11(255, { message: "Country name must not exceed 255 characters" })
|
|
6991
7026
|
], JobLocationDto2.prototype, "countryName", 2);
|
|
6992
7027
|
__decorateClass([
|
|
6993
7028
|
IsOptional23(),
|
|
6994
|
-
|
|
6995
|
-
|
|
7029
|
+
IsString25({ message: "State name must be a string" }),
|
|
7030
|
+
MaxLength11(255, { message: "State name must not exceed 255 characters" })
|
|
6996
7031
|
], JobLocationDto2.prototype, "stateName", 2);
|
|
6997
7032
|
__decorateClass([
|
|
6998
7033
|
IsOptional23(),
|
|
6999
|
-
|
|
7000
|
-
|
|
7034
|
+
IsString25({ message: "City name must be a string" }),
|
|
7035
|
+
MaxLength11(255, { message: "City name must not exceed 255 characters" })
|
|
7001
7036
|
], JobLocationDto2.prototype, "cityName", 2);
|
|
7002
7037
|
var JobBasicInformationV2Dto = class {
|
|
7003
7038
|
constructor() {
|
|
@@ -7009,32 +7044,32 @@ __decorateClass([
|
|
|
7009
7044
|
Type4(() => Boolean)
|
|
7010
7045
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7011
7046
|
__decorateClass([
|
|
7012
|
-
|
|
7013
|
-
|
|
7047
|
+
IsNotEmpty46({ message: "Please enter job role" }),
|
|
7048
|
+
IsString25({ message: "Job role must be a string" })
|
|
7014
7049
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7015
7050
|
__decorateClass([
|
|
7016
7051
|
IsOptional23()
|
|
7017
7052
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7018
7053
|
__decorateClass([
|
|
7019
7054
|
IsOptional23(),
|
|
7020
|
-
|
|
7055
|
+
IsString25({ message: "Project name must be a string" })
|
|
7021
7056
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7022
7057
|
__decorateClass([
|
|
7023
7058
|
IsOptional23(),
|
|
7024
|
-
|
|
7059
|
+
IsString25({ message: "Note must be a string" })
|
|
7025
7060
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
7026
7061
|
__decorateClass([
|
|
7027
7062
|
ValidateIf5((o) => !o.isDraft),
|
|
7028
7063
|
IsOptional23(),
|
|
7029
7064
|
IsArray4({ message: "Skills must be an array" }),
|
|
7030
7065
|
ArrayNotEmpty3({ message: "Please select at least one skill" }),
|
|
7031
|
-
|
|
7066
|
+
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
7032
7067
|
Type4(() => String)
|
|
7033
7068
|
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7034
7069
|
__decorateClass([
|
|
7035
7070
|
ValidateIf5((o) => !o.isDraft),
|
|
7036
7071
|
IsArray4({ message: "Good to have skills must be an array" }),
|
|
7037
|
-
|
|
7072
|
+
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
7038
7073
|
IsOptional23(),
|
|
7039
7074
|
Type4(() => String)
|
|
7040
7075
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -7072,7 +7107,7 @@ __decorateClass([
|
|
|
7072
7107
|
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
7073
7108
|
__decorateClass([
|
|
7074
7109
|
ValidateIf5((o) => !o.isDraft),
|
|
7075
|
-
|
|
7110
|
+
IsString25({ message: "Currency must be a string" })
|
|
7076
7111
|
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7077
7112
|
__decorateClass([
|
|
7078
7113
|
ValidateIf5((o) => !o.isDraft),
|
|
@@ -7131,26 +7166,26 @@ __decorateClass([
|
|
|
7131
7166
|
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7132
7167
|
__decorateClass([
|
|
7133
7168
|
ValidateIf5((o) => !o.isDraft),
|
|
7134
|
-
|
|
7169
|
+
IsString25({ message: "Candidate communication skills must be a string" }),
|
|
7135
7170
|
IsOptional23()
|
|
7136
7171
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7137
7172
|
__decorateClass([
|
|
7138
7173
|
IsOptional23(),
|
|
7139
|
-
|
|
7174
|
+
IsString25({ message: "Academic qualification must be a string" })
|
|
7140
7175
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7141
7176
|
__decorateClass([
|
|
7142
7177
|
ValidateIf5((o) => !o.isDraft),
|
|
7143
|
-
|
|
7144
|
-
|
|
7178
|
+
IsNotEmpty46({ message: "Please enter the years of experience" }),
|
|
7179
|
+
IsString25({ message: "Years of experience must be a string" })
|
|
7145
7180
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7146
7181
|
__decorateClass([
|
|
7147
7182
|
ValidateIf5((o) => !o.isDraft),
|
|
7148
|
-
|
|
7149
|
-
|
|
7183
|
+
IsNotEmpty46({ message: "Please enter the years of experience upto" }),
|
|
7184
|
+
IsString25({ message: "Years of experience must be a string" })
|
|
7150
7185
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7151
7186
|
__decorateClass([
|
|
7152
7187
|
IsOptional23(),
|
|
7153
|
-
|
|
7188
|
+
IsString25({ message: "Business industry must be a string" })
|
|
7154
7189
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7155
7190
|
__decorateClass([
|
|
7156
7191
|
IsOptional23(),
|
|
@@ -7162,26 +7197,26 @@ __decorateClass([
|
|
|
7162
7197
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
7163
7198
|
__decorateClass([
|
|
7164
7199
|
IsOptional23(),
|
|
7165
|
-
|
|
7166
|
-
|
|
7200
|
+
IsString25({ message: "Additional comment must be a string" }),
|
|
7201
|
+
MaxLength11(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7167
7202
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7168
7203
|
|
|
7169
7204
|
// src/modules/job/dto/close-job.dto.ts
|
|
7170
|
-
import { IsOptional as IsOptional24, IsString as
|
|
7205
|
+
import { IsOptional as IsOptional24, IsString as IsString26 } from "class-validator";
|
|
7171
7206
|
var CloseJobDto = class {
|
|
7172
7207
|
};
|
|
7173
7208
|
__decorateClass([
|
|
7174
7209
|
IsOptional24(),
|
|
7175
|
-
|
|
7210
|
+
IsString26()
|
|
7176
7211
|
], CloseJobDto.prototype, "reason", 2);
|
|
7177
7212
|
|
|
7178
7213
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
7179
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
7214
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional25, IsString as IsString27 } from "class-validator";
|
|
7180
7215
|
var CreateJobApplicationDto = class {
|
|
7181
7216
|
};
|
|
7182
7217
|
__decorateClass([
|
|
7183
|
-
|
|
7184
|
-
|
|
7218
|
+
IsNotEmpty47({ message: "Job ID is required" }),
|
|
7219
|
+
IsString27({ message: "Job ID must be a string" })
|
|
7185
7220
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
7186
7221
|
__decorateClass([
|
|
7187
7222
|
IsOptional25(),
|
|
@@ -7189,7 +7224,7 @@ __decorateClass([
|
|
|
7189
7224
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
7190
7225
|
|
|
7191
7226
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
7192
|
-
import { IsEnum as IsEnum19, IsNotEmpty as
|
|
7227
|
+
import { IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty48 } from "class-validator";
|
|
7193
7228
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
7194
7229
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
7195
7230
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -7201,14 +7236,14 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
7201
7236
|
var ChangeJobApplicationStatusDto = class {
|
|
7202
7237
|
};
|
|
7203
7238
|
__decorateClass([
|
|
7204
|
-
|
|
7239
|
+
IsNotEmpty48({ message: "Status is required" }),
|
|
7205
7240
|
IsEnum19(JobApplicationStatus, {
|
|
7206
7241
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
7207
7242
|
})
|
|
7208
7243
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
7209
7244
|
|
|
7210
7245
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
7211
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum20, IsNotEmpty as
|
|
7246
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty49, IsNumber as IsNumber6 } from "class-validator";
|
|
7212
7247
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
7213
7248
|
};
|
|
7214
7249
|
__decorateClass([
|
|
@@ -7217,7 +7252,7 @@ __decorateClass([
|
|
|
7217
7252
|
IsNumber6({}, { each: true, message: "Each job application ID must be a number" })
|
|
7218
7253
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
7219
7254
|
__decorateClass([
|
|
7220
|
-
|
|
7255
|
+
IsNotEmpty49({ message: "Status is required" }),
|
|
7221
7256
|
IsEnum20(JobApplicationStatus, {
|
|
7222
7257
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
7223
7258
|
})
|
|
@@ -7266,24 +7301,24 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
7266
7301
|
|
|
7267
7302
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
7268
7303
|
import {
|
|
7269
|
-
IsString as
|
|
7270
|
-
IsNotEmpty as
|
|
7271
|
-
MaxLength as
|
|
7272
|
-
MinLength as
|
|
7273
|
-
Matches as
|
|
7304
|
+
IsString as IsString28,
|
|
7305
|
+
IsNotEmpty as IsNotEmpty50,
|
|
7306
|
+
MaxLength as MaxLength12,
|
|
7307
|
+
MinLength as MinLength9,
|
|
7308
|
+
Matches as Matches9
|
|
7274
7309
|
} from "class-validator";
|
|
7275
7310
|
var FreelancerChangePasswordDto = class {
|
|
7276
7311
|
};
|
|
7277
7312
|
__decorateClass([
|
|
7278
|
-
|
|
7279
|
-
|
|
7313
|
+
IsNotEmpty50({ message: "Please enter Old Password." }),
|
|
7314
|
+
IsString28()
|
|
7280
7315
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
7281
7316
|
__decorateClass([
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7317
|
+
IsNotEmpty50({ message: "Please enter New Password." }),
|
|
7318
|
+
IsString28(),
|
|
7319
|
+
MinLength9(6),
|
|
7320
|
+
MaxLength12(32),
|
|
7321
|
+
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7287
7322
|
message: "New Password must include letters, numbers and symbols."
|
|
7288
7323
|
})
|
|
7289
7324
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -7291,11 +7326,11 @@ __decorateClass([
|
|
|
7291
7326
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
7292
7327
|
import {
|
|
7293
7328
|
IsOptional as IsOptional26,
|
|
7294
|
-
IsString as
|
|
7329
|
+
IsString as IsString29,
|
|
7295
7330
|
IsEmail as IsEmail7,
|
|
7296
7331
|
IsNumber as IsNumber7,
|
|
7297
7332
|
IsEnum as IsEnum21,
|
|
7298
|
-
IsNotEmpty as
|
|
7333
|
+
IsNotEmpty as IsNotEmpty51,
|
|
7299
7334
|
ValidateIf as ValidateIf6,
|
|
7300
7335
|
IsInt
|
|
7301
7336
|
} from "class-validator";
|
|
@@ -7314,33 +7349,33 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
7314
7349
|
var UpdateFreelancerProfileDto = class {
|
|
7315
7350
|
};
|
|
7316
7351
|
__decorateClass([
|
|
7317
|
-
|
|
7318
|
-
|
|
7352
|
+
IsNotEmpty51({ message: "Please enter first name." }),
|
|
7353
|
+
IsString29({ message: "Please enter valid first name." })
|
|
7319
7354
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
7320
7355
|
__decorateClass([
|
|
7321
7356
|
IsOptional26(),
|
|
7322
|
-
|
|
7323
|
-
|
|
7357
|
+
IsNotEmpty51({ message: "Please enter last name." }),
|
|
7358
|
+
IsString29({ message: "Please enter valid last name." })
|
|
7324
7359
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
7325
7360
|
__decorateClass([
|
|
7326
|
-
|
|
7327
|
-
|
|
7361
|
+
IsNotEmpty51({ message: "Please enter designation." }),
|
|
7362
|
+
IsString29({ message: "Please enter valid designation." })
|
|
7328
7363
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
7329
7364
|
__decorateClass([
|
|
7330
|
-
|
|
7331
|
-
|
|
7365
|
+
IsNotEmpty51({ message: "Please enter experience." }),
|
|
7366
|
+
IsString29({ message: "Please enter valid experience." })
|
|
7332
7367
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
7333
7368
|
__decorateClass([
|
|
7334
|
-
|
|
7369
|
+
IsNotEmpty51({ message: "Please enter email id." }),
|
|
7335
7370
|
IsEmail7()
|
|
7336
7371
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
7337
7372
|
__decorateClass([
|
|
7338
|
-
|
|
7339
|
-
|
|
7373
|
+
IsNotEmpty51({ message: "Please enter mobile code." }),
|
|
7374
|
+
IsString29({ message: "Please enter valid mobile code." })
|
|
7340
7375
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
7341
7376
|
__decorateClass([
|
|
7342
|
-
|
|
7343
|
-
|
|
7377
|
+
IsNotEmpty51({ message: "Please enter mobile number." }),
|
|
7378
|
+
IsString29({ message: "Please enter valid mobile number." })
|
|
7344
7379
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
7345
7380
|
__decorateClass([
|
|
7346
7381
|
IsOptional26(),
|
|
@@ -7357,19 +7392,19 @@ __decorateClass([
|
|
|
7357
7392
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
7358
7393
|
__decorateClass([
|
|
7359
7394
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7360
|
-
|
|
7395
|
+
IsNotEmpty51({ message: "Please enter expected hourly compensation." })
|
|
7361
7396
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
7362
7397
|
__decorateClass([
|
|
7363
7398
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7364
|
-
|
|
7399
|
+
IsNotEmpty51({ message: "Please enter expected annual compensation." })
|
|
7365
7400
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
7366
7401
|
__decorateClass([
|
|
7367
7402
|
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7368
7403
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7369
|
-
|
|
7404
|
+
IsNotEmpty51({ message: "Please enter weekly availability hours" })
|
|
7370
7405
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
7371
7406
|
__decorateClass([
|
|
7372
|
-
|
|
7407
|
+
IsNotEmpty51({ message: "Please select engagement type." }),
|
|
7373
7408
|
IsEnum21(NatureOfWorkDto, {
|
|
7374
7409
|
message: `Engagement Type must be one of: ${Object.values(
|
|
7375
7410
|
NatureOfWorkDto
|
|
@@ -7377,7 +7412,7 @@ __decorateClass([
|
|
|
7377
7412
|
})
|
|
7378
7413
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
7379
7414
|
__decorateClass([
|
|
7380
|
-
|
|
7415
|
+
IsNotEmpty51({ message: "Please select mode of work." }),
|
|
7381
7416
|
IsEnum21(ModeOfWorkDto, {
|
|
7382
7417
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
7383
7418
|
", "
|
|
@@ -7386,70 +7421,70 @@ __decorateClass([
|
|
|
7386
7421
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
7387
7422
|
__decorateClass([
|
|
7388
7423
|
IsOptional26(),
|
|
7389
|
-
|
|
7424
|
+
IsString29()
|
|
7390
7425
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
7391
7426
|
__decorateClass([
|
|
7392
|
-
|
|
7393
|
-
|
|
7427
|
+
IsNotEmpty51({ message: "Please enter address." }),
|
|
7428
|
+
IsString29()
|
|
7394
7429
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
7395
7430
|
__decorateClass([
|
|
7396
7431
|
IsOptional26(),
|
|
7397
|
-
|
|
7432
|
+
IsString29()
|
|
7398
7433
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
7399
7434
|
__decorateClass([
|
|
7400
|
-
|
|
7401
|
-
|
|
7435
|
+
IsNotEmpty51({ message: "Please enter postalCode." }),
|
|
7436
|
+
IsString29()
|
|
7402
7437
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
7403
7438
|
__decorateClass([
|
|
7404
7439
|
IsOptional26(),
|
|
7405
|
-
|
|
7440
|
+
IsString29()
|
|
7406
7441
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
7407
7442
|
__decorateClass([
|
|
7408
7443
|
IsOptional26(),
|
|
7409
|
-
|
|
7444
|
+
IsString29()
|
|
7410
7445
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
7411
7446
|
__decorateClass([
|
|
7412
7447
|
IsOptional26(),
|
|
7413
|
-
|
|
7448
|
+
IsString29()
|
|
7414
7449
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
7415
7450
|
__decorateClass([
|
|
7416
7451
|
IsOptional26(),
|
|
7417
|
-
|
|
7452
|
+
IsString29()
|
|
7418
7453
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
7419
7454
|
__decorateClass([
|
|
7420
7455
|
IsOptional26(),
|
|
7421
|
-
|
|
7456
|
+
IsString29()
|
|
7422
7457
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
7423
7458
|
__decorateClass([
|
|
7424
7459
|
IsOptional26(),
|
|
7425
|
-
|
|
7460
|
+
IsString29()
|
|
7426
7461
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
7427
7462
|
|
|
7428
7463
|
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
7429
|
-
import { IsNotEmpty as
|
|
7464
|
+
import { IsNotEmpty as IsNotEmpty52, IsUUID as IsUUID17 } from "class-validator";
|
|
7430
7465
|
var FreelancerESignatureDto = class {
|
|
7431
7466
|
};
|
|
7432
7467
|
__decorateClass([
|
|
7433
7468
|
IsUUID17("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
7434
|
-
|
|
7469
|
+
IsNotEmpty52({ message: "Freelancer UUID is required." })
|
|
7435
7470
|
], FreelancerESignatureDto.prototype, "uuid", 2);
|
|
7436
7471
|
|
|
7437
7472
|
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
7438
|
-
import { IsNotEmpty as
|
|
7473
|
+
import { IsNotEmpty as IsNotEmpty53, IsNumber as IsNumber8 } from "class-validator";
|
|
7439
7474
|
var FetchClientInfoForChatDto = class {
|
|
7440
7475
|
};
|
|
7441
7476
|
__decorateClass([
|
|
7442
|
-
|
|
7477
|
+
IsNotEmpty53({ message: "Client ID is required" }),
|
|
7443
7478
|
IsNumber8({}, { message: "Client ID must be a number" })
|
|
7444
7479
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
7445
7480
|
|
|
7446
7481
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
7447
|
-
import { IsNotEmpty as
|
|
7482
|
+
import { IsNotEmpty as IsNotEmpty54, IsString as IsString30, IsOptional as IsOptional27, IsObject as IsObject4 } from "class-validator";
|
|
7448
7483
|
var CaptureAiAssessmentResultDto = class {
|
|
7449
7484
|
};
|
|
7450
7485
|
__decorateClass([
|
|
7451
|
-
|
|
7452
|
-
|
|
7486
|
+
IsNotEmpty54({ message: "AI Assessment UUID is required" }),
|
|
7487
|
+
IsString30({ message: "AI Assessment UUID must be a string" })
|
|
7453
7488
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
7454
7489
|
__decorateClass([
|
|
7455
7490
|
IsOptional27(),
|
|
@@ -7457,7 +7492,7 @@ __decorateClass([
|
|
|
7457
7492
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
7458
7493
|
__decorateClass([
|
|
7459
7494
|
IsOptional27(),
|
|
7460
|
-
|
|
7495
|
+
IsString30()
|
|
7461
7496
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7462
7497
|
|
|
7463
7498
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -7473,9 +7508,9 @@ var BANK_PATTERN = {
|
|
|
7473
7508
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7474
7509
|
import {
|
|
7475
7510
|
IsEnum as IsEnum22,
|
|
7476
|
-
IsNotEmpty as
|
|
7511
|
+
IsNotEmpty as IsNotEmpty55,
|
|
7477
7512
|
IsOptional as IsOptional28,
|
|
7478
|
-
IsString as
|
|
7513
|
+
IsString as IsString31,
|
|
7479
7514
|
ValidateIf as ValidateIf7
|
|
7480
7515
|
} from "class-validator";
|
|
7481
7516
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -7486,45 +7521,45 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7486
7521
|
var FreelancerBankDetailsDto = class {
|
|
7487
7522
|
};
|
|
7488
7523
|
__decorateClass([
|
|
7489
|
-
|
|
7524
|
+
IsNotEmpty55({ message: "Please enter Account Holder Name." })
|
|
7490
7525
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7491
7526
|
__decorateClass([
|
|
7492
|
-
|
|
7527
|
+
IsNotEmpty55({ message: "Please enter Mobile Code." })
|
|
7493
7528
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7494
7529
|
__decorateClass([
|
|
7495
|
-
|
|
7530
|
+
IsNotEmpty55({ message: "Please enter Mobile Number." })
|
|
7496
7531
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7497
7532
|
__decorateClass([
|
|
7498
|
-
|
|
7533
|
+
IsNotEmpty55({ message: "Please enter Email." })
|
|
7499
7534
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7500
7535
|
__decorateClass([
|
|
7501
7536
|
IsOptional28()
|
|
7502
7537
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7503
7538
|
__decorateClass([
|
|
7504
|
-
|
|
7539
|
+
IsNotEmpty55({ message: "Please enter Account Number." })
|
|
7505
7540
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7506
7541
|
__decorateClass([
|
|
7507
|
-
|
|
7542
|
+
IsNotEmpty55({ message: "Please enter Bank Name." })
|
|
7508
7543
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7509
7544
|
__decorateClass([
|
|
7510
7545
|
IsOptional28(),
|
|
7511
|
-
|
|
7546
|
+
IsString31()
|
|
7512
7547
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7513
7548
|
__decorateClass([
|
|
7514
7549
|
ValidateIf7((dto) => dto.accountScope === "DOMESTIC"),
|
|
7515
|
-
|
|
7550
|
+
IsNotEmpty55({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7516
7551
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7517
7552
|
__decorateClass([
|
|
7518
7553
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7519
|
-
|
|
7554
|
+
IsNotEmpty55({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7520
7555
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7521
7556
|
__decorateClass([
|
|
7522
7557
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7523
|
-
|
|
7558
|
+
IsNotEmpty55({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7524
7559
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7525
7560
|
__decorateClass([
|
|
7526
7561
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7527
|
-
|
|
7562
|
+
IsNotEmpty55({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7528
7563
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7529
7564
|
__decorateClass([
|
|
7530
7565
|
IsOptional28()
|
|
@@ -7580,26 +7615,26 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7580
7615
|
|
|
7581
7616
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7582
7617
|
import {
|
|
7583
|
-
IsString as
|
|
7584
|
-
IsNotEmpty as
|
|
7585
|
-
MaxLength as
|
|
7618
|
+
IsString as IsString32,
|
|
7619
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7620
|
+
MaxLength as MaxLength13
|
|
7586
7621
|
} from "class-validator";
|
|
7587
7622
|
var AddGlobalSettingDto = class {
|
|
7588
7623
|
};
|
|
7589
7624
|
__decorateClass([
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7625
|
+
IsNotEmpty56({ message: "Key is required" }),
|
|
7626
|
+
IsString32({ message: "Key must be a string" }),
|
|
7627
|
+
MaxLength13(255, { message: "Key must not exceed 255 characters" })
|
|
7593
7628
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7594
7629
|
__decorateClass([
|
|
7595
|
-
|
|
7596
|
-
|
|
7630
|
+
IsNotEmpty56({ message: "Value is required" }),
|
|
7631
|
+
IsString32({ message: "Value must be a string" })
|
|
7597
7632
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7598
7633
|
|
|
7599
7634
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7600
7635
|
import {
|
|
7601
|
-
IsString as
|
|
7602
|
-
IsNotEmpty as
|
|
7636
|
+
IsString as IsString33,
|
|
7637
|
+
IsNotEmpty as IsNotEmpty57,
|
|
7603
7638
|
IsUUID as IsUUID18,
|
|
7604
7639
|
ValidateIf as ValidateIf8
|
|
7605
7640
|
} from "class-validator";
|
|
@@ -7607,13 +7642,13 @@ var RemoveGlobalSettingDto = class {
|
|
|
7607
7642
|
};
|
|
7608
7643
|
__decorateClass([
|
|
7609
7644
|
ValidateIf8((o) => !o.key),
|
|
7610
|
-
|
|
7645
|
+
IsNotEmpty57({ message: "Either uuid or key is required" }),
|
|
7611
7646
|
IsUUID18("4", { message: "UUID must be a valid UUID" })
|
|
7612
7647
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7613
7648
|
__decorateClass([
|
|
7614
7649
|
ValidateIf8((o) => !o.uuid),
|
|
7615
|
-
|
|
7616
|
-
|
|
7650
|
+
IsNotEmpty57({ message: "Either uuid or key is required" }),
|
|
7651
|
+
IsString33({ message: "Key must be a string" })
|
|
7617
7652
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7618
7653
|
|
|
7619
7654
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7640,7 +7675,8 @@ var NOTIFICATION_PATTERN = {
|
|
|
7640
7675
|
handleAiAssessmentInterviewResultErrorNotification: "handle.ai.assessment.interview.result.error.notification",
|
|
7641
7676
|
handleAiAssessmentInterviewRecordingErrorNotification: "handle.ai.assessment.interview.recording.error.notification",
|
|
7642
7677
|
handleSubAdminAccountCreatedNotification: "handle.subadmin.account.created.notification",
|
|
7643
|
-
handleUserResetPasswordByAdminNotification: "handle.user.reset.password.by.admin.notification"
|
|
7678
|
+
handleUserResetPasswordByAdminNotification: "handle.user.reset.password.by.admin.notification",
|
|
7679
|
+
handlePasswordChangeNotification: "handle.password.change.notification"
|
|
7644
7680
|
};
|
|
7645
7681
|
var SMS_PATTERN = {
|
|
7646
7682
|
sendTest: "sms.send.test",
|
|
@@ -7658,7 +7694,7 @@ var EMAIL_PATTERN = {
|
|
|
7658
7694
|
};
|
|
7659
7695
|
|
|
7660
7696
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7661
|
-
import { IsOptional as IsOptional29, IsString as
|
|
7697
|
+
import { IsOptional as IsOptional29, IsString as IsString34, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
7662
7698
|
var TestNotificationDto = class {
|
|
7663
7699
|
};
|
|
7664
7700
|
__decorateClass([
|
|
@@ -7671,7 +7707,7 @@ __decorateClass([
|
|
|
7671
7707
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7672
7708
|
__decorateClass([
|
|
7673
7709
|
IsOptional29(),
|
|
7674
|
-
|
|
7710
|
+
IsString34()
|
|
7675
7711
|
], TestNotificationDto.prototype, "message", 2);
|
|
7676
7712
|
__decorateClass([
|
|
7677
7713
|
IsOptional29(),
|
|
@@ -7679,7 +7715,7 @@ __decorateClass([
|
|
|
7679
7715
|
], TestNotificationDto.prototype, "data", 2);
|
|
7680
7716
|
__decorateClass([
|
|
7681
7717
|
IsOptional29(),
|
|
7682
|
-
|
|
7718
|
+
IsString34()
|
|
7683
7719
|
], TestNotificationDto.prototype, "type", 2);
|
|
7684
7720
|
|
|
7685
7721
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7693,9 +7729,9 @@ var RATING_PATTERN = {
|
|
|
7693
7729
|
import {
|
|
7694
7730
|
IsEnum as IsEnum24,
|
|
7695
7731
|
IsInt as IsInt2,
|
|
7696
|
-
IsNotEmpty as
|
|
7732
|
+
IsNotEmpty as IsNotEmpty58,
|
|
7697
7733
|
IsOptional as IsOptional30,
|
|
7698
|
-
IsString as
|
|
7734
|
+
IsString as IsString35,
|
|
7699
7735
|
IsNumber as IsNumber9,
|
|
7700
7736
|
Min as Min4,
|
|
7701
7737
|
Max as Max4
|
|
@@ -7712,7 +7748,7 @@ __decorateClass([
|
|
|
7712
7748
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7713
7749
|
__decorateClass([
|
|
7714
7750
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7715
|
-
|
|
7751
|
+
IsNotEmpty58({ message: "Job ID is required" })
|
|
7716
7752
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7717
7753
|
__decorateClass([
|
|
7718
7754
|
IsEnum24(RatingTypeEnum, {
|
|
@@ -7721,7 +7757,7 @@ __decorateClass([
|
|
|
7721
7757
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7722
7758
|
__decorateClass([
|
|
7723
7759
|
IsOptional30(),
|
|
7724
|
-
|
|
7760
|
+
IsString35({ message: "Reviewer comment must be a string" })
|
|
7725
7761
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7726
7762
|
__decorateClass([
|
|
7727
7763
|
IsOptional30(),
|
|
@@ -7803,17 +7839,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7803
7839
|
};
|
|
7804
7840
|
|
|
7805
7841
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7806
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
7842
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty59, IsOptional as IsOptional31 } from "class-validator";
|
|
7807
7843
|
var CreateCompanyRoleDto = class {
|
|
7808
7844
|
};
|
|
7809
7845
|
__decorateClass([
|
|
7810
|
-
|
|
7846
|
+
IsNotEmpty59({ message: "Please enter company role name." })
|
|
7811
7847
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7812
7848
|
__decorateClass([
|
|
7813
|
-
|
|
7849
|
+
IsNotEmpty59({ message: "Please enter company role slug" })
|
|
7814
7850
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7815
7851
|
__decorateClass([
|
|
7816
|
-
|
|
7852
|
+
IsNotEmpty59({ message: "Please enter description" })
|
|
7817
7853
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7818
7854
|
__decorateClass([
|
|
7819
7855
|
IsArray6({ message: "Permission IDs must be an array." }),
|
|
@@ -7826,17 +7862,17 @@ __decorateClass([
|
|
|
7826
7862
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7827
7863
|
|
|
7828
7864
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7829
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as
|
|
7865
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty60, IsOptional as IsOptional32 } from "class-validator";
|
|
7830
7866
|
var UpdateCompanyRoleDto = class {
|
|
7831
7867
|
};
|
|
7832
7868
|
__decorateClass([
|
|
7833
|
-
|
|
7869
|
+
IsNotEmpty60({ message: "Please enter company name." })
|
|
7834
7870
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7835
7871
|
__decorateClass([
|
|
7836
|
-
|
|
7872
|
+
IsNotEmpty60({ message: "Please enter slug" })
|
|
7837
7873
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7838
7874
|
__decorateClass([
|
|
7839
|
-
|
|
7875
|
+
IsNotEmpty60({ message: "Please enter description" })
|
|
7840
7876
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7841
7877
|
__decorateClass([
|
|
7842
7878
|
IsArray7({ message: "Permission IDs must be an array." }),
|
|
@@ -7865,10 +7901,10 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7865
7901
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7866
7902
|
import {
|
|
7867
7903
|
ArrayMinSize,
|
|
7868
|
-
IsNotEmpty as
|
|
7904
|
+
IsNotEmpty as IsNotEmpty61,
|
|
7869
7905
|
IsOptional as IsOptional33,
|
|
7870
|
-
IsString as
|
|
7871
|
-
MaxLength as
|
|
7906
|
+
IsString as IsString38,
|
|
7907
|
+
MaxLength as MaxLength15,
|
|
7872
7908
|
ValidateNested as ValidateNested3
|
|
7873
7909
|
} from "class-validator";
|
|
7874
7910
|
import { Type as Type5 } from "class-transformer";
|
|
@@ -7878,21 +7914,21 @@ __decorateClass([
|
|
|
7878
7914
|
IsOptional33()
|
|
7879
7915
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7880
7916
|
__decorateClass([
|
|
7881
|
-
|
|
7882
|
-
|
|
7917
|
+
IsNotEmpty61(),
|
|
7918
|
+
IsString38()
|
|
7883
7919
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7884
7920
|
__decorateClass([
|
|
7885
|
-
|
|
7886
|
-
|
|
7921
|
+
IsNotEmpty61(),
|
|
7922
|
+
IsString38()
|
|
7887
7923
|
], ExperienceDto.prototype, "designation", 2);
|
|
7888
7924
|
__decorateClass([
|
|
7889
|
-
|
|
7890
|
-
|
|
7925
|
+
IsNotEmpty61(),
|
|
7926
|
+
IsString38()
|
|
7891
7927
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7892
7928
|
__decorateClass([
|
|
7893
7929
|
IsOptional33(),
|
|
7894
|
-
|
|
7895
|
-
|
|
7930
|
+
IsString38(),
|
|
7931
|
+
MaxLength15(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7896
7932
|
], ExperienceDto.prototype, "description", 2);
|
|
7897
7933
|
var FreelancerExperienceDto = class {
|
|
7898
7934
|
};
|
|
@@ -7915,14 +7951,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7915
7951
|
};
|
|
7916
7952
|
|
|
7917
7953
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7918
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as
|
|
7954
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as IsNotEmpty62 } from "class-validator";
|
|
7919
7955
|
var CreateCompanyMemberDto = class {
|
|
7920
7956
|
};
|
|
7921
7957
|
__decorateClass([
|
|
7922
|
-
|
|
7958
|
+
IsNotEmpty62({ message: "Please enter name." })
|
|
7923
7959
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7924
7960
|
__decorateClass([
|
|
7925
|
-
|
|
7961
|
+
IsNotEmpty62({ message: "Please enter email" })
|
|
7926
7962
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7927
7963
|
__decorateClass([
|
|
7928
7964
|
IsArray8({ message: "Role IDs must be an array." }),
|
|
@@ -7931,14 +7967,14 @@ __decorateClass([
|
|
|
7931
7967
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7932
7968
|
|
|
7933
7969
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7934
|
-
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as
|
|
7970
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as IsNotEmpty63 } from "class-validator";
|
|
7935
7971
|
var UpdateCompanyMemberDto = class {
|
|
7936
7972
|
};
|
|
7937
7973
|
__decorateClass([
|
|
7938
|
-
|
|
7974
|
+
IsNotEmpty63({ message: "Please enter name." })
|
|
7939
7975
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7940
7976
|
__decorateClass([
|
|
7941
|
-
|
|
7977
|
+
IsNotEmpty63({ message: "Please enter email" })
|
|
7942
7978
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7943
7979
|
__decorateClass([
|
|
7944
7980
|
IsArray9({ message: "Role IDs must be an array." }),
|
|
@@ -7961,7 +7997,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7961
7997
|
};
|
|
7962
7998
|
|
|
7963
7999
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
7964
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as
|
|
8000
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString41, IsNotEmpty as IsNotEmpty64, IsOptional as IsOptional36, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
7965
8001
|
import { Type as Type6 } from "class-transformer";
|
|
7966
8002
|
var EducationDto = class {
|
|
7967
8003
|
};
|
|
@@ -7969,16 +8005,16 @@ __decorateClass([
|
|
|
7969
8005
|
IsOptional36()
|
|
7970
8006
|
], EducationDto.prototype, "uuid", 2);
|
|
7971
8007
|
__decorateClass([
|
|
7972
|
-
|
|
7973
|
-
|
|
8008
|
+
IsString41(),
|
|
8009
|
+
IsNotEmpty64({ message: "Please Enter Degree " })
|
|
7974
8010
|
], EducationDto.prototype, "degree", 2);
|
|
7975
8011
|
__decorateClass([
|
|
7976
|
-
|
|
7977
|
-
|
|
8012
|
+
IsString41(),
|
|
8013
|
+
IsNotEmpty64({ message: "Please Enter University " })
|
|
7978
8014
|
], EducationDto.prototype, "university", 2);
|
|
7979
8015
|
__decorateClass([
|
|
7980
|
-
|
|
7981
|
-
|
|
8016
|
+
IsString41(),
|
|
8017
|
+
IsNotEmpty64({ message: "Please Enter Year of Graduation " })
|
|
7982
8018
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
7983
8019
|
var FreelancerEducationDto = class {
|
|
7984
8020
|
};
|
|
@@ -7996,7 +8032,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
7996
8032
|
};
|
|
7997
8033
|
|
|
7998
8034
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
7999
|
-
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as
|
|
8035
|
+
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString42, IsNotEmpty as IsNotEmpty65, IsOptional as IsOptional37, IsDateString, MaxLength as MaxLength17, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
8000
8036
|
import { Type as Type7 } from "class-transformer";
|
|
8001
8037
|
var ProjectDto = class {
|
|
8002
8038
|
};
|
|
@@ -8004,29 +8040,29 @@ __decorateClass([
|
|
|
8004
8040
|
IsOptional37()
|
|
8005
8041
|
], ProjectDto.prototype, "uuid", 2);
|
|
8006
8042
|
__decorateClass([
|
|
8007
|
-
|
|
8008
|
-
|
|
8043
|
+
IsString42(),
|
|
8044
|
+
IsNotEmpty65({ message: "Please Enter Project Name " })
|
|
8009
8045
|
], ProjectDto.prototype, "projectName", 2);
|
|
8010
8046
|
__decorateClass([
|
|
8011
8047
|
IsDateString(),
|
|
8012
|
-
|
|
8048
|
+
IsNotEmpty65({ message: "Please Enter Start Date " })
|
|
8013
8049
|
], ProjectDto.prototype, "startDate", 2);
|
|
8014
8050
|
__decorateClass([
|
|
8015
8051
|
IsDateString(),
|
|
8016
|
-
|
|
8052
|
+
IsNotEmpty65({ message: "Please Enter End Date " })
|
|
8017
8053
|
], ProjectDto.prototype, "endDate", 2);
|
|
8018
8054
|
__decorateClass([
|
|
8019
8055
|
IsOptional37(),
|
|
8020
|
-
|
|
8056
|
+
IsString42()
|
|
8021
8057
|
], ProjectDto.prototype, "clientName", 2);
|
|
8022
8058
|
__decorateClass([
|
|
8023
8059
|
IsOptional37(),
|
|
8024
|
-
|
|
8060
|
+
IsString42()
|
|
8025
8061
|
], ProjectDto.prototype, "gitLink", 2);
|
|
8026
8062
|
__decorateClass([
|
|
8027
8063
|
IsOptional37(),
|
|
8028
|
-
|
|
8029
|
-
|
|
8064
|
+
IsString42(),
|
|
8065
|
+
MaxLength17(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8030
8066
|
], ProjectDto.prototype, "description", 2);
|
|
8031
8067
|
var CaseStudyDto = class {
|
|
8032
8068
|
};
|
|
@@ -8034,17 +8070,17 @@ __decorateClass([
|
|
|
8034
8070
|
IsOptional37()
|
|
8035
8071
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
8036
8072
|
__decorateClass([
|
|
8037
|
-
|
|
8038
|
-
|
|
8073
|
+
IsString42(),
|
|
8074
|
+
IsNotEmpty65({ message: "Please Enter Project Name " })
|
|
8039
8075
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
8040
8076
|
__decorateClass([
|
|
8041
8077
|
IsOptional37(),
|
|
8042
|
-
|
|
8078
|
+
IsString42()
|
|
8043
8079
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
8044
8080
|
__decorateClass([
|
|
8045
8081
|
IsOptional37(),
|
|
8046
|
-
|
|
8047
|
-
|
|
8082
|
+
IsString42(),
|
|
8083
|
+
MaxLength17(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8048
8084
|
], CaseStudyDto.prototype, "description", 2);
|
|
8049
8085
|
var FreelancerProjectDto = class {
|
|
8050
8086
|
};
|
|
@@ -8073,7 +8109,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
8073
8109
|
};
|
|
8074
8110
|
|
|
8075
8111
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
8076
|
-
import { IsArray as IsArray12, IsString as
|
|
8112
|
+
import { IsArray as IsArray12, IsString as IsString43, IsOptional as IsOptional38 } from "class-validator";
|
|
8077
8113
|
import { Type as Type8 } from "class-transformer";
|
|
8078
8114
|
var FreelancerSkillDto = class {
|
|
8079
8115
|
constructor() {
|
|
@@ -8087,25 +8123,25 @@ __decorateClass([
|
|
|
8087
8123
|
IsOptional38(),
|
|
8088
8124
|
IsArray12(),
|
|
8089
8125
|
Type8(() => String),
|
|
8090
|
-
|
|
8126
|
+
IsString43({ each: true })
|
|
8091
8127
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
8092
8128
|
__decorateClass([
|
|
8093
8129
|
IsOptional38(),
|
|
8094
8130
|
IsArray12(),
|
|
8095
8131
|
Type8(() => String),
|
|
8096
|
-
|
|
8132
|
+
IsString43({ each: true })
|
|
8097
8133
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
8098
8134
|
__decorateClass([
|
|
8099
8135
|
IsOptional38(),
|
|
8100
8136
|
IsArray12(),
|
|
8101
8137
|
Type8(() => String),
|
|
8102
|
-
|
|
8138
|
+
IsString43({ each: true })
|
|
8103
8139
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
8104
8140
|
__decorateClass([
|
|
8105
8141
|
IsOptional38(),
|
|
8106
8142
|
IsArray12(),
|
|
8107
8143
|
Type8(() => String),
|
|
8108
|
-
|
|
8144
|
+
IsString43({ each: true })
|
|
8109
8145
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
8110
8146
|
|
|
8111
8147
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -8139,17 +8175,17 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
8139
8175
|
|
|
8140
8176
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
8141
8177
|
import {
|
|
8142
|
-
IsString as
|
|
8178
|
+
IsString as IsString44,
|
|
8143
8179
|
IsEmail as IsEmail13,
|
|
8144
8180
|
IsBoolean as IsBoolean11,
|
|
8145
8181
|
IsOptional as IsOptional39,
|
|
8146
8182
|
IsEnum as IsEnum25,
|
|
8147
8183
|
IsNumber as IsNumber10,
|
|
8148
8184
|
IsUrl as IsUrl3,
|
|
8149
|
-
MaxLength as
|
|
8150
|
-
MinLength as
|
|
8151
|
-
Matches as
|
|
8152
|
-
IsNotEmpty as
|
|
8185
|
+
MaxLength as MaxLength19,
|
|
8186
|
+
MinLength as MinLength14,
|
|
8187
|
+
Matches as Matches10,
|
|
8188
|
+
IsNotEmpty as IsNotEmpty67,
|
|
8153
8189
|
ValidateIf as ValidateIf9,
|
|
8154
8190
|
IsInt as IsInt7
|
|
8155
8191
|
} from "class-validator";
|
|
@@ -8170,8 +8206,8 @@ var CreateFreelancerDto = class {
|
|
|
8170
8206
|
};
|
|
8171
8207
|
__decorateClass([
|
|
8172
8208
|
IsOptional39(),
|
|
8173
|
-
|
|
8174
|
-
|
|
8209
|
+
IsString44({ message: "Full name must be a string" }),
|
|
8210
|
+
MaxLength19(100, { message: "Full name must not exceed 100 characters" }),
|
|
8175
8211
|
Transform2(({ value }) => {
|
|
8176
8212
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8177
8213
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8187,7 +8223,7 @@ __decorateClass([
|
|
|
8187
8223
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
8188
8224
|
__decorateClass([
|
|
8189
8225
|
IsOptional39(),
|
|
8190
|
-
|
|
8226
|
+
IsString44({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8191
8227
|
Transform2(({ value }) => {
|
|
8192
8228
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8193
8229
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8195,15 +8231,15 @@ __decorateClass([
|
|
|
8195
8231
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
8196
8232
|
__decorateClass([
|
|
8197
8233
|
IsOptional39(),
|
|
8198
|
-
|
|
8234
|
+
IsString44({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8199
8235
|
Transform2(({ value }) => {
|
|
8200
8236
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8201
8237
|
return typeof value === "string" ? value.trim() : value;
|
|
8202
8238
|
})
|
|
8203
8239
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
8204
8240
|
__decorateClass([
|
|
8205
|
-
|
|
8206
|
-
|
|
8241
|
+
IsNotEmpty67({ message: "Please enter address." }),
|
|
8242
|
+
IsString44({ message: "address must be a string" }),
|
|
8207
8243
|
Transform2(({ value }) => {
|
|
8208
8244
|
if (Array.isArray(value)) {
|
|
8209
8245
|
const val = value[0];
|
|
@@ -8214,7 +8250,7 @@ __decorateClass([
|
|
|
8214
8250
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
8215
8251
|
__decorateClass([
|
|
8216
8252
|
IsOptional39(),
|
|
8217
|
-
|
|
8253
|
+
IsString44({ message: "addressLine must be a string" }),
|
|
8218
8254
|
Transform2(({ value }) => {
|
|
8219
8255
|
if (Array.isArray(value)) {
|
|
8220
8256
|
const val = value[0];
|
|
@@ -8254,7 +8290,7 @@ __decorateClass([
|
|
|
8254
8290
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
8255
8291
|
__decorateClass([
|
|
8256
8292
|
IsOptional39(),
|
|
8257
|
-
|
|
8293
|
+
IsString44({ message: "postalCode must be a string" }),
|
|
8258
8294
|
Transform2(({ value }) => {
|
|
8259
8295
|
if (Array.isArray(value)) {
|
|
8260
8296
|
const val = value[0];
|
|
@@ -8267,7 +8303,7 @@ __decorateClass([
|
|
|
8267
8303
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
8268
8304
|
__decorateClass([
|
|
8269
8305
|
IsOptional39(),
|
|
8270
|
-
|
|
8306
|
+
IsString44({ message: "about must be a string" }),
|
|
8271
8307
|
Transform2(({ value }) => {
|
|
8272
8308
|
if (Array.isArray(value)) {
|
|
8273
8309
|
const val = value[0];
|
|
@@ -8280,7 +8316,7 @@ __decorateClass([
|
|
|
8280
8316
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
8281
8317
|
__decorateClass([
|
|
8282
8318
|
IsOptional39(),
|
|
8283
|
-
|
|
8319
|
+
IsString44({ message: "designation must be a string" }),
|
|
8284
8320
|
Transform2(({ value }) => {
|
|
8285
8321
|
if (Array.isArray(value)) {
|
|
8286
8322
|
const val = value[0];
|
|
@@ -8306,14 +8342,14 @@ __decorateClass([
|
|
|
8306
8342
|
if (Array.isArray(value)) value = value[0];
|
|
8307
8343
|
return value === null || value === "" ? void 0 : value;
|
|
8308
8344
|
}),
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8345
|
+
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
8346
|
+
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
8347
|
+
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8312
8348
|
message: "Password must include letters, numbers and symbols."
|
|
8313
8349
|
})
|
|
8314
8350
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
8315
8351
|
__decorateClass([
|
|
8316
|
-
|
|
8352
|
+
IsNotEmpty67({ message: "Please enter confirm password." }),
|
|
8317
8353
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
8318
8354
|
Transform2(({ value }) => {
|
|
8319
8355
|
if (Array.isArray(value)) {
|
|
@@ -8398,7 +8434,7 @@ __decorateClass([
|
|
|
8398
8434
|
__decorateClass([
|
|
8399
8435
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8400
8436
|
IsOptional39(),
|
|
8401
|
-
|
|
8437
|
+
IsString44({ message: "availabilityToJoin must be a string" }),
|
|
8402
8438
|
Transform2(({ value }) => {
|
|
8403
8439
|
if (Array.isArray(value)) {
|
|
8404
8440
|
const val = value[0];
|
|
@@ -8424,7 +8460,7 @@ __decorateClass([
|
|
|
8424
8460
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8425
8461
|
__decorateClass([
|
|
8426
8462
|
IsOptional39(),
|
|
8427
|
-
|
|
8463
|
+
IsString44({ message: "Kaggle profile link must be a string" }),
|
|
8428
8464
|
Transform2(({ value }) => {
|
|
8429
8465
|
if (Array.isArray(value)) {
|
|
8430
8466
|
const val = value[0];
|
|
@@ -8480,17 +8516,17 @@ __decorateClass([
|
|
|
8480
8516
|
|
|
8481
8517
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8482
8518
|
import {
|
|
8483
|
-
IsString as
|
|
8519
|
+
IsString as IsString45,
|
|
8484
8520
|
IsEmail as IsEmail14,
|
|
8485
8521
|
IsBoolean as IsBoolean12,
|
|
8486
8522
|
IsOptional as IsOptional40,
|
|
8487
8523
|
IsEnum as IsEnum26,
|
|
8488
8524
|
IsNumber as IsNumber11,
|
|
8489
8525
|
IsUrl as IsUrl4,
|
|
8490
|
-
MaxLength as
|
|
8491
|
-
MinLength as
|
|
8492
|
-
Matches as
|
|
8493
|
-
IsNotEmpty as
|
|
8526
|
+
MaxLength as MaxLength20,
|
|
8527
|
+
MinLength as MinLength15,
|
|
8528
|
+
Matches as Matches11,
|
|
8529
|
+
IsNotEmpty as IsNotEmpty68,
|
|
8494
8530
|
ValidateIf as ValidateIf10,
|
|
8495
8531
|
IsInt as IsInt8
|
|
8496
8532
|
} from "class-validator";
|
|
@@ -8511,8 +8547,8 @@ var UpdateFreelancerDto = class {
|
|
|
8511
8547
|
};
|
|
8512
8548
|
__decorateClass([
|
|
8513
8549
|
IsOptional40(),
|
|
8514
|
-
|
|
8515
|
-
|
|
8550
|
+
IsString45({ message: "Full name must be a string" }),
|
|
8551
|
+
MaxLength20(100, { message: "Full name must not exceed 100 characters" }),
|
|
8516
8552
|
Transform3(({ value }) => {
|
|
8517
8553
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8518
8554
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8528,7 +8564,7 @@ __decorateClass([
|
|
|
8528
8564
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8529
8565
|
__decorateClass([
|
|
8530
8566
|
IsOptional40(),
|
|
8531
|
-
|
|
8567
|
+
IsString45({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8532
8568
|
Transform3(({ value }) => {
|
|
8533
8569
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8534
8570
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8536,15 +8572,15 @@ __decorateClass([
|
|
|
8536
8572
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8537
8573
|
__decorateClass([
|
|
8538
8574
|
IsOptional40(),
|
|
8539
|
-
|
|
8575
|
+
IsString45({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8540
8576
|
Transform3(({ value }) => {
|
|
8541
8577
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8542
8578
|
return typeof value === "string" ? value.trim() : value;
|
|
8543
8579
|
})
|
|
8544
8580
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8545
8581
|
__decorateClass([
|
|
8546
|
-
|
|
8547
|
-
|
|
8582
|
+
IsNotEmpty68({ message: "Please enter address." }),
|
|
8583
|
+
IsString45({ message: "address must be a string" }),
|
|
8548
8584
|
Transform3(({ value }) => {
|
|
8549
8585
|
if (Array.isArray(value)) {
|
|
8550
8586
|
const val = value[0];
|
|
@@ -8555,7 +8591,7 @@ __decorateClass([
|
|
|
8555
8591
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8556
8592
|
__decorateClass([
|
|
8557
8593
|
IsOptional40(),
|
|
8558
|
-
|
|
8594
|
+
IsString45({ message: "addressLine must be a string" }),
|
|
8559
8595
|
Transform3(({ value }) => {
|
|
8560
8596
|
if (Array.isArray(value)) {
|
|
8561
8597
|
const val = value[0];
|
|
@@ -8595,7 +8631,7 @@ __decorateClass([
|
|
|
8595
8631
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8596
8632
|
__decorateClass([
|
|
8597
8633
|
IsOptional40(),
|
|
8598
|
-
|
|
8634
|
+
IsString45({ message: "postalCode must be a string" }),
|
|
8599
8635
|
Transform3(({ value }) => {
|
|
8600
8636
|
if (Array.isArray(value)) {
|
|
8601
8637
|
const val = value[0];
|
|
@@ -8608,7 +8644,7 @@ __decorateClass([
|
|
|
8608
8644
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8609
8645
|
__decorateClass([
|
|
8610
8646
|
IsOptional40(),
|
|
8611
|
-
|
|
8647
|
+
IsString45({ message: "about must be a string" }),
|
|
8612
8648
|
Transform3(({ value }) => {
|
|
8613
8649
|
if (Array.isArray(value)) {
|
|
8614
8650
|
const val = value[0];
|
|
@@ -8621,7 +8657,7 @@ __decorateClass([
|
|
|
8621
8657
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8622
8658
|
__decorateClass([
|
|
8623
8659
|
IsOptional40(),
|
|
8624
|
-
|
|
8660
|
+
IsString45({ message: "designation must be a string" }),
|
|
8625
8661
|
Transform3(({ value }) => {
|
|
8626
8662
|
if (Array.isArray(value)) {
|
|
8627
8663
|
const val = value[0];
|
|
@@ -8647,9 +8683,9 @@ __decorateClass([
|
|
|
8647
8683
|
if (Array.isArray(value)) value = value[0];
|
|
8648
8684
|
return value === null || value === "" ? void 0 : value;
|
|
8649
8685
|
}),
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8686
|
+
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
8687
|
+
MaxLength20(32, { message: "Password must not exceed 32 characters." }),
|
|
8688
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8653
8689
|
message: "Password must include letters, numbers and symbols."
|
|
8654
8690
|
})
|
|
8655
8691
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
@@ -8728,7 +8764,7 @@ __decorateClass([
|
|
|
8728
8764
|
__decorateClass([
|
|
8729
8765
|
ValidateIf10((o) => o.isImmediateJoiner === false),
|
|
8730
8766
|
IsOptional40(),
|
|
8731
|
-
|
|
8767
|
+
IsString45({ message: "availabilityToJoin must be a string" }),
|
|
8732
8768
|
Transform3(({ value }) => {
|
|
8733
8769
|
if (Array.isArray(value)) {
|
|
8734
8770
|
const val = value[0];
|
|
@@ -8754,7 +8790,7 @@ __decorateClass([
|
|
|
8754
8790
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8755
8791
|
__decorateClass([
|
|
8756
8792
|
IsOptional40(),
|
|
8757
|
-
|
|
8793
|
+
IsString45({ message: "Kaggle profile link must be a string" }),
|
|
8758
8794
|
Transform3(({ value }) => {
|
|
8759
8795
|
if (Array.isArray(value)) {
|
|
8760
8796
|
const val = value[0];
|
|
@@ -8809,16 +8845,16 @@ __decorateClass([
|
|
|
8809
8845
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8810
8846
|
|
|
8811
8847
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8812
|
-
import { IsNotEmpty as
|
|
8848
|
+
import { IsNotEmpty as IsNotEmpty69, IsUUID as IsUUID19 } from "class-validator";
|
|
8813
8849
|
var SendAiAssessmentLinkDto = class {
|
|
8814
8850
|
};
|
|
8815
8851
|
__decorateClass([
|
|
8816
8852
|
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8817
|
-
|
|
8853
|
+
IsNotEmpty69({ message: "Freelancer UUID is required." })
|
|
8818
8854
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8819
8855
|
|
|
8820
8856
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8821
|
-
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as
|
|
8857
|
+
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as IsString46 } from "class-validator";
|
|
8822
8858
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8823
8859
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8824
8860
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8835,7 +8871,7 @@ __decorateClass([
|
|
|
8835
8871
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8836
8872
|
__decorateClass([
|
|
8837
8873
|
IsOptional41(),
|
|
8838
|
-
|
|
8874
|
+
IsString46()
|
|
8839
8875
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8840
8876
|
|
|
8841
8877
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8881,13 +8917,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8881
8917
|
|
|
8882
8918
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8883
8919
|
import {
|
|
8884
|
-
IsNotEmpty as
|
|
8920
|
+
IsNotEmpty as IsNotEmpty70,
|
|
8885
8921
|
IsEmail as IsEmail16,
|
|
8886
8922
|
IsOptional as IsOptional43,
|
|
8887
|
-
IsString as
|
|
8888
|
-
MinLength as
|
|
8889
|
-
MaxLength as
|
|
8890
|
-
Matches as
|
|
8923
|
+
IsString as IsString47,
|
|
8924
|
+
MinLength as MinLength16,
|
|
8925
|
+
MaxLength as MaxLength21,
|
|
8926
|
+
Matches as Matches12,
|
|
8891
8927
|
IsInt as IsInt9,
|
|
8892
8928
|
IsUrl as IsUrl5
|
|
8893
8929
|
} from "class-validator";
|
|
@@ -8895,52 +8931,52 @@ import { Type as Type9 } from "class-transformer";
|
|
|
8895
8931
|
var CreateClientDto = class {
|
|
8896
8932
|
};
|
|
8897
8933
|
__decorateClass([
|
|
8898
|
-
|
|
8899
|
-
|
|
8934
|
+
IsNotEmpty70({ message: "Please enter first name." }),
|
|
8935
|
+
IsString47()
|
|
8900
8936
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8901
8937
|
__decorateClass([
|
|
8902
|
-
|
|
8903
|
-
|
|
8938
|
+
IsNotEmpty70({ message: "Please enter last name." }),
|
|
8939
|
+
IsString47()
|
|
8904
8940
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8905
8941
|
__decorateClass([
|
|
8906
|
-
|
|
8942
|
+
IsNotEmpty70({ message: "Please enter email." }),
|
|
8907
8943
|
IsEmail16()
|
|
8908
8944
|
], CreateClientDto.prototype, "email", 2);
|
|
8909
8945
|
__decorateClass([
|
|
8910
|
-
|
|
8911
|
-
|
|
8946
|
+
IsNotEmpty70({ message: "Please enter mobile code." }),
|
|
8947
|
+
IsString47({ message: "Mobile code must be a string." })
|
|
8912
8948
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8913
8949
|
__decorateClass([
|
|
8914
|
-
|
|
8915
|
-
|
|
8950
|
+
IsNotEmpty70({ message: "Please enter phone number." }),
|
|
8951
|
+
IsString47({ message: "Phone number must be a string." })
|
|
8916
8952
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8917
8953
|
__decorateClass([
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8954
|
+
IsNotEmpty70({ message: "Please enter password." }),
|
|
8955
|
+
MinLength16(6),
|
|
8956
|
+
MaxLength21(32),
|
|
8957
|
+
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8922
8958
|
message: "Password must include letters, numbers and symbols."
|
|
8923
8959
|
})
|
|
8924
8960
|
], CreateClientDto.prototype, "password", 2);
|
|
8925
8961
|
__decorateClass([
|
|
8926
|
-
|
|
8962
|
+
IsNotEmpty70({ message: "Please enter confirm password." }),
|
|
8927
8963
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8928
8964
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8929
8965
|
__decorateClass([
|
|
8930
|
-
|
|
8931
|
-
|
|
8966
|
+
IsNotEmpty70({ message: "Please enter company name." }),
|
|
8967
|
+
IsString47()
|
|
8932
8968
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8933
8969
|
__decorateClass([
|
|
8934
8970
|
IsOptional43(),
|
|
8935
|
-
|
|
8971
|
+
IsString47()
|
|
8936
8972
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8937
8973
|
__decorateClass([
|
|
8938
8974
|
IsOptional43(),
|
|
8939
|
-
|
|
8975
|
+
IsString47()
|
|
8940
8976
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8941
8977
|
__decorateClass([
|
|
8942
8978
|
IsOptional43(),
|
|
8943
|
-
|
|
8979
|
+
IsString47({ message: "About company must be a string." })
|
|
8944
8980
|
], CreateClientDto.prototype, "about", 2);
|
|
8945
8981
|
__decorateClass([
|
|
8946
8982
|
IsOptional43(),
|
|
@@ -8948,15 +8984,15 @@ __decorateClass([
|
|
|
8948
8984
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8949
8985
|
__decorateClass([
|
|
8950
8986
|
IsOptional43(),
|
|
8951
|
-
|
|
8987
|
+
IsString47({ message: "Company address must be a string." })
|
|
8952
8988
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8953
8989
|
__decorateClass([
|
|
8954
8990
|
IsOptional43(),
|
|
8955
|
-
|
|
8991
|
+
IsString47({ message: "Address line must be a string." })
|
|
8956
8992
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8957
8993
|
__decorateClass([
|
|
8958
8994
|
IsOptional43(),
|
|
8959
|
-
|
|
8995
|
+
IsString47({ message: "Postal code must be a string." })
|
|
8960
8996
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8961
8997
|
__decorateClass([
|
|
8962
8998
|
IsOptional43(),
|
|
@@ -8987,76 +9023,76 @@ __decorateClass([
|
|
|
8987
9023
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
8988
9024
|
import { Transform as Transform5, Type as Type10 } from "class-transformer";
|
|
8989
9025
|
import {
|
|
8990
|
-
IsNotEmpty as
|
|
9026
|
+
IsNotEmpty as IsNotEmpty71,
|
|
8991
9027
|
IsEmail as IsEmail17,
|
|
8992
9028
|
IsOptional as IsOptional44,
|
|
8993
|
-
IsString as
|
|
8994
|
-
MinLength as
|
|
8995
|
-
MaxLength as
|
|
8996
|
-
Matches as
|
|
9029
|
+
IsString as IsString48,
|
|
9030
|
+
MinLength as MinLength17,
|
|
9031
|
+
MaxLength as MaxLength22,
|
|
9032
|
+
Matches as Matches13
|
|
8997
9033
|
} from "class-validator";
|
|
8998
9034
|
var UpdateClientDto = class {
|
|
8999
9035
|
};
|
|
9000
9036
|
__decorateClass([
|
|
9001
|
-
|
|
9002
|
-
|
|
9037
|
+
IsNotEmpty71({ message: "Please enter first name." }),
|
|
9038
|
+
IsString48()
|
|
9003
9039
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
9004
9040
|
__decorateClass([
|
|
9005
|
-
|
|
9006
|
-
|
|
9041
|
+
IsNotEmpty71({ message: "Please enter last name." }),
|
|
9042
|
+
IsString48()
|
|
9007
9043
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
9008
9044
|
__decorateClass([
|
|
9009
|
-
|
|
9045
|
+
IsNotEmpty71({ message: "Please enter email." }),
|
|
9010
9046
|
IsEmail17()
|
|
9011
9047
|
], UpdateClientDto.prototype, "email", 2);
|
|
9012
9048
|
__decorateClass([
|
|
9013
9049
|
IsOptional44(),
|
|
9014
|
-
|
|
9050
|
+
IsString48({ message: "Mobile code must be a string." })
|
|
9015
9051
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
9016
9052
|
__decorateClass([
|
|
9017
9053
|
IsOptional44(),
|
|
9018
|
-
|
|
9054
|
+
IsString48({ message: "Phone number must be a string." })
|
|
9019
9055
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
9020
9056
|
__decorateClass([
|
|
9021
9057
|
IsOptional44(),
|
|
9022
9058
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9059
|
+
MinLength17(6, { message: "Password must be at least 6 characters." }),
|
|
9060
|
+
MaxLength22(32, { message: "Password must not exceed 32 characters." }),
|
|
9061
|
+
Matches13(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
9026
9062
|
message: "Password must include letters, numbers and symbols."
|
|
9027
9063
|
})
|
|
9028
9064
|
], UpdateClientDto.prototype, "password", 2);
|
|
9029
9065
|
__decorateClass([
|
|
9030
|
-
|
|
9031
|
-
|
|
9066
|
+
IsNotEmpty71({ message: "Please enter company name." }),
|
|
9067
|
+
IsString48()
|
|
9032
9068
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
9033
9069
|
__decorateClass([
|
|
9034
9070
|
IsOptional44(),
|
|
9035
|
-
|
|
9071
|
+
IsString48()
|
|
9036
9072
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
9037
9073
|
__decorateClass([
|
|
9038
9074
|
IsOptional44(),
|
|
9039
|
-
|
|
9075
|
+
IsString48()
|
|
9040
9076
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9041
9077
|
__decorateClass([
|
|
9042
9078
|
IsOptional44(),
|
|
9043
|
-
|
|
9079
|
+
IsString48({ message: "About company must be a string." })
|
|
9044
9080
|
], UpdateClientDto.prototype, "about", 2);
|
|
9045
9081
|
__decorateClass([
|
|
9046
9082
|
IsOptional44(),
|
|
9047
|
-
|
|
9083
|
+
IsString48({ message: "Website must be a string." })
|
|
9048
9084
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
9049
9085
|
__decorateClass([
|
|
9050
9086
|
IsOptional44(),
|
|
9051
|
-
|
|
9087
|
+
IsString48({ message: "Company address must be a string." })
|
|
9052
9088
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
9053
9089
|
__decorateClass([
|
|
9054
9090
|
IsOptional44(),
|
|
9055
|
-
|
|
9091
|
+
IsString48({ message: "Address line must be a string." })
|
|
9056
9092
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
9057
9093
|
__decorateClass([
|
|
9058
9094
|
IsOptional44(),
|
|
9059
|
-
|
|
9095
|
+
IsString48({ message: "Postal code must be a string." })
|
|
9060
9096
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
9061
9097
|
__decorateClass([
|
|
9062
9098
|
IsOptional44(),
|
|
@@ -9096,20 +9132,20 @@ __decorateClass([
|
|
|
9096
9132
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
9097
9133
|
|
|
9098
9134
|
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
9099
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
9135
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty72 } from "class-validator";
|
|
9100
9136
|
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
9101
9137
|
};
|
|
9102
9138
|
__decorateClass([
|
|
9103
|
-
|
|
9139
|
+
IsNotEmpty72({ message: "Job posting restriction status is required." }),
|
|
9104
9140
|
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
9105
9141
|
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
9106
9142
|
|
|
9107
9143
|
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
9108
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
9144
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty73 } from "class-validator";
|
|
9109
9145
|
var SkipServiceAgreementFlowDto = class {
|
|
9110
9146
|
};
|
|
9111
9147
|
__decorateClass([
|
|
9112
|
-
|
|
9148
|
+
IsNotEmpty73({ message: "Skip service agreement flag is required." }),
|
|
9113
9149
|
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
9114
9150
|
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
9115
9151
|
|
|
@@ -9120,7 +9156,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
9120
9156
|
};
|
|
9121
9157
|
|
|
9122
9158
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
9123
|
-
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as
|
|
9159
|
+
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as IsString49, IsNotEmpty as IsNotEmpty74, IsIn as IsIn3 } from "class-validator";
|
|
9124
9160
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
9125
9161
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
9126
9162
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -9132,14 +9168,14 @@ var FreelancerDeclarationDto = class {
|
|
|
9132
9168
|
};
|
|
9133
9169
|
__decorateClass([
|
|
9134
9170
|
IsOptional46(),
|
|
9135
|
-
|
|
9171
|
+
IsString49({ message: "UUID must be a string" })
|
|
9136
9172
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
9137
9173
|
__decorateClass([
|
|
9138
9174
|
IsEnum33(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
9139
9175
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
9140
9176
|
__decorateClass([
|
|
9141
|
-
|
|
9142
|
-
|
|
9177
|
+
IsNotEmpty74({ message: "Please accept the declaration " }),
|
|
9178
|
+
IsString49(),
|
|
9143
9179
|
IsIn3([
|
|
9144
9180
|
"true"
|
|
9145
9181
|
])
|
|
@@ -9155,12 +9191,12 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
9155
9191
|
};
|
|
9156
9192
|
|
|
9157
9193
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
9158
|
-
import { IsNotEmpty as
|
|
9194
|
+
import { IsNotEmpty as IsNotEmpty75, IsNumber as IsNumber12, IsOptional as IsOptional47 } from "class-validator";
|
|
9159
9195
|
import { Type as Type11 } from "class-transformer";
|
|
9160
9196
|
var MarkCandidateStatusDto = class {
|
|
9161
9197
|
};
|
|
9162
9198
|
__decorateClass([
|
|
9163
|
-
|
|
9199
|
+
IsNotEmpty75({ message: "Candidate ID is required." }),
|
|
9164
9200
|
IsNumber12({}, { message: "Candidate ID must be a number." }),
|
|
9165
9201
|
Type11(() => Number)
|
|
9166
9202
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
@@ -9198,11 +9234,11 @@ var CMS_PATTERNS = {
|
|
|
9198
9234
|
};
|
|
9199
9235
|
|
|
9200
9236
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
9201
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
9237
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty76, IsOptional as IsOptional49 } from "class-validator";
|
|
9202
9238
|
var CreateCmsDto = class {
|
|
9203
9239
|
};
|
|
9204
9240
|
__decorateClass([
|
|
9205
|
-
|
|
9241
|
+
IsNotEmpty76({ message: "Please enter name." })
|
|
9206
9242
|
], CreateCmsDto.prototype, "title", 2);
|
|
9207
9243
|
__decorateClass([
|
|
9208
9244
|
IsOptional49()
|
|
@@ -9213,23 +9249,23 @@ __decorateClass([
|
|
|
9213
9249
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
9214
9250
|
|
|
9215
9251
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
9216
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
9252
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty77 } from "class-validator";
|
|
9217
9253
|
var UpdateCmsStatusDto = class {
|
|
9218
9254
|
};
|
|
9219
9255
|
__decorateClass([
|
|
9220
|
-
|
|
9256
|
+
IsNotEmpty77({ message: "Please specify cms status." }),
|
|
9221
9257
|
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
9222
9258
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
9223
9259
|
|
|
9224
9260
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
9225
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as
|
|
9261
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty78, IsOptional as IsOptional50 } from "class-validator";
|
|
9226
9262
|
var UpdateCmsDto = class {
|
|
9227
9263
|
};
|
|
9228
9264
|
__decorateClass([
|
|
9229
9265
|
IsOptional50()
|
|
9230
9266
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
9231
9267
|
__decorateClass([
|
|
9232
|
-
|
|
9268
|
+
IsNotEmpty78({ message: "Please enter name." })
|
|
9233
9269
|
], UpdateCmsDto.prototype, "title", 2);
|
|
9234
9270
|
__decorateClass([
|
|
9235
9271
|
IsOptional50()
|
|
@@ -9272,13 +9308,13 @@ var ADMIN_JOB_PATTERN = {
|
|
|
9272
9308
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
9273
9309
|
import { Type as Type13 } from "class-transformer";
|
|
9274
9310
|
import {
|
|
9275
|
-
IsString as
|
|
9311
|
+
IsString as IsString50,
|
|
9276
9312
|
IsEnum as IsEnum34,
|
|
9277
9313
|
IsInt as IsInt10,
|
|
9278
9314
|
IsOptional as IsOptional51,
|
|
9279
9315
|
IsArray as IsArray18,
|
|
9280
9316
|
IsDateString as IsDateString3,
|
|
9281
|
-
IsNotEmpty as
|
|
9317
|
+
IsNotEmpty as IsNotEmpty79,
|
|
9282
9318
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9283
9319
|
Min as Min7,
|
|
9284
9320
|
IsNumber as IsNumber14
|
|
@@ -9298,17 +9334,17 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
9298
9334
|
var AdminCreateJobInformationDto = class {
|
|
9299
9335
|
};
|
|
9300
9336
|
__decorateClass([
|
|
9301
|
-
|
|
9302
|
-
|
|
9337
|
+
IsString50({ message: "Job role must be a string." }),
|
|
9338
|
+
IsNotEmpty79({ message: "Job role is required." })
|
|
9303
9339
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
9304
9340
|
__decorateClass([
|
|
9305
9341
|
IsOptional51(),
|
|
9306
|
-
|
|
9342
|
+
IsString50({ message: "Note must be a string." })
|
|
9307
9343
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
9308
9344
|
__decorateClass([
|
|
9309
9345
|
IsArray18({ message: "Skills must be an array of skill names." }),
|
|
9310
9346
|
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
9311
|
-
|
|
9347
|
+
IsString50({ each: true, message: "Each skill must be a valid string." })
|
|
9312
9348
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
9313
9349
|
__decorateClass([
|
|
9314
9350
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
@@ -9329,16 +9365,16 @@ __decorateClass([
|
|
|
9329
9365
|
})
|
|
9330
9366
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9331
9367
|
__decorateClass([
|
|
9332
|
-
|
|
9333
|
-
|
|
9368
|
+
IsString50({ message: "Onboarding Days must be a string." }),
|
|
9369
|
+
IsNotEmpty79({ message: "Onboarding Days is required." })
|
|
9334
9370
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9335
9371
|
__decorateClass([
|
|
9336
|
-
|
|
9337
|
-
|
|
9372
|
+
IsString50({ message: "Communication skills must be a string." }),
|
|
9373
|
+
IsNotEmpty79({ message: "Communication skills are required." })
|
|
9338
9374
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9339
9375
|
__decorateClass([
|
|
9340
|
-
|
|
9341
|
-
|
|
9376
|
+
IsString50({ message: "Currency must be a string." }),
|
|
9377
|
+
IsNotEmpty79({ message: "Currency is required." })
|
|
9342
9378
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
9343
9379
|
__decorateClass([
|
|
9344
9380
|
Type13(() => Number),
|
|
@@ -9362,7 +9398,7 @@ __decorateClass([
|
|
|
9362
9398
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9363
9399
|
__decorateClass([
|
|
9364
9400
|
IsOptional51(),
|
|
9365
|
-
|
|
9401
|
+
IsString50({ message: "Additional comment must be a string." })
|
|
9366
9402
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
9367
9403
|
__decorateClass([
|
|
9368
9404
|
IsOptional51(),
|
|
@@ -9383,13 +9419,13 @@ __decorateClass([
|
|
|
9383
9419
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
9384
9420
|
import { Type as Type14 } from "class-transformer";
|
|
9385
9421
|
import {
|
|
9386
|
-
IsString as
|
|
9422
|
+
IsString as IsString51,
|
|
9387
9423
|
IsEnum as IsEnum35,
|
|
9388
9424
|
IsInt as IsInt11,
|
|
9389
9425
|
IsOptional as IsOptional52,
|
|
9390
9426
|
IsArray as IsArray19,
|
|
9391
9427
|
IsDateString as IsDateString4,
|
|
9392
|
-
IsNotEmpty as
|
|
9428
|
+
IsNotEmpty as IsNotEmpty80,
|
|
9393
9429
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9394
9430
|
Min as Min8,
|
|
9395
9431
|
IsNumber as IsNumber15
|
|
@@ -9409,17 +9445,17 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
9409
9445
|
var AdminUpdateJobInformationDto = class {
|
|
9410
9446
|
};
|
|
9411
9447
|
__decorateClass([
|
|
9412
|
-
|
|
9413
|
-
|
|
9448
|
+
IsString51({ message: "Job role must be a string." }),
|
|
9449
|
+
IsNotEmpty80({ message: "Job role is required." })
|
|
9414
9450
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9415
9451
|
__decorateClass([
|
|
9416
9452
|
IsOptional52(),
|
|
9417
|
-
|
|
9453
|
+
IsString51({ message: "Note must be a string." })
|
|
9418
9454
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
9419
9455
|
__decorateClass([
|
|
9420
9456
|
IsArray19({ message: "Skills must be an array of skill names." }),
|
|
9421
9457
|
ArrayNotEmpty11({ message: "At least one skill must be provided." }),
|
|
9422
|
-
|
|
9458
|
+
IsString51({ each: true, message: "Each skill must be a valid string." })
|
|
9423
9459
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
9424
9460
|
__decorateClass([
|
|
9425
9461
|
IsInt11({ message: "Openings must be a valid integer." }),
|
|
@@ -9440,16 +9476,16 @@ __decorateClass([
|
|
|
9440
9476
|
})
|
|
9441
9477
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9442
9478
|
__decorateClass([
|
|
9443
|
-
|
|
9444
|
-
|
|
9479
|
+
IsString51({ message: "Onboarding Days must be a string." }),
|
|
9480
|
+
IsNotEmpty80({ message: "Onboarding Days is required." })
|
|
9445
9481
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9446
9482
|
__decorateClass([
|
|
9447
|
-
|
|
9448
|
-
|
|
9483
|
+
IsString51({ message: "Communication skills must be a string." }),
|
|
9484
|
+
IsNotEmpty80({ message: "Communication skills are required." })
|
|
9449
9485
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9450
9486
|
__decorateClass([
|
|
9451
|
-
|
|
9452
|
-
|
|
9487
|
+
IsString51({ message: "Currency must be a string." }),
|
|
9488
|
+
IsNotEmpty80({ message: "Currency is required." })
|
|
9453
9489
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9454
9490
|
__decorateClass([
|
|
9455
9491
|
Type14(() => Number),
|
|
@@ -9473,7 +9509,7 @@ __decorateClass([
|
|
|
9473
9509
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9474
9510
|
__decorateClass([
|
|
9475
9511
|
IsOptional52(),
|
|
9476
|
-
|
|
9512
|
+
IsString51({ message: "Additional comment must be a string." })
|
|
9477
9513
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9478
9514
|
__decorateClass([
|
|
9479
9515
|
IsOptional52(),
|
|
@@ -9493,8 +9529,8 @@ __decorateClass([
|
|
|
9493
9529
|
|
|
9494
9530
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9495
9531
|
import {
|
|
9496
|
-
IsString as
|
|
9497
|
-
IsNotEmpty as
|
|
9532
|
+
IsString as IsString52,
|
|
9533
|
+
IsNotEmpty as IsNotEmpty81,
|
|
9498
9534
|
IsArray as IsArray20,
|
|
9499
9535
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9500
9536
|
IsNumber as IsNumber16,
|
|
@@ -9502,7 +9538,7 @@ import {
|
|
|
9502
9538
|
IsEnum as IsEnum36,
|
|
9503
9539
|
Min as Min9,
|
|
9504
9540
|
ValidateIf as ValidateIf11,
|
|
9505
|
-
MaxLength as
|
|
9541
|
+
MaxLength as MaxLength23,
|
|
9506
9542
|
Max as Max5,
|
|
9507
9543
|
IsInt as IsInt12
|
|
9508
9544
|
} from "class-validator";
|
|
@@ -9564,19 +9600,19 @@ __decorateClass([
|
|
|
9564
9600
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9565
9601
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9566
9602
|
__decorateClass([
|
|
9567
|
-
|
|
9568
|
-
|
|
9603
|
+
IsNotEmpty81({ message: "Please enter job role" }),
|
|
9604
|
+
IsString52({ message: "Job role must be a string" })
|
|
9569
9605
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9570
9606
|
__decorateClass([
|
|
9571
9607
|
IsOptional53(),
|
|
9572
|
-
|
|
9608
|
+
IsString52({ message: "Note must be a string" })
|
|
9573
9609
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9574
9610
|
__decorateClass([
|
|
9575
9611
|
ValidateIf11((o) => !o.isDraft),
|
|
9576
9612
|
IsOptional53(),
|
|
9577
9613
|
IsArray20({ message: "Skills must be an array" }),
|
|
9578
9614
|
ArrayNotEmpty12({ message: "Please select at least one skill" }),
|
|
9579
|
-
|
|
9615
|
+
IsString52({ each: true, message: "Each skill must be a string" }),
|
|
9580
9616
|
Type15(() => String)
|
|
9581
9617
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9582
9618
|
__decorateClass([
|
|
@@ -9625,7 +9661,7 @@ __decorateClass([
|
|
|
9625
9661
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9626
9662
|
__decorateClass([
|
|
9627
9663
|
IsOptional53(),
|
|
9628
|
-
|
|
9664
|
+
IsString52({ message: "Academic qualification must be a string" })
|
|
9629
9665
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9630
9666
|
__decorateClass([
|
|
9631
9667
|
ValidateIf11((o) => !o.isDraft),
|
|
@@ -9637,21 +9673,21 @@ __decorateClass([
|
|
|
9637
9673
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9638
9674
|
__decorateClass([
|
|
9639
9675
|
ValidateIf11((o) => !o.isDraft),
|
|
9640
|
-
|
|
9641
|
-
|
|
9676
|
+
IsNotEmpty81({ message: "Please enter the years of experience" }),
|
|
9677
|
+
IsString52({ message: "Years of experience must be a string" })
|
|
9642
9678
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9643
9679
|
__decorateClass([
|
|
9644
9680
|
ValidateIf11((o) => !o.isDraft),
|
|
9645
|
-
|
|
9646
|
-
|
|
9681
|
+
IsNotEmpty81({ message: "Please enter the years of experience upto" }),
|
|
9682
|
+
IsString52({ message: "Years of experience must be a string" })
|
|
9647
9683
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9648
9684
|
__decorateClass([
|
|
9649
9685
|
IsOptional53(),
|
|
9650
|
-
|
|
9686
|
+
IsString52({ message: "Business industry must be a string" })
|
|
9651
9687
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9652
9688
|
__decorateClass([
|
|
9653
9689
|
IsOptional53(),
|
|
9654
|
-
|
|
9690
|
+
IsString52({ message: "Project name must be a string" })
|
|
9655
9691
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9656
9692
|
__decorateClass([
|
|
9657
9693
|
IsOptional53()
|
|
@@ -9698,13 +9734,13 @@ __decorateClass([
|
|
|
9698
9734
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9699
9735
|
__decorateClass([
|
|
9700
9736
|
IsOptional53(),
|
|
9701
|
-
|
|
9702
|
-
|
|
9737
|
+
IsString52({ message: "Additional comment must be a string" }),
|
|
9738
|
+
MaxLength23(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9703
9739
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9704
9740
|
__decorateClass([
|
|
9705
9741
|
ValidateIf11((o) => !o.isDraft),
|
|
9706
9742
|
IsArray20({ message: "Good to have skills must be an array" }),
|
|
9707
|
-
|
|
9743
|
+
IsString52({ each: true, message: "Each skill must be a string" }),
|
|
9708
9744
|
IsOptional53(),
|
|
9709
9745
|
Type15(() => String)
|
|
9710
9746
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -9727,7 +9763,7 @@ var LEAD_PATTERN = {
|
|
|
9727
9763
|
};
|
|
9728
9764
|
|
|
9729
9765
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9730
|
-
import { IsString as
|
|
9766
|
+
import { IsString as IsString53, IsEmail as IsEmail19, IsOptional as IsOptional54, IsEnum as IsEnum37 } from "class-validator";
|
|
9731
9767
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9732
9768
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9733
9769
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9736,20 +9772,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9736
9772
|
var CreateLeadDto = class {
|
|
9737
9773
|
};
|
|
9738
9774
|
__decorateClass([
|
|
9739
|
-
|
|
9775
|
+
IsString53({ message: "Name must be a string" })
|
|
9740
9776
|
], CreateLeadDto.prototype, "name", 2);
|
|
9741
9777
|
__decorateClass([
|
|
9742
9778
|
IsEmail19({}, { message: "Invalid email address" })
|
|
9743
9779
|
], CreateLeadDto.prototype, "email", 2);
|
|
9744
9780
|
__decorateClass([
|
|
9745
|
-
|
|
9781
|
+
IsString53({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9746
9782
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9747
9783
|
__decorateClass([
|
|
9748
|
-
|
|
9784
|
+
IsString53({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9749
9785
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9750
9786
|
__decorateClass([
|
|
9751
9787
|
IsOptional54(),
|
|
9752
|
-
|
|
9788
|
+
IsString53({ message: "Description must be a string" })
|
|
9753
9789
|
], CreateLeadDto.prototype, "description", 2);
|
|
9754
9790
|
__decorateClass([
|
|
9755
9791
|
IsEnum37(CategoryEmumDto, {
|
|
@@ -9774,16 +9810,16 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9774
9810
|
};
|
|
9775
9811
|
|
|
9776
9812
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9777
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as
|
|
9813
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty82, IsOptional as IsOptional55, IsString as IsString54 } from "class-validator";
|
|
9778
9814
|
var CreateAdminRoleDto = class {
|
|
9779
9815
|
};
|
|
9780
9816
|
__decorateClass([
|
|
9781
|
-
|
|
9782
|
-
|
|
9817
|
+
IsNotEmpty82({ message: "Please enter admin role name." }),
|
|
9818
|
+
IsString54({ message: "Role name must be a string." })
|
|
9783
9819
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9784
9820
|
__decorateClass([
|
|
9785
9821
|
IsOptional55(),
|
|
9786
|
-
|
|
9822
|
+
IsString54({ message: "Role description must be a string." })
|
|
9787
9823
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9788
9824
|
__decorateClass([
|
|
9789
9825
|
IsOptional55(),
|
|
@@ -9791,16 +9827,16 @@ __decorateClass([
|
|
|
9791
9827
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9792
9828
|
|
|
9793
9829
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9794
|
-
import { IsBoolean as IsBoolean19, IsNotEmpty as
|
|
9830
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty83, IsOptional as IsOptional56, IsString as IsString55 } from "class-validator";
|
|
9795
9831
|
var UpdateAdminRoleDto = class {
|
|
9796
9832
|
};
|
|
9797
9833
|
__decorateClass([
|
|
9798
|
-
|
|
9799
|
-
|
|
9834
|
+
IsNotEmpty83({ message: "Please enter admin role name." }),
|
|
9835
|
+
IsString55({ message: "Role name must be a string." })
|
|
9800
9836
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9801
9837
|
__decorateClass([
|
|
9802
9838
|
IsOptional56(),
|
|
9803
|
-
|
|
9839
|
+
IsString55({ message: "Role description must be a string." })
|
|
9804
9840
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9805
9841
|
__decorateClass([
|
|
9806
9842
|
IsOptional56(),
|
|
@@ -9808,24 +9844,24 @@ __decorateClass([
|
|
|
9808
9844
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9809
9845
|
|
|
9810
9846
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9811
|
-
import { IsNotEmpty as
|
|
9847
|
+
import { IsNotEmpty as IsNotEmpty84, IsString as IsString56 } from "class-validator";
|
|
9812
9848
|
var AttachPermissionsToRoleDto = class {
|
|
9813
9849
|
};
|
|
9814
9850
|
__decorateClass([
|
|
9815
|
-
|
|
9816
|
-
|
|
9851
|
+
IsNotEmpty84({ message: "Please enter admin role ID." }),
|
|
9852
|
+
IsString56({ message: "Role ID must be a string." })
|
|
9817
9853
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9818
9854
|
__decorateClass([
|
|
9819
|
-
|
|
9820
|
-
|
|
9855
|
+
IsNotEmpty84({ message: "Please enter permission IDs." }),
|
|
9856
|
+
IsString56({ message: "Permission IDs must be a comma-separated string." })
|
|
9821
9857
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9822
9858
|
|
|
9823
9859
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9824
|
-
import { IsBoolean as IsBoolean20, IsNotEmpty as
|
|
9860
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty85 } from "class-validator";
|
|
9825
9861
|
var UpdateAdminRoleStatusDto = class {
|
|
9826
9862
|
};
|
|
9827
9863
|
__decorateClass([
|
|
9828
|
-
|
|
9864
|
+
IsNotEmpty85({ message: "Please specify admin role status." }),
|
|
9829
9865
|
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9830
9866
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9831
9867
|
|
|
@@ -9908,8 +9944,8 @@ var INTERVIEW_PATTERN = {
|
|
|
9908
9944
|
|
|
9909
9945
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9910
9946
|
import {
|
|
9911
|
-
IsString as
|
|
9912
|
-
IsNotEmpty as
|
|
9947
|
+
IsString as IsString57,
|
|
9948
|
+
IsNotEmpty as IsNotEmpty86,
|
|
9913
9949
|
IsArray as IsArray21,
|
|
9914
9950
|
ArrayNotEmpty as ArrayNotEmpty13,
|
|
9915
9951
|
IsEmail as IsEmail20,
|
|
@@ -9939,8 +9975,8 @@ __decorateClass([
|
|
|
9939
9975
|
var NewCandidateDto = class {
|
|
9940
9976
|
};
|
|
9941
9977
|
__decorateClass([
|
|
9942
|
-
|
|
9943
|
-
|
|
9978
|
+
IsNotEmpty86({ message: "Please enter the candidate name" }),
|
|
9979
|
+
IsString57({ message: "Name must be a string" })
|
|
9944
9980
|
], NewCandidateDto.prototype, "name", 2);
|
|
9945
9981
|
__decorateClass([
|
|
9946
9982
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
@@ -9978,8 +10014,8 @@ __decorateClass([
|
|
|
9978
10014
|
|
|
9979
10015
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9980
10016
|
import {
|
|
9981
|
-
IsString as
|
|
9982
|
-
IsNotEmpty as
|
|
10017
|
+
IsString as IsString58,
|
|
10018
|
+
IsNotEmpty as IsNotEmpty87,
|
|
9983
10019
|
IsArray as IsArray22,
|
|
9984
10020
|
IsUUID as IsUUID21,
|
|
9985
10021
|
IsEnum as IsEnum39,
|
|
@@ -9999,35 +10035,35 @@ var ExistingCandidateDto2 = class {
|
|
|
9999
10035
|
};
|
|
10000
10036
|
__decorateClass([
|
|
10001
10037
|
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
10002
|
-
|
|
10038
|
+
IsNotEmpty87({ message: "Candidate ID is required." })
|
|
10003
10039
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
10004
10040
|
__decorateClass([
|
|
10005
10041
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10006
10042
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
10007
10043
|
}),
|
|
10008
|
-
|
|
10044
|
+
IsNotEmpty87({ message: "Candidate type is required." })
|
|
10009
10045
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
10010
10046
|
var NewCandidateDto2 = class {
|
|
10011
10047
|
};
|
|
10012
10048
|
__decorateClass([
|
|
10013
|
-
|
|
10014
|
-
|
|
10049
|
+
IsString58({ message: "Name must be a string." }),
|
|
10050
|
+
IsNotEmpty87({ message: "Candidate name is required." })
|
|
10015
10051
|
], NewCandidateDto2.prototype, "name", 2);
|
|
10016
10052
|
__decorateClass([
|
|
10017
10053
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
10018
|
-
|
|
10054
|
+
IsNotEmpty87({ message: "Email is required." })
|
|
10019
10055
|
], NewCandidateDto2.prototype, "email", 2);
|
|
10020
10056
|
__decorateClass([
|
|
10021
10057
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10022
10058
|
message: "Type must be NEW for new candidates."
|
|
10023
10059
|
}),
|
|
10024
|
-
|
|
10060
|
+
IsNotEmpty87({ message: "Candidate type is required." })
|
|
10025
10061
|
], NewCandidateDto2.prototype, "type", 2);
|
|
10026
10062
|
var SendInterviewInviteDto = class {
|
|
10027
10063
|
};
|
|
10028
10064
|
__decorateClass([
|
|
10029
10065
|
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
10030
|
-
|
|
10066
|
+
IsNotEmpty87({ message: "Job ID is required." })
|
|
10031
10067
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
10032
10068
|
__decorateClass([
|
|
10033
10069
|
IsArray22({ message: "Existing candidates must be an array." }),
|
|
@@ -10044,8 +10080,8 @@ __decorateClass([
|
|
|
10044
10080
|
|
|
10045
10081
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
10046
10082
|
import {
|
|
10047
|
-
IsString as
|
|
10048
|
-
IsNotEmpty as
|
|
10083
|
+
IsString as IsString59,
|
|
10084
|
+
IsNotEmpty as IsNotEmpty88,
|
|
10049
10085
|
IsEmail as IsEmail22,
|
|
10050
10086
|
IsNumber as IsNumber17
|
|
10051
10087
|
} from "class-validator";
|
|
@@ -10053,11 +10089,11 @@ var CreateF2FInterviewDto = class {
|
|
|
10053
10089
|
};
|
|
10054
10090
|
__decorateClass([
|
|
10055
10091
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
10056
|
-
|
|
10092
|
+
IsNotEmpty88({ message: "Invitee email is required." })
|
|
10057
10093
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
10058
10094
|
__decorateClass([
|
|
10059
|
-
|
|
10060
|
-
|
|
10095
|
+
IsString59({ message: "Invitee name must be a string." }),
|
|
10096
|
+
IsNotEmpty88({ message: "Invitee name is required." })
|
|
10061
10097
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
10062
10098
|
__decorateClass([
|
|
10063
10099
|
IsNumber17({}, { message: "Interview ID must be a number." })
|
|
@@ -10068,8 +10104,8 @@ __decorateClass([
|
|
|
10068
10104
|
|
|
10069
10105
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
10070
10106
|
import {
|
|
10071
|
-
IsString as
|
|
10072
|
-
IsNotEmpty as
|
|
10107
|
+
IsString as IsString60,
|
|
10108
|
+
IsNotEmpty as IsNotEmpty89,
|
|
10073
10109
|
IsEmail as IsEmail23,
|
|
10074
10110
|
IsNumber as IsNumber18
|
|
10075
10111
|
} from "class-validator";
|
|
@@ -10077,11 +10113,11 @@ var CreateF2FInterviewDirectDto = class {
|
|
|
10077
10113
|
};
|
|
10078
10114
|
__decorateClass([
|
|
10079
10115
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
10080
|
-
|
|
10116
|
+
IsNotEmpty89({ message: "Invitee email is required." })
|
|
10081
10117
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
10082
10118
|
__decorateClass([
|
|
10083
|
-
|
|
10084
|
-
|
|
10119
|
+
IsString60({ message: "Invitee name must be a string." }),
|
|
10120
|
+
IsNotEmpty89({ message: "Invitee name is required." })
|
|
10085
10121
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
10086
10122
|
__decorateClass([
|
|
10087
10123
|
IsNumber18({}, { message: "Job ID must be a number." })
|
|
@@ -10092,8 +10128,8 @@ __decorateClass([
|
|
|
10092
10128
|
|
|
10093
10129
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
10094
10130
|
import {
|
|
10095
|
-
IsString as
|
|
10096
|
-
IsNotEmpty as
|
|
10131
|
+
IsString as IsString61,
|
|
10132
|
+
IsNotEmpty as IsNotEmpty90,
|
|
10097
10133
|
IsOptional as IsOptional59,
|
|
10098
10134
|
IsUUID as IsUUID22
|
|
10099
10135
|
} from "class-validator";
|
|
@@ -10101,60 +10137,60 @@ var CreateF2FInterviewRescheduleRequestDto = class {
|
|
|
10101
10137
|
};
|
|
10102
10138
|
__decorateClass([
|
|
10103
10139
|
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
10104
|
-
|
|
10140
|
+
IsNotEmpty90({ message: "F2F Interview ID is required." })
|
|
10105
10141
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
10106
10142
|
__decorateClass([
|
|
10107
|
-
|
|
10143
|
+
IsNotEmpty90({ message: "Rescheduled date is required." })
|
|
10108
10144
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
10109
10145
|
__decorateClass([
|
|
10110
|
-
|
|
10111
|
-
|
|
10146
|
+
IsString61({ message: "Rescheduled slot must be a string." }),
|
|
10147
|
+
IsNotEmpty90({ message: "Rescheduled slot is required." })
|
|
10112
10148
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
10113
10149
|
__decorateClass([
|
|
10114
10150
|
IsOptional59(),
|
|
10115
|
-
|
|
10151
|
+
IsString61({ message: "Freelancer request reason must be a string." })
|
|
10116
10152
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10117
10153
|
|
|
10118
10154
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
10119
10155
|
import {
|
|
10120
|
-
IsString as
|
|
10121
|
-
IsNotEmpty as
|
|
10156
|
+
IsString as IsString62,
|
|
10157
|
+
IsNotEmpty as IsNotEmpty91
|
|
10122
10158
|
} from "class-validator";
|
|
10123
10159
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
10124
10160
|
};
|
|
10125
10161
|
__decorateClass([
|
|
10126
|
-
|
|
10162
|
+
IsNotEmpty91({ message: "AI Interview ID is required." })
|
|
10127
10163
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
10128
10164
|
__decorateClass([
|
|
10129
|
-
|
|
10165
|
+
IsString62({ message: "Freelancer reason must be a string." })
|
|
10130
10166
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10131
10167
|
|
|
10132
10168
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
10133
10169
|
import {
|
|
10134
|
-
IsString as
|
|
10170
|
+
IsString as IsString63
|
|
10135
10171
|
} from "class-validator";
|
|
10136
10172
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
10137
10173
|
};
|
|
10138
10174
|
__decorateClass([
|
|
10139
|
-
|
|
10175
|
+
IsString63({ message: "Client reject reason must be a string." })
|
|
10140
10176
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10141
10177
|
|
|
10142
10178
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
10143
|
-
import { IsOptional as IsOptional61, IsString as
|
|
10179
|
+
import { IsOptional as IsOptional61, IsString as IsString64 } from "class-validator";
|
|
10144
10180
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
10145
10181
|
};
|
|
10146
10182
|
__decorateClass([
|
|
10147
10183
|
IsOptional61(),
|
|
10148
|
-
|
|
10184
|
+
IsString64()
|
|
10149
10185
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10150
10186
|
|
|
10151
10187
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
10152
|
-
import { IsNotEmpty as
|
|
10188
|
+
import { IsNotEmpty as IsNotEmpty92, IsString as IsString65, IsOptional as IsOptional62, IsObject as IsObject6 } from "class-validator";
|
|
10153
10189
|
var CaptureAiInterviewResultPublicDto = class {
|
|
10154
10190
|
};
|
|
10155
10191
|
__decorateClass([
|
|
10156
|
-
|
|
10157
|
-
|
|
10192
|
+
IsNotEmpty92({ message: "AI Interview UUID is required" }),
|
|
10193
|
+
IsString65({ message: "AI Interview UUID must be a string" })
|
|
10158
10194
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
10159
10195
|
__decorateClass([
|
|
10160
10196
|
IsOptional62(),
|
|
@@ -10162,33 +10198,33 @@ __decorateClass([
|
|
|
10162
10198
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
10163
10199
|
__decorateClass([
|
|
10164
10200
|
IsOptional62(),
|
|
10165
|
-
|
|
10201
|
+
IsString65()
|
|
10166
10202
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
10167
10203
|
|
|
10168
10204
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
10169
|
-
import { IsNotEmpty as
|
|
10205
|
+
import { IsNotEmpty as IsNotEmpty93, IsString as IsString66, IsNumber as IsNumber19 } from "class-validator";
|
|
10170
10206
|
var CreateInterviewBasicInformationDto = class {
|
|
10171
10207
|
};
|
|
10172
10208
|
__decorateClass([
|
|
10173
|
-
|
|
10209
|
+
IsNotEmpty93({ message: "Job ID is required" }),
|
|
10174
10210
|
IsNumber19({}, { message: "Job ID must be a number" })
|
|
10175
10211
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
10176
10212
|
__decorateClass([
|
|
10177
|
-
|
|
10178
|
-
|
|
10213
|
+
IsNotEmpty93({ message: "Interview name is required" }),
|
|
10214
|
+
IsString66({ message: "Interview name must be a string" })
|
|
10179
10215
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
10180
10216
|
|
|
10181
10217
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
10182
|
-
import { IsOptional as IsOptional64, IsString as
|
|
10218
|
+
import { IsOptional as IsOptional64, IsString as IsString67, IsNumber as IsNumber20, IsArray as IsArray24, IsDateString as IsDateString8 } from "class-validator";
|
|
10183
10219
|
var UpdateInterviewBasicInformationDto = class {
|
|
10184
10220
|
};
|
|
10185
10221
|
__decorateClass([
|
|
10186
10222
|
IsOptional64(),
|
|
10187
|
-
|
|
10223
|
+
IsString67()
|
|
10188
10224
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
10189
10225
|
__decorateClass([
|
|
10190
10226
|
IsOptional64(),
|
|
10191
|
-
|
|
10227
|
+
IsString67()
|
|
10192
10228
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
10193
10229
|
__decorateClass([
|
|
10194
10230
|
IsOptional64(),
|
|
@@ -10205,15 +10241,15 @@ __decorateClass([
|
|
|
10205
10241
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
10206
10242
|
__decorateClass([
|
|
10207
10243
|
IsOptional64(),
|
|
10208
|
-
|
|
10244
|
+
IsString67()
|
|
10209
10245
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
10210
10246
|
|
|
10211
10247
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
10212
10248
|
import {
|
|
10213
10249
|
IsArray as IsArray25,
|
|
10214
|
-
IsNotEmpty as
|
|
10250
|
+
IsNotEmpty as IsNotEmpty94,
|
|
10215
10251
|
IsOptional as IsOptional65,
|
|
10216
|
-
IsString as
|
|
10252
|
+
IsString as IsString68,
|
|
10217
10253
|
ValidateNested as ValidateNested10
|
|
10218
10254
|
} from "class-validator";
|
|
10219
10255
|
import { Type as Type18 } from "class-transformer";
|
|
@@ -10223,18 +10259,18 @@ __decorateClass([
|
|
|
10223
10259
|
IsOptional65()
|
|
10224
10260
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
10225
10261
|
__decorateClass([
|
|
10226
|
-
|
|
10227
|
-
|
|
10262
|
+
IsString68({ message: "Skill name must be a string." }),
|
|
10263
|
+
IsNotEmpty94({ message: "Skill name is required." })
|
|
10228
10264
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
10229
10265
|
__decorateClass([
|
|
10230
10266
|
IsOptional65(),
|
|
10231
|
-
|
|
10267
|
+
IsString68({ message: "Skill description must be a string." })
|
|
10232
10268
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
10233
10269
|
var CreateInterviewSkillsDto = class {
|
|
10234
10270
|
};
|
|
10235
10271
|
__decorateClass([
|
|
10236
10272
|
IsArray25({ message: "Skills must be an array." }),
|
|
10237
|
-
|
|
10273
|
+
IsNotEmpty94({ message: "At least one skill is required." }),
|
|
10238
10274
|
ValidateNested10({ each: true }),
|
|
10239
10275
|
Type18(() => InterviewSkillItemDto)
|
|
10240
10276
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
@@ -10242,9 +10278,9 @@ __decorateClass([
|
|
|
10242
10278
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
10243
10279
|
import {
|
|
10244
10280
|
IsArray as IsArray26,
|
|
10245
|
-
IsNotEmpty as
|
|
10281
|
+
IsNotEmpty as IsNotEmpty95,
|
|
10246
10282
|
IsOptional as IsOptional66,
|
|
10247
|
-
IsString as
|
|
10283
|
+
IsString as IsString69,
|
|
10248
10284
|
IsUUID as IsUUID24,
|
|
10249
10285
|
ValidateNested as ValidateNested11
|
|
10250
10286
|
} from "class-validator";
|
|
@@ -10256,8 +10292,8 @@ __decorateClass([
|
|
|
10256
10292
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10257
10293
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
10258
10294
|
__decorateClass([
|
|
10259
|
-
|
|
10260
|
-
|
|
10295
|
+
IsString69({ message: "Question must be a string." }),
|
|
10296
|
+
IsNotEmpty95({ message: "Question is required." })
|
|
10261
10297
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
10262
10298
|
var AiQuestionItemDto = class {
|
|
10263
10299
|
};
|
|
@@ -10266,13 +10302,13 @@ __decorateClass([
|
|
|
10266
10302
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10267
10303
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
10268
10304
|
__decorateClass([
|
|
10269
|
-
|
|
10270
|
-
|
|
10305
|
+
IsString69({ message: "Question must be a string." }),
|
|
10306
|
+
IsNotEmpty95({ message: "Question is required." })
|
|
10271
10307
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
10272
10308
|
__decorateClass([
|
|
10273
10309
|
IsOptional66(),
|
|
10274
10310
|
IsArray26({ message: "Concepts must be an array." }),
|
|
10275
|
-
|
|
10311
|
+
IsString69({ each: true, message: "Each concept must be a string." })
|
|
10276
10312
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
10277
10313
|
var CreateInterviewQuestionsDto = class {
|
|
10278
10314
|
};
|
|
@@ -10293,14 +10329,14 @@ __decorateClass([
|
|
|
10293
10329
|
import {
|
|
10294
10330
|
IsBoolean as IsBoolean21,
|
|
10295
10331
|
IsOptional as IsOptional67,
|
|
10296
|
-
IsString as
|
|
10332
|
+
IsString as IsString70
|
|
10297
10333
|
} from "class-validator";
|
|
10298
10334
|
import { Type as Type20 } from "class-transformer";
|
|
10299
10335
|
var UpdateInterviewSettingDto = class {
|
|
10300
10336
|
};
|
|
10301
10337
|
__decorateClass([
|
|
10302
10338
|
IsOptional67(),
|
|
10303
|
-
|
|
10339
|
+
IsString70({ message: "Interview language must be a string." })
|
|
10304
10340
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
10305
10341
|
__decorateClass([
|
|
10306
10342
|
IsOptional67(),
|
|
@@ -10309,32 +10345,32 @@ __decorateClass([
|
|
|
10309
10345
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
10310
10346
|
__decorateClass([
|
|
10311
10347
|
IsOptional67(),
|
|
10312
|
-
|
|
10348
|
+
IsString70({ message: "Interview duration must be a string." })
|
|
10313
10349
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
10314
10350
|
__decorateClass([
|
|
10315
10351
|
IsOptional67(),
|
|
10316
|
-
|
|
10352
|
+
IsString70({ message: "Interview validity period must be a string." })
|
|
10317
10353
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
10318
10354
|
__decorateClass([
|
|
10319
10355
|
IsOptional67(),
|
|
10320
|
-
|
|
10356
|
+
IsString70({ message: "Maximum attempts allowed must be a string." })
|
|
10321
10357
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
10322
10358
|
__decorateClass([
|
|
10323
10359
|
IsOptional67(),
|
|
10324
|
-
|
|
10360
|
+
IsString70({ message: "Start interview message must be a string." })
|
|
10325
10361
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
10326
10362
|
__decorateClass([
|
|
10327
10363
|
IsOptional67(),
|
|
10328
|
-
|
|
10364
|
+
IsString70({ message: "End interview message must be a string." })
|
|
10329
10365
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
10330
10366
|
|
|
10331
10367
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
10332
|
-
import { IsOptional as IsOptional68, IsString as
|
|
10368
|
+
import { IsOptional as IsOptional68, IsString as IsString71 } from "class-validator";
|
|
10333
10369
|
var UpdateInterviewTypeInformationDto = class {
|
|
10334
10370
|
};
|
|
10335
10371
|
__decorateClass([
|
|
10336
10372
|
IsOptional68(),
|
|
10337
|
-
|
|
10373
|
+
IsString71({ message: "Interview type must be a string." })
|
|
10338
10374
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
10339
10375
|
|
|
10340
10376
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -10373,51 +10409,51 @@ var CONTRACT_PATTERN = {
|
|
|
10373
10409
|
};
|
|
10374
10410
|
|
|
10375
10411
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10376
|
-
import { IsEnum as IsEnum40, IsNotEmpty as
|
|
10412
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty96, IsNumber as IsNumber21 } from "class-validator";
|
|
10377
10413
|
import { Type as Type21 } from "class-transformer";
|
|
10378
10414
|
var SignContractForClientDto = class {
|
|
10379
10415
|
};
|
|
10380
10416
|
__decorateClass([
|
|
10381
|
-
|
|
10417
|
+
IsNotEmpty96({ message: "Job Id is required." }),
|
|
10382
10418
|
Type21(() => Number),
|
|
10383
10419
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10384
10420
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10385
10421
|
__decorateClass([
|
|
10386
|
-
|
|
10422
|
+
IsNotEmpty96({ message: "Freelancer ID is required." }),
|
|
10387
10423
|
Type21(() => Number),
|
|
10388
10424
|
IsNumber21({}, { message: "Freelancer ID must be a number." })
|
|
10389
10425
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10390
10426
|
__decorateClass([
|
|
10391
|
-
|
|
10427
|
+
IsNotEmpty96({ message: "Contract type is required." }),
|
|
10392
10428
|
IsEnum40(ContractTypeEnum)
|
|
10393
10429
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10394
10430
|
|
|
10395
10431
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10396
|
-
import { IsEnum as IsEnum41, IsNotEmpty as
|
|
10432
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber22 } from "class-validator";
|
|
10397
10433
|
import { Type as Type22 } from "class-transformer";
|
|
10398
10434
|
var SignContractForFreelancerDto = class {
|
|
10399
10435
|
};
|
|
10400
10436
|
__decorateClass([
|
|
10401
|
-
|
|
10437
|
+
IsNotEmpty97({ message: "Job Id is required." }),
|
|
10402
10438
|
Type22(() => Number),
|
|
10403
10439
|
IsNumber22({}, { message: "Job ID must be a number." })
|
|
10404
10440
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10405
10441
|
__decorateClass([
|
|
10406
|
-
|
|
10442
|
+
IsNotEmpty97({ message: "Client ID is required." }),
|
|
10407
10443
|
Type22(() => Number),
|
|
10408
10444
|
IsNumber22({}, { message: "Client ID must be a number." })
|
|
10409
10445
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10410
10446
|
__decorateClass([
|
|
10411
|
-
|
|
10447
|
+
IsNotEmpty97({ message: "Contract type is required." }),
|
|
10412
10448
|
IsEnum41(ContractTypeEnum)
|
|
10413
10449
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10414
10450
|
|
|
10415
10451
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10416
10452
|
import {
|
|
10417
|
-
IsNotEmpty as
|
|
10453
|
+
IsNotEmpty as IsNotEmpty98,
|
|
10418
10454
|
IsNumber as IsNumber23,
|
|
10419
10455
|
IsOptional as IsOptional69,
|
|
10420
|
-
IsString as
|
|
10456
|
+
IsString as IsString72,
|
|
10421
10457
|
IsUUID as IsUUID25,
|
|
10422
10458
|
IsEnum as IsEnum42
|
|
10423
10459
|
} from "class-validator";
|
|
@@ -10442,11 +10478,11 @@ var GenerateContractDto = class {
|
|
|
10442
10478
|
};
|
|
10443
10479
|
__decorateClass([
|
|
10444
10480
|
IsNumber23({}, { message: "Job ID must be a number." }),
|
|
10445
|
-
|
|
10481
|
+
IsNotEmpty98({ message: "Job ID is required." })
|
|
10446
10482
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10447
10483
|
__decorateClass([
|
|
10448
10484
|
IsNumber23({}, { message: "Freelancer ID must be a number." }),
|
|
10449
|
-
|
|
10485
|
+
IsNotEmpty98({ message: "Freelancer ID is required." })
|
|
10450
10486
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10451
10487
|
__decorateClass([
|
|
10452
10488
|
IsOptional69(),
|
|
@@ -10455,19 +10491,19 @@ __decorateClass([
|
|
|
10455
10491
|
})
|
|
10456
10492
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10457
10493
|
__decorateClass([
|
|
10458
|
-
|
|
10459
|
-
|
|
10494
|
+
IsNotEmpty98({ message: "Contract start date is required." }),
|
|
10495
|
+
IsString72({ message: "Contract start date must be a string." })
|
|
10460
10496
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10461
10497
|
__decorateClass([
|
|
10462
|
-
|
|
10463
|
-
|
|
10498
|
+
IsNotEmpty98({ message: "Contract end date is required." }),
|
|
10499
|
+
IsString72({ message: "Contract end date must be a string." })
|
|
10464
10500
|
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
10465
10501
|
__decorateClass([
|
|
10466
10502
|
IsOptional69(),
|
|
10467
|
-
|
|
10503
|
+
IsString72({ message: "Contract invoicing cycle must be a string." })
|
|
10468
10504
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10469
10505
|
__decorateClass([
|
|
10470
|
-
|
|
10506
|
+
IsNotEmpty98({ message: "Preferred engagement type is required" }),
|
|
10471
10507
|
IsEnum42(PreferredEngagementTypeEnum, {
|
|
10472
10508
|
message: "Preferred engagement type must be FREELANCE."
|
|
10473
10509
|
})
|
|
@@ -10484,34 +10520,34 @@ __decorateClass([
|
|
|
10484
10520
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10485
10521
|
|
|
10486
10522
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10487
|
-
import { IsNotEmpty as
|
|
10523
|
+
import { IsNotEmpty as IsNotEmpty99, IsUUID as IsUUID26 } from "class-validator";
|
|
10488
10524
|
var EsignContractClientDto = class {
|
|
10489
10525
|
};
|
|
10490
10526
|
__decorateClass([
|
|
10491
10527
|
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10492
|
-
|
|
10528
|
+
IsNotEmpty99({ message: "Contract UUID is required." })
|
|
10493
10529
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10494
10530
|
|
|
10495
10531
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10496
|
-
import { IsNotEmpty as
|
|
10532
|
+
import { IsNotEmpty as IsNotEmpty100, IsUUID as IsUUID27 } from "class-validator";
|
|
10497
10533
|
var EsignContractFreelancerDto = class {
|
|
10498
10534
|
};
|
|
10499
10535
|
__decorateClass([
|
|
10500
10536
|
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10501
|
-
|
|
10537
|
+
IsNotEmpty100({ message: "Contract UUID is required." })
|
|
10502
10538
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10503
10539
|
|
|
10504
10540
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10505
|
-
import { IsNotEmpty as
|
|
10541
|
+
import { IsNotEmpty as IsNotEmpty101, IsUUID as IsUUID28 } from "class-validator";
|
|
10506
10542
|
var EscrowFundContractDto = class {
|
|
10507
10543
|
};
|
|
10508
10544
|
__decorateClass([
|
|
10509
10545
|
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10510
|
-
|
|
10546
|
+
IsNotEmpty101({ message: "Contract ID is required." })
|
|
10511
10547
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10512
10548
|
|
|
10513
10549
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10514
|
-
import { IsNotEmpty as
|
|
10550
|
+
import { IsNotEmpty as IsNotEmpty102, IsOptional as IsOptional70, IsUUID as IsUUID29, IsEnum as IsEnum43 } from "class-validator";
|
|
10515
10551
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10516
10552
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10517
10553
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10522,7 +10558,7 @@ var SendNdaContractToFreelancerDto = class {
|
|
|
10522
10558
|
};
|
|
10523
10559
|
__decorateClass([
|
|
10524
10560
|
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10525
|
-
|
|
10561
|
+
IsNotEmpty102({ message: "Contract UUID is required." })
|
|
10526
10562
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10527
10563
|
__decorateClass([
|
|
10528
10564
|
IsOptional70(),
|
|
@@ -10536,12 +10572,12 @@ __decorateClass([
|
|
|
10536
10572
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10537
10573
|
|
|
10538
10574
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10539
|
-
import { IsOptional as IsOptional71, IsString as
|
|
10575
|
+
import { IsOptional as IsOptional71, IsString as IsString74 } from "class-validator";
|
|
10540
10576
|
var RejectContractDto = class {
|
|
10541
10577
|
};
|
|
10542
10578
|
__decorateClass([
|
|
10543
10579
|
IsOptional71(),
|
|
10544
|
-
|
|
10580
|
+
IsString74({ message: "Reject reason must be a string." })
|
|
10545
10581
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10546
10582
|
|
|
10547
10583
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10566,55 +10602,55 @@ var STRIPE_PATTERN = {
|
|
|
10566
10602
|
|
|
10567
10603
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10568
10604
|
import {
|
|
10569
|
-
IsNotEmpty as
|
|
10605
|
+
IsNotEmpty as IsNotEmpty103
|
|
10570
10606
|
} from "class-validator";
|
|
10571
10607
|
var CreateCheckoutSessionDto = class {
|
|
10572
10608
|
};
|
|
10573
10609
|
__decorateClass([
|
|
10574
|
-
|
|
10610
|
+
IsNotEmpty103({ message: "Amount is required" })
|
|
10575
10611
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10576
10612
|
|
|
10577
10613
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10578
|
-
import { IsNotEmpty as
|
|
10614
|
+
import { IsNotEmpty as IsNotEmpty104, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString75 } from "class-validator";
|
|
10579
10615
|
var PreCheckoutCalculationDto = class {
|
|
10580
10616
|
};
|
|
10581
10617
|
__decorateClass([
|
|
10582
|
-
|
|
10618
|
+
IsNotEmpty104({ message: "Amount is required" }),
|
|
10583
10619
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10584
10620
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10585
10621
|
__decorateClass([
|
|
10586
10622
|
IsOptional72(),
|
|
10587
|
-
|
|
10623
|
+
IsString75()
|
|
10588
10624
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10589
10625
|
__decorateClass([
|
|
10590
10626
|
IsOptional72(),
|
|
10591
|
-
|
|
10627
|
+
IsString75()
|
|
10592
10628
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10593
10629
|
|
|
10594
10630
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10595
|
-
import { IsNotEmpty as
|
|
10631
|
+
import { IsNotEmpty as IsNotEmpty105, IsNumber as IsNumber25, IsOptional as IsOptional73, IsString as IsString76 } from "class-validator";
|
|
10596
10632
|
var ClientAddFundDto = class {
|
|
10597
10633
|
};
|
|
10598
10634
|
__decorateClass([
|
|
10599
|
-
|
|
10635
|
+
IsNotEmpty105({ message: "Amount is required" }),
|
|
10600
10636
|
IsNumber25({}, { message: "Amount must be a number" })
|
|
10601
10637
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10602
10638
|
__decorateClass([
|
|
10603
10639
|
IsOptional73(),
|
|
10604
|
-
|
|
10640
|
+
IsString76()
|
|
10605
10641
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10606
10642
|
__decorateClass([
|
|
10607
10643
|
IsOptional73(),
|
|
10608
|
-
|
|
10644
|
+
IsString76()
|
|
10609
10645
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10610
10646
|
|
|
10611
10647
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10612
|
-
import { IsNotEmpty as
|
|
10648
|
+
import { IsNotEmpty as IsNotEmpty106, IsUUID as IsUUID30 } from "class-validator";
|
|
10613
10649
|
var TransferFundsDto = class {
|
|
10614
10650
|
};
|
|
10615
10651
|
__decorateClass([
|
|
10616
10652
|
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10617
|
-
|
|
10653
|
+
IsNotEmpty106({ message: "Invoice UUID is required." })
|
|
10618
10654
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10619
10655
|
|
|
10620
10656
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10661,35 +10697,35 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10661
10697
|
import {
|
|
10662
10698
|
IsDateString as IsDateString10,
|
|
10663
10699
|
IsInt as IsInt13,
|
|
10664
|
-
IsNotEmpty as
|
|
10700
|
+
IsNotEmpty as IsNotEmpty107,
|
|
10665
10701
|
IsOptional as IsOptional74,
|
|
10666
|
-
IsString as
|
|
10667
|
-
Matches as
|
|
10702
|
+
IsString as IsString77,
|
|
10703
|
+
Matches as Matches14,
|
|
10668
10704
|
IsNumber as IsNumber26
|
|
10669
10705
|
} from "class-validator";
|
|
10670
10706
|
var CreateFreelancerTimesheetDto = class {
|
|
10671
10707
|
};
|
|
10672
10708
|
__decorateClass([
|
|
10673
|
-
|
|
10709
|
+
IsNotEmpty107({ message: "Job id is required" }),
|
|
10674
10710
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10675
10711
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10676
10712
|
__decorateClass([
|
|
10677
|
-
|
|
10713
|
+
IsNotEmpty107({ message: "start date is required" }),
|
|
10678
10714
|
IsDateString10()
|
|
10679
10715
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10680
10716
|
__decorateClass([
|
|
10681
|
-
|
|
10717
|
+
IsNotEmpty107({ message: "end date is required" }),
|
|
10682
10718
|
IsDateString10()
|
|
10683
10719
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10684
10720
|
__decorateClass([
|
|
10685
|
-
|
|
10686
|
-
|
|
10721
|
+
IsNotEmpty107({ message: "start time is required" }),
|
|
10722
|
+
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10687
10723
|
message: "startTime must be in HH:mm:ss format"
|
|
10688
10724
|
})
|
|
10689
10725
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10690
10726
|
__decorateClass([
|
|
10691
|
-
|
|
10692
|
-
|
|
10727
|
+
IsNotEmpty107({ message: "end time is required" }),
|
|
10728
|
+
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10693
10729
|
message: "endTime must be in HH:mm:ss format"
|
|
10694
10730
|
})
|
|
10695
10731
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10699,53 +10735,53 @@ __decorateClass([
|
|
|
10699
10735
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10700
10736
|
__decorateClass([
|
|
10701
10737
|
IsOptional74(),
|
|
10702
|
-
|
|
10738
|
+
IsString77()
|
|
10703
10739
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10704
10740
|
__decorateClass([
|
|
10705
10741
|
IsOptional74(),
|
|
10706
|
-
|
|
10742
|
+
IsString77()
|
|
10707
10743
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10708
10744
|
__decorateClass([
|
|
10709
10745
|
IsOptional74(),
|
|
10710
|
-
|
|
10746
|
+
IsString77()
|
|
10711
10747
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10712
10748
|
__decorateClass([
|
|
10713
|
-
|
|
10749
|
+
IsNotEmpty107({ message: "Description is required" })
|
|
10714
10750
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10715
10751
|
|
|
10716
10752
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10717
10753
|
import {
|
|
10718
10754
|
IsDateString as IsDateString11,
|
|
10719
10755
|
IsInt as IsInt14,
|
|
10720
|
-
IsNotEmpty as
|
|
10756
|
+
IsNotEmpty as IsNotEmpty108,
|
|
10721
10757
|
IsOptional as IsOptional75,
|
|
10722
|
-
IsString as
|
|
10723
|
-
Matches as
|
|
10758
|
+
IsString as IsString78,
|
|
10759
|
+
Matches as Matches15,
|
|
10724
10760
|
IsNumber as IsNumber27
|
|
10725
10761
|
} from "class-validator";
|
|
10726
10762
|
var UpdateFreelancerTimesheetDto = class {
|
|
10727
10763
|
};
|
|
10728
10764
|
__decorateClass([
|
|
10729
|
-
|
|
10765
|
+
IsNotEmpty108({ message: "Job id is required" }),
|
|
10730
10766
|
IsNumber27({}, { message: "Job id must be a number" })
|
|
10731
10767
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10732
10768
|
__decorateClass([
|
|
10733
|
-
|
|
10769
|
+
IsNotEmpty108({ message: "start date is required" }),
|
|
10734
10770
|
IsDateString11()
|
|
10735
10771
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10736
10772
|
__decorateClass([
|
|
10737
|
-
|
|
10773
|
+
IsNotEmpty108({ message: "end date is required" }),
|
|
10738
10774
|
IsDateString11()
|
|
10739
10775
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10740
10776
|
__decorateClass([
|
|
10741
|
-
|
|
10742
|
-
|
|
10777
|
+
IsNotEmpty108({ message: "start time is required" }),
|
|
10778
|
+
Matches15(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10743
10779
|
message: "startTime must be in HH:mm:ss format"
|
|
10744
10780
|
})
|
|
10745
10781
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10746
10782
|
__decorateClass([
|
|
10747
|
-
|
|
10748
|
-
|
|
10783
|
+
IsNotEmpty108({ message: "end time is required" }),
|
|
10784
|
+
Matches15(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10749
10785
|
message: "endTime must be in HH:mm:ss format"
|
|
10750
10786
|
})
|
|
10751
10787
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10755,78 +10791,78 @@ __decorateClass([
|
|
|
10755
10791
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10756
10792
|
__decorateClass([
|
|
10757
10793
|
IsOptional75(),
|
|
10758
|
-
|
|
10794
|
+
IsString78()
|
|
10759
10795
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10760
10796
|
__decorateClass([
|
|
10761
10797
|
IsOptional75(),
|
|
10762
|
-
|
|
10798
|
+
IsString78()
|
|
10763
10799
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10764
10800
|
__decorateClass([
|
|
10765
10801
|
IsOptional75(),
|
|
10766
|
-
|
|
10802
|
+
IsString78()
|
|
10767
10803
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10768
10804
|
__decorateClass([
|
|
10769
|
-
|
|
10805
|
+
IsNotEmpty108({ message: "Description is required" })
|
|
10770
10806
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10771
10807
|
|
|
10772
10808
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10773
|
-
import { IsNotEmpty as
|
|
10809
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber28 } from "class-validator";
|
|
10774
10810
|
var SubmitTimesheetDto = class {
|
|
10775
10811
|
};
|
|
10776
10812
|
__decorateClass([
|
|
10777
|
-
|
|
10813
|
+
IsNotEmpty109({ message: "Timesheet line ID is required" }),
|
|
10778
10814
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10779
10815
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10780
10816
|
|
|
10781
10817
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10782
|
-
import { IsNotEmpty as
|
|
10818
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber29 } from "class-validator";
|
|
10783
10819
|
var ResubmitTimesheetDto = class {
|
|
10784
10820
|
};
|
|
10785
10821
|
__decorateClass([
|
|
10786
|
-
|
|
10822
|
+
IsNotEmpty110({ message: "Timesheet line ID is required" }),
|
|
10787
10823
|
IsNumber29({}, { message: "Timesheet line ID must be a number" })
|
|
10788
10824
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10789
10825
|
|
|
10790
10826
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10791
|
-
import { IsNotEmpty as
|
|
10827
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber30 } from "class-validator";
|
|
10792
10828
|
import { Type as Type23 } from "class-transformer";
|
|
10793
10829
|
var ApproveTimesheetsDto = class {
|
|
10794
10830
|
};
|
|
10795
10831
|
__decorateClass([
|
|
10796
10832
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10797
|
-
|
|
10833
|
+
IsNotEmpty111({ message: "Timesheet line ID is required." }),
|
|
10798
10834
|
Type23(() => Number)
|
|
10799
10835
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10800
10836
|
|
|
10801
10837
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10802
|
-
import { IsNotEmpty as
|
|
10838
|
+
import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber31, IsOptional as IsOptional76, IsString as IsString79 } from "class-validator";
|
|
10803
10839
|
import { Type as Type24 } from "class-transformer";
|
|
10804
10840
|
var SendBackTimesheetsDto = class {
|
|
10805
10841
|
};
|
|
10806
10842
|
__decorateClass([
|
|
10807
10843
|
IsNumber31({}, { message: "Timesheet line ID must be a number." }),
|
|
10808
|
-
|
|
10844
|
+
IsNotEmpty112({ message: "Timesheet line ID is required." }),
|
|
10809
10845
|
Type24(() => Number)
|
|
10810
10846
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10811
10847
|
__decorateClass([
|
|
10812
10848
|
IsOptional76(),
|
|
10813
|
-
|
|
10849
|
+
IsString79({ message: "Client send back reason must be a string." })
|
|
10814
10850
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10815
10851
|
|
|
10816
10852
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10817
|
-
import { IsNotEmpty as
|
|
10853
|
+
import { IsNotEmpty as IsNotEmpty113, IsNumber as IsNumber32 } from "class-validator";
|
|
10818
10854
|
var CreateDefaultTimesheetLineDto = class {
|
|
10819
10855
|
};
|
|
10820
10856
|
__decorateClass([
|
|
10821
|
-
|
|
10857
|
+
IsNotEmpty113({ message: "Contract ID is required" }),
|
|
10822
10858
|
IsNumber32({}, { message: "Contract ID must be a number" })
|
|
10823
10859
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10824
10860
|
__decorateClass([
|
|
10825
|
-
|
|
10861
|
+
IsNotEmpty113({ message: "Freelancer ID is required" }),
|
|
10826
10862
|
IsNumber32({}, { message: "Freelancer ID must be a number" })
|
|
10827
10863
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10828
10864
|
__decorateClass([
|
|
10829
|
-
|
|
10865
|
+
IsNotEmpty113({ message: "Client ID is required" }),
|
|
10830
10866
|
IsNumber32({}, { message: "Client ID must be a number" })
|
|
10831
10867
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10832
10868
|
|
|
@@ -10849,22 +10885,22 @@ var INVOICE_PATTERN = {
|
|
|
10849
10885
|
};
|
|
10850
10886
|
|
|
10851
10887
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10852
|
-
import { IsEnum as IsEnum46, IsNotEmpty as
|
|
10888
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty114 } from "class-validator";
|
|
10853
10889
|
var UpdateInvoiceStatusDto = class {
|
|
10854
10890
|
};
|
|
10855
10891
|
__decorateClass([
|
|
10856
|
-
|
|
10892
|
+
IsNotEmpty114({ message: "Please provide invoice status." }),
|
|
10857
10893
|
IsEnum46(InvoiceStatusEnum, {
|
|
10858
10894
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10859
10895
|
})
|
|
10860
10896
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10861
10897
|
|
|
10862
10898
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10863
|
-
import { IsNotEmpty as
|
|
10899
|
+
import { IsNotEmpty as IsNotEmpty115, IsNumber as IsNumber33 } from "class-validator";
|
|
10864
10900
|
var CreateInvoiceDto = class {
|
|
10865
10901
|
};
|
|
10866
10902
|
__decorateClass([
|
|
10867
|
-
|
|
10903
|
+
IsNotEmpty115({ message: "Timesheet line ID is required" }),
|
|
10868
10904
|
IsNumber33({}, { message: "Timesheet line ID must be a number" })
|
|
10869
10905
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10870
10906
|
|
|
@@ -10877,11 +10913,11 @@ var DISPUTE_PATTERN = {
|
|
|
10877
10913
|
|
|
10878
10914
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10879
10915
|
import {
|
|
10880
|
-
IsString as
|
|
10881
|
-
IsNotEmpty as
|
|
10916
|
+
IsString as IsString80,
|
|
10917
|
+
IsNotEmpty as IsNotEmpty116,
|
|
10882
10918
|
IsIn as IsIn4,
|
|
10883
10919
|
IsOptional as IsOptional77,
|
|
10884
|
-
MaxLength as
|
|
10920
|
+
MaxLength as MaxLength24,
|
|
10885
10921
|
IsObject as IsObject7,
|
|
10886
10922
|
IsNumber as IsNumber34,
|
|
10887
10923
|
ValidateIf as ValidateIf13
|
|
@@ -10900,23 +10936,23 @@ __decorateClass([
|
|
|
10900
10936
|
Type25(() => Number)
|
|
10901
10937
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10902
10938
|
__decorateClass([
|
|
10903
|
-
|
|
10904
|
-
|
|
10939
|
+
IsNotEmpty116({ message: "Please select dispute type." }),
|
|
10940
|
+
IsString80(),
|
|
10905
10941
|
IsIn4(["JOB", "INVOICE"])
|
|
10906
10942
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10907
10943
|
__decorateClass([
|
|
10908
|
-
|
|
10909
|
-
|
|
10944
|
+
IsNotEmpty116({ message: "Please provide initiator type." }),
|
|
10945
|
+
IsString80()
|
|
10910
10946
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10911
10947
|
__decorateClass([
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10948
|
+
IsNotEmpty116({ message: "Please enter description." }),
|
|
10949
|
+
IsString80({ message: "Description must be a string" }),
|
|
10950
|
+
MaxLength24(500, { message: "Description must not exceed 500 characters" })
|
|
10915
10951
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10916
10952
|
__decorateClass([
|
|
10917
10953
|
IsOptional77(),
|
|
10918
|
-
|
|
10919
|
-
|
|
10954
|
+
IsString80({ message: "Comment must be a string" }),
|
|
10955
|
+
MaxLength24(500, { message: "Comment must not exceed 500 characters" })
|
|
10920
10956
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10921
10957
|
__decorateClass([
|
|
10922
10958
|
IsOptional77(),
|
|
@@ -10942,76 +10978,76 @@ var SENSELOAF_PATTERN = {
|
|
|
10942
10978
|
|
|
10943
10979
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10944
10980
|
import {
|
|
10945
|
-
IsNotEmpty as
|
|
10981
|
+
IsNotEmpty as IsNotEmpty117
|
|
10946
10982
|
} from "class-validator";
|
|
10947
10983
|
var AiInterviewQuestionGenerateDto = class {
|
|
10948
10984
|
};
|
|
10949
10985
|
__decorateClass([
|
|
10950
|
-
|
|
10986
|
+
IsNotEmpty117({ message: "Please enter job description." })
|
|
10951
10987
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10952
10988
|
__decorateClass([
|
|
10953
|
-
|
|
10989
|
+
IsNotEmpty117({ message: "Please enter number of questions." })
|
|
10954
10990
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10955
10991
|
|
|
10956
10992
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10957
|
-
import { IsNotEmpty as
|
|
10993
|
+
import { IsNotEmpty as IsNotEmpty118, IsString as IsString81, IsOptional as IsOptional78 } from "class-validator";
|
|
10958
10994
|
var ResumeParsingByUrlDto = class {
|
|
10959
10995
|
};
|
|
10960
10996
|
__decorateClass([
|
|
10961
|
-
|
|
10962
|
-
|
|
10997
|
+
IsNotEmpty118({ message: "Resume URL is required" }),
|
|
10998
|
+
IsString81({ message: "Resume URL must be a string" })
|
|
10963
10999
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10964
11000
|
__decorateClass([
|
|
10965
11001
|
IsOptional78(),
|
|
10966
|
-
|
|
11002
|
+
IsString81()
|
|
10967
11003
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10968
11004
|
|
|
10969
11005
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10970
|
-
import { IsNotEmpty as
|
|
11006
|
+
import { IsNotEmpty as IsNotEmpty119, IsString as IsString82, IsOptional as IsOptional79, IsObject as IsObject8 } from "class-validator";
|
|
10971
11007
|
var ResumeDataProcessingDto = class {
|
|
10972
11008
|
};
|
|
10973
11009
|
__decorateClass([
|
|
10974
|
-
|
|
11010
|
+
IsNotEmpty119({ message: "Resume data is required" }),
|
|
10975
11011
|
IsObject8()
|
|
10976
11012
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10977
11013
|
__decorateClass([
|
|
10978
11014
|
IsOptional79(),
|
|
10979
|
-
|
|
11015
|
+
IsString82()
|
|
10980
11016
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
10981
11017
|
__decorateClass([
|
|
10982
11018
|
IsOptional79(),
|
|
10983
|
-
|
|
11019
|
+
IsString82()
|
|
10984
11020
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10985
11021
|
|
|
10986
11022
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10987
|
-
import { IsNotEmpty as
|
|
11023
|
+
import { IsNotEmpty as IsNotEmpty120, IsString as IsString83, IsOptional as IsOptional80, IsObject as IsObject9 } from "class-validator";
|
|
10988
11024
|
var CheckResumeEligibilityDto = class {
|
|
10989
11025
|
};
|
|
10990
11026
|
__decorateClass([
|
|
10991
|
-
|
|
11027
|
+
IsNotEmpty120({ message: "Resume data is required" }),
|
|
10992
11028
|
IsObject9()
|
|
10993
11029
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10994
11030
|
__decorateClass([
|
|
10995
11031
|
IsOptional80(),
|
|
10996
|
-
|
|
11032
|
+
IsString83()
|
|
10997
11033
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
10998
11034
|
__decorateClass([
|
|
10999
11035
|
IsOptional80(),
|
|
11000
|
-
|
|
11036
|
+
IsString83()
|
|
11001
11037
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
11002
11038
|
|
|
11003
11039
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
11004
|
-
import { IsNotEmpty as
|
|
11040
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional81, IsArray as IsArray27, IsNumber as IsNumber35 } from "class-validator";
|
|
11005
11041
|
var AiInterviewTemplateGenerationDto = class {
|
|
11006
11042
|
};
|
|
11007
11043
|
__decorateClass([
|
|
11008
|
-
|
|
11009
|
-
|
|
11044
|
+
IsNotEmpty121({ message: "Job ID is required" }),
|
|
11045
|
+
IsString84({ message: "Job ID must be a string" })
|
|
11010
11046
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
11011
11047
|
__decorateClass([
|
|
11012
11048
|
IsOptional81(),
|
|
11013
11049
|
IsArray27(),
|
|
11014
|
-
|
|
11050
|
+
IsString84({ each: true, message: "Each skill must be a string" })
|
|
11015
11051
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
11016
11052
|
__decorateClass([
|
|
11017
11053
|
IsOptional81(),
|
|
@@ -11019,24 +11055,24 @@ __decorateClass([
|
|
|
11019
11055
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
11020
11056
|
__decorateClass([
|
|
11021
11057
|
IsOptional81(),
|
|
11022
|
-
|
|
11058
|
+
IsString84()
|
|
11023
11059
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
11024
11060
|
|
|
11025
11061
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
11026
|
-
import { IsNotEmpty as
|
|
11062
|
+
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
11027
11063
|
var AiInterviewLinkGenerationDto = class {
|
|
11028
11064
|
};
|
|
11029
11065
|
__decorateClass([
|
|
11030
|
-
|
|
11031
|
-
|
|
11066
|
+
IsNotEmpty122({ message: "Template ID is required" }),
|
|
11067
|
+
IsString85({ message: "Template ID must be a string" })
|
|
11032
11068
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
11033
11069
|
__decorateClass([
|
|
11034
|
-
|
|
11035
|
-
|
|
11070
|
+
IsNotEmpty122({ message: "Freelancer ID is required" }),
|
|
11071
|
+
IsString85({ message: "Freelancer ID must be a string" })
|
|
11036
11072
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
11037
11073
|
__decorateClass([
|
|
11038
11074
|
IsOptional82(),
|
|
11039
|
-
|
|
11075
|
+
IsString85()
|
|
11040
11076
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
11041
11077
|
__decorateClass([
|
|
11042
11078
|
IsOptional82(),
|
|
@@ -11044,16 +11080,16 @@ __decorateClass([
|
|
|
11044
11080
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
11045
11081
|
|
|
11046
11082
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
11047
|
-
import { IsNotEmpty as
|
|
11083
|
+
import { IsNotEmpty as IsNotEmpty123, IsString as IsString86, IsOptional as IsOptional83, IsNumber as IsNumber37 } from "class-validator";
|
|
11048
11084
|
var AiAssessmentCreationDto = class {
|
|
11049
11085
|
};
|
|
11050
11086
|
__decorateClass([
|
|
11051
|
-
|
|
11052
|
-
|
|
11087
|
+
IsNotEmpty123({ message: "User ID is required" }),
|
|
11088
|
+
IsString86({ message: "User ID must be a string" })
|
|
11053
11089
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
11054
11090
|
__decorateClass([
|
|
11055
11091
|
IsOptional83(),
|
|
11056
|
-
|
|
11092
|
+
IsString86()
|
|
11057
11093
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
11058
11094
|
__decorateClass([
|
|
11059
11095
|
IsOptional83(),
|
|
@@ -11061,7 +11097,7 @@ __decorateClass([
|
|
|
11061
11097
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
11062
11098
|
__decorateClass([
|
|
11063
11099
|
IsOptional83(),
|
|
11064
|
-
|
|
11100
|
+
IsString86()
|
|
11065
11101
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
11066
11102
|
|
|
11067
11103
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -11077,7 +11113,7 @@ var HIRING_PATTERN = {
|
|
|
11077
11113
|
};
|
|
11078
11114
|
|
|
11079
11115
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
11080
|
-
import { IsEnum as IsEnum47, IsNotEmpty as
|
|
11116
|
+
import { IsEnum as IsEnum47, IsNotEmpty as IsNotEmpty124, IsNumber as IsNumber38 } from "class-validator";
|
|
11081
11117
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
11082
11118
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
11083
11119
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -11086,15 +11122,15 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
11086
11122
|
var CreateHiringDto = class {
|
|
11087
11123
|
};
|
|
11088
11124
|
__decorateClass([
|
|
11089
|
-
|
|
11125
|
+
IsNotEmpty124({ message: "Freelancer ID is required" }),
|
|
11090
11126
|
IsNumber38({}, { message: "Freelancer ID must be a number" })
|
|
11091
11127
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
11092
11128
|
__decorateClass([
|
|
11093
|
-
|
|
11129
|
+
IsNotEmpty124({ message: "Job ID is required" }),
|
|
11094
11130
|
IsNumber38({}, { message: "Job ID must be a number" })
|
|
11095
11131
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
11096
11132
|
__decorateClass([
|
|
11097
|
-
|
|
11133
|
+
IsNotEmpty124({ message: "Preferred engagement type is required" }),
|
|
11098
11134
|
IsEnum47(PreferredEngagementTypeEnum2, {
|
|
11099
11135
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
11100
11136
|
})
|
|
@@ -11118,16 +11154,16 @@ var SIGNATURE_PATTERN = {
|
|
|
11118
11154
|
};
|
|
11119
11155
|
|
|
11120
11156
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
11121
|
-
import { IsOptional as IsOptional84, IsString as
|
|
11157
|
+
import { IsOptional as IsOptional84, IsString as IsString87 } from "class-validator";
|
|
11122
11158
|
var SaveSignatureDto = class {
|
|
11123
11159
|
};
|
|
11124
11160
|
__decorateClass([
|
|
11125
11161
|
IsOptional84(),
|
|
11126
|
-
|
|
11162
|
+
IsString87()
|
|
11127
11163
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
11128
11164
|
__decorateClass([
|
|
11129
11165
|
IsOptional84(),
|
|
11130
|
-
|
|
11166
|
+
IsString87()
|
|
11131
11167
|
], SaveSignatureDto.prototype, "description", 2);
|
|
11132
11168
|
|
|
11133
11169
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -11145,25 +11181,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
11145
11181
|
};
|
|
11146
11182
|
|
|
11147
11183
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
11148
|
-
import { IsNotEmpty as
|
|
11184
|
+
import { IsNotEmpty as IsNotEmpty125, IsNumber as IsNumber39, IsUUID as IsUUID31 } from "class-validator";
|
|
11149
11185
|
var AddTopupEscrowAmountDto = class {
|
|
11150
11186
|
};
|
|
11151
11187
|
__decorateClass([
|
|
11152
|
-
|
|
11188
|
+
IsNotEmpty125({ message: "Amount is required" }),
|
|
11153
11189
|
IsNumber39({}, { message: "Amount must be a number" })
|
|
11154
11190
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
11155
11191
|
__decorateClass([
|
|
11156
|
-
|
|
11192
|
+
IsNotEmpty125({ message: "Escrow wallet UUID is required" }),
|
|
11157
11193
|
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
11158
11194
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
11159
11195
|
|
|
11160
11196
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
11161
|
-
import { IsNotEmpty as
|
|
11197
|
+
import { IsNotEmpty as IsNotEmpty126, IsUUID as IsUUID32 } from "class-validator";
|
|
11162
11198
|
var DebitCommissionFteHiringDto = class {
|
|
11163
11199
|
};
|
|
11164
11200
|
__decorateClass([
|
|
11165
11201
|
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
11166
|
-
|
|
11202
|
+
IsNotEmpty126({ message: "Invoice UUID is required." })
|
|
11167
11203
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
11168
11204
|
|
|
11169
11205
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12272,28 +12308,28 @@ function createDiscordTransport(options) {
|
|
|
12272
12308
|
}
|
|
12273
12309
|
|
|
12274
12310
|
// src/modules/in-app-notification/dto/create-in-app-notification.dto.ts
|
|
12275
|
-
import { IsNotEmpty as
|
|
12311
|
+
import { IsNotEmpty as IsNotEmpty127, IsNumber as IsNumber40, IsOptional as IsOptional85, IsString as IsString88, IsObject as IsObject10 } from "class-validator";
|
|
12276
12312
|
var CreateInAppNotificationDto = class {
|
|
12277
12313
|
};
|
|
12278
12314
|
__decorateClass([
|
|
12279
|
-
|
|
12315
|
+
IsNotEmpty127(),
|
|
12280
12316
|
IsNumber40()
|
|
12281
12317
|
], CreateInAppNotificationDto.prototype, "userId", 2);
|
|
12282
12318
|
__decorateClass([
|
|
12283
12319
|
IsOptional85(),
|
|
12284
|
-
|
|
12320
|
+
IsString88()
|
|
12285
12321
|
], CreateInAppNotificationDto.prototype, "event", 2);
|
|
12286
12322
|
__decorateClass([
|
|
12287
12323
|
IsOptional85(),
|
|
12288
|
-
|
|
12324
|
+
IsString88()
|
|
12289
12325
|
], CreateInAppNotificationDto.prototype, "title", 2);
|
|
12290
12326
|
__decorateClass([
|
|
12291
|
-
|
|
12292
|
-
|
|
12327
|
+
IsNotEmpty127(),
|
|
12328
|
+
IsString88()
|
|
12293
12329
|
], CreateInAppNotificationDto.prototype, "message", 2);
|
|
12294
12330
|
__decorateClass([
|
|
12295
12331
|
IsOptional85(),
|
|
12296
|
-
|
|
12332
|
+
IsString88()
|
|
12297
12333
|
], CreateInAppNotificationDto.prototype, "redirectUrl", 2);
|
|
12298
12334
|
__decorateClass([
|
|
12299
12335
|
IsOptional85(),
|
|
@@ -12301,7 +12337,7 @@ __decorateClass([
|
|
|
12301
12337
|
], CreateInAppNotificationDto.prototype, "metaData", 2);
|
|
12302
12338
|
|
|
12303
12339
|
// src/modules/in-app-notification/dto/update-is-read.dto.ts
|
|
12304
|
-
import { IsNotEmpty as
|
|
12340
|
+
import { IsNotEmpty as IsNotEmpty128, IsNumber as IsNumber41, IsBoolean as IsBoolean22, IsOptional as IsOptional86, IsArray as IsArray29 } from "class-validator";
|
|
12305
12341
|
import { Type as Type26 } from "class-transformer";
|
|
12306
12342
|
var UpdateIsReadDto = class {
|
|
12307
12343
|
};
|
|
@@ -12317,7 +12353,7 @@ __decorateClass([
|
|
|
12317
12353
|
Type26(() => Number)
|
|
12318
12354
|
], UpdateIsReadDto.prototype, "ids", 2);
|
|
12319
12355
|
__decorateClass([
|
|
12320
|
-
|
|
12356
|
+
IsNotEmpty128(),
|
|
12321
12357
|
IsBoolean22()
|
|
12322
12358
|
], UpdateIsReadDto.prototype, "isRead", 2);
|
|
12323
12359
|
|
|
@@ -12346,10 +12382,10 @@ import {
|
|
|
12346
12382
|
IsBoolean as IsBoolean23,
|
|
12347
12383
|
IsEmail as IsEmail24,
|
|
12348
12384
|
IsEnum as IsEnum48,
|
|
12349
|
-
IsNotEmpty as
|
|
12385
|
+
IsNotEmpty as IsNotEmpty129,
|
|
12350
12386
|
IsNumber as IsNumber42,
|
|
12351
12387
|
IsOptional as IsOptional87,
|
|
12352
|
-
IsString as
|
|
12388
|
+
IsString as IsString89,
|
|
12353
12389
|
ValidateNested as ValidateNested12
|
|
12354
12390
|
} from "class-validator";
|
|
12355
12391
|
import { Type as Type27 } from "class-transformer";
|
|
@@ -12362,15 +12398,15 @@ var DocuSealSubmitterDto = class {
|
|
|
12362
12398
|
};
|
|
12363
12399
|
__decorateClass([
|
|
12364
12400
|
IsEmail24({}, { message: "Submitter email must be valid." }),
|
|
12365
|
-
|
|
12401
|
+
IsNotEmpty129({ message: "Submitter email is required." })
|
|
12366
12402
|
], DocuSealSubmitterDto.prototype, "email", 2);
|
|
12367
12403
|
__decorateClass([
|
|
12368
12404
|
IsOptional87(),
|
|
12369
|
-
|
|
12405
|
+
IsString89()
|
|
12370
12406
|
], DocuSealSubmitterDto.prototype, "name", 2);
|
|
12371
12407
|
__decorateClass([
|
|
12372
12408
|
IsOptional87(),
|
|
12373
|
-
|
|
12409
|
+
IsString89()
|
|
12374
12410
|
], DocuSealSubmitterDto.prototype, "phone", 2);
|
|
12375
12411
|
__decorateClass([
|
|
12376
12412
|
IsOptional87(),
|
|
@@ -12380,17 +12416,17 @@ var DocuSealMessageDto = class {
|
|
|
12380
12416
|
};
|
|
12381
12417
|
__decorateClass([
|
|
12382
12418
|
IsOptional87(),
|
|
12383
|
-
|
|
12419
|
+
IsString89()
|
|
12384
12420
|
], DocuSealMessageDto.prototype, "subject", 2);
|
|
12385
12421
|
__decorateClass([
|
|
12386
12422
|
IsOptional87(),
|
|
12387
|
-
|
|
12423
|
+
IsString89()
|
|
12388
12424
|
], DocuSealMessageDto.prototype, "body", 2);
|
|
12389
12425
|
var CreateUserSigningDto = class {
|
|
12390
12426
|
};
|
|
12391
12427
|
__decorateClass([
|
|
12392
12428
|
IsNumber42({}, { message: "Template ID must be a number." }),
|
|
12393
|
-
|
|
12429
|
+
IsNotEmpty129({ message: "Template ID is required." })
|
|
12394
12430
|
], CreateUserSigningDto.prototype, "templateId", 2);
|
|
12395
12431
|
__decorateClass([
|
|
12396
12432
|
IsOptional87(),
|
|
@@ -12414,54 +12450,54 @@ __decorateClass([
|
|
|
12414
12450
|
], CreateUserSigningDto.prototype, "message", 2);
|
|
12415
12451
|
__decorateClass([
|
|
12416
12452
|
IsOptional87(),
|
|
12417
|
-
|
|
12453
|
+
IsString89()
|
|
12418
12454
|
], CreateUserSigningDto.prototype, "completedRedirectUrl", 2);
|
|
12419
12455
|
__decorateClass([
|
|
12420
12456
|
IsOptional87(),
|
|
12421
|
-
|
|
12457
|
+
IsString89()
|
|
12422
12458
|
], CreateUserSigningDto.prototype, "expireAt", 2);
|
|
12423
12459
|
|
|
12424
12460
|
// src/modules/docuseal/dto/get-submission.dto.ts
|
|
12425
|
-
import { IsNotEmpty as
|
|
12461
|
+
import { IsNotEmpty as IsNotEmpty130, IsNumber as IsNumber43 } from "class-validator";
|
|
12426
12462
|
import { Type as Type28 } from "class-transformer";
|
|
12427
12463
|
var GetSubmissionDto = class {
|
|
12428
12464
|
};
|
|
12429
12465
|
__decorateClass([
|
|
12430
12466
|
IsNumber43({}, { message: "Submission ID must be a number." }),
|
|
12431
|
-
|
|
12467
|
+
IsNotEmpty130({ message: "Submission ID is required." }),
|
|
12432
12468
|
Type28(() => Number)
|
|
12433
12469
|
], GetSubmissionDto.prototype, "submissionId", 2);
|
|
12434
12470
|
|
|
12435
12471
|
// src/modules/docuseal/dto/get-submitter.dto.ts
|
|
12436
|
-
import { IsNotEmpty as
|
|
12472
|
+
import { IsNotEmpty as IsNotEmpty131, IsNumber as IsNumber44 } from "class-validator";
|
|
12437
12473
|
import { Type as Type29 } from "class-transformer";
|
|
12438
12474
|
var GetSubmitterDto = class {
|
|
12439
12475
|
};
|
|
12440
12476
|
__decorateClass([
|
|
12441
12477
|
IsNumber44({}, { message: "Submitter ID must be a number." }),
|
|
12442
|
-
|
|
12478
|
+
IsNotEmpty131({ message: "Submitter ID is required." }),
|
|
12443
12479
|
Type29(() => Number)
|
|
12444
12480
|
], GetSubmitterDto.prototype, "submitterId", 2);
|
|
12445
12481
|
|
|
12446
12482
|
// src/modules/docuseal/dto/get-template.dto.ts
|
|
12447
|
-
import { IsNotEmpty as
|
|
12483
|
+
import { IsNotEmpty as IsNotEmpty132, IsNumber as IsNumber45 } from "class-validator";
|
|
12448
12484
|
import { Type as Type30 } from "class-transformer";
|
|
12449
12485
|
var GetTemplateDto = class {
|
|
12450
12486
|
};
|
|
12451
12487
|
__decorateClass([
|
|
12452
12488
|
IsNumber45({}, { message: "Template ID must be a number." }),
|
|
12453
|
-
|
|
12489
|
+
IsNotEmpty132({ message: "Template ID is required." }),
|
|
12454
12490
|
Type30(() => Number)
|
|
12455
12491
|
], GetTemplateDto.prototype, "templateId", 2);
|
|
12456
12492
|
|
|
12457
12493
|
// src/modules/docuseal/dto/archive-submission.dto.ts
|
|
12458
|
-
import { IsNotEmpty as
|
|
12494
|
+
import { IsNotEmpty as IsNotEmpty133, IsNumber as IsNumber46 } from "class-validator";
|
|
12459
12495
|
import { Type as Type31 } from "class-transformer";
|
|
12460
12496
|
var ArchiveSubmissionDto = class {
|
|
12461
12497
|
};
|
|
12462
12498
|
__decorateClass([
|
|
12463
12499
|
IsNumber46({}, { message: "Submission ID must be a number." }),
|
|
12464
|
-
|
|
12500
|
+
IsNotEmpty133({ message: "Submission ID is required." }),
|
|
12465
12501
|
Type31(() => Number)
|
|
12466
12502
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12467
12503
|
|
|
@@ -13919,6 +13955,7 @@ export {
|
|
|
13919
13955
|
VerifyGuestOtpDto,
|
|
13920
13956
|
VerifyOnboardingTokenDto,
|
|
13921
13957
|
VerifyOtpDto,
|
|
13958
|
+
VerifyPasswordChangeOtpDto,
|
|
13922
13959
|
WALLET_ADMIN_PATTERN,
|
|
13923
13960
|
WALLET_PATTERN,
|
|
13924
13961
|
Wallet,
|