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