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