@experts_hub/shared 1.0.648 → 1.0.649
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 +64 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.js +1561 -1337
- package/dist/index.mjs +1450 -1215
- package/dist/modules/job/dto/create-job-via-ai.dto..d.ts +61 -0
- package/dist/modules/job/dto/index.d.ts +1 -0
- package/dist/modules/job/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4307,6 +4307,9 @@ __decorateClass([
|
|
|
4307
4307
|
__decorateClass([
|
|
4308
4308
|
Column35({ name: "is_interview_created", type: "boolean", default: false })
|
|
4309
4309
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4310
|
+
__decorateClass([
|
|
4311
|
+
Column35({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4312
|
+
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4310
4313
|
__decorateClass([
|
|
4311
4314
|
OneToMany14(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4312
4315
|
], Job.prototype, "interviewInvites", 2);
|
|
@@ -6373,6 +6376,7 @@ var JOB_PATTERN = {
|
|
|
6373
6376
|
updateJobAdditionalComments: "update.job.additional.comments",
|
|
6374
6377
|
fetchJobDescription: "fetch.job.description",
|
|
6375
6378
|
updateJobDescription: "update.job.description",
|
|
6379
|
+
createJobViaAI: "create.job.via.ai",
|
|
6376
6380
|
updateJobStatus: "update.job.status",
|
|
6377
6381
|
closeJob: "close.job",
|
|
6378
6382
|
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills",
|
|
@@ -6607,70 +6611,40 @@ __decorateClass([
|
|
|
6607
6611
|
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6608
6612
|
], JobDescriptionDto.prototype, "description", 2);
|
|
6609
6613
|
|
|
6610
|
-
// src/modules/job/dto/job-
|
|
6611
|
-
import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty43 } from "class-validator";
|
|
6612
|
-
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
6613
|
-
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
6614
|
-
JobStatus2["OPEN"] = "OPEN";
|
|
6615
|
-
JobStatus2["DRAFT"] = "DRAFT";
|
|
6616
|
-
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
6617
|
-
JobStatus2["CLOSED"] = "CLOSED";
|
|
6618
|
-
JobStatus2["COMPLETED"] = "COMPLETED";
|
|
6619
|
-
return JobStatus2;
|
|
6620
|
-
})(JobStatus || {});
|
|
6621
|
-
var JobStatusDto = class {
|
|
6622
|
-
};
|
|
6623
|
-
__decorateClass([
|
|
6624
|
-
IsNotEmpty43({ message: "Please provide a job status" }),
|
|
6625
|
-
IsEnum16(JobStatus, {
|
|
6626
|
-
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
6627
|
-
})
|
|
6628
|
-
], JobStatusDto.prototype, "status", 2);
|
|
6629
|
-
|
|
6630
|
-
// src/modules/job/dto/job-id-param.dto.ts
|
|
6631
|
-
import { IsUUID as IsUUID16 } from "class-validator";
|
|
6632
|
-
var JobIdParamDto = class {
|
|
6633
|
-
};
|
|
6634
|
-
__decorateClass([
|
|
6635
|
-
IsUUID16("4", {
|
|
6636
|
-
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
6637
|
-
})
|
|
6638
|
-
], JobIdParamDto.prototype, "id", 2);
|
|
6639
|
-
|
|
6640
|
-
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
6614
|
+
// src/modules/job/dto/create-job-via-ai.dto..ts
|
|
6641
6615
|
import {
|
|
6642
6616
|
IsString as IsString23,
|
|
6643
|
-
IsNotEmpty as
|
|
6617
|
+
IsNotEmpty as IsNotEmpty43,
|
|
6644
6618
|
IsArray as IsArray3,
|
|
6645
6619
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
6646
6620
|
IsNumber as IsNumber4,
|
|
6647
6621
|
IsOptional as IsOptional22,
|
|
6648
|
-
IsEnum as
|
|
6622
|
+
IsEnum as IsEnum16,
|
|
6649
6623
|
Min as Min2,
|
|
6650
6624
|
ValidateIf as ValidateIf4,
|
|
6651
6625
|
MaxLength as MaxLength9,
|
|
6652
6626
|
Max as Max2
|
|
6653
6627
|
} from "class-validator";
|
|
6654
6628
|
import { Type as Type3 } from "class-transformer";
|
|
6655
|
-
var JobLocationEnumV2 = /* @__PURE__ */ ((
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
return
|
|
6629
|
+
var JobLocationEnumV2 = /* @__PURE__ */ ((JobLocationEnumV23) => {
|
|
6630
|
+
JobLocationEnumV23["ONSITE"] = "ONSITE";
|
|
6631
|
+
JobLocationEnumV23["REMOTE"] = "REMOTE";
|
|
6632
|
+
JobLocationEnumV23["HYBRID"] = "HYBRID";
|
|
6633
|
+
return JobLocationEnumV23;
|
|
6660
6634
|
})(JobLocationEnumV2 || {});
|
|
6661
|
-
var EmploymentTypeV2 = /* @__PURE__ */ ((
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
return
|
|
6635
|
+
var EmploymentTypeV2 = /* @__PURE__ */ ((EmploymentTypeV23) => {
|
|
6636
|
+
EmploymentTypeV23["FULLTIME"] = "FULLTIME";
|
|
6637
|
+
EmploymentTypeV23["PARTTIME"] = "PARTTIME";
|
|
6638
|
+
EmploymentTypeV23["BOTH"] = "BOTH";
|
|
6639
|
+
EmploymentTypeV23["HOURLY"] = "HOURLY";
|
|
6640
|
+
EmploymentTypeV23["FREELANCE"] = "FREELANCE";
|
|
6641
|
+
EmploymentTypeV23["FTE"] = "FTE";
|
|
6642
|
+
return EmploymentTypeV23;
|
|
6669
6643
|
})(EmploymentTypeV2 || {});
|
|
6670
|
-
var StepCompletedEnumV2 = /* @__PURE__ */ ((
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
return
|
|
6644
|
+
var StepCompletedEnumV2 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
6645
|
+
StepCompletedEnumV23["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
6646
|
+
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
6647
|
+
return StepCompletedEnumV23;
|
|
6674
6648
|
})(StepCompletedEnumV2 || {});
|
|
6675
6649
|
var JobLocationDto = class {
|
|
6676
6650
|
};
|
|
@@ -6701,7 +6675,7 @@ __decorateClass([
|
|
|
6701
6675
|
IsString23({ message: "City name must be a string" }),
|
|
6702
6676
|
MaxLength9(255, { message: "City name must not exceed 255 characters" })
|
|
6703
6677
|
], JobLocationDto.prototype, "cityName", 2);
|
|
6704
|
-
var
|
|
6678
|
+
var CreateJobViaAIDto = class {
|
|
6705
6679
|
constructor() {
|
|
6706
6680
|
this.isDraft = false;
|
|
6707
6681
|
}
|
|
@@ -6709,22 +6683,22 @@ var JobBasicInformationV2Dto = class {
|
|
|
6709
6683
|
__decorateClass([
|
|
6710
6684
|
IsOptional22(),
|
|
6711
6685
|
Type3(() => Boolean)
|
|
6712
|
-
],
|
|
6686
|
+
], CreateJobViaAIDto.prototype, "isDraft", 2);
|
|
6713
6687
|
__decorateClass([
|
|
6714
|
-
|
|
6688
|
+
IsNotEmpty43({ message: "Please enter job role" }),
|
|
6715
6689
|
IsString23({ message: "Job role must be a string" })
|
|
6716
|
-
],
|
|
6690
|
+
], CreateJobViaAIDto.prototype, "jobRole", 2);
|
|
6717
6691
|
__decorateClass([
|
|
6718
6692
|
IsOptional22()
|
|
6719
|
-
],
|
|
6693
|
+
], CreateJobViaAIDto.prototype, "jobRoleCanonicalName", 2);
|
|
6720
6694
|
__decorateClass([
|
|
6721
6695
|
IsOptional22(),
|
|
6722
6696
|
IsString23({ message: "Project name must be a string" })
|
|
6723
|
-
],
|
|
6697
|
+
], CreateJobViaAIDto.prototype, "projectName", 2);
|
|
6724
6698
|
__decorateClass([
|
|
6725
6699
|
IsOptional22(),
|
|
6726
6700
|
IsString23({ message: "Note must be a string" })
|
|
6727
|
-
],
|
|
6701
|
+
], CreateJobViaAIDto.prototype, "note", 2);
|
|
6728
6702
|
__decorateClass([
|
|
6729
6703
|
ValidateIf4((o) => !o.isDraft),
|
|
6730
6704
|
IsOptional22(),
|
|
@@ -6732,160 +6706,420 @@ __decorateClass([
|
|
|
6732
6706
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
6733
6707
|
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
6734
6708
|
Type3(() => String)
|
|
6735
|
-
],
|
|
6709
|
+
], CreateJobViaAIDto.prototype, "skills", 2);
|
|
6736
6710
|
__decorateClass([
|
|
6737
6711
|
ValidateIf4((o) => !o.isDraft),
|
|
6738
6712
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
6739
6713
|
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
6740
6714
|
IsOptional22(),
|
|
6741
6715
|
Type3(() => String)
|
|
6742
|
-
],
|
|
6716
|
+
], CreateJobViaAIDto.prototype, "goodToHaveSkills", 2);
|
|
6743
6717
|
__decorateClass([
|
|
6744
6718
|
ValidateIf4((o) => !o.isDraft),
|
|
6745
6719
|
IsNumber4({}, { message: "Openings must be a number" }),
|
|
6746
6720
|
Min2(1, { message: "There must be at least 1 opening" }),
|
|
6747
6721
|
Type3(() => Number)
|
|
6748
|
-
],
|
|
6722
|
+
], CreateJobViaAIDto.prototype, "openings", 2);
|
|
6749
6723
|
__decorateClass([
|
|
6750
6724
|
ValidateIf4((o) => !o.isDraft),
|
|
6751
|
-
|
|
6725
|
+
IsEnum16(JobLocationEnumV2, {
|
|
6752
6726
|
message: `Location must be one of: ${Object.values(JobLocationEnumV2).join(
|
|
6753
6727
|
", "
|
|
6754
6728
|
)}`
|
|
6755
6729
|
})
|
|
6756
|
-
],
|
|
6730
|
+
], CreateJobViaAIDto.prototype, "locationMode", 2);
|
|
6757
6731
|
__decorateClass([
|
|
6758
6732
|
IsOptional22(),
|
|
6759
6733
|
Type3(() => JobLocationDto)
|
|
6760
|
-
],
|
|
6734
|
+
], CreateJobViaAIDto.prototype, "locations", 2);
|
|
6761
6735
|
__decorateClass([
|
|
6762
6736
|
ValidateIf4((o) => !o.isDraft),
|
|
6763
|
-
|
|
6737
|
+
IsEnum16(EmploymentTypeV2, {
|
|
6764
6738
|
message: `Type of employment must be one of: ${Object.values(
|
|
6765
6739
|
EmploymentTypeV2
|
|
6766
6740
|
).join(", ")}`
|
|
6767
6741
|
})
|
|
6768
|
-
],
|
|
6742
|
+
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
6769
6743
|
__decorateClass([
|
|
6770
6744
|
ValidateIf4((o) => !o.isDraft),
|
|
6771
6745
|
IsString23({ message: "Currency must be a string" })
|
|
6772
|
-
],
|
|
6746
|
+
], CreateJobViaAIDto.prototype, "currency", 2);
|
|
6773
6747
|
__decorateClass([
|
|
6774
6748
|
ValidateIf4((o) => !o.isDraft),
|
|
6775
6749
|
IsNumber4({}, { message: "Expected salary (from) must be a number" }),
|
|
6776
6750
|
Min2(0, { message: "Expected salary (from) cannot be negative" }),
|
|
6777
6751
|
Type3(() => Number)
|
|
6778
|
-
],
|
|
6752
|
+
], CreateJobViaAIDto.prototype, "expectedSalaryFrom", 2);
|
|
6779
6753
|
__decorateClass([
|
|
6780
6754
|
IsOptional22()
|
|
6781
|
-
],
|
|
6755
|
+
], CreateJobViaAIDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
6782
6756
|
__decorateClass([
|
|
6783
6757
|
ValidateIf4((o) => !o.isDraft),
|
|
6784
6758
|
IsNumber4({}, { message: "Expected salary (to) must be a number" }),
|
|
6785
6759
|
Min2(0, { message: "Expected salary (to) cannot be negative" }),
|
|
6786
6760
|
Type3(() => Number)
|
|
6787
|
-
],
|
|
6761
|
+
], CreateJobViaAIDto.prototype, "expectedSalaryTo", 2);
|
|
6788
6762
|
__decorateClass([
|
|
6789
6763
|
IsOptional22()
|
|
6790
|
-
],
|
|
6764
|
+
], CreateJobViaAIDto.prototype, "hideExpectedSalaryTo", 2);
|
|
6791
6765
|
__decorateClass([
|
|
6792
6766
|
IsOptional22(),
|
|
6793
6767
|
IsNumber4({}, { message: "Expected annual budget (from) must be a number" }),
|
|
6794
6768
|
Min2(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
6795
6769
|
Type3(() => Number)
|
|
6796
|
-
],
|
|
6770
|
+
], CreateJobViaAIDto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
6797
6771
|
__decorateClass([
|
|
6798
6772
|
IsOptional22()
|
|
6799
|
-
],
|
|
6773
|
+
], CreateJobViaAIDto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
6800
6774
|
__decorateClass([
|
|
6801
6775
|
IsOptional22(),
|
|
6802
6776
|
IsNumber4({}, { message: "Expected annual budget (to) must be a number" }),
|
|
6803
6777
|
Min2(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
6804
6778
|
Type3(() => Number)
|
|
6805
|
-
],
|
|
6779
|
+
], CreateJobViaAIDto.prototype, "expectedAnnualBudgetTo", 2);
|
|
6806
6780
|
__decorateClass([
|
|
6807
6781
|
IsOptional22()
|
|
6808
|
-
],
|
|
6782
|
+
], CreateJobViaAIDto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
6809
6783
|
__decorateClass([
|
|
6810
6784
|
IsOptional22()
|
|
6811
|
-
],
|
|
6785
|
+
], CreateJobViaAIDto.prototype, "years", 2);
|
|
6812
6786
|
__decorateClass([
|
|
6813
6787
|
IsOptional22()
|
|
6814
|
-
],
|
|
6788
|
+
], CreateJobViaAIDto.prototype, "months", 2);
|
|
6815
6789
|
__decorateClass([
|
|
6816
6790
|
IsOptional22()
|
|
6817
|
-
],
|
|
6791
|
+
], CreateJobViaAIDto.prototype, "weeks", 2);
|
|
6818
6792
|
__decorateClass([
|
|
6819
6793
|
IsOptional22()
|
|
6820
|
-
],
|
|
6794
|
+
], CreateJobViaAIDto.prototype, "days", 2);
|
|
6821
6795
|
__decorateClass([
|
|
6822
6796
|
IsOptional22(),
|
|
6823
6797
|
IsNumber4({}, { message: "Number of hours must be a number" }),
|
|
6824
6798
|
Min2(0, { message: "Number of hours cannot be negative" }),
|
|
6825
6799
|
Max2(40, { message: "Number of hours cannot exceed 40" }),
|
|
6826
6800
|
Type3(() => Number)
|
|
6827
|
-
],
|
|
6801
|
+
], CreateJobViaAIDto.prototype, "numberOfHours", 2);
|
|
6828
6802
|
__decorateClass([
|
|
6829
6803
|
ValidateIf4((o) => !o.isDraft),
|
|
6830
6804
|
IsString23({ message: "Candidate communication skills must be a string" }),
|
|
6831
6805
|
IsOptional22()
|
|
6832
|
-
],
|
|
6806
|
+
], CreateJobViaAIDto.prototype, "candidateCommunicationSkills", 2);
|
|
6833
6807
|
__decorateClass([
|
|
6834
6808
|
IsOptional22(),
|
|
6835
6809
|
IsString23({ message: "Academic qualification must be a string" })
|
|
6836
|
-
],
|
|
6810
|
+
], CreateJobViaAIDto.prototype, "academicQualification", 2);
|
|
6837
6811
|
__decorateClass([
|
|
6838
6812
|
ValidateIf4((o) => !o.isDraft),
|
|
6839
|
-
|
|
6813
|
+
IsNotEmpty43({ message: "Please enter the years of experience" }),
|
|
6840
6814
|
IsString23({ message: "Years of experience must be a string" })
|
|
6841
|
-
],
|
|
6815
|
+
], CreateJobViaAIDto.prototype, "yearsOfExperienceFrom", 2);
|
|
6842
6816
|
__decorateClass([
|
|
6843
6817
|
ValidateIf4((o) => !o.isDraft),
|
|
6844
|
-
|
|
6818
|
+
IsNotEmpty43({ message: "Please enter the years of experience upto" }),
|
|
6845
6819
|
IsString23({ message: "Years of experience must be a string" })
|
|
6846
|
-
],
|
|
6820
|
+
], CreateJobViaAIDto.prototype, "yearsOfExperienceTo", 2);
|
|
6847
6821
|
__decorateClass([
|
|
6848
6822
|
IsOptional22(),
|
|
6849
6823
|
IsString23({ message: "Business industry must be a string" })
|
|
6850
|
-
],
|
|
6824
|
+
], CreateJobViaAIDto.prototype, "businessIndustry", 2);
|
|
6851
6825
|
__decorateClass([
|
|
6852
6826
|
IsOptional22(),
|
|
6853
|
-
|
|
6827
|
+
IsEnum16(StepCompletedEnumV2, {
|
|
6854
6828
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
6855
6829
|
StepCompletedEnumV2
|
|
6856
6830
|
).join(", ")}`
|
|
6857
6831
|
})
|
|
6858
|
-
],
|
|
6832
|
+
], CreateJobViaAIDto.prototype, "stepCompleted", 2);
|
|
6859
6833
|
__decorateClass([
|
|
6860
6834
|
IsOptional22(),
|
|
6861
6835
|
IsString23({ message: "Additional comment must be a string" }),
|
|
6862
6836
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6837
|
+
], CreateJobViaAIDto.prototype, "additionalComment", 2);
|
|
6838
|
+
__decorateClass([
|
|
6839
|
+
IsNotEmpty43({ message: "Please enter job description" }),
|
|
6840
|
+
IsString23({ message: "Description must be a string" }),
|
|
6841
|
+
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6842
|
+
], CreateJobViaAIDto.prototype, "description", 2);
|
|
6843
|
+
|
|
6844
|
+
// src/modules/job/dto/job-status.dto.ts
|
|
6845
|
+
import { IsEnum as IsEnum17, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
6846
|
+
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
6847
|
+
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
6848
|
+
JobStatus2["OPEN"] = "OPEN";
|
|
6849
|
+
JobStatus2["DRAFT"] = "DRAFT";
|
|
6850
|
+
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
6851
|
+
JobStatus2["CLOSED"] = "CLOSED";
|
|
6852
|
+
JobStatus2["COMPLETED"] = "COMPLETED";
|
|
6853
|
+
return JobStatus2;
|
|
6854
|
+
})(JobStatus || {});
|
|
6855
|
+
var JobStatusDto = class {
|
|
6856
|
+
};
|
|
6857
|
+
__decorateClass([
|
|
6858
|
+
IsNotEmpty44({ message: "Please provide a job status" }),
|
|
6859
|
+
IsEnum17(JobStatus, {
|
|
6860
|
+
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
6861
|
+
})
|
|
6862
|
+
], JobStatusDto.prototype, "status", 2);
|
|
6863
|
+
|
|
6864
|
+
// src/modules/job/dto/job-id-param.dto.ts
|
|
6865
|
+
import { IsUUID as IsUUID16 } from "class-validator";
|
|
6866
|
+
var JobIdParamDto = class {
|
|
6867
|
+
};
|
|
6868
|
+
__decorateClass([
|
|
6869
|
+
IsUUID16("4", {
|
|
6870
|
+
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
6871
|
+
})
|
|
6872
|
+
], JobIdParamDto.prototype, "id", 2);
|
|
6873
|
+
|
|
6874
|
+
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
6875
|
+
import {
|
|
6876
|
+
IsString as IsString24,
|
|
6877
|
+
IsNotEmpty as IsNotEmpty45,
|
|
6878
|
+
IsArray as IsArray4,
|
|
6879
|
+
ArrayNotEmpty as ArrayNotEmpty3,
|
|
6880
|
+
IsNumber as IsNumber5,
|
|
6881
|
+
IsOptional as IsOptional23,
|
|
6882
|
+
IsEnum as IsEnum18,
|
|
6883
|
+
Min as Min3,
|
|
6884
|
+
ValidateIf as ValidateIf5,
|
|
6885
|
+
MaxLength as MaxLength10,
|
|
6886
|
+
Max as Max3
|
|
6887
|
+
} from "class-validator";
|
|
6888
|
+
import { Type as Type4 } from "class-transformer";
|
|
6889
|
+
var JobLocationEnumV22 = /* @__PURE__ */ ((JobLocationEnumV23) => {
|
|
6890
|
+
JobLocationEnumV23["ONSITE"] = "ONSITE";
|
|
6891
|
+
JobLocationEnumV23["REMOTE"] = "REMOTE";
|
|
6892
|
+
JobLocationEnumV23["HYBRID"] = "HYBRID";
|
|
6893
|
+
return JobLocationEnumV23;
|
|
6894
|
+
})(JobLocationEnumV22 || {});
|
|
6895
|
+
var EmploymentTypeV22 = /* @__PURE__ */ ((EmploymentTypeV23) => {
|
|
6896
|
+
EmploymentTypeV23["FULLTIME"] = "FULLTIME";
|
|
6897
|
+
EmploymentTypeV23["PARTTIME"] = "PARTTIME";
|
|
6898
|
+
EmploymentTypeV23["BOTH"] = "BOTH";
|
|
6899
|
+
EmploymentTypeV23["HOURLY"] = "HOURLY";
|
|
6900
|
+
EmploymentTypeV23["FREELANCE"] = "FREELANCE";
|
|
6901
|
+
EmploymentTypeV23["FTE"] = "FTE";
|
|
6902
|
+
return EmploymentTypeV23;
|
|
6903
|
+
})(EmploymentTypeV22 || {});
|
|
6904
|
+
var StepCompletedEnumV22 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
6905
|
+
StepCompletedEnumV23["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
6906
|
+
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
6907
|
+
return StepCompletedEnumV23;
|
|
6908
|
+
})(StepCompletedEnumV22 || {});
|
|
6909
|
+
var JobLocationDto2 = class {
|
|
6910
|
+
};
|
|
6911
|
+
__decorateClass([
|
|
6912
|
+
IsOptional23(),
|
|
6913
|
+
Type4(() => Number)
|
|
6914
|
+
], JobLocationDto2.prototype, "countryId", 2);
|
|
6915
|
+
__decorateClass([
|
|
6916
|
+
IsOptional23(),
|
|
6917
|
+
Type4(() => Number)
|
|
6918
|
+
], JobLocationDto2.prototype, "stateId", 2);
|
|
6919
|
+
__decorateClass([
|
|
6920
|
+
IsOptional23(),
|
|
6921
|
+
Type4(() => Number)
|
|
6922
|
+
], JobLocationDto2.prototype, "cityId", 2);
|
|
6923
|
+
__decorateClass([
|
|
6924
|
+
IsOptional23(),
|
|
6925
|
+
IsString24({ message: "Country name must be a string" }),
|
|
6926
|
+
MaxLength10(255, { message: "Country name must not exceed 255 characters" })
|
|
6927
|
+
], JobLocationDto2.prototype, "countryName", 2);
|
|
6928
|
+
__decorateClass([
|
|
6929
|
+
IsOptional23(),
|
|
6930
|
+
IsString24({ message: "State name must be a string" }),
|
|
6931
|
+
MaxLength10(255, { message: "State name must not exceed 255 characters" })
|
|
6932
|
+
], JobLocationDto2.prototype, "stateName", 2);
|
|
6933
|
+
__decorateClass([
|
|
6934
|
+
IsOptional23(),
|
|
6935
|
+
IsString24({ message: "City name must be a string" }),
|
|
6936
|
+
MaxLength10(255, { message: "City name must not exceed 255 characters" })
|
|
6937
|
+
], JobLocationDto2.prototype, "cityName", 2);
|
|
6938
|
+
var JobBasicInformationV2Dto = class {
|
|
6939
|
+
constructor() {
|
|
6940
|
+
this.isDraft = false;
|
|
6941
|
+
}
|
|
6942
|
+
};
|
|
6943
|
+
__decorateClass([
|
|
6944
|
+
IsOptional23(),
|
|
6945
|
+
Type4(() => Boolean)
|
|
6946
|
+
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
6947
|
+
__decorateClass([
|
|
6948
|
+
IsNotEmpty45({ message: "Please enter job role" }),
|
|
6949
|
+
IsString24({ message: "Job role must be a string" })
|
|
6950
|
+
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
6951
|
+
__decorateClass([
|
|
6952
|
+
IsOptional23()
|
|
6953
|
+
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
6954
|
+
__decorateClass([
|
|
6955
|
+
IsOptional23(),
|
|
6956
|
+
IsString24({ message: "Project name must be a string" })
|
|
6957
|
+
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
6958
|
+
__decorateClass([
|
|
6959
|
+
IsOptional23(),
|
|
6960
|
+
IsString24({ message: "Note must be a string" })
|
|
6961
|
+
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
6962
|
+
__decorateClass([
|
|
6963
|
+
ValidateIf5((o) => !o.isDraft),
|
|
6964
|
+
IsOptional23(),
|
|
6965
|
+
IsArray4({ message: "Skills must be an array" }),
|
|
6966
|
+
ArrayNotEmpty3({ message: "Please select at least one skill" }),
|
|
6967
|
+
IsString24({ each: true, message: "Each skill must be a string" }),
|
|
6968
|
+
Type4(() => String)
|
|
6969
|
+
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
6970
|
+
__decorateClass([
|
|
6971
|
+
ValidateIf5((o) => !o.isDraft),
|
|
6972
|
+
IsArray4({ message: "Good to have skills must be an array" }),
|
|
6973
|
+
IsString24({ each: true, message: "Each skill must be a string" }),
|
|
6974
|
+
IsOptional23(),
|
|
6975
|
+
Type4(() => String)
|
|
6976
|
+
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
6977
|
+
__decorateClass([
|
|
6978
|
+
ValidateIf5((o) => !o.isDraft),
|
|
6979
|
+
IsNumber5({}, { message: "Openings must be a number" }),
|
|
6980
|
+
Min3(1, { message: "There must be at least 1 opening" }),
|
|
6981
|
+
Type4(() => Number)
|
|
6982
|
+
], JobBasicInformationV2Dto.prototype, "openings", 2);
|
|
6983
|
+
__decorateClass([
|
|
6984
|
+
ValidateIf5((o) => !o.isDraft),
|
|
6985
|
+
IsEnum18(JobLocationEnumV22, {
|
|
6986
|
+
message: `Location must be one of: ${Object.values(JobLocationEnumV22).join(
|
|
6987
|
+
", "
|
|
6988
|
+
)}`
|
|
6989
|
+
})
|
|
6990
|
+
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
6991
|
+
__decorateClass([
|
|
6992
|
+
IsOptional23(),
|
|
6993
|
+
Type4(() => JobLocationDto2)
|
|
6994
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
6995
|
+
__decorateClass([
|
|
6996
|
+
ValidateIf5((o) => !o.isDraft),
|
|
6997
|
+
IsEnum18(EmploymentTypeV22, {
|
|
6998
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
6999
|
+
EmploymentTypeV22
|
|
7000
|
+
).join(", ")}`
|
|
7001
|
+
})
|
|
7002
|
+
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7003
|
+
__decorateClass([
|
|
7004
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7005
|
+
IsString24({ message: "Currency must be a string" })
|
|
7006
|
+
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7007
|
+
__decorateClass([
|
|
7008
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7009
|
+
IsNumber5({}, { message: "Expected salary (from) must be a number" }),
|
|
7010
|
+
Min3(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7011
|
+
Type4(() => Number)
|
|
7012
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7013
|
+
__decorateClass([
|
|
7014
|
+
IsOptional23()
|
|
7015
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7016
|
+
__decorateClass([
|
|
7017
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7018
|
+
IsNumber5({}, { message: "Expected salary (to) must be a number" }),
|
|
7019
|
+
Min3(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7020
|
+
Type4(() => Number)
|
|
7021
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7022
|
+
__decorateClass([
|
|
7023
|
+
IsOptional23()
|
|
7024
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7025
|
+
__decorateClass([
|
|
7026
|
+
IsOptional23(),
|
|
7027
|
+
IsNumber5({}, { message: "Expected annual budget (from) must be a number" }),
|
|
7028
|
+
Min3(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
7029
|
+
Type4(() => Number)
|
|
7030
|
+
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
7031
|
+
__decorateClass([
|
|
7032
|
+
IsOptional23()
|
|
7033
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
7034
|
+
__decorateClass([
|
|
7035
|
+
IsOptional23(),
|
|
7036
|
+
IsNumber5({}, { message: "Expected annual budget (to) must be a number" }),
|
|
7037
|
+
Min3(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
7038
|
+
Type4(() => Number)
|
|
7039
|
+
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
7040
|
+
__decorateClass([
|
|
7041
|
+
IsOptional23()
|
|
7042
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
7043
|
+
__decorateClass([
|
|
7044
|
+
IsOptional23()
|
|
7045
|
+
], JobBasicInformationV2Dto.prototype, "years", 2);
|
|
7046
|
+
__decorateClass([
|
|
7047
|
+
IsOptional23()
|
|
7048
|
+
], JobBasicInformationV2Dto.prototype, "months", 2);
|
|
7049
|
+
__decorateClass([
|
|
7050
|
+
IsOptional23()
|
|
7051
|
+
], JobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7052
|
+
__decorateClass([
|
|
7053
|
+
IsOptional23()
|
|
7054
|
+
], JobBasicInformationV2Dto.prototype, "days", 2);
|
|
7055
|
+
__decorateClass([
|
|
7056
|
+
IsOptional23(),
|
|
7057
|
+
IsNumber5({}, { message: "Number of hours must be a number" }),
|
|
7058
|
+
Min3(0, { message: "Number of hours cannot be negative" }),
|
|
7059
|
+
Max3(40, { message: "Number of hours cannot exceed 40" }),
|
|
7060
|
+
Type4(() => Number)
|
|
7061
|
+
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7062
|
+
__decorateClass([
|
|
7063
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7064
|
+
IsString24({ message: "Candidate communication skills must be a string" }),
|
|
7065
|
+
IsOptional23()
|
|
7066
|
+
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7067
|
+
__decorateClass([
|
|
7068
|
+
IsOptional23(),
|
|
7069
|
+
IsString24({ message: "Academic qualification must be a string" })
|
|
7070
|
+
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7071
|
+
__decorateClass([
|
|
7072
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7073
|
+
IsNotEmpty45({ message: "Please enter the years of experience" }),
|
|
7074
|
+
IsString24({ message: "Years of experience must be a string" })
|
|
7075
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7076
|
+
__decorateClass([
|
|
7077
|
+
ValidateIf5((o) => !o.isDraft),
|
|
7078
|
+
IsNotEmpty45({ message: "Please enter the years of experience upto" }),
|
|
7079
|
+
IsString24({ message: "Years of experience must be a string" })
|
|
7080
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7081
|
+
__decorateClass([
|
|
7082
|
+
IsOptional23(),
|
|
7083
|
+
IsString24({ message: "Business industry must be a string" })
|
|
7084
|
+
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7085
|
+
__decorateClass([
|
|
7086
|
+
IsOptional23(),
|
|
7087
|
+
IsEnum18(StepCompletedEnumV22, {
|
|
7088
|
+
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
7089
|
+
StepCompletedEnumV22
|
|
7090
|
+
).join(", ")}`
|
|
7091
|
+
})
|
|
7092
|
+
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
7093
|
+
__decorateClass([
|
|
7094
|
+
IsOptional23(),
|
|
7095
|
+
IsString24({ message: "Additional comment must be a string" }),
|
|
7096
|
+
MaxLength10(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6863
7097
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
6864
7098
|
|
|
6865
7099
|
// src/modules/job/dto/close-job.dto.ts
|
|
6866
|
-
import { IsOptional as
|
|
7100
|
+
import { IsOptional as IsOptional24, IsString as IsString25 } from "class-validator";
|
|
6867
7101
|
var CloseJobDto = class {
|
|
6868
7102
|
};
|
|
6869
7103
|
__decorateClass([
|
|
6870
|
-
|
|
6871
|
-
|
|
7104
|
+
IsOptional24(),
|
|
7105
|
+
IsString25()
|
|
6872
7106
|
], CloseJobDto.prototype, "reason", 2);
|
|
6873
7107
|
|
|
6874
7108
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
6875
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
7109
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty46, IsOptional as IsOptional25, IsString as IsString26 } from "class-validator";
|
|
6876
7110
|
var CreateJobApplicationDto = class {
|
|
6877
7111
|
};
|
|
6878
7112
|
__decorateClass([
|
|
6879
|
-
|
|
6880
|
-
|
|
7113
|
+
IsNotEmpty46({ message: "Job ID is required" }),
|
|
7114
|
+
IsString26({ message: "Job ID must be a string" })
|
|
6881
7115
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
6882
7116
|
__decorateClass([
|
|
6883
|
-
|
|
7117
|
+
IsOptional25(),
|
|
6884
7118
|
IsBoolean3({ message: "isCta must be a boolean" })
|
|
6885
7119
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
6886
7120
|
|
|
6887
7121
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
6888
|
-
import { IsEnum as
|
|
7122
|
+
import { IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty47 } from "class-validator";
|
|
6889
7123
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
6890
7124
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
6891
7125
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -6897,24 +7131,24 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
6897
7131
|
var ChangeJobApplicationStatusDto = class {
|
|
6898
7132
|
};
|
|
6899
7133
|
__decorateClass([
|
|
6900
|
-
|
|
6901
|
-
|
|
7134
|
+
IsNotEmpty47({ message: "Status is required" }),
|
|
7135
|
+
IsEnum19(JobApplicationStatus, {
|
|
6902
7136
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
6903
7137
|
})
|
|
6904
7138
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
6905
7139
|
|
|
6906
7140
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
6907
|
-
import { ArrayNotEmpty as
|
|
7141
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty48, IsNumber as IsNumber6 } from "class-validator";
|
|
6908
7142
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
6909
7143
|
};
|
|
6910
7144
|
__decorateClass([
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
7145
|
+
IsArray5({ message: "Job application IDs must be an array" }),
|
|
7146
|
+
ArrayNotEmpty4({ message: "At least one job application ID is required" }),
|
|
7147
|
+
IsNumber6({}, { each: true, message: "Each job application ID must be a number" })
|
|
6914
7148
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
6915
7149
|
__decorateClass([
|
|
6916
|
-
|
|
6917
|
-
|
|
7150
|
+
IsNotEmpty48({ message: "Status is required" }),
|
|
7151
|
+
IsEnum20(JobApplicationStatus, {
|
|
6918
7152
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
6919
7153
|
})
|
|
6920
7154
|
], ChangeJobApplicationStatusBulkDto.prototype, "status", 2);
|
|
@@ -6962,23 +7196,23 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
6962
7196
|
|
|
6963
7197
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
6964
7198
|
import {
|
|
6965
|
-
IsString as
|
|
6966
|
-
IsNotEmpty as
|
|
6967
|
-
MaxLength as
|
|
7199
|
+
IsString as IsString27,
|
|
7200
|
+
IsNotEmpty as IsNotEmpty49,
|
|
7201
|
+
MaxLength as MaxLength11,
|
|
6968
7202
|
MinLength as MinLength8,
|
|
6969
7203
|
Matches as Matches8
|
|
6970
7204
|
} from "class-validator";
|
|
6971
7205
|
var FreelancerChangePasswordDto = class {
|
|
6972
7206
|
};
|
|
6973
7207
|
__decorateClass([
|
|
6974
|
-
|
|
6975
|
-
|
|
7208
|
+
IsNotEmpty49({ message: "Please enter Old Password." }),
|
|
7209
|
+
IsString27()
|
|
6976
7210
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
6977
7211
|
__decorateClass([
|
|
6978
|
-
|
|
6979
|
-
|
|
7212
|
+
IsNotEmpty49({ message: "Please enter New Password." }),
|
|
7213
|
+
IsString27(),
|
|
6980
7214
|
MinLength8(6),
|
|
6981
|
-
|
|
7215
|
+
MaxLength11(32),
|
|
6982
7216
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6983
7217
|
message: "New Password must include letters, numbers and symbols."
|
|
6984
7218
|
})
|
|
@@ -6986,13 +7220,13 @@ __decorateClass([
|
|
|
6986
7220
|
|
|
6987
7221
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
6988
7222
|
import {
|
|
6989
|
-
IsOptional as
|
|
6990
|
-
IsString as
|
|
7223
|
+
IsOptional as IsOptional26,
|
|
7224
|
+
IsString as IsString28,
|
|
6991
7225
|
IsEmail as IsEmail7,
|
|
6992
|
-
IsNumber as
|
|
6993
|
-
IsEnum as
|
|
6994
|
-
IsNotEmpty as
|
|
6995
|
-
ValidateIf as
|
|
7226
|
+
IsNumber as IsNumber7,
|
|
7227
|
+
IsEnum as IsEnum21,
|
|
7228
|
+
IsNotEmpty as IsNotEmpty50,
|
|
7229
|
+
ValidateIf as ValidateIf6,
|
|
6996
7230
|
IsInt
|
|
6997
7231
|
} from "class-validator";
|
|
6998
7232
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
@@ -7010,150 +7244,150 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
7010
7244
|
var UpdateFreelancerProfileDto = class {
|
|
7011
7245
|
};
|
|
7012
7246
|
__decorateClass([
|
|
7013
|
-
|
|
7014
|
-
|
|
7247
|
+
IsNotEmpty50({ message: "Please enter first name." }),
|
|
7248
|
+
IsString28({ message: "Please enter valid first name." })
|
|
7015
7249
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
7016
7250
|
__decorateClass([
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7251
|
+
IsOptional26(),
|
|
7252
|
+
IsNotEmpty50({ message: "Please enter last name." }),
|
|
7253
|
+
IsString28({ message: "Please enter valid last name." })
|
|
7020
7254
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
7021
7255
|
__decorateClass([
|
|
7022
|
-
|
|
7023
|
-
|
|
7256
|
+
IsNotEmpty50({ message: "Please enter designation." }),
|
|
7257
|
+
IsString28({ message: "Please enter valid designation." })
|
|
7024
7258
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
7025
7259
|
__decorateClass([
|
|
7026
|
-
|
|
7027
|
-
|
|
7260
|
+
IsNotEmpty50({ message: "Please enter experience." }),
|
|
7261
|
+
IsString28({ message: "Please enter valid experience." })
|
|
7028
7262
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
7029
7263
|
__decorateClass([
|
|
7030
|
-
|
|
7264
|
+
IsNotEmpty50({ message: "Please enter email id." }),
|
|
7031
7265
|
IsEmail7()
|
|
7032
7266
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
7033
7267
|
__decorateClass([
|
|
7034
|
-
|
|
7035
|
-
|
|
7268
|
+
IsNotEmpty50({ message: "Please enter mobile code." }),
|
|
7269
|
+
IsString28({ message: "Please enter valid mobile code." })
|
|
7036
7270
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
7037
7271
|
__decorateClass([
|
|
7038
|
-
|
|
7039
|
-
|
|
7272
|
+
IsNotEmpty50({ message: "Please enter mobile number." }),
|
|
7273
|
+
IsString28({ message: "Please enter valid mobile number." })
|
|
7040
7274
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
7041
7275
|
__decorateClass([
|
|
7042
|
-
|
|
7043
|
-
|
|
7276
|
+
IsOptional26(),
|
|
7277
|
+
IsNumber7()
|
|
7044
7278
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
7045
7279
|
__decorateClass([
|
|
7046
|
-
|
|
7047
|
-
|
|
7280
|
+
IsOptional26(),
|
|
7281
|
+
IsNumber7()
|
|
7048
7282
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
7049
7283
|
__decorateClass([
|
|
7050
|
-
|
|
7051
|
-
|
|
7284
|
+
IsOptional26(),
|
|
7285
|
+
IsNumber7()
|
|
7052
7286
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
7053
7287
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
7054
7288
|
__decorateClass([
|
|
7055
|
-
|
|
7056
|
-
|
|
7289
|
+
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7290
|
+
IsNotEmpty50({ message: "Please enter expected hourly compensation." })
|
|
7057
7291
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
7058
7292
|
__decorateClass([
|
|
7059
|
-
|
|
7060
|
-
|
|
7293
|
+
ValidateIf6((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7294
|
+
IsNotEmpty50({ message: "Please enter expected annual compensation." })
|
|
7061
7295
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
7062
7296
|
__decorateClass([
|
|
7063
|
-
|
|
7297
|
+
ValidateIf6((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7064
7298
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7065
|
-
|
|
7299
|
+
IsNotEmpty50({ message: "Please enter weekly availability hours" })
|
|
7066
7300
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
7067
7301
|
__decorateClass([
|
|
7068
|
-
|
|
7069
|
-
|
|
7302
|
+
IsNotEmpty50({ message: "Please select engagement type." }),
|
|
7303
|
+
IsEnum21(NatureOfWorkDto, {
|
|
7070
7304
|
message: `Engagement Type must be one of: ${Object.values(
|
|
7071
7305
|
NatureOfWorkDto
|
|
7072
7306
|
).join(", ")}`
|
|
7073
7307
|
})
|
|
7074
7308
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
7075
7309
|
__decorateClass([
|
|
7076
|
-
|
|
7077
|
-
|
|
7310
|
+
IsNotEmpty50({ message: "Please select mode of work." }),
|
|
7311
|
+
IsEnum21(ModeOfWorkDto, {
|
|
7078
7312
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
7079
7313
|
", "
|
|
7080
7314
|
)}`
|
|
7081
7315
|
})
|
|
7082
7316
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
7083
7317
|
__decorateClass([
|
|
7084
|
-
|
|
7085
|
-
|
|
7318
|
+
IsOptional26(),
|
|
7319
|
+
IsString28()
|
|
7086
7320
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
7087
7321
|
__decorateClass([
|
|
7088
|
-
|
|
7089
|
-
|
|
7322
|
+
IsNotEmpty50({ message: "Please enter address." }),
|
|
7323
|
+
IsString28()
|
|
7090
7324
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
7091
7325
|
__decorateClass([
|
|
7092
|
-
|
|
7093
|
-
|
|
7326
|
+
IsOptional26(),
|
|
7327
|
+
IsString28()
|
|
7094
7328
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
7095
7329
|
__decorateClass([
|
|
7096
|
-
|
|
7097
|
-
|
|
7330
|
+
IsNotEmpty50({ message: "Please enter postalCode." }),
|
|
7331
|
+
IsString28()
|
|
7098
7332
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
7099
7333
|
__decorateClass([
|
|
7100
|
-
|
|
7101
|
-
|
|
7334
|
+
IsOptional26(),
|
|
7335
|
+
IsString28()
|
|
7102
7336
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
7103
7337
|
__decorateClass([
|
|
7104
|
-
|
|
7105
|
-
|
|
7338
|
+
IsOptional26(),
|
|
7339
|
+
IsString28()
|
|
7106
7340
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
7107
7341
|
__decorateClass([
|
|
7108
|
-
|
|
7109
|
-
|
|
7342
|
+
IsOptional26(),
|
|
7343
|
+
IsString28()
|
|
7110
7344
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
7111
7345
|
__decorateClass([
|
|
7112
|
-
|
|
7113
|
-
|
|
7346
|
+
IsOptional26(),
|
|
7347
|
+
IsString28()
|
|
7114
7348
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
7115
7349
|
__decorateClass([
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
7350
|
+
IsOptional26(),
|
|
7351
|
+
IsString28()
|
|
7352
|
+
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
7119
7353
|
__decorateClass([
|
|
7120
|
-
|
|
7121
|
-
|
|
7354
|
+
IsOptional26(),
|
|
7355
|
+
IsString28()
|
|
7122
7356
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
7123
7357
|
|
|
7124
7358
|
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
7125
|
-
import { IsNotEmpty as
|
|
7359
|
+
import { IsNotEmpty as IsNotEmpty51, IsUUID as IsUUID17 } from "class-validator";
|
|
7126
7360
|
var FreelancerESignatureDto = class {
|
|
7127
7361
|
};
|
|
7128
7362
|
__decorateClass([
|
|
7129
7363
|
IsUUID17("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
7130
|
-
|
|
7364
|
+
IsNotEmpty51({ message: "Freelancer UUID is required." })
|
|
7131
7365
|
], FreelancerESignatureDto.prototype, "uuid", 2);
|
|
7132
7366
|
|
|
7133
7367
|
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
7134
|
-
import { IsNotEmpty as
|
|
7368
|
+
import { IsNotEmpty as IsNotEmpty52, IsNumber as IsNumber8 } from "class-validator";
|
|
7135
7369
|
var FetchClientInfoForChatDto = class {
|
|
7136
7370
|
};
|
|
7137
7371
|
__decorateClass([
|
|
7138
|
-
|
|
7139
|
-
|
|
7372
|
+
IsNotEmpty52({ message: "Client ID is required" }),
|
|
7373
|
+
IsNumber8({}, { message: "Client ID must be a number" })
|
|
7140
7374
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
7141
7375
|
|
|
7142
7376
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
7143
|
-
import { IsNotEmpty as
|
|
7377
|
+
import { IsNotEmpty as IsNotEmpty53, IsString as IsString29, IsOptional as IsOptional27, IsObject as IsObject4 } from "class-validator";
|
|
7144
7378
|
var CaptureAiAssessmentResultDto = class {
|
|
7145
7379
|
};
|
|
7146
7380
|
__decorateClass([
|
|
7147
|
-
|
|
7148
|
-
|
|
7381
|
+
IsNotEmpty53({ message: "AI Assessment UUID is required" }),
|
|
7382
|
+
IsString29({ message: "AI Assessment UUID must be a string" })
|
|
7149
7383
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
7150
7384
|
__decorateClass([
|
|
7151
|
-
|
|
7385
|
+
IsOptional27(),
|
|
7152
7386
|
IsObject4()
|
|
7153
7387
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
7154
7388
|
__decorateClass([
|
|
7155
|
-
|
|
7156
|
-
|
|
7389
|
+
IsOptional27(),
|
|
7390
|
+
IsString29()
|
|
7157
7391
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7158
7392
|
|
|
7159
7393
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -7168,11 +7402,11 @@ var BANK_PATTERN = {
|
|
|
7168
7402
|
|
|
7169
7403
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7170
7404
|
import {
|
|
7171
|
-
IsEnum as
|
|
7172
|
-
IsNotEmpty as
|
|
7173
|
-
IsOptional as
|
|
7174
|
-
IsString as
|
|
7175
|
-
ValidateIf as
|
|
7405
|
+
IsEnum as IsEnum22,
|
|
7406
|
+
IsNotEmpty as IsNotEmpty54,
|
|
7407
|
+
IsOptional as IsOptional28,
|
|
7408
|
+
IsString as IsString30,
|
|
7409
|
+
ValidateIf as ValidateIf7
|
|
7176
7410
|
} from "class-validator";
|
|
7177
7411
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
7178
7412
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
@@ -7182,51 +7416,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7182
7416
|
var FreelancerBankDetailsDto = class {
|
|
7183
7417
|
};
|
|
7184
7418
|
__decorateClass([
|
|
7185
|
-
|
|
7419
|
+
IsNotEmpty54({ message: "Please enter Account Holder Name." })
|
|
7186
7420
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7187
7421
|
__decorateClass([
|
|
7188
|
-
|
|
7422
|
+
IsNotEmpty54({ message: "Please enter Mobile Code." })
|
|
7189
7423
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7190
7424
|
__decorateClass([
|
|
7191
|
-
|
|
7425
|
+
IsNotEmpty54({ message: "Please enter Mobile Number." })
|
|
7192
7426
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7193
7427
|
__decorateClass([
|
|
7194
|
-
|
|
7428
|
+
IsNotEmpty54({ message: "Please enter Email." })
|
|
7195
7429
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7196
7430
|
__decorateClass([
|
|
7197
|
-
|
|
7431
|
+
IsOptional28()
|
|
7198
7432
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7199
7433
|
__decorateClass([
|
|
7200
|
-
|
|
7434
|
+
IsNotEmpty54({ message: "Please enter Account Number." })
|
|
7201
7435
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7202
7436
|
__decorateClass([
|
|
7203
|
-
|
|
7437
|
+
IsNotEmpty54({ message: "Please enter Bank Name." })
|
|
7204
7438
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7205
7439
|
__decorateClass([
|
|
7206
|
-
|
|
7207
|
-
|
|
7440
|
+
IsOptional28(),
|
|
7441
|
+
IsString30()
|
|
7208
7442
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7209
7443
|
__decorateClass([
|
|
7210
|
-
|
|
7211
|
-
|
|
7444
|
+
ValidateIf7((dto) => dto.accountScope === "DOMESTIC"),
|
|
7445
|
+
IsNotEmpty54({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7212
7446
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7213
7447
|
__decorateClass([
|
|
7214
|
-
|
|
7215
|
-
|
|
7448
|
+
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7449
|
+
IsNotEmpty54({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7216
7450
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7217
7451
|
__decorateClass([
|
|
7218
|
-
|
|
7219
|
-
|
|
7452
|
+
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7453
|
+
IsNotEmpty54({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7220
7454
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7221
7455
|
__decorateClass([
|
|
7222
|
-
|
|
7223
|
-
|
|
7456
|
+
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7457
|
+
IsNotEmpty54({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7224
7458
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7225
7459
|
__decorateClass([
|
|
7226
|
-
|
|
7460
|
+
IsOptional28()
|
|
7227
7461
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
7228
7462
|
__decorateClass([
|
|
7229
|
-
|
|
7463
|
+
IsEnum22(BankAccountScope, {
|
|
7230
7464
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
7231
7465
|
BankAccountScope
|
|
7232
7466
|
).join(", ")}`
|
|
@@ -7248,7 +7482,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
7248
7482
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
7249
7483
|
import {
|
|
7250
7484
|
IsBoolean as IsBoolean4,
|
|
7251
|
-
IsEnum as
|
|
7485
|
+
IsEnum as IsEnum23
|
|
7252
7486
|
} from "class-validator";
|
|
7253
7487
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
7254
7488
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -7261,7 +7495,7 @@ __decorateClass([
|
|
|
7261
7495
|
IsBoolean4()
|
|
7262
7496
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
7263
7497
|
__decorateClass([
|
|
7264
|
-
|
|
7498
|
+
IsEnum23(SystemPreferenceKey, {
|
|
7265
7499
|
message: `key must be one of: ${Object.values(
|
|
7266
7500
|
SystemPreferenceKey
|
|
7267
7501
|
).join(", ")}`
|
|
@@ -7276,40 +7510,40 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7276
7510
|
|
|
7277
7511
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7278
7512
|
import {
|
|
7279
|
-
IsString as
|
|
7280
|
-
IsNotEmpty as
|
|
7281
|
-
MaxLength as
|
|
7513
|
+
IsString as IsString31,
|
|
7514
|
+
IsNotEmpty as IsNotEmpty55,
|
|
7515
|
+
MaxLength as MaxLength12
|
|
7282
7516
|
} from "class-validator";
|
|
7283
7517
|
var AddGlobalSettingDto = class {
|
|
7284
7518
|
};
|
|
7285
7519
|
__decorateClass([
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7520
|
+
IsNotEmpty55({ message: "Key is required" }),
|
|
7521
|
+
IsString31({ message: "Key must be a string" }),
|
|
7522
|
+
MaxLength12(255, { message: "Key must not exceed 255 characters" })
|
|
7289
7523
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7290
7524
|
__decorateClass([
|
|
7291
|
-
|
|
7292
|
-
|
|
7525
|
+
IsNotEmpty55({ message: "Value is required" }),
|
|
7526
|
+
IsString31({ message: "Value must be a string" })
|
|
7293
7527
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7294
7528
|
|
|
7295
7529
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7296
7530
|
import {
|
|
7297
|
-
IsString as
|
|
7298
|
-
IsNotEmpty as
|
|
7531
|
+
IsString as IsString32,
|
|
7532
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7299
7533
|
IsUUID as IsUUID18,
|
|
7300
|
-
ValidateIf as
|
|
7534
|
+
ValidateIf as ValidateIf8
|
|
7301
7535
|
} from "class-validator";
|
|
7302
7536
|
var RemoveGlobalSettingDto = class {
|
|
7303
7537
|
};
|
|
7304
7538
|
__decorateClass([
|
|
7305
|
-
|
|
7306
|
-
|
|
7539
|
+
ValidateIf8((o) => !o.key),
|
|
7540
|
+
IsNotEmpty56({ message: "Either uuid or key is required" }),
|
|
7307
7541
|
IsUUID18("4", { message: "UUID must be a valid UUID" })
|
|
7308
7542
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7309
7543
|
__decorateClass([
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7544
|
+
ValidateIf8((o) => !o.uuid),
|
|
7545
|
+
IsNotEmpty56({ message: "Either uuid or key is required" }),
|
|
7546
|
+
IsString32({ message: "Key must be a string" })
|
|
7313
7547
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7314
7548
|
|
|
7315
7549
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7354,28 +7588,28 @@ var EMAIL_PATTERN = {
|
|
|
7354
7588
|
};
|
|
7355
7589
|
|
|
7356
7590
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7357
|
-
import { IsOptional as
|
|
7591
|
+
import { IsOptional as IsOptional29, IsString as IsString33, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
7358
7592
|
var TestNotificationDto = class {
|
|
7359
7593
|
};
|
|
7360
7594
|
__decorateClass([
|
|
7361
|
-
|
|
7595
|
+
IsOptional29(),
|
|
7362
7596
|
IsEmail8({}, { message: "Email must be valid" })
|
|
7363
7597
|
], TestNotificationDto.prototype, "email", 2);
|
|
7364
7598
|
__decorateClass([
|
|
7365
|
-
|
|
7599
|
+
IsOptional29(),
|
|
7366
7600
|
IsPhoneNumber()
|
|
7367
7601
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7368
7602
|
__decorateClass([
|
|
7369
|
-
|
|
7370
|
-
|
|
7603
|
+
IsOptional29(),
|
|
7604
|
+
IsString33()
|
|
7371
7605
|
], TestNotificationDto.prototype, "message", 2);
|
|
7372
7606
|
__decorateClass([
|
|
7373
|
-
|
|
7607
|
+
IsOptional29(),
|
|
7374
7608
|
IsObject5()
|
|
7375
7609
|
], TestNotificationDto.prototype, "data", 2);
|
|
7376
7610
|
__decorateClass([
|
|
7377
|
-
|
|
7378
|
-
|
|
7611
|
+
IsOptional29(),
|
|
7612
|
+
IsString33()
|
|
7379
7613
|
], TestNotificationDto.prototype, "type", 2);
|
|
7380
7614
|
|
|
7381
7615
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7387,103 +7621,103 @@ var RATING_PATTERN = {
|
|
|
7387
7621
|
|
|
7388
7622
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
7389
7623
|
import {
|
|
7390
|
-
IsEnum as
|
|
7624
|
+
IsEnum as IsEnum24,
|
|
7391
7625
|
IsInt as IsInt2,
|
|
7392
|
-
IsNotEmpty as
|
|
7393
|
-
IsOptional as
|
|
7394
|
-
IsString as
|
|
7395
|
-
IsNumber as
|
|
7396
|
-
Min as
|
|
7397
|
-
Max as
|
|
7626
|
+
IsNotEmpty as IsNotEmpty57,
|
|
7627
|
+
IsOptional as IsOptional30,
|
|
7628
|
+
IsString as IsString34,
|
|
7629
|
+
IsNumber as IsNumber9,
|
|
7630
|
+
Min as Min4,
|
|
7631
|
+
Max as Max4
|
|
7398
7632
|
} from "class-validator";
|
|
7399
7633
|
var CreateRatingDto = class {
|
|
7400
7634
|
};
|
|
7401
7635
|
__decorateClass([
|
|
7402
|
-
|
|
7636
|
+
IsOptional30(),
|
|
7403
7637
|
IsInt2({ message: "Reviewee ID must be a valid integer" })
|
|
7404
7638
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
7405
7639
|
__decorateClass([
|
|
7406
|
-
|
|
7640
|
+
IsOptional30(),
|
|
7407
7641
|
IsInt2({ message: "Reviewer ID must be a valid integer" })
|
|
7408
7642
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7409
7643
|
__decorateClass([
|
|
7410
7644
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7411
|
-
|
|
7645
|
+
IsNotEmpty57({ message: "Job ID is required" })
|
|
7412
7646
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7413
7647
|
__decorateClass([
|
|
7414
|
-
|
|
7648
|
+
IsEnum24(RatingTypeEnum, {
|
|
7415
7649
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
7416
7650
|
})
|
|
7417
7651
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7418
7652
|
__decorateClass([
|
|
7419
|
-
|
|
7420
|
-
|
|
7653
|
+
IsOptional30(),
|
|
7654
|
+
IsString34({ message: "Reviewer comment must be a string" })
|
|
7421
7655
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7422
7656
|
__decorateClass([
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7657
|
+
IsOptional30(),
|
|
7658
|
+
IsNumber9(),
|
|
7659
|
+
Min4(0),
|
|
7660
|
+
Max4(5)
|
|
7427
7661
|
], CreateRatingDto.prototype, "overallExperience", 2);
|
|
7428
7662
|
__decorateClass([
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7663
|
+
IsOptional30(),
|
|
7664
|
+
IsNumber9(),
|
|
7665
|
+
Min4(0),
|
|
7666
|
+
Max4(5)
|
|
7433
7667
|
], CreateRatingDto.prototype, "workQuality", 2);
|
|
7434
7668
|
__decorateClass([
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7669
|
+
IsOptional30(),
|
|
7670
|
+
IsNumber9(),
|
|
7671
|
+
Min4(0),
|
|
7672
|
+
Max4(5)
|
|
7439
7673
|
], CreateRatingDto.prototype, "oneTimeDelivery", 2);
|
|
7440
7674
|
__decorateClass([
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7675
|
+
IsOptional30(),
|
|
7676
|
+
IsNumber9(),
|
|
7677
|
+
Min4(0),
|
|
7678
|
+
Max4(5)
|
|
7445
7679
|
], CreateRatingDto.prototype, "understaning", 2);
|
|
7446
7680
|
__decorateClass([
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7681
|
+
IsOptional30(),
|
|
7682
|
+
IsNumber9(),
|
|
7683
|
+
Min4(0),
|
|
7684
|
+
Max4(5)
|
|
7451
7685
|
], CreateRatingDto.prototype, "communication", 2);
|
|
7452
7686
|
__decorateClass([
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7687
|
+
IsOptional30(),
|
|
7688
|
+
IsNumber9(),
|
|
7689
|
+
Min4(0),
|
|
7690
|
+
Max4(5)
|
|
7457
7691
|
], CreateRatingDto.prototype, "skillUtilized", 2);
|
|
7458
7692
|
__decorateClass([
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7693
|
+
IsOptional30(),
|
|
7694
|
+
IsNumber9(),
|
|
7695
|
+
Min4(0),
|
|
7696
|
+
Max4(5)
|
|
7463
7697
|
], CreateRatingDto.prototype, "communicationClarity", 2);
|
|
7464
7698
|
__decorateClass([
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7699
|
+
IsOptional30(),
|
|
7700
|
+
IsNumber9(),
|
|
7701
|
+
Min4(0),
|
|
7702
|
+
Max4(5)
|
|
7469
7703
|
], CreateRatingDto.prototype, "requirementsClarity", 2);
|
|
7470
7704
|
__decorateClass([
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7705
|
+
IsOptional30(),
|
|
7706
|
+
IsNumber9(),
|
|
7707
|
+
Min4(0),
|
|
7708
|
+
Max4(5)
|
|
7475
7709
|
], CreateRatingDto.prototype, "responsiveness", 2);
|
|
7476
7710
|
__decorateClass([
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7711
|
+
IsOptional30(),
|
|
7712
|
+
IsNumber9(),
|
|
7713
|
+
Min4(0),
|
|
7714
|
+
Max4(5)
|
|
7481
7715
|
], CreateRatingDto.prototype, "paymentPromptness", 2);
|
|
7482
7716
|
__decorateClass([
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7717
|
+
IsOptional30(),
|
|
7718
|
+
IsNumber9(),
|
|
7719
|
+
Min4(0),
|
|
7720
|
+
Max4(5)
|
|
7487
7721
|
], CreateRatingDto.prototype, "responsibilitiesAndExpectations", 2);
|
|
7488
7722
|
|
|
7489
7723
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -7499,48 +7733,48 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7499
7733
|
};
|
|
7500
7734
|
|
|
7501
7735
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7502
|
-
import { ArrayNotEmpty as
|
|
7736
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty58, IsOptional as IsOptional31 } from "class-validator";
|
|
7503
7737
|
var CreateCompanyRoleDto = class {
|
|
7504
7738
|
};
|
|
7505
7739
|
__decorateClass([
|
|
7506
|
-
|
|
7740
|
+
IsNotEmpty58({ message: "Please enter company role name." })
|
|
7507
7741
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7508
7742
|
__decorateClass([
|
|
7509
|
-
|
|
7743
|
+
IsNotEmpty58({ message: "Please enter company role slug" })
|
|
7510
7744
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7511
7745
|
__decorateClass([
|
|
7512
|
-
|
|
7746
|
+
IsNotEmpty58({ message: "Please enter description" })
|
|
7513
7747
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7514
7748
|
__decorateClass([
|
|
7515
|
-
|
|
7516
|
-
|
|
7749
|
+
IsArray6({ message: "Permission IDs must be an array." }),
|
|
7750
|
+
ArrayNotEmpty5({ message: "Please select at least one permission." }),
|
|
7517
7751
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
7518
7752
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7519
7753
|
__decorateClass([
|
|
7520
|
-
|
|
7754
|
+
IsOptional31(),
|
|
7521
7755
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
7522
7756
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7523
7757
|
|
|
7524
7758
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7525
|
-
import { ArrayNotEmpty as
|
|
7759
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty59, IsOptional as IsOptional32 } from "class-validator";
|
|
7526
7760
|
var UpdateCompanyRoleDto = class {
|
|
7527
7761
|
};
|
|
7528
7762
|
__decorateClass([
|
|
7529
|
-
|
|
7763
|
+
IsNotEmpty59({ message: "Please enter company name." })
|
|
7530
7764
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7531
7765
|
__decorateClass([
|
|
7532
|
-
|
|
7766
|
+
IsNotEmpty59({ message: "Please enter slug" })
|
|
7533
7767
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7534
7768
|
__decorateClass([
|
|
7535
|
-
|
|
7769
|
+
IsNotEmpty59({ message: "Please enter description" })
|
|
7536
7770
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7537
7771
|
__decorateClass([
|
|
7538
|
-
|
|
7539
|
-
|
|
7772
|
+
IsArray7({ message: "Permission IDs must be an array." }),
|
|
7773
|
+
ArrayNotEmpty6({ message: "Please select at least one permission." }),
|
|
7540
7774
|
IsInt4({ each: true, message: "Each permission ID must be an integer." })
|
|
7541
7775
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7542
7776
|
__decorateClass([
|
|
7543
|
-
|
|
7777
|
+
IsOptional32(),
|
|
7544
7778
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
7545
7779
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
7546
7780
|
|
|
@@ -7561,41 +7795,41 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7561
7795
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7562
7796
|
import {
|
|
7563
7797
|
ArrayMinSize,
|
|
7564
|
-
IsNotEmpty as
|
|
7565
|
-
IsOptional as
|
|
7566
|
-
IsString as
|
|
7567
|
-
MaxLength as
|
|
7568
|
-
ValidateNested as
|
|
7798
|
+
IsNotEmpty as IsNotEmpty60,
|
|
7799
|
+
IsOptional as IsOptional33,
|
|
7800
|
+
IsString as IsString37,
|
|
7801
|
+
MaxLength as MaxLength14,
|
|
7802
|
+
ValidateNested as ValidateNested3
|
|
7569
7803
|
} from "class-validator";
|
|
7570
|
-
import { Type as
|
|
7804
|
+
import { Type as Type5 } from "class-transformer";
|
|
7571
7805
|
var ExperienceDto = class {
|
|
7572
7806
|
};
|
|
7573
7807
|
__decorateClass([
|
|
7574
|
-
|
|
7808
|
+
IsOptional33()
|
|
7575
7809
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7576
7810
|
__decorateClass([
|
|
7577
|
-
|
|
7578
|
-
|
|
7811
|
+
IsNotEmpty60(),
|
|
7812
|
+
IsString37()
|
|
7579
7813
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7580
7814
|
__decorateClass([
|
|
7581
|
-
|
|
7582
|
-
|
|
7815
|
+
IsNotEmpty60(),
|
|
7816
|
+
IsString37()
|
|
7583
7817
|
], ExperienceDto.prototype, "designation", 2);
|
|
7584
7818
|
__decorateClass([
|
|
7585
|
-
|
|
7586
|
-
|
|
7819
|
+
IsNotEmpty60(),
|
|
7820
|
+
IsString37()
|
|
7587
7821
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7588
7822
|
__decorateClass([
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7823
|
+
IsOptional33(),
|
|
7824
|
+
IsString37(),
|
|
7825
|
+
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7592
7826
|
], ExperienceDto.prototype, "description", 2);
|
|
7593
7827
|
var FreelancerExperienceDto = class {
|
|
7594
7828
|
};
|
|
7595
7829
|
__decorateClass([
|
|
7596
|
-
|
|
7830
|
+
ValidateNested3({ each: true }),
|
|
7597
7831
|
ArrayMinSize(1, { message: "At least one experience is required." }),
|
|
7598
|
-
|
|
7832
|
+
Type5(() => ExperienceDto)
|
|
7599
7833
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
7600
7834
|
|
|
7601
7835
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -7611,34 +7845,34 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7611
7845
|
};
|
|
7612
7846
|
|
|
7613
7847
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7614
|
-
import { ArrayNotEmpty as
|
|
7848
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as IsNotEmpty61 } from "class-validator";
|
|
7615
7849
|
var CreateCompanyMemberDto = class {
|
|
7616
7850
|
};
|
|
7617
7851
|
__decorateClass([
|
|
7618
|
-
|
|
7852
|
+
IsNotEmpty61({ message: "Please enter name." })
|
|
7619
7853
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7620
7854
|
__decorateClass([
|
|
7621
|
-
|
|
7855
|
+
IsNotEmpty61({ message: "Please enter email" })
|
|
7622
7856
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7623
7857
|
__decorateClass([
|
|
7624
|
-
|
|
7625
|
-
|
|
7858
|
+
IsArray8({ message: "Role IDs must be an array." }),
|
|
7859
|
+
ArrayNotEmpty7({ message: "Please select at least one role." }),
|
|
7626
7860
|
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
7627
7861
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7628
7862
|
|
|
7629
7863
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7630
|
-
import { ArrayNotEmpty as
|
|
7864
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as IsNotEmpty62 } from "class-validator";
|
|
7631
7865
|
var UpdateCompanyMemberDto = class {
|
|
7632
7866
|
};
|
|
7633
7867
|
__decorateClass([
|
|
7634
|
-
|
|
7868
|
+
IsNotEmpty62({ message: "Please enter name." })
|
|
7635
7869
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7636
7870
|
__decorateClass([
|
|
7637
|
-
|
|
7871
|
+
IsNotEmpty62({ message: "Please enter email" })
|
|
7638
7872
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7639
7873
|
__decorateClass([
|
|
7640
|
-
|
|
7641
|
-
|
|
7874
|
+
IsArray9({ message: "Role IDs must be an array." }),
|
|
7875
|
+
ArrayNotEmpty8({ message: "Please select at least one role." }),
|
|
7642
7876
|
IsInt6({ each: true, message: "Each role ID must be an integer." })
|
|
7643
7877
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7644
7878
|
|
|
@@ -7657,32 +7891,32 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7657
7891
|
};
|
|
7658
7892
|
|
|
7659
7893
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
7660
|
-
import { IsArray as
|
|
7661
|
-
import { Type as
|
|
7894
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString40, IsNotEmpty as IsNotEmpty63, IsOptional as IsOptional36, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
7895
|
+
import { Type as Type6 } from "class-transformer";
|
|
7662
7896
|
var EducationDto = class {
|
|
7663
7897
|
};
|
|
7664
7898
|
__decorateClass([
|
|
7665
|
-
|
|
7899
|
+
IsOptional36()
|
|
7666
7900
|
], EducationDto.prototype, "uuid", 2);
|
|
7667
7901
|
__decorateClass([
|
|
7668
|
-
|
|
7669
|
-
|
|
7902
|
+
IsString40(),
|
|
7903
|
+
IsNotEmpty63({ message: "Please Enter Degree " })
|
|
7670
7904
|
], EducationDto.prototype, "degree", 2);
|
|
7671
7905
|
__decorateClass([
|
|
7672
|
-
|
|
7673
|
-
|
|
7906
|
+
IsString40(),
|
|
7907
|
+
IsNotEmpty63({ message: "Please Enter University " })
|
|
7674
7908
|
], EducationDto.prototype, "university", 2);
|
|
7675
7909
|
__decorateClass([
|
|
7676
|
-
|
|
7677
|
-
|
|
7910
|
+
IsString40(),
|
|
7911
|
+
IsNotEmpty63({ message: "Please Enter Year of Graduation " })
|
|
7678
7912
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
7679
7913
|
var FreelancerEducationDto = class {
|
|
7680
7914
|
};
|
|
7681
7915
|
__decorateClass([
|
|
7682
|
-
|
|
7916
|
+
IsArray10(),
|
|
7683
7917
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
7684
|
-
|
|
7685
|
-
|
|
7918
|
+
ValidateNested4({ each: true }),
|
|
7919
|
+
Type6(() => EducationDto)
|
|
7686
7920
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
7687
7921
|
|
|
7688
7922
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -7692,68 +7926,68 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
7692
7926
|
};
|
|
7693
7927
|
|
|
7694
7928
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
7695
|
-
import { IsArray as
|
|
7696
|
-
import { Type as
|
|
7929
|
+
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString41, IsNotEmpty as IsNotEmpty64, IsOptional as IsOptional37, IsDateString, MaxLength as MaxLength16, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
7930
|
+
import { Type as Type7 } from "class-transformer";
|
|
7697
7931
|
var ProjectDto = class {
|
|
7698
7932
|
};
|
|
7699
7933
|
__decorateClass([
|
|
7700
|
-
|
|
7934
|
+
IsOptional37()
|
|
7701
7935
|
], ProjectDto.prototype, "uuid", 2);
|
|
7702
7936
|
__decorateClass([
|
|
7703
|
-
|
|
7704
|
-
|
|
7937
|
+
IsString41(),
|
|
7938
|
+
IsNotEmpty64({ message: "Please Enter Project Name " })
|
|
7705
7939
|
], ProjectDto.prototype, "projectName", 2);
|
|
7706
7940
|
__decorateClass([
|
|
7707
7941
|
IsDateString(),
|
|
7708
|
-
|
|
7942
|
+
IsNotEmpty64({ message: "Please Enter Start Date " })
|
|
7709
7943
|
], ProjectDto.prototype, "startDate", 2);
|
|
7710
7944
|
__decorateClass([
|
|
7711
7945
|
IsDateString(),
|
|
7712
|
-
|
|
7946
|
+
IsNotEmpty64({ message: "Please Enter End Date " })
|
|
7713
7947
|
], ProjectDto.prototype, "endDate", 2);
|
|
7714
7948
|
__decorateClass([
|
|
7715
|
-
|
|
7716
|
-
|
|
7949
|
+
IsOptional37(),
|
|
7950
|
+
IsString41()
|
|
7717
7951
|
], ProjectDto.prototype, "clientName", 2);
|
|
7718
7952
|
__decorateClass([
|
|
7719
|
-
|
|
7720
|
-
|
|
7953
|
+
IsOptional37(),
|
|
7954
|
+
IsString41()
|
|
7721
7955
|
], ProjectDto.prototype, "gitLink", 2);
|
|
7722
7956
|
__decorateClass([
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7957
|
+
IsOptional37(),
|
|
7958
|
+
IsString41(),
|
|
7959
|
+
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7726
7960
|
], ProjectDto.prototype, "description", 2);
|
|
7727
7961
|
var CaseStudyDto = class {
|
|
7728
7962
|
};
|
|
7729
7963
|
__decorateClass([
|
|
7730
|
-
|
|
7964
|
+
IsOptional37()
|
|
7731
7965
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
7732
7966
|
__decorateClass([
|
|
7733
|
-
|
|
7734
|
-
|
|
7967
|
+
IsString41(),
|
|
7968
|
+
IsNotEmpty64({ message: "Please Enter Project Name " })
|
|
7735
7969
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
7736
7970
|
__decorateClass([
|
|
7737
|
-
|
|
7738
|
-
|
|
7971
|
+
IsOptional37(),
|
|
7972
|
+
IsString41()
|
|
7739
7973
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
7740
7974
|
__decorateClass([
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7975
|
+
IsOptional37(),
|
|
7976
|
+
IsString41(),
|
|
7977
|
+
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7744
7978
|
], CaseStudyDto.prototype, "description", 2);
|
|
7745
7979
|
var FreelancerProjectDto = class {
|
|
7746
7980
|
};
|
|
7747
7981
|
__decorateClass([
|
|
7748
|
-
|
|
7982
|
+
IsArray11(),
|
|
7749
7983
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
7750
|
-
|
|
7751
|
-
|
|
7984
|
+
ValidateNested5({ each: true }),
|
|
7985
|
+
Type7(() => ProjectDto)
|
|
7752
7986
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
7753
7987
|
__decorateClass([
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7988
|
+
IsArray11(),
|
|
7989
|
+
ValidateNested5({ each: true }),
|
|
7990
|
+
Type7(() => CaseStudyDto)
|
|
7757
7991
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
7758
7992
|
|
|
7759
7993
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -7769,8 +8003,8 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
7769
8003
|
};
|
|
7770
8004
|
|
|
7771
8005
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
7772
|
-
import { IsArray as
|
|
7773
|
-
import { Type as
|
|
8006
|
+
import { IsArray as IsArray12, IsString as IsString42, IsOptional as IsOptional38 } from "class-validator";
|
|
8007
|
+
import { Type as Type8 } from "class-transformer";
|
|
7774
8008
|
var FreelancerSkillDto = class {
|
|
7775
8009
|
constructor() {
|
|
7776
8010
|
this.coreSkills = [];
|
|
@@ -7780,28 +8014,28 @@ var FreelancerSkillDto = class {
|
|
|
7780
8014
|
}
|
|
7781
8015
|
};
|
|
7782
8016
|
__decorateClass([
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
8017
|
+
IsOptional38(),
|
|
8018
|
+
IsArray12(),
|
|
8019
|
+
Type8(() => String),
|
|
8020
|
+
IsString42({ each: true })
|
|
7787
8021
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
7788
8022
|
__decorateClass([
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
8023
|
+
IsOptional38(),
|
|
8024
|
+
IsArray12(),
|
|
8025
|
+
Type8(() => String),
|
|
8026
|
+
IsString42({ each: true })
|
|
7793
8027
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
7794
8028
|
__decorateClass([
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
8029
|
+
IsOptional38(),
|
|
8030
|
+
IsArray12(),
|
|
8031
|
+
Type8(() => String),
|
|
8032
|
+
IsString42({ each: true })
|
|
7799
8033
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7800
8034
|
__decorateClass([
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
8035
|
+
IsOptional38(),
|
|
8036
|
+
IsArray12(),
|
|
8037
|
+
Type8(() => String),
|
|
8038
|
+
IsString42({ each: true })
|
|
7805
8039
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7806
8040
|
|
|
7807
8041
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7835,18 +8069,18 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7835
8069
|
|
|
7836
8070
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7837
8071
|
import {
|
|
7838
|
-
IsString as
|
|
8072
|
+
IsString as IsString43,
|
|
7839
8073
|
IsEmail as IsEmail13,
|
|
7840
8074
|
IsBoolean as IsBoolean11,
|
|
7841
|
-
IsOptional as
|
|
7842
|
-
IsEnum as
|
|
7843
|
-
IsNumber as
|
|
8075
|
+
IsOptional as IsOptional39,
|
|
8076
|
+
IsEnum as IsEnum25,
|
|
8077
|
+
IsNumber as IsNumber10,
|
|
7844
8078
|
IsUrl as IsUrl3,
|
|
7845
|
-
MaxLength as
|
|
8079
|
+
MaxLength as MaxLength18,
|
|
7846
8080
|
MinLength as MinLength13,
|
|
7847
8081
|
Matches as Matches9,
|
|
7848
|
-
IsNotEmpty as
|
|
7849
|
-
ValidateIf as
|
|
8082
|
+
IsNotEmpty as IsNotEmpty66,
|
|
8083
|
+
ValidateIf as ValidateIf9,
|
|
7850
8084
|
IsInt as IsInt7
|
|
7851
8085
|
} from "class-validator";
|
|
7852
8086
|
import { Transform as Transform2 } from "class-transformer";
|
|
@@ -7865,16 +8099,16 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7865
8099
|
var CreateFreelancerDto = class {
|
|
7866
8100
|
};
|
|
7867
8101
|
__decorateClass([
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
8102
|
+
IsOptional39(),
|
|
8103
|
+
IsString43({ message: "Full name must be a string" }),
|
|
8104
|
+
MaxLength18(100, { message: "Full name must not exceed 100 characters" }),
|
|
7871
8105
|
Transform2(({ value }) => {
|
|
7872
8106
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7873
8107
|
return typeof value === "string" ? value.trim() : value;
|
|
7874
8108
|
})
|
|
7875
8109
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
7876
8110
|
__decorateClass([
|
|
7877
|
-
|
|
8111
|
+
IsOptional39(),
|
|
7878
8112
|
IsEmail13({}, { message: "Invalid email address" }),
|
|
7879
8113
|
Transform2(({ value }) => {
|
|
7880
8114
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -7882,24 +8116,24 @@ __decorateClass([
|
|
|
7882
8116
|
})
|
|
7883
8117
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7884
8118
|
__decorateClass([
|
|
7885
|
-
|
|
7886
|
-
|
|
8119
|
+
IsOptional39(),
|
|
8120
|
+
IsString43({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
7887
8121
|
Transform2(({ value }) => {
|
|
7888
8122
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7889
8123
|
return typeof value === "string" ? value.trim() : value;
|
|
7890
8124
|
})
|
|
7891
8125
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7892
8126
|
__decorateClass([
|
|
7893
|
-
|
|
7894
|
-
|
|
8127
|
+
IsOptional39(),
|
|
8128
|
+
IsString43({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
7895
8129
|
Transform2(({ value }) => {
|
|
7896
8130
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7897
8131
|
return typeof value === "string" ? value.trim() : value;
|
|
7898
8132
|
})
|
|
7899
8133
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7900
8134
|
__decorateClass([
|
|
7901
|
-
|
|
7902
|
-
|
|
8135
|
+
IsNotEmpty66({ message: "Please enter address." }),
|
|
8136
|
+
IsString43({ message: "address must be a string" }),
|
|
7903
8137
|
Transform2(({ value }) => {
|
|
7904
8138
|
if (Array.isArray(value)) {
|
|
7905
8139
|
const val = value[0];
|
|
@@ -7909,8 +8143,8 @@ __decorateClass([
|
|
|
7909
8143
|
})
|
|
7910
8144
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
7911
8145
|
__decorateClass([
|
|
7912
|
-
|
|
7913
|
-
|
|
8146
|
+
IsOptional39(),
|
|
8147
|
+
IsString43({ message: "addressLine must be a string" }),
|
|
7914
8148
|
Transform2(({ value }) => {
|
|
7915
8149
|
if (Array.isArray(value)) {
|
|
7916
8150
|
const val = value[0];
|
|
@@ -7922,7 +8156,7 @@ __decorateClass([
|
|
|
7922
8156
|
})
|
|
7923
8157
|
], CreateFreelancerDto.prototype, "addressLine", 2);
|
|
7924
8158
|
__decorateClass([
|
|
7925
|
-
|
|
8159
|
+
IsOptional39(),
|
|
7926
8160
|
IsInt7({ message: "countryId must be an integer" }),
|
|
7927
8161
|
Transform2(({ value }) => {
|
|
7928
8162
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -7931,7 +8165,7 @@ __decorateClass([
|
|
|
7931
8165
|
})
|
|
7932
8166
|
], CreateFreelancerDto.prototype, "countryId", 2);
|
|
7933
8167
|
__decorateClass([
|
|
7934
|
-
|
|
8168
|
+
IsOptional39(),
|
|
7935
8169
|
IsInt7({ message: "stateId must be an integer" }),
|
|
7936
8170
|
Transform2(({ value }) => {
|
|
7937
8171
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -7940,7 +8174,7 @@ __decorateClass([
|
|
|
7940
8174
|
})
|
|
7941
8175
|
], CreateFreelancerDto.prototype, "stateId", 2);
|
|
7942
8176
|
__decorateClass([
|
|
7943
|
-
|
|
8177
|
+
IsOptional39(),
|
|
7944
8178
|
IsInt7({ message: "cityId must be an integer" }),
|
|
7945
8179
|
Transform2(({ value }) => {
|
|
7946
8180
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -7949,8 +8183,8 @@ __decorateClass([
|
|
|
7949
8183
|
})
|
|
7950
8184
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
7951
8185
|
__decorateClass([
|
|
7952
|
-
|
|
7953
|
-
|
|
8186
|
+
IsOptional39(),
|
|
8187
|
+
IsString43({ message: "postalCode must be a string" }),
|
|
7954
8188
|
Transform2(({ value }) => {
|
|
7955
8189
|
if (Array.isArray(value)) {
|
|
7956
8190
|
const val = value[0];
|
|
@@ -7962,8 +8196,8 @@ __decorateClass([
|
|
|
7962
8196
|
})
|
|
7963
8197
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
7964
8198
|
__decorateClass([
|
|
7965
|
-
|
|
7966
|
-
|
|
8199
|
+
IsOptional39(),
|
|
8200
|
+
IsString43({ message: "about must be a string" }),
|
|
7967
8201
|
Transform2(({ value }) => {
|
|
7968
8202
|
if (Array.isArray(value)) {
|
|
7969
8203
|
const val = value[0];
|
|
@@ -7975,8 +8209,8 @@ __decorateClass([
|
|
|
7975
8209
|
})
|
|
7976
8210
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
7977
8211
|
__decorateClass([
|
|
7978
|
-
|
|
7979
|
-
|
|
8212
|
+
IsOptional39(),
|
|
8213
|
+
IsString43({ message: "designation must be a string" }),
|
|
7980
8214
|
Transform2(({ value }) => {
|
|
7981
8215
|
if (Array.isArray(value)) {
|
|
7982
8216
|
const val = value[0];
|
|
@@ -7988,8 +8222,8 @@ __decorateClass([
|
|
|
7988
8222
|
})
|
|
7989
8223
|
], CreateFreelancerDto.prototype, "designation", 2);
|
|
7990
8224
|
__decorateClass([
|
|
7991
|
-
|
|
7992
|
-
|
|
8225
|
+
IsOptional39(),
|
|
8226
|
+
IsNumber10({}, { message: "experience must be a number" }),
|
|
7993
8227
|
Transform2(({ value }) => {
|
|
7994
8228
|
if (Array.isArray(value)) value = value[0];
|
|
7995
8229
|
const num = Number(value);
|
|
@@ -7997,19 +8231,19 @@ __decorateClass([
|
|
|
7997
8231
|
})
|
|
7998
8232
|
], CreateFreelancerDto.prototype, "experience", 2);
|
|
7999
8233
|
__decorateClass([
|
|
8000
|
-
|
|
8234
|
+
IsOptional39(),
|
|
8001
8235
|
Transform2(({ value }) => {
|
|
8002
8236
|
if (Array.isArray(value)) value = value[0];
|
|
8003
8237
|
return value === null || value === "" ? void 0 : value;
|
|
8004
8238
|
}),
|
|
8005
8239
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
8006
|
-
|
|
8240
|
+
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
8007
8241
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8008
8242
|
message: "Password must include letters, numbers and symbols."
|
|
8009
8243
|
})
|
|
8010
8244
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
8011
8245
|
__decorateClass([
|
|
8012
|
-
|
|
8246
|
+
IsNotEmpty66({ message: "Please enter confirm password." }),
|
|
8013
8247
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
8014
8248
|
Transform2(({ value }) => {
|
|
8015
8249
|
if (Array.isArray(value)) {
|
|
@@ -8020,7 +8254,7 @@ __decorateClass([
|
|
|
8020
8254
|
})
|
|
8021
8255
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
8022
8256
|
__decorateClass([
|
|
8023
|
-
|
|
8257
|
+
IsOptional39(),
|
|
8024
8258
|
Transform2(({ value }) => {
|
|
8025
8259
|
if (Array.isArray(value)) value = value[0];
|
|
8026
8260
|
if (value === "true" || value === true) return true;
|
|
@@ -8030,19 +8264,19 @@ __decorateClass([
|
|
|
8030
8264
|
IsBoolean11({ message: "Developer flag must be true or false" })
|
|
8031
8265
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
8032
8266
|
__decorateClass([
|
|
8033
|
-
|
|
8034
|
-
|
|
8267
|
+
IsOptional39(),
|
|
8268
|
+
IsEnum25(NatureOfWorkEnum, {
|
|
8035
8269
|
message: `Nature of work must be one of: ${Object.values(
|
|
8036
8270
|
NatureOfWorkEnum
|
|
8037
8271
|
).join(", ")}`
|
|
8038
8272
|
})
|
|
8039
8273
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
8040
8274
|
__decorateClass([
|
|
8041
|
-
|
|
8275
|
+
ValidateIf9(
|
|
8042
8276
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8043
8277
|
),
|
|
8044
|
-
|
|
8045
|
-
|
|
8278
|
+
IsOptional39(),
|
|
8279
|
+
IsNumber10({}, { message: "Expected hourly compensation must be a number" }),
|
|
8046
8280
|
Transform2(({ value }) => {
|
|
8047
8281
|
if (Array.isArray(value)) value = value[0];
|
|
8048
8282
|
const num = Number(value);
|
|
@@ -8050,11 +8284,11 @@ __decorateClass([
|
|
|
8050
8284
|
})
|
|
8051
8285
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
8052
8286
|
__decorateClass([
|
|
8053
|
-
|
|
8287
|
+
ValidateIf9(
|
|
8054
8288
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8055
8289
|
),
|
|
8056
|
-
|
|
8057
|
-
|
|
8290
|
+
IsOptional39(),
|
|
8291
|
+
IsNumber10({}, { message: "Expected annual compensation must be a number" }),
|
|
8058
8292
|
Transform2(({ value }) => {
|
|
8059
8293
|
if (Array.isArray(value)) value = value[0];
|
|
8060
8294
|
const num = Number(value);
|
|
@@ -8062,10 +8296,10 @@ __decorateClass([
|
|
|
8062
8296
|
})
|
|
8063
8297
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
8064
8298
|
__decorateClass([
|
|
8065
|
-
|
|
8299
|
+
ValidateIf9(
|
|
8066
8300
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8067
8301
|
),
|
|
8068
|
-
|
|
8302
|
+
IsOptional39(),
|
|
8069
8303
|
IsInt7({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
8070
8304
|
Transform2(({ value }) => {
|
|
8071
8305
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -8074,15 +8308,15 @@ __decorateClass([
|
|
|
8074
8308
|
})
|
|
8075
8309
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8076
8310
|
__decorateClass([
|
|
8077
|
-
|
|
8078
|
-
|
|
8311
|
+
IsOptional39(),
|
|
8312
|
+
IsEnum25(ModeOfWorkEnum, {
|
|
8079
8313
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
8080
8314
|
", "
|
|
8081
8315
|
)}`
|
|
8082
8316
|
})
|
|
8083
8317
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8084
8318
|
__decorateClass([
|
|
8085
|
-
|
|
8319
|
+
IsOptional39(),
|
|
8086
8320
|
Transform2(({ value }) => {
|
|
8087
8321
|
if (Array.isArray(value)) value = value[0];
|
|
8088
8322
|
if (value === "true" || value === true) return true;
|
|
@@ -8092,9 +8326,9 @@ __decorateClass([
|
|
|
8092
8326
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" })
|
|
8093
8327
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8094
8328
|
__decorateClass([
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8329
|
+
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8330
|
+
IsOptional39(),
|
|
8331
|
+
IsString43({ message: "availabilityToJoin must be a string" }),
|
|
8098
8332
|
Transform2(({ value }) => {
|
|
8099
8333
|
if (Array.isArray(value)) {
|
|
8100
8334
|
const val = value[0];
|
|
@@ -8106,7 +8340,7 @@ __decorateClass([
|
|
|
8106
8340
|
})
|
|
8107
8341
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8108
8342
|
__decorateClass([
|
|
8109
|
-
|
|
8343
|
+
IsOptional39(),
|
|
8110
8344
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8111
8345
|
Transform2(({ value }) => {
|
|
8112
8346
|
if (Array.isArray(value)) {
|
|
@@ -8119,8 +8353,8 @@ __decorateClass([
|
|
|
8119
8353
|
})
|
|
8120
8354
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8121
8355
|
__decorateClass([
|
|
8122
|
-
|
|
8123
|
-
|
|
8356
|
+
IsOptional39(),
|
|
8357
|
+
IsString43({ message: "Kaggle profile link must be a string" }),
|
|
8124
8358
|
Transform2(({ value }) => {
|
|
8125
8359
|
if (Array.isArray(value)) {
|
|
8126
8360
|
const val = value[0];
|
|
@@ -8132,7 +8366,7 @@ __decorateClass([
|
|
|
8132
8366
|
})
|
|
8133
8367
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8134
8368
|
__decorateClass([
|
|
8135
|
-
|
|
8369
|
+
IsOptional39(),
|
|
8136
8370
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8137
8371
|
Transform2(({ value }) => {
|
|
8138
8372
|
if (Array.isArray(value)) {
|
|
@@ -8145,7 +8379,7 @@ __decorateClass([
|
|
|
8145
8379
|
})
|
|
8146
8380
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8147
8381
|
__decorateClass([
|
|
8148
|
-
|
|
8382
|
+
IsOptional39(),
|
|
8149
8383
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8150
8384
|
Transform2(({ value }) => {
|
|
8151
8385
|
if (Array.isArray(value)) {
|
|
@@ -8158,7 +8392,7 @@ __decorateClass([
|
|
|
8158
8392
|
})
|
|
8159
8393
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8160
8394
|
__decorateClass([
|
|
8161
|
-
|
|
8395
|
+
IsOptional39(),
|
|
8162
8396
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" }),
|
|
8163
8397
|
Transform2(({ value }) => {
|
|
8164
8398
|
if (Array.isArray(value)) {
|
|
@@ -8171,23 +8405,23 @@ __decorateClass([
|
|
|
8171
8405
|
})
|
|
8172
8406
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8173
8407
|
__decorateClass([
|
|
8174
|
-
|
|
8408
|
+
IsOptional39()
|
|
8175
8409
|
], CreateFreelancerDto.prototype, "file", 2);
|
|
8176
8410
|
|
|
8177
8411
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8178
8412
|
import {
|
|
8179
|
-
IsString as
|
|
8413
|
+
IsString as IsString44,
|
|
8180
8414
|
IsEmail as IsEmail14,
|
|
8181
8415
|
IsBoolean as IsBoolean12,
|
|
8182
|
-
IsOptional as
|
|
8183
|
-
IsEnum as
|
|
8184
|
-
IsNumber as
|
|
8416
|
+
IsOptional as IsOptional40,
|
|
8417
|
+
IsEnum as IsEnum26,
|
|
8418
|
+
IsNumber as IsNumber11,
|
|
8185
8419
|
IsUrl as IsUrl4,
|
|
8186
|
-
MaxLength as
|
|
8420
|
+
MaxLength as MaxLength19,
|
|
8187
8421
|
MinLength as MinLength14,
|
|
8188
8422
|
Matches as Matches10,
|
|
8189
|
-
IsNotEmpty as
|
|
8190
|
-
ValidateIf as
|
|
8423
|
+
IsNotEmpty as IsNotEmpty67,
|
|
8424
|
+
ValidateIf as ValidateIf10,
|
|
8191
8425
|
IsInt as IsInt8
|
|
8192
8426
|
} from "class-validator";
|
|
8193
8427
|
import { Transform as Transform3 } from "class-transformer";
|
|
@@ -8206,16 +8440,16 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
8206
8440
|
var UpdateFreelancerDto = class {
|
|
8207
8441
|
};
|
|
8208
8442
|
__decorateClass([
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8443
|
+
IsOptional40(),
|
|
8444
|
+
IsString44({ message: "Full name must be a string" }),
|
|
8445
|
+
MaxLength19(100, { message: "Full name must not exceed 100 characters" }),
|
|
8212
8446
|
Transform3(({ value }) => {
|
|
8213
8447
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8214
8448
|
return typeof value === "string" ? value.trim() : value;
|
|
8215
8449
|
})
|
|
8216
8450
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
8217
8451
|
__decorateClass([
|
|
8218
|
-
|
|
8452
|
+
IsOptional40(),
|
|
8219
8453
|
IsEmail14({}, { message: "Invalid email address" }),
|
|
8220
8454
|
Transform3(({ value }) => {
|
|
8221
8455
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8223,24 +8457,24 @@ __decorateClass([
|
|
|
8223
8457
|
})
|
|
8224
8458
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8225
8459
|
__decorateClass([
|
|
8226
|
-
|
|
8227
|
-
|
|
8460
|
+
IsOptional40(),
|
|
8461
|
+
IsString44({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8228
8462
|
Transform3(({ value }) => {
|
|
8229
8463
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8230
8464
|
return typeof value === "string" ? value.trim() : value;
|
|
8231
8465
|
})
|
|
8232
8466
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8233
8467
|
__decorateClass([
|
|
8234
|
-
|
|
8235
|
-
|
|
8468
|
+
IsOptional40(),
|
|
8469
|
+
IsString44({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8236
8470
|
Transform3(({ value }) => {
|
|
8237
8471
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8238
8472
|
return typeof value === "string" ? value.trim() : value;
|
|
8239
8473
|
})
|
|
8240
8474
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8241
8475
|
__decorateClass([
|
|
8242
|
-
|
|
8243
|
-
|
|
8476
|
+
IsNotEmpty67({ message: "Please enter address." }),
|
|
8477
|
+
IsString44({ message: "address must be a string" }),
|
|
8244
8478
|
Transform3(({ value }) => {
|
|
8245
8479
|
if (Array.isArray(value)) {
|
|
8246
8480
|
const val = value[0];
|
|
@@ -8250,8 +8484,8 @@ __decorateClass([
|
|
|
8250
8484
|
})
|
|
8251
8485
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8252
8486
|
__decorateClass([
|
|
8253
|
-
|
|
8254
|
-
|
|
8487
|
+
IsOptional40(),
|
|
8488
|
+
IsString44({ message: "addressLine must be a string" }),
|
|
8255
8489
|
Transform3(({ value }) => {
|
|
8256
8490
|
if (Array.isArray(value)) {
|
|
8257
8491
|
const val = value[0];
|
|
@@ -8263,7 +8497,7 @@ __decorateClass([
|
|
|
8263
8497
|
})
|
|
8264
8498
|
], UpdateFreelancerDto.prototype, "addressLine", 2);
|
|
8265
8499
|
__decorateClass([
|
|
8266
|
-
|
|
8500
|
+
IsOptional40(),
|
|
8267
8501
|
IsInt8({ message: "countryId must be an integer" }),
|
|
8268
8502
|
Transform3(({ value }) => {
|
|
8269
8503
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -8272,7 +8506,7 @@ __decorateClass([
|
|
|
8272
8506
|
})
|
|
8273
8507
|
], UpdateFreelancerDto.prototype, "countryId", 2);
|
|
8274
8508
|
__decorateClass([
|
|
8275
|
-
|
|
8509
|
+
IsOptional40(),
|
|
8276
8510
|
IsInt8({ message: "stateId must be an integer" }),
|
|
8277
8511
|
Transform3(({ value }) => {
|
|
8278
8512
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -8281,7 +8515,7 @@ __decorateClass([
|
|
|
8281
8515
|
})
|
|
8282
8516
|
], UpdateFreelancerDto.prototype, "stateId", 2);
|
|
8283
8517
|
__decorateClass([
|
|
8284
|
-
|
|
8518
|
+
IsOptional40(),
|
|
8285
8519
|
IsInt8({ message: "cityId must be an integer" }),
|
|
8286
8520
|
Transform3(({ value }) => {
|
|
8287
8521
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -8290,8 +8524,8 @@ __decorateClass([
|
|
|
8290
8524
|
})
|
|
8291
8525
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8292
8526
|
__decorateClass([
|
|
8293
|
-
|
|
8294
|
-
|
|
8527
|
+
IsOptional40(),
|
|
8528
|
+
IsString44({ message: "postalCode must be a string" }),
|
|
8295
8529
|
Transform3(({ value }) => {
|
|
8296
8530
|
if (Array.isArray(value)) {
|
|
8297
8531
|
const val = value[0];
|
|
@@ -8303,8 +8537,8 @@ __decorateClass([
|
|
|
8303
8537
|
})
|
|
8304
8538
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8305
8539
|
__decorateClass([
|
|
8306
|
-
|
|
8307
|
-
|
|
8540
|
+
IsOptional40(),
|
|
8541
|
+
IsString44({ message: "about must be a string" }),
|
|
8308
8542
|
Transform3(({ value }) => {
|
|
8309
8543
|
if (Array.isArray(value)) {
|
|
8310
8544
|
const val = value[0];
|
|
@@ -8316,8 +8550,8 @@ __decorateClass([
|
|
|
8316
8550
|
})
|
|
8317
8551
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8318
8552
|
__decorateClass([
|
|
8319
|
-
|
|
8320
|
-
|
|
8553
|
+
IsOptional40(),
|
|
8554
|
+
IsString44({ message: "designation must be a string" }),
|
|
8321
8555
|
Transform3(({ value }) => {
|
|
8322
8556
|
if (Array.isArray(value)) {
|
|
8323
8557
|
const val = value[0];
|
|
@@ -8329,8 +8563,8 @@ __decorateClass([
|
|
|
8329
8563
|
})
|
|
8330
8564
|
], UpdateFreelancerDto.prototype, "designation", 2);
|
|
8331
8565
|
__decorateClass([
|
|
8332
|
-
|
|
8333
|
-
|
|
8566
|
+
IsOptional40(),
|
|
8567
|
+
IsNumber11({}, { message: "experience must be a number" }),
|
|
8334
8568
|
Transform3(({ value }) => {
|
|
8335
8569
|
if (Array.isArray(value)) value = value[0];
|
|
8336
8570
|
const num = Number(value);
|
|
@@ -8338,19 +8572,19 @@ __decorateClass([
|
|
|
8338
8572
|
})
|
|
8339
8573
|
], UpdateFreelancerDto.prototype, "experience", 2);
|
|
8340
8574
|
__decorateClass([
|
|
8341
|
-
|
|
8575
|
+
IsOptional40(),
|
|
8342
8576
|
Transform3(({ value }) => {
|
|
8343
8577
|
if (Array.isArray(value)) value = value[0];
|
|
8344
8578
|
return value === null || value === "" ? void 0 : value;
|
|
8345
8579
|
}),
|
|
8346
8580
|
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
8347
|
-
|
|
8581
|
+
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
8348
8582
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8349
8583
|
message: "Password must include letters, numbers and symbols."
|
|
8350
8584
|
})
|
|
8351
8585
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
8352
8586
|
__decorateClass([
|
|
8353
|
-
|
|
8587
|
+
IsOptional40(),
|
|
8354
8588
|
Transform3(({ value }) => {
|
|
8355
8589
|
if (Array.isArray(value)) value = value[0];
|
|
8356
8590
|
if (value === "true" || value === true) return true;
|
|
@@ -8360,19 +8594,19 @@ __decorateClass([
|
|
|
8360
8594
|
IsBoolean12({ message: "Developer flag must be true or false" })
|
|
8361
8595
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
8362
8596
|
__decorateClass([
|
|
8363
|
-
|
|
8364
|
-
|
|
8597
|
+
IsOptional40(),
|
|
8598
|
+
IsEnum26(NatureOfWorkEnum2, {
|
|
8365
8599
|
message: `Nature of work must be one of: ${Object.values(
|
|
8366
8600
|
NatureOfWorkEnum2
|
|
8367
8601
|
).join(", ")}`
|
|
8368
8602
|
})
|
|
8369
8603
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
8370
8604
|
__decorateClass([
|
|
8371
|
-
|
|
8605
|
+
ValidateIf10(
|
|
8372
8606
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8373
8607
|
),
|
|
8374
|
-
|
|
8375
|
-
|
|
8608
|
+
IsOptional40(),
|
|
8609
|
+
IsNumber11({}, { message: "Expected hourly compensation must be a number" }),
|
|
8376
8610
|
Transform3(({ value }) => {
|
|
8377
8611
|
if (Array.isArray(value)) value = value[0];
|
|
8378
8612
|
const num = Number(value);
|
|
@@ -8380,11 +8614,11 @@ __decorateClass([
|
|
|
8380
8614
|
})
|
|
8381
8615
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
8382
8616
|
__decorateClass([
|
|
8383
|
-
|
|
8617
|
+
ValidateIf10(
|
|
8384
8618
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8385
8619
|
),
|
|
8386
|
-
|
|
8387
|
-
|
|
8620
|
+
IsOptional40(),
|
|
8621
|
+
IsNumber11({}, { message: "Expected annual compensation must be a number" }),
|
|
8388
8622
|
Transform3(({ value }) => {
|
|
8389
8623
|
if (Array.isArray(value)) value = value[0];
|
|
8390
8624
|
const num = Number(value);
|
|
@@ -8392,10 +8626,10 @@ __decorateClass([
|
|
|
8392
8626
|
})
|
|
8393
8627
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
8394
8628
|
__decorateClass([
|
|
8395
|
-
|
|
8629
|
+
ValidateIf10(
|
|
8396
8630
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8397
8631
|
),
|
|
8398
|
-
|
|
8632
|
+
IsOptional40(),
|
|
8399
8633
|
IsInt8({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
8400
8634
|
Transform3(({ value }) => {
|
|
8401
8635
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -8404,15 +8638,15 @@ __decorateClass([
|
|
|
8404
8638
|
})
|
|
8405
8639
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8406
8640
|
__decorateClass([
|
|
8407
|
-
|
|
8408
|
-
|
|
8641
|
+
IsOptional40(),
|
|
8642
|
+
IsEnum26(ModeOfWorkEnum2, {
|
|
8409
8643
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
8410
8644
|
", "
|
|
8411
8645
|
)}`
|
|
8412
8646
|
})
|
|
8413
8647
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8414
8648
|
__decorateClass([
|
|
8415
|
-
|
|
8649
|
+
IsOptional40(),
|
|
8416
8650
|
Transform3(({ value }) => {
|
|
8417
8651
|
if (Array.isArray(value)) value = value[0];
|
|
8418
8652
|
if (value === "true" || value === true) return true;
|
|
@@ -8422,9 +8656,9 @@ __decorateClass([
|
|
|
8422
8656
|
IsBoolean12({ message: "isImmediateJoiner must be true or false" })
|
|
8423
8657
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8424
8658
|
__decorateClass([
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8659
|
+
ValidateIf10((o) => o.isImmediateJoiner === false),
|
|
8660
|
+
IsOptional40(),
|
|
8661
|
+
IsString44({ message: "availabilityToJoin must be a string" }),
|
|
8428
8662
|
Transform3(({ value }) => {
|
|
8429
8663
|
if (Array.isArray(value)) {
|
|
8430
8664
|
const val = value[0];
|
|
@@ -8436,7 +8670,7 @@ __decorateClass([
|
|
|
8436
8670
|
})
|
|
8437
8671
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8438
8672
|
__decorateClass([
|
|
8439
|
-
|
|
8673
|
+
IsOptional40(),
|
|
8440
8674
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8441
8675
|
Transform3(({ value }) => {
|
|
8442
8676
|
if (Array.isArray(value)) {
|
|
@@ -8449,8 +8683,8 @@ __decorateClass([
|
|
|
8449
8683
|
})
|
|
8450
8684
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8451
8685
|
__decorateClass([
|
|
8452
|
-
|
|
8453
|
-
|
|
8686
|
+
IsOptional40(),
|
|
8687
|
+
IsString44({ message: "Kaggle profile link must be a string" }),
|
|
8454
8688
|
Transform3(({ value }) => {
|
|
8455
8689
|
if (Array.isArray(value)) {
|
|
8456
8690
|
const val = value[0];
|
|
@@ -8462,7 +8696,7 @@ __decorateClass([
|
|
|
8462
8696
|
})
|
|
8463
8697
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8464
8698
|
__decorateClass([
|
|
8465
|
-
|
|
8699
|
+
IsOptional40(),
|
|
8466
8700
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8467
8701
|
Transform3(({ value }) => {
|
|
8468
8702
|
if (Array.isArray(value)) {
|
|
@@ -8475,7 +8709,7 @@ __decorateClass([
|
|
|
8475
8709
|
})
|
|
8476
8710
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8477
8711
|
__decorateClass([
|
|
8478
|
-
|
|
8712
|
+
IsOptional40(),
|
|
8479
8713
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8480
8714
|
Transform3(({ value }) => {
|
|
8481
8715
|
if (Array.isArray(value)) {
|
|
@@ -8488,7 +8722,7 @@ __decorateClass([
|
|
|
8488
8722
|
})
|
|
8489
8723
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8490
8724
|
__decorateClass([
|
|
8491
|
-
|
|
8725
|
+
IsOptional40(),
|
|
8492
8726
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" }),
|
|
8493
8727
|
Transform3(({ value }) => {
|
|
8494
8728
|
if (Array.isArray(value)) {
|
|
@@ -8501,20 +8735,20 @@ __decorateClass([
|
|
|
8501
8735
|
})
|
|
8502
8736
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8503
8737
|
__decorateClass([
|
|
8504
|
-
|
|
8738
|
+
IsOptional40()
|
|
8505
8739
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8506
8740
|
|
|
8507
8741
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8508
|
-
import { IsNotEmpty as
|
|
8742
|
+
import { IsNotEmpty as IsNotEmpty68, IsUUID as IsUUID19 } from "class-validator";
|
|
8509
8743
|
var SendAiAssessmentLinkDto = class {
|
|
8510
8744
|
};
|
|
8511
8745
|
__decorateClass([
|
|
8512
8746
|
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8513
|
-
|
|
8747
|
+
IsNotEmpty68({ message: "Freelancer UUID is required." })
|
|
8514
8748
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8515
8749
|
|
|
8516
8750
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8517
|
-
import { IsEnum as
|
|
8751
|
+
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as IsString45 } from "class-validator";
|
|
8518
8752
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8519
8753
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8520
8754
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8525,35 +8759,35 @@ var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
|
8525
8759
|
var UpdateAssessmentRequestStatusDto = class {
|
|
8526
8760
|
};
|
|
8527
8761
|
__decorateClass([
|
|
8528
|
-
|
|
8762
|
+
IsEnum27(AssessmentRequestStatus, {
|
|
8529
8763
|
message: `Status must be one of: ${Object.values(AssessmentRequestStatus).join(", ")}`
|
|
8530
8764
|
})
|
|
8531
8765
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8532
8766
|
__decorateClass([
|
|
8533
|
-
|
|
8534
|
-
|
|
8767
|
+
IsOptional41(),
|
|
8768
|
+
IsString45()
|
|
8535
8769
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8536
8770
|
|
|
8537
8771
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
8538
|
-
import { IsOptional as
|
|
8772
|
+
import { IsOptional as IsOptional42, IsArray as IsArray13, IsEmail as IsEmail15 } from "class-validator";
|
|
8539
8773
|
import { Transform as Transform4 } from "class-transformer";
|
|
8540
8774
|
var AdminExportFreelancerV2OptimisedDto = class {
|
|
8541
8775
|
};
|
|
8542
8776
|
__decorateClass([
|
|
8543
|
-
|
|
8777
|
+
IsOptional42(),
|
|
8544
8778
|
Transform4(
|
|
8545
8779
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8546
8780
|
),
|
|
8547
|
-
|
|
8781
|
+
IsArray13({ message: "customEmails must be an array" }),
|
|
8548
8782
|
IsEmail15({}, { each: true, message: "Each email must be a valid email address" })
|
|
8549
8783
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
8550
8784
|
|
|
8551
8785
|
// src/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.ts
|
|
8552
|
-
import { IsEnum as
|
|
8786
|
+
import { IsEnum as IsEnum28 } from "class-validator";
|
|
8553
8787
|
var UpdateAdminFreelancerAccountStatusDto = class {
|
|
8554
8788
|
};
|
|
8555
8789
|
__decorateClass([
|
|
8556
|
-
|
|
8790
|
+
IsEnum28(AccountStatus, {
|
|
8557
8791
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8558
8792
|
})
|
|
8559
8793
|
], UpdateAdminFreelancerAccountStatusDto.prototype, "accountStatus", 2);
|
|
@@ -8577,235 +8811,235 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8577
8811
|
|
|
8578
8812
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8579
8813
|
import {
|
|
8580
|
-
IsNotEmpty as
|
|
8814
|
+
IsNotEmpty as IsNotEmpty69,
|
|
8581
8815
|
IsEmail as IsEmail16,
|
|
8582
|
-
IsOptional as
|
|
8583
|
-
IsString as
|
|
8816
|
+
IsOptional as IsOptional43,
|
|
8817
|
+
IsString as IsString46,
|
|
8584
8818
|
MinLength as MinLength15,
|
|
8585
|
-
MaxLength as
|
|
8819
|
+
MaxLength as MaxLength20,
|
|
8586
8820
|
Matches as Matches11,
|
|
8587
8821
|
IsInt as IsInt9,
|
|
8588
8822
|
IsUrl as IsUrl5
|
|
8589
8823
|
} from "class-validator";
|
|
8590
|
-
import { Type as
|
|
8824
|
+
import { Type as Type9 } from "class-transformer";
|
|
8591
8825
|
var CreateClientDto = class {
|
|
8592
8826
|
};
|
|
8593
8827
|
__decorateClass([
|
|
8594
|
-
|
|
8595
|
-
|
|
8828
|
+
IsNotEmpty69({ message: "Please enter first name." }),
|
|
8829
|
+
IsString46()
|
|
8596
8830
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8597
8831
|
__decorateClass([
|
|
8598
|
-
|
|
8599
|
-
|
|
8832
|
+
IsNotEmpty69({ message: "Please enter last name." }),
|
|
8833
|
+
IsString46()
|
|
8600
8834
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8601
8835
|
__decorateClass([
|
|
8602
|
-
|
|
8836
|
+
IsNotEmpty69({ message: "Please enter email." }),
|
|
8603
8837
|
IsEmail16()
|
|
8604
8838
|
], CreateClientDto.prototype, "email", 2);
|
|
8605
8839
|
__decorateClass([
|
|
8606
|
-
|
|
8607
|
-
|
|
8840
|
+
IsNotEmpty69({ message: "Please enter mobile code." }),
|
|
8841
|
+
IsString46({ message: "Mobile code must be a string." })
|
|
8608
8842
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8609
8843
|
__decorateClass([
|
|
8610
|
-
|
|
8611
|
-
|
|
8844
|
+
IsNotEmpty69({ message: "Please enter phone number." }),
|
|
8845
|
+
IsString46({ message: "Phone number must be a string." })
|
|
8612
8846
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8613
8847
|
__decorateClass([
|
|
8614
|
-
|
|
8848
|
+
IsNotEmpty69({ message: "Please enter password." }),
|
|
8615
8849
|
MinLength15(6),
|
|
8616
|
-
|
|
8850
|
+
MaxLength20(32),
|
|
8617
8851
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8618
8852
|
message: "Password must include letters, numbers and symbols."
|
|
8619
8853
|
})
|
|
8620
8854
|
], CreateClientDto.prototype, "password", 2);
|
|
8621
8855
|
__decorateClass([
|
|
8622
|
-
|
|
8856
|
+
IsNotEmpty69({ message: "Please enter confirm password." }),
|
|
8623
8857
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8624
8858
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8625
8859
|
__decorateClass([
|
|
8626
|
-
|
|
8627
|
-
|
|
8860
|
+
IsNotEmpty69({ message: "Please enter company name." }),
|
|
8861
|
+
IsString46()
|
|
8628
8862
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8629
8863
|
__decorateClass([
|
|
8630
|
-
|
|
8631
|
-
|
|
8864
|
+
IsOptional43(),
|
|
8865
|
+
IsString46()
|
|
8632
8866
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8633
8867
|
__decorateClass([
|
|
8634
|
-
|
|
8635
|
-
|
|
8868
|
+
IsOptional43(),
|
|
8869
|
+
IsString46()
|
|
8636
8870
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8637
8871
|
__decorateClass([
|
|
8638
|
-
|
|
8639
|
-
|
|
8872
|
+
IsOptional43(),
|
|
8873
|
+
IsString46({ message: "About company must be a string." })
|
|
8640
8874
|
], CreateClientDto.prototype, "about", 2);
|
|
8641
8875
|
__decorateClass([
|
|
8642
|
-
|
|
8876
|
+
IsOptional43(),
|
|
8643
8877
|
IsUrl5({}, { message: "Website must be a valid URL." })
|
|
8644
8878
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8645
8879
|
__decorateClass([
|
|
8646
|
-
|
|
8647
|
-
|
|
8880
|
+
IsOptional43(),
|
|
8881
|
+
IsString46({ message: "Company address must be a string." })
|
|
8648
8882
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8649
8883
|
__decorateClass([
|
|
8650
|
-
|
|
8651
|
-
|
|
8884
|
+
IsOptional43(),
|
|
8885
|
+
IsString46({ message: "Address line must be a string." })
|
|
8652
8886
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8653
8887
|
__decorateClass([
|
|
8654
|
-
|
|
8655
|
-
|
|
8888
|
+
IsOptional43(),
|
|
8889
|
+
IsString46({ message: "Postal code must be a string." })
|
|
8656
8890
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8657
8891
|
__decorateClass([
|
|
8658
|
-
|
|
8892
|
+
IsOptional43(),
|
|
8659
8893
|
IsInt9({ message: "Country ID must be an integer." }),
|
|
8660
|
-
|
|
8894
|
+
Type9(() => Number)
|
|
8661
8895
|
], CreateClientDto.prototype, "countryId", 2);
|
|
8662
8896
|
__decorateClass([
|
|
8663
|
-
|
|
8897
|
+
IsOptional43(),
|
|
8664
8898
|
IsInt9({ message: "State ID must be an integer." }),
|
|
8665
|
-
|
|
8899
|
+
Type9(() => Number)
|
|
8666
8900
|
], CreateClientDto.prototype, "stateId", 2);
|
|
8667
8901
|
__decorateClass([
|
|
8668
|
-
|
|
8902
|
+
IsOptional43(),
|
|
8669
8903
|
IsInt9({ message: "City ID must be an integer." }),
|
|
8670
|
-
|
|
8904
|
+
Type9(() => Number)
|
|
8671
8905
|
], CreateClientDto.prototype, "cityId", 2);
|
|
8672
8906
|
|
|
8673
8907
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
8674
|
-
import { IsEnum as
|
|
8908
|
+
import { IsEnum as IsEnum30 } from "class-validator";
|
|
8675
8909
|
var UpdateClientAccountStatusDto = class {
|
|
8676
8910
|
};
|
|
8677
8911
|
__decorateClass([
|
|
8678
|
-
|
|
8912
|
+
IsEnum30(AccountStatus, {
|
|
8679
8913
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8680
8914
|
})
|
|
8681
8915
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8682
8916
|
|
|
8683
8917
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
8684
|
-
import { Transform as Transform5, Type as
|
|
8918
|
+
import { Transform as Transform5, Type as Type10 } from "class-transformer";
|
|
8685
8919
|
import {
|
|
8686
|
-
IsNotEmpty as
|
|
8920
|
+
IsNotEmpty as IsNotEmpty70,
|
|
8687
8921
|
IsEmail as IsEmail17,
|
|
8688
|
-
IsOptional as
|
|
8689
|
-
IsString as
|
|
8922
|
+
IsOptional as IsOptional44,
|
|
8923
|
+
IsString as IsString47,
|
|
8690
8924
|
MinLength as MinLength16,
|
|
8691
|
-
MaxLength as
|
|
8925
|
+
MaxLength as MaxLength21,
|
|
8692
8926
|
Matches as Matches12
|
|
8693
8927
|
} from "class-validator";
|
|
8694
8928
|
var UpdateClientDto = class {
|
|
8695
8929
|
};
|
|
8696
8930
|
__decorateClass([
|
|
8697
|
-
|
|
8698
|
-
|
|
8931
|
+
IsNotEmpty70({ message: "Please enter first name." }),
|
|
8932
|
+
IsString47()
|
|
8699
8933
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
8700
8934
|
__decorateClass([
|
|
8701
|
-
|
|
8702
|
-
|
|
8935
|
+
IsNotEmpty70({ message: "Please enter last name." }),
|
|
8936
|
+
IsString47()
|
|
8703
8937
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
8704
8938
|
__decorateClass([
|
|
8705
|
-
|
|
8939
|
+
IsNotEmpty70({ message: "Please enter email." }),
|
|
8706
8940
|
IsEmail17()
|
|
8707
8941
|
], UpdateClientDto.prototype, "email", 2);
|
|
8708
8942
|
__decorateClass([
|
|
8709
|
-
|
|
8710
|
-
|
|
8943
|
+
IsOptional44(),
|
|
8944
|
+
IsString47({ message: "Mobile code must be a string." })
|
|
8711
8945
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
8712
8946
|
__decorateClass([
|
|
8713
|
-
|
|
8714
|
-
|
|
8947
|
+
IsOptional44(),
|
|
8948
|
+
IsString47({ message: "Phone number must be a string." })
|
|
8715
8949
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
8716
8950
|
__decorateClass([
|
|
8717
|
-
|
|
8951
|
+
IsOptional44(),
|
|
8718
8952
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
8719
8953
|
MinLength16(6, { message: "Password must be at least 6 characters." }),
|
|
8720
|
-
|
|
8954
|
+
MaxLength21(32, { message: "Password must not exceed 32 characters." }),
|
|
8721
8955
|
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8722
8956
|
message: "Password must include letters, numbers and symbols."
|
|
8723
8957
|
})
|
|
8724
8958
|
], UpdateClientDto.prototype, "password", 2);
|
|
8725
8959
|
__decorateClass([
|
|
8726
|
-
|
|
8727
|
-
|
|
8960
|
+
IsNotEmpty70({ message: "Please enter company name." }),
|
|
8961
|
+
IsString47()
|
|
8728
8962
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
8729
8963
|
__decorateClass([
|
|
8730
|
-
|
|
8731
|
-
|
|
8964
|
+
IsOptional44(),
|
|
8965
|
+
IsString47()
|
|
8732
8966
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
8733
8967
|
__decorateClass([
|
|
8734
|
-
|
|
8735
|
-
|
|
8968
|
+
IsOptional44(),
|
|
8969
|
+
IsString47()
|
|
8736
8970
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8737
8971
|
__decorateClass([
|
|
8738
|
-
|
|
8739
|
-
|
|
8972
|
+
IsOptional44(),
|
|
8973
|
+
IsString47({ message: "About company must be a string." })
|
|
8740
8974
|
], UpdateClientDto.prototype, "about", 2);
|
|
8741
8975
|
__decorateClass([
|
|
8742
|
-
|
|
8743
|
-
|
|
8976
|
+
IsOptional44(),
|
|
8977
|
+
IsString47({ message: "Website must be a string." })
|
|
8744
8978
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
8745
8979
|
__decorateClass([
|
|
8746
|
-
|
|
8747
|
-
|
|
8980
|
+
IsOptional44(),
|
|
8981
|
+
IsString47({ message: "Company address must be a string." })
|
|
8748
8982
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
8749
8983
|
__decorateClass([
|
|
8750
|
-
|
|
8751
|
-
|
|
8984
|
+
IsOptional44(),
|
|
8985
|
+
IsString47({ message: "Address line must be a string." })
|
|
8752
8986
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
8753
8987
|
__decorateClass([
|
|
8754
|
-
|
|
8755
|
-
|
|
8988
|
+
IsOptional44(),
|
|
8989
|
+
IsString47({ message: "Postal code must be a string." })
|
|
8756
8990
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
8757
8991
|
__decorateClass([
|
|
8758
|
-
|
|
8759
|
-
|
|
8992
|
+
IsOptional44(),
|
|
8993
|
+
Type10(() => Number)
|
|
8760
8994
|
], UpdateClientDto.prototype, "countryId", 2);
|
|
8761
8995
|
__decorateClass([
|
|
8762
|
-
|
|
8763
|
-
|
|
8996
|
+
IsOptional44(),
|
|
8997
|
+
Type10(() => Number)
|
|
8764
8998
|
], UpdateClientDto.prototype, "stateId", 2);
|
|
8765
8999
|
__decorateClass([
|
|
8766
|
-
|
|
8767
|
-
|
|
9000
|
+
IsOptional44(),
|
|
9001
|
+
Type10(() => Number)
|
|
8768
9002
|
], UpdateClientDto.prototype, "cityId", 2);
|
|
8769
9003
|
|
|
8770
9004
|
// src/modules/client-admin/dto/admin-export-clientV2-optimised.dto.ts
|
|
8771
|
-
import { IsOptional as
|
|
9005
|
+
import { IsOptional as IsOptional45, IsArray as IsArray16, IsEmail as IsEmail18 } from "class-validator";
|
|
8772
9006
|
import { Transform as Transform6 } from "class-transformer";
|
|
8773
9007
|
var AdminExportClientV2OptimisedDto = class {
|
|
8774
9008
|
};
|
|
8775
9009
|
__decorateClass([
|
|
8776
|
-
|
|
9010
|
+
IsOptional45(),
|
|
8777
9011
|
Transform6(
|
|
8778
9012
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8779
9013
|
),
|
|
8780
|
-
|
|
9014
|
+
IsArray16({ message: "customEmails must be an array" }),
|
|
8781
9015
|
IsEmail18({}, { each: true, message: "Each email must be a valid email address" })
|
|
8782
9016
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
8783
9017
|
|
|
8784
9018
|
// src/modules/client-admin/dto/update-admin-client-account-status.dto.ts
|
|
8785
|
-
import { IsEnum as
|
|
9019
|
+
import { IsEnum as IsEnum32 } from "class-validator";
|
|
8786
9020
|
var UpdateAdminClientAccountStatusDto = class {
|
|
8787
9021
|
};
|
|
8788
9022
|
__decorateClass([
|
|
8789
|
-
|
|
9023
|
+
IsEnum32(AccountStatus, {
|
|
8790
9024
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8791
9025
|
})
|
|
8792
9026
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8793
9027
|
|
|
8794
9028
|
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
8795
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
9029
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty71 } from "class-validator";
|
|
8796
9030
|
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
8797
9031
|
};
|
|
8798
9032
|
__decorateClass([
|
|
8799
|
-
|
|
9033
|
+
IsNotEmpty71({ message: "Job posting restriction status is required." }),
|
|
8800
9034
|
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
8801
9035
|
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
8802
9036
|
|
|
8803
9037
|
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
8804
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
9038
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty72 } from "class-validator";
|
|
8805
9039
|
var SkipServiceAgreementFlowDto = class {
|
|
8806
9040
|
};
|
|
8807
9041
|
__decorateClass([
|
|
8808
|
-
|
|
9042
|
+
IsNotEmpty72({ message: "Skip service agreement flag is required." }),
|
|
8809
9043
|
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
8810
9044
|
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
8811
9045
|
|
|
@@ -8816,7 +9050,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
8816
9050
|
};
|
|
8817
9051
|
|
|
8818
9052
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
8819
|
-
import { IsOptional as
|
|
9053
|
+
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as IsString48, IsNotEmpty as IsNotEmpty73, IsIn as IsIn3 } from "class-validator";
|
|
8820
9054
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
8821
9055
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
8822
9056
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -8827,15 +9061,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
8827
9061
|
var FreelancerDeclarationDto = class {
|
|
8828
9062
|
};
|
|
8829
9063
|
__decorateClass([
|
|
8830
|
-
|
|
8831
|
-
|
|
9064
|
+
IsOptional46(),
|
|
9065
|
+
IsString48({ message: "UUID must be a string" })
|
|
8832
9066
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
8833
9067
|
__decorateClass([
|
|
8834
|
-
|
|
9068
|
+
IsEnum33(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
8835
9069
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
8836
9070
|
__decorateClass([
|
|
8837
|
-
|
|
8838
|
-
|
|
9071
|
+
IsNotEmpty73({ message: "Please accept the declaration " }),
|
|
9072
|
+
IsString48(),
|
|
8839
9073
|
IsIn3([
|
|
8840
9074
|
"true"
|
|
8841
9075
|
])
|
|
@@ -8851,36 +9085,36 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
8851
9085
|
};
|
|
8852
9086
|
|
|
8853
9087
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
8854
|
-
import { IsNotEmpty as
|
|
8855
|
-
import { Type as
|
|
9088
|
+
import { IsNotEmpty as IsNotEmpty74, IsNumber as IsNumber12, IsOptional as IsOptional47 } from "class-validator";
|
|
9089
|
+
import { Type as Type11 } from "class-transformer";
|
|
8856
9090
|
var MarkCandidateStatusDto = class {
|
|
8857
9091
|
};
|
|
8858
9092
|
__decorateClass([
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
9093
|
+
IsNotEmpty74({ message: "Candidate ID is required." }),
|
|
9094
|
+
IsNumber12({}, { message: "Candidate ID must be a number." }),
|
|
9095
|
+
Type11(() => Number)
|
|
8862
9096
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
8863
9097
|
__decorateClass([
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
9098
|
+
IsOptional47(),
|
|
9099
|
+
IsNumber12({}, { message: "Job ID must be a number." }),
|
|
9100
|
+
Type11(() => Number)
|
|
8867
9101
|
], MarkCandidateStatusDto.prototype, "jobId", 2);
|
|
8868
9102
|
|
|
8869
9103
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
8870
|
-
import { ArrayNotEmpty as
|
|
8871
|
-
import { Type as
|
|
9104
|
+
import { ArrayNotEmpty as ArrayNotEmpty9, IsArray as IsArray17, IsNumber as IsNumber13, IsOptional as IsOptional48 } from "class-validator";
|
|
9105
|
+
import { Type as Type12 } from "class-transformer";
|
|
8872
9106
|
var MarkCandidateStatusBulkDto = class {
|
|
8873
9107
|
};
|
|
8874
9108
|
__decorateClass([
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
9109
|
+
IsArray17({ message: "Candidate IDs must be an array." }),
|
|
9110
|
+
ArrayNotEmpty9({ message: "At least one candidate ID is required." }),
|
|
9111
|
+
IsNumber13({}, { each: true, message: "Each candidate ID must be a number." }),
|
|
9112
|
+
Type12(() => Number)
|
|
8879
9113
|
], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
|
|
8880
9114
|
__decorateClass([
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
9115
|
+
IsOptional48(),
|
|
9116
|
+
IsNumber13({}, { message: "Job ID must be a number." }),
|
|
9117
|
+
Type12(() => Number)
|
|
8884
9118
|
], MarkCandidateStatusBulkDto.prototype, "jobId", 2);
|
|
8885
9119
|
|
|
8886
9120
|
// src/modules/cms/pattern/pattern.ts
|
|
@@ -8894,44 +9128,44 @@ var CMS_PATTERNS = {
|
|
|
8894
9128
|
};
|
|
8895
9129
|
|
|
8896
9130
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
8897
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
9131
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty75, IsOptional as IsOptional49 } from "class-validator";
|
|
8898
9132
|
var CreateCmsDto = class {
|
|
8899
9133
|
};
|
|
8900
9134
|
__decorateClass([
|
|
8901
|
-
|
|
9135
|
+
IsNotEmpty75({ message: "Please enter name." })
|
|
8902
9136
|
], CreateCmsDto.prototype, "title", 2);
|
|
8903
9137
|
__decorateClass([
|
|
8904
|
-
|
|
9138
|
+
IsOptional49()
|
|
8905
9139
|
], CreateCmsDto.prototype, "content", 2);
|
|
8906
9140
|
__decorateClass([
|
|
8907
|
-
|
|
9141
|
+
IsOptional49(),
|
|
8908
9142
|
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
8909
9143
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
8910
9144
|
|
|
8911
9145
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
8912
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
9146
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty76 } from "class-validator";
|
|
8913
9147
|
var UpdateCmsStatusDto = class {
|
|
8914
9148
|
};
|
|
8915
9149
|
__decorateClass([
|
|
8916
|
-
|
|
9150
|
+
IsNotEmpty76({ message: "Please specify cms status." }),
|
|
8917
9151
|
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
8918
9152
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
8919
9153
|
|
|
8920
9154
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
8921
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as
|
|
9155
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty77, IsOptional as IsOptional50 } from "class-validator";
|
|
8922
9156
|
var UpdateCmsDto = class {
|
|
8923
9157
|
};
|
|
8924
9158
|
__decorateClass([
|
|
8925
|
-
|
|
9159
|
+
IsOptional50()
|
|
8926
9160
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
8927
9161
|
__decorateClass([
|
|
8928
|
-
|
|
9162
|
+
IsNotEmpty77({ message: "Please enter name." })
|
|
8929
9163
|
], UpdateCmsDto.prototype, "title", 2);
|
|
8930
9164
|
__decorateClass([
|
|
8931
|
-
|
|
9165
|
+
IsOptional50()
|
|
8932
9166
|
], UpdateCmsDto.prototype, "content", 2);
|
|
8933
9167
|
__decorateClass([
|
|
8934
|
-
|
|
9168
|
+
IsOptional50(),
|
|
8935
9169
|
IsBoolean17({ message: "Is active must be a boolean value" })
|
|
8936
9170
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
8937
9171
|
|
|
@@ -8966,18 +9200,18 @@ var ADMIN_JOB_PATTERN = {
|
|
|
8966
9200
|
};
|
|
8967
9201
|
|
|
8968
9202
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
8969
|
-
import { Type as
|
|
9203
|
+
import { Type as Type13 } from "class-transformer";
|
|
8970
9204
|
import {
|
|
8971
|
-
IsString as
|
|
8972
|
-
IsEnum as
|
|
9205
|
+
IsString as IsString49,
|
|
9206
|
+
IsEnum as IsEnum34,
|
|
8973
9207
|
IsInt as IsInt10,
|
|
8974
|
-
IsOptional as
|
|
8975
|
-
IsArray as
|
|
9208
|
+
IsOptional as IsOptional51,
|
|
9209
|
+
IsArray as IsArray18,
|
|
8976
9210
|
IsDateString as IsDateString3,
|
|
8977
|
-
IsNotEmpty as
|
|
8978
|
-
ArrayNotEmpty as
|
|
8979
|
-
Min as
|
|
8980
|
-
IsNumber as
|
|
9211
|
+
IsNotEmpty as IsNotEmpty78,
|
|
9212
|
+
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9213
|
+
Min as Min7,
|
|
9214
|
+
IsNumber as IsNumber14
|
|
8981
9215
|
} from "class-validator";
|
|
8982
9216
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
8983
9217
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -8994,55 +9228,55 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
8994
9228
|
var AdminCreateJobInformationDto = class {
|
|
8995
9229
|
};
|
|
8996
9230
|
__decorateClass([
|
|
8997
|
-
|
|
8998
|
-
|
|
9231
|
+
IsString49({ message: "Job role must be a string." }),
|
|
9232
|
+
IsNotEmpty78({ message: "Job role is required." })
|
|
8999
9233
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
9000
9234
|
__decorateClass([
|
|
9001
|
-
|
|
9002
|
-
|
|
9235
|
+
IsOptional51(),
|
|
9236
|
+
IsString49({ message: "Note must be a string." })
|
|
9003
9237
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
9004
9238
|
__decorateClass([
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9239
|
+
IsArray18({ message: "Skills must be an array of skill names." }),
|
|
9240
|
+
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
9241
|
+
IsString49({ each: true, message: "Each skill must be a valid string." })
|
|
9008
9242
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
9009
9243
|
__decorateClass([
|
|
9010
9244
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
9011
|
-
|
|
9245
|
+
Min7(1, { message: "There must be at least one opening." })
|
|
9012
9246
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
9013
9247
|
__decorateClass([
|
|
9014
|
-
|
|
9248
|
+
IsEnum34(JobLocationEnumDto, {
|
|
9015
9249
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
9016
9250
|
", "
|
|
9017
9251
|
)}.`
|
|
9018
9252
|
})
|
|
9019
9253
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
9020
9254
|
__decorateClass([
|
|
9021
|
-
|
|
9255
|
+
IsEnum34(TypeOfEmploymentEnumDto, {
|
|
9022
9256
|
message: `Type of employment must be one of: ${Object.values(
|
|
9023
9257
|
TypeOfEmploymentEnumDto
|
|
9024
9258
|
).join(", ")}.`
|
|
9025
9259
|
})
|
|
9026
9260
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9027
9261
|
__decorateClass([
|
|
9028
|
-
|
|
9029
|
-
|
|
9262
|
+
IsString49({ message: "Onboarding Days must be a string." }),
|
|
9263
|
+
IsNotEmpty78({ message: "Onboarding Days is required." })
|
|
9030
9264
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9031
9265
|
__decorateClass([
|
|
9032
|
-
|
|
9033
|
-
|
|
9266
|
+
IsString49({ message: "Communication skills must be a string." }),
|
|
9267
|
+
IsNotEmpty78({ message: "Communication skills are required." })
|
|
9034
9268
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9035
9269
|
__decorateClass([
|
|
9036
|
-
|
|
9037
|
-
|
|
9270
|
+
IsString49({ message: "Currency must be a string." }),
|
|
9271
|
+
IsNotEmpty78({ message: "Currency is required." })
|
|
9038
9272
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
9039
9273
|
__decorateClass([
|
|
9040
|
-
|
|
9041
|
-
|
|
9274
|
+
Type13(() => Number),
|
|
9275
|
+
IsNumber14({}, { message: "Expected salary from must be a number." })
|
|
9042
9276
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
9043
9277
|
__decorateClass([
|
|
9044
|
-
|
|
9045
|
-
|
|
9278
|
+
Type13(() => Number),
|
|
9279
|
+
IsNumber14({}, { message: "Expected salary to must be a number." })
|
|
9046
9280
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
9047
9281
|
__decorateClass([
|
|
9048
9282
|
IsDateString3(
|
|
@@ -9057,19 +9291,19 @@ __decorateClass([
|
|
|
9057
9291
|
)
|
|
9058
9292
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9059
9293
|
__decorateClass([
|
|
9060
|
-
|
|
9061
|
-
|
|
9294
|
+
IsOptional51(),
|
|
9295
|
+
IsString49({ message: "Additional comment must be a string." })
|
|
9062
9296
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
9063
9297
|
__decorateClass([
|
|
9064
|
-
|
|
9298
|
+
IsOptional51(),
|
|
9065
9299
|
IsInt10({ message: "Country ID must be a valid integer." })
|
|
9066
9300
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
9067
9301
|
__decorateClass([
|
|
9068
|
-
|
|
9302
|
+
IsOptional51(),
|
|
9069
9303
|
IsInt10({ message: "State ID must be a valid integer." })
|
|
9070
9304
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
9071
9305
|
__decorateClass([
|
|
9072
|
-
|
|
9306
|
+
IsOptional51(),
|
|
9073
9307
|
IsInt10({ message: "City ID must be a valid integer." })
|
|
9074
9308
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
9075
9309
|
__decorateClass([
|
|
@@ -9077,18 +9311,18 @@ __decorateClass([
|
|
|
9077
9311
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
9078
9312
|
|
|
9079
9313
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
9080
|
-
import { Type as
|
|
9314
|
+
import { Type as Type14 } from "class-transformer";
|
|
9081
9315
|
import {
|
|
9082
|
-
IsString as
|
|
9083
|
-
IsEnum as
|
|
9316
|
+
IsString as IsString50,
|
|
9317
|
+
IsEnum as IsEnum35,
|
|
9084
9318
|
IsInt as IsInt11,
|
|
9085
|
-
IsOptional as
|
|
9086
|
-
IsArray as
|
|
9319
|
+
IsOptional as IsOptional52,
|
|
9320
|
+
IsArray as IsArray19,
|
|
9087
9321
|
IsDateString as IsDateString4,
|
|
9088
|
-
IsNotEmpty as
|
|
9089
|
-
ArrayNotEmpty as
|
|
9090
|
-
Min as
|
|
9091
|
-
IsNumber as
|
|
9322
|
+
IsNotEmpty as IsNotEmpty79,
|
|
9323
|
+
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9324
|
+
Min as Min8,
|
|
9325
|
+
IsNumber as IsNumber15
|
|
9092
9326
|
} from "class-validator";
|
|
9093
9327
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
9094
9328
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -9105,55 +9339,55 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
9105
9339
|
var AdminUpdateJobInformationDto = class {
|
|
9106
9340
|
};
|
|
9107
9341
|
__decorateClass([
|
|
9108
|
-
|
|
9109
|
-
|
|
9342
|
+
IsString50({ message: "Job role must be a string." }),
|
|
9343
|
+
IsNotEmpty79({ message: "Job role is required." })
|
|
9110
9344
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9111
9345
|
__decorateClass([
|
|
9112
|
-
|
|
9113
|
-
|
|
9346
|
+
IsOptional52(),
|
|
9347
|
+
IsString50({ message: "Note must be a string." })
|
|
9114
9348
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
9115
9349
|
__decorateClass([
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9350
|
+
IsArray19({ message: "Skills must be an array of skill names." }),
|
|
9351
|
+
ArrayNotEmpty11({ message: "At least one skill must be provided." }),
|
|
9352
|
+
IsString50({ each: true, message: "Each skill must be a valid string." })
|
|
9119
9353
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
9120
9354
|
__decorateClass([
|
|
9121
9355
|
IsInt11({ message: "Openings must be a valid integer." }),
|
|
9122
|
-
|
|
9356
|
+
Min8(1, { message: "There must be at least one opening." })
|
|
9123
9357
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
9124
9358
|
__decorateClass([
|
|
9125
|
-
|
|
9359
|
+
IsEnum35(JobLocationEnums, {
|
|
9126
9360
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
9127
9361
|
", "
|
|
9128
9362
|
)}.`
|
|
9129
9363
|
})
|
|
9130
9364
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
9131
9365
|
__decorateClass([
|
|
9132
|
-
|
|
9366
|
+
IsEnum35(TypeOfEmploymentEnums, {
|
|
9133
9367
|
message: `Type of employment must be one of: ${Object.values(
|
|
9134
9368
|
TypeOfEmploymentEnums
|
|
9135
9369
|
).join(", ")}.`
|
|
9136
9370
|
})
|
|
9137
9371
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9138
9372
|
__decorateClass([
|
|
9139
|
-
|
|
9140
|
-
|
|
9373
|
+
IsString50({ message: "Onboarding Days must be a string." }),
|
|
9374
|
+
IsNotEmpty79({ message: "Onboarding Days is required." })
|
|
9141
9375
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9142
9376
|
__decorateClass([
|
|
9143
|
-
|
|
9144
|
-
|
|
9377
|
+
IsString50({ message: "Communication skills must be a string." }),
|
|
9378
|
+
IsNotEmpty79({ message: "Communication skills are required." })
|
|
9145
9379
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9146
9380
|
__decorateClass([
|
|
9147
|
-
|
|
9148
|
-
|
|
9381
|
+
IsString50({ message: "Currency must be a string." }),
|
|
9382
|
+
IsNotEmpty79({ message: "Currency is required." })
|
|
9149
9383
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9150
9384
|
__decorateClass([
|
|
9151
|
-
|
|
9152
|
-
|
|
9385
|
+
Type14(() => Number),
|
|
9386
|
+
IsNumber15({}, { message: "Expected salary from must be a number." })
|
|
9153
9387
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
9154
9388
|
__decorateClass([
|
|
9155
|
-
|
|
9156
|
-
|
|
9389
|
+
Type14(() => Number),
|
|
9390
|
+
IsNumber15({}, { message: "Expected salary to must be a number." })
|
|
9157
9391
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
9158
9392
|
__decorateClass([
|
|
9159
9393
|
IsDateString4(
|
|
@@ -9168,19 +9402,19 @@ __decorateClass([
|
|
|
9168
9402
|
)
|
|
9169
9403
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9170
9404
|
__decorateClass([
|
|
9171
|
-
|
|
9172
|
-
|
|
9405
|
+
IsOptional52(),
|
|
9406
|
+
IsString50({ message: "Additional comment must be a string." })
|
|
9173
9407
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9174
9408
|
__decorateClass([
|
|
9175
|
-
|
|
9409
|
+
IsOptional52(),
|
|
9176
9410
|
IsInt11({ message: "Country ID must be a valid integer." })
|
|
9177
9411
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
9178
9412
|
__decorateClass([
|
|
9179
|
-
|
|
9413
|
+
IsOptional52(),
|
|
9180
9414
|
IsInt11({ message: "State ID must be a valid integer." })
|
|
9181
9415
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
9182
9416
|
__decorateClass([
|
|
9183
|
-
|
|
9417
|
+
IsOptional52(),
|
|
9184
9418
|
IsInt11({ message: "City ID must be a valid integer." })
|
|
9185
9419
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
9186
9420
|
__decorateClass([
|
|
@@ -9189,20 +9423,20 @@ __decorateClass([
|
|
|
9189
9423
|
|
|
9190
9424
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9191
9425
|
import {
|
|
9192
|
-
IsString as
|
|
9193
|
-
IsNotEmpty as
|
|
9194
|
-
IsArray as
|
|
9195
|
-
ArrayNotEmpty as
|
|
9196
|
-
IsNumber as
|
|
9197
|
-
IsOptional as
|
|
9198
|
-
IsEnum as
|
|
9199
|
-
Min as
|
|
9200
|
-
ValidateIf as
|
|
9201
|
-
MaxLength as
|
|
9202
|
-
Max as
|
|
9426
|
+
IsString as IsString51,
|
|
9427
|
+
IsNotEmpty as IsNotEmpty80,
|
|
9428
|
+
IsArray as IsArray20,
|
|
9429
|
+
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9430
|
+
IsNumber as IsNumber16,
|
|
9431
|
+
IsOptional as IsOptional53,
|
|
9432
|
+
IsEnum as IsEnum36,
|
|
9433
|
+
Min as Min9,
|
|
9434
|
+
ValidateIf as ValidateIf11,
|
|
9435
|
+
MaxLength as MaxLength22,
|
|
9436
|
+
Max as Max5,
|
|
9203
9437
|
IsInt as IsInt12
|
|
9204
9438
|
} from "class-validator";
|
|
9205
|
-
import { Type as
|
|
9439
|
+
import { Type as Type15 } from "class-transformer";
|
|
9206
9440
|
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
9207
9441
|
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
9208
9442
|
JobLocationAdminEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -9231,16 +9465,16 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9231
9465
|
var JobLocationAdminDto = class {
|
|
9232
9466
|
};
|
|
9233
9467
|
__decorateClass([
|
|
9234
|
-
|
|
9235
|
-
|
|
9468
|
+
IsOptional53(),
|
|
9469
|
+
IsNumber16()
|
|
9236
9470
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
9237
9471
|
__decorateClass([
|
|
9238
|
-
|
|
9239
|
-
|
|
9472
|
+
IsOptional53(),
|
|
9473
|
+
IsNumber16()
|
|
9240
9474
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
9241
9475
|
__decorateClass([
|
|
9242
|
-
|
|
9243
|
-
|
|
9476
|
+
IsOptional53(),
|
|
9477
|
+
IsNumber16()
|
|
9244
9478
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
9245
9479
|
var AdminJobBasicInformationV2Dto = class {
|
|
9246
9480
|
constructor() {
|
|
@@ -9248,157 +9482,157 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
9248
9482
|
}
|
|
9249
9483
|
};
|
|
9250
9484
|
__decorateClass([
|
|
9251
|
-
|
|
9252
|
-
|
|
9485
|
+
IsOptional53(),
|
|
9486
|
+
Type15(() => Boolean)
|
|
9253
9487
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
9254
9488
|
__decorateClass([
|
|
9255
9489
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9256
9490
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9257
9491
|
__decorateClass([
|
|
9258
|
-
|
|
9259
|
-
|
|
9492
|
+
IsNotEmpty80({ message: "Please enter job role" }),
|
|
9493
|
+
IsString51({ message: "Job role must be a string" })
|
|
9260
9494
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9261
9495
|
__decorateClass([
|
|
9262
|
-
|
|
9263
|
-
|
|
9496
|
+
IsOptional53(),
|
|
9497
|
+
IsString51({ message: "Note must be a string" })
|
|
9264
9498
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9265
9499
|
__decorateClass([
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9500
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9501
|
+
IsOptional53(),
|
|
9502
|
+
IsArray20({ message: "Skills must be an array" }),
|
|
9503
|
+
ArrayNotEmpty12({ message: "Please select at least one skill" }),
|
|
9504
|
+
IsString51({ each: true, message: "Each skill must be a string" }),
|
|
9505
|
+
Type15(() => String)
|
|
9272
9506
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9273
9507
|
__decorateClass([
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9508
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9509
|
+
IsNumber16({}, { message: "Openings must be a number" }),
|
|
9510
|
+
Min9(1, { message: "There must be at least 1 opening" }),
|
|
9511
|
+
Type15(() => Number)
|
|
9278
9512
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
9279
9513
|
__decorateClass([
|
|
9280
|
-
|
|
9281
|
-
|
|
9514
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9515
|
+
IsEnum36(JobLocationAdminEnumDto, {
|
|
9282
9516
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
9283
9517
|
", "
|
|
9284
9518
|
)}`
|
|
9285
9519
|
})
|
|
9286
9520
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
9287
9521
|
__decorateClass([
|
|
9288
|
-
|
|
9289
|
-
|
|
9522
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9523
|
+
IsEnum36(EmploymentTypeAdminEnumDto, {
|
|
9290
9524
|
message: `Type of employment must be one of: ${Object.values(
|
|
9291
9525
|
EmploymentTypeAdminEnumDto
|
|
9292
9526
|
).join(", ")}`
|
|
9293
9527
|
})
|
|
9294
9528
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9295
9529
|
__decorateClass([
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9530
|
+
IsOptional53(),
|
|
9531
|
+
IsNumber16({}, { message: "Expected salary (from) must be a number" }),
|
|
9532
|
+
Min9(0, { message: "Expected salary (from) cannot be negative" }),
|
|
9533
|
+
Type15(() => Number)
|
|
9300
9534
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
9301
9535
|
__decorateClass([
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9536
|
+
IsOptional53(),
|
|
9537
|
+
IsNumber16({}, { message: "Expected salary (to) must be a number" }),
|
|
9538
|
+
Min9(0, { message: "Expected salary (to) cannot be negative" }),
|
|
9539
|
+
Type15(() => Number)
|
|
9306
9540
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
9307
9541
|
__decorateClass([
|
|
9308
|
-
|
|
9309
|
-
|
|
9542
|
+
IsOptional53(),
|
|
9543
|
+
Type15(() => JobLocationAdminDto)
|
|
9310
9544
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9311
9545
|
__decorateClass([
|
|
9312
|
-
|
|
9313
|
-
|
|
9546
|
+
IsOptional53(),
|
|
9547
|
+
IsString51({ message: "Academic qualification must be a string" })
|
|
9314
9548
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9315
9549
|
__decorateClass([
|
|
9316
|
-
|
|
9317
|
-
|
|
9550
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9551
|
+
IsEnum36(typeOfExperienceAdminEnumDto, {
|
|
9318
9552
|
message: `Type of experience must be one of: ${Object.values(
|
|
9319
9553
|
typeOfExperienceAdminEnumDto
|
|
9320
9554
|
).join(", ")}`
|
|
9321
9555
|
})
|
|
9322
9556
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9323
9557
|
__decorateClass([
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9558
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9559
|
+
IsNotEmpty80({ message: "Please enter the years of experience" }),
|
|
9560
|
+
IsString51({ message: "Years of experience must be a string" })
|
|
9327
9561
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9328
9562
|
__decorateClass([
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9563
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9564
|
+
IsNotEmpty80({ message: "Please enter the years of experience upto" }),
|
|
9565
|
+
IsString51({ message: "Years of experience must be a string" })
|
|
9332
9566
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9333
9567
|
__decorateClass([
|
|
9334
|
-
|
|
9335
|
-
|
|
9568
|
+
IsOptional53(),
|
|
9569
|
+
IsString51({ message: "Business industry must be a string" })
|
|
9336
9570
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9337
9571
|
__decorateClass([
|
|
9338
|
-
|
|
9339
|
-
|
|
9572
|
+
IsOptional53(),
|
|
9573
|
+
IsString51({ message: "Project name must be a string" })
|
|
9340
9574
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9341
9575
|
__decorateClass([
|
|
9342
|
-
|
|
9576
|
+
IsOptional53()
|
|
9343
9577
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
9344
9578
|
__decorateClass([
|
|
9345
|
-
|
|
9579
|
+
IsOptional53()
|
|
9346
9580
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
9347
9581
|
__decorateClass([
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9582
|
+
IsOptional53(),
|
|
9583
|
+
IsNumber16({}, { message: "Expected annual budget (from) must be a number" }),
|
|
9584
|
+
Min9(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
9585
|
+
Type15(() => Number)
|
|
9352
9586
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
9353
9587
|
__decorateClass([
|
|
9354
|
-
|
|
9588
|
+
IsOptional53()
|
|
9355
9589
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
9356
9590
|
__decorateClass([
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9591
|
+
IsOptional53(),
|
|
9592
|
+
IsNumber16({}, { message: "Expected annual budget (to) must be a number" }),
|
|
9593
|
+
Min9(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
9594
|
+
Type15(() => Number)
|
|
9361
9595
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
9362
9596
|
__decorateClass([
|
|
9363
|
-
|
|
9597
|
+
IsOptional53()
|
|
9364
9598
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
9365
9599
|
__decorateClass([
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9600
|
+
IsOptional53(),
|
|
9601
|
+
IsNumber16({}, { message: "Number of hours must be a number" }),
|
|
9602
|
+
Min9(0, { message: "Number of hours cannot be negative" }),
|
|
9603
|
+
Max5(40, { message: "Number of hours cannot exceed 40" }),
|
|
9604
|
+
Type15(() => Number)
|
|
9371
9605
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
9372
9606
|
__decorateClass([
|
|
9373
|
-
|
|
9607
|
+
IsOptional53()
|
|
9374
9608
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
9375
9609
|
__decorateClass([
|
|
9376
|
-
|
|
9610
|
+
IsOptional53()
|
|
9377
9611
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
9378
9612
|
__decorateClass([
|
|
9379
|
-
|
|
9613
|
+
IsOptional53()
|
|
9380
9614
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
9381
9615
|
__decorateClass([
|
|
9382
|
-
|
|
9616
|
+
IsOptional53()
|
|
9383
9617
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9384
9618
|
__decorateClass([
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9619
|
+
IsOptional53(),
|
|
9620
|
+
IsString51({ message: "Additional comment must be a string" }),
|
|
9621
|
+
MaxLength22(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9388
9622
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9389
9623
|
__decorateClass([
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9624
|
+
ValidateIf11((o) => !o.isDraft),
|
|
9625
|
+
IsArray20({ message: "Good to have skills must be an array" }),
|
|
9626
|
+
IsString51({ each: true, message: "Each skill must be a string" }),
|
|
9627
|
+
IsOptional53(),
|
|
9628
|
+
Type15(() => String)
|
|
9395
9629
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
9396
9630
|
__decorateClass([
|
|
9397
|
-
|
|
9631
|
+
IsOptional53()
|
|
9398
9632
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9399
9633
|
__decorateClass([
|
|
9400
|
-
|
|
9401
|
-
|
|
9634
|
+
IsOptional53(),
|
|
9635
|
+
IsEnum36(AdminStepCompletedEnumV2, {
|
|
9402
9636
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9403
9637
|
AdminStepCompletedEnumV2
|
|
9404
9638
|
).join(", ")}`
|
|
@@ -9412,7 +9646,7 @@ var LEAD_PATTERN = {
|
|
|
9412
9646
|
};
|
|
9413
9647
|
|
|
9414
9648
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9415
|
-
import { IsString as
|
|
9649
|
+
import { IsString as IsString52, IsEmail as IsEmail19, IsOptional as IsOptional54, IsEnum as IsEnum37 } from "class-validator";
|
|
9416
9650
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9417
9651
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9418
9652
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9421,23 +9655,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9421
9655
|
var CreateLeadDto = class {
|
|
9422
9656
|
};
|
|
9423
9657
|
__decorateClass([
|
|
9424
|
-
|
|
9658
|
+
IsString52({ message: "Name must be a string" })
|
|
9425
9659
|
], CreateLeadDto.prototype, "name", 2);
|
|
9426
9660
|
__decorateClass([
|
|
9427
9661
|
IsEmail19({}, { message: "Invalid email address" })
|
|
9428
9662
|
], CreateLeadDto.prototype, "email", 2);
|
|
9429
9663
|
__decorateClass([
|
|
9430
|
-
|
|
9664
|
+
IsString52({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9431
9665
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9432
9666
|
__decorateClass([
|
|
9433
|
-
|
|
9667
|
+
IsString52({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9434
9668
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9435
9669
|
__decorateClass([
|
|
9436
|
-
|
|
9437
|
-
|
|
9670
|
+
IsOptional54(),
|
|
9671
|
+
IsString52({ message: "Description must be a string" })
|
|
9438
9672
|
], CreateLeadDto.prototype, "description", 2);
|
|
9439
9673
|
__decorateClass([
|
|
9440
|
-
|
|
9674
|
+
IsEnum37(CategoryEmumDto, {
|
|
9441
9675
|
message: `Type of category must be one of: ${Object.values(
|
|
9442
9676
|
CategoryEmumDto
|
|
9443
9677
|
).join(", ")}`
|
|
@@ -9459,58 +9693,58 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9459
9693
|
};
|
|
9460
9694
|
|
|
9461
9695
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9462
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as
|
|
9696
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty81, IsOptional as IsOptional55, IsString as IsString53 } from "class-validator";
|
|
9463
9697
|
var CreateAdminRoleDto = class {
|
|
9464
9698
|
};
|
|
9465
9699
|
__decorateClass([
|
|
9466
|
-
|
|
9467
|
-
|
|
9700
|
+
IsNotEmpty81({ message: "Please enter admin role name." }),
|
|
9701
|
+
IsString53({ message: "Role name must be a string." })
|
|
9468
9702
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9469
9703
|
__decorateClass([
|
|
9470
|
-
|
|
9471
|
-
|
|
9704
|
+
IsOptional55(),
|
|
9705
|
+
IsString53({ message: "Role description must be a string." })
|
|
9472
9706
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9473
9707
|
__decorateClass([
|
|
9474
|
-
|
|
9708
|
+
IsOptional55(),
|
|
9475
9709
|
IsBoolean18({ message: "Is active must be a boolean value" })
|
|
9476
9710
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9477
9711
|
|
|
9478
9712
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9479
|
-
import { IsBoolean as IsBoolean19, IsNotEmpty as
|
|
9713
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty82, IsOptional as IsOptional56, IsString as IsString54 } from "class-validator";
|
|
9480
9714
|
var UpdateAdminRoleDto = class {
|
|
9481
9715
|
};
|
|
9482
9716
|
__decorateClass([
|
|
9483
|
-
|
|
9484
|
-
|
|
9717
|
+
IsNotEmpty82({ message: "Please enter admin role name." }),
|
|
9718
|
+
IsString54({ message: "Role name must be a string." })
|
|
9485
9719
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9486
9720
|
__decorateClass([
|
|
9487
|
-
|
|
9488
|
-
|
|
9721
|
+
IsOptional56(),
|
|
9722
|
+
IsString54({ message: "Role description must be a string." })
|
|
9489
9723
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9490
9724
|
__decorateClass([
|
|
9491
|
-
|
|
9725
|
+
IsOptional56(),
|
|
9492
9726
|
IsBoolean19({ message: "Is active must be a boolean value." })
|
|
9493
9727
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9494
9728
|
|
|
9495
9729
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9496
|
-
import { IsNotEmpty as
|
|
9730
|
+
import { IsNotEmpty as IsNotEmpty83, IsString as IsString55 } from "class-validator";
|
|
9497
9731
|
var AttachPermissionsToRoleDto = class {
|
|
9498
9732
|
};
|
|
9499
9733
|
__decorateClass([
|
|
9500
|
-
|
|
9501
|
-
|
|
9734
|
+
IsNotEmpty83({ message: "Please enter admin role ID." }),
|
|
9735
|
+
IsString55({ message: "Role ID must be a string." })
|
|
9502
9736
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9503
9737
|
__decorateClass([
|
|
9504
|
-
|
|
9505
|
-
|
|
9738
|
+
IsNotEmpty83({ message: "Please enter permission IDs." }),
|
|
9739
|
+
IsString55({ message: "Permission IDs must be a comma-separated string." })
|
|
9506
9740
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9507
9741
|
|
|
9508
9742
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9509
|
-
import { IsBoolean as IsBoolean20, IsNotEmpty as
|
|
9743
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty84 } from "class-validator";
|
|
9510
9744
|
var UpdateAdminRoleStatusDto = class {
|
|
9511
9745
|
};
|
|
9512
9746
|
__decorateClass([
|
|
9513
|
-
|
|
9747
|
+
IsNotEmpty84({ message: "Please specify admin role status." }),
|
|
9514
9748
|
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9515
9749
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9516
9750
|
|
|
@@ -9593,17 +9827,17 @@ var INTERVIEW_PATTERN = {
|
|
|
9593
9827
|
|
|
9594
9828
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9595
9829
|
import {
|
|
9596
|
-
IsString as
|
|
9597
|
-
IsNotEmpty as
|
|
9598
|
-
IsArray as
|
|
9599
|
-
ArrayNotEmpty as
|
|
9830
|
+
IsString as IsString56,
|
|
9831
|
+
IsNotEmpty as IsNotEmpty85,
|
|
9832
|
+
IsArray as IsArray21,
|
|
9833
|
+
ArrayNotEmpty as ArrayNotEmpty13,
|
|
9600
9834
|
IsEmail as IsEmail20,
|
|
9601
9835
|
IsUUID as IsUUID20,
|
|
9602
|
-
IsEnum as
|
|
9603
|
-
ValidateIf as
|
|
9604
|
-
ValidateNested as
|
|
9836
|
+
IsEnum as IsEnum38,
|
|
9837
|
+
ValidateIf as ValidateIf12,
|
|
9838
|
+
ValidateNested as ValidateNested8
|
|
9605
9839
|
} from "class-validator";
|
|
9606
|
-
import { Type as
|
|
9840
|
+
import { Type as Type16 } from "class-transformer";
|
|
9607
9841
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
9608
9842
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
9609
9843
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -9617,39 +9851,39 @@ __decorateClass([
|
|
|
9617
9851
|
IsUUID20()
|
|
9618
9852
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
9619
9853
|
__decorateClass([
|
|
9620
|
-
|
|
9854
|
+
IsEnum38(CandidateType, {
|
|
9621
9855
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
9622
9856
|
})
|
|
9623
9857
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
9624
9858
|
var NewCandidateDto = class {
|
|
9625
9859
|
};
|
|
9626
9860
|
__decorateClass([
|
|
9627
|
-
|
|
9628
|
-
|
|
9861
|
+
IsNotEmpty85({ message: "Please enter the candidate name" }),
|
|
9862
|
+
IsString56({ message: "Name must be a string" })
|
|
9629
9863
|
], NewCandidateDto.prototype, "name", 2);
|
|
9630
9864
|
__decorateClass([
|
|
9631
9865
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
9632
9866
|
], NewCandidateDto.prototype, "email", 2);
|
|
9633
9867
|
__decorateClass([
|
|
9634
|
-
|
|
9868
|
+
IsEnum38(CandidateType, {
|
|
9635
9869
|
message: "type must be NEW"
|
|
9636
9870
|
})
|
|
9637
9871
|
], NewCandidateDto.prototype, "type", 2);
|
|
9638
9872
|
var CandidatesDto = class {
|
|
9639
9873
|
};
|
|
9640
9874
|
__decorateClass([
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9875
|
+
ValidateIf12((o) => o.exixtingCandidates?.length > 0),
|
|
9876
|
+
IsArray21({ message: "Existing candidates should be an array." }),
|
|
9877
|
+
ArrayNotEmpty13({ message: "Please select at least one candidate." }),
|
|
9878
|
+
ValidateNested8({ each: true }),
|
|
9879
|
+
Type16(() => ExistingCandidateDto)
|
|
9646
9880
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
9647
9881
|
__decorateClass([
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9882
|
+
ValidateIf12((o) => o.newCandidates?.length > 0),
|
|
9883
|
+
IsArray21({ message: "New candidates should be an array." }),
|
|
9884
|
+
ArrayNotEmpty13({ message: "Please add at least one candidate." }),
|
|
9885
|
+
ValidateNested8({ each: true }),
|
|
9886
|
+
Type16(() => NewCandidateDto)
|
|
9653
9887
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
9654
9888
|
var InterviewInviteDto = class {
|
|
9655
9889
|
};
|
|
@@ -9657,22 +9891,22 @@ __decorateClass([
|
|
|
9657
9891
|
IsUUID20()
|
|
9658
9892
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
9659
9893
|
__decorateClass([
|
|
9660
|
-
|
|
9661
|
-
|
|
9894
|
+
ValidateNested8({ each: true }),
|
|
9895
|
+
Type16(() => CandidatesDto)
|
|
9662
9896
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
9663
9897
|
|
|
9664
9898
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9665
9899
|
import {
|
|
9666
|
-
IsString as
|
|
9667
|
-
IsNotEmpty as
|
|
9668
|
-
IsArray as
|
|
9900
|
+
IsString as IsString57,
|
|
9901
|
+
IsNotEmpty as IsNotEmpty86,
|
|
9902
|
+
IsArray as IsArray22,
|
|
9669
9903
|
IsUUID as IsUUID21,
|
|
9670
|
-
IsEnum as
|
|
9904
|
+
IsEnum as IsEnum39,
|
|
9671
9905
|
IsEmail as IsEmail21,
|
|
9672
|
-
ValidateNested as
|
|
9673
|
-
IsOptional as
|
|
9906
|
+
ValidateNested as ValidateNested9,
|
|
9907
|
+
IsOptional as IsOptional58
|
|
9674
9908
|
} from "class-validator";
|
|
9675
|
-
import { Type as
|
|
9909
|
+
import { Type as Type17 } from "class-transformer";
|
|
9676
9910
|
var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateType2) => {
|
|
9677
9911
|
InterviewInviteCandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
9678
9912
|
InterviewInviteCandidateType2["APPLICANTS"] = "APPLICANTS";
|
|
@@ -9684,342 +9918,342 @@ var ExistingCandidateDto2 = class {
|
|
|
9684
9918
|
};
|
|
9685
9919
|
__decorateClass([
|
|
9686
9920
|
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
9687
|
-
|
|
9921
|
+
IsNotEmpty86({ message: "Candidate ID is required." })
|
|
9688
9922
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
9689
9923
|
__decorateClass([
|
|
9690
|
-
|
|
9924
|
+
IsEnum39(InterviewInviteCandidateType, {
|
|
9691
9925
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
9692
9926
|
}),
|
|
9693
|
-
|
|
9927
|
+
IsNotEmpty86({ message: "Candidate type is required." })
|
|
9694
9928
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
9695
9929
|
var NewCandidateDto2 = class {
|
|
9696
9930
|
};
|
|
9697
9931
|
__decorateClass([
|
|
9698
|
-
|
|
9699
|
-
|
|
9932
|
+
IsString57({ message: "Name must be a string." }),
|
|
9933
|
+
IsNotEmpty86({ message: "Candidate name is required." })
|
|
9700
9934
|
], NewCandidateDto2.prototype, "name", 2);
|
|
9701
9935
|
__decorateClass([
|
|
9702
9936
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
9703
|
-
|
|
9937
|
+
IsNotEmpty86({ message: "Email is required." })
|
|
9704
9938
|
], NewCandidateDto2.prototype, "email", 2);
|
|
9705
9939
|
__decorateClass([
|
|
9706
|
-
|
|
9940
|
+
IsEnum39(InterviewInviteCandidateType, {
|
|
9707
9941
|
message: "Type must be NEW for new candidates."
|
|
9708
9942
|
}),
|
|
9709
|
-
|
|
9943
|
+
IsNotEmpty86({ message: "Candidate type is required." })
|
|
9710
9944
|
], NewCandidateDto2.prototype, "type", 2);
|
|
9711
9945
|
var SendInterviewInviteDto = class {
|
|
9712
9946
|
};
|
|
9713
9947
|
__decorateClass([
|
|
9714
9948
|
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
9715
|
-
|
|
9949
|
+
IsNotEmpty86({ message: "Job ID is required." })
|
|
9716
9950
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
9717
9951
|
__decorateClass([
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9952
|
+
IsArray22({ message: "Existing candidates must be an array." }),
|
|
9953
|
+
ValidateNested9({ each: true }),
|
|
9954
|
+
Type17(() => ExistingCandidateDto2),
|
|
9955
|
+
IsOptional58()
|
|
9722
9956
|
], SendInterviewInviteDto.prototype, "existingCandidates", 2);
|
|
9723
9957
|
__decorateClass([
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9958
|
+
IsArray22({ message: "New candidates must be an array." }),
|
|
9959
|
+
ValidateNested9({ each: true }),
|
|
9960
|
+
Type17(() => NewCandidateDto2),
|
|
9961
|
+
IsOptional58()
|
|
9728
9962
|
], SendInterviewInviteDto.prototype, "newCandidates", 2);
|
|
9729
9963
|
|
|
9730
9964
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
9731
9965
|
import {
|
|
9732
|
-
IsString as
|
|
9733
|
-
IsNotEmpty as
|
|
9966
|
+
IsString as IsString58,
|
|
9967
|
+
IsNotEmpty as IsNotEmpty87,
|
|
9734
9968
|
IsEmail as IsEmail22,
|
|
9735
|
-
IsNumber as
|
|
9969
|
+
IsNumber as IsNumber17
|
|
9736
9970
|
} from "class-validator";
|
|
9737
9971
|
var CreateF2FInterviewDto = class {
|
|
9738
9972
|
};
|
|
9739
9973
|
__decorateClass([
|
|
9740
9974
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
9741
|
-
|
|
9975
|
+
IsNotEmpty87({ message: "Invitee email is required." })
|
|
9742
9976
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
9743
9977
|
__decorateClass([
|
|
9744
|
-
|
|
9745
|
-
|
|
9978
|
+
IsString58({ message: "Invitee name must be a string." }),
|
|
9979
|
+
IsNotEmpty87({ message: "Invitee name is required." })
|
|
9746
9980
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
9747
9981
|
__decorateClass([
|
|
9748
|
-
|
|
9982
|
+
IsNumber17({}, { message: "Interview ID must be a number." })
|
|
9749
9983
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
9750
9984
|
__decorateClass([
|
|
9751
|
-
|
|
9985
|
+
IsNumber17({}, { message: "Candidate ID must be a number." })
|
|
9752
9986
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
9753
9987
|
|
|
9754
9988
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
9755
|
-
import {
|
|
9756
|
-
IsString as
|
|
9757
|
-
IsNotEmpty as
|
|
9989
|
+
import {
|
|
9990
|
+
IsString as IsString59,
|
|
9991
|
+
IsNotEmpty as IsNotEmpty88,
|
|
9758
9992
|
IsEmail as IsEmail23,
|
|
9759
|
-
IsNumber as
|
|
9993
|
+
IsNumber as IsNumber18
|
|
9760
9994
|
} from "class-validator";
|
|
9761
9995
|
var CreateF2FInterviewDirectDto = class {
|
|
9762
9996
|
};
|
|
9763
9997
|
__decorateClass([
|
|
9764
9998
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
9765
|
-
|
|
9999
|
+
IsNotEmpty88({ message: "Invitee email is required." })
|
|
9766
10000
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
9767
10001
|
__decorateClass([
|
|
9768
|
-
|
|
9769
|
-
|
|
10002
|
+
IsString59({ message: "Invitee name must be a string." }),
|
|
10003
|
+
IsNotEmpty88({ message: "Invitee name is required." })
|
|
9770
10004
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
9771
10005
|
__decorateClass([
|
|
9772
|
-
|
|
10006
|
+
IsNumber18({}, { message: "Job ID must be a number." })
|
|
9773
10007
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
9774
10008
|
__decorateClass([
|
|
9775
|
-
|
|
10009
|
+
IsNumber18({}, { message: "Candidate ID must be a number." })
|
|
9776
10010
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
9777
10011
|
|
|
9778
10012
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
9779
10013
|
import {
|
|
9780
|
-
IsString as
|
|
9781
|
-
IsNotEmpty as
|
|
9782
|
-
IsOptional as
|
|
10014
|
+
IsString as IsString60,
|
|
10015
|
+
IsNotEmpty as IsNotEmpty89,
|
|
10016
|
+
IsOptional as IsOptional59,
|
|
9783
10017
|
IsUUID as IsUUID22
|
|
9784
10018
|
} from "class-validator";
|
|
9785
10019
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
9786
10020
|
};
|
|
9787
10021
|
__decorateClass([
|
|
9788
10022
|
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
9789
|
-
|
|
10023
|
+
IsNotEmpty89({ message: "F2F Interview ID is required." })
|
|
9790
10024
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
9791
10025
|
__decorateClass([
|
|
9792
|
-
|
|
10026
|
+
IsNotEmpty89({ message: "Rescheduled date is required." })
|
|
9793
10027
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
9794
10028
|
__decorateClass([
|
|
9795
|
-
|
|
9796
|
-
|
|
10029
|
+
IsString60({ message: "Rescheduled slot must be a string." }),
|
|
10030
|
+
IsNotEmpty89({ message: "Rescheduled slot is required." })
|
|
9797
10031
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
9798
10032
|
__decorateClass([
|
|
9799
|
-
|
|
9800
|
-
|
|
10033
|
+
IsOptional59(),
|
|
10034
|
+
IsString60({ message: "Freelancer request reason must be a string." })
|
|
9801
10035
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9802
10036
|
|
|
9803
10037
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
9804
10038
|
import {
|
|
9805
|
-
IsString as
|
|
9806
|
-
IsNotEmpty as
|
|
10039
|
+
IsString as IsString61,
|
|
10040
|
+
IsNotEmpty as IsNotEmpty90
|
|
9807
10041
|
} from "class-validator";
|
|
9808
10042
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
9809
10043
|
};
|
|
9810
10044
|
__decorateClass([
|
|
9811
|
-
|
|
10045
|
+
IsNotEmpty90({ message: "AI Interview ID is required." })
|
|
9812
10046
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
9813
10047
|
__decorateClass([
|
|
9814
|
-
|
|
10048
|
+
IsString61({ message: "Freelancer reason must be a string." })
|
|
9815
10049
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9816
10050
|
|
|
9817
10051
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
9818
10052
|
import {
|
|
9819
|
-
IsString as
|
|
10053
|
+
IsString as IsString62
|
|
9820
10054
|
} from "class-validator";
|
|
9821
10055
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
9822
10056
|
};
|
|
9823
10057
|
__decorateClass([
|
|
9824
|
-
|
|
10058
|
+
IsString62({ message: "Client reject reason must be a string." })
|
|
9825
10059
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9826
10060
|
|
|
9827
10061
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
9828
|
-
import { IsOptional as
|
|
10062
|
+
import { IsOptional as IsOptional61, IsString as IsString63 } from "class-validator";
|
|
9829
10063
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
9830
10064
|
};
|
|
9831
10065
|
__decorateClass([
|
|
9832
|
-
|
|
9833
|
-
|
|
10066
|
+
IsOptional61(),
|
|
10067
|
+
IsString63()
|
|
9834
10068
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9835
10069
|
|
|
9836
10070
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
9837
|
-
import { IsNotEmpty as
|
|
10071
|
+
import { IsNotEmpty as IsNotEmpty91, IsString as IsString64, IsOptional as IsOptional62, IsObject as IsObject6 } from "class-validator";
|
|
9838
10072
|
var CaptureAiInterviewResultPublicDto = class {
|
|
9839
10073
|
};
|
|
9840
10074
|
__decorateClass([
|
|
9841
|
-
|
|
9842
|
-
|
|
10075
|
+
IsNotEmpty91({ message: "AI Interview UUID is required" }),
|
|
10076
|
+
IsString64({ message: "AI Interview UUID must be a string" })
|
|
9843
10077
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
9844
10078
|
__decorateClass([
|
|
9845
|
-
|
|
10079
|
+
IsOptional62(),
|
|
9846
10080
|
IsObject6()
|
|
9847
10081
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
9848
10082
|
__decorateClass([
|
|
9849
|
-
|
|
9850
|
-
|
|
10083
|
+
IsOptional62(),
|
|
10084
|
+
IsString64()
|
|
9851
10085
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
9852
10086
|
|
|
9853
10087
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
9854
|
-
import { IsNotEmpty as
|
|
10088
|
+
import { IsNotEmpty as IsNotEmpty92, IsString as IsString65, IsNumber as IsNumber19 } from "class-validator";
|
|
9855
10089
|
var CreateInterviewBasicInformationDto = class {
|
|
9856
10090
|
};
|
|
9857
10091
|
__decorateClass([
|
|
9858
|
-
|
|
9859
|
-
|
|
10092
|
+
IsNotEmpty92({ message: "Job ID is required" }),
|
|
10093
|
+
IsNumber19({}, { message: "Job ID must be a number" })
|
|
9860
10094
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
9861
10095
|
__decorateClass([
|
|
9862
|
-
|
|
9863
|
-
|
|
10096
|
+
IsNotEmpty92({ message: "Interview name is required" }),
|
|
10097
|
+
IsString65({ message: "Interview name must be a string" })
|
|
9864
10098
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
9865
10099
|
|
|
9866
10100
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
9867
|
-
import { IsOptional as
|
|
10101
|
+
import { IsOptional as IsOptional64, IsString as IsString66, IsNumber as IsNumber20, IsArray as IsArray24, IsDateString as IsDateString8 } from "class-validator";
|
|
9868
10102
|
var UpdateInterviewBasicInformationDto = class {
|
|
9869
10103
|
};
|
|
9870
10104
|
__decorateClass([
|
|
9871
|
-
|
|
9872
|
-
|
|
10105
|
+
IsOptional64(),
|
|
10106
|
+
IsString66()
|
|
9873
10107
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
9874
10108
|
__decorateClass([
|
|
9875
|
-
|
|
9876
|
-
|
|
10109
|
+
IsOptional64(),
|
|
10110
|
+
IsString66()
|
|
9877
10111
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
9878
10112
|
__decorateClass([
|
|
9879
|
-
|
|
10113
|
+
IsOptional64(),
|
|
9880
10114
|
IsDateString8()
|
|
9881
10115
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
9882
10116
|
__decorateClass([
|
|
9883
|
-
|
|
9884
|
-
|
|
10117
|
+
IsOptional64(),
|
|
10118
|
+
IsNumber20({}, { message: "Duration must be a number" })
|
|
9885
10119
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
9886
10120
|
__decorateClass([
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
10121
|
+
IsOptional64(),
|
|
10122
|
+
IsArray24(),
|
|
10123
|
+
IsNumber20({}, { each: true, message: "Each skill ID must be a number" })
|
|
9890
10124
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
9891
10125
|
__decorateClass([
|
|
9892
|
-
|
|
9893
|
-
|
|
10126
|
+
IsOptional64(),
|
|
10127
|
+
IsString66()
|
|
9894
10128
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
9895
10129
|
|
|
9896
10130
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
9897
10131
|
import {
|
|
9898
|
-
IsArray as
|
|
9899
|
-
IsNotEmpty as
|
|
9900
|
-
IsOptional as
|
|
9901
|
-
IsString as
|
|
9902
|
-
ValidateNested as
|
|
10132
|
+
IsArray as IsArray25,
|
|
10133
|
+
IsNotEmpty as IsNotEmpty93,
|
|
10134
|
+
IsOptional as IsOptional65,
|
|
10135
|
+
IsString as IsString67,
|
|
10136
|
+
ValidateNested as ValidateNested10
|
|
9903
10137
|
} from "class-validator";
|
|
9904
|
-
import { Type as
|
|
10138
|
+
import { Type as Type18 } from "class-transformer";
|
|
9905
10139
|
var InterviewSkillItemDto = class {
|
|
9906
10140
|
};
|
|
9907
10141
|
__decorateClass([
|
|
9908
|
-
|
|
10142
|
+
IsOptional65()
|
|
9909
10143
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
9910
10144
|
__decorateClass([
|
|
9911
|
-
|
|
9912
|
-
|
|
10145
|
+
IsString67({ message: "Skill name must be a string." }),
|
|
10146
|
+
IsNotEmpty93({ message: "Skill name is required." })
|
|
9913
10147
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
9914
10148
|
__decorateClass([
|
|
9915
|
-
|
|
9916
|
-
|
|
10149
|
+
IsOptional65(),
|
|
10150
|
+
IsString67({ message: "Skill description must be a string." })
|
|
9917
10151
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
9918
10152
|
var CreateInterviewSkillsDto = class {
|
|
9919
10153
|
};
|
|
9920
10154
|
__decorateClass([
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
10155
|
+
IsArray25({ message: "Skills must be an array." }),
|
|
10156
|
+
IsNotEmpty93({ message: "At least one skill is required." }),
|
|
10157
|
+
ValidateNested10({ each: true }),
|
|
10158
|
+
Type18(() => InterviewSkillItemDto)
|
|
9925
10159
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
9926
10160
|
|
|
9927
10161
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
9928
10162
|
import {
|
|
9929
|
-
IsArray as
|
|
9930
|
-
IsNotEmpty as
|
|
9931
|
-
IsOptional as
|
|
9932
|
-
IsString as
|
|
10163
|
+
IsArray as IsArray26,
|
|
10164
|
+
IsNotEmpty as IsNotEmpty94,
|
|
10165
|
+
IsOptional as IsOptional66,
|
|
10166
|
+
IsString as IsString68,
|
|
9933
10167
|
IsUUID as IsUUID24,
|
|
9934
|
-
ValidateNested as
|
|
10168
|
+
ValidateNested as ValidateNested11
|
|
9935
10169
|
} from "class-validator";
|
|
9936
|
-
import { Type as
|
|
10170
|
+
import { Type as Type19 } from "class-transformer";
|
|
9937
10171
|
var CustomQuestionItemDto = class {
|
|
9938
10172
|
};
|
|
9939
10173
|
__decorateClass([
|
|
9940
|
-
|
|
10174
|
+
IsOptional66(),
|
|
9941
10175
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9942
10176
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
9943
10177
|
__decorateClass([
|
|
9944
|
-
|
|
9945
|
-
|
|
10178
|
+
IsString68({ message: "Question must be a string." }),
|
|
10179
|
+
IsNotEmpty94({ message: "Question is required." })
|
|
9946
10180
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
9947
10181
|
var AiQuestionItemDto = class {
|
|
9948
10182
|
};
|
|
9949
10183
|
__decorateClass([
|
|
9950
|
-
|
|
10184
|
+
IsOptional66(),
|
|
9951
10185
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9952
10186
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
9953
10187
|
__decorateClass([
|
|
9954
|
-
|
|
9955
|
-
|
|
10188
|
+
IsString68({ message: "Question must be a string." }),
|
|
10189
|
+
IsNotEmpty94({ message: "Question is required." })
|
|
9956
10190
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
9957
10191
|
__decorateClass([
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
10192
|
+
IsOptional66(),
|
|
10193
|
+
IsArray26({ message: "Concepts must be an array." }),
|
|
10194
|
+
IsString68({ each: true, message: "Each concept must be a string." })
|
|
9961
10195
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
9962
10196
|
var CreateInterviewQuestionsDto = class {
|
|
9963
10197
|
};
|
|
9964
10198
|
__decorateClass([
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
10199
|
+
IsOptional66(),
|
|
10200
|
+
IsArray26({ message: "Questions must be an array." }),
|
|
10201
|
+
ValidateNested11({ each: true }),
|
|
10202
|
+
Type19(() => CustomQuestionItemDto)
|
|
9969
10203
|
], CreateInterviewQuestionsDto.prototype, "questions", 2);
|
|
9970
10204
|
__decorateClass([
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
10205
|
+
IsOptional66(),
|
|
10206
|
+
IsArray26({ message: "AI questions must be an array." }),
|
|
10207
|
+
ValidateNested11({ each: true }),
|
|
10208
|
+
Type19(() => AiQuestionItemDto)
|
|
9975
10209
|
], CreateInterviewQuestionsDto.prototype, "aiQuestions", 2);
|
|
9976
10210
|
|
|
9977
10211
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
9978
10212
|
import {
|
|
9979
10213
|
IsBoolean as IsBoolean21,
|
|
9980
|
-
IsOptional as
|
|
9981
|
-
IsString as
|
|
10214
|
+
IsOptional as IsOptional67,
|
|
10215
|
+
IsString as IsString69
|
|
9982
10216
|
} from "class-validator";
|
|
9983
|
-
import { Type as
|
|
10217
|
+
import { Type as Type20 } from "class-transformer";
|
|
9984
10218
|
var UpdateInterviewSettingDto = class {
|
|
9985
10219
|
};
|
|
9986
10220
|
__decorateClass([
|
|
9987
|
-
|
|
9988
|
-
|
|
10221
|
+
IsOptional67(),
|
|
10222
|
+
IsString69({ message: "Interview language must be a string." })
|
|
9989
10223
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
9990
10224
|
__decorateClass([
|
|
9991
|
-
|
|
10225
|
+
IsOptional67(),
|
|
9992
10226
|
IsBoolean21({ message: "Allow proctoring must be a boolean." }),
|
|
9993
|
-
|
|
10227
|
+
Type20(() => Boolean)
|
|
9994
10228
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
9995
10229
|
__decorateClass([
|
|
9996
|
-
|
|
9997
|
-
|
|
10230
|
+
IsOptional67(),
|
|
10231
|
+
IsString69({ message: "Interview duration must be a string." })
|
|
9998
10232
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
9999
10233
|
__decorateClass([
|
|
10000
|
-
|
|
10001
|
-
|
|
10234
|
+
IsOptional67(),
|
|
10235
|
+
IsString69({ message: "Interview validity period must be a string." })
|
|
10002
10236
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
10003
10237
|
__decorateClass([
|
|
10004
|
-
|
|
10005
|
-
|
|
10238
|
+
IsOptional67(),
|
|
10239
|
+
IsString69({ message: "Maximum attempts allowed must be a string." })
|
|
10006
10240
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
10007
10241
|
__decorateClass([
|
|
10008
|
-
|
|
10009
|
-
|
|
10242
|
+
IsOptional67(),
|
|
10243
|
+
IsString69({ message: "Start interview message must be a string." })
|
|
10010
10244
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
10011
10245
|
__decorateClass([
|
|
10012
|
-
|
|
10013
|
-
|
|
10246
|
+
IsOptional67(),
|
|
10247
|
+
IsString69({ message: "End interview message must be a string." })
|
|
10014
10248
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
10015
10249
|
|
|
10016
10250
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
10017
|
-
import { IsOptional as
|
|
10251
|
+
import { IsOptional as IsOptional68, IsString as IsString70 } from "class-validator";
|
|
10018
10252
|
var UpdateInterviewTypeInformationDto = class {
|
|
10019
10253
|
};
|
|
10020
10254
|
__decorateClass([
|
|
10021
|
-
|
|
10022
|
-
|
|
10255
|
+
IsOptional68(),
|
|
10256
|
+
IsString70({ message: "Interview type must be a string." })
|
|
10023
10257
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
10024
10258
|
|
|
10025
10259
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -10058,53 +10292,53 @@ var CONTRACT_PATTERN = {
|
|
|
10058
10292
|
};
|
|
10059
10293
|
|
|
10060
10294
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10061
|
-
import { IsEnum as
|
|
10062
|
-
import { Type as
|
|
10295
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty95, IsNumber as IsNumber21 } from "class-validator";
|
|
10296
|
+
import { Type as Type21 } from "class-transformer";
|
|
10063
10297
|
var SignContractForClientDto = class {
|
|
10064
10298
|
};
|
|
10065
10299
|
__decorateClass([
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10300
|
+
IsNotEmpty95({ message: "Job Id is required." }),
|
|
10301
|
+
Type21(() => Number),
|
|
10302
|
+
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10069
10303
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10070
10304
|
__decorateClass([
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10305
|
+
IsNotEmpty95({ message: "Freelancer ID is required." }),
|
|
10306
|
+
Type21(() => Number),
|
|
10307
|
+
IsNumber21({}, { message: "Freelancer ID must be a number." })
|
|
10074
10308
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10075
10309
|
__decorateClass([
|
|
10076
|
-
|
|
10077
|
-
|
|
10310
|
+
IsNotEmpty95({ message: "Contract type is required." }),
|
|
10311
|
+
IsEnum40(ContractTypeEnum)
|
|
10078
10312
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10079
10313
|
|
|
10080
10314
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10081
|
-
import { IsEnum as
|
|
10082
|
-
import { Type as
|
|
10315
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty96, IsNumber as IsNumber22 } from "class-validator";
|
|
10316
|
+
import { Type as Type22 } from "class-transformer";
|
|
10083
10317
|
var SignContractForFreelancerDto = class {
|
|
10084
10318
|
};
|
|
10085
10319
|
__decorateClass([
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10320
|
+
IsNotEmpty96({ message: "Job Id is required." }),
|
|
10321
|
+
Type22(() => Number),
|
|
10322
|
+
IsNumber22({}, { message: "Job ID must be a number." })
|
|
10089
10323
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10090
10324
|
__decorateClass([
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10325
|
+
IsNotEmpty96({ message: "Client ID is required." }),
|
|
10326
|
+
Type22(() => Number),
|
|
10327
|
+
IsNumber22({}, { message: "Client ID must be a number." })
|
|
10094
10328
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10095
10329
|
__decorateClass([
|
|
10096
|
-
|
|
10097
|
-
|
|
10330
|
+
IsNotEmpty96({ message: "Contract type is required." }),
|
|
10331
|
+
IsEnum41(ContractTypeEnum)
|
|
10098
10332
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10099
10333
|
|
|
10100
10334
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10101
10335
|
import {
|
|
10102
|
-
IsNotEmpty as
|
|
10103
|
-
IsNumber as
|
|
10104
|
-
IsOptional as
|
|
10105
|
-
IsString as
|
|
10336
|
+
IsNotEmpty as IsNotEmpty97,
|
|
10337
|
+
IsNumber as IsNumber23,
|
|
10338
|
+
IsOptional as IsOptional69,
|
|
10339
|
+
IsString as IsString71,
|
|
10106
10340
|
IsUUID as IsUUID25,
|
|
10107
|
-
IsEnum as
|
|
10341
|
+
IsEnum as IsEnum42
|
|
10108
10342
|
} from "class-validator";
|
|
10109
10343
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10110
10344
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
@@ -10126,73 +10360,73 @@ var PreferredEngagementTypeEnum = /* @__PURE__ */ ((PreferredEngagementTypeEnum3
|
|
|
10126
10360
|
var GenerateContractDto = class {
|
|
10127
10361
|
};
|
|
10128
10362
|
__decorateClass([
|
|
10129
|
-
|
|
10130
|
-
|
|
10363
|
+
IsNumber23({}, { message: "Job ID must be a number." }),
|
|
10364
|
+
IsNotEmpty97({ message: "Job ID is required." })
|
|
10131
10365
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10132
10366
|
__decorateClass([
|
|
10133
|
-
|
|
10134
|
-
|
|
10367
|
+
IsNumber23({}, { message: "Freelancer ID must be a number." }),
|
|
10368
|
+
IsNotEmpty97({ message: "Freelancer ID is required." })
|
|
10135
10369
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10136
10370
|
__decorateClass([
|
|
10137
|
-
|
|
10138
|
-
|
|
10371
|
+
IsOptional69(),
|
|
10372
|
+
IsEnum42(ContractTypeEnumDto, {
|
|
10139
10373
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
10140
10374
|
})
|
|
10141
10375
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10142
10376
|
__decorateClass([
|
|
10143
|
-
|
|
10144
|
-
|
|
10377
|
+
IsOptional69(),
|
|
10378
|
+
IsString71({ message: "Contract start date must be a string." })
|
|
10145
10379
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10146
10380
|
__decorateClass([
|
|
10147
|
-
|
|
10148
|
-
|
|
10381
|
+
IsOptional69(),
|
|
10382
|
+
IsString71({ message: "Contract invoicing cycle must be a string." })
|
|
10149
10383
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10150
10384
|
__decorateClass([
|
|
10151
|
-
|
|
10152
|
-
|
|
10385
|
+
IsNotEmpty97({ message: "Preferred engagement type is required" }),
|
|
10386
|
+
IsEnum42(PreferredEngagementTypeEnum, {
|
|
10153
10387
|
message: "Preferred engagement type must be FREELANCE."
|
|
10154
10388
|
})
|
|
10155
10389
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
10156
10390
|
__decorateClass([
|
|
10157
|
-
|
|
10158
|
-
|
|
10391
|
+
IsOptional69(),
|
|
10392
|
+
IsEnum42(ContractSourceEnum, {
|
|
10159
10393
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10160
10394
|
})
|
|
10161
10395
|
], GenerateContractDto.prototype, "source", 2);
|
|
10162
10396
|
__decorateClass([
|
|
10163
|
-
|
|
10397
|
+
IsOptional69(),
|
|
10164
10398
|
IsUUID25("4", { message: "Source UUID must be a valid UUID." })
|
|
10165
10399
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10166
10400
|
|
|
10167
10401
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10168
|
-
import { IsNotEmpty as
|
|
10402
|
+
import { IsNotEmpty as IsNotEmpty98, IsUUID as IsUUID26 } from "class-validator";
|
|
10169
10403
|
var EsignContractClientDto = class {
|
|
10170
10404
|
};
|
|
10171
10405
|
__decorateClass([
|
|
10172
10406
|
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10173
|
-
|
|
10407
|
+
IsNotEmpty98({ message: "Contract UUID is required." })
|
|
10174
10408
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10175
10409
|
|
|
10176
10410
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10177
|
-
import { IsNotEmpty as
|
|
10411
|
+
import { IsNotEmpty as IsNotEmpty99, IsUUID as IsUUID27 } from "class-validator";
|
|
10178
10412
|
var EsignContractFreelancerDto = class {
|
|
10179
10413
|
};
|
|
10180
10414
|
__decorateClass([
|
|
10181
10415
|
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10182
|
-
|
|
10416
|
+
IsNotEmpty99({ message: "Contract UUID is required." })
|
|
10183
10417
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10184
10418
|
|
|
10185
10419
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10186
|
-
import { IsNotEmpty as
|
|
10420
|
+
import { IsNotEmpty as IsNotEmpty100, IsUUID as IsUUID28 } from "class-validator";
|
|
10187
10421
|
var EscrowFundContractDto = class {
|
|
10188
10422
|
};
|
|
10189
10423
|
__decorateClass([
|
|
10190
10424
|
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10191
|
-
|
|
10425
|
+
IsNotEmpty100({ message: "Contract ID is required." })
|
|
10192
10426
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10193
10427
|
|
|
10194
10428
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10195
|
-
import { IsNotEmpty as
|
|
10429
|
+
import { IsNotEmpty as IsNotEmpty101, IsOptional as IsOptional70, IsUUID as IsUUID29, IsEnum as IsEnum43 } from "class-validator";
|
|
10196
10430
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10197
10431
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10198
10432
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10203,26 +10437,26 @@ var SendNdaContractToFreelancerDto = class {
|
|
|
10203
10437
|
};
|
|
10204
10438
|
__decorateClass([
|
|
10205
10439
|
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10206
|
-
|
|
10440
|
+
IsNotEmpty101({ message: "Contract UUID is required." })
|
|
10207
10441
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10208
10442
|
__decorateClass([
|
|
10209
|
-
|
|
10210
|
-
|
|
10443
|
+
IsOptional70(),
|
|
10444
|
+
IsEnum43(ContractSourceEnum2, {
|
|
10211
10445
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10212
10446
|
})
|
|
10213
10447
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
10214
10448
|
__decorateClass([
|
|
10215
|
-
|
|
10449
|
+
IsOptional70(),
|
|
10216
10450
|
IsUUID29("4", { message: "Source UUID must be a valid UUID." })
|
|
10217
10451
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10218
10452
|
|
|
10219
10453
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10220
|
-
import { IsOptional as
|
|
10454
|
+
import { IsOptional as IsOptional71, IsString as IsString73 } from "class-validator";
|
|
10221
10455
|
var RejectContractDto = class {
|
|
10222
10456
|
};
|
|
10223
10457
|
__decorateClass([
|
|
10224
|
-
|
|
10225
|
-
|
|
10458
|
+
IsOptional71(),
|
|
10459
|
+
IsString73({ message: "Reject reason must be a string." })
|
|
10226
10460
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10227
10461
|
|
|
10228
10462
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10247,55 +10481,55 @@ var STRIPE_PATTERN = {
|
|
|
10247
10481
|
|
|
10248
10482
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10249
10483
|
import {
|
|
10250
|
-
IsNotEmpty as
|
|
10484
|
+
IsNotEmpty as IsNotEmpty102
|
|
10251
10485
|
} from "class-validator";
|
|
10252
10486
|
var CreateCheckoutSessionDto = class {
|
|
10253
10487
|
};
|
|
10254
10488
|
__decorateClass([
|
|
10255
|
-
|
|
10489
|
+
IsNotEmpty102({ message: "Amount is required" })
|
|
10256
10490
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10257
10491
|
|
|
10258
10492
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10259
|
-
import { IsNotEmpty as
|
|
10493
|
+
import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString74 } from "class-validator";
|
|
10260
10494
|
var PreCheckoutCalculationDto = class {
|
|
10261
10495
|
};
|
|
10262
10496
|
__decorateClass([
|
|
10263
|
-
|
|
10264
|
-
|
|
10497
|
+
IsNotEmpty103({ message: "Amount is required" }),
|
|
10498
|
+
IsNumber24({}, { message: "Amount must be a number" })
|
|
10265
10499
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10266
10500
|
__decorateClass([
|
|
10267
|
-
|
|
10268
|
-
|
|
10501
|
+
IsOptional72(),
|
|
10502
|
+
IsString74()
|
|
10269
10503
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10270
10504
|
__decorateClass([
|
|
10271
|
-
|
|
10272
|
-
|
|
10505
|
+
IsOptional72(),
|
|
10506
|
+
IsString74()
|
|
10273
10507
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10274
10508
|
|
|
10275
10509
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10276
|
-
import { IsNotEmpty as
|
|
10510
|
+
import { IsNotEmpty as IsNotEmpty104, IsNumber as IsNumber25, IsOptional as IsOptional73, IsString as IsString75 } from "class-validator";
|
|
10277
10511
|
var ClientAddFundDto = class {
|
|
10278
10512
|
};
|
|
10279
10513
|
__decorateClass([
|
|
10280
|
-
|
|
10281
|
-
|
|
10514
|
+
IsNotEmpty104({ message: "Amount is required" }),
|
|
10515
|
+
IsNumber25({}, { message: "Amount must be a number" })
|
|
10282
10516
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10283
10517
|
__decorateClass([
|
|
10284
|
-
|
|
10285
|
-
|
|
10518
|
+
IsOptional73(),
|
|
10519
|
+
IsString75()
|
|
10286
10520
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10287
10521
|
__decorateClass([
|
|
10288
|
-
|
|
10289
|
-
|
|
10522
|
+
IsOptional73(),
|
|
10523
|
+
IsString75()
|
|
10290
10524
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10291
10525
|
|
|
10292
10526
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10293
|
-
import { IsNotEmpty as
|
|
10527
|
+
import { IsNotEmpty as IsNotEmpty105, IsUUID as IsUUID30 } from "class-validator";
|
|
10294
10528
|
var TransferFundsDto = class {
|
|
10295
10529
|
};
|
|
10296
10530
|
__decorateClass([
|
|
10297
10531
|
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10298
|
-
|
|
10532
|
+
IsNotEmpty105({ message: "Invoice UUID is required." })
|
|
10299
10533
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10300
10534
|
|
|
10301
10535
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10342,173 +10576,173 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10342
10576
|
import {
|
|
10343
10577
|
IsDateString as IsDateString10,
|
|
10344
10578
|
IsInt as IsInt13,
|
|
10345
|
-
IsNotEmpty as
|
|
10346
|
-
IsOptional as
|
|
10347
|
-
IsString as
|
|
10579
|
+
IsNotEmpty as IsNotEmpty106,
|
|
10580
|
+
IsOptional as IsOptional74,
|
|
10581
|
+
IsString as IsString76,
|
|
10348
10582
|
Matches as Matches13,
|
|
10349
|
-
IsNumber as
|
|
10583
|
+
IsNumber as IsNumber26
|
|
10350
10584
|
} from "class-validator";
|
|
10351
10585
|
var CreateFreelancerTimesheetDto = class {
|
|
10352
10586
|
};
|
|
10353
10587
|
__decorateClass([
|
|
10354
|
-
|
|
10355
|
-
|
|
10588
|
+
IsNotEmpty106({ message: "Job id is required" }),
|
|
10589
|
+
IsNumber26({}, { message: "Job id must be a number" })
|
|
10356
10590
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10357
10591
|
__decorateClass([
|
|
10358
|
-
|
|
10592
|
+
IsNotEmpty106({ message: "start date is required" }),
|
|
10359
10593
|
IsDateString10()
|
|
10360
10594
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10361
10595
|
__decorateClass([
|
|
10362
|
-
|
|
10596
|
+
IsNotEmpty106({ message: "end date is required" }),
|
|
10363
10597
|
IsDateString10()
|
|
10364
10598
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10365
10599
|
__decorateClass([
|
|
10366
|
-
|
|
10600
|
+
IsNotEmpty106({ message: "start time is required" }),
|
|
10367
10601
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10368
10602
|
message: "startTime must be in HH:mm:ss format"
|
|
10369
10603
|
})
|
|
10370
10604
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10371
10605
|
__decorateClass([
|
|
10372
|
-
|
|
10606
|
+
IsNotEmpty106({ message: "end time is required" }),
|
|
10373
10607
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10374
10608
|
message: "endTime must be in HH:mm:ss format"
|
|
10375
10609
|
})
|
|
10376
10610
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10377
10611
|
__decorateClass([
|
|
10378
|
-
|
|
10612
|
+
IsOptional74(),
|
|
10379
10613
|
IsInt13()
|
|
10380
10614
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10381
10615
|
__decorateClass([
|
|
10382
|
-
|
|
10383
|
-
|
|
10616
|
+
IsOptional74(),
|
|
10617
|
+
IsString76()
|
|
10384
10618
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10385
10619
|
__decorateClass([
|
|
10386
|
-
|
|
10387
|
-
|
|
10620
|
+
IsOptional74(),
|
|
10621
|
+
IsString76()
|
|
10388
10622
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10389
10623
|
__decorateClass([
|
|
10390
|
-
|
|
10391
|
-
|
|
10624
|
+
IsOptional74(),
|
|
10625
|
+
IsString76()
|
|
10392
10626
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10393
10627
|
__decorateClass([
|
|
10394
|
-
|
|
10628
|
+
IsNotEmpty106({ message: "Description is required" })
|
|
10395
10629
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10396
10630
|
|
|
10397
10631
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10398
10632
|
import {
|
|
10399
10633
|
IsDateString as IsDateString11,
|
|
10400
10634
|
IsInt as IsInt14,
|
|
10401
|
-
IsNotEmpty as
|
|
10402
|
-
IsOptional as
|
|
10403
|
-
IsString as
|
|
10635
|
+
IsNotEmpty as IsNotEmpty107,
|
|
10636
|
+
IsOptional as IsOptional75,
|
|
10637
|
+
IsString as IsString77,
|
|
10404
10638
|
Matches as Matches14,
|
|
10405
|
-
IsNumber as
|
|
10639
|
+
IsNumber as IsNumber27
|
|
10406
10640
|
} from "class-validator";
|
|
10407
10641
|
var UpdateFreelancerTimesheetDto = class {
|
|
10408
10642
|
};
|
|
10409
10643
|
__decorateClass([
|
|
10410
|
-
|
|
10411
|
-
|
|
10644
|
+
IsNotEmpty107({ message: "Job id is required" }),
|
|
10645
|
+
IsNumber27({}, { message: "Job id must be a number" })
|
|
10412
10646
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10413
10647
|
__decorateClass([
|
|
10414
|
-
|
|
10648
|
+
IsNotEmpty107({ message: "start date is required" }),
|
|
10415
10649
|
IsDateString11()
|
|
10416
10650
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10417
10651
|
__decorateClass([
|
|
10418
|
-
|
|
10652
|
+
IsNotEmpty107({ message: "end date is required" }),
|
|
10419
10653
|
IsDateString11()
|
|
10420
10654
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10421
10655
|
__decorateClass([
|
|
10422
|
-
|
|
10656
|
+
IsNotEmpty107({ message: "start time is required" }),
|
|
10423
10657
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10424
10658
|
message: "startTime must be in HH:mm:ss format"
|
|
10425
10659
|
})
|
|
10426
10660
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10427
10661
|
__decorateClass([
|
|
10428
|
-
|
|
10662
|
+
IsNotEmpty107({ message: "end time is required" }),
|
|
10429
10663
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10430
10664
|
message: "endTime must be in HH:mm:ss format"
|
|
10431
10665
|
})
|
|
10432
10666
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10433
10667
|
__decorateClass([
|
|
10434
|
-
|
|
10668
|
+
IsOptional75(),
|
|
10435
10669
|
IsInt14()
|
|
10436
10670
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10437
10671
|
__decorateClass([
|
|
10438
|
-
|
|
10439
|
-
|
|
10672
|
+
IsOptional75(),
|
|
10673
|
+
IsString77()
|
|
10440
10674
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10441
10675
|
__decorateClass([
|
|
10442
|
-
|
|
10443
|
-
|
|
10676
|
+
IsOptional75(),
|
|
10677
|
+
IsString77()
|
|
10444
10678
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10445
10679
|
__decorateClass([
|
|
10446
|
-
|
|
10447
|
-
|
|
10680
|
+
IsOptional75(),
|
|
10681
|
+
IsString77()
|
|
10448
10682
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10449
10683
|
__decorateClass([
|
|
10450
|
-
|
|
10684
|
+
IsNotEmpty107({ message: "Description is required" })
|
|
10451
10685
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10452
10686
|
|
|
10453
10687
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10454
|
-
import { IsNotEmpty as
|
|
10688
|
+
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber28 } from "class-validator";
|
|
10455
10689
|
var SubmitTimesheetDto = class {
|
|
10456
10690
|
};
|
|
10457
10691
|
__decorateClass([
|
|
10458
|
-
|
|
10459
|
-
|
|
10692
|
+
IsNotEmpty108({ message: "Timesheet line ID is required" }),
|
|
10693
|
+
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10460
10694
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10461
10695
|
|
|
10462
10696
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10463
|
-
import { IsNotEmpty as
|
|
10697
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber29 } from "class-validator";
|
|
10464
10698
|
var ResubmitTimesheetDto = class {
|
|
10465
10699
|
};
|
|
10466
10700
|
__decorateClass([
|
|
10467
|
-
|
|
10468
|
-
|
|
10701
|
+
IsNotEmpty109({ message: "Timesheet line ID is required" }),
|
|
10702
|
+
IsNumber29({}, { message: "Timesheet line ID must be a number" })
|
|
10469
10703
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10470
10704
|
|
|
10471
10705
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10472
|
-
import { IsNotEmpty as
|
|
10473
|
-
import { Type as
|
|
10706
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber30 } from "class-validator";
|
|
10707
|
+
import { Type as Type23 } from "class-transformer";
|
|
10474
10708
|
var ApproveTimesheetsDto = class {
|
|
10475
10709
|
};
|
|
10476
10710
|
__decorateClass([
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10711
|
+
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10712
|
+
IsNotEmpty110({ message: "Timesheet line ID is required." }),
|
|
10713
|
+
Type23(() => Number)
|
|
10480
10714
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10481
10715
|
|
|
10482
10716
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10483
|
-
import { IsNotEmpty as
|
|
10484
|
-
import { Type as
|
|
10717
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber31, IsOptional as IsOptional76, IsString as IsString78 } from "class-validator";
|
|
10718
|
+
import { Type as Type24 } from "class-transformer";
|
|
10485
10719
|
var SendBackTimesheetsDto = class {
|
|
10486
10720
|
};
|
|
10487
10721
|
__decorateClass([
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10722
|
+
IsNumber31({}, { message: "Timesheet line ID must be a number." }),
|
|
10723
|
+
IsNotEmpty111({ message: "Timesheet line ID is required." }),
|
|
10724
|
+
Type24(() => Number)
|
|
10491
10725
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10492
10726
|
__decorateClass([
|
|
10493
|
-
|
|
10494
|
-
|
|
10727
|
+
IsOptional76(),
|
|
10728
|
+
IsString78({ message: "Client send back reason must be a string." })
|
|
10495
10729
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10496
10730
|
|
|
10497
10731
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10498
|
-
import { IsNotEmpty as
|
|
10732
|
+
import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber32 } from "class-validator";
|
|
10499
10733
|
var CreateDefaultTimesheetLineDto = class {
|
|
10500
10734
|
};
|
|
10501
10735
|
__decorateClass([
|
|
10502
|
-
|
|
10503
|
-
|
|
10736
|
+
IsNotEmpty112({ message: "Contract ID is required" }),
|
|
10737
|
+
IsNumber32({}, { message: "Contract ID must be a number" })
|
|
10504
10738
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10505
10739
|
__decorateClass([
|
|
10506
|
-
|
|
10507
|
-
|
|
10740
|
+
IsNotEmpty112({ message: "Freelancer ID is required" }),
|
|
10741
|
+
IsNumber32({}, { message: "Freelancer ID must be a number" })
|
|
10508
10742
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10509
10743
|
__decorateClass([
|
|
10510
|
-
|
|
10511
|
-
|
|
10744
|
+
IsNotEmpty112({ message: "Client ID is required" }),
|
|
10745
|
+
IsNumber32({}, { message: "Client ID must be a number" })
|
|
10512
10746
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10513
10747
|
|
|
10514
10748
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -10530,23 +10764,23 @@ var INVOICE_PATTERN = {
|
|
|
10530
10764
|
};
|
|
10531
10765
|
|
|
10532
10766
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10533
|
-
import { IsEnum as
|
|
10767
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty113 } from "class-validator";
|
|
10534
10768
|
var UpdateInvoiceStatusDto = class {
|
|
10535
10769
|
};
|
|
10536
10770
|
__decorateClass([
|
|
10537
|
-
|
|
10538
|
-
|
|
10771
|
+
IsNotEmpty113({ message: "Please provide invoice status." }),
|
|
10772
|
+
IsEnum46(InvoiceStatusEnum, {
|
|
10539
10773
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10540
10774
|
})
|
|
10541
10775
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10542
10776
|
|
|
10543
10777
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10544
|
-
import { IsNotEmpty as
|
|
10778
|
+
import { IsNotEmpty as IsNotEmpty114, IsNumber as IsNumber33 } from "class-validator";
|
|
10545
10779
|
var CreateInvoiceDto = class {
|
|
10546
10780
|
};
|
|
10547
10781
|
__decorateClass([
|
|
10548
|
-
|
|
10549
|
-
|
|
10782
|
+
IsNotEmpty114({ message: "Timesheet line ID is required" }),
|
|
10783
|
+
IsNumber33({}, { message: "Timesheet line ID must be a number" })
|
|
10550
10784
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10551
10785
|
|
|
10552
10786
|
// src/modules/dispute/pattern/pattern.ts
|
|
@@ -10558,49 +10792,49 @@ var DISPUTE_PATTERN = {
|
|
|
10558
10792
|
|
|
10559
10793
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10560
10794
|
import {
|
|
10561
|
-
IsString as
|
|
10562
|
-
IsNotEmpty as
|
|
10795
|
+
IsString as IsString79,
|
|
10796
|
+
IsNotEmpty as IsNotEmpty115,
|
|
10563
10797
|
IsIn as IsIn4,
|
|
10564
|
-
IsOptional as
|
|
10565
|
-
MaxLength as
|
|
10798
|
+
IsOptional as IsOptional77,
|
|
10799
|
+
MaxLength as MaxLength23,
|
|
10566
10800
|
IsObject as IsObject7,
|
|
10567
|
-
IsNumber as
|
|
10568
|
-
ValidateIf as
|
|
10801
|
+
IsNumber as IsNumber34,
|
|
10802
|
+
ValidateIf as ValidateIf13
|
|
10569
10803
|
} from "class-validator";
|
|
10570
|
-
import { Transform as Transform7, Type as
|
|
10804
|
+
import { Transform as Transform7, Type as Type25 } from "class-transformer";
|
|
10571
10805
|
var CreateDisputeDto = class {
|
|
10572
10806
|
};
|
|
10573
10807
|
__decorateClass([
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10808
|
+
ValidateIf13((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
10809
|
+
IsNumber34({}, { message: "Client id must be a number" }),
|
|
10810
|
+
Type25(() => Number)
|
|
10577
10811
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
10578
10812
|
__decorateClass([
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10813
|
+
ValidateIf13((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
10814
|
+
IsNumber34({}, { message: "Freelancer id must be a number" }),
|
|
10815
|
+
Type25(() => Number)
|
|
10582
10816
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10583
10817
|
__decorateClass([
|
|
10584
|
-
|
|
10585
|
-
|
|
10818
|
+
IsNotEmpty115({ message: "Please select dispute type." }),
|
|
10819
|
+
IsString79(),
|
|
10586
10820
|
IsIn4(["JOB", "INVOICE"])
|
|
10587
10821
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10588
10822
|
__decorateClass([
|
|
10589
|
-
|
|
10590
|
-
|
|
10823
|
+
IsNotEmpty115({ message: "Please provide initiator type." }),
|
|
10824
|
+
IsString79()
|
|
10591
10825
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10592
10826
|
__decorateClass([
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10827
|
+
IsNotEmpty115({ message: "Please enter description." }),
|
|
10828
|
+
IsString79({ message: "Description must be a string" }),
|
|
10829
|
+
MaxLength23(500, { message: "Description must not exceed 500 characters" })
|
|
10596
10830
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10597
10831
|
__decorateClass([
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10832
|
+
IsOptional77(),
|
|
10833
|
+
IsString79({ message: "Comment must be a string" }),
|
|
10834
|
+
MaxLength23(500, { message: "Comment must not exceed 500 characters" })
|
|
10601
10835
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10602
10836
|
__decorateClass([
|
|
10603
|
-
|
|
10837
|
+
IsOptional77(),
|
|
10604
10838
|
IsObject7({ message: "Dynamic fields must be a valid object" }),
|
|
10605
10839
|
Transform7(({ value }) => {
|
|
10606
10840
|
if (typeof value === "string") {
|
|
@@ -10623,126 +10857,126 @@ var SENSELOAF_PATTERN = {
|
|
|
10623
10857
|
|
|
10624
10858
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10625
10859
|
import {
|
|
10626
|
-
IsNotEmpty as
|
|
10860
|
+
IsNotEmpty as IsNotEmpty116
|
|
10627
10861
|
} from "class-validator";
|
|
10628
10862
|
var AiInterviewQuestionGenerateDto = class {
|
|
10629
10863
|
};
|
|
10630
10864
|
__decorateClass([
|
|
10631
|
-
|
|
10865
|
+
IsNotEmpty116({ message: "Please enter job description." })
|
|
10632
10866
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10633
10867
|
__decorateClass([
|
|
10634
|
-
|
|
10868
|
+
IsNotEmpty116({ message: "Please enter number of questions." })
|
|
10635
10869
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10636
10870
|
|
|
10637
10871
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10638
|
-
import { IsNotEmpty as
|
|
10872
|
+
import { IsNotEmpty as IsNotEmpty117, IsString as IsString80, IsOptional as IsOptional78 } from "class-validator";
|
|
10639
10873
|
var ResumeParsingByUrlDto = class {
|
|
10640
10874
|
};
|
|
10641
10875
|
__decorateClass([
|
|
10642
|
-
|
|
10643
|
-
|
|
10876
|
+
IsNotEmpty117({ message: "Resume URL is required" }),
|
|
10877
|
+
IsString80({ message: "Resume URL must be a string" })
|
|
10644
10878
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10645
10879
|
__decorateClass([
|
|
10646
|
-
|
|
10647
|
-
|
|
10880
|
+
IsOptional78(),
|
|
10881
|
+
IsString80()
|
|
10648
10882
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10649
10883
|
|
|
10650
10884
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10651
|
-
import { IsNotEmpty as
|
|
10885
|
+
import { IsNotEmpty as IsNotEmpty118, IsString as IsString81, IsOptional as IsOptional79, IsObject as IsObject8 } from "class-validator";
|
|
10652
10886
|
var ResumeDataProcessingDto = class {
|
|
10653
10887
|
};
|
|
10654
10888
|
__decorateClass([
|
|
10655
|
-
|
|
10889
|
+
IsNotEmpty118({ message: "Resume data is required" }),
|
|
10656
10890
|
IsObject8()
|
|
10657
10891
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10658
10892
|
__decorateClass([
|
|
10659
|
-
|
|
10660
|
-
|
|
10893
|
+
IsOptional79(),
|
|
10894
|
+
IsString81()
|
|
10661
10895
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
10662
10896
|
__decorateClass([
|
|
10663
|
-
|
|
10664
|
-
|
|
10897
|
+
IsOptional79(),
|
|
10898
|
+
IsString81()
|
|
10665
10899
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10666
10900
|
|
|
10667
10901
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10668
|
-
import { IsNotEmpty as
|
|
10902
|
+
import { IsNotEmpty as IsNotEmpty119, IsString as IsString82, IsOptional as IsOptional80, IsObject as IsObject9 } from "class-validator";
|
|
10669
10903
|
var CheckResumeEligibilityDto = class {
|
|
10670
10904
|
};
|
|
10671
10905
|
__decorateClass([
|
|
10672
|
-
|
|
10906
|
+
IsNotEmpty119({ message: "Resume data is required" }),
|
|
10673
10907
|
IsObject9()
|
|
10674
10908
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10675
10909
|
__decorateClass([
|
|
10676
|
-
|
|
10677
|
-
|
|
10910
|
+
IsOptional80(),
|
|
10911
|
+
IsString82()
|
|
10678
10912
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
10679
10913
|
__decorateClass([
|
|
10680
|
-
|
|
10681
|
-
|
|
10914
|
+
IsOptional80(),
|
|
10915
|
+
IsString82()
|
|
10682
10916
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10683
10917
|
|
|
10684
10918
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10685
|
-
import { IsNotEmpty as
|
|
10919
|
+
import { IsNotEmpty as IsNotEmpty120, IsString as IsString83, IsOptional as IsOptional81, IsArray as IsArray27, IsNumber as IsNumber35 } from "class-validator";
|
|
10686
10920
|
var AiInterviewTemplateGenerationDto = class {
|
|
10687
10921
|
};
|
|
10688
10922
|
__decorateClass([
|
|
10689
|
-
|
|
10690
|
-
|
|
10923
|
+
IsNotEmpty120({ message: "Job ID is required" }),
|
|
10924
|
+
IsString83({ message: "Job ID must be a string" })
|
|
10691
10925
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10692
10926
|
__decorateClass([
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10927
|
+
IsOptional81(),
|
|
10928
|
+
IsArray27(),
|
|
10929
|
+
IsString83({ each: true, message: "Each skill must be a string" })
|
|
10696
10930
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
10697
10931
|
__decorateClass([
|
|
10698
|
-
|
|
10699
|
-
|
|
10932
|
+
IsOptional81(),
|
|
10933
|
+
IsNumber35({}, { message: "Number of questions must be a number" })
|
|
10700
10934
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
10701
10935
|
__decorateClass([
|
|
10702
|
-
|
|
10703
|
-
|
|
10936
|
+
IsOptional81(),
|
|
10937
|
+
IsString83()
|
|
10704
10938
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10705
10939
|
|
|
10706
10940
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10707
|
-
import { IsNotEmpty as
|
|
10941
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
10708
10942
|
var AiInterviewLinkGenerationDto = class {
|
|
10709
10943
|
};
|
|
10710
10944
|
__decorateClass([
|
|
10711
|
-
|
|
10712
|
-
|
|
10945
|
+
IsNotEmpty121({ message: "Template ID is required" }),
|
|
10946
|
+
IsString84({ message: "Template ID must be a string" })
|
|
10713
10947
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10714
10948
|
__decorateClass([
|
|
10715
|
-
|
|
10716
|
-
|
|
10949
|
+
IsNotEmpty121({ message: "Freelancer ID is required" }),
|
|
10950
|
+
IsString84({ message: "Freelancer ID must be a string" })
|
|
10717
10951
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10718
10952
|
__decorateClass([
|
|
10719
|
-
|
|
10720
|
-
|
|
10953
|
+
IsOptional82(),
|
|
10954
|
+
IsString84()
|
|
10721
10955
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
10722
10956
|
__decorateClass([
|
|
10723
|
-
|
|
10724
|
-
|
|
10957
|
+
IsOptional82(),
|
|
10958
|
+
IsNumber36({}, { message: "Expiry hours must be a number" })
|
|
10725
10959
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10726
10960
|
|
|
10727
10961
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10728
|
-
import { IsNotEmpty as
|
|
10962
|
+
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as IsOptional83, IsNumber as IsNumber37 } from "class-validator";
|
|
10729
10963
|
var AiAssessmentCreationDto = class {
|
|
10730
10964
|
};
|
|
10731
10965
|
__decorateClass([
|
|
10732
|
-
|
|
10733
|
-
|
|
10966
|
+
IsNotEmpty122({ message: "User ID is required" }),
|
|
10967
|
+
IsString85({ message: "User ID must be a string" })
|
|
10734
10968
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10735
10969
|
__decorateClass([
|
|
10736
|
-
|
|
10737
|
-
|
|
10970
|
+
IsOptional83(),
|
|
10971
|
+
IsString85()
|
|
10738
10972
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
10739
10973
|
__decorateClass([
|
|
10740
|
-
|
|
10741
|
-
|
|
10974
|
+
IsOptional83(),
|
|
10975
|
+
IsNumber37({}, { message: "Number of questions must be a number" })
|
|
10742
10976
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
10743
10977
|
__decorateClass([
|
|
10744
|
-
|
|
10745
|
-
|
|
10978
|
+
IsOptional83(),
|
|
10979
|
+
IsString85()
|
|
10746
10980
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
10747
10981
|
|
|
10748
10982
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -10758,7 +10992,7 @@ var HIRING_PATTERN = {
|
|
|
10758
10992
|
};
|
|
10759
10993
|
|
|
10760
10994
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
10761
|
-
import { IsEnum as
|
|
10995
|
+
import { IsEnum as IsEnum47, IsNotEmpty as IsNotEmpty123, IsNumber as IsNumber38 } from "class-validator";
|
|
10762
10996
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
10763
10997
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
10764
10998
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -10767,16 +11001,16 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
10767
11001
|
var CreateHiringDto = class {
|
|
10768
11002
|
};
|
|
10769
11003
|
__decorateClass([
|
|
10770
|
-
|
|
10771
|
-
|
|
11004
|
+
IsNotEmpty123({ message: "Freelancer ID is required" }),
|
|
11005
|
+
IsNumber38({}, { message: "Freelancer ID must be a number" })
|
|
10772
11006
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
10773
11007
|
__decorateClass([
|
|
10774
|
-
|
|
10775
|
-
|
|
11008
|
+
IsNotEmpty123({ message: "Job ID is required" }),
|
|
11009
|
+
IsNumber38({}, { message: "Job ID must be a number" })
|
|
10776
11010
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
10777
11011
|
__decorateClass([
|
|
10778
|
-
|
|
10779
|
-
|
|
11012
|
+
IsNotEmpty123({ message: "Preferred engagement type is required" }),
|
|
11013
|
+
IsEnum47(PreferredEngagementTypeEnum2, {
|
|
10780
11014
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
10781
11015
|
})
|
|
10782
11016
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -10799,16 +11033,16 @@ var SIGNATURE_PATTERN = {
|
|
|
10799
11033
|
};
|
|
10800
11034
|
|
|
10801
11035
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
10802
|
-
import { IsOptional as
|
|
11036
|
+
import { IsOptional as IsOptional84, IsString as IsString86 } from "class-validator";
|
|
10803
11037
|
var SaveSignatureDto = class {
|
|
10804
11038
|
};
|
|
10805
11039
|
__decorateClass([
|
|
10806
|
-
|
|
10807
|
-
|
|
11040
|
+
IsOptional84(),
|
|
11041
|
+
IsString86()
|
|
10808
11042
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
10809
11043
|
__decorateClass([
|
|
10810
|
-
|
|
10811
|
-
|
|
11044
|
+
IsOptional84(),
|
|
11045
|
+
IsString86()
|
|
10812
11046
|
], SaveSignatureDto.prototype, "description", 2);
|
|
10813
11047
|
|
|
10814
11048
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -10826,25 +11060,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10826
11060
|
};
|
|
10827
11061
|
|
|
10828
11062
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10829
|
-
import { IsNotEmpty as
|
|
11063
|
+
import { IsNotEmpty as IsNotEmpty124, IsNumber as IsNumber39, IsUUID as IsUUID31 } from "class-validator";
|
|
10830
11064
|
var AddTopupEscrowAmountDto = class {
|
|
10831
11065
|
};
|
|
10832
11066
|
__decorateClass([
|
|
10833
|
-
|
|
10834
|
-
|
|
11067
|
+
IsNotEmpty124({ message: "Amount is required" }),
|
|
11068
|
+
IsNumber39({}, { message: "Amount must be a number" })
|
|
10835
11069
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10836
11070
|
__decorateClass([
|
|
10837
|
-
|
|
11071
|
+
IsNotEmpty124({ message: "Escrow wallet UUID is required" }),
|
|
10838
11072
|
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10839
11073
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10840
11074
|
|
|
10841
11075
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10842
|
-
import { IsNotEmpty as
|
|
11076
|
+
import { IsNotEmpty as IsNotEmpty125, IsUUID as IsUUID32 } from "class-validator";
|
|
10843
11077
|
var DebitCommissionFteHiringDto = class {
|
|
10844
11078
|
};
|
|
10845
11079
|
__decorateClass([
|
|
10846
11080
|
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10847
|
-
|
|
11081
|
+
IsNotEmpty125({ message: "Invoice UUID is required." })
|
|
10848
11082
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10849
11083
|
|
|
10850
11084
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -13097,6 +13331,7 @@ export {
|
|
|
13097
13331
|
CreateInterviewSkillsDto,
|
|
13098
13332
|
CreateInvoiceDto,
|
|
13099
13333
|
CreateJobApplicationDto,
|
|
13334
|
+
CreateJobViaAIDto,
|
|
13100
13335
|
CreateLeadDto,
|
|
13101
13336
|
CreateQuestionDto,
|
|
13102
13337
|
CreateRatingDto,
|
|
@@ -13209,7 +13444,7 @@ export {
|
|
|
13209
13444
|
JobIdParamDto,
|
|
13210
13445
|
JobLocation,
|
|
13211
13446
|
JobLocationAdminDto,
|
|
13212
|
-
JobLocationDto,
|
|
13447
|
+
JobLocationDto2 as JobLocationDto,
|
|
13213
13448
|
JobLocationEnum,
|
|
13214
13449
|
JobRMQAdapter,
|
|
13215
13450
|
JobRecommendation,
|