@experts_hub/shared 1.0.667 → 1.0.669
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +1131 -1077
- package/dist/index.mjs +566 -504
- package/dist/modules/job/dto/create-job-via-ai.dto..d.ts +5 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +2 -2
- package/dist/modules/user/client-profile/dto/request-password-change-otp-client.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/dto/verify-password-change-otp-client.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/pattern/pattern.d.ts +3 -2
- package/dist/modules/user/freelancer-profile/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-profile/dto/request-password-change-otp-freelancer.dto.d.ts +4 -0
- package/dist/modules/user/freelancer-profile/dto/verify-password-change-otp-freelancer.dto.d.ts +4 -0
- package/dist/modules/user/freelancer-profile/pattern/pattern.d.ts +3 -0
- package/package.json +1 -1
- package/dist/modules/user/client-profile/dto/request-password-change-otp.dto.d.ts +0 -4
- package/dist/modules/user/client-profile/dto/verify-password-change-otp.dto.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -342,7 +342,8 @@ __export(index_exports, {
|
|
|
342
342
|
RejectContractDto: () => RejectContractDto,
|
|
343
343
|
RejectF2FInterviewRescheduleRequestDto: () => RejectF2FInterviewRescheduleRequestDto,
|
|
344
344
|
RemoveGlobalSettingDto: () => RemoveGlobalSettingDto,
|
|
345
|
-
|
|
345
|
+
RequestPasswordChangeOtpForClientDto: () => RequestPasswordChangeOtpForClientDto,
|
|
346
|
+
RequestPasswordChangeOtpForFreelancerDto: () => RequestPasswordChangeOtpForFreelancerDto,
|
|
346
347
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
347
348
|
ResetPasswordTokenValidationDto: () => ResetPasswordTokenValidationDto,
|
|
348
349
|
ResetUserPasswordByAdminDto: () => ResetUserPasswordByAdminDto,
|
|
@@ -433,7 +434,8 @@ __export(index_exports, {
|
|
|
433
434
|
VerifyGuestOtpDto: () => VerifyGuestOtpDto,
|
|
434
435
|
VerifyOnboardingTokenDto: () => VerifyOnboardingTokenDto,
|
|
435
436
|
VerifyOtpDto: () => VerifyOtpDto,
|
|
436
|
-
|
|
437
|
+
VerifyPasswordChangeOtpForClientDto: () => VerifyPasswordChangeOtpForClientDto,
|
|
438
|
+
VerifyPasswordChangeOtpForFreelancerDto: () => VerifyPasswordChangeOtpForFreelancerDto,
|
|
437
439
|
WALLET_ADMIN_PATTERN: () => WALLET_ADMIN_PATTERN,
|
|
438
440
|
WALLET_PATTERN: () => WALLET_PATTERN,
|
|
439
441
|
Wallet: () => Wallet,
|
|
@@ -6387,8 +6389,9 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
6387
6389
|
fetchFreelancerInfoForChat: "fetch.freelancer.info.for.chat",
|
|
6388
6390
|
fetchClientAndFreelancerDetailsForChatChannelCreation: "fetch.client.and.freelancer.details.for.chat.channel.creation",
|
|
6389
6391
|
fetchCustomeResume: "fetch.custome.resume",
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
+
requestPasswordChangeOtpForClient: "request.password.change.otp.for.client",
|
|
6393
|
+
verifyPasswordChangeOtpForClient: "verify.password.change.otp.for.client",
|
|
6394
|
+
isPasswordSetForClient: "is.password.set.for.client"
|
|
6392
6395
|
};
|
|
6393
6396
|
|
|
6394
6397
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -6495,14 +6498,14 @@ __decorateClass([
|
|
|
6495
6498
|
(0, import_class_validator43.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
6496
6499
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
6497
6500
|
|
|
6498
|
-
// src/modules/user/client-profile/dto/request-password-change-otp.dto.ts
|
|
6501
|
+
// src/modules/user/client-profile/dto/request-password-change-otp-client.dto.ts
|
|
6499
6502
|
var import_class_validator44 = require("class-validator");
|
|
6500
|
-
var
|
|
6503
|
+
var RequestPasswordChangeOtpForClientDto = class {
|
|
6501
6504
|
};
|
|
6502
6505
|
__decorateClass([
|
|
6503
6506
|
(0, import_class_validator44.IsNotEmpty)({ message: "Current password is required" }),
|
|
6504
6507
|
(0, import_class_validator44.IsString)()
|
|
6505
|
-
],
|
|
6508
|
+
], RequestPasswordChangeOtpForClientDto.prototype, "currentPassword", 2);
|
|
6506
6509
|
__decorateClass([
|
|
6507
6510
|
(0, import_class_validator44.IsNotEmpty)({ message: "New password is required" }),
|
|
6508
6511
|
(0, import_class_validator44.IsString)(),
|
|
@@ -6510,11 +6513,11 @@ __decorateClass([
|
|
|
6510
6513
|
(0, import_class_validator44.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6511
6514
|
message: "Password must include letters, numbers, and special characters"
|
|
6512
6515
|
})
|
|
6513
|
-
],
|
|
6516
|
+
], RequestPasswordChangeOtpForClientDto.prototype, "newPassword", 2);
|
|
6514
6517
|
|
|
6515
|
-
// src/modules/user/client-profile/dto/verify-password-change-otp.dto.ts
|
|
6518
|
+
// src/modules/user/client-profile/dto/verify-password-change-otp-client.dto.ts
|
|
6516
6519
|
var import_class_validator45 = require("class-validator");
|
|
6517
|
-
var
|
|
6520
|
+
var VerifyPasswordChangeOtpForClientDto = class {
|
|
6518
6521
|
};
|
|
6519
6522
|
__decorateClass([
|
|
6520
6523
|
(0, import_class_validator45.IsNotEmpty)({ message: "New password is required" }),
|
|
@@ -6523,12 +6526,12 @@ __decorateClass([
|
|
|
6523
6526
|
(0, import_class_validator45.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6524
6527
|
message: "Password must include letters, numbers, and special characters"
|
|
6525
6528
|
})
|
|
6526
|
-
],
|
|
6529
|
+
], VerifyPasswordChangeOtpForClientDto.prototype, "newPassword", 2);
|
|
6527
6530
|
__decorateClass([
|
|
6528
6531
|
(0, import_class_validator45.IsNotEmpty)({ message: "OTP is required" }),
|
|
6529
6532
|
(0, import_class_validator45.IsString)(),
|
|
6530
6533
|
(0, import_class_validator45.Matches)(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
6531
|
-
],
|
|
6534
|
+
], VerifyPasswordChangeOtpForClientDto.prototype, "otp", 2);
|
|
6532
6535
|
|
|
6533
6536
|
// src/modules/question/pattern/pattern.ts
|
|
6534
6537
|
var ONBOARDING_QUESTION_PATTERN = {
|
|
@@ -6865,6 +6868,11 @@ var EmploymentTypeV2 = /* @__PURE__ */ ((EmploymentTypeV23) => {
|
|
|
6865
6868
|
EmploymentTypeV23["FTE"] = "FTE";
|
|
6866
6869
|
return EmploymentTypeV23;
|
|
6867
6870
|
})(EmploymentTypeV2 || {});
|
|
6871
|
+
var BillingCycleEnumV2 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
6872
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
6873
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
6874
|
+
return BillingCycleEnumV24;
|
|
6875
|
+
})(BillingCycleEnumV2 || {});
|
|
6868
6876
|
var StepCompletedEnumV2 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
6869
6877
|
StepCompletedEnumV23["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
6870
6878
|
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
@@ -6968,6 +6976,12 @@ __decorateClass([
|
|
|
6968
6976
|
).join(", ")}`
|
|
6969
6977
|
})
|
|
6970
6978
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
6979
|
+
__decorateClass([
|
|
6980
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6981
|
+
(0, import_class_validator52.IsEnum)(BillingCycleEnumV2, {
|
|
6982
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV2).join(", ")}`
|
|
6983
|
+
})
|
|
6984
|
+
], CreateJobViaAIDto.prototype, "billingCycle", 2);
|
|
6971
6985
|
__decorateClass([
|
|
6972
6986
|
(0, import_class_validator52.ValidateIf)((o) => !o.isDraft),
|
|
6973
6987
|
(0, import_class_validator52.IsString)({ message: "Currency must be a string" })
|
|
@@ -7122,11 +7136,11 @@ var StepCompletedEnumV22 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
|
7122
7136
|
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
7123
7137
|
return StepCompletedEnumV23;
|
|
7124
7138
|
})(StepCompletedEnumV22 || {});
|
|
7125
|
-
var
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
return
|
|
7129
|
-
})(
|
|
7139
|
+
var BillingCycleEnumV22 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
7140
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
7141
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
7142
|
+
return BillingCycleEnumV24;
|
|
7143
|
+
})(BillingCycleEnumV22 || {});
|
|
7130
7144
|
var JobLocationDto2 = class {
|
|
7131
7145
|
};
|
|
7132
7146
|
__decorateClass([
|
|
@@ -7223,8 +7237,8 @@ __decorateClass([
|
|
|
7223
7237
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7224
7238
|
__decorateClass([
|
|
7225
7239
|
(0, import_class_validator55.IsOptional)(),
|
|
7226
|
-
(0, import_class_validator55.IsEnum)(
|
|
7227
|
-
message: `Billing cycle must be one of: ${Object.values(
|
|
7240
|
+
(0, import_class_validator55.IsEnum)(BillingCycleEnumV22, {
|
|
7241
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV22).join(", ")}`
|
|
7228
7242
|
})
|
|
7229
7243
|
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
7230
7244
|
__decorateClass([
|
|
@@ -7414,7 +7428,10 @@ var PROFILE_PATTERN = {
|
|
|
7414
7428
|
freelancerEmailAndMobileMasking: "freelancer.email.and.mobile.masking",
|
|
7415
7429
|
fetchClientInfoForChat: "fetch.client.info.for.chat",
|
|
7416
7430
|
fetchAiAssessmentDetails: "fetch.ai.assessment.details",
|
|
7417
|
-
captureAiAssessmentResult: "capture.ai.assessment.result"
|
|
7431
|
+
captureAiAssessmentResult: "capture.ai.assessment.result",
|
|
7432
|
+
requestPasswordChangeOtpForFreelancer: "request.password.change.otp.for.freelancer",
|
|
7433
|
+
verifyPasswordChangeOtpForFreelancer: "verify.password.change.otp.for.freelancer",
|
|
7434
|
+
isPasswordSetForFreelancer: "is.password.set.for.freelancer"
|
|
7418
7435
|
};
|
|
7419
7436
|
var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
7420
7437
|
fetchAssessmentRequestsForFreelancer: "fetch.assessment.requests.for.freelancer",
|
|
@@ -7602,6 +7619,41 @@ __decorateClass([
|
|
|
7602
7619
|
(0, import_class_validator64.IsString)()
|
|
7603
7620
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7604
7621
|
|
|
7622
|
+
// src/modules/user/freelancer-profile/dto/request-password-change-otp-freelancer.dto.ts
|
|
7623
|
+
var import_class_validator65 = require("class-validator");
|
|
7624
|
+
var RequestPasswordChangeOtpForFreelancerDto = class {
|
|
7625
|
+
};
|
|
7626
|
+
__decorateClass([
|
|
7627
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "Current password is required" }),
|
|
7628
|
+
(0, import_class_validator65.IsString)()
|
|
7629
|
+
], RequestPasswordChangeOtpForFreelancerDto.prototype, "currentPassword", 2);
|
|
7630
|
+
__decorateClass([
|
|
7631
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "New password is required" }),
|
|
7632
|
+
(0, import_class_validator65.IsString)(),
|
|
7633
|
+
(0, import_class_validator65.MinLength)(6, { message: "Password must be at least 6 characters long" }),
|
|
7634
|
+
(0, import_class_validator65.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7635
|
+
message: "Password must include letters, numbers, and special characters"
|
|
7636
|
+
})
|
|
7637
|
+
], RequestPasswordChangeOtpForFreelancerDto.prototype, "newPassword", 2);
|
|
7638
|
+
|
|
7639
|
+
// src/modules/user/freelancer-profile/dto/verify-password-change-otp-freelancer.dto.ts
|
|
7640
|
+
var import_class_validator66 = require("class-validator");
|
|
7641
|
+
var VerifyPasswordChangeOtpForFreelancerDto = class {
|
|
7642
|
+
};
|
|
7643
|
+
__decorateClass([
|
|
7644
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "New password is required" }),
|
|
7645
|
+
(0, import_class_validator66.IsString)(),
|
|
7646
|
+
(0, import_class_validator66.MinLength)(6, { message: "Password must be at least 6 characters long" }),
|
|
7647
|
+
(0, import_class_validator66.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7648
|
+
message: "Password must include letters, numbers, and special characters"
|
|
7649
|
+
})
|
|
7650
|
+
], VerifyPasswordChangeOtpForFreelancerDto.prototype, "newPassword", 2);
|
|
7651
|
+
__decorateClass([
|
|
7652
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "OTP is required" }),
|
|
7653
|
+
(0, import_class_validator66.IsString)(),
|
|
7654
|
+
(0, import_class_validator66.Matches)(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
7655
|
+
], VerifyPasswordChangeOtpForFreelancerDto.prototype, "otp", 2);
|
|
7656
|
+
|
|
7605
7657
|
// src/modules/bank/pattern/pattern.ts
|
|
7606
7658
|
var BANK_PATTERN = {
|
|
7607
7659
|
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
@@ -7613,7 +7665,7 @@ var BANK_PATTERN = {
|
|
|
7613
7665
|
};
|
|
7614
7666
|
|
|
7615
7667
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7616
|
-
var
|
|
7668
|
+
var import_class_validator67 = require("class-validator");
|
|
7617
7669
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
7618
7670
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
7619
7671
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -7622,51 +7674,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7622
7674
|
var FreelancerBankDetailsDto = class {
|
|
7623
7675
|
};
|
|
7624
7676
|
__decorateClass([
|
|
7625
|
-
(0,
|
|
7677
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
7626
7678
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7627
7679
|
__decorateClass([
|
|
7628
|
-
(0,
|
|
7680
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Mobile Code." })
|
|
7629
7681
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7630
7682
|
__decorateClass([
|
|
7631
|
-
(0,
|
|
7683
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
7632
7684
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7633
7685
|
__decorateClass([
|
|
7634
|
-
(0,
|
|
7686
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Email." })
|
|
7635
7687
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7636
7688
|
__decorateClass([
|
|
7637
|
-
(0,
|
|
7689
|
+
(0, import_class_validator67.IsOptional)()
|
|
7638
7690
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7639
7691
|
__decorateClass([
|
|
7640
|
-
(0,
|
|
7692
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
7641
7693
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7642
7694
|
__decorateClass([
|
|
7643
|
-
(0,
|
|
7695
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
7644
7696
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7645
7697
|
__decorateClass([
|
|
7646
|
-
(0,
|
|
7647
|
-
(0,
|
|
7698
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7699
|
+
(0, import_class_validator67.IsString)()
|
|
7648
7700
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7649
7701
|
__decorateClass([
|
|
7650
|
-
(0,
|
|
7651
|
-
(0,
|
|
7702
|
+
(0, import_class_validator67.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
7703
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7652
7704
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7653
7705
|
__decorateClass([
|
|
7654
|
-
(0,
|
|
7655
|
-
(0,
|
|
7706
|
+
(0, import_class_validator67.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7707
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7656
7708
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7657
7709
|
__decorateClass([
|
|
7658
|
-
(0,
|
|
7659
|
-
(0,
|
|
7710
|
+
(0, import_class_validator67.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7711
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7660
7712
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7661
7713
|
__decorateClass([
|
|
7662
|
-
(0,
|
|
7663
|
-
(0,
|
|
7714
|
+
(0, import_class_validator67.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7715
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7664
7716
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7665
7717
|
__decorateClass([
|
|
7666
|
-
(0,
|
|
7718
|
+
(0, import_class_validator67.IsOptional)()
|
|
7667
7719
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
7668
7720
|
__decorateClass([
|
|
7669
|
-
(0,
|
|
7721
|
+
(0, import_class_validator67.IsEnum)(BankAccountScope, {
|
|
7670
7722
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
7671
7723
|
BankAccountScope
|
|
7672
7724
|
).join(", ")}`
|
|
@@ -7686,7 +7738,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
7686
7738
|
};
|
|
7687
7739
|
|
|
7688
7740
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
7689
|
-
var
|
|
7741
|
+
var import_class_validator68 = require("class-validator");
|
|
7690
7742
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
7691
7743
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
7692
7744
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -7695,10 +7747,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
7695
7747
|
var SystemPreferenceDto = class {
|
|
7696
7748
|
};
|
|
7697
7749
|
__decorateClass([
|
|
7698
|
-
(0,
|
|
7750
|
+
(0, import_class_validator68.IsBoolean)()
|
|
7699
7751
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
7700
7752
|
__decorateClass([
|
|
7701
|
-
(0,
|
|
7753
|
+
(0, import_class_validator68.IsEnum)(SystemPreferenceKey, {
|
|
7702
7754
|
message: `key must be one of: ${Object.values(
|
|
7703
7755
|
SystemPreferenceKey
|
|
7704
7756
|
).join(", ")}`
|
|
@@ -7712,32 +7764,32 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7712
7764
|
};
|
|
7713
7765
|
|
|
7714
7766
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7715
|
-
var
|
|
7767
|
+
var import_class_validator69 = require("class-validator");
|
|
7716
7768
|
var AddGlobalSettingDto = class {
|
|
7717
7769
|
};
|
|
7718
7770
|
__decorateClass([
|
|
7719
|
-
(0,
|
|
7720
|
-
(0,
|
|
7721
|
-
(0,
|
|
7771
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Key is required" }),
|
|
7772
|
+
(0, import_class_validator69.IsString)({ message: "Key must be a string" }),
|
|
7773
|
+
(0, import_class_validator69.MaxLength)(255, { message: "Key must not exceed 255 characters" })
|
|
7722
7774
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7723
7775
|
__decorateClass([
|
|
7724
|
-
(0,
|
|
7725
|
-
(0,
|
|
7776
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Value is required" }),
|
|
7777
|
+
(0, import_class_validator69.IsString)({ message: "Value must be a string" })
|
|
7726
7778
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7727
7779
|
|
|
7728
7780
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7729
|
-
var
|
|
7781
|
+
var import_class_validator70 = require("class-validator");
|
|
7730
7782
|
var RemoveGlobalSettingDto = class {
|
|
7731
7783
|
};
|
|
7732
7784
|
__decorateClass([
|
|
7733
|
-
(0,
|
|
7734
|
-
(0,
|
|
7735
|
-
(0,
|
|
7785
|
+
(0, import_class_validator70.ValidateIf)((o) => !o.key),
|
|
7786
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Either uuid or key is required" }),
|
|
7787
|
+
(0, import_class_validator70.IsUUID)("4", { message: "UUID must be a valid UUID" })
|
|
7736
7788
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7737
7789
|
__decorateClass([
|
|
7738
|
-
(0,
|
|
7739
|
-
(0,
|
|
7740
|
-
(0,
|
|
7790
|
+
(0, import_class_validator70.ValidateIf)((o) => !o.uuid),
|
|
7791
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Either uuid or key is required" }),
|
|
7792
|
+
(0, import_class_validator70.IsString)({ message: "Key must be a string" })
|
|
7741
7793
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7742
7794
|
|
|
7743
7795
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7783,28 +7835,28 @@ var EMAIL_PATTERN = {
|
|
|
7783
7835
|
};
|
|
7784
7836
|
|
|
7785
7837
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7786
|
-
var
|
|
7838
|
+
var import_class_validator71 = require("class-validator");
|
|
7787
7839
|
var TestNotificationDto = class {
|
|
7788
7840
|
};
|
|
7789
7841
|
__decorateClass([
|
|
7790
|
-
(0,
|
|
7791
|
-
(0,
|
|
7842
|
+
(0, import_class_validator71.IsOptional)(),
|
|
7843
|
+
(0, import_class_validator71.IsEmail)({}, { message: "Email must be valid" })
|
|
7792
7844
|
], TestNotificationDto.prototype, "email", 2);
|
|
7793
7845
|
__decorateClass([
|
|
7794
|
-
(0,
|
|
7795
|
-
(0,
|
|
7846
|
+
(0, import_class_validator71.IsOptional)(),
|
|
7847
|
+
(0, import_class_validator71.IsPhoneNumber)()
|
|
7796
7848
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7797
7849
|
__decorateClass([
|
|
7798
|
-
(0,
|
|
7799
|
-
(0,
|
|
7850
|
+
(0, import_class_validator71.IsOptional)(),
|
|
7851
|
+
(0, import_class_validator71.IsString)()
|
|
7800
7852
|
], TestNotificationDto.prototype, "message", 2);
|
|
7801
7853
|
__decorateClass([
|
|
7802
|
-
(0,
|
|
7803
|
-
(0,
|
|
7854
|
+
(0, import_class_validator71.IsOptional)(),
|
|
7855
|
+
(0, import_class_validator71.IsObject)()
|
|
7804
7856
|
], TestNotificationDto.prototype, "data", 2);
|
|
7805
7857
|
__decorateClass([
|
|
7806
|
-
(0,
|
|
7807
|
-
(0,
|
|
7858
|
+
(0, import_class_validator71.IsOptional)(),
|
|
7859
|
+
(0, import_class_validator71.IsString)()
|
|
7808
7860
|
], TestNotificationDto.prototype, "type", 2);
|
|
7809
7861
|
|
|
7810
7862
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7815,95 +7867,95 @@ var RATING_PATTERN = {
|
|
|
7815
7867
|
};
|
|
7816
7868
|
|
|
7817
7869
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
7818
|
-
var
|
|
7870
|
+
var import_class_validator72 = require("class-validator");
|
|
7819
7871
|
var CreateRatingDto = class {
|
|
7820
7872
|
};
|
|
7821
7873
|
__decorateClass([
|
|
7822
|
-
(0,
|
|
7823
|
-
(0,
|
|
7874
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7875
|
+
(0, import_class_validator72.IsInt)({ message: "Reviewee ID must be a valid integer" })
|
|
7824
7876
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
7825
7877
|
__decorateClass([
|
|
7826
|
-
(0,
|
|
7827
|
-
(0,
|
|
7878
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7879
|
+
(0, import_class_validator72.IsInt)({ message: "Reviewer ID must be a valid integer" })
|
|
7828
7880
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7829
7881
|
__decorateClass([
|
|
7830
|
-
(0,
|
|
7831
|
-
(0,
|
|
7882
|
+
(0, import_class_validator72.IsInt)({ message: "Job ID must be a valid integer" }),
|
|
7883
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Job ID is required" })
|
|
7832
7884
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7833
7885
|
__decorateClass([
|
|
7834
|
-
(0,
|
|
7886
|
+
(0, import_class_validator72.IsEnum)(RatingTypeEnum, {
|
|
7835
7887
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
7836
7888
|
})
|
|
7837
7889
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7838
7890
|
__decorateClass([
|
|
7839
|
-
(0,
|
|
7840
|
-
(0,
|
|
7891
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7892
|
+
(0, import_class_validator72.IsString)({ message: "Reviewer comment must be a string" })
|
|
7841
7893
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7842
7894
|
__decorateClass([
|
|
7843
|
-
(0,
|
|
7844
|
-
(0,
|
|
7845
|
-
(0,
|
|
7846
|
-
(0,
|
|
7895
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7896
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7897
|
+
(0, import_class_validator72.Min)(0),
|
|
7898
|
+
(0, import_class_validator72.Max)(5)
|
|
7847
7899
|
], CreateRatingDto.prototype, "overallExperience", 2);
|
|
7848
7900
|
__decorateClass([
|
|
7849
|
-
(0,
|
|
7850
|
-
(0,
|
|
7851
|
-
(0,
|
|
7852
|
-
(0,
|
|
7901
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7902
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7903
|
+
(0, import_class_validator72.Min)(0),
|
|
7904
|
+
(0, import_class_validator72.Max)(5)
|
|
7853
7905
|
], CreateRatingDto.prototype, "workQuality", 2);
|
|
7854
7906
|
__decorateClass([
|
|
7855
|
-
(0,
|
|
7856
|
-
(0,
|
|
7857
|
-
(0,
|
|
7858
|
-
(0,
|
|
7907
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7908
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7909
|
+
(0, import_class_validator72.Min)(0),
|
|
7910
|
+
(0, import_class_validator72.Max)(5)
|
|
7859
7911
|
], CreateRatingDto.prototype, "oneTimeDelivery", 2);
|
|
7860
7912
|
__decorateClass([
|
|
7861
|
-
(0,
|
|
7862
|
-
(0,
|
|
7863
|
-
(0,
|
|
7864
|
-
(0,
|
|
7913
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7914
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7915
|
+
(0, import_class_validator72.Min)(0),
|
|
7916
|
+
(0, import_class_validator72.Max)(5)
|
|
7865
7917
|
], CreateRatingDto.prototype, "understaning", 2);
|
|
7866
7918
|
__decorateClass([
|
|
7867
|
-
(0,
|
|
7868
|
-
(0,
|
|
7869
|
-
(0,
|
|
7870
|
-
(0,
|
|
7919
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7920
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7921
|
+
(0, import_class_validator72.Min)(0),
|
|
7922
|
+
(0, import_class_validator72.Max)(5)
|
|
7871
7923
|
], CreateRatingDto.prototype, "communication", 2);
|
|
7872
7924
|
__decorateClass([
|
|
7873
|
-
(0,
|
|
7874
|
-
(0,
|
|
7875
|
-
(0,
|
|
7876
|
-
(0,
|
|
7925
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7926
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7927
|
+
(0, import_class_validator72.Min)(0),
|
|
7928
|
+
(0, import_class_validator72.Max)(5)
|
|
7877
7929
|
], CreateRatingDto.prototype, "skillUtilized", 2);
|
|
7878
7930
|
__decorateClass([
|
|
7879
|
-
(0,
|
|
7880
|
-
(0,
|
|
7881
|
-
(0,
|
|
7882
|
-
(0,
|
|
7931
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7932
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7933
|
+
(0, import_class_validator72.Min)(0),
|
|
7934
|
+
(0, import_class_validator72.Max)(5)
|
|
7883
7935
|
], CreateRatingDto.prototype, "communicationClarity", 2);
|
|
7884
7936
|
__decorateClass([
|
|
7885
|
-
(0,
|
|
7886
|
-
(0,
|
|
7887
|
-
(0,
|
|
7888
|
-
(0,
|
|
7937
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7938
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7939
|
+
(0, import_class_validator72.Min)(0),
|
|
7940
|
+
(0, import_class_validator72.Max)(5)
|
|
7889
7941
|
], CreateRatingDto.prototype, "requirementsClarity", 2);
|
|
7890
7942
|
__decorateClass([
|
|
7891
|
-
(0,
|
|
7892
|
-
(0,
|
|
7893
|
-
(0,
|
|
7894
|
-
(0,
|
|
7943
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7944
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7945
|
+
(0, import_class_validator72.Min)(0),
|
|
7946
|
+
(0, import_class_validator72.Max)(5)
|
|
7895
7947
|
], CreateRatingDto.prototype, "responsiveness", 2);
|
|
7896
7948
|
__decorateClass([
|
|
7897
|
-
(0,
|
|
7898
|
-
(0,
|
|
7899
|
-
(0,
|
|
7900
|
-
(0,
|
|
7949
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7950
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7951
|
+
(0, import_class_validator72.Min)(0),
|
|
7952
|
+
(0, import_class_validator72.Max)(5)
|
|
7901
7953
|
], CreateRatingDto.prototype, "paymentPromptness", 2);
|
|
7902
7954
|
__decorateClass([
|
|
7903
|
-
(0,
|
|
7904
|
-
(0,
|
|
7905
|
-
(0,
|
|
7906
|
-
(0,
|
|
7955
|
+
(0, import_class_validator72.IsOptional)(),
|
|
7956
|
+
(0, import_class_validator72.IsNumber)(),
|
|
7957
|
+
(0, import_class_validator72.Min)(0),
|
|
7958
|
+
(0, import_class_validator72.Max)(5)
|
|
7907
7959
|
], CreateRatingDto.prototype, "responsibilitiesAndExpectations", 2);
|
|
7908
7960
|
|
|
7909
7961
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -7919,57 +7971,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7919
7971
|
};
|
|
7920
7972
|
|
|
7921
7973
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7922
|
-
var
|
|
7974
|
+
var import_class_validator73 = require("class-validator");
|
|
7923
7975
|
var CreateCompanyRoleDto = class {
|
|
7924
7976
|
};
|
|
7925
7977
|
__decorateClass([
|
|
7926
|
-
(0,
|
|
7978
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Please enter company role name." })
|
|
7927
7979
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7928
7980
|
__decorateClass([
|
|
7929
|
-
(0,
|
|
7981
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
7930
7982
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7931
7983
|
__decorateClass([
|
|
7932
|
-
(0,
|
|
7984
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Please enter description" })
|
|
7933
7985
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7934
7986
|
__decorateClass([
|
|
7935
|
-
(0,
|
|
7936
|
-
(0,
|
|
7937
|
-
(0,
|
|
7987
|
+
(0, import_class_validator73.IsArray)({ message: "Permission IDs must be an array." }),
|
|
7988
|
+
(0, import_class_validator73.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
7989
|
+
(0, import_class_validator73.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
7938
7990
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7939
7991
|
__decorateClass([
|
|
7940
|
-
(0,
|
|
7941
|
-
(0,
|
|
7992
|
+
(0, import_class_validator73.IsOptional)(),
|
|
7993
|
+
(0, import_class_validator73.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7942
7994
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7943
7995
|
|
|
7944
7996
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7945
|
-
var
|
|
7997
|
+
var import_class_validator74 = require("class-validator");
|
|
7946
7998
|
var UpdateCompanyRoleDto = class {
|
|
7947
7999
|
};
|
|
7948
8000
|
__decorateClass([
|
|
7949
|
-
(0,
|
|
8001
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please enter company name." })
|
|
7950
8002
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7951
8003
|
__decorateClass([
|
|
7952
|
-
(0,
|
|
8004
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please enter slug" })
|
|
7953
8005
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7954
8006
|
__decorateClass([
|
|
7955
|
-
(0,
|
|
8007
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please enter description" })
|
|
7956
8008
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7957
8009
|
__decorateClass([
|
|
7958
|
-
(0,
|
|
7959
|
-
(0,
|
|
7960
|
-
(0,
|
|
8010
|
+
(0, import_class_validator74.IsArray)({ message: "Permission IDs must be an array." }),
|
|
8011
|
+
(0, import_class_validator74.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
8012
|
+
(0, import_class_validator74.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
7961
8013
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7962
8014
|
__decorateClass([
|
|
7963
|
-
(0,
|
|
7964
|
-
(0,
|
|
8015
|
+
(0, import_class_validator74.IsOptional)(),
|
|
8016
|
+
(0, import_class_validator74.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7965
8017
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
7966
8018
|
|
|
7967
8019
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
7968
|
-
var
|
|
8020
|
+
var import_class_validator75 = require("class-validator");
|
|
7969
8021
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
7970
8022
|
};
|
|
7971
8023
|
__decorateClass([
|
|
7972
|
-
(0,
|
|
8024
|
+
(0, import_class_validator75.IsBoolean)()
|
|
7973
8025
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
7974
8026
|
|
|
7975
8027
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -7979,35 +8031,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7979
8031
|
};
|
|
7980
8032
|
|
|
7981
8033
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7982
|
-
var
|
|
8034
|
+
var import_class_validator76 = require("class-validator");
|
|
7983
8035
|
var import_class_transformer6 = require("class-transformer");
|
|
7984
8036
|
var ExperienceDto = class {
|
|
7985
8037
|
};
|
|
7986
8038
|
__decorateClass([
|
|
7987
|
-
(0,
|
|
8039
|
+
(0, import_class_validator76.IsOptional)()
|
|
7988
8040
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7989
8041
|
__decorateClass([
|
|
7990
|
-
(0,
|
|
7991
|
-
(0,
|
|
8042
|
+
(0, import_class_validator76.IsNotEmpty)(),
|
|
8043
|
+
(0, import_class_validator76.IsString)()
|
|
7992
8044
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7993
8045
|
__decorateClass([
|
|
7994
|
-
(0,
|
|
7995
|
-
(0,
|
|
8046
|
+
(0, import_class_validator76.IsNotEmpty)(),
|
|
8047
|
+
(0, import_class_validator76.IsString)()
|
|
7996
8048
|
], ExperienceDto.prototype, "designation", 2);
|
|
7997
8049
|
__decorateClass([
|
|
7998
|
-
(0,
|
|
7999
|
-
(0,
|
|
8050
|
+
(0, import_class_validator76.IsNotEmpty)(),
|
|
8051
|
+
(0, import_class_validator76.IsString)()
|
|
8000
8052
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
8001
8053
|
__decorateClass([
|
|
8002
|
-
(0,
|
|
8003
|
-
(0,
|
|
8004
|
-
(0,
|
|
8054
|
+
(0, import_class_validator76.IsOptional)(),
|
|
8055
|
+
(0, import_class_validator76.IsString)(),
|
|
8056
|
+
(0, import_class_validator76.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8005
8057
|
], ExperienceDto.prototype, "description", 2);
|
|
8006
8058
|
var FreelancerExperienceDto = class {
|
|
8007
8059
|
};
|
|
8008
8060
|
__decorateClass([
|
|
8009
|
-
(0,
|
|
8010
|
-
(0,
|
|
8061
|
+
(0, import_class_validator76.ValidateNested)({ each: true }),
|
|
8062
|
+
(0, import_class_validator76.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
8011
8063
|
(0, import_class_transformer6.Type)(() => ExperienceDto)
|
|
8012
8064
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
8013
8065
|
|
|
@@ -8024,43 +8076,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
8024
8076
|
};
|
|
8025
8077
|
|
|
8026
8078
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
8027
|
-
var
|
|
8079
|
+
var import_class_validator77 = require("class-validator");
|
|
8028
8080
|
var CreateCompanyMemberDto = class {
|
|
8029
8081
|
};
|
|
8030
8082
|
__decorateClass([
|
|
8031
|
-
(0,
|
|
8083
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please enter name." })
|
|
8032
8084
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
8033
8085
|
__decorateClass([
|
|
8034
|
-
(0,
|
|
8086
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please enter email" })
|
|
8035
8087
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
8036
8088
|
__decorateClass([
|
|
8037
|
-
(0,
|
|
8038
|
-
(0,
|
|
8039
|
-
(0,
|
|
8089
|
+
(0, import_class_validator77.IsArray)({ message: "Role IDs must be an array." }),
|
|
8090
|
+
(0, import_class_validator77.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
8091
|
+
(0, import_class_validator77.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
8040
8092
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
8041
8093
|
|
|
8042
8094
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
8043
|
-
var
|
|
8095
|
+
var import_class_validator78 = require("class-validator");
|
|
8044
8096
|
var UpdateCompanyMemberDto = class {
|
|
8045
8097
|
};
|
|
8046
8098
|
__decorateClass([
|
|
8047
|
-
(0,
|
|
8099
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please enter name." })
|
|
8048
8100
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
8049
8101
|
__decorateClass([
|
|
8050
|
-
(0,
|
|
8102
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please enter email" })
|
|
8051
8103
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
8052
8104
|
__decorateClass([
|
|
8053
|
-
(0,
|
|
8054
|
-
(0,
|
|
8055
|
-
(0,
|
|
8105
|
+
(0, import_class_validator78.IsArray)({ message: "Role IDs must be an array." }),
|
|
8106
|
+
(0, import_class_validator78.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
8107
|
+
(0, import_class_validator78.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
8056
8108
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
8057
8109
|
|
|
8058
8110
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
8059
|
-
var
|
|
8111
|
+
var import_class_validator79 = require("class-validator");
|
|
8060
8112
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
8061
8113
|
};
|
|
8062
8114
|
__decorateClass([
|
|
8063
|
-
(0,
|
|
8115
|
+
(0, import_class_validator79.IsBoolean)()
|
|
8064
8116
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
8065
8117
|
|
|
8066
8118
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -8070,31 +8122,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
8070
8122
|
};
|
|
8071
8123
|
|
|
8072
8124
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
8073
|
-
var
|
|
8125
|
+
var import_class_validator80 = require("class-validator");
|
|
8074
8126
|
var import_class_transformer7 = require("class-transformer");
|
|
8075
8127
|
var EducationDto = class {
|
|
8076
8128
|
};
|
|
8077
8129
|
__decorateClass([
|
|
8078
|
-
(0,
|
|
8130
|
+
(0, import_class_validator80.IsOptional)()
|
|
8079
8131
|
], EducationDto.prototype, "uuid", 2);
|
|
8080
8132
|
__decorateClass([
|
|
8081
|
-
(0,
|
|
8082
|
-
(0,
|
|
8133
|
+
(0, import_class_validator80.IsString)(),
|
|
8134
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
8083
8135
|
], EducationDto.prototype, "degree", 2);
|
|
8084
8136
|
__decorateClass([
|
|
8085
|
-
(0,
|
|
8086
|
-
(0,
|
|
8137
|
+
(0, import_class_validator80.IsString)(),
|
|
8138
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please Enter University " })
|
|
8087
8139
|
], EducationDto.prototype, "university", 2);
|
|
8088
8140
|
__decorateClass([
|
|
8089
|
-
(0,
|
|
8090
|
-
(0,
|
|
8141
|
+
(0, import_class_validator80.IsString)(),
|
|
8142
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
8091
8143
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
8092
8144
|
var FreelancerEducationDto = class {
|
|
8093
8145
|
};
|
|
8094
8146
|
__decorateClass([
|
|
8095
|
-
(0,
|
|
8096
|
-
(0,
|
|
8097
|
-
(0,
|
|
8147
|
+
(0, import_class_validator80.IsArray)(),
|
|
8148
|
+
(0, import_class_validator80.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
8149
|
+
(0, import_class_validator80.ValidateNested)({ each: true }),
|
|
8098
8150
|
(0, import_class_transformer7.Type)(() => EducationDto)
|
|
8099
8151
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
8100
8152
|
|
|
@@ -8105,67 +8157,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
8105
8157
|
};
|
|
8106
8158
|
|
|
8107
8159
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
8108
|
-
var
|
|
8160
|
+
var import_class_validator81 = require("class-validator");
|
|
8109
8161
|
var import_class_transformer8 = require("class-transformer");
|
|
8110
8162
|
var ProjectDto = class {
|
|
8111
8163
|
};
|
|
8112
8164
|
__decorateClass([
|
|
8113
|
-
(0,
|
|
8165
|
+
(0, import_class_validator81.IsOptional)()
|
|
8114
8166
|
], ProjectDto.prototype, "uuid", 2);
|
|
8115
8167
|
__decorateClass([
|
|
8116
|
-
(0,
|
|
8117
|
-
(0,
|
|
8168
|
+
(0, import_class_validator81.IsString)(),
|
|
8169
|
+
(0, import_class_validator81.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
8118
8170
|
], ProjectDto.prototype, "projectName", 2);
|
|
8119
8171
|
__decorateClass([
|
|
8120
|
-
(0,
|
|
8121
|
-
(0,
|
|
8172
|
+
(0, import_class_validator81.IsDateString)(),
|
|
8173
|
+
(0, import_class_validator81.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
8122
8174
|
], ProjectDto.prototype, "startDate", 2);
|
|
8123
8175
|
__decorateClass([
|
|
8124
|
-
(0,
|
|
8125
|
-
(0,
|
|
8176
|
+
(0, import_class_validator81.IsDateString)(),
|
|
8177
|
+
(0, import_class_validator81.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
8126
8178
|
], ProjectDto.prototype, "endDate", 2);
|
|
8127
8179
|
__decorateClass([
|
|
8128
|
-
(0,
|
|
8129
|
-
(0,
|
|
8180
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8181
|
+
(0, import_class_validator81.IsString)()
|
|
8130
8182
|
], ProjectDto.prototype, "clientName", 2);
|
|
8131
8183
|
__decorateClass([
|
|
8132
|
-
(0,
|
|
8133
|
-
(0,
|
|
8184
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8185
|
+
(0, import_class_validator81.IsString)()
|
|
8134
8186
|
], ProjectDto.prototype, "gitLink", 2);
|
|
8135
8187
|
__decorateClass([
|
|
8136
|
-
(0,
|
|
8137
|
-
(0,
|
|
8138
|
-
(0,
|
|
8188
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8189
|
+
(0, import_class_validator81.IsString)(),
|
|
8190
|
+
(0, import_class_validator81.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8139
8191
|
], ProjectDto.prototype, "description", 2);
|
|
8140
8192
|
var CaseStudyDto = class {
|
|
8141
8193
|
};
|
|
8142
8194
|
__decorateClass([
|
|
8143
|
-
(0,
|
|
8195
|
+
(0, import_class_validator81.IsOptional)()
|
|
8144
8196
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
8145
8197
|
__decorateClass([
|
|
8146
|
-
(0,
|
|
8147
|
-
(0,
|
|
8198
|
+
(0, import_class_validator81.IsString)(),
|
|
8199
|
+
(0, import_class_validator81.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
8148
8200
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
8149
8201
|
__decorateClass([
|
|
8150
|
-
(0,
|
|
8151
|
-
(0,
|
|
8202
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8203
|
+
(0, import_class_validator81.IsString)()
|
|
8152
8204
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
8153
8205
|
__decorateClass([
|
|
8154
|
-
(0,
|
|
8155
|
-
(0,
|
|
8156
|
-
(0,
|
|
8206
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8207
|
+
(0, import_class_validator81.IsString)(),
|
|
8208
|
+
(0, import_class_validator81.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8157
8209
|
], CaseStudyDto.prototype, "description", 2);
|
|
8158
8210
|
var FreelancerProjectDto = class {
|
|
8159
8211
|
};
|
|
8160
8212
|
__decorateClass([
|
|
8161
|
-
(0,
|
|
8162
|
-
(0,
|
|
8163
|
-
(0,
|
|
8213
|
+
(0, import_class_validator81.IsArray)(),
|
|
8214
|
+
(0, import_class_validator81.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
8215
|
+
(0, import_class_validator81.ValidateNested)({ each: true }),
|
|
8164
8216
|
(0, import_class_transformer8.Type)(() => ProjectDto)
|
|
8165
8217
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
8166
8218
|
__decorateClass([
|
|
8167
|
-
(0,
|
|
8168
|
-
(0,
|
|
8219
|
+
(0, import_class_validator81.IsArray)(),
|
|
8220
|
+
(0, import_class_validator81.ValidateNested)({ each: true }),
|
|
8169
8221
|
(0, import_class_transformer8.Type)(() => CaseStudyDto)
|
|
8170
8222
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
8171
8223
|
|
|
@@ -8182,7 +8234,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
8182
8234
|
};
|
|
8183
8235
|
|
|
8184
8236
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
8185
|
-
var
|
|
8237
|
+
var import_class_validator82 = require("class-validator");
|
|
8186
8238
|
var import_class_transformer9 = require("class-transformer");
|
|
8187
8239
|
var FreelancerSkillDto = class {
|
|
8188
8240
|
constructor() {
|
|
@@ -8193,28 +8245,28 @@ var FreelancerSkillDto = class {
|
|
|
8193
8245
|
}
|
|
8194
8246
|
};
|
|
8195
8247
|
__decorateClass([
|
|
8196
|
-
(0,
|
|
8197
|
-
(0,
|
|
8248
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8249
|
+
(0, import_class_validator82.IsArray)(),
|
|
8198
8250
|
(0, import_class_transformer9.Type)(() => String),
|
|
8199
|
-
(0,
|
|
8251
|
+
(0, import_class_validator82.IsString)({ each: true })
|
|
8200
8252
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
8201
8253
|
__decorateClass([
|
|
8202
|
-
(0,
|
|
8203
|
-
(0,
|
|
8254
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8255
|
+
(0, import_class_validator82.IsArray)(),
|
|
8204
8256
|
(0, import_class_transformer9.Type)(() => String),
|
|
8205
|
-
(0,
|
|
8257
|
+
(0, import_class_validator82.IsString)({ each: true })
|
|
8206
8258
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
8207
8259
|
__decorateClass([
|
|
8208
|
-
(0,
|
|
8209
|
-
(0,
|
|
8260
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8261
|
+
(0, import_class_validator82.IsArray)(),
|
|
8210
8262
|
(0, import_class_transformer9.Type)(() => String),
|
|
8211
|
-
(0,
|
|
8263
|
+
(0, import_class_validator82.IsString)({ each: true })
|
|
8212
8264
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
8213
8265
|
__decorateClass([
|
|
8214
|
-
(0,
|
|
8215
|
-
(0,
|
|
8266
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8267
|
+
(0, import_class_validator82.IsArray)(),
|
|
8216
8268
|
(0, import_class_transformer9.Type)(() => String),
|
|
8217
|
-
(0,
|
|
8269
|
+
(0, import_class_validator82.IsString)({ each: true })
|
|
8218
8270
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
8219
8271
|
|
|
8220
8272
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -8247,7 +8299,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
8247
8299
|
};
|
|
8248
8300
|
|
|
8249
8301
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
8250
|
-
var
|
|
8302
|
+
var import_class_validator83 = require("class-validator");
|
|
8251
8303
|
var import_class_transformer10 = require("class-transformer");
|
|
8252
8304
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
8253
8305
|
NatureOfWorkEnum3["FTE"] = "FTE";
|
|
@@ -8264,41 +8316,41 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
8264
8316
|
var CreateFreelancerDto = class {
|
|
8265
8317
|
};
|
|
8266
8318
|
__decorateClass([
|
|
8267
|
-
(0,
|
|
8268
|
-
(0,
|
|
8269
|
-
(0,
|
|
8319
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8320
|
+
(0, import_class_validator83.IsString)({ message: "Full name must be a string" }),
|
|
8321
|
+
(0, import_class_validator83.MaxLength)(100, { message: "Full name must not exceed 100 characters" }),
|
|
8270
8322
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8271
8323
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8272
8324
|
return typeof value === "string" ? value.trim() : value;
|
|
8273
8325
|
})
|
|
8274
8326
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
8275
8327
|
__decorateClass([
|
|
8276
|
-
(0,
|
|
8277
|
-
(0,
|
|
8328
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8329
|
+
(0, import_class_validator83.IsEmail)({}, { message: "Invalid email address" }),
|
|
8278
8330
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8279
8331
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8280
8332
|
return typeof value === "string" ? value.trim() : value;
|
|
8281
8333
|
})
|
|
8282
8334
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
8283
8335
|
__decorateClass([
|
|
8284
|
-
(0,
|
|
8285
|
-
(0,
|
|
8336
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8337
|
+
(0, import_class_validator83.IsString)({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8286
8338
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8287
8339
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8288
8340
|
return typeof value === "string" ? value.trim() : value;
|
|
8289
8341
|
})
|
|
8290
8342
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
8291
8343
|
__decorateClass([
|
|
8292
|
-
(0,
|
|
8293
|
-
(0,
|
|
8344
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8345
|
+
(0, import_class_validator83.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8294
8346
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8295
8347
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8296
8348
|
return typeof value === "string" ? value.trim() : value;
|
|
8297
8349
|
})
|
|
8298
8350
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
8299
8351
|
__decorateClass([
|
|
8300
|
-
(0,
|
|
8301
|
-
(0,
|
|
8352
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "Please enter address." }),
|
|
8353
|
+
(0, import_class_validator83.IsString)({ message: "address must be a string" }),
|
|
8302
8354
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8303
8355
|
if (Array.isArray(value)) {
|
|
8304
8356
|
const val = value[0];
|
|
@@ -8308,8 +8360,8 @@ __decorateClass([
|
|
|
8308
8360
|
})
|
|
8309
8361
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
8310
8362
|
__decorateClass([
|
|
8311
|
-
(0,
|
|
8312
|
-
(0,
|
|
8363
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8364
|
+
(0, import_class_validator83.IsString)({ message: "addressLine must be a string" }),
|
|
8313
8365
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8314
8366
|
if (Array.isArray(value)) {
|
|
8315
8367
|
const val = value[0];
|
|
@@ -8321,8 +8373,8 @@ __decorateClass([
|
|
|
8321
8373
|
})
|
|
8322
8374
|
], CreateFreelancerDto.prototype, "addressLine", 2);
|
|
8323
8375
|
__decorateClass([
|
|
8324
|
-
(0,
|
|
8325
|
-
(0,
|
|
8376
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8377
|
+
(0, import_class_validator83.IsInt)({ message: "countryId must be an integer" }),
|
|
8326
8378
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8327
8379
|
if (Array.isArray(value)) value = value[0];
|
|
8328
8380
|
const num = Number(value);
|
|
@@ -8330,8 +8382,8 @@ __decorateClass([
|
|
|
8330
8382
|
})
|
|
8331
8383
|
], CreateFreelancerDto.prototype, "countryId", 2);
|
|
8332
8384
|
__decorateClass([
|
|
8333
|
-
(0,
|
|
8334
|
-
(0,
|
|
8385
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8386
|
+
(0, import_class_validator83.IsInt)({ message: "stateId must be an integer" }),
|
|
8335
8387
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8336
8388
|
if (Array.isArray(value)) value = value[0];
|
|
8337
8389
|
const num = Number(value);
|
|
@@ -8339,8 +8391,8 @@ __decorateClass([
|
|
|
8339
8391
|
})
|
|
8340
8392
|
], CreateFreelancerDto.prototype, "stateId", 2);
|
|
8341
8393
|
__decorateClass([
|
|
8342
|
-
(0,
|
|
8343
|
-
(0,
|
|
8394
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8395
|
+
(0, import_class_validator83.IsInt)({ message: "cityId must be an integer" }),
|
|
8344
8396
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8345
8397
|
if (Array.isArray(value)) value = value[0];
|
|
8346
8398
|
const num = Number(value);
|
|
@@ -8348,8 +8400,8 @@ __decorateClass([
|
|
|
8348
8400
|
})
|
|
8349
8401
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
8350
8402
|
__decorateClass([
|
|
8351
|
-
(0,
|
|
8352
|
-
(0,
|
|
8403
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8404
|
+
(0, import_class_validator83.IsString)({ message: "postalCode must be a string" }),
|
|
8353
8405
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8354
8406
|
if (Array.isArray(value)) {
|
|
8355
8407
|
const val = value[0];
|
|
@@ -8361,8 +8413,8 @@ __decorateClass([
|
|
|
8361
8413
|
})
|
|
8362
8414
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
8363
8415
|
__decorateClass([
|
|
8364
|
-
(0,
|
|
8365
|
-
(0,
|
|
8416
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8417
|
+
(0, import_class_validator83.IsString)({ message: "about must be a string" }),
|
|
8366
8418
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8367
8419
|
if (Array.isArray(value)) {
|
|
8368
8420
|
const val = value[0];
|
|
@@ -8374,8 +8426,8 @@ __decorateClass([
|
|
|
8374
8426
|
})
|
|
8375
8427
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
8376
8428
|
__decorateClass([
|
|
8377
|
-
(0,
|
|
8378
|
-
(0,
|
|
8429
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8430
|
+
(0, import_class_validator83.IsString)({ message: "designation must be a string" }),
|
|
8379
8431
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8380
8432
|
if (Array.isArray(value)) {
|
|
8381
8433
|
const val = value[0];
|
|
@@ -8387,8 +8439,8 @@ __decorateClass([
|
|
|
8387
8439
|
})
|
|
8388
8440
|
], CreateFreelancerDto.prototype, "designation", 2);
|
|
8389
8441
|
__decorateClass([
|
|
8390
|
-
(0,
|
|
8391
|
-
(0,
|
|
8442
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8443
|
+
(0, import_class_validator83.IsNumber)({}, { message: "experience must be a number" }),
|
|
8392
8444
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8393
8445
|
if (Array.isArray(value)) value = value[0];
|
|
8394
8446
|
const num = Number(value);
|
|
@@ -8396,19 +8448,19 @@ __decorateClass([
|
|
|
8396
8448
|
})
|
|
8397
8449
|
], CreateFreelancerDto.prototype, "experience", 2);
|
|
8398
8450
|
__decorateClass([
|
|
8399
|
-
(0,
|
|
8451
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8400
8452
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8401
8453
|
if (Array.isArray(value)) value = value[0];
|
|
8402
8454
|
return value === null || value === "" ? void 0 : value;
|
|
8403
8455
|
}),
|
|
8404
|
-
(0,
|
|
8405
|
-
(0,
|
|
8406
|
-
(0,
|
|
8456
|
+
(0, import_class_validator83.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
8457
|
+
(0, import_class_validator83.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
8458
|
+
(0, import_class_validator83.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8407
8459
|
message: "Password must include letters, numbers and symbols."
|
|
8408
8460
|
})
|
|
8409
8461
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
8410
8462
|
__decorateClass([
|
|
8411
|
-
(0,
|
|
8463
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
8412
8464
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
8413
8465
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8414
8466
|
if (Array.isArray(value)) {
|
|
@@ -8419,29 +8471,29 @@ __decorateClass([
|
|
|
8419
8471
|
})
|
|
8420
8472
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
8421
8473
|
__decorateClass([
|
|
8422
|
-
(0,
|
|
8474
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8423
8475
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8424
8476
|
if (Array.isArray(value)) value = value[0];
|
|
8425
8477
|
if (value === "true" || value === true) return true;
|
|
8426
8478
|
if (value === "false" || value === false) return false;
|
|
8427
8479
|
return void 0;
|
|
8428
8480
|
}),
|
|
8429
|
-
(0,
|
|
8481
|
+
(0, import_class_validator83.IsBoolean)({ message: "Developer flag must be true or false" })
|
|
8430
8482
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
8431
8483
|
__decorateClass([
|
|
8432
|
-
(0,
|
|
8433
|
-
(0,
|
|
8484
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8485
|
+
(0, import_class_validator83.IsEnum)(NatureOfWorkEnum, {
|
|
8434
8486
|
message: `Nature of work must be one of: ${Object.values(
|
|
8435
8487
|
NatureOfWorkEnum
|
|
8436
8488
|
).join(", ")}`
|
|
8437
8489
|
})
|
|
8438
8490
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
8439
8491
|
__decorateClass([
|
|
8440
|
-
(0,
|
|
8492
|
+
(0, import_class_validator83.ValidateIf)(
|
|
8441
8493
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8442
8494
|
),
|
|
8443
|
-
(0,
|
|
8444
|
-
(0,
|
|
8495
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8496
|
+
(0, import_class_validator83.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
8445
8497
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8446
8498
|
if (Array.isArray(value)) value = value[0];
|
|
8447
8499
|
const num = Number(value);
|
|
@@ -8449,11 +8501,11 @@ __decorateClass([
|
|
|
8449
8501
|
})
|
|
8450
8502
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
8451
8503
|
__decorateClass([
|
|
8452
|
-
(0,
|
|
8504
|
+
(0, import_class_validator83.ValidateIf)(
|
|
8453
8505
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8454
8506
|
),
|
|
8455
|
-
(0,
|
|
8456
|
-
(0,
|
|
8507
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8508
|
+
(0, import_class_validator83.IsNumber)({}, { message: "Expected annual compensation must be a number" }),
|
|
8457
8509
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8458
8510
|
if (Array.isArray(value)) value = value[0];
|
|
8459
8511
|
const num = Number(value);
|
|
@@ -8461,11 +8513,11 @@ __decorateClass([
|
|
|
8461
8513
|
})
|
|
8462
8514
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
8463
8515
|
__decorateClass([
|
|
8464
|
-
(0,
|
|
8516
|
+
(0, import_class_validator83.ValidateIf)(
|
|
8465
8517
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8466
8518
|
),
|
|
8467
|
-
(0,
|
|
8468
|
-
(0,
|
|
8519
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8520
|
+
(0, import_class_validator83.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
8469
8521
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8470
8522
|
if (Array.isArray(value)) value = value[0];
|
|
8471
8523
|
const num = Number(value);
|
|
@@ -8473,27 +8525,27 @@ __decorateClass([
|
|
|
8473
8525
|
})
|
|
8474
8526
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8475
8527
|
__decorateClass([
|
|
8476
|
-
(0,
|
|
8477
|
-
(0,
|
|
8528
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8529
|
+
(0, import_class_validator83.IsEnum)(ModeOfWorkEnum, {
|
|
8478
8530
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
8479
8531
|
", "
|
|
8480
8532
|
)}`
|
|
8481
8533
|
})
|
|
8482
8534
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8483
8535
|
__decorateClass([
|
|
8484
|
-
(0,
|
|
8536
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8485
8537
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8486
8538
|
if (Array.isArray(value)) value = value[0];
|
|
8487
8539
|
if (value === "true" || value === true) return true;
|
|
8488
8540
|
if (value === "false" || value === false) return false;
|
|
8489
8541
|
return void 0;
|
|
8490
8542
|
}),
|
|
8491
|
-
(0,
|
|
8543
|
+
(0, import_class_validator83.IsBoolean)({ message: "isImmediateJoiner must be true or false" })
|
|
8492
8544
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8493
8545
|
__decorateClass([
|
|
8494
|
-
(0,
|
|
8495
|
-
(0,
|
|
8496
|
-
(0,
|
|
8546
|
+
(0, import_class_validator83.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
8547
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8548
|
+
(0, import_class_validator83.IsString)({ message: "availabilityToJoin must be a string" }),
|
|
8497
8549
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8498
8550
|
if (Array.isArray(value)) {
|
|
8499
8551
|
const val = value[0];
|
|
@@ -8505,8 +8557,8 @@ __decorateClass([
|
|
|
8505
8557
|
})
|
|
8506
8558
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8507
8559
|
__decorateClass([
|
|
8508
|
-
(0,
|
|
8509
|
-
(0,
|
|
8560
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8561
|
+
(0, import_class_validator83.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8510
8562
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8511
8563
|
if (Array.isArray(value)) {
|
|
8512
8564
|
const val = value[0];
|
|
@@ -8518,8 +8570,8 @@ __decorateClass([
|
|
|
8518
8570
|
})
|
|
8519
8571
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8520
8572
|
__decorateClass([
|
|
8521
|
-
(0,
|
|
8522
|
-
(0,
|
|
8573
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8574
|
+
(0, import_class_validator83.IsString)({ message: "Kaggle profile link must be a string" }),
|
|
8523
8575
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8524
8576
|
if (Array.isArray(value)) {
|
|
8525
8577
|
const val = value[0];
|
|
@@ -8531,8 +8583,8 @@ __decorateClass([
|
|
|
8531
8583
|
})
|
|
8532
8584
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8533
8585
|
__decorateClass([
|
|
8534
|
-
(0,
|
|
8535
|
-
(0,
|
|
8586
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8587
|
+
(0, import_class_validator83.IsUrl)({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8536
8588
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8537
8589
|
if (Array.isArray(value)) {
|
|
8538
8590
|
const val = value[0];
|
|
@@ -8544,8 +8596,8 @@ __decorateClass([
|
|
|
8544
8596
|
})
|
|
8545
8597
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8546
8598
|
__decorateClass([
|
|
8547
|
-
(0,
|
|
8548
|
-
(0,
|
|
8599
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8600
|
+
(0, import_class_validator83.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8549
8601
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8550
8602
|
if (Array.isArray(value)) {
|
|
8551
8603
|
const val = value[0];
|
|
@@ -8557,8 +8609,8 @@ __decorateClass([
|
|
|
8557
8609
|
})
|
|
8558
8610
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8559
8611
|
__decorateClass([
|
|
8560
|
-
(0,
|
|
8561
|
-
(0,
|
|
8612
|
+
(0, import_class_validator83.IsOptional)(),
|
|
8613
|
+
(0, import_class_validator83.IsUrl)({}, { message: "Portfolio link must be a valid URL" }),
|
|
8562
8614
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8563
8615
|
if (Array.isArray(value)) {
|
|
8564
8616
|
const val = value[0];
|
|
@@ -8570,11 +8622,11 @@ __decorateClass([
|
|
|
8570
8622
|
})
|
|
8571
8623
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8572
8624
|
__decorateClass([
|
|
8573
|
-
(0,
|
|
8625
|
+
(0, import_class_validator83.IsOptional)()
|
|
8574
8626
|
], CreateFreelancerDto.prototype, "file", 2);
|
|
8575
8627
|
|
|
8576
8628
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8577
|
-
var
|
|
8629
|
+
var import_class_validator84 = require("class-validator");
|
|
8578
8630
|
var import_class_transformer11 = require("class-transformer");
|
|
8579
8631
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
8580
8632
|
NatureOfWorkEnum3["FTE"] = "FTE";
|
|
@@ -8591,41 +8643,41 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
8591
8643
|
var UpdateFreelancerDto = class {
|
|
8592
8644
|
};
|
|
8593
8645
|
__decorateClass([
|
|
8594
|
-
(0,
|
|
8595
|
-
(0,
|
|
8596
|
-
(0,
|
|
8646
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8647
|
+
(0, import_class_validator84.IsString)({ message: "Full name must be a string" }),
|
|
8648
|
+
(0, import_class_validator84.MaxLength)(100, { message: "Full name must not exceed 100 characters" }),
|
|
8597
8649
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8598
8650
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8599
8651
|
return typeof value === "string" ? value.trim() : value;
|
|
8600
8652
|
})
|
|
8601
8653
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
8602
8654
|
__decorateClass([
|
|
8603
|
-
(0,
|
|
8604
|
-
(0,
|
|
8655
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8656
|
+
(0, import_class_validator84.IsEmail)({}, { message: "Invalid email address" }),
|
|
8605
8657
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8606
8658
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8607
8659
|
return typeof value === "string" ? value.trim() : value;
|
|
8608
8660
|
})
|
|
8609
8661
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8610
8662
|
__decorateClass([
|
|
8611
|
-
(0,
|
|
8612
|
-
(0,
|
|
8663
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8664
|
+
(0, import_class_validator84.IsString)({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8613
8665
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8614
8666
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8615
8667
|
return typeof value === "string" ? value.trim() : value;
|
|
8616
8668
|
})
|
|
8617
8669
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8618
8670
|
__decorateClass([
|
|
8619
|
-
(0,
|
|
8620
|
-
(0,
|
|
8671
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8672
|
+
(0, import_class_validator84.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8621
8673
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8622
8674
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8623
8675
|
return typeof value === "string" ? value.trim() : value;
|
|
8624
8676
|
})
|
|
8625
8677
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8626
8678
|
__decorateClass([
|
|
8627
|
-
(0,
|
|
8628
|
-
(0,
|
|
8679
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Please enter address." }),
|
|
8680
|
+
(0, import_class_validator84.IsString)({ message: "address must be a string" }),
|
|
8629
8681
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8630
8682
|
if (Array.isArray(value)) {
|
|
8631
8683
|
const val = value[0];
|
|
@@ -8635,8 +8687,8 @@ __decorateClass([
|
|
|
8635
8687
|
})
|
|
8636
8688
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8637
8689
|
__decorateClass([
|
|
8638
|
-
(0,
|
|
8639
|
-
(0,
|
|
8690
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8691
|
+
(0, import_class_validator84.IsString)({ message: "addressLine must be a string" }),
|
|
8640
8692
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8641
8693
|
if (Array.isArray(value)) {
|
|
8642
8694
|
const val = value[0];
|
|
@@ -8648,8 +8700,8 @@ __decorateClass([
|
|
|
8648
8700
|
})
|
|
8649
8701
|
], UpdateFreelancerDto.prototype, "addressLine", 2);
|
|
8650
8702
|
__decorateClass([
|
|
8651
|
-
(0,
|
|
8652
|
-
(0,
|
|
8703
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8704
|
+
(0, import_class_validator84.IsInt)({ message: "countryId must be an integer" }),
|
|
8653
8705
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8654
8706
|
if (Array.isArray(value)) value = value[0];
|
|
8655
8707
|
const num = Number(value);
|
|
@@ -8657,8 +8709,8 @@ __decorateClass([
|
|
|
8657
8709
|
})
|
|
8658
8710
|
], UpdateFreelancerDto.prototype, "countryId", 2);
|
|
8659
8711
|
__decorateClass([
|
|
8660
|
-
(0,
|
|
8661
|
-
(0,
|
|
8712
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8713
|
+
(0, import_class_validator84.IsInt)({ message: "stateId must be an integer" }),
|
|
8662
8714
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8663
8715
|
if (Array.isArray(value)) value = value[0];
|
|
8664
8716
|
const num = Number(value);
|
|
@@ -8666,8 +8718,8 @@ __decorateClass([
|
|
|
8666
8718
|
})
|
|
8667
8719
|
], UpdateFreelancerDto.prototype, "stateId", 2);
|
|
8668
8720
|
__decorateClass([
|
|
8669
|
-
(0,
|
|
8670
|
-
(0,
|
|
8721
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8722
|
+
(0, import_class_validator84.IsInt)({ message: "cityId must be an integer" }),
|
|
8671
8723
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8672
8724
|
if (Array.isArray(value)) value = value[0];
|
|
8673
8725
|
const num = Number(value);
|
|
@@ -8675,8 +8727,8 @@ __decorateClass([
|
|
|
8675
8727
|
})
|
|
8676
8728
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8677
8729
|
__decorateClass([
|
|
8678
|
-
(0,
|
|
8679
|
-
(0,
|
|
8730
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8731
|
+
(0, import_class_validator84.IsString)({ message: "postalCode must be a string" }),
|
|
8680
8732
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8681
8733
|
if (Array.isArray(value)) {
|
|
8682
8734
|
const val = value[0];
|
|
@@ -8688,8 +8740,8 @@ __decorateClass([
|
|
|
8688
8740
|
})
|
|
8689
8741
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8690
8742
|
__decorateClass([
|
|
8691
|
-
(0,
|
|
8692
|
-
(0,
|
|
8743
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8744
|
+
(0, import_class_validator84.IsString)({ message: "about must be a string" }),
|
|
8693
8745
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8694
8746
|
if (Array.isArray(value)) {
|
|
8695
8747
|
const val = value[0];
|
|
@@ -8701,8 +8753,8 @@ __decorateClass([
|
|
|
8701
8753
|
})
|
|
8702
8754
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8703
8755
|
__decorateClass([
|
|
8704
|
-
(0,
|
|
8705
|
-
(0,
|
|
8756
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8757
|
+
(0, import_class_validator84.IsString)({ message: "designation must be a string" }),
|
|
8706
8758
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8707
8759
|
if (Array.isArray(value)) {
|
|
8708
8760
|
const val = value[0];
|
|
@@ -8714,8 +8766,8 @@ __decorateClass([
|
|
|
8714
8766
|
})
|
|
8715
8767
|
], UpdateFreelancerDto.prototype, "designation", 2);
|
|
8716
8768
|
__decorateClass([
|
|
8717
|
-
(0,
|
|
8718
|
-
(0,
|
|
8769
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8770
|
+
(0, import_class_validator84.IsNumber)({}, { message: "experience must be a number" }),
|
|
8719
8771
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8720
8772
|
if (Array.isArray(value)) value = value[0];
|
|
8721
8773
|
const num = Number(value);
|
|
@@ -8723,41 +8775,41 @@ __decorateClass([
|
|
|
8723
8775
|
})
|
|
8724
8776
|
], UpdateFreelancerDto.prototype, "experience", 2);
|
|
8725
8777
|
__decorateClass([
|
|
8726
|
-
(0,
|
|
8778
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8727
8779
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8728
8780
|
if (Array.isArray(value)) value = value[0];
|
|
8729
8781
|
return value === null || value === "" ? void 0 : value;
|
|
8730
8782
|
}),
|
|
8731
|
-
(0,
|
|
8732
|
-
(0,
|
|
8733
|
-
(0,
|
|
8783
|
+
(0, import_class_validator84.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
8784
|
+
(0, import_class_validator84.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
8785
|
+
(0, import_class_validator84.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8734
8786
|
message: "Password must include letters, numbers and symbols."
|
|
8735
8787
|
})
|
|
8736
8788
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
8737
8789
|
__decorateClass([
|
|
8738
|
-
(0,
|
|
8790
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8739
8791
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8740
8792
|
if (Array.isArray(value)) value = value[0];
|
|
8741
8793
|
if (value === "true" || value === true) return true;
|
|
8742
8794
|
if (value === "false" || value === false) return false;
|
|
8743
8795
|
return void 0;
|
|
8744
8796
|
}),
|
|
8745
|
-
(0,
|
|
8797
|
+
(0, import_class_validator84.IsBoolean)({ message: "Developer flag must be true or false" })
|
|
8746
8798
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
8747
8799
|
__decorateClass([
|
|
8748
|
-
(0,
|
|
8749
|
-
(0,
|
|
8800
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8801
|
+
(0, import_class_validator84.IsEnum)(NatureOfWorkEnum2, {
|
|
8750
8802
|
message: `Nature of work must be one of: ${Object.values(
|
|
8751
8803
|
NatureOfWorkEnum2
|
|
8752
8804
|
).join(", ")}`
|
|
8753
8805
|
})
|
|
8754
8806
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
8755
8807
|
__decorateClass([
|
|
8756
|
-
(0,
|
|
8808
|
+
(0, import_class_validator84.ValidateIf)(
|
|
8757
8809
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8758
8810
|
),
|
|
8759
|
-
(0,
|
|
8760
|
-
(0,
|
|
8811
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8812
|
+
(0, import_class_validator84.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
8761
8813
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8762
8814
|
if (Array.isArray(value)) value = value[0];
|
|
8763
8815
|
const num = Number(value);
|
|
@@ -8765,11 +8817,11 @@ __decorateClass([
|
|
|
8765
8817
|
})
|
|
8766
8818
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
8767
8819
|
__decorateClass([
|
|
8768
|
-
(0,
|
|
8820
|
+
(0, import_class_validator84.ValidateIf)(
|
|
8769
8821
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8770
8822
|
),
|
|
8771
|
-
(0,
|
|
8772
|
-
(0,
|
|
8823
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8824
|
+
(0, import_class_validator84.IsNumber)({}, { message: "Expected annual compensation must be a number" }),
|
|
8773
8825
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8774
8826
|
if (Array.isArray(value)) value = value[0];
|
|
8775
8827
|
const num = Number(value);
|
|
@@ -8777,11 +8829,11 @@ __decorateClass([
|
|
|
8777
8829
|
})
|
|
8778
8830
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
8779
8831
|
__decorateClass([
|
|
8780
|
-
(0,
|
|
8832
|
+
(0, import_class_validator84.ValidateIf)(
|
|
8781
8833
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8782
8834
|
),
|
|
8783
|
-
(0,
|
|
8784
|
-
(0,
|
|
8835
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8836
|
+
(0, import_class_validator84.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
8785
8837
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8786
8838
|
if (Array.isArray(value)) value = value[0];
|
|
8787
8839
|
const num = Number(value);
|
|
@@ -8789,27 +8841,27 @@ __decorateClass([
|
|
|
8789
8841
|
})
|
|
8790
8842
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8791
8843
|
__decorateClass([
|
|
8792
|
-
(0,
|
|
8793
|
-
(0,
|
|
8844
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8845
|
+
(0, import_class_validator84.IsEnum)(ModeOfWorkEnum2, {
|
|
8794
8846
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
8795
8847
|
", "
|
|
8796
8848
|
)}`
|
|
8797
8849
|
})
|
|
8798
8850
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8799
8851
|
__decorateClass([
|
|
8800
|
-
(0,
|
|
8852
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8801
8853
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8802
8854
|
if (Array.isArray(value)) value = value[0];
|
|
8803
8855
|
if (value === "true" || value === true) return true;
|
|
8804
8856
|
if (value === "false" || value === false) return false;
|
|
8805
8857
|
return void 0;
|
|
8806
8858
|
}),
|
|
8807
|
-
(0,
|
|
8859
|
+
(0, import_class_validator84.IsBoolean)({ message: "isImmediateJoiner must be true or false" })
|
|
8808
8860
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8809
8861
|
__decorateClass([
|
|
8810
|
-
(0,
|
|
8811
|
-
(0,
|
|
8812
|
-
(0,
|
|
8862
|
+
(0, import_class_validator84.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
8863
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8864
|
+
(0, import_class_validator84.IsString)({ message: "availabilityToJoin must be a string" }),
|
|
8813
8865
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8814
8866
|
if (Array.isArray(value)) {
|
|
8815
8867
|
const val = value[0];
|
|
@@ -8821,8 +8873,8 @@ __decorateClass([
|
|
|
8821
8873
|
})
|
|
8822
8874
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8823
8875
|
__decorateClass([
|
|
8824
|
-
(0,
|
|
8825
|
-
(0,
|
|
8876
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8877
|
+
(0, import_class_validator84.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8826
8878
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8827
8879
|
if (Array.isArray(value)) {
|
|
8828
8880
|
const val = value[0];
|
|
@@ -8834,8 +8886,8 @@ __decorateClass([
|
|
|
8834
8886
|
})
|
|
8835
8887
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8836
8888
|
__decorateClass([
|
|
8837
|
-
(0,
|
|
8838
|
-
(0,
|
|
8889
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8890
|
+
(0, import_class_validator84.IsString)({ message: "Kaggle profile link must be a string" }),
|
|
8839
8891
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8840
8892
|
if (Array.isArray(value)) {
|
|
8841
8893
|
const val = value[0];
|
|
@@ -8847,8 +8899,8 @@ __decorateClass([
|
|
|
8847
8899
|
})
|
|
8848
8900
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8849
8901
|
__decorateClass([
|
|
8850
|
-
(0,
|
|
8851
|
-
(0,
|
|
8902
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8903
|
+
(0, import_class_validator84.IsUrl)({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8852
8904
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8853
8905
|
if (Array.isArray(value)) {
|
|
8854
8906
|
const val = value[0];
|
|
@@ -8860,8 +8912,8 @@ __decorateClass([
|
|
|
8860
8912
|
})
|
|
8861
8913
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8862
8914
|
__decorateClass([
|
|
8863
|
-
(0,
|
|
8864
|
-
(0,
|
|
8915
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8916
|
+
(0, import_class_validator84.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8865
8917
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8866
8918
|
if (Array.isArray(value)) {
|
|
8867
8919
|
const val = value[0];
|
|
@@ -8873,8 +8925,8 @@ __decorateClass([
|
|
|
8873
8925
|
})
|
|
8874
8926
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8875
8927
|
__decorateClass([
|
|
8876
|
-
(0,
|
|
8877
|
-
(0,
|
|
8928
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8929
|
+
(0, import_class_validator84.IsUrl)({}, { message: "Portfolio link must be a valid URL" }),
|
|
8878
8930
|
(0, import_class_transformer11.Transform)(({ value }) => {
|
|
8879
8931
|
if (Array.isArray(value)) {
|
|
8880
8932
|
const val = value[0];
|
|
@@ -8886,20 +8938,20 @@ __decorateClass([
|
|
|
8886
8938
|
})
|
|
8887
8939
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8888
8940
|
__decorateClass([
|
|
8889
|
-
(0,
|
|
8941
|
+
(0, import_class_validator84.IsOptional)()
|
|
8890
8942
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8891
8943
|
|
|
8892
8944
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8893
|
-
var
|
|
8945
|
+
var import_class_validator85 = require("class-validator");
|
|
8894
8946
|
var SendAiAssessmentLinkDto = class {
|
|
8895
8947
|
};
|
|
8896
8948
|
__decorateClass([
|
|
8897
|
-
(0,
|
|
8898
|
-
(0,
|
|
8949
|
+
(0, import_class_validator85.IsUUID)("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8950
|
+
(0, import_class_validator85.IsNotEmpty)({ message: "Freelancer UUID is required." })
|
|
8899
8951
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8900
8952
|
|
|
8901
8953
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8902
|
-
var
|
|
8954
|
+
var import_class_validator86 = require("class-validator");
|
|
8903
8955
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8904
8956
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8905
8957
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8910,35 +8962,35 @@ var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
|
8910
8962
|
var UpdateAssessmentRequestStatusDto = class {
|
|
8911
8963
|
};
|
|
8912
8964
|
__decorateClass([
|
|
8913
|
-
(0,
|
|
8965
|
+
(0, import_class_validator86.IsEnum)(AssessmentRequestStatus, {
|
|
8914
8966
|
message: `Status must be one of: ${Object.values(AssessmentRequestStatus).join(", ")}`
|
|
8915
8967
|
})
|
|
8916
8968
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8917
8969
|
__decorateClass([
|
|
8918
|
-
(0,
|
|
8919
|
-
(0,
|
|
8970
|
+
(0, import_class_validator86.IsOptional)(),
|
|
8971
|
+
(0, import_class_validator86.IsString)()
|
|
8920
8972
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8921
8973
|
|
|
8922
8974
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
8923
|
-
var
|
|
8975
|
+
var import_class_validator87 = require("class-validator");
|
|
8924
8976
|
var import_class_transformer12 = require("class-transformer");
|
|
8925
8977
|
var AdminExportFreelancerV2OptimisedDto = class {
|
|
8926
8978
|
};
|
|
8927
8979
|
__decorateClass([
|
|
8928
|
-
(0,
|
|
8980
|
+
(0, import_class_validator87.IsOptional)(),
|
|
8929
8981
|
(0, import_class_transformer12.Transform)(
|
|
8930
8982
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8931
8983
|
),
|
|
8932
|
-
(0,
|
|
8933
|
-
(0,
|
|
8984
|
+
(0, import_class_validator87.IsArray)({ message: "customEmails must be an array" }),
|
|
8985
|
+
(0, import_class_validator87.IsEmail)({}, { each: true, message: "Each email must be a valid email address" })
|
|
8934
8986
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
8935
8987
|
|
|
8936
8988
|
// src/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.ts
|
|
8937
|
-
var
|
|
8989
|
+
var import_class_validator88 = require("class-validator");
|
|
8938
8990
|
var UpdateAdminFreelancerAccountStatusDto = class {
|
|
8939
8991
|
};
|
|
8940
8992
|
__decorateClass([
|
|
8941
|
-
(0,
|
|
8993
|
+
(0, import_class_validator88.IsEnum)(AccountStatus, {
|
|
8942
8994
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8943
8995
|
})
|
|
8944
8996
|
], UpdateAdminFreelancerAccountStatusDto.prototype, "accountStatus", 2);
|
|
@@ -8961,219 +9013,219 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8961
9013
|
};
|
|
8962
9014
|
|
|
8963
9015
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8964
|
-
var
|
|
9016
|
+
var import_class_validator89 = require("class-validator");
|
|
8965
9017
|
var import_class_transformer13 = require("class-transformer");
|
|
8966
9018
|
var CreateClientDto = class {
|
|
8967
9019
|
};
|
|
8968
9020
|
__decorateClass([
|
|
8969
|
-
(0,
|
|
8970
|
-
(0,
|
|
9021
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter first name." }),
|
|
9022
|
+
(0, import_class_validator89.IsString)()
|
|
8971
9023
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8972
9024
|
__decorateClass([
|
|
8973
|
-
(0,
|
|
8974
|
-
(0,
|
|
9025
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter last name." }),
|
|
9026
|
+
(0, import_class_validator89.IsString)()
|
|
8975
9027
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8976
9028
|
__decorateClass([
|
|
8977
|
-
(0,
|
|
8978
|
-
(0,
|
|
9029
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter email." }),
|
|
9030
|
+
(0, import_class_validator89.IsEmail)()
|
|
8979
9031
|
], CreateClientDto.prototype, "email", 2);
|
|
8980
9032
|
__decorateClass([
|
|
8981
|
-
(0,
|
|
8982
|
-
(0,
|
|
9033
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
9034
|
+
(0, import_class_validator89.IsString)({ message: "Mobile code must be a string." })
|
|
8983
9035
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8984
9036
|
__decorateClass([
|
|
8985
|
-
(0,
|
|
8986
|
-
(0,
|
|
9037
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
9038
|
+
(0, import_class_validator89.IsString)({ message: "Phone number must be a string." })
|
|
8987
9039
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8988
9040
|
__decorateClass([
|
|
8989
|
-
(0,
|
|
8990
|
-
(0,
|
|
8991
|
-
(0,
|
|
8992
|
-
(0,
|
|
9041
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter password." }),
|
|
9042
|
+
(0, import_class_validator89.MinLength)(6),
|
|
9043
|
+
(0, import_class_validator89.MaxLength)(32),
|
|
9044
|
+
(0, import_class_validator89.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8993
9045
|
message: "Password must include letters, numbers and symbols."
|
|
8994
9046
|
})
|
|
8995
9047
|
], CreateClientDto.prototype, "password", 2);
|
|
8996
9048
|
__decorateClass([
|
|
8997
|
-
(0,
|
|
9049
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
8998
9050
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8999
9051
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
9000
9052
|
__decorateClass([
|
|
9001
|
-
(0,
|
|
9002
|
-
(0,
|
|
9053
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter company name." }),
|
|
9054
|
+
(0, import_class_validator89.IsString)()
|
|
9003
9055
|
], CreateClientDto.prototype, "companyName", 2);
|
|
9004
9056
|
__decorateClass([
|
|
9005
|
-
(0,
|
|
9006
|
-
(0,
|
|
9057
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9058
|
+
(0, import_class_validator89.IsString)()
|
|
9007
9059
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
9008
9060
|
__decorateClass([
|
|
9009
|
-
(0,
|
|
9010
|
-
(0,
|
|
9061
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9062
|
+
(0, import_class_validator89.IsString)()
|
|
9011
9063
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9012
9064
|
__decorateClass([
|
|
9013
|
-
(0,
|
|
9014
|
-
(0,
|
|
9065
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9066
|
+
(0, import_class_validator89.IsString)({ message: "About company must be a string." })
|
|
9015
9067
|
], CreateClientDto.prototype, "about", 2);
|
|
9016
9068
|
__decorateClass([
|
|
9017
|
-
(0,
|
|
9018
|
-
(0,
|
|
9069
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9070
|
+
(0, import_class_validator89.IsUrl)({}, { message: "Website must be a valid URL." })
|
|
9019
9071
|
], CreateClientDto.prototype, "webSite", 2);
|
|
9020
9072
|
__decorateClass([
|
|
9021
|
-
(0,
|
|
9022
|
-
(0,
|
|
9073
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9074
|
+
(0, import_class_validator89.IsString)({ message: "Company address must be a string." })
|
|
9023
9075
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
9024
9076
|
__decorateClass([
|
|
9025
|
-
(0,
|
|
9026
|
-
(0,
|
|
9077
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9078
|
+
(0, import_class_validator89.IsString)({ message: "Address line must be a string." })
|
|
9027
9079
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
9028
9080
|
__decorateClass([
|
|
9029
|
-
(0,
|
|
9030
|
-
(0,
|
|
9081
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9082
|
+
(0, import_class_validator89.IsString)({ message: "Postal code must be a string." })
|
|
9031
9083
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
9032
9084
|
__decorateClass([
|
|
9033
|
-
(0,
|
|
9034
|
-
(0,
|
|
9085
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9086
|
+
(0, import_class_validator89.IsInt)({ message: "Country ID must be an integer." }),
|
|
9035
9087
|
(0, import_class_transformer13.Type)(() => Number)
|
|
9036
9088
|
], CreateClientDto.prototype, "countryId", 2);
|
|
9037
9089
|
__decorateClass([
|
|
9038
|
-
(0,
|
|
9039
|
-
(0,
|
|
9090
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9091
|
+
(0, import_class_validator89.IsInt)({ message: "State ID must be an integer." }),
|
|
9040
9092
|
(0, import_class_transformer13.Type)(() => Number)
|
|
9041
9093
|
], CreateClientDto.prototype, "stateId", 2);
|
|
9042
9094
|
__decorateClass([
|
|
9043
|
-
(0,
|
|
9044
|
-
(0,
|
|
9095
|
+
(0, import_class_validator89.IsOptional)(),
|
|
9096
|
+
(0, import_class_validator89.IsInt)({ message: "City ID must be an integer." }),
|
|
9045
9097
|
(0, import_class_transformer13.Type)(() => Number)
|
|
9046
9098
|
], CreateClientDto.prototype, "cityId", 2);
|
|
9047
9099
|
|
|
9048
9100
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
9049
|
-
var
|
|
9101
|
+
var import_class_validator90 = require("class-validator");
|
|
9050
9102
|
var UpdateClientAccountStatusDto = class {
|
|
9051
9103
|
};
|
|
9052
9104
|
__decorateClass([
|
|
9053
|
-
(0,
|
|
9105
|
+
(0, import_class_validator90.IsEnum)(AccountStatus, {
|
|
9054
9106
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
9055
9107
|
})
|
|
9056
9108
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
9057
9109
|
|
|
9058
9110
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
9059
9111
|
var import_class_transformer14 = require("class-transformer");
|
|
9060
|
-
var
|
|
9112
|
+
var import_class_validator91 = require("class-validator");
|
|
9061
9113
|
var UpdateClientDto = class {
|
|
9062
9114
|
};
|
|
9063
9115
|
__decorateClass([
|
|
9064
|
-
(0,
|
|
9065
|
-
(0,
|
|
9116
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter first name." }),
|
|
9117
|
+
(0, import_class_validator91.IsString)()
|
|
9066
9118
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
9067
9119
|
__decorateClass([
|
|
9068
|
-
(0,
|
|
9069
|
-
(0,
|
|
9120
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter last name." }),
|
|
9121
|
+
(0, import_class_validator91.IsString)()
|
|
9070
9122
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
9071
9123
|
__decorateClass([
|
|
9072
|
-
(0,
|
|
9073
|
-
(0,
|
|
9124
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter email." }),
|
|
9125
|
+
(0, import_class_validator91.IsEmail)()
|
|
9074
9126
|
], UpdateClientDto.prototype, "email", 2);
|
|
9075
9127
|
__decorateClass([
|
|
9076
|
-
(0,
|
|
9077
|
-
(0,
|
|
9128
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9129
|
+
(0, import_class_validator91.IsString)({ message: "Mobile code must be a string." })
|
|
9078
9130
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
9079
9131
|
__decorateClass([
|
|
9080
|
-
(0,
|
|
9081
|
-
(0,
|
|
9132
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9133
|
+
(0, import_class_validator91.IsString)({ message: "Phone number must be a string." })
|
|
9082
9134
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
9083
9135
|
__decorateClass([
|
|
9084
|
-
(0,
|
|
9136
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9085
9137
|
(0, import_class_transformer14.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
9086
|
-
(0,
|
|
9087
|
-
(0,
|
|
9088
|
-
(0,
|
|
9138
|
+
(0, import_class_validator91.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
9139
|
+
(0, import_class_validator91.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
9140
|
+
(0, import_class_validator91.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
9089
9141
|
message: "Password must include letters, numbers and symbols."
|
|
9090
9142
|
})
|
|
9091
9143
|
], UpdateClientDto.prototype, "password", 2);
|
|
9092
9144
|
__decorateClass([
|
|
9093
|
-
(0,
|
|
9094
|
-
(0,
|
|
9145
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter company name." }),
|
|
9146
|
+
(0, import_class_validator91.IsString)()
|
|
9095
9147
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
9096
9148
|
__decorateClass([
|
|
9097
|
-
(0,
|
|
9098
|
-
(0,
|
|
9149
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9150
|
+
(0, import_class_validator91.IsString)()
|
|
9099
9151
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
9100
9152
|
__decorateClass([
|
|
9101
|
-
(0,
|
|
9102
|
-
(0,
|
|
9153
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9154
|
+
(0, import_class_validator91.IsString)()
|
|
9103
9155
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9104
9156
|
__decorateClass([
|
|
9105
|
-
(0,
|
|
9106
|
-
(0,
|
|
9157
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9158
|
+
(0, import_class_validator91.IsString)({ message: "About company must be a string." })
|
|
9107
9159
|
], UpdateClientDto.prototype, "about", 2);
|
|
9108
9160
|
__decorateClass([
|
|
9109
|
-
(0,
|
|
9110
|
-
(0,
|
|
9161
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9162
|
+
(0, import_class_validator91.IsString)({ message: "Website must be a string." })
|
|
9111
9163
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
9112
9164
|
__decorateClass([
|
|
9113
|
-
(0,
|
|
9114
|
-
(0,
|
|
9165
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9166
|
+
(0, import_class_validator91.IsString)({ message: "Company address must be a string." })
|
|
9115
9167
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
9116
9168
|
__decorateClass([
|
|
9117
|
-
(0,
|
|
9118
|
-
(0,
|
|
9169
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9170
|
+
(0, import_class_validator91.IsString)({ message: "Address line must be a string." })
|
|
9119
9171
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
9120
9172
|
__decorateClass([
|
|
9121
|
-
(0,
|
|
9122
|
-
(0,
|
|
9173
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9174
|
+
(0, import_class_validator91.IsString)({ message: "Postal code must be a string." })
|
|
9123
9175
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
9124
9176
|
__decorateClass([
|
|
9125
|
-
(0,
|
|
9177
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9126
9178
|
(0, import_class_transformer14.Type)(() => Number)
|
|
9127
9179
|
], UpdateClientDto.prototype, "countryId", 2);
|
|
9128
9180
|
__decorateClass([
|
|
9129
|
-
(0,
|
|
9181
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9130
9182
|
(0, import_class_transformer14.Type)(() => Number)
|
|
9131
9183
|
], UpdateClientDto.prototype, "stateId", 2);
|
|
9132
9184
|
__decorateClass([
|
|
9133
|
-
(0,
|
|
9185
|
+
(0, import_class_validator91.IsOptional)(),
|
|
9134
9186
|
(0, import_class_transformer14.Type)(() => Number)
|
|
9135
9187
|
], UpdateClientDto.prototype, "cityId", 2);
|
|
9136
9188
|
|
|
9137
9189
|
// src/modules/client-admin/dto/admin-export-clientV2-optimised.dto.ts
|
|
9138
|
-
var
|
|
9190
|
+
var import_class_validator92 = require("class-validator");
|
|
9139
9191
|
var import_class_transformer15 = require("class-transformer");
|
|
9140
9192
|
var AdminExportClientV2OptimisedDto = class {
|
|
9141
9193
|
};
|
|
9142
9194
|
__decorateClass([
|
|
9143
|
-
(0,
|
|
9195
|
+
(0, import_class_validator92.IsOptional)(),
|
|
9144
9196
|
(0, import_class_transformer15.Transform)(
|
|
9145
9197
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
9146
9198
|
),
|
|
9147
|
-
(0,
|
|
9148
|
-
(0,
|
|
9199
|
+
(0, import_class_validator92.IsArray)({ message: "customEmails must be an array" }),
|
|
9200
|
+
(0, import_class_validator92.IsEmail)({}, { each: true, message: "Each email must be a valid email address" })
|
|
9149
9201
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
9150
9202
|
|
|
9151
9203
|
// src/modules/client-admin/dto/update-admin-client-account-status.dto.ts
|
|
9152
|
-
var
|
|
9204
|
+
var import_class_validator93 = require("class-validator");
|
|
9153
9205
|
var UpdateAdminClientAccountStatusDto = class {
|
|
9154
9206
|
};
|
|
9155
9207
|
__decorateClass([
|
|
9156
|
-
(0,
|
|
9208
|
+
(0, import_class_validator93.IsEnum)(AccountStatus, {
|
|
9157
9209
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
9158
9210
|
})
|
|
9159
9211
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
9160
9212
|
|
|
9161
9213
|
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
9162
|
-
var
|
|
9214
|
+
var import_class_validator94 = require("class-validator");
|
|
9163
9215
|
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
9164
9216
|
};
|
|
9165
9217
|
__decorateClass([
|
|
9166
|
-
(0,
|
|
9167
|
-
(0,
|
|
9218
|
+
(0, import_class_validator94.IsNotEmpty)({ message: "Job posting restriction status is required." }),
|
|
9219
|
+
(0, import_class_validator94.IsBoolean)({ message: "Job posting restriction status must be a boolean value." })
|
|
9168
9220
|
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
9169
9221
|
|
|
9170
9222
|
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
9171
|
-
var
|
|
9223
|
+
var import_class_validator95 = require("class-validator");
|
|
9172
9224
|
var SkipServiceAgreementFlowDto = class {
|
|
9173
9225
|
};
|
|
9174
9226
|
__decorateClass([
|
|
9175
|
-
(0,
|
|
9176
|
-
(0,
|
|
9227
|
+
(0, import_class_validator95.IsNotEmpty)({ message: "Skip service agreement flag is required." }),
|
|
9228
|
+
(0, import_class_validator95.IsBoolean)({ message: "Skip service agreement must be a boolean value." })
|
|
9177
9229
|
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
9178
9230
|
|
|
9179
9231
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -9183,7 +9235,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
9183
9235
|
};
|
|
9184
9236
|
|
|
9185
9237
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
9186
|
-
var
|
|
9238
|
+
var import_class_validator96 = require("class-validator");
|
|
9187
9239
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
9188
9240
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
9189
9241
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -9194,16 +9246,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
9194
9246
|
var FreelancerDeclarationDto = class {
|
|
9195
9247
|
};
|
|
9196
9248
|
__decorateClass([
|
|
9197
|
-
(0,
|
|
9198
|
-
(0,
|
|
9249
|
+
(0, import_class_validator96.IsOptional)(),
|
|
9250
|
+
(0, import_class_validator96.IsString)({ message: "UUID must be a string" })
|
|
9199
9251
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
9200
9252
|
__decorateClass([
|
|
9201
|
-
(0,
|
|
9253
|
+
(0, import_class_validator96.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
9202
9254
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
9203
9255
|
__decorateClass([
|
|
9204
|
-
(0,
|
|
9205
|
-
(0,
|
|
9206
|
-
(0,
|
|
9256
|
+
(0, import_class_validator96.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
9257
|
+
(0, import_class_validator96.IsString)(),
|
|
9258
|
+
(0, import_class_validator96.IsIn)([
|
|
9207
9259
|
"true"
|
|
9208
9260
|
])
|
|
9209
9261
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -9218,35 +9270,35 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
9218
9270
|
};
|
|
9219
9271
|
|
|
9220
9272
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
9221
|
-
var
|
|
9273
|
+
var import_class_validator97 = require("class-validator");
|
|
9222
9274
|
var import_class_transformer16 = require("class-transformer");
|
|
9223
9275
|
var MarkCandidateStatusDto = class {
|
|
9224
9276
|
};
|
|
9225
9277
|
__decorateClass([
|
|
9226
|
-
(0,
|
|
9227
|
-
(0,
|
|
9278
|
+
(0, import_class_validator97.IsNotEmpty)({ message: "Candidate ID is required." }),
|
|
9279
|
+
(0, import_class_validator97.IsNumber)({}, { message: "Candidate ID must be a number." }),
|
|
9228
9280
|
(0, import_class_transformer16.Type)(() => Number)
|
|
9229
9281
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
9230
9282
|
__decorateClass([
|
|
9231
|
-
(0,
|
|
9232
|
-
(0,
|
|
9283
|
+
(0, import_class_validator97.IsOptional)(),
|
|
9284
|
+
(0, import_class_validator97.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
9233
9285
|
(0, import_class_transformer16.Type)(() => Number)
|
|
9234
9286
|
], MarkCandidateStatusDto.prototype, "jobId", 2);
|
|
9235
9287
|
|
|
9236
9288
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
9237
|
-
var
|
|
9289
|
+
var import_class_validator98 = require("class-validator");
|
|
9238
9290
|
var import_class_transformer17 = require("class-transformer");
|
|
9239
9291
|
var MarkCandidateStatusBulkDto = class {
|
|
9240
9292
|
};
|
|
9241
9293
|
__decorateClass([
|
|
9242
|
-
(0,
|
|
9243
|
-
(0,
|
|
9244
|
-
(0,
|
|
9294
|
+
(0, import_class_validator98.IsArray)({ message: "Candidate IDs must be an array." }),
|
|
9295
|
+
(0, import_class_validator98.ArrayNotEmpty)({ message: "At least one candidate ID is required." }),
|
|
9296
|
+
(0, import_class_validator98.IsNumber)({}, { each: true, message: "Each candidate ID must be a number." }),
|
|
9245
9297
|
(0, import_class_transformer17.Type)(() => Number)
|
|
9246
9298
|
], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
|
|
9247
9299
|
__decorateClass([
|
|
9248
|
-
(0,
|
|
9249
|
-
(0,
|
|
9300
|
+
(0, import_class_validator98.IsOptional)(),
|
|
9301
|
+
(0, import_class_validator98.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
9250
9302
|
(0, import_class_transformer17.Type)(() => Number)
|
|
9251
9303
|
], MarkCandidateStatusBulkDto.prototype, "jobId", 2);
|
|
9252
9304
|
|
|
@@ -9261,45 +9313,45 @@ var CMS_PATTERNS = {
|
|
|
9261
9313
|
};
|
|
9262
9314
|
|
|
9263
9315
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
9264
|
-
var
|
|
9316
|
+
var import_class_validator99 = require("class-validator");
|
|
9265
9317
|
var CreateCmsDto = class {
|
|
9266
9318
|
};
|
|
9267
9319
|
__decorateClass([
|
|
9268
|
-
(0,
|
|
9320
|
+
(0, import_class_validator99.IsNotEmpty)({ message: "Please enter name." })
|
|
9269
9321
|
], CreateCmsDto.prototype, "title", 2);
|
|
9270
9322
|
__decorateClass([
|
|
9271
|
-
(0,
|
|
9323
|
+
(0, import_class_validator99.IsOptional)()
|
|
9272
9324
|
], CreateCmsDto.prototype, "content", 2);
|
|
9273
9325
|
__decorateClass([
|
|
9274
|
-
(0,
|
|
9275
|
-
(0,
|
|
9326
|
+
(0, import_class_validator99.IsOptional)(),
|
|
9327
|
+
(0, import_class_validator99.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9276
9328
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
9277
9329
|
|
|
9278
9330
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
9279
|
-
var
|
|
9331
|
+
var import_class_validator100 = require("class-validator");
|
|
9280
9332
|
var UpdateCmsStatusDto = class {
|
|
9281
9333
|
};
|
|
9282
9334
|
__decorateClass([
|
|
9283
|
-
(0,
|
|
9284
|
-
(0,
|
|
9335
|
+
(0, import_class_validator100.IsNotEmpty)({ message: "Please specify cms status." }),
|
|
9336
|
+
(0, import_class_validator100.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9285
9337
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
9286
9338
|
|
|
9287
9339
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
9288
|
-
var
|
|
9340
|
+
var import_class_validator101 = require("class-validator");
|
|
9289
9341
|
var UpdateCmsDto = class {
|
|
9290
9342
|
};
|
|
9291
9343
|
__decorateClass([
|
|
9292
|
-
(0,
|
|
9344
|
+
(0, import_class_validator101.IsOptional)()
|
|
9293
9345
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
9294
9346
|
__decorateClass([
|
|
9295
|
-
(0,
|
|
9347
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Please enter name." })
|
|
9296
9348
|
], UpdateCmsDto.prototype, "title", 2);
|
|
9297
9349
|
__decorateClass([
|
|
9298
|
-
(0,
|
|
9350
|
+
(0, import_class_validator101.IsOptional)()
|
|
9299
9351
|
], UpdateCmsDto.prototype, "content", 2);
|
|
9300
9352
|
__decorateClass([
|
|
9301
|
-
(0,
|
|
9302
|
-
(0,
|
|
9353
|
+
(0, import_class_validator101.IsOptional)(),
|
|
9354
|
+
(0, import_class_validator101.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9303
9355
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
9304
9356
|
|
|
9305
9357
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -9335,7 +9387,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
9335
9387
|
|
|
9336
9388
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
9337
9389
|
var import_class_transformer18 = require("class-transformer");
|
|
9338
|
-
var
|
|
9390
|
+
var import_class_validator102 = require("class-validator");
|
|
9339
9391
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
9340
9392
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
9341
9393
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -9351,91 +9403,91 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
9351
9403
|
var AdminCreateJobInformationDto = class {
|
|
9352
9404
|
};
|
|
9353
9405
|
__decorateClass([
|
|
9354
|
-
(0,
|
|
9355
|
-
(0,
|
|
9406
|
+
(0, import_class_validator102.IsString)({ message: "Job role must be a string." }),
|
|
9407
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Job role is required." })
|
|
9356
9408
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
9357
9409
|
__decorateClass([
|
|
9358
|
-
(0,
|
|
9359
|
-
(0,
|
|
9410
|
+
(0, import_class_validator102.IsOptional)(),
|
|
9411
|
+
(0, import_class_validator102.IsString)({ message: "Note must be a string." })
|
|
9360
9412
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
9361
9413
|
__decorateClass([
|
|
9362
|
-
(0,
|
|
9363
|
-
(0,
|
|
9364
|
-
(0,
|
|
9414
|
+
(0, import_class_validator102.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
9415
|
+
(0, import_class_validator102.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
9416
|
+
(0, import_class_validator102.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
9365
9417
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
9366
9418
|
__decorateClass([
|
|
9367
|
-
(0,
|
|
9368
|
-
(0,
|
|
9419
|
+
(0, import_class_validator102.IsInt)({ message: "Openings must be a valid integer." }),
|
|
9420
|
+
(0, import_class_validator102.Min)(1, { message: "There must be at least one opening." })
|
|
9369
9421
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
9370
9422
|
__decorateClass([
|
|
9371
|
-
(0,
|
|
9423
|
+
(0, import_class_validator102.IsEnum)(JobLocationEnumDto, {
|
|
9372
9424
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
9373
9425
|
", "
|
|
9374
9426
|
)}.`
|
|
9375
9427
|
})
|
|
9376
9428
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
9377
9429
|
__decorateClass([
|
|
9378
|
-
(0,
|
|
9430
|
+
(0, import_class_validator102.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
9379
9431
|
message: `Type of employment must be one of: ${Object.values(
|
|
9380
9432
|
TypeOfEmploymentEnumDto
|
|
9381
9433
|
).join(", ")}.`
|
|
9382
9434
|
})
|
|
9383
9435
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9384
9436
|
__decorateClass([
|
|
9385
|
-
(0,
|
|
9386
|
-
(0,
|
|
9437
|
+
(0, import_class_validator102.IsString)({ message: "Onboarding Days must be a string." }),
|
|
9438
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
9387
9439
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9388
9440
|
__decorateClass([
|
|
9389
|
-
(0,
|
|
9390
|
-
(0,
|
|
9441
|
+
(0, import_class_validator102.IsString)({ message: "Communication skills must be a string." }),
|
|
9442
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Communication skills are required." })
|
|
9391
9443
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9392
9444
|
__decorateClass([
|
|
9393
|
-
(0,
|
|
9394
|
-
(0,
|
|
9445
|
+
(0, import_class_validator102.IsString)({ message: "Currency must be a string." }),
|
|
9446
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Currency is required." })
|
|
9395
9447
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
9396
9448
|
__decorateClass([
|
|
9397
9449
|
(0, import_class_transformer18.Type)(() => Number),
|
|
9398
|
-
(0,
|
|
9450
|
+
(0, import_class_validator102.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
9399
9451
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
9400
9452
|
__decorateClass([
|
|
9401
9453
|
(0, import_class_transformer18.Type)(() => Number),
|
|
9402
|
-
(0,
|
|
9454
|
+
(0, import_class_validator102.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
9403
9455
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
9404
9456
|
__decorateClass([
|
|
9405
|
-
(0,
|
|
9457
|
+
(0, import_class_validator102.IsDateString)(
|
|
9406
9458
|
{ strict: true },
|
|
9407
9459
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
9408
9460
|
)
|
|
9409
9461
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
9410
9462
|
__decorateClass([
|
|
9411
|
-
(0,
|
|
9463
|
+
(0, import_class_validator102.IsDateString)(
|
|
9412
9464
|
{ strict: true },
|
|
9413
9465
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
9414
9466
|
)
|
|
9415
9467
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9416
9468
|
__decorateClass([
|
|
9417
|
-
(0,
|
|
9418
|
-
(0,
|
|
9469
|
+
(0, import_class_validator102.IsOptional)(),
|
|
9470
|
+
(0, import_class_validator102.IsString)({ message: "Additional comment must be a string." })
|
|
9419
9471
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
9420
9472
|
__decorateClass([
|
|
9421
|
-
(0,
|
|
9422
|
-
(0,
|
|
9473
|
+
(0, import_class_validator102.IsOptional)(),
|
|
9474
|
+
(0, import_class_validator102.IsInt)({ message: "Country ID must be a valid integer." })
|
|
9423
9475
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
9424
9476
|
__decorateClass([
|
|
9425
|
-
(0,
|
|
9426
|
-
(0,
|
|
9477
|
+
(0, import_class_validator102.IsOptional)(),
|
|
9478
|
+
(0, import_class_validator102.IsInt)({ message: "State ID must be a valid integer." })
|
|
9427
9479
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
9428
9480
|
__decorateClass([
|
|
9429
|
-
(0,
|
|
9430
|
-
(0,
|
|
9481
|
+
(0, import_class_validator102.IsOptional)(),
|
|
9482
|
+
(0, import_class_validator102.IsInt)({ message: "City ID must be a valid integer." })
|
|
9431
9483
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
9432
9484
|
__decorateClass([
|
|
9433
|
-
(0,
|
|
9485
|
+
(0, import_class_validator102.IsInt)({ message: "Client ID must be a valid integer." })
|
|
9434
9486
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
9435
9487
|
|
|
9436
9488
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
9437
9489
|
var import_class_transformer19 = require("class-transformer");
|
|
9438
|
-
var
|
|
9490
|
+
var import_class_validator103 = require("class-validator");
|
|
9439
9491
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
9440
9492
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
9441
9493
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -9451,90 +9503,90 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
9451
9503
|
var AdminUpdateJobInformationDto = class {
|
|
9452
9504
|
};
|
|
9453
9505
|
__decorateClass([
|
|
9454
|
-
(0,
|
|
9455
|
-
(0,
|
|
9506
|
+
(0, import_class_validator103.IsString)({ message: "Job role must be a string." }),
|
|
9507
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Job role is required." })
|
|
9456
9508
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9457
9509
|
__decorateClass([
|
|
9458
|
-
(0,
|
|
9459
|
-
(0,
|
|
9510
|
+
(0, import_class_validator103.IsOptional)(),
|
|
9511
|
+
(0, import_class_validator103.IsString)({ message: "Note must be a string." })
|
|
9460
9512
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
9461
9513
|
__decorateClass([
|
|
9462
|
-
(0,
|
|
9463
|
-
(0,
|
|
9464
|
-
(0,
|
|
9514
|
+
(0, import_class_validator103.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
9515
|
+
(0, import_class_validator103.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
9516
|
+
(0, import_class_validator103.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
9465
9517
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
9466
9518
|
__decorateClass([
|
|
9467
|
-
(0,
|
|
9468
|
-
(0,
|
|
9519
|
+
(0, import_class_validator103.IsInt)({ message: "Openings must be a valid integer." }),
|
|
9520
|
+
(0, import_class_validator103.Min)(1, { message: "There must be at least one opening." })
|
|
9469
9521
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
9470
9522
|
__decorateClass([
|
|
9471
|
-
(0,
|
|
9523
|
+
(0, import_class_validator103.IsEnum)(JobLocationEnums, {
|
|
9472
9524
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
9473
9525
|
", "
|
|
9474
9526
|
)}.`
|
|
9475
9527
|
})
|
|
9476
9528
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
9477
9529
|
__decorateClass([
|
|
9478
|
-
(0,
|
|
9530
|
+
(0, import_class_validator103.IsEnum)(TypeOfEmploymentEnums, {
|
|
9479
9531
|
message: `Type of employment must be one of: ${Object.values(
|
|
9480
9532
|
TypeOfEmploymentEnums
|
|
9481
9533
|
).join(", ")}.`
|
|
9482
9534
|
})
|
|
9483
9535
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9484
9536
|
__decorateClass([
|
|
9485
|
-
(0,
|
|
9486
|
-
(0,
|
|
9537
|
+
(0, import_class_validator103.IsString)({ message: "Onboarding Days must be a string." }),
|
|
9538
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
9487
9539
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9488
9540
|
__decorateClass([
|
|
9489
|
-
(0,
|
|
9490
|
-
(0,
|
|
9541
|
+
(0, import_class_validator103.IsString)({ message: "Communication skills must be a string." }),
|
|
9542
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Communication skills are required." })
|
|
9491
9543
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9492
9544
|
__decorateClass([
|
|
9493
|
-
(0,
|
|
9494
|
-
(0,
|
|
9545
|
+
(0, import_class_validator103.IsString)({ message: "Currency must be a string." }),
|
|
9546
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Currency is required." })
|
|
9495
9547
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9496
9548
|
__decorateClass([
|
|
9497
9549
|
(0, import_class_transformer19.Type)(() => Number),
|
|
9498
|
-
(0,
|
|
9550
|
+
(0, import_class_validator103.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
9499
9551
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
9500
9552
|
__decorateClass([
|
|
9501
9553
|
(0, import_class_transformer19.Type)(() => Number),
|
|
9502
|
-
(0,
|
|
9554
|
+
(0, import_class_validator103.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
9503
9555
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
9504
9556
|
__decorateClass([
|
|
9505
|
-
(0,
|
|
9557
|
+
(0, import_class_validator103.IsDateString)(
|
|
9506
9558
|
{ strict: true },
|
|
9507
9559
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
9508
9560
|
)
|
|
9509
9561
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
9510
9562
|
__decorateClass([
|
|
9511
|
-
(0,
|
|
9563
|
+
(0, import_class_validator103.IsDateString)(
|
|
9512
9564
|
{ strict: true },
|
|
9513
9565
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
9514
9566
|
)
|
|
9515
9567
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9516
9568
|
__decorateClass([
|
|
9517
|
-
(0,
|
|
9518
|
-
(0,
|
|
9569
|
+
(0, import_class_validator103.IsOptional)(),
|
|
9570
|
+
(0, import_class_validator103.IsString)({ message: "Additional comment must be a string." })
|
|
9519
9571
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9520
9572
|
__decorateClass([
|
|
9521
|
-
(0,
|
|
9522
|
-
(0,
|
|
9573
|
+
(0, import_class_validator103.IsOptional)(),
|
|
9574
|
+
(0, import_class_validator103.IsInt)({ message: "Country ID must be a valid integer." })
|
|
9523
9575
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
9524
9576
|
__decorateClass([
|
|
9525
|
-
(0,
|
|
9526
|
-
(0,
|
|
9577
|
+
(0, import_class_validator103.IsOptional)(),
|
|
9578
|
+
(0, import_class_validator103.IsInt)({ message: "State ID must be a valid integer." })
|
|
9527
9579
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
9528
9580
|
__decorateClass([
|
|
9529
|
-
(0,
|
|
9530
|
-
(0,
|
|
9581
|
+
(0, import_class_validator103.IsOptional)(),
|
|
9582
|
+
(0, import_class_validator103.IsInt)({ message: "City ID must be a valid integer." })
|
|
9531
9583
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
9532
9584
|
__decorateClass([
|
|
9533
|
-
(0,
|
|
9585
|
+
(0, import_class_validator103.IsInt)({ message: "Client ID must be a valid integer." })
|
|
9534
9586
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
9535
9587
|
|
|
9536
9588
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9537
|
-
var
|
|
9589
|
+
var import_class_validator104 = require("class-validator");
|
|
9538
9590
|
var import_class_transformer20 = require("class-transformer");
|
|
9539
9591
|
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
9540
9592
|
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -9561,24 +9613,24 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9561
9613
|
AdminStepCompletedEnumV22["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
9562
9614
|
return AdminStepCompletedEnumV22;
|
|
9563
9615
|
})(AdminStepCompletedEnumV2 || {});
|
|
9564
|
-
var
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
return
|
|
9568
|
-
})(
|
|
9616
|
+
var BillingCycleEnumV23 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
9617
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
9618
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
9619
|
+
return BillingCycleEnumV24;
|
|
9620
|
+
})(BillingCycleEnumV23 || {});
|
|
9569
9621
|
var JobLocationAdminDto = class {
|
|
9570
9622
|
};
|
|
9571
9623
|
__decorateClass([
|
|
9572
|
-
(0,
|
|
9573
|
-
(0,
|
|
9624
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9625
|
+
(0, import_class_validator104.IsNumber)()
|
|
9574
9626
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
9575
9627
|
__decorateClass([
|
|
9576
|
-
(0,
|
|
9577
|
-
(0,
|
|
9628
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9629
|
+
(0, import_class_validator104.IsNumber)()
|
|
9578
9630
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
9579
9631
|
__decorateClass([
|
|
9580
|
-
(0,
|
|
9581
|
-
(0,
|
|
9632
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9633
|
+
(0, import_class_validator104.IsNumber)()
|
|
9582
9634
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
9583
9635
|
var AdminJobBasicInformationV2Dto = class {
|
|
9584
9636
|
constructor() {
|
|
@@ -9586,163 +9638,163 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
9586
9638
|
}
|
|
9587
9639
|
};
|
|
9588
9640
|
__decorateClass([
|
|
9589
|
-
(0,
|
|
9641
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9590
9642
|
(0, import_class_transformer20.Type)(() => Boolean)
|
|
9591
9643
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
9592
9644
|
__decorateClass([
|
|
9593
|
-
(0,
|
|
9645
|
+
(0, import_class_validator104.IsInt)({ message: "Client ID must be a valid integer." })
|
|
9594
9646
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9595
9647
|
__decorateClass([
|
|
9596
|
-
(0,
|
|
9597
|
-
(0,
|
|
9648
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "Please enter job role" }),
|
|
9649
|
+
(0, import_class_validator104.IsString)({ message: "Job role must be a string" })
|
|
9598
9650
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9599
9651
|
__decorateClass([
|
|
9600
|
-
(0,
|
|
9601
|
-
(0,
|
|
9652
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9653
|
+
(0, import_class_validator104.IsString)({ message: "Note must be a string" })
|
|
9602
9654
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9603
9655
|
__decorateClass([
|
|
9604
|
-
(0,
|
|
9605
|
-
(0,
|
|
9606
|
-
(0,
|
|
9607
|
-
(0,
|
|
9608
|
-
(0,
|
|
9656
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9657
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9658
|
+
(0, import_class_validator104.IsArray)({ message: "Skills must be an array" }),
|
|
9659
|
+
(0, import_class_validator104.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
9660
|
+
(0, import_class_validator104.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
9609
9661
|
(0, import_class_transformer20.Type)(() => String)
|
|
9610
9662
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9611
9663
|
__decorateClass([
|
|
9612
|
-
(0,
|
|
9613
|
-
(0,
|
|
9614
|
-
(0,
|
|
9664
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9665
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Openings must be a number" }),
|
|
9666
|
+
(0, import_class_validator104.Min)(1, { message: "There must be at least 1 opening" }),
|
|
9615
9667
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9616
9668
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
9617
9669
|
__decorateClass([
|
|
9618
|
-
(0,
|
|
9619
|
-
(0,
|
|
9670
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9671
|
+
(0, import_class_validator104.IsEnum)(JobLocationAdminEnumDto, {
|
|
9620
9672
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
9621
9673
|
", "
|
|
9622
9674
|
)}`
|
|
9623
9675
|
})
|
|
9624
9676
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
9625
9677
|
__decorateClass([
|
|
9626
|
-
(0,
|
|
9627
|
-
(0,
|
|
9678
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9679
|
+
(0, import_class_validator104.IsEnum)(EmploymentTypeAdminEnumDto, {
|
|
9628
9680
|
message: `Type of employment must be one of: ${Object.values(
|
|
9629
9681
|
EmploymentTypeAdminEnumDto
|
|
9630
9682
|
).join(", ")}`
|
|
9631
9683
|
})
|
|
9632
9684
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9633
9685
|
__decorateClass([
|
|
9634
|
-
(0,
|
|
9635
|
-
(0,
|
|
9636
|
-
message: `Billing cycle must be one of: ${Object.values(
|
|
9686
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9687
|
+
(0, import_class_validator104.IsEnum)(BillingCycleEnumV23, {
|
|
9688
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV23).join(", ")}`
|
|
9637
9689
|
})
|
|
9638
9690
|
], AdminJobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
9639
9691
|
__decorateClass([
|
|
9640
|
-
(0,
|
|
9641
|
-
(0,
|
|
9642
|
-
(0,
|
|
9692
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9693
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
9694
|
+
(0, import_class_validator104.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
9643
9695
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9644
9696
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
9645
9697
|
__decorateClass([
|
|
9646
|
-
(0,
|
|
9647
|
-
(0,
|
|
9648
|
-
(0,
|
|
9698
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9699
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
9700
|
+
(0, import_class_validator104.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
9649
9701
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9650
9702
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
9651
9703
|
__decorateClass([
|
|
9652
|
-
(0,
|
|
9704
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9653
9705
|
(0, import_class_transformer20.Type)(() => JobLocationAdminDto)
|
|
9654
9706
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9655
9707
|
__decorateClass([
|
|
9656
|
-
(0,
|
|
9657
|
-
(0,
|
|
9708
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9709
|
+
(0, import_class_validator104.IsString)({ message: "Academic qualification must be a string" })
|
|
9658
9710
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9659
9711
|
__decorateClass([
|
|
9660
|
-
(0,
|
|
9661
|
-
(0,
|
|
9712
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9713
|
+
(0, import_class_validator104.IsEnum)(typeOfExperienceAdminEnumDto, {
|
|
9662
9714
|
message: `Type of experience must be one of: ${Object.values(
|
|
9663
9715
|
typeOfExperienceAdminEnumDto
|
|
9664
9716
|
).join(", ")}`
|
|
9665
9717
|
})
|
|
9666
9718
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9667
9719
|
__decorateClass([
|
|
9668
|
-
(0,
|
|
9669
|
-
(0,
|
|
9670
|
-
(0,
|
|
9720
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9721
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
9722
|
+
(0, import_class_validator104.IsString)({ message: "Years of experience must be a string" })
|
|
9671
9723
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9672
9724
|
__decorateClass([
|
|
9673
|
-
(0,
|
|
9674
|
-
(0,
|
|
9675
|
-
(0,
|
|
9725
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9726
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
9727
|
+
(0, import_class_validator104.IsString)({ message: "Years of experience must be a string" })
|
|
9676
9728
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9677
9729
|
__decorateClass([
|
|
9678
|
-
(0,
|
|
9679
|
-
(0,
|
|
9730
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9731
|
+
(0, import_class_validator104.IsString)({ message: "Business industry must be a string" })
|
|
9680
9732
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9681
9733
|
__decorateClass([
|
|
9682
|
-
(0,
|
|
9683
|
-
(0,
|
|
9734
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9735
|
+
(0, import_class_validator104.IsString)({ message: "Project name must be a string" })
|
|
9684
9736
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9685
9737
|
__decorateClass([
|
|
9686
|
-
(0,
|
|
9738
|
+
(0, import_class_validator104.IsOptional)()
|
|
9687
9739
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
9688
9740
|
__decorateClass([
|
|
9689
|
-
(0,
|
|
9741
|
+
(0, import_class_validator104.IsOptional)()
|
|
9690
9742
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
9691
9743
|
__decorateClass([
|
|
9692
|
-
(0,
|
|
9693
|
-
(0,
|
|
9694
|
-
(0,
|
|
9744
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9745
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Expected annual budget (from) must be a number" }),
|
|
9746
|
+
(0, import_class_validator104.Min)(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
9695
9747
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9696
9748
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
9697
9749
|
__decorateClass([
|
|
9698
|
-
(0,
|
|
9750
|
+
(0, import_class_validator104.IsOptional)()
|
|
9699
9751
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
9700
9752
|
__decorateClass([
|
|
9701
|
-
(0,
|
|
9702
|
-
(0,
|
|
9703
|
-
(0,
|
|
9753
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9754
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Expected annual budget (to) must be a number" }),
|
|
9755
|
+
(0, import_class_validator104.Min)(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
9704
9756
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9705
9757
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
9706
9758
|
__decorateClass([
|
|
9707
|
-
(0,
|
|
9759
|
+
(0, import_class_validator104.IsOptional)()
|
|
9708
9760
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
9709
9761
|
__decorateClass([
|
|
9710
|
-
(0,
|
|
9711
|
-
(0,
|
|
9712
|
-
(0,
|
|
9713
|
-
(0,
|
|
9762
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9763
|
+
(0, import_class_validator104.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
9764
|
+
(0, import_class_validator104.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
9765
|
+
(0, import_class_validator104.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
9714
9766
|
(0, import_class_transformer20.Type)(() => Number)
|
|
9715
9767
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
9716
9768
|
__decorateClass([
|
|
9717
|
-
(0,
|
|
9769
|
+
(0, import_class_validator104.IsOptional)()
|
|
9718
9770
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
9719
9771
|
__decorateClass([
|
|
9720
|
-
(0,
|
|
9772
|
+
(0, import_class_validator104.IsOptional)()
|
|
9721
9773
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
9722
9774
|
__decorateClass([
|
|
9723
|
-
(0,
|
|
9775
|
+
(0, import_class_validator104.IsOptional)()
|
|
9724
9776
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
9725
9777
|
__decorateClass([
|
|
9726
|
-
(0,
|
|
9778
|
+
(0, import_class_validator104.IsOptional)()
|
|
9727
9779
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9728
9780
|
__decorateClass([
|
|
9729
|
-
(0,
|
|
9730
|
-
(0,
|
|
9731
|
-
(0,
|
|
9781
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9782
|
+
(0, import_class_validator104.IsString)({ message: "Additional comment must be a string" }),
|
|
9783
|
+
(0, import_class_validator104.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9732
9784
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9733
9785
|
__decorateClass([
|
|
9734
|
-
(0,
|
|
9735
|
-
(0,
|
|
9736
|
-
(0,
|
|
9737
|
-
(0,
|
|
9786
|
+
(0, import_class_validator104.ValidateIf)((o) => !o.isDraft),
|
|
9787
|
+
(0, import_class_validator104.IsArray)({ message: "Good to have skills must be an array" }),
|
|
9788
|
+
(0, import_class_validator104.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
9789
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9738
9790
|
(0, import_class_transformer20.Type)(() => String)
|
|
9739
9791
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
9740
9792
|
__decorateClass([
|
|
9741
|
-
(0,
|
|
9793
|
+
(0, import_class_validator104.IsOptional)()
|
|
9742
9794
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9743
9795
|
__decorateClass([
|
|
9744
|
-
(0,
|
|
9745
|
-
(0,
|
|
9796
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9797
|
+
(0, import_class_validator104.IsEnum)(AdminStepCompletedEnumV2, {
|
|
9746
9798
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9747
9799
|
AdminStepCompletedEnumV2
|
|
9748
9800
|
).join(", ")}`
|
|
@@ -9756,7 +9808,7 @@ var LEAD_PATTERN = {
|
|
|
9756
9808
|
};
|
|
9757
9809
|
|
|
9758
9810
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9759
|
-
var
|
|
9811
|
+
var import_class_validator105 = require("class-validator");
|
|
9760
9812
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9761
9813
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9762
9814
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9765,23 +9817,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9765
9817
|
var CreateLeadDto = class {
|
|
9766
9818
|
};
|
|
9767
9819
|
__decorateClass([
|
|
9768
|
-
(0,
|
|
9820
|
+
(0, import_class_validator105.IsString)({ message: "Name must be a string" })
|
|
9769
9821
|
], CreateLeadDto.prototype, "name", 2);
|
|
9770
9822
|
__decorateClass([
|
|
9771
|
-
(0,
|
|
9823
|
+
(0, import_class_validator105.IsEmail)({}, { message: "Invalid email address" })
|
|
9772
9824
|
], CreateLeadDto.prototype, "email", 2);
|
|
9773
9825
|
__decorateClass([
|
|
9774
|
-
(0,
|
|
9826
|
+
(0, import_class_validator105.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9775
9827
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9776
9828
|
__decorateClass([
|
|
9777
|
-
(0,
|
|
9829
|
+
(0, import_class_validator105.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9778
9830
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9779
9831
|
__decorateClass([
|
|
9780
|
-
(0,
|
|
9781
|
-
(0,
|
|
9832
|
+
(0, import_class_validator105.IsOptional)(),
|
|
9833
|
+
(0, import_class_validator105.IsString)({ message: "Description must be a string" })
|
|
9782
9834
|
], CreateLeadDto.prototype, "description", 2);
|
|
9783
9835
|
__decorateClass([
|
|
9784
|
-
(0,
|
|
9836
|
+
(0, import_class_validator105.IsEnum)(CategoryEmumDto, {
|
|
9785
9837
|
message: `Type of category must be one of: ${Object.values(
|
|
9786
9838
|
CategoryEmumDto
|
|
9787
9839
|
).join(", ")}`
|
|
@@ -9803,59 +9855,59 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9803
9855
|
};
|
|
9804
9856
|
|
|
9805
9857
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9806
|
-
var
|
|
9858
|
+
var import_class_validator106 = require("class-validator");
|
|
9807
9859
|
var CreateAdminRoleDto = class {
|
|
9808
9860
|
};
|
|
9809
9861
|
__decorateClass([
|
|
9810
|
-
(0,
|
|
9811
|
-
(0,
|
|
9862
|
+
(0, import_class_validator106.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
9863
|
+
(0, import_class_validator106.IsString)({ message: "Role name must be a string." })
|
|
9812
9864
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9813
9865
|
__decorateClass([
|
|
9814
|
-
(0,
|
|
9815
|
-
(0,
|
|
9866
|
+
(0, import_class_validator106.IsOptional)(),
|
|
9867
|
+
(0, import_class_validator106.IsString)({ message: "Role description must be a string." })
|
|
9816
9868
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9817
9869
|
__decorateClass([
|
|
9818
|
-
(0,
|
|
9819
|
-
(0,
|
|
9870
|
+
(0, import_class_validator106.IsOptional)(),
|
|
9871
|
+
(0, import_class_validator106.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9820
9872
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9821
9873
|
|
|
9822
9874
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9823
|
-
var
|
|
9875
|
+
var import_class_validator107 = require("class-validator");
|
|
9824
9876
|
var UpdateAdminRoleDto = class {
|
|
9825
9877
|
};
|
|
9826
9878
|
__decorateClass([
|
|
9827
|
-
(0,
|
|
9828
|
-
(0,
|
|
9879
|
+
(0, import_class_validator107.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
9880
|
+
(0, import_class_validator107.IsString)({ message: "Role name must be a string." })
|
|
9829
9881
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9830
9882
|
__decorateClass([
|
|
9831
|
-
(0,
|
|
9832
|
-
(0,
|
|
9883
|
+
(0, import_class_validator107.IsOptional)(),
|
|
9884
|
+
(0, import_class_validator107.IsString)({ message: "Role description must be a string." })
|
|
9833
9885
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9834
9886
|
__decorateClass([
|
|
9835
|
-
(0,
|
|
9836
|
-
(0,
|
|
9887
|
+
(0, import_class_validator107.IsOptional)(),
|
|
9888
|
+
(0, import_class_validator107.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
9837
9889
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9838
9890
|
|
|
9839
9891
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9840
|
-
var
|
|
9892
|
+
var import_class_validator108 = require("class-validator");
|
|
9841
9893
|
var AttachPermissionsToRoleDto = class {
|
|
9842
9894
|
};
|
|
9843
9895
|
__decorateClass([
|
|
9844
|
-
(0,
|
|
9845
|
-
(0,
|
|
9896
|
+
(0, import_class_validator108.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
9897
|
+
(0, import_class_validator108.IsString)({ message: "Role ID must be a string." })
|
|
9846
9898
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9847
9899
|
__decorateClass([
|
|
9848
|
-
(0,
|
|
9849
|
-
(0,
|
|
9900
|
+
(0, import_class_validator108.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
9901
|
+
(0, import_class_validator108.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
9850
9902
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9851
9903
|
|
|
9852
9904
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9853
|
-
var
|
|
9905
|
+
var import_class_validator109 = require("class-validator");
|
|
9854
9906
|
var UpdateAdminRoleStatusDto = class {
|
|
9855
9907
|
};
|
|
9856
9908
|
__decorateClass([
|
|
9857
|
-
(0,
|
|
9858
|
-
(0,
|
|
9909
|
+
(0, import_class_validator109.IsNotEmpty)({ message: "Please specify admin role status." }),
|
|
9910
|
+
(0, import_class_validator109.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9859
9911
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9860
9912
|
|
|
9861
9913
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -9936,7 +9988,7 @@ var INTERVIEW_PATTERN = {
|
|
|
9936
9988
|
};
|
|
9937
9989
|
|
|
9938
9990
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9939
|
-
var
|
|
9991
|
+
var import_class_validator110 = require("class-validator");
|
|
9940
9992
|
var import_class_transformer21 = require("class-transformer");
|
|
9941
9993
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
9942
9994
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -9948,55 +10000,55 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
9948
10000
|
var ExistingCandidateDto = class {
|
|
9949
10001
|
};
|
|
9950
10002
|
__decorateClass([
|
|
9951
|
-
(0,
|
|
10003
|
+
(0, import_class_validator110.IsUUID)()
|
|
9952
10004
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
9953
10005
|
__decorateClass([
|
|
9954
|
-
(0,
|
|
10006
|
+
(0, import_class_validator110.IsEnum)(CandidateType, {
|
|
9955
10007
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
9956
10008
|
})
|
|
9957
10009
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
9958
10010
|
var NewCandidateDto = class {
|
|
9959
10011
|
};
|
|
9960
10012
|
__decorateClass([
|
|
9961
|
-
(0,
|
|
9962
|
-
(0,
|
|
10013
|
+
(0, import_class_validator110.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
10014
|
+
(0, import_class_validator110.IsString)({ message: "Name must be a string" })
|
|
9963
10015
|
], NewCandidateDto.prototype, "name", 2);
|
|
9964
10016
|
__decorateClass([
|
|
9965
|
-
(0,
|
|
10017
|
+
(0, import_class_validator110.IsEmail)({}, { message: "Please enter a valid email." })
|
|
9966
10018
|
], NewCandidateDto.prototype, "email", 2);
|
|
9967
10019
|
__decorateClass([
|
|
9968
|
-
(0,
|
|
10020
|
+
(0, import_class_validator110.IsEnum)(CandidateType, {
|
|
9969
10021
|
message: "type must be NEW"
|
|
9970
10022
|
})
|
|
9971
10023
|
], NewCandidateDto.prototype, "type", 2);
|
|
9972
10024
|
var CandidatesDto = class {
|
|
9973
10025
|
};
|
|
9974
10026
|
__decorateClass([
|
|
9975
|
-
(0,
|
|
9976
|
-
(0,
|
|
9977
|
-
(0,
|
|
9978
|
-
(0,
|
|
10027
|
+
(0, import_class_validator110.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
10028
|
+
(0, import_class_validator110.IsArray)({ message: "Existing candidates should be an array." }),
|
|
10029
|
+
(0, import_class_validator110.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
10030
|
+
(0, import_class_validator110.ValidateNested)({ each: true }),
|
|
9979
10031
|
(0, import_class_transformer21.Type)(() => ExistingCandidateDto)
|
|
9980
10032
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
9981
10033
|
__decorateClass([
|
|
9982
|
-
(0,
|
|
9983
|
-
(0,
|
|
9984
|
-
(0,
|
|
9985
|
-
(0,
|
|
10034
|
+
(0, import_class_validator110.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
10035
|
+
(0, import_class_validator110.IsArray)({ message: "New candidates should be an array." }),
|
|
10036
|
+
(0, import_class_validator110.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
10037
|
+
(0, import_class_validator110.ValidateNested)({ each: true }),
|
|
9986
10038
|
(0, import_class_transformer21.Type)(() => NewCandidateDto)
|
|
9987
10039
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
9988
10040
|
var InterviewInviteDto = class {
|
|
9989
10041
|
};
|
|
9990
10042
|
__decorateClass([
|
|
9991
|
-
(0,
|
|
10043
|
+
(0, import_class_validator110.IsUUID)()
|
|
9992
10044
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
9993
10045
|
__decorateClass([
|
|
9994
|
-
(0,
|
|
10046
|
+
(0, import_class_validator110.ValidateNested)({ each: true }),
|
|
9995
10047
|
(0, import_class_transformer21.Type)(() => CandidatesDto)
|
|
9996
10048
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
9997
10049
|
|
|
9998
10050
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9999
|
-
var
|
|
10051
|
+
var import_class_validator111 = require("class-validator");
|
|
10000
10052
|
var import_class_transformer22 = require("class-transformer");
|
|
10001
10053
|
var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateType2) => {
|
|
10002
10054
|
InterviewInviteCandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -10008,306 +10060,306 @@ var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateTyp
|
|
|
10008
10060
|
var ExistingCandidateDto2 = class {
|
|
10009
10061
|
};
|
|
10010
10062
|
__decorateClass([
|
|
10011
|
-
(0,
|
|
10012
|
-
(0,
|
|
10063
|
+
(0, import_class_validator111.IsUUID)("4", { message: "Candidate ID must be a valid UUID." }),
|
|
10064
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Candidate ID is required." })
|
|
10013
10065
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
10014
10066
|
__decorateClass([
|
|
10015
|
-
(0,
|
|
10067
|
+
(0, import_class_validator111.IsEnum)(InterviewInviteCandidateType, {
|
|
10016
10068
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
10017
10069
|
}),
|
|
10018
|
-
(0,
|
|
10070
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Candidate type is required." })
|
|
10019
10071
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
10020
10072
|
var NewCandidateDto2 = class {
|
|
10021
10073
|
};
|
|
10022
10074
|
__decorateClass([
|
|
10023
|
-
(0,
|
|
10024
|
-
(0,
|
|
10075
|
+
(0, import_class_validator111.IsString)({ message: "Name must be a string." }),
|
|
10076
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Candidate name is required." })
|
|
10025
10077
|
], NewCandidateDto2.prototype, "name", 2);
|
|
10026
10078
|
__decorateClass([
|
|
10027
|
-
(0,
|
|
10028
|
-
(0,
|
|
10079
|
+
(0, import_class_validator111.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
10080
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Email is required." })
|
|
10029
10081
|
], NewCandidateDto2.prototype, "email", 2);
|
|
10030
10082
|
__decorateClass([
|
|
10031
|
-
(0,
|
|
10083
|
+
(0, import_class_validator111.IsEnum)(InterviewInviteCandidateType, {
|
|
10032
10084
|
message: "Type must be NEW for new candidates."
|
|
10033
10085
|
}),
|
|
10034
|
-
(0,
|
|
10086
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Candidate type is required." })
|
|
10035
10087
|
], NewCandidateDto2.prototype, "type", 2);
|
|
10036
10088
|
var SendInterviewInviteDto = class {
|
|
10037
10089
|
};
|
|
10038
10090
|
__decorateClass([
|
|
10039
|
-
(0,
|
|
10040
|
-
(0,
|
|
10091
|
+
(0, import_class_validator111.IsUUID)("4", { message: "Job ID must be a valid UUID." }),
|
|
10092
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Job ID is required." })
|
|
10041
10093
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
10042
10094
|
__decorateClass([
|
|
10043
|
-
(0,
|
|
10044
|
-
(0,
|
|
10095
|
+
(0, import_class_validator111.IsArray)({ message: "Existing candidates must be an array." }),
|
|
10096
|
+
(0, import_class_validator111.ValidateNested)({ each: true }),
|
|
10045
10097
|
(0, import_class_transformer22.Type)(() => ExistingCandidateDto2),
|
|
10046
|
-
(0,
|
|
10098
|
+
(0, import_class_validator111.IsOptional)()
|
|
10047
10099
|
], SendInterviewInviteDto.prototype, "existingCandidates", 2);
|
|
10048
10100
|
__decorateClass([
|
|
10049
|
-
(0,
|
|
10050
|
-
(0,
|
|
10101
|
+
(0, import_class_validator111.IsArray)({ message: "New candidates must be an array." }),
|
|
10102
|
+
(0, import_class_validator111.ValidateNested)({ each: true }),
|
|
10051
10103
|
(0, import_class_transformer22.Type)(() => NewCandidateDto2),
|
|
10052
|
-
(0,
|
|
10104
|
+
(0, import_class_validator111.IsOptional)()
|
|
10053
10105
|
], SendInterviewInviteDto.prototype, "newCandidates", 2);
|
|
10054
10106
|
|
|
10055
10107
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
10056
|
-
var
|
|
10108
|
+
var import_class_validator112 = require("class-validator");
|
|
10057
10109
|
var CreateF2FInterviewDto = class {
|
|
10058
10110
|
};
|
|
10059
10111
|
__decorateClass([
|
|
10060
|
-
(0,
|
|
10061
|
-
(0,
|
|
10112
|
+
(0, import_class_validator112.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
10113
|
+
(0, import_class_validator112.IsNotEmpty)({ message: "Invitee email is required." })
|
|
10062
10114
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
10063
10115
|
__decorateClass([
|
|
10064
|
-
(0,
|
|
10065
|
-
(0,
|
|
10116
|
+
(0, import_class_validator112.IsString)({ message: "Invitee name must be a string." }),
|
|
10117
|
+
(0, import_class_validator112.IsNotEmpty)({ message: "Invitee name is required." })
|
|
10066
10118
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
10067
10119
|
__decorateClass([
|
|
10068
|
-
(0,
|
|
10120
|
+
(0, import_class_validator112.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
10069
10121
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
10070
10122
|
__decorateClass([
|
|
10071
|
-
(0,
|
|
10123
|
+
(0, import_class_validator112.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
10072
10124
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
10073
10125
|
|
|
10074
10126
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
10075
|
-
var
|
|
10127
|
+
var import_class_validator113 = require("class-validator");
|
|
10076
10128
|
var CreateF2FInterviewDirectDto = class {
|
|
10077
10129
|
};
|
|
10078
10130
|
__decorateClass([
|
|
10079
|
-
(0,
|
|
10080
|
-
(0,
|
|
10131
|
+
(0, import_class_validator113.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
10132
|
+
(0, import_class_validator113.IsNotEmpty)({ message: "Invitee email is required." })
|
|
10081
10133
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
10082
10134
|
__decorateClass([
|
|
10083
|
-
(0,
|
|
10084
|
-
(0,
|
|
10135
|
+
(0, import_class_validator113.IsString)({ message: "Invitee name must be a string." }),
|
|
10136
|
+
(0, import_class_validator113.IsNotEmpty)({ message: "Invitee name is required." })
|
|
10085
10137
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
10086
10138
|
__decorateClass([
|
|
10087
|
-
(0,
|
|
10139
|
+
(0, import_class_validator113.IsNumber)({}, { message: "Job ID must be a number." })
|
|
10088
10140
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
10089
10141
|
__decorateClass([
|
|
10090
|
-
(0,
|
|
10142
|
+
(0, import_class_validator113.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
10091
10143
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
10092
10144
|
|
|
10093
10145
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
10094
|
-
var
|
|
10146
|
+
var import_class_validator114 = require("class-validator");
|
|
10095
10147
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
10096
10148
|
};
|
|
10097
10149
|
__decorateClass([
|
|
10098
|
-
(0,
|
|
10099
|
-
(0,
|
|
10150
|
+
(0, import_class_validator114.IsUUID)("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
10151
|
+
(0, import_class_validator114.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
10100
10152
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
10101
10153
|
__decorateClass([
|
|
10102
|
-
(0,
|
|
10154
|
+
(0, import_class_validator114.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
10103
10155
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
10104
10156
|
__decorateClass([
|
|
10105
|
-
(0,
|
|
10106
|
-
(0,
|
|
10157
|
+
(0, import_class_validator114.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
10158
|
+
(0, import_class_validator114.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
10107
10159
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
10108
10160
|
__decorateClass([
|
|
10109
|
-
(0,
|
|
10110
|
-
(0,
|
|
10161
|
+
(0, import_class_validator114.IsOptional)(),
|
|
10162
|
+
(0, import_class_validator114.IsString)({ message: "Freelancer request reason must be a string." })
|
|
10111
10163
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10112
10164
|
|
|
10113
10165
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
10114
|
-
var
|
|
10166
|
+
var import_class_validator115 = require("class-validator");
|
|
10115
10167
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
10116
10168
|
};
|
|
10117
10169
|
__decorateClass([
|
|
10118
|
-
(0,
|
|
10170
|
+
(0, import_class_validator115.IsNotEmpty)({ message: "AI Interview ID is required." })
|
|
10119
10171
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
10120
10172
|
__decorateClass([
|
|
10121
|
-
(0,
|
|
10173
|
+
(0, import_class_validator115.IsString)({ message: "Freelancer reason must be a string." })
|
|
10122
10174
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10123
10175
|
|
|
10124
10176
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
10125
|
-
var
|
|
10177
|
+
var import_class_validator116 = require("class-validator");
|
|
10126
10178
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
10127
10179
|
};
|
|
10128
10180
|
__decorateClass([
|
|
10129
|
-
(0,
|
|
10181
|
+
(0, import_class_validator116.IsString)({ message: "Client reject reason must be a string." })
|
|
10130
10182
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10131
10183
|
|
|
10132
10184
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
10133
|
-
var
|
|
10185
|
+
var import_class_validator117 = require("class-validator");
|
|
10134
10186
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
10135
10187
|
};
|
|
10136
10188
|
__decorateClass([
|
|
10137
|
-
(0,
|
|
10138
|
-
(0,
|
|
10189
|
+
(0, import_class_validator117.IsOptional)(),
|
|
10190
|
+
(0, import_class_validator117.IsString)()
|
|
10139
10191
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10140
10192
|
|
|
10141
10193
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
10142
|
-
var
|
|
10194
|
+
var import_class_validator118 = require("class-validator");
|
|
10143
10195
|
var CaptureAiInterviewResultPublicDto = class {
|
|
10144
10196
|
};
|
|
10145
10197
|
__decorateClass([
|
|
10146
|
-
(0,
|
|
10147
|
-
(0,
|
|
10198
|
+
(0, import_class_validator118.IsNotEmpty)({ message: "AI Interview UUID is required" }),
|
|
10199
|
+
(0, import_class_validator118.IsString)({ message: "AI Interview UUID must be a string" })
|
|
10148
10200
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
10149
10201
|
__decorateClass([
|
|
10150
|
-
(0,
|
|
10151
|
-
(0,
|
|
10202
|
+
(0, import_class_validator118.IsOptional)(),
|
|
10203
|
+
(0, import_class_validator118.IsObject)()
|
|
10152
10204
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
10153
10205
|
__decorateClass([
|
|
10154
|
-
(0,
|
|
10155
|
-
(0,
|
|
10206
|
+
(0, import_class_validator118.IsOptional)(),
|
|
10207
|
+
(0, import_class_validator118.IsString)()
|
|
10156
10208
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
10157
10209
|
|
|
10158
10210
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
10159
|
-
var
|
|
10211
|
+
var import_class_validator119 = require("class-validator");
|
|
10160
10212
|
var CreateInterviewBasicInformationDto = class {
|
|
10161
10213
|
};
|
|
10162
10214
|
__decorateClass([
|
|
10163
|
-
(0,
|
|
10164
|
-
(0,
|
|
10215
|
+
(0, import_class_validator119.IsNotEmpty)({ message: "Job ID is required" }),
|
|
10216
|
+
(0, import_class_validator119.IsNumber)({}, { message: "Job ID must be a number" })
|
|
10165
10217
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
10166
10218
|
__decorateClass([
|
|
10167
|
-
(0,
|
|
10168
|
-
(0,
|
|
10219
|
+
(0, import_class_validator119.IsNotEmpty)({ message: "Interview name is required" }),
|
|
10220
|
+
(0, import_class_validator119.IsString)({ message: "Interview name must be a string" })
|
|
10169
10221
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
10170
10222
|
|
|
10171
10223
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
10172
|
-
var
|
|
10224
|
+
var import_class_validator120 = require("class-validator");
|
|
10173
10225
|
var UpdateInterviewBasicInformationDto = class {
|
|
10174
10226
|
};
|
|
10175
10227
|
__decorateClass([
|
|
10176
|
-
(0,
|
|
10177
|
-
(0,
|
|
10228
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10229
|
+
(0, import_class_validator120.IsString)()
|
|
10178
10230
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
10179
10231
|
__decorateClass([
|
|
10180
|
-
(0,
|
|
10181
|
-
(0,
|
|
10232
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10233
|
+
(0, import_class_validator120.IsString)()
|
|
10182
10234
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
10183
10235
|
__decorateClass([
|
|
10184
|
-
(0,
|
|
10185
|
-
(0,
|
|
10236
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10237
|
+
(0, import_class_validator120.IsDateString)()
|
|
10186
10238
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
10187
10239
|
__decorateClass([
|
|
10188
|
-
(0,
|
|
10189
|
-
(0,
|
|
10240
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10241
|
+
(0, import_class_validator120.IsNumber)({}, { message: "Duration must be a number" })
|
|
10190
10242
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
10191
10243
|
__decorateClass([
|
|
10192
|
-
(0,
|
|
10193
|
-
(0,
|
|
10194
|
-
(0,
|
|
10244
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10245
|
+
(0, import_class_validator120.IsArray)(),
|
|
10246
|
+
(0, import_class_validator120.IsNumber)({}, { each: true, message: "Each skill ID must be a number" })
|
|
10195
10247
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
10196
10248
|
__decorateClass([
|
|
10197
|
-
(0,
|
|
10198
|
-
(0,
|
|
10249
|
+
(0, import_class_validator120.IsOptional)(),
|
|
10250
|
+
(0, import_class_validator120.IsString)()
|
|
10199
10251
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
10200
10252
|
|
|
10201
10253
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
10202
|
-
var
|
|
10254
|
+
var import_class_validator121 = require("class-validator");
|
|
10203
10255
|
var import_class_transformer23 = require("class-transformer");
|
|
10204
10256
|
var InterviewSkillItemDto = class {
|
|
10205
10257
|
};
|
|
10206
10258
|
__decorateClass([
|
|
10207
|
-
(0,
|
|
10259
|
+
(0, import_class_validator121.IsOptional)()
|
|
10208
10260
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
10209
10261
|
__decorateClass([
|
|
10210
|
-
(0,
|
|
10211
|
-
(0,
|
|
10262
|
+
(0, import_class_validator121.IsString)({ message: "Skill name must be a string." }),
|
|
10263
|
+
(0, import_class_validator121.IsNotEmpty)({ message: "Skill name is required." })
|
|
10212
10264
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
10213
10265
|
__decorateClass([
|
|
10214
|
-
(0,
|
|
10215
|
-
(0,
|
|
10266
|
+
(0, import_class_validator121.IsOptional)(),
|
|
10267
|
+
(0, import_class_validator121.IsString)({ message: "Skill description must be a string." })
|
|
10216
10268
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
10217
10269
|
var CreateInterviewSkillsDto = class {
|
|
10218
10270
|
};
|
|
10219
10271
|
__decorateClass([
|
|
10220
|
-
(0,
|
|
10221
|
-
(0,
|
|
10222
|
-
(0,
|
|
10272
|
+
(0, import_class_validator121.IsArray)({ message: "Skills must be an array." }),
|
|
10273
|
+
(0, import_class_validator121.IsNotEmpty)({ message: "At least one skill is required." }),
|
|
10274
|
+
(0, import_class_validator121.ValidateNested)({ each: true }),
|
|
10223
10275
|
(0, import_class_transformer23.Type)(() => InterviewSkillItemDto)
|
|
10224
10276
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
10225
10277
|
|
|
10226
10278
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
10227
|
-
var
|
|
10279
|
+
var import_class_validator122 = require("class-validator");
|
|
10228
10280
|
var import_class_transformer24 = require("class-transformer");
|
|
10229
10281
|
var CustomQuestionItemDto = class {
|
|
10230
10282
|
};
|
|
10231
10283
|
__decorateClass([
|
|
10232
|
-
(0,
|
|
10233
|
-
(0,
|
|
10284
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10285
|
+
(0, import_class_validator122.IsUUID)("4", { message: "Question UUID must be a valid UUID." })
|
|
10234
10286
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
10235
10287
|
__decorateClass([
|
|
10236
|
-
(0,
|
|
10237
|
-
(0,
|
|
10288
|
+
(0, import_class_validator122.IsString)({ message: "Question must be a string." }),
|
|
10289
|
+
(0, import_class_validator122.IsNotEmpty)({ message: "Question is required." })
|
|
10238
10290
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
10239
10291
|
var AiQuestionItemDto = class {
|
|
10240
10292
|
};
|
|
10241
10293
|
__decorateClass([
|
|
10242
|
-
(0,
|
|
10243
|
-
(0,
|
|
10294
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10295
|
+
(0, import_class_validator122.IsUUID)("4", { message: "Question UUID must be a valid UUID." })
|
|
10244
10296
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
10245
10297
|
__decorateClass([
|
|
10246
|
-
(0,
|
|
10247
|
-
(0,
|
|
10298
|
+
(0, import_class_validator122.IsString)({ message: "Question must be a string." }),
|
|
10299
|
+
(0, import_class_validator122.IsNotEmpty)({ message: "Question is required." })
|
|
10248
10300
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
10249
10301
|
__decorateClass([
|
|
10250
|
-
(0,
|
|
10251
|
-
(0,
|
|
10252
|
-
(0,
|
|
10302
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10303
|
+
(0, import_class_validator122.IsArray)({ message: "Concepts must be an array." }),
|
|
10304
|
+
(0, import_class_validator122.IsString)({ each: true, message: "Each concept must be a string." })
|
|
10253
10305
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
10254
10306
|
var CreateInterviewQuestionsDto = class {
|
|
10255
10307
|
};
|
|
10256
10308
|
__decorateClass([
|
|
10257
|
-
(0,
|
|
10258
|
-
(0,
|
|
10259
|
-
(0,
|
|
10309
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10310
|
+
(0, import_class_validator122.IsArray)({ message: "Questions must be an array." }),
|
|
10311
|
+
(0, import_class_validator122.ValidateNested)({ each: true }),
|
|
10260
10312
|
(0, import_class_transformer24.Type)(() => CustomQuestionItemDto)
|
|
10261
10313
|
], CreateInterviewQuestionsDto.prototype, "questions", 2);
|
|
10262
10314
|
__decorateClass([
|
|
10263
|
-
(0,
|
|
10264
|
-
(0,
|
|
10265
|
-
(0,
|
|
10315
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10316
|
+
(0, import_class_validator122.IsArray)({ message: "AI questions must be an array." }),
|
|
10317
|
+
(0, import_class_validator122.ValidateNested)({ each: true }),
|
|
10266
10318
|
(0, import_class_transformer24.Type)(() => AiQuestionItemDto)
|
|
10267
10319
|
], CreateInterviewQuestionsDto.prototype, "aiQuestions", 2);
|
|
10268
10320
|
|
|
10269
10321
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
10270
|
-
var
|
|
10322
|
+
var import_class_validator123 = require("class-validator");
|
|
10271
10323
|
var import_class_transformer25 = require("class-transformer");
|
|
10272
10324
|
var UpdateInterviewSettingDto = class {
|
|
10273
10325
|
};
|
|
10274
10326
|
__decorateClass([
|
|
10275
|
-
(0,
|
|
10276
|
-
(0,
|
|
10327
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10328
|
+
(0, import_class_validator123.IsString)({ message: "Interview language must be a string." })
|
|
10277
10329
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
10278
10330
|
__decorateClass([
|
|
10279
|
-
(0,
|
|
10280
|
-
(0,
|
|
10331
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10332
|
+
(0, import_class_validator123.IsBoolean)({ message: "Allow proctoring must be a boolean." }),
|
|
10281
10333
|
(0, import_class_transformer25.Type)(() => Boolean)
|
|
10282
10334
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
10283
10335
|
__decorateClass([
|
|
10284
|
-
(0,
|
|
10285
|
-
(0,
|
|
10336
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10337
|
+
(0, import_class_validator123.IsString)({ message: "Interview duration must be a string." })
|
|
10286
10338
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
10287
10339
|
__decorateClass([
|
|
10288
|
-
(0,
|
|
10289
|
-
(0,
|
|
10340
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10341
|
+
(0, import_class_validator123.IsString)({ message: "Interview validity period must be a string." })
|
|
10290
10342
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
10291
10343
|
__decorateClass([
|
|
10292
|
-
(0,
|
|
10293
|
-
(0,
|
|
10344
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10345
|
+
(0, import_class_validator123.IsString)({ message: "Maximum attempts allowed must be a string." })
|
|
10294
10346
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
10295
10347
|
__decorateClass([
|
|
10296
|
-
(0,
|
|
10297
|
-
(0,
|
|
10348
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10349
|
+
(0, import_class_validator123.IsString)({ message: "Start interview message must be a string." })
|
|
10298
10350
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
10299
10351
|
__decorateClass([
|
|
10300
|
-
(0,
|
|
10301
|
-
(0,
|
|
10352
|
+
(0, import_class_validator123.IsOptional)(),
|
|
10353
|
+
(0, import_class_validator123.IsString)({ message: "End interview message must be a string." })
|
|
10302
10354
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
10303
10355
|
|
|
10304
10356
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
10305
|
-
var
|
|
10357
|
+
var import_class_validator124 = require("class-validator");
|
|
10306
10358
|
var UpdateInterviewTypeInformationDto = class {
|
|
10307
10359
|
};
|
|
10308
10360
|
__decorateClass([
|
|
10309
|
-
(0,
|
|
10310
|
-
(0,
|
|
10361
|
+
(0, import_class_validator124.IsOptional)(),
|
|
10362
|
+
(0, import_class_validator124.IsString)({ message: "Interview type must be a string." })
|
|
10311
10363
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
10312
10364
|
|
|
10313
10365
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -10346,47 +10398,47 @@ var CONTRACT_PATTERN = {
|
|
|
10346
10398
|
};
|
|
10347
10399
|
|
|
10348
10400
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10349
|
-
var
|
|
10401
|
+
var import_class_validator125 = require("class-validator");
|
|
10350
10402
|
var import_class_transformer26 = require("class-transformer");
|
|
10351
10403
|
var SignContractForClientDto = class {
|
|
10352
10404
|
};
|
|
10353
10405
|
__decorateClass([
|
|
10354
|
-
(0,
|
|
10406
|
+
(0, import_class_validator125.IsNotEmpty)({ message: "Job Id is required." }),
|
|
10355
10407
|
(0, import_class_transformer26.Type)(() => Number),
|
|
10356
|
-
(0,
|
|
10408
|
+
(0, import_class_validator125.IsNumber)({}, { message: "Job ID must be a number." })
|
|
10357
10409
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10358
10410
|
__decorateClass([
|
|
10359
|
-
(0,
|
|
10411
|
+
(0, import_class_validator125.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
10360
10412
|
(0, import_class_transformer26.Type)(() => Number),
|
|
10361
|
-
(0,
|
|
10413
|
+
(0, import_class_validator125.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
10362
10414
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10363
10415
|
__decorateClass([
|
|
10364
|
-
(0,
|
|
10365
|
-
(0,
|
|
10416
|
+
(0, import_class_validator125.IsNotEmpty)({ message: "Contract type is required." }),
|
|
10417
|
+
(0, import_class_validator125.IsEnum)(ContractTypeEnum)
|
|
10366
10418
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10367
10419
|
|
|
10368
10420
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10369
|
-
var
|
|
10421
|
+
var import_class_validator126 = require("class-validator");
|
|
10370
10422
|
var import_class_transformer27 = require("class-transformer");
|
|
10371
10423
|
var SignContractForFreelancerDto = class {
|
|
10372
10424
|
};
|
|
10373
10425
|
__decorateClass([
|
|
10374
|
-
(0,
|
|
10426
|
+
(0, import_class_validator126.IsNotEmpty)({ message: "Job Id is required." }),
|
|
10375
10427
|
(0, import_class_transformer27.Type)(() => Number),
|
|
10376
|
-
(0,
|
|
10428
|
+
(0, import_class_validator126.IsNumber)({}, { message: "Job ID must be a number." })
|
|
10377
10429
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10378
10430
|
__decorateClass([
|
|
10379
|
-
(0,
|
|
10431
|
+
(0, import_class_validator126.IsNotEmpty)({ message: "Client ID is required." }),
|
|
10380
10432
|
(0, import_class_transformer27.Type)(() => Number),
|
|
10381
|
-
(0,
|
|
10433
|
+
(0, import_class_validator126.IsNumber)({}, { message: "Client ID must be a number." })
|
|
10382
10434
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10383
10435
|
__decorateClass([
|
|
10384
|
-
(0,
|
|
10385
|
-
(0,
|
|
10436
|
+
(0, import_class_validator126.IsNotEmpty)({ message: "Contract type is required." }),
|
|
10437
|
+
(0, import_class_validator126.IsEnum)(ContractTypeEnum)
|
|
10386
10438
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10387
10439
|
|
|
10388
10440
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10389
|
-
var
|
|
10441
|
+
var import_class_validator127 = require("class-validator");
|
|
10390
10442
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10391
10443
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10392
10444
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10407,77 +10459,77 @@ var PreferredEngagementTypeEnum = /* @__PURE__ */ ((PreferredEngagementTypeEnum3
|
|
|
10407
10459
|
var GenerateContractDto = class {
|
|
10408
10460
|
};
|
|
10409
10461
|
__decorateClass([
|
|
10410
|
-
(0,
|
|
10411
|
-
(0,
|
|
10462
|
+
(0, import_class_validator127.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
10463
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Job ID is required." })
|
|
10412
10464
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10413
10465
|
__decorateClass([
|
|
10414
|
-
(0,
|
|
10415
|
-
(0,
|
|
10466
|
+
(0, import_class_validator127.IsNumber)({}, { message: "Freelancer ID must be a number." }),
|
|
10467
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Freelancer ID is required." })
|
|
10416
10468
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10417
10469
|
__decorateClass([
|
|
10418
|
-
(0,
|
|
10419
|
-
(0,
|
|
10470
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10471
|
+
(0, import_class_validator127.IsEnum)(ContractTypeEnumDto, {
|
|
10420
10472
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
10421
10473
|
})
|
|
10422
10474
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10423
10475
|
__decorateClass([
|
|
10424
|
-
(0,
|
|
10425
|
-
(0,
|
|
10476
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Contract start date is required." }),
|
|
10477
|
+
(0, import_class_validator127.IsString)({ message: "Contract start date must be a string." })
|
|
10426
10478
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10427
10479
|
__decorateClass([
|
|
10428
|
-
(0,
|
|
10429
|
-
(0,
|
|
10480
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Contract end date is required." }),
|
|
10481
|
+
(0, import_class_validator127.IsString)({ message: "Contract end date must be a string." })
|
|
10430
10482
|
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
10431
10483
|
__decorateClass([
|
|
10432
|
-
(0,
|
|
10433
|
-
(0,
|
|
10484
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10485
|
+
(0, import_class_validator127.IsString)({ message: "Contract invoicing cycle must be a string." })
|
|
10434
10486
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10435
10487
|
__decorateClass([
|
|
10436
|
-
(0,
|
|
10437
|
-
(0,
|
|
10488
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Preferred engagement type is required" }),
|
|
10489
|
+
(0, import_class_validator127.IsEnum)(PreferredEngagementTypeEnum, {
|
|
10438
10490
|
message: "Preferred engagement type must be FREELANCE."
|
|
10439
10491
|
})
|
|
10440
10492
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
10441
10493
|
__decorateClass([
|
|
10442
|
-
(0,
|
|
10443
|
-
(0,
|
|
10494
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10495
|
+
(0, import_class_validator127.IsEnum)(ContractSourceEnum, {
|
|
10444
10496
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10445
10497
|
})
|
|
10446
10498
|
], GenerateContractDto.prototype, "source", 2);
|
|
10447
10499
|
__decorateClass([
|
|
10448
|
-
(0,
|
|
10449
|
-
(0,
|
|
10500
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10501
|
+
(0, import_class_validator127.IsUUID)("4", { message: "Source UUID must be a valid UUID." })
|
|
10450
10502
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10451
10503
|
|
|
10452
10504
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10453
|
-
var
|
|
10505
|
+
var import_class_validator128 = require("class-validator");
|
|
10454
10506
|
var EsignContractClientDto = class {
|
|
10455
10507
|
};
|
|
10456
10508
|
__decorateClass([
|
|
10457
|
-
(0,
|
|
10458
|
-
(0,
|
|
10509
|
+
(0, import_class_validator128.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10510
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
10459
10511
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10460
10512
|
|
|
10461
10513
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10462
|
-
var
|
|
10514
|
+
var import_class_validator129 = require("class-validator");
|
|
10463
10515
|
var EsignContractFreelancerDto = class {
|
|
10464
10516
|
};
|
|
10465
10517
|
__decorateClass([
|
|
10466
|
-
(0,
|
|
10467
|
-
(0,
|
|
10518
|
+
(0, import_class_validator129.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10519
|
+
(0, import_class_validator129.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
10468
10520
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10469
10521
|
|
|
10470
10522
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10471
|
-
var
|
|
10523
|
+
var import_class_validator130 = require("class-validator");
|
|
10472
10524
|
var EscrowFundContractDto = class {
|
|
10473
10525
|
};
|
|
10474
10526
|
__decorateClass([
|
|
10475
|
-
(0,
|
|
10476
|
-
(0,
|
|
10527
|
+
(0, import_class_validator130.IsUUID)("4", { message: "Contract ID must be a valid UUID." }),
|
|
10528
|
+
(0, import_class_validator130.IsNotEmpty)({ message: "Contract ID is required." })
|
|
10477
10529
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10478
10530
|
|
|
10479
10531
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10480
|
-
var
|
|
10532
|
+
var import_class_validator131 = require("class-validator");
|
|
10481
10533
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10482
10534
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10483
10535
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10487,27 +10539,27 @@ var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
|
10487
10539
|
var SendNdaContractToFreelancerDto = class {
|
|
10488
10540
|
};
|
|
10489
10541
|
__decorateClass([
|
|
10490
|
-
(0,
|
|
10491
|
-
(0,
|
|
10542
|
+
(0, import_class_validator131.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10543
|
+
(0, import_class_validator131.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
10492
10544
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10493
10545
|
__decorateClass([
|
|
10494
|
-
(0,
|
|
10495
|
-
(0,
|
|
10546
|
+
(0, import_class_validator131.IsOptional)(),
|
|
10547
|
+
(0, import_class_validator131.IsEnum)(ContractSourceEnum2, {
|
|
10496
10548
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10497
10549
|
})
|
|
10498
10550
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
10499
10551
|
__decorateClass([
|
|
10500
|
-
(0,
|
|
10501
|
-
(0,
|
|
10552
|
+
(0, import_class_validator131.IsOptional)(),
|
|
10553
|
+
(0, import_class_validator131.IsUUID)("4", { message: "Source UUID must be a valid UUID." })
|
|
10502
10554
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10503
10555
|
|
|
10504
10556
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10505
|
-
var
|
|
10557
|
+
var import_class_validator132 = require("class-validator");
|
|
10506
10558
|
var RejectContractDto = class {
|
|
10507
10559
|
};
|
|
10508
10560
|
__decorateClass([
|
|
10509
|
-
(0,
|
|
10510
|
-
(0,
|
|
10561
|
+
(0, import_class_validator132.IsOptional)(),
|
|
10562
|
+
(0, import_class_validator132.IsString)({ message: "Reject reason must be a string." })
|
|
10511
10563
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10512
10564
|
|
|
10513
10565
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10531,54 +10583,54 @@ var STRIPE_PATTERN = {
|
|
|
10531
10583
|
};
|
|
10532
10584
|
|
|
10533
10585
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10534
|
-
var
|
|
10586
|
+
var import_class_validator133 = require("class-validator");
|
|
10535
10587
|
var CreateCheckoutSessionDto = class {
|
|
10536
10588
|
};
|
|
10537
10589
|
__decorateClass([
|
|
10538
|
-
(0,
|
|
10590
|
+
(0, import_class_validator133.IsNotEmpty)({ message: "Amount is required" })
|
|
10539
10591
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10540
10592
|
|
|
10541
10593
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10542
|
-
var
|
|
10594
|
+
var import_class_validator134 = require("class-validator");
|
|
10543
10595
|
var PreCheckoutCalculationDto = class {
|
|
10544
10596
|
};
|
|
10545
10597
|
__decorateClass([
|
|
10546
|
-
(0,
|
|
10547
|
-
(0,
|
|
10598
|
+
(0, import_class_validator134.IsNotEmpty)({ message: "Amount is required" }),
|
|
10599
|
+
(0, import_class_validator134.IsNumber)({}, { message: "Amount must be a number" })
|
|
10548
10600
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10549
10601
|
__decorateClass([
|
|
10550
|
-
(0,
|
|
10551
|
-
(0,
|
|
10602
|
+
(0, import_class_validator134.IsOptional)(),
|
|
10603
|
+
(0, import_class_validator134.IsString)()
|
|
10552
10604
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10553
10605
|
__decorateClass([
|
|
10554
|
-
(0,
|
|
10555
|
-
(0,
|
|
10606
|
+
(0, import_class_validator134.IsOptional)(),
|
|
10607
|
+
(0, import_class_validator134.IsString)()
|
|
10556
10608
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10557
10609
|
|
|
10558
10610
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10559
|
-
var
|
|
10611
|
+
var import_class_validator135 = require("class-validator");
|
|
10560
10612
|
var ClientAddFundDto = class {
|
|
10561
10613
|
};
|
|
10562
10614
|
__decorateClass([
|
|
10563
|
-
(0,
|
|
10564
|
-
(0,
|
|
10615
|
+
(0, import_class_validator135.IsNotEmpty)({ message: "Amount is required" }),
|
|
10616
|
+
(0, import_class_validator135.IsNumber)({}, { message: "Amount must be a number" })
|
|
10565
10617
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10566
10618
|
__decorateClass([
|
|
10567
|
-
(0,
|
|
10568
|
-
(0,
|
|
10619
|
+
(0, import_class_validator135.IsOptional)(),
|
|
10620
|
+
(0, import_class_validator135.IsString)()
|
|
10569
10621
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10570
10622
|
__decorateClass([
|
|
10571
|
-
(0,
|
|
10572
|
-
(0,
|
|
10623
|
+
(0, import_class_validator135.IsOptional)(),
|
|
10624
|
+
(0, import_class_validator135.IsString)()
|
|
10573
10625
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10574
10626
|
|
|
10575
10627
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10576
|
-
var
|
|
10628
|
+
var import_class_validator136 = require("class-validator");
|
|
10577
10629
|
var TransferFundsDto = class {
|
|
10578
10630
|
};
|
|
10579
10631
|
__decorateClass([
|
|
10580
|
-
(0,
|
|
10581
|
-
(0,
|
|
10632
|
+
(0, import_class_validator136.IsUUID)("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10633
|
+
(0, import_class_validator136.IsNotEmpty)({ message: "Invoice UUID is required." })
|
|
10582
10634
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10583
10635
|
|
|
10584
10636
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10622,160 +10674,160 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10622
10674
|
};
|
|
10623
10675
|
|
|
10624
10676
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
10625
|
-
var
|
|
10677
|
+
var import_class_validator137 = require("class-validator");
|
|
10626
10678
|
var CreateFreelancerTimesheetDto = class {
|
|
10627
10679
|
};
|
|
10628
10680
|
__decorateClass([
|
|
10629
|
-
(0,
|
|
10630
|
-
(0,
|
|
10681
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "Job id is required" }),
|
|
10682
|
+
(0, import_class_validator137.IsNumber)({}, { message: "Job id must be a number" })
|
|
10631
10683
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10632
10684
|
__decorateClass([
|
|
10633
|
-
(0,
|
|
10634
|
-
(0,
|
|
10685
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "start date is required" }),
|
|
10686
|
+
(0, import_class_validator137.IsDateString)()
|
|
10635
10687
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10636
10688
|
__decorateClass([
|
|
10637
|
-
(0,
|
|
10638
|
-
(0,
|
|
10689
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "end date is required" }),
|
|
10690
|
+
(0, import_class_validator137.IsDateString)()
|
|
10639
10691
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10640
10692
|
__decorateClass([
|
|
10641
|
-
(0,
|
|
10642
|
-
(0,
|
|
10693
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "start time is required" }),
|
|
10694
|
+
(0, import_class_validator137.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10643
10695
|
message: "startTime must be in HH:mm:ss format"
|
|
10644
10696
|
})
|
|
10645
10697
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10646
10698
|
__decorateClass([
|
|
10647
|
-
(0,
|
|
10648
|
-
(0,
|
|
10699
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "end time is required" }),
|
|
10700
|
+
(0, import_class_validator137.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10649
10701
|
message: "endTime must be in HH:mm:ss format"
|
|
10650
10702
|
})
|
|
10651
10703
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10652
10704
|
__decorateClass([
|
|
10653
|
-
(0,
|
|
10654
|
-
(0,
|
|
10705
|
+
(0, import_class_validator137.IsOptional)(),
|
|
10706
|
+
(0, import_class_validator137.IsInt)()
|
|
10655
10707
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10656
10708
|
__decorateClass([
|
|
10657
|
-
(0,
|
|
10658
|
-
(0,
|
|
10709
|
+
(0, import_class_validator137.IsOptional)(),
|
|
10710
|
+
(0, import_class_validator137.IsString)()
|
|
10659
10711
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10660
10712
|
__decorateClass([
|
|
10661
|
-
(0,
|
|
10662
|
-
(0,
|
|
10713
|
+
(0, import_class_validator137.IsOptional)(),
|
|
10714
|
+
(0, import_class_validator137.IsString)()
|
|
10663
10715
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10664
10716
|
__decorateClass([
|
|
10665
|
-
(0,
|
|
10666
|
-
(0,
|
|
10717
|
+
(0, import_class_validator137.IsOptional)(),
|
|
10718
|
+
(0, import_class_validator137.IsString)()
|
|
10667
10719
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10668
10720
|
__decorateClass([
|
|
10669
|
-
(0,
|
|
10721
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "Description is required" })
|
|
10670
10722
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10671
10723
|
|
|
10672
10724
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10673
|
-
var
|
|
10725
|
+
var import_class_validator138 = require("class-validator");
|
|
10674
10726
|
var UpdateFreelancerTimesheetDto = class {
|
|
10675
10727
|
};
|
|
10676
10728
|
__decorateClass([
|
|
10677
|
-
(0,
|
|
10678
|
-
(0,
|
|
10729
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "Job id is required" }),
|
|
10730
|
+
(0, import_class_validator138.IsNumber)({}, { message: "Job id must be a number" })
|
|
10679
10731
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10680
10732
|
__decorateClass([
|
|
10681
|
-
(0,
|
|
10682
|
-
(0,
|
|
10733
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "start date is required" }),
|
|
10734
|
+
(0, import_class_validator138.IsDateString)()
|
|
10683
10735
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10684
10736
|
__decorateClass([
|
|
10685
|
-
(0,
|
|
10686
|
-
(0,
|
|
10737
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "end date is required" }),
|
|
10738
|
+
(0, import_class_validator138.IsDateString)()
|
|
10687
10739
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10688
10740
|
__decorateClass([
|
|
10689
|
-
(0,
|
|
10690
|
-
(0,
|
|
10741
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "start time is required" }),
|
|
10742
|
+
(0, import_class_validator138.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10691
10743
|
message: "startTime must be in HH:mm:ss format"
|
|
10692
10744
|
})
|
|
10693
10745
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10694
10746
|
__decorateClass([
|
|
10695
|
-
(0,
|
|
10696
|
-
(0,
|
|
10747
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "end time is required" }),
|
|
10748
|
+
(0, import_class_validator138.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10697
10749
|
message: "endTime must be in HH:mm:ss format"
|
|
10698
10750
|
})
|
|
10699
10751
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10700
10752
|
__decorateClass([
|
|
10701
|
-
(0,
|
|
10702
|
-
(0,
|
|
10753
|
+
(0, import_class_validator138.IsOptional)(),
|
|
10754
|
+
(0, import_class_validator138.IsInt)()
|
|
10703
10755
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10704
10756
|
__decorateClass([
|
|
10705
|
-
(0,
|
|
10706
|
-
(0,
|
|
10757
|
+
(0, import_class_validator138.IsOptional)(),
|
|
10758
|
+
(0, import_class_validator138.IsString)()
|
|
10707
10759
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10708
10760
|
__decorateClass([
|
|
10709
|
-
(0,
|
|
10710
|
-
(0,
|
|
10761
|
+
(0, import_class_validator138.IsOptional)(),
|
|
10762
|
+
(0, import_class_validator138.IsString)()
|
|
10711
10763
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10712
10764
|
__decorateClass([
|
|
10713
|
-
(0,
|
|
10714
|
-
(0,
|
|
10765
|
+
(0, import_class_validator138.IsOptional)(),
|
|
10766
|
+
(0, import_class_validator138.IsString)()
|
|
10715
10767
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10716
10768
|
__decorateClass([
|
|
10717
|
-
(0,
|
|
10769
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "Description is required" })
|
|
10718
10770
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10719
10771
|
|
|
10720
10772
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10721
|
-
var
|
|
10773
|
+
var import_class_validator139 = require("class-validator");
|
|
10722
10774
|
var SubmitTimesheetDto = class {
|
|
10723
10775
|
};
|
|
10724
10776
|
__decorateClass([
|
|
10725
|
-
(0,
|
|
10726
|
-
(0,
|
|
10777
|
+
(0, import_class_validator139.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10778
|
+
(0, import_class_validator139.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10727
10779
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10728
10780
|
|
|
10729
10781
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10730
|
-
var
|
|
10782
|
+
var import_class_validator140 = require("class-validator");
|
|
10731
10783
|
var ResubmitTimesheetDto = class {
|
|
10732
10784
|
};
|
|
10733
10785
|
__decorateClass([
|
|
10734
|
-
(0,
|
|
10735
|
-
(0,
|
|
10786
|
+
(0, import_class_validator140.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10787
|
+
(0, import_class_validator140.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10736
10788
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10737
10789
|
|
|
10738
10790
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10739
|
-
var
|
|
10791
|
+
var import_class_validator141 = require("class-validator");
|
|
10740
10792
|
var import_class_transformer28 = require("class-transformer");
|
|
10741
10793
|
var ApproveTimesheetsDto = class {
|
|
10742
10794
|
};
|
|
10743
10795
|
__decorateClass([
|
|
10744
|
-
(0,
|
|
10745
|
-
(0,
|
|
10796
|
+
(0, import_class_validator141.IsNumber)({}, { message: "Timesheet line ID must be a number." }),
|
|
10797
|
+
(0, import_class_validator141.IsNotEmpty)({ message: "Timesheet line ID is required." }),
|
|
10746
10798
|
(0, import_class_transformer28.Type)(() => Number)
|
|
10747
10799
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10748
10800
|
|
|
10749
10801
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10750
|
-
var
|
|
10802
|
+
var import_class_validator142 = require("class-validator");
|
|
10751
10803
|
var import_class_transformer29 = require("class-transformer");
|
|
10752
10804
|
var SendBackTimesheetsDto = class {
|
|
10753
10805
|
};
|
|
10754
10806
|
__decorateClass([
|
|
10755
|
-
(0,
|
|
10756
|
-
(0,
|
|
10807
|
+
(0, import_class_validator142.IsNumber)({}, { message: "Timesheet line ID must be a number." }),
|
|
10808
|
+
(0, import_class_validator142.IsNotEmpty)({ message: "Timesheet line ID is required." }),
|
|
10757
10809
|
(0, import_class_transformer29.Type)(() => Number)
|
|
10758
10810
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10759
10811
|
__decorateClass([
|
|
10760
|
-
(0,
|
|
10761
|
-
(0,
|
|
10812
|
+
(0, import_class_validator142.IsOptional)(),
|
|
10813
|
+
(0, import_class_validator142.IsString)({ message: "Client send back reason must be a string." })
|
|
10762
10814
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10763
10815
|
|
|
10764
10816
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10765
|
-
var
|
|
10817
|
+
var import_class_validator143 = require("class-validator");
|
|
10766
10818
|
var CreateDefaultTimesheetLineDto = class {
|
|
10767
10819
|
};
|
|
10768
10820
|
__decorateClass([
|
|
10769
|
-
(0,
|
|
10770
|
-
(0,
|
|
10821
|
+
(0, import_class_validator143.IsNotEmpty)({ message: "Contract ID is required" }),
|
|
10822
|
+
(0, import_class_validator143.IsNumber)({}, { message: "Contract ID must be a number" })
|
|
10771
10823
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10772
10824
|
__decorateClass([
|
|
10773
|
-
(0,
|
|
10774
|
-
(0,
|
|
10825
|
+
(0, import_class_validator143.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
10826
|
+
(0, import_class_validator143.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
10775
10827
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10776
10828
|
__decorateClass([
|
|
10777
|
-
(0,
|
|
10778
|
-
(0,
|
|
10829
|
+
(0, import_class_validator143.IsNotEmpty)({ message: "Client ID is required" }),
|
|
10830
|
+
(0, import_class_validator143.IsNumber)({}, { message: "Client ID must be a number" })
|
|
10779
10831
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10780
10832
|
|
|
10781
10833
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -10797,23 +10849,23 @@ var INVOICE_PATTERN = {
|
|
|
10797
10849
|
};
|
|
10798
10850
|
|
|
10799
10851
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10800
|
-
var
|
|
10852
|
+
var import_class_validator144 = require("class-validator");
|
|
10801
10853
|
var UpdateInvoiceStatusDto = class {
|
|
10802
10854
|
};
|
|
10803
10855
|
__decorateClass([
|
|
10804
|
-
(0,
|
|
10805
|
-
(0,
|
|
10856
|
+
(0, import_class_validator144.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
10857
|
+
(0, import_class_validator144.IsEnum)(InvoiceStatusEnum, {
|
|
10806
10858
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10807
10859
|
})
|
|
10808
10860
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10809
10861
|
|
|
10810
10862
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10811
|
-
var
|
|
10863
|
+
var import_class_validator145 = require("class-validator");
|
|
10812
10864
|
var CreateInvoiceDto = class {
|
|
10813
10865
|
};
|
|
10814
10866
|
__decorateClass([
|
|
10815
|
-
(0,
|
|
10816
|
-
(0,
|
|
10867
|
+
(0, import_class_validator145.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10868
|
+
(0, import_class_validator145.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10817
10869
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10818
10870
|
|
|
10819
10871
|
// src/modules/dispute/pattern/pattern.ts
|
|
@@ -10824,42 +10876,42 @@ var DISPUTE_PATTERN = {
|
|
|
10824
10876
|
};
|
|
10825
10877
|
|
|
10826
10878
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10827
|
-
var
|
|
10879
|
+
var import_class_validator146 = require("class-validator");
|
|
10828
10880
|
var import_class_transformer30 = require("class-transformer");
|
|
10829
10881
|
var CreateDisputeDto = class {
|
|
10830
10882
|
};
|
|
10831
10883
|
__decorateClass([
|
|
10832
|
-
(0,
|
|
10833
|
-
(0,
|
|
10884
|
+
(0, import_class_validator146.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
10885
|
+
(0, import_class_validator146.IsNumber)({}, { message: "Client id must be a number" }),
|
|
10834
10886
|
(0, import_class_transformer30.Type)(() => Number)
|
|
10835
10887
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
10836
10888
|
__decorateClass([
|
|
10837
|
-
(0,
|
|
10838
|
-
(0,
|
|
10889
|
+
(0, import_class_validator146.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
10890
|
+
(0, import_class_validator146.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
10839
10891
|
(0, import_class_transformer30.Type)(() => Number)
|
|
10840
10892
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10841
10893
|
__decorateClass([
|
|
10842
|
-
(0,
|
|
10843
|
-
(0,
|
|
10844
|
-
(0,
|
|
10894
|
+
(0, import_class_validator146.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
10895
|
+
(0, import_class_validator146.IsString)(),
|
|
10896
|
+
(0, import_class_validator146.IsIn)(["JOB", "INVOICE"])
|
|
10845
10897
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10846
10898
|
__decorateClass([
|
|
10847
|
-
(0,
|
|
10848
|
-
(0,
|
|
10899
|
+
(0, import_class_validator146.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
10900
|
+
(0, import_class_validator146.IsString)()
|
|
10849
10901
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10850
10902
|
__decorateClass([
|
|
10851
|
-
(0,
|
|
10852
|
-
(0,
|
|
10853
|
-
(0,
|
|
10903
|
+
(0, import_class_validator146.IsNotEmpty)({ message: "Please enter description." }),
|
|
10904
|
+
(0, import_class_validator146.IsString)({ message: "Description must be a string" }),
|
|
10905
|
+
(0, import_class_validator146.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
10854
10906
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10855
10907
|
__decorateClass([
|
|
10856
|
-
(0,
|
|
10857
|
-
(0,
|
|
10858
|
-
(0,
|
|
10908
|
+
(0, import_class_validator146.IsOptional)(),
|
|
10909
|
+
(0, import_class_validator146.IsString)({ message: "Comment must be a string" }),
|
|
10910
|
+
(0, import_class_validator146.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
10859
10911
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10860
10912
|
__decorateClass([
|
|
10861
|
-
(0,
|
|
10862
|
-
(0,
|
|
10913
|
+
(0, import_class_validator146.IsOptional)(),
|
|
10914
|
+
(0, import_class_validator146.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
10863
10915
|
(0, import_class_transformer30.Transform)(({ value }) => {
|
|
10864
10916
|
if (typeof value === "string") {
|
|
10865
10917
|
try {
|
|
@@ -10880,125 +10932,125 @@ var SENSELOAF_PATTERN = {
|
|
|
10880
10932
|
};
|
|
10881
10933
|
|
|
10882
10934
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10883
|
-
var
|
|
10935
|
+
var import_class_validator147 = require("class-validator");
|
|
10884
10936
|
var AiInterviewQuestionGenerateDto = class {
|
|
10885
10937
|
};
|
|
10886
10938
|
__decorateClass([
|
|
10887
|
-
(0,
|
|
10939
|
+
(0, import_class_validator147.IsNotEmpty)({ message: "Please enter job description." })
|
|
10888
10940
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10889
10941
|
__decorateClass([
|
|
10890
|
-
(0,
|
|
10942
|
+
(0, import_class_validator147.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
10891
10943
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10892
10944
|
|
|
10893
10945
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10894
|
-
var
|
|
10946
|
+
var import_class_validator148 = require("class-validator");
|
|
10895
10947
|
var ResumeParsingByUrlDto = class {
|
|
10896
10948
|
};
|
|
10897
10949
|
__decorateClass([
|
|
10898
|
-
(0,
|
|
10899
|
-
(0,
|
|
10950
|
+
(0, import_class_validator148.IsNotEmpty)({ message: "Resume URL is required" }),
|
|
10951
|
+
(0, import_class_validator148.IsString)({ message: "Resume URL must be a string" })
|
|
10900
10952
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10901
10953
|
__decorateClass([
|
|
10902
|
-
(0,
|
|
10903
|
-
(0,
|
|
10954
|
+
(0, import_class_validator148.IsOptional)(),
|
|
10955
|
+
(0, import_class_validator148.IsString)()
|
|
10904
10956
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10905
10957
|
|
|
10906
10958
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10907
|
-
var
|
|
10959
|
+
var import_class_validator149 = require("class-validator");
|
|
10908
10960
|
var ResumeDataProcessingDto = class {
|
|
10909
10961
|
};
|
|
10910
10962
|
__decorateClass([
|
|
10911
|
-
(0,
|
|
10912
|
-
(0,
|
|
10963
|
+
(0, import_class_validator149.IsNotEmpty)({ message: "Resume data is required" }),
|
|
10964
|
+
(0, import_class_validator149.IsObject)()
|
|
10913
10965
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10914
10966
|
__decorateClass([
|
|
10915
|
-
(0,
|
|
10916
|
-
(0,
|
|
10967
|
+
(0, import_class_validator149.IsOptional)(),
|
|
10968
|
+
(0, import_class_validator149.IsString)()
|
|
10917
10969
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
10918
10970
|
__decorateClass([
|
|
10919
|
-
(0,
|
|
10920
|
-
(0,
|
|
10971
|
+
(0, import_class_validator149.IsOptional)(),
|
|
10972
|
+
(0, import_class_validator149.IsString)()
|
|
10921
10973
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10922
10974
|
|
|
10923
10975
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10924
|
-
var
|
|
10976
|
+
var import_class_validator150 = require("class-validator");
|
|
10925
10977
|
var CheckResumeEligibilityDto = class {
|
|
10926
10978
|
};
|
|
10927
10979
|
__decorateClass([
|
|
10928
|
-
(0,
|
|
10929
|
-
(0,
|
|
10980
|
+
(0, import_class_validator150.IsNotEmpty)({ message: "Resume data is required" }),
|
|
10981
|
+
(0, import_class_validator150.IsObject)()
|
|
10930
10982
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10931
10983
|
__decorateClass([
|
|
10932
|
-
(0,
|
|
10933
|
-
(0,
|
|
10984
|
+
(0, import_class_validator150.IsOptional)(),
|
|
10985
|
+
(0, import_class_validator150.IsString)()
|
|
10934
10986
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
10935
10987
|
__decorateClass([
|
|
10936
|
-
(0,
|
|
10937
|
-
(0,
|
|
10988
|
+
(0, import_class_validator150.IsOptional)(),
|
|
10989
|
+
(0, import_class_validator150.IsString)()
|
|
10938
10990
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10939
10991
|
|
|
10940
10992
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10941
|
-
var
|
|
10993
|
+
var import_class_validator151 = require("class-validator");
|
|
10942
10994
|
var AiInterviewTemplateGenerationDto = class {
|
|
10943
10995
|
};
|
|
10944
10996
|
__decorateClass([
|
|
10945
|
-
(0,
|
|
10946
|
-
(0,
|
|
10997
|
+
(0, import_class_validator151.IsNotEmpty)({ message: "Job ID is required" }),
|
|
10998
|
+
(0, import_class_validator151.IsString)({ message: "Job ID must be a string" })
|
|
10947
10999
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10948
11000
|
__decorateClass([
|
|
10949
|
-
(0,
|
|
10950
|
-
(0,
|
|
10951
|
-
(0,
|
|
11001
|
+
(0, import_class_validator151.IsOptional)(),
|
|
11002
|
+
(0, import_class_validator151.IsArray)(),
|
|
11003
|
+
(0, import_class_validator151.IsString)({ each: true, message: "Each skill must be a string" })
|
|
10952
11004
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
10953
11005
|
__decorateClass([
|
|
10954
|
-
(0,
|
|
10955
|
-
(0,
|
|
11006
|
+
(0, import_class_validator151.IsOptional)(),
|
|
11007
|
+
(0, import_class_validator151.IsNumber)({}, { message: "Number of questions must be a number" })
|
|
10956
11008
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
10957
11009
|
__decorateClass([
|
|
10958
|
-
(0,
|
|
10959
|
-
(0,
|
|
11010
|
+
(0, import_class_validator151.IsOptional)(),
|
|
11011
|
+
(0, import_class_validator151.IsString)()
|
|
10960
11012
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10961
11013
|
|
|
10962
11014
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10963
|
-
var
|
|
11015
|
+
var import_class_validator152 = require("class-validator");
|
|
10964
11016
|
var AiInterviewLinkGenerationDto = class {
|
|
10965
11017
|
};
|
|
10966
11018
|
__decorateClass([
|
|
10967
|
-
(0,
|
|
10968
|
-
(0,
|
|
11019
|
+
(0, import_class_validator152.IsNotEmpty)({ message: "Template ID is required" }),
|
|
11020
|
+
(0, import_class_validator152.IsString)({ message: "Template ID must be a string" })
|
|
10969
11021
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10970
11022
|
__decorateClass([
|
|
10971
|
-
(0,
|
|
10972
|
-
(0,
|
|
11023
|
+
(0, import_class_validator152.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
11024
|
+
(0, import_class_validator152.IsString)({ message: "Freelancer ID must be a string" })
|
|
10973
11025
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10974
11026
|
__decorateClass([
|
|
10975
|
-
(0,
|
|
10976
|
-
(0,
|
|
11027
|
+
(0, import_class_validator152.IsOptional)(),
|
|
11028
|
+
(0, import_class_validator152.IsString)()
|
|
10977
11029
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
10978
11030
|
__decorateClass([
|
|
10979
|
-
(0,
|
|
10980
|
-
(0,
|
|
11031
|
+
(0, import_class_validator152.IsOptional)(),
|
|
11032
|
+
(0, import_class_validator152.IsNumber)({}, { message: "Expiry hours must be a number" })
|
|
10981
11033
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10982
11034
|
|
|
10983
11035
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10984
|
-
var
|
|
11036
|
+
var import_class_validator153 = require("class-validator");
|
|
10985
11037
|
var AiAssessmentCreationDto = class {
|
|
10986
11038
|
};
|
|
10987
11039
|
__decorateClass([
|
|
10988
|
-
(0,
|
|
10989
|
-
(0,
|
|
11040
|
+
(0, import_class_validator153.IsNotEmpty)({ message: "User ID is required" }),
|
|
11041
|
+
(0, import_class_validator153.IsString)({ message: "User ID must be a string" })
|
|
10990
11042
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10991
11043
|
__decorateClass([
|
|
10992
|
-
(0,
|
|
10993
|
-
(0,
|
|
11044
|
+
(0, import_class_validator153.IsOptional)(),
|
|
11045
|
+
(0, import_class_validator153.IsString)()
|
|
10994
11046
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
10995
11047
|
__decorateClass([
|
|
10996
|
-
(0,
|
|
10997
|
-
(0,
|
|
11048
|
+
(0, import_class_validator153.IsOptional)(),
|
|
11049
|
+
(0, import_class_validator153.IsNumber)({}, { message: "Number of questions must be a number" })
|
|
10998
11050
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
10999
11051
|
__decorateClass([
|
|
11000
|
-
(0,
|
|
11001
|
-
(0,
|
|
11052
|
+
(0, import_class_validator153.IsOptional)(),
|
|
11053
|
+
(0, import_class_validator153.IsString)()
|
|
11002
11054
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
11003
11055
|
|
|
11004
11056
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -11014,7 +11066,7 @@ var HIRING_PATTERN = {
|
|
|
11014
11066
|
};
|
|
11015
11067
|
|
|
11016
11068
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
11017
|
-
var
|
|
11069
|
+
var import_class_validator154 = require("class-validator");
|
|
11018
11070
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
11019
11071
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
11020
11072
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -11023,16 +11075,16 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
11023
11075
|
var CreateHiringDto = class {
|
|
11024
11076
|
};
|
|
11025
11077
|
__decorateClass([
|
|
11026
|
-
(0,
|
|
11027
|
-
(0,
|
|
11078
|
+
(0, import_class_validator154.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
11079
|
+
(0, import_class_validator154.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
11028
11080
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
11029
11081
|
__decorateClass([
|
|
11030
|
-
(0,
|
|
11031
|
-
(0,
|
|
11082
|
+
(0, import_class_validator154.IsNotEmpty)({ message: "Job ID is required" }),
|
|
11083
|
+
(0, import_class_validator154.IsNumber)({}, { message: "Job ID must be a number" })
|
|
11032
11084
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
11033
11085
|
__decorateClass([
|
|
11034
|
-
(0,
|
|
11035
|
-
(0,
|
|
11086
|
+
(0, import_class_validator154.IsNotEmpty)({ message: "Preferred engagement type is required" }),
|
|
11087
|
+
(0, import_class_validator154.IsEnum)(PreferredEngagementTypeEnum2, {
|
|
11036
11088
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
11037
11089
|
})
|
|
11038
11090
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -11055,16 +11107,16 @@ var SIGNATURE_PATTERN = {
|
|
|
11055
11107
|
};
|
|
11056
11108
|
|
|
11057
11109
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
11058
|
-
var
|
|
11110
|
+
var import_class_validator155 = require("class-validator");
|
|
11059
11111
|
var SaveSignatureDto = class {
|
|
11060
11112
|
};
|
|
11061
11113
|
__decorateClass([
|
|
11062
|
-
(0,
|
|
11063
|
-
(0,
|
|
11114
|
+
(0, import_class_validator155.IsOptional)(),
|
|
11115
|
+
(0, import_class_validator155.IsString)()
|
|
11064
11116
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
11065
11117
|
__decorateClass([
|
|
11066
|
-
(0,
|
|
11067
|
-
(0,
|
|
11118
|
+
(0, import_class_validator155.IsOptional)(),
|
|
11119
|
+
(0, import_class_validator155.IsString)()
|
|
11068
11120
|
], SaveSignatureDto.prototype, "description", 2);
|
|
11069
11121
|
|
|
11070
11122
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -11082,25 +11134,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
11082
11134
|
};
|
|
11083
11135
|
|
|
11084
11136
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
11085
|
-
var
|
|
11137
|
+
var import_class_validator156 = require("class-validator");
|
|
11086
11138
|
var AddTopupEscrowAmountDto = class {
|
|
11087
11139
|
};
|
|
11088
11140
|
__decorateClass([
|
|
11089
|
-
(0,
|
|
11090
|
-
(0,
|
|
11141
|
+
(0, import_class_validator156.IsNotEmpty)({ message: "Amount is required" }),
|
|
11142
|
+
(0, import_class_validator156.IsNumber)({}, { message: "Amount must be a number" })
|
|
11091
11143
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
11092
11144
|
__decorateClass([
|
|
11093
|
-
(0,
|
|
11094
|
-
(0,
|
|
11145
|
+
(0, import_class_validator156.IsNotEmpty)({ message: "Escrow wallet UUID is required" }),
|
|
11146
|
+
(0, import_class_validator156.IsUUID)("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
11095
11147
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
11096
11148
|
|
|
11097
11149
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
11098
|
-
var
|
|
11150
|
+
var import_class_validator157 = require("class-validator");
|
|
11099
11151
|
var DebitCommissionFteHiringDto = class {
|
|
11100
11152
|
};
|
|
11101
11153
|
__decorateClass([
|
|
11102
|
-
(0,
|
|
11103
|
-
(0,
|
|
11154
|
+
(0, import_class_validator157.IsUUID)("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
11155
|
+
(0, import_class_validator157.IsNotEmpty)({ message: "Invoice UUID is required." })
|
|
11104
11156
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
11105
11157
|
|
|
11106
11158
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12209,53 +12261,53 @@ function createDiscordTransport(options) {
|
|
|
12209
12261
|
}
|
|
12210
12262
|
|
|
12211
12263
|
// src/modules/in-app-notification/dto/create-in-app-notification.dto.ts
|
|
12212
|
-
var
|
|
12264
|
+
var import_class_validator158 = require("class-validator");
|
|
12213
12265
|
var CreateInAppNotificationDto = class {
|
|
12214
12266
|
};
|
|
12215
12267
|
__decorateClass([
|
|
12216
|
-
(0,
|
|
12217
|
-
(0,
|
|
12268
|
+
(0, import_class_validator158.IsNotEmpty)(),
|
|
12269
|
+
(0, import_class_validator158.IsNumber)()
|
|
12218
12270
|
], CreateInAppNotificationDto.prototype, "userId", 2);
|
|
12219
12271
|
__decorateClass([
|
|
12220
|
-
(0,
|
|
12221
|
-
(0,
|
|
12272
|
+
(0, import_class_validator158.IsOptional)(),
|
|
12273
|
+
(0, import_class_validator158.IsString)()
|
|
12222
12274
|
], CreateInAppNotificationDto.prototype, "event", 2);
|
|
12223
12275
|
__decorateClass([
|
|
12224
|
-
(0,
|
|
12225
|
-
(0,
|
|
12276
|
+
(0, import_class_validator158.IsOptional)(),
|
|
12277
|
+
(0, import_class_validator158.IsString)()
|
|
12226
12278
|
], CreateInAppNotificationDto.prototype, "title", 2);
|
|
12227
12279
|
__decorateClass([
|
|
12228
|
-
(0,
|
|
12229
|
-
(0,
|
|
12280
|
+
(0, import_class_validator158.IsNotEmpty)(),
|
|
12281
|
+
(0, import_class_validator158.IsString)()
|
|
12230
12282
|
], CreateInAppNotificationDto.prototype, "message", 2);
|
|
12231
12283
|
__decorateClass([
|
|
12232
|
-
(0,
|
|
12233
|
-
(0,
|
|
12284
|
+
(0, import_class_validator158.IsOptional)(),
|
|
12285
|
+
(0, import_class_validator158.IsString)()
|
|
12234
12286
|
], CreateInAppNotificationDto.prototype, "redirectUrl", 2);
|
|
12235
12287
|
__decorateClass([
|
|
12236
|
-
(0,
|
|
12237
|
-
(0,
|
|
12288
|
+
(0, import_class_validator158.IsOptional)(),
|
|
12289
|
+
(0, import_class_validator158.IsObject)()
|
|
12238
12290
|
], CreateInAppNotificationDto.prototype, "metaData", 2);
|
|
12239
12291
|
|
|
12240
12292
|
// src/modules/in-app-notification/dto/update-is-read.dto.ts
|
|
12241
|
-
var
|
|
12293
|
+
var import_class_validator159 = require("class-validator");
|
|
12242
12294
|
var import_class_transformer31 = require("class-transformer");
|
|
12243
12295
|
var UpdateIsReadDto = class {
|
|
12244
12296
|
};
|
|
12245
12297
|
__decorateClass([
|
|
12246
|
-
(0,
|
|
12247
|
-
(0,
|
|
12298
|
+
(0, import_class_validator159.IsOptional)(),
|
|
12299
|
+
(0, import_class_validator159.IsNumber)(),
|
|
12248
12300
|
(0, import_class_transformer31.Type)(() => Number)
|
|
12249
12301
|
], UpdateIsReadDto.prototype, "id", 2);
|
|
12250
12302
|
__decorateClass([
|
|
12251
|
-
(0,
|
|
12252
|
-
(0,
|
|
12253
|
-
(0,
|
|
12303
|
+
(0, import_class_validator159.IsOptional)(),
|
|
12304
|
+
(0, import_class_validator159.IsArray)(),
|
|
12305
|
+
(0, import_class_validator159.IsNumber)({}, { each: true }),
|
|
12254
12306
|
(0, import_class_transformer31.Type)(() => Number)
|
|
12255
12307
|
], UpdateIsReadDto.prototype, "ids", 2);
|
|
12256
12308
|
__decorateClass([
|
|
12257
|
-
(0,
|
|
12258
|
-
(0,
|
|
12309
|
+
(0, import_class_validator159.IsNotEmpty)(),
|
|
12310
|
+
(0, import_class_validator159.IsBoolean)()
|
|
12259
12311
|
], UpdateIsReadDto.prototype, "isRead", 2);
|
|
12260
12312
|
|
|
12261
12313
|
// src/modules/in-app-notification/pattern/pattern.ts
|
|
@@ -12278,7 +12330,7 @@ var DOCUSEAL_PATTERN = {
|
|
|
12278
12330
|
};
|
|
12279
12331
|
|
|
12280
12332
|
// src/modules/docuseal/dto/create-user-signing.dto.ts
|
|
12281
|
-
var
|
|
12333
|
+
var import_class_validator160 = require("class-validator");
|
|
12282
12334
|
var import_class_transformer32 = require("class-transformer");
|
|
12283
12335
|
var DocuSealOrderEnum = /* @__PURE__ */ ((DocuSealOrderEnum2) => {
|
|
12284
12336
|
DocuSealOrderEnum2["PRESERVED"] = "preserved";
|
|
@@ -12288,107 +12340,107 @@ var DocuSealOrderEnum = /* @__PURE__ */ ((DocuSealOrderEnum2) => {
|
|
|
12288
12340
|
var DocuSealSubmitterDto = class {
|
|
12289
12341
|
};
|
|
12290
12342
|
__decorateClass([
|
|
12291
|
-
(0,
|
|
12292
|
-
(0,
|
|
12343
|
+
(0, import_class_validator160.IsEmail)({}, { message: "Submitter email must be valid." }),
|
|
12344
|
+
(0, import_class_validator160.IsNotEmpty)({ message: "Submitter email is required." })
|
|
12293
12345
|
], DocuSealSubmitterDto.prototype, "email", 2);
|
|
12294
12346
|
__decorateClass([
|
|
12295
|
-
(0,
|
|
12296
|
-
(0,
|
|
12347
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12348
|
+
(0, import_class_validator160.IsString)()
|
|
12297
12349
|
], DocuSealSubmitterDto.prototype, "name", 2);
|
|
12298
12350
|
__decorateClass([
|
|
12299
|
-
(0,
|
|
12300
|
-
(0,
|
|
12351
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12352
|
+
(0, import_class_validator160.IsString)()
|
|
12301
12353
|
], DocuSealSubmitterDto.prototype, "phone", 2);
|
|
12302
12354
|
__decorateClass([
|
|
12303
|
-
(0,
|
|
12304
|
-
(0,
|
|
12355
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12356
|
+
(0, import_class_validator160.IsArray)()
|
|
12305
12357
|
], DocuSealSubmitterDto.prototype, "fields", 2);
|
|
12306
12358
|
var DocuSealMessageDto = class {
|
|
12307
12359
|
};
|
|
12308
12360
|
__decorateClass([
|
|
12309
|
-
(0,
|
|
12310
|
-
(0,
|
|
12361
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12362
|
+
(0, import_class_validator160.IsString)()
|
|
12311
12363
|
], DocuSealMessageDto.prototype, "subject", 2);
|
|
12312
12364
|
__decorateClass([
|
|
12313
|
-
(0,
|
|
12314
|
-
(0,
|
|
12365
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12366
|
+
(0, import_class_validator160.IsString)()
|
|
12315
12367
|
], DocuSealMessageDto.prototype, "body", 2);
|
|
12316
12368
|
var CreateUserSigningDto = class {
|
|
12317
12369
|
};
|
|
12318
12370
|
__decorateClass([
|
|
12319
|
-
(0,
|
|
12320
|
-
(0,
|
|
12371
|
+
(0, import_class_validator160.IsNumber)({}, { message: "Template ID must be a number." }),
|
|
12372
|
+
(0, import_class_validator160.IsNotEmpty)({ message: "Template ID is required." })
|
|
12321
12373
|
], CreateUserSigningDto.prototype, "templateId", 2);
|
|
12322
12374
|
__decorateClass([
|
|
12323
|
-
(0,
|
|
12324
|
-
(0,
|
|
12375
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12376
|
+
(0, import_class_validator160.IsBoolean)()
|
|
12325
12377
|
], CreateUserSigningDto.prototype, "sendEmail", 2);
|
|
12326
12378
|
__decorateClass([
|
|
12327
|
-
(0,
|
|
12328
|
-
(0,
|
|
12379
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12380
|
+
(0, import_class_validator160.IsEnum)(DocuSealOrderEnum, {
|
|
12329
12381
|
message: "Order must be one of preserved or random."
|
|
12330
12382
|
})
|
|
12331
12383
|
], CreateUserSigningDto.prototype, "order", 2);
|
|
12332
12384
|
__decorateClass([
|
|
12333
|
-
(0,
|
|
12334
|
-
(0,
|
|
12385
|
+
(0, import_class_validator160.IsArray)({ message: "Submitters must be an array." }),
|
|
12386
|
+
(0, import_class_validator160.ValidateNested)({ each: true }),
|
|
12335
12387
|
(0, import_class_transformer32.Type)(() => DocuSealSubmitterDto)
|
|
12336
12388
|
], CreateUserSigningDto.prototype, "submitters", 2);
|
|
12337
12389
|
__decorateClass([
|
|
12338
|
-
(0,
|
|
12339
|
-
(0,
|
|
12390
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12391
|
+
(0, import_class_validator160.ValidateNested)(),
|
|
12340
12392
|
(0, import_class_transformer32.Type)(() => DocuSealMessageDto)
|
|
12341
12393
|
], CreateUserSigningDto.prototype, "message", 2);
|
|
12342
12394
|
__decorateClass([
|
|
12343
|
-
(0,
|
|
12344
|
-
(0,
|
|
12395
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12396
|
+
(0, import_class_validator160.IsString)()
|
|
12345
12397
|
], CreateUserSigningDto.prototype, "completedRedirectUrl", 2);
|
|
12346
12398
|
__decorateClass([
|
|
12347
|
-
(0,
|
|
12348
|
-
(0,
|
|
12399
|
+
(0, import_class_validator160.IsOptional)(),
|
|
12400
|
+
(0, import_class_validator160.IsString)()
|
|
12349
12401
|
], CreateUserSigningDto.prototype, "expireAt", 2);
|
|
12350
12402
|
|
|
12351
12403
|
// src/modules/docuseal/dto/get-submission.dto.ts
|
|
12352
|
-
var
|
|
12404
|
+
var import_class_validator161 = require("class-validator");
|
|
12353
12405
|
var import_class_transformer33 = require("class-transformer");
|
|
12354
12406
|
var GetSubmissionDto = class {
|
|
12355
12407
|
};
|
|
12356
12408
|
__decorateClass([
|
|
12357
|
-
(0,
|
|
12358
|
-
(0,
|
|
12409
|
+
(0, import_class_validator161.IsNumber)({}, { message: "Submission ID must be a number." }),
|
|
12410
|
+
(0, import_class_validator161.IsNotEmpty)({ message: "Submission ID is required." }),
|
|
12359
12411
|
(0, import_class_transformer33.Type)(() => Number)
|
|
12360
12412
|
], GetSubmissionDto.prototype, "submissionId", 2);
|
|
12361
12413
|
|
|
12362
12414
|
// src/modules/docuseal/dto/get-submitter.dto.ts
|
|
12363
|
-
var
|
|
12415
|
+
var import_class_validator162 = require("class-validator");
|
|
12364
12416
|
var import_class_transformer34 = require("class-transformer");
|
|
12365
12417
|
var GetSubmitterDto = class {
|
|
12366
12418
|
};
|
|
12367
12419
|
__decorateClass([
|
|
12368
|
-
(0,
|
|
12369
|
-
(0,
|
|
12420
|
+
(0, import_class_validator162.IsNumber)({}, { message: "Submitter ID must be a number." }),
|
|
12421
|
+
(0, import_class_validator162.IsNotEmpty)({ message: "Submitter ID is required." }),
|
|
12370
12422
|
(0, import_class_transformer34.Type)(() => Number)
|
|
12371
12423
|
], GetSubmitterDto.prototype, "submitterId", 2);
|
|
12372
12424
|
|
|
12373
12425
|
// src/modules/docuseal/dto/get-template.dto.ts
|
|
12374
|
-
var
|
|
12426
|
+
var import_class_validator163 = require("class-validator");
|
|
12375
12427
|
var import_class_transformer35 = require("class-transformer");
|
|
12376
12428
|
var GetTemplateDto = class {
|
|
12377
12429
|
};
|
|
12378
12430
|
__decorateClass([
|
|
12379
|
-
(0,
|
|
12380
|
-
(0,
|
|
12431
|
+
(0, import_class_validator163.IsNumber)({}, { message: "Template ID must be a number." }),
|
|
12432
|
+
(0, import_class_validator163.IsNotEmpty)({ message: "Template ID is required." }),
|
|
12381
12433
|
(0, import_class_transformer35.Type)(() => Number)
|
|
12382
12434
|
], GetTemplateDto.prototype, "templateId", 2);
|
|
12383
12435
|
|
|
12384
12436
|
// src/modules/docuseal/dto/archive-submission.dto.ts
|
|
12385
|
-
var
|
|
12437
|
+
var import_class_validator164 = require("class-validator");
|
|
12386
12438
|
var import_class_transformer36 = require("class-transformer");
|
|
12387
12439
|
var ArchiveSubmissionDto = class {
|
|
12388
12440
|
};
|
|
12389
12441
|
__decorateClass([
|
|
12390
|
-
(0,
|
|
12391
|
-
(0,
|
|
12442
|
+
(0, import_class_validator164.IsNumber)({}, { message: "Submission ID must be a number." }),
|
|
12443
|
+
(0, import_class_validator164.IsNotEmpty)({ message: "Submission ID is required." }),
|
|
12392
12444
|
(0, import_class_transformer36.Type)(() => Number)
|
|
12393
12445
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12394
12446
|
|
|
@@ -13734,7 +13786,8 @@ GlobalSetting = __decorateClass([
|
|
|
13734
13786
|
RejectContractDto,
|
|
13735
13787
|
RejectF2FInterviewRescheduleRequestDto,
|
|
13736
13788
|
RemoveGlobalSettingDto,
|
|
13737
|
-
|
|
13789
|
+
RequestPasswordChangeOtpForClientDto,
|
|
13790
|
+
RequestPasswordChangeOtpForFreelancerDto,
|
|
13738
13791
|
ResetPasswordDto,
|
|
13739
13792
|
ResetPasswordTokenValidationDto,
|
|
13740
13793
|
ResetUserPasswordByAdminDto,
|
|
@@ -13825,7 +13878,8 @@ GlobalSetting = __decorateClass([
|
|
|
13825
13878
|
VerifyGuestOtpDto,
|
|
13826
13879
|
VerifyOnboardingTokenDto,
|
|
13827
13880
|
VerifyOtpDto,
|
|
13828
|
-
|
|
13881
|
+
VerifyPasswordChangeOtpForClientDto,
|
|
13882
|
+
VerifyPasswordChangeOtpForFreelancerDto,
|
|
13829
13883
|
WALLET_ADMIN_PATTERN,
|
|
13830
13884
|
WALLET_PATTERN,
|
|
13831
13885
|
Wallet,
|