@experts_hub/shared 1.0.667 → 1.0.669
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +1131 -1077
- package/dist/index.mjs +566 -504
- package/dist/modules/job/dto/create-job-via-ai.dto..d.ts +5 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +2 -2
- package/dist/modules/user/client-profile/dto/request-password-change-otp-client.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/dto/verify-password-change-otp-client.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/pattern/pattern.d.ts +3 -2
- package/dist/modules/user/freelancer-profile/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-profile/dto/request-password-change-otp-freelancer.dto.d.ts +4 -0
- package/dist/modules/user/freelancer-profile/dto/verify-password-change-otp-freelancer.dto.d.ts +4 -0
- package/dist/modules/user/freelancer-profile/pattern/pattern.d.ts +3 -0
- package/package.json +1 -1
- package/dist/modules/user/client-profile/dto/request-password-change-otp.dto.d.ts +0 -4
- package/dist/modules/user/client-profile/dto/verify-password-change-otp.dto.d.ts +0 -4
package/dist/index.mjs
CHANGED
|
@@ -6234,8 +6234,9 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
6234
6234
|
fetchFreelancerInfoForChat: "fetch.freelancer.info.for.chat",
|
|
6235
6235
|
fetchClientAndFreelancerDetailsForChatChannelCreation: "fetch.client.and.freelancer.details.for.chat.channel.creation",
|
|
6236
6236
|
fetchCustomeResume: "fetch.custome.resume",
|
|
6237
|
-
|
|
6238
|
-
|
|
6237
|
+
requestPasswordChangeOtpForClient: "request.password.change.otp.for.client",
|
|
6238
|
+
verifyPasswordChangeOtpForClient: "verify.password.change.otp.for.client",
|
|
6239
|
+
isPasswordSetForClient: "is.password.set.for.client"
|
|
6239
6240
|
};
|
|
6240
6241
|
|
|
6241
6242
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -6356,19 +6357,19 @@ __decorateClass([
|
|
|
6356
6357
|
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
6357
6358
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
6358
6359
|
|
|
6359
|
-
// src/modules/user/client-profile/dto/request-password-change-otp.dto.ts
|
|
6360
|
+
// src/modules/user/client-profile/dto/request-password-change-otp-client.dto.ts
|
|
6360
6361
|
import {
|
|
6361
6362
|
IsString as IsString18,
|
|
6362
6363
|
IsNotEmpty as IsNotEmpty38,
|
|
6363
6364
|
MinLength as MinLength8,
|
|
6364
6365
|
Matches as Matches8
|
|
6365
6366
|
} from "class-validator";
|
|
6366
|
-
var
|
|
6367
|
+
var RequestPasswordChangeOtpForClientDto = class {
|
|
6367
6368
|
};
|
|
6368
6369
|
__decorateClass([
|
|
6369
6370
|
IsNotEmpty38({ message: "Current password is required" }),
|
|
6370
6371
|
IsString18()
|
|
6371
|
-
],
|
|
6372
|
+
], RequestPasswordChangeOtpForClientDto.prototype, "currentPassword", 2);
|
|
6372
6373
|
__decorateClass([
|
|
6373
6374
|
IsNotEmpty38({ message: "New password is required" }),
|
|
6374
6375
|
IsString18(),
|
|
@@ -6376,16 +6377,16 @@ __decorateClass([
|
|
|
6376
6377
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6377
6378
|
message: "Password must include letters, numbers, and special characters"
|
|
6378
6379
|
})
|
|
6379
|
-
],
|
|
6380
|
+
], RequestPasswordChangeOtpForClientDto.prototype, "newPassword", 2);
|
|
6380
6381
|
|
|
6381
|
-
// src/modules/user/client-profile/dto/verify-password-change-otp.dto.ts
|
|
6382
|
+
// src/modules/user/client-profile/dto/verify-password-change-otp-client.dto.ts
|
|
6382
6383
|
import {
|
|
6383
6384
|
IsString as IsString19,
|
|
6384
6385
|
IsNotEmpty as IsNotEmpty39,
|
|
6385
6386
|
Matches as Matches9,
|
|
6386
6387
|
MinLength as MinLength9
|
|
6387
6388
|
} from "class-validator";
|
|
6388
|
-
var
|
|
6389
|
+
var VerifyPasswordChangeOtpForClientDto = class {
|
|
6389
6390
|
};
|
|
6390
6391
|
__decorateClass([
|
|
6391
6392
|
IsNotEmpty39({ message: "New password is required" }),
|
|
@@ -6394,12 +6395,12 @@ __decorateClass([
|
|
|
6394
6395
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6395
6396
|
message: "Password must include letters, numbers, and special characters"
|
|
6396
6397
|
})
|
|
6397
|
-
],
|
|
6398
|
+
], VerifyPasswordChangeOtpForClientDto.prototype, "newPassword", 2);
|
|
6398
6399
|
__decorateClass([
|
|
6399
6400
|
IsNotEmpty39({ message: "OTP is required" }),
|
|
6400
6401
|
IsString19(),
|
|
6401
6402
|
Matches9(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
6402
|
-
],
|
|
6403
|
+
], VerifyPasswordChangeOtpForClientDto.prototype, "otp", 2);
|
|
6403
6404
|
|
|
6404
6405
|
// src/modules/question/pattern/pattern.ts
|
|
6405
6406
|
var ONBOARDING_QUESTION_PATTERN = {
|
|
@@ -6764,6 +6765,11 @@ var EmploymentTypeV2 = /* @__PURE__ */ ((EmploymentTypeV23) => {
|
|
|
6764
6765
|
EmploymentTypeV23["FTE"] = "FTE";
|
|
6765
6766
|
return EmploymentTypeV23;
|
|
6766
6767
|
})(EmploymentTypeV2 || {});
|
|
6768
|
+
var BillingCycleEnumV2 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
6769
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
6770
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
6771
|
+
return BillingCycleEnumV24;
|
|
6772
|
+
})(BillingCycleEnumV2 || {});
|
|
6767
6773
|
var StepCompletedEnumV2 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
6768
6774
|
StepCompletedEnumV23["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
6769
6775
|
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
@@ -6867,6 +6873,12 @@ __decorateClass([
|
|
|
6867
6873
|
).join(", ")}`
|
|
6868
6874
|
})
|
|
6869
6875
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
6876
|
+
__decorateClass([
|
|
6877
|
+
IsOptional22(),
|
|
6878
|
+
IsEnum16(BillingCycleEnumV2, {
|
|
6879
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV2).join(", ")}`
|
|
6880
|
+
})
|
|
6881
|
+
], CreateJobViaAIDto.prototype, "billingCycle", 2);
|
|
6870
6882
|
__decorateClass([
|
|
6871
6883
|
ValidateIf4((o) => !o.isDraft),
|
|
6872
6884
|
IsString25({ message: "Currency must be a string" })
|
|
@@ -7033,11 +7045,11 @@ var StepCompletedEnumV22 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
|
7033
7045
|
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
7034
7046
|
return StepCompletedEnumV23;
|
|
7035
7047
|
})(StepCompletedEnumV22 || {});
|
|
7036
|
-
var
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
return
|
|
7040
|
-
})(
|
|
7048
|
+
var BillingCycleEnumV22 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
7049
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
7050
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
7051
|
+
return BillingCycleEnumV24;
|
|
7052
|
+
})(BillingCycleEnumV22 || {});
|
|
7041
7053
|
var JobLocationDto2 = class {
|
|
7042
7054
|
};
|
|
7043
7055
|
__decorateClass([
|
|
@@ -7134,8 +7146,8 @@ __decorateClass([
|
|
|
7134
7146
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7135
7147
|
__decorateClass([
|
|
7136
7148
|
IsOptional23(),
|
|
7137
|
-
IsEnum18(
|
|
7138
|
-
message: `Billing cycle must be one of: ${Object.values(
|
|
7149
|
+
IsEnum18(BillingCycleEnumV22, {
|
|
7150
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV22).join(", ")}`
|
|
7139
7151
|
})
|
|
7140
7152
|
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
7141
7153
|
__decorateClass([
|
|
@@ -7325,7 +7337,10 @@ var PROFILE_PATTERN = {
|
|
|
7325
7337
|
freelancerEmailAndMobileMasking: "freelancer.email.and.mobile.masking",
|
|
7326
7338
|
fetchClientInfoForChat: "fetch.client.info.for.chat",
|
|
7327
7339
|
fetchAiAssessmentDetails: "fetch.ai.assessment.details",
|
|
7328
|
-
captureAiAssessmentResult: "capture.ai.assessment.result"
|
|
7340
|
+
captureAiAssessmentResult: "capture.ai.assessment.result",
|
|
7341
|
+
requestPasswordChangeOtpForFreelancer: "request.password.change.otp.for.freelancer",
|
|
7342
|
+
verifyPasswordChangeOtpForFreelancer: "verify.password.change.otp.for.freelancer",
|
|
7343
|
+
isPasswordSetForFreelancer: "is.password.set.for.freelancer"
|
|
7329
7344
|
};
|
|
7330
7345
|
var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
7331
7346
|
fetchAssessmentRequestsForFreelancer: "fetch.assessment.requests.for.freelancer",
|
|
@@ -7528,6 +7543,51 @@ __decorateClass([
|
|
|
7528
7543
|
IsString31()
|
|
7529
7544
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7530
7545
|
|
|
7546
|
+
// src/modules/user/freelancer-profile/dto/request-password-change-otp-freelancer.dto.ts
|
|
7547
|
+
import {
|
|
7548
|
+
IsString as IsString32,
|
|
7549
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7550
|
+
MinLength as MinLength11,
|
|
7551
|
+
Matches as Matches11
|
|
7552
|
+
} from "class-validator";
|
|
7553
|
+
var RequestPasswordChangeOtpForFreelancerDto = class {
|
|
7554
|
+
};
|
|
7555
|
+
__decorateClass([
|
|
7556
|
+
IsNotEmpty56({ message: "Current password is required" }),
|
|
7557
|
+
IsString32()
|
|
7558
|
+
], RequestPasswordChangeOtpForFreelancerDto.prototype, "currentPassword", 2);
|
|
7559
|
+
__decorateClass([
|
|
7560
|
+
IsNotEmpty56({ message: "New password is required" }),
|
|
7561
|
+
IsString32(),
|
|
7562
|
+
MinLength11(6, { message: "Password must be at least 6 characters long" }),
|
|
7563
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7564
|
+
message: "Password must include letters, numbers, and special characters"
|
|
7565
|
+
})
|
|
7566
|
+
], RequestPasswordChangeOtpForFreelancerDto.prototype, "newPassword", 2);
|
|
7567
|
+
|
|
7568
|
+
// src/modules/user/freelancer-profile/dto/verify-password-change-otp-freelancer.dto.ts
|
|
7569
|
+
import {
|
|
7570
|
+
IsString as IsString33,
|
|
7571
|
+
IsNotEmpty as IsNotEmpty57,
|
|
7572
|
+
Matches as Matches12,
|
|
7573
|
+
MinLength as MinLength12
|
|
7574
|
+
} from "class-validator";
|
|
7575
|
+
var VerifyPasswordChangeOtpForFreelancerDto = class {
|
|
7576
|
+
};
|
|
7577
|
+
__decorateClass([
|
|
7578
|
+
IsNotEmpty57({ message: "New password is required" }),
|
|
7579
|
+
IsString33(),
|
|
7580
|
+
MinLength12(6, { message: "Password must be at least 6 characters long" }),
|
|
7581
|
+
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7582
|
+
message: "Password must include letters, numbers, and special characters"
|
|
7583
|
+
})
|
|
7584
|
+
], VerifyPasswordChangeOtpForFreelancerDto.prototype, "newPassword", 2);
|
|
7585
|
+
__decorateClass([
|
|
7586
|
+
IsNotEmpty57({ message: "OTP is required" }),
|
|
7587
|
+
IsString33(),
|
|
7588
|
+
Matches12(/^\d{4}$/, { message: "OTP must be a 4-digit number" })
|
|
7589
|
+
], VerifyPasswordChangeOtpForFreelancerDto.prototype, "otp", 2);
|
|
7590
|
+
|
|
7531
7591
|
// src/modules/bank/pattern/pattern.ts
|
|
7532
7592
|
var BANK_PATTERN = {
|
|
7533
7593
|
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
@@ -7541,9 +7601,9 @@ var BANK_PATTERN = {
|
|
|
7541
7601
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7542
7602
|
import {
|
|
7543
7603
|
IsEnum as IsEnum22,
|
|
7544
|
-
IsNotEmpty as
|
|
7604
|
+
IsNotEmpty as IsNotEmpty58,
|
|
7545
7605
|
IsOptional as IsOptional28,
|
|
7546
|
-
IsString as
|
|
7606
|
+
IsString as IsString34,
|
|
7547
7607
|
ValidateIf as ValidateIf7
|
|
7548
7608
|
} from "class-validator";
|
|
7549
7609
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -7554,45 +7614,45 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7554
7614
|
var FreelancerBankDetailsDto = class {
|
|
7555
7615
|
};
|
|
7556
7616
|
__decorateClass([
|
|
7557
|
-
|
|
7617
|
+
IsNotEmpty58({ message: "Please enter Account Holder Name." })
|
|
7558
7618
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7559
7619
|
__decorateClass([
|
|
7560
|
-
|
|
7620
|
+
IsNotEmpty58({ message: "Please enter Mobile Code." })
|
|
7561
7621
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7562
7622
|
__decorateClass([
|
|
7563
|
-
|
|
7623
|
+
IsNotEmpty58({ message: "Please enter Mobile Number." })
|
|
7564
7624
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7565
7625
|
__decorateClass([
|
|
7566
|
-
|
|
7626
|
+
IsNotEmpty58({ message: "Please enter Email." })
|
|
7567
7627
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7568
7628
|
__decorateClass([
|
|
7569
7629
|
IsOptional28()
|
|
7570
7630
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7571
7631
|
__decorateClass([
|
|
7572
|
-
|
|
7632
|
+
IsNotEmpty58({ message: "Please enter Account Number." })
|
|
7573
7633
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7574
7634
|
__decorateClass([
|
|
7575
|
-
|
|
7635
|
+
IsNotEmpty58({ message: "Please enter Bank Name." })
|
|
7576
7636
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7577
7637
|
__decorateClass([
|
|
7578
7638
|
IsOptional28(),
|
|
7579
|
-
|
|
7639
|
+
IsString34()
|
|
7580
7640
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7581
7641
|
__decorateClass([
|
|
7582
7642
|
ValidateIf7((dto) => dto.accountScope === "DOMESTIC"),
|
|
7583
|
-
|
|
7643
|
+
IsNotEmpty58({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7584
7644
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7585
7645
|
__decorateClass([
|
|
7586
7646
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7587
|
-
|
|
7647
|
+
IsNotEmpty58({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7588
7648
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7589
7649
|
__decorateClass([
|
|
7590
7650
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7591
|
-
|
|
7651
|
+
IsNotEmpty58({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7592
7652
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7593
7653
|
__decorateClass([
|
|
7594
7654
|
ValidateIf7((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7595
|
-
|
|
7655
|
+
IsNotEmpty58({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7596
7656
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7597
7657
|
__decorateClass([
|
|
7598
7658
|
IsOptional28()
|
|
@@ -7648,26 +7708,26 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7648
7708
|
|
|
7649
7709
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7650
7710
|
import {
|
|
7651
|
-
IsString as
|
|
7652
|
-
IsNotEmpty as
|
|
7711
|
+
IsString as IsString35,
|
|
7712
|
+
IsNotEmpty as IsNotEmpty59,
|
|
7653
7713
|
MaxLength as MaxLength12
|
|
7654
7714
|
} from "class-validator";
|
|
7655
7715
|
var AddGlobalSettingDto = class {
|
|
7656
7716
|
};
|
|
7657
7717
|
__decorateClass([
|
|
7658
|
-
|
|
7659
|
-
|
|
7718
|
+
IsNotEmpty59({ message: "Key is required" }),
|
|
7719
|
+
IsString35({ message: "Key must be a string" }),
|
|
7660
7720
|
MaxLength12(255, { message: "Key must not exceed 255 characters" })
|
|
7661
7721
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7662
7722
|
__decorateClass([
|
|
7663
|
-
|
|
7664
|
-
|
|
7723
|
+
IsNotEmpty59({ message: "Value is required" }),
|
|
7724
|
+
IsString35({ message: "Value must be a string" })
|
|
7665
7725
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7666
7726
|
|
|
7667
7727
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7668
7728
|
import {
|
|
7669
|
-
IsString as
|
|
7670
|
-
IsNotEmpty as
|
|
7729
|
+
IsString as IsString36,
|
|
7730
|
+
IsNotEmpty as IsNotEmpty60,
|
|
7671
7731
|
IsUUID as IsUUID18,
|
|
7672
7732
|
ValidateIf as ValidateIf8
|
|
7673
7733
|
} from "class-validator";
|
|
@@ -7675,13 +7735,13 @@ var RemoveGlobalSettingDto = class {
|
|
|
7675
7735
|
};
|
|
7676
7736
|
__decorateClass([
|
|
7677
7737
|
ValidateIf8((o) => !o.key),
|
|
7678
|
-
|
|
7738
|
+
IsNotEmpty60({ message: "Either uuid or key is required" }),
|
|
7679
7739
|
IsUUID18("4", { message: "UUID must be a valid UUID" })
|
|
7680
7740
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7681
7741
|
__decorateClass([
|
|
7682
7742
|
ValidateIf8((o) => !o.uuid),
|
|
7683
|
-
|
|
7684
|
-
|
|
7743
|
+
IsNotEmpty60({ message: "Either uuid or key is required" }),
|
|
7744
|
+
IsString36({ message: "Key must be a string" })
|
|
7685
7745
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7686
7746
|
|
|
7687
7747
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7727,7 +7787,7 @@ var EMAIL_PATTERN = {
|
|
|
7727
7787
|
};
|
|
7728
7788
|
|
|
7729
7789
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7730
|
-
import { IsOptional as IsOptional29, IsString as
|
|
7790
|
+
import { IsOptional as IsOptional29, IsString as IsString37, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
7731
7791
|
var TestNotificationDto = class {
|
|
7732
7792
|
};
|
|
7733
7793
|
__decorateClass([
|
|
@@ -7740,7 +7800,7 @@ __decorateClass([
|
|
|
7740
7800
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7741
7801
|
__decorateClass([
|
|
7742
7802
|
IsOptional29(),
|
|
7743
|
-
|
|
7803
|
+
IsString37()
|
|
7744
7804
|
], TestNotificationDto.prototype, "message", 2);
|
|
7745
7805
|
__decorateClass([
|
|
7746
7806
|
IsOptional29(),
|
|
@@ -7748,7 +7808,7 @@ __decorateClass([
|
|
|
7748
7808
|
], TestNotificationDto.prototype, "data", 2);
|
|
7749
7809
|
__decorateClass([
|
|
7750
7810
|
IsOptional29(),
|
|
7751
|
-
|
|
7811
|
+
IsString37()
|
|
7752
7812
|
], TestNotificationDto.prototype, "type", 2);
|
|
7753
7813
|
|
|
7754
7814
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7762,9 +7822,9 @@ var RATING_PATTERN = {
|
|
|
7762
7822
|
import {
|
|
7763
7823
|
IsEnum as IsEnum24,
|
|
7764
7824
|
IsInt as IsInt2,
|
|
7765
|
-
IsNotEmpty as
|
|
7825
|
+
IsNotEmpty as IsNotEmpty61,
|
|
7766
7826
|
IsOptional as IsOptional30,
|
|
7767
|
-
IsString as
|
|
7827
|
+
IsString as IsString38,
|
|
7768
7828
|
IsNumber as IsNumber9,
|
|
7769
7829
|
Min as Min4,
|
|
7770
7830
|
Max as Max4
|
|
@@ -7781,7 +7841,7 @@ __decorateClass([
|
|
|
7781
7841
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7782
7842
|
__decorateClass([
|
|
7783
7843
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7784
|
-
|
|
7844
|
+
IsNotEmpty61({ message: "Job ID is required" })
|
|
7785
7845
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7786
7846
|
__decorateClass([
|
|
7787
7847
|
IsEnum24(RatingTypeEnum, {
|
|
@@ -7790,7 +7850,7 @@ __decorateClass([
|
|
|
7790
7850
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7791
7851
|
__decorateClass([
|
|
7792
7852
|
IsOptional30(),
|
|
7793
|
-
|
|
7853
|
+
IsString38({ message: "Reviewer comment must be a string" })
|
|
7794
7854
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7795
7855
|
__decorateClass([
|
|
7796
7856
|
IsOptional30(),
|
|
@@ -7872,17 +7932,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7872
7932
|
};
|
|
7873
7933
|
|
|
7874
7934
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7875
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
7935
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty62, IsOptional as IsOptional31 } from "class-validator";
|
|
7876
7936
|
var CreateCompanyRoleDto = class {
|
|
7877
7937
|
};
|
|
7878
7938
|
__decorateClass([
|
|
7879
|
-
|
|
7939
|
+
IsNotEmpty62({ message: "Please enter company role name." })
|
|
7880
7940
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7881
7941
|
__decorateClass([
|
|
7882
|
-
|
|
7942
|
+
IsNotEmpty62({ message: "Please enter company role slug" })
|
|
7883
7943
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7884
7944
|
__decorateClass([
|
|
7885
|
-
|
|
7945
|
+
IsNotEmpty62({ message: "Please enter description" })
|
|
7886
7946
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7887
7947
|
__decorateClass([
|
|
7888
7948
|
IsArray6({ message: "Permission IDs must be an array." }),
|
|
@@ -7895,17 +7955,17 @@ __decorateClass([
|
|
|
7895
7955
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7896
7956
|
|
|
7897
7957
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7898
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as
|
|
7958
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty63, IsOptional as IsOptional32 } from "class-validator";
|
|
7899
7959
|
var UpdateCompanyRoleDto = class {
|
|
7900
7960
|
};
|
|
7901
7961
|
__decorateClass([
|
|
7902
|
-
|
|
7962
|
+
IsNotEmpty63({ message: "Please enter company name." })
|
|
7903
7963
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7904
7964
|
__decorateClass([
|
|
7905
|
-
|
|
7965
|
+
IsNotEmpty63({ message: "Please enter slug" })
|
|
7906
7966
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7907
7967
|
__decorateClass([
|
|
7908
|
-
|
|
7968
|
+
IsNotEmpty63({ message: "Please enter description" })
|
|
7909
7969
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7910
7970
|
__decorateClass([
|
|
7911
7971
|
IsArray7({ message: "Permission IDs must be an array." }),
|
|
@@ -7934,9 +7994,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7934
7994
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7935
7995
|
import {
|
|
7936
7996
|
ArrayMinSize,
|
|
7937
|
-
IsNotEmpty as
|
|
7997
|
+
IsNotEmpty as IsNotEmpty64,
|
|
7938
7998
|
IsOptional as IsOptional33,
|
|
7939
|
-
IsString as
|
|
7999
|
+
IsString as IsString41,
|
|
7940
8000
|
MaxLength as MaxLength14,
|
|
7941
8001
|
ValidateNested as ValidateNested3
|
|
7942
8002
|
} from "class-validator";
|
|
@@ -7947,20 +8007,20 @@ __decorateClass([
|
|
|
7947
8007
|
IsOptional33()
|
|
7948
8008
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7949
8009
|
__decorateClass([
|
|
7950
|
-
|
|
7951
|
-
|
|
8010
|
+
IsNotEmpty64(),
|
|
8011
|
+
IsString41()
|
|
7952
8012
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7953
8013
|
__decorateClass([
|
|
7954
|
-
|
|
7955
|
-
|
|
8014
|
+
IsNotEmpty64(),
|
|
8015
|
+
IsString41()
|
|
7956
8016
|
], ExperienceDto.prototype, "designation", 2);
|
|
7957
8017
|
__decorateClass([
|
|
7958
|
-
|
|
7959
|
-
|
|
8018
|
+
IsNotEmpty64(),
|
|
8019
|
+
IsString41()
|
|
7960
8020
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7961
8021
|
__decorateClass([
|
|
7962
8022
|
IsOptional33(),
|
|
7963
|
-
|
|
8023
|
+
IsString41(),
|
|
7964
8024
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7965
8025
|
], ExperienceDto.prototype, "description", 2);
|
|
7966
8026
|
var FreelancerExperienceDto = class {
|
|
@@ -7984,14 +8044,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7984
8044
|
};
|
|
7985
8045
|
|
|
7986
8046
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7987
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as
|
|
8047
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt5, IsNotEmpty as IsNotEmpty65 } from "class-validator";
|
|
7988
8048
|
var CreateCompanyMemberDto = class {
|
|
7989
8049
|
};
|
|
7990
8050
|
__decorateClass([
|
|
7991
|
-
|
|
8051
|
+
IsNotEmpty65({ message: "Please enter name." })
|
|
7992
8052
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7993
8053
|
__decorateClass([
|
|
7994
|
-
|
|
8054
|
+
IsNotEmpty65({ message: "Please enter email" })
|
|
7995
8055
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7996
8056
|
__decorateClass([
|
|
7997
8057
|
IsArray8({ message: "Role IDs must be an array." }),
|
|
@@ -8000,14 +8060,14 @@ __decorateClass([
|
|
|
8000
8060
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
8001
8061
|
|
|
8002
8062
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
8003
|
-
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as
|
|
8063
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray9, IsInt as IsInt6, IsNotEmpty as IsNotEmpty66 } from "class-validator";
|
|
8004
8064
|
var UpdateCompanyMemberDto = class {
|
|
8005
8065
|
};
|
|
8006
8066
|
__decorateClass([
|
|
8007
|
-
|
|
8067
|
+
IsNotEmpty66({ message: "Please enter name." })
|
|
8008
8068
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
8009
8069
|
__decorateClass([
|
|
8010
|
-
|
|
8070
|
+
IsNotEmpty66({ message: "Please enter email" })
|
|
8011
8071
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
8012
8072
|
__decorateClass([
|
|
8013
8073
|
IsArray9({ message: "Role IDs must be an array." }),
|
|
@@ -8030,7 +8090,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
8030
8090
|
};
|
|
8031
8091
|
|
|
8032
8092
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
8033
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as
|
|
8093
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString44, IsNotEmpty as IsNotEmpty67, IsOptional as IsOptional36, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
8034
8094
|
import { Type as Type6 } from "class-transformer";
|
|
8035
8095
|
var EducationDto = class {
|
|
8036
8096
|
};
|
|
@@ -8038,16 +8098,16 @@ __decorateClass([
|
|
|
8038
8098
|
IsOptional36()
|
|
8039
8099
|
], EducationDto.prototype, "uuid", 2);
|
|
8040
8100
|
__decorateClass([
|
|
8041
|
-
|
|
8042
|
-
|
|
8101
|
+
IsString44(),
|
|
8102
|
+
IsNotEmpty67({ message: "Please Enter Degree " })
|
|
8043
8103
|
], EducationDto.prototype, "degree", 2);
|
|
8044
8104
|
__decorateClass([
|
|
8045
|
-
|
|
8046
|
-
|
|
8105
|
+
IsString44(),
|
|
8106
|
+
IsNotEmpty67({ message: "Please Enter University " })
|
|
8047
8107
|
], EducationDto.prototype, "university", 2);
|
|
8048
8108
|
__decorateClass([
|
|
8049
|
-
|
|
8050
|
-
|
|
8109
|
+
IsString44(),
|
|
8110
|
+
IsNotEmpty67({ message: "Please Enter Year of Graduation " })
|
|
8051
8111
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
8052
8112
|
var FreelancerEducationDto = class {
|
|
8053
8113
|
};
|
|
@@ -8065,7 +8125,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
8065
8125
|
};
|
|
8066
8126
|
|
|
8067
8127
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
8068
|
-
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as
|
|
8128
|
+
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString45, IsNotEmpty as IsNotEmpty68, IsOptional as IsOptional37, IsDateString, MaxLength as MaxLength16, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
8069
8129
|
import { Type as Type7 } from "class-transformer";
|
|
8070
8130
|
var ProjectDto = class {
|
|
8071
8131
|
};
|
|
@@ -8073,28 +8133,28 @@ __decorateClass([
|
|
|
8073
8133
|
IsOptional37()
|
|
8074
8134
|
], ProjectDto.prototype, "uuid", 2);
|
|
8075
8135
|
__decorateClass([
|
|
8076
|
-
|
|
8077
|
-
|
|
8136
|
+
IsString45(),
|
|
8137
|
+
IsNotEmpty68({ message: "Please Enter Project Name " })
|
|
8078
8138
|
], ProjectDto.prototype, "projectName", 2);
|
|
8079
8139
|
__decorateClass([
|
|
8080
8140
|
IsDateString(),
|
|
8081
|
-
|
|
8141
|
+
IsNotEmpty68({ message: "Please Enter Start Date " })
|
|
8082
8142
|
], ProjectDto.prototype, "startDate", 2);
|
|
8083
8143
|
__decorateClass([
|
|
8084
8144
|
IsDateString(),
|
|
8085
|
-
|
|
8145
|
+
IsNotEmpty68({ message: "Please Enter End Date " })
|
|
8086
8146
|
], ProjectDto.prototype, "endDate", 2);
|
|
8087
8147
|
__decorateClass([
|
|
8088
8148
|
IsOptional37(),
|
|
8089
|
-
|
|
8149
|
+
IsString45()
|
|
8090
8150
|
], ProjectDto.prototype, "clientName", 2);
|
|
8091
8151
|
__decorateClass([
|
|
8092
8152
|
IsOptional37(),
|
|
8093
|
-
|
|
8153
|
+
IsString45()
|
|
8094
8154
|
], ProjectDto.prototype, "gitLink", 2);
|
|
8095
8155
|
__decorateClass([
|
|
8096
8156
|
IsOptional37(),
|
|
8097
|
-
|
|
8157
|
+
IsString45(),
|
|
8098
8158
|
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8099
8159
|
], ProjectDto.prototype, "description", 2);
|
|
8100
8160
|
var CaseStudyDto = class {
|
|
@@ -8103,16 +8163,16 @@ __decorateClass([
|
|
|
8103
8163
|
IsOptional37()
|
|
8104
8164
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
8105
8165
|
__decorateClass([
|
|
8106
|
-
|
|
8107
|
-
|
|
8166
|
+
IsString45(),
|
|
8167
|
+
IsNotEmpty68({ message: "Please Enter Project Name " })
|
|
8108
8168
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
8109
8169
|
__decorateClass([
|
|
8110
8170
|
IsOptional37(),
|
|
8111
|
-
|
|
8171
|
+
IsString45()
|
|
8112
8172
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
8113
8173
|
__decorateClass([
|
|
8114
8174
|
IsOptional37(),
|
|
8115
|
-
|
|
8175
|
+
IsString45(),
|
|
8116
8176
|
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8117
8177
|
], CaseStudyDto.prototype, "description", 2);
|
|
8118
8178
|
var FreelancerProjectDto = class {
|
|
@@ -8142,7 +8202,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
8142
8202
|
};
|
|
8143
8203
|
|
|
8144
8204
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
8145
|
-
import { IsArray as IsArray12, IsString as
|
|
8205
|
+
import { IsArray as IsArray12, IsString as IsString46, IsOptional as IsOptional38 } from "class-validator";
|
|
8146
8206
|
import { Type as Type8 } from "class-transformer";
|
|
8147
8207
|
var FreelancerSkillDto = class {
|
|
8148
8208
|
constructor() {
|
|
@@ -8156,25 +8216,25 @@ __decorateClass([
|
|
|
8156
8216
|
IsOptional38(),
|
|
8157
8217
|
IsArray12(),
|
|
8158
8218
|
Type8(() => String),
|
|
8159
|
-
|
|
8219
|
+
IsString46({ each: true })
|
|
8160
8220
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
8161
8221
|
__decorateClass([
|
|
8162
8222
|
IsOptional38(),
|
|
8163
8223
|
IsArray12(),
|
|
8164
8224
|
Type8(() => String),
|
|
8165
|
-
|
|
8225
|
+
IsString46({ each: true })
|
|
8166
8226
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
8167
8227
|
__decorateClass([
|
|
8168
8228
|
IsOptional38(),
|
|
8169
8229
|
IsArray12(),
|
|
8170
8230
|
Type8(() => String),
|
|
8171
|
-
|
|
8231
|
+
IsString46({ each: true })
|
|
8172
8232
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
8173
8233
|
__decorateClass([
|
|
8174
8234
|
IsOptional38(),
|
|
8175
8235
|
IsArray12(),
|
|
8176
8236
|
Type8(() => String),
|
|
8177
|
-
|
|
8237
|
+
IsString46({ each: true })
|
|
8178
8238
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
8179
8239
|
|
|
8180
8240
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -8208,7 +8268,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
8208
8268
|
|
|
8209
8269
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
8210
8270
|
import {
|
|
8211
|
-
IsString as
|
|
8271
|
+
IsString as IsString47,
|
|
8212
8272
|
IsEmail as IsEmail13,
|
|
8213
8273
|
IsBoolean as IsBoolean11,
|
|
8214
8274
|
IsOptional as IsOptional39,
|
|
@@ -8216,9 +8276,9 @@ import {
|
|
|
8216
8276
|
IsNumber as IsNumber10,
|
|
8217
8277
|
IsUrl as IsUrl3,
|
|
8218
8278
|
MaxLength as MaxLength18,
|
|
8219
|
-
MinLength as
|
|
8220
|
-
Matches as
|
|
8221
|
-
IsNotEmpty as
|
|
8279
|
+
MinLength as MinLength17,
|
|
8280
|
+
Matches as Matches13,
|
|
8281
|
+
IsNotEmpty as IsNotEmpty70,
|
|
8222
8282
|
ValidateIf as ValidateIf9,
|
|
8223
8283
|
IsInt as IsInt7
|
|
8224
8284
|
} from "class-validator";
|
|
@@ -8239,7 +8299,7 @@ var CreateFreelancerDto = class {
|
|
|
8239
8299
|
};
|
|
8240
8300
|
__decorateClass([
|
|
8241
8301
|
IsOptional39(),
|
|
8242
|
-
|
|
8302
|
+
IsString47({ message: "Full name must be a string" }),
|
|
8243
8303
|
MaxLength18(100, { message: "Full name must not exceed 100 characters" }),
|
|
8244
8304
|
Transform2(({ value }) => {
|
|
8245
8305
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8256,7 +8316,7 @@ __decorateClass([
|
|
|
8256
8316
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
8257
8317
|
__decorateClass([
|
|
8258
8318
|
IsOptional39(),
|
|
8259
|
-
|
|
8319
|
+
IsString47({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8260
8320
|
Transform2(({ value }) => {
|
|
8261
8321
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8262
8322
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8264,15 +8324,15 @@ __decorateClass([
|
|
|
8264
8324
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
8265
8325
|
__decorateClass([
|
|
8266
8326
|
IsOptional39(),
|
|
8267
|
-
|
|
8327
|
+
IsString47({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8268
8328
|
Transform2(({ value }) => {
|
|
8269
8329
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8270
8330
|
return typeof value === "string" ? value.trim() : value;
|
|
8271
8331
|
})
|
|
8272
8332
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
8273
8333
|
__decorateClass([
|
|
8274
|
-
|
|
8275
|
-
|
|
8334
|
+
IsNotEmpty70({ message: "Please enter address." }),
|
|
8335
|
+
IsString47({ message: "address must be a string" }),
|
|
8276
8336
|
Transform2(({ value }) => {
|
|
8277
8337
|
if (Array.isArray(value)) {
|
|
8278
8338
|
const val = value[0];
|
|
@@ -8283,7 +8343,7 @@ __decorateClass([
|
|
|
8283
8343
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
8284
8344
|
__decorateClass([
|
|
8285
8345
|
IsOptional39(),
|
|
8286
|
-
|
|
8346
|
+
IsString47({ message: "addressLine must be a string" }),
|
|
8287
8347
|
Transform2(({ value }) => {
|
|
8288
8348
|
if (Array.isArray(value)) {
|
|
8289
8349
|
const val = value[0];
|
|
@@ -8323,7 +8383,7 @@ __decorateClass([
|
|
|
8323
8383
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
8324
8384
|
__decorateClass([
|
|
8325
8385
|
IsOptional39(),
|
|
8326
|
-
|
|
8386
|
+
IsString47({ message: "postalCode must be a string" }),
|
|
8327
8387
|
Transform2(({ value }) => {
|
|
8328
8388
|
if (Array.isArray(value)) {
|
|
8329
8389
|
const val = value[0];
|
|
@@ -8336,7 +8396,7 @@ __decorateClass([
|
|
|
8336
8396
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
8337
8397
|
__decorateClass([
|
|
8338
8398
|
IsOptional39(),
|
|
8339
|
-
|
|
8399
|
+
IsString47({ message: "about must be a string" }),
|
|
8340
8400
|
Transform2(({ value }) => {
|
|
8341
8401
|
if (Array.isArray(value)) {
|
|
8342
8402
|
const val = value[0];
|
|
@@ -8349,7 +8409,7 @@ __decorateClass([
|
|
|
8349
8409
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
8350
8410
|
__decorateClass([
|
|
8351
8411
|
IsOptional39(),
|
|
8352
|
-
|
|
8412
|
+
IsString47({ message: "designation must be a string" }),
|
|
8353
8413
|
Transform2(({ value }) => {
|
|
8354
8414
|
if (Array.isArray(value)) {
|
|
8355
8415
|
const val = value[0];
|
|
@@ -8375,14 +8435,14 @@ __decorateClass([
|
|
|
8375
8435
|
if (Array.isArray(value)) value = value[0];
|
|
8376
8436
|
return value === null || value === "" ? void 0 : value;
|
|
8377
8437
|
}),
|
|
8378
|
-
|
|
8438
|
+
MinLength17(6, { message: "Password must be at least 6 characters." }),
|
|
8379
8439
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
8380
|
-
|
|
8440
|
+
Matches13(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8381
8441
|
message: "Password must include letters, numbers and symbols."
|
|
8382
8442
|
})
|
|
8383
8443
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
8384
8444
|
__decorateClass([
|
|
8385
|
-
|
|
8445
|
+
IsNotEmpty70({ message: "Please enter confirm password." }),
|
|
8386
8446
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
8387
8447
|
Transform2(({ value }) => {
|
|
8388
8448
|
if (Array.isArray(value)) {
|
|
@@ -8467,7 +8527,7 @@ __decorateClass([
|
|
|
8467
8527
|
__decorateClass([
|
|
8468
8528
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8469
8529
|
IsOptional39(),
|
|
8470
|
-
|
|
8530
|
+
IsString47({ message: "availabilityToJoin must be a string" }),
|
|
8471
8531
|
Transform2(({ value }) => {
|
|
8472
8532
|
if (Array.isArray(value)) {
|
|
8473
8533
|
const val = value[0];
|
|
@@ -8493,7 +8553,7 @@ __decorateClass([
|
|
|
8493
8553
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8494
8554
|
__decorateClass([
|
|
8495
8555
|
IsOptional39(),
|
|
8496
|
-
|
|
8556
|
+
IsString47({ message: "Kaggle profile link must be a string" }),
|
|
8497
8557
|
Transform2(({ value }) => {
|
|
8498
8558
|
if (Array.isArray(value)) {
|
|
8499
8559
|
const val = value[0];
|
|
@@ -8549,7 +8609,7 @@ __decorateClass([
|
|
|
8549
8609
|
|
|
8550
8610
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8551
8611
|
import {
|
|
8552
|
-
IsString as
|
|
8612
|
+
IsString as IsString48,
|
|
8553
8613
|
IsEmail as IsEmail14,
|
|
8554
8614
|
IsBoolean as IsBoolean12,
|
|
8555
8615
|
IsOptional as IsOptional40,
|
|
@@ -8557,9 +8617,9 @@ import {
|
|
|
8557
8617
|
IsNumber as IsNumber11,
|
|
8558
8618
|
IsUrl as IsUrl4,
|
|
8559
8619
|
MaxLength as MaxLength19,
|
|
8560
|
-
MinLength as
|
|
8561
|
-
Matches as
|
|
8562
|
-
IsNotEmpty as
|
|
8620
|
+
MinLength as MinLength18,
|
|
8621
|
+
Matches as Matches14,
|
|
8622
|
+
IsNotEmpty as IsNotEmpty71,
|
|
8563
8623
|
ValidateIf as ValidateIf10,
|
|
8564
8624
|
IsInt as IsInt8
|
|
8565
8625
|
} from "class-validator";
|
|
@@ -8580,7 +8640,7 @@ var UpdateFreelancerDto = class {
|
|
|
8580
8640
|
};
|
|
8581
8641
|
__decorateClass([
|
|
8582
8642
|
IsOptional40(),
|
|
8583
|
-
|
|
8643
|
+
IsString48({ message: "Full name must be a string" }),
|
|
8584
8644
|
MaxLength19(100, { message: "Full name must not exceed 100 characters" }),
|
|
8585
8645
|
Transform3(({ value }) => {
|
|
8586
8646
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8597,7 +8657,7 @@ __decorateClass([
|
|
|
8597
8657
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8598
8658
|
__decorateClass([
|
|
8599
8659
|
IsOptional40(),
|
|
8600
|
-
|
|
8660
|
+
IsString48({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8601
8661
|
Transform3(({ value }) => {
|
|
8602
8662
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8603
8663
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8605,15 +8665,15 @@ __decorateClass([
|
|
|
8605
8665
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8606
8666
|
__decorateClass([
|
|
8607
8667
|
IsOptional40(),
|
|
8608
|
-
|
|
8668
|
+
IsString48({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8609
8669
|
Transform3(({ value }) => {
|
|
8610
8670
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8611
8671
|
return typeof value === "string" ? value.trim() : value;
|
|
8612
8672
|
})
|
|
8613
8673
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8614
8674
|
__decorateClass([
|
|
8615
|
-
|
|
8616
|
-
|
|
8675
|
+
IsNotEmpty71({ message: "Please enter address." }),
|
|
8676
|
+
IsString48({ message: "address must be a string" }),
|
|
8617
8677
|
Transform3(({ value }) => {
|
|
8618
8678
|
if (Array.isArray(value)) {
|
|
8619
8679
|
const val = value[0];
|
|
@@ -8624,7 +8684,7 @@ __decorateClass([
|
|
|
8624
8684
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8625
8685
|
__decorateClass([
|
|
8626
8686
|
IsOptional40(),
|
|
8627
|
-
|
|
8687
|
+
IsString48({ message: "addressLine must be a string" }),
|
|
8628
8688
|
Transform3(({ value }) => {
|
|
8629
8689
|
if (Array.isArray(value)) {
|
|
8630
8690
|
const val = value[0];
|
|
@@ -8664,7 +8724,7 @@ __decorateClass([
|
|
|
8664
8724
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8665
8725
|
__decorateClass([
|
|
8666
8726
|
IsOptional40(),
|
|
8667
|
-
|
|
8727
|
+
IsString48({ message: "postalCode must be a string" }),
|
|
8668
8728
|
Transform3(({ value }) => {
|
|
8669
8729
|
if (Array.isArray(value)) {
|
|
8670
8730
|
const val = value[0];
|
|
@@ -8677,7 +8737,7 @@ __decorateClass([
|
|
|
8677
8737
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8678
8738
|
__decorateClass([
|
|
8679
8739
|
IsOptional40(),
|
|
8680
|
-
|
|
8740
|
+
IsString48({ message: "about must be a string" }),
|
|
8681
8741
|
Transform3(({ value }) => {
|
|
8682
8742
|
if (Array.isArray(value)) {
|
|
8683
8743
|
const val = value[0];
|
|
@@ -8690,7 +8750,7 @@ __decorateClass([
|
|
|
8690
8750
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8691
8751
|
__decorateClass([
|
|
8692
8752
|
IsOptional40(),
|
|
8693
|
-
|
|
8753
|
+
IsString48({ message: "designation must be a string" }),
|
|
8694
8754
|
Transform3(({ value }) => {
|
|
8695
8755
|
if (Array.isArray(value)) {
|
|
8696
8756
|
const val = value[0];
|
|
@@ -8716,9 +8776,9 @@ __decorateClass([
|
|
|
8716
8776
|
if (Array.isArray(value)) value = value[0];
|
|
8717
8777
|
return value === null || value === "" ? void 0 : value;
|
|
8718
8778
|
}),
|
|
8719
|
-
|
|
8779
|
+
MinLength18(6, { message: "Password must be at least 6 characters." }),
|
|
8720
8780
|
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
8721
|
-
|
|
8781
|
+
Matches14(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8722
8782
|
message: "Password must include letters, numbers and symbols."
|
|
8723
8783
|
})
|
|
8724
8784
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
@@ -8797,7 +8857,7 @@ __decorateClass([
|
|
|
8797
8857
|
__decorateClass([
|
|
8798
8858
|
ValidateIf10((o) => o.isImmediateJoiner === false),
|
|
8799
8859
|
IsOptional40(),
|
|
8800
|
-
|
|
8860
|
+
IsString48({ message: "availabilityToJoin must be a string" }),
|
|
8801
8861
|
Transform3(({ value }) => {
|
|
8802
8862
|
if (Array.isArray(value)) {
|
|
8803
8863
|
const val = value[0];
|
|
@@ -8823,7 +8883,7 @@ __decorateClass([
|
|
|
8823
8883
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8824
8884
|
__decorateClass([
|
|
8825
8885
|
IsOptional40(),
|
|
8826
|
-
|
|
8886
|
+
IsString48({ message: "Kaggle profile link must be a string" }),
|
|
8827
8887
|
Transform3(({ value }) => {
|
|
8828
8888
|
if (Array.isArray(value)) {
|
|
8829
8889
|
const val = value[0];
|
|
@@ -8878,16 +8938,16 @@ __decorateClass([
|
|
|
8878
8938
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8879
8939
|
|
|
8880
8940
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8881
|
-
import { IsNotEmpty as
|
|
8941
|
+
import { IsNotEmpty as IsNotEmpty72, IsUUID as IsUUID19 } from "class-validator";
|
|
8882
8942
|
var SendAiAssessmentLinkDto = class {
|
|
8883
8943
|
};
|
|
8884
8944
|
__decorateClass([
|
|
8885
8945
|
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8886
|
-
|
|
8946
|
+
IsNotEmpty72({ message: "Freelancer UUID is required." })
|
|
8887
8947
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8888
8948
|
|
|
8889
8949
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8890
|
-
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as
|
|
8950
|
+
import { IsEnum as IsEnum27, IsOptional as IsOptional41, IsString as IsString49 } from "class-validator";
|
|
8891
8951
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8892
8952
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8893
8953
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8904,7 +8964,7 @@ __decorateClass([
|
|
|
8904
8964
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8905
8965
|
__decorateClass([
|
|
8906
8966
|
IsOptional41(),
|
|
8907
|
-
|
|
8967
|
+
IsString49()
|
|
8908
8968
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8909
8969
|
|
|
8910
8970
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8950,13 +9010,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8950
9010
|
|
|
8951
9011
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8952
9012
|
import {
|
|
8953
|
-
IsNotEmpty as
|
|
9013
|
+
IsNotEmpty as IsNotEmpty73,
|
|
8954
9014
|
IsEmail as IsEmail16,
|
|
8955
9015
|
IsOptional as IsOptional43,
|
|
8956
|
-
IsString as
|
|
8957
|
-
MinLength as
|
|
9016
|
+
IsString as IsString50,
|
|
9017
|
+
MinLength as MinLength19,
|
|
8958
9018
|
MaxLength as MaxLength20,
|
|
8959
|
-
Matches as
|
|
9019
|
+
Matches as Matches15,
|
|
8960
9020
|
IsInt as IsInt9,
|
|
8961
9021
|
IsUrl as IsUrl5
|
|
8962
9022
|
} from "class-validator";
|
|
@@ -8964,52 +9024,52 @@ import { Type as Type9 } from "class-transformer";
|
|
|
8964
9024
|
var CreateClientDto = class {
|
|
8965
9025
|
};
|
|
8966
9026
|
__decorateClass([
|
|
8967
|
-
|
|
8968
|
-
|
|
9027
|
+
IsNotEmpty73({ message: "Please enter first name." }),
|
|
9028
|
+
IsString50()
|
|
8969
9029
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8970
9030
|
__decorateClass([
|
|
8971
|
-
|
|
8972
|
-
|
|
9031
|
+
IsNotEmpty73({ message: "Please enter last name." }),
|
|
9032
|
+
IsString50()
|
|
8973
9033
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8974
9034
|
__decorateClass([
|
|
8975
|
-
|
|
9035
|
+
IsNotEmpty73({ message: "Please enter email." }),
|
|
8976
9036
|
IsEmail16()
|
|
8977
9037
|
], CreateClientDto.prototype, "email", 2);
|
|
8978
9038
|
__decorateClass([
|
|
8979
|
-
|
|
8980
|
-
|
|
9039
|
+
IsNotEmpty73({ message: "Please enter mobile code." }),
|
|
9040
|
+
IsString50({ message: "Mobile code must be a string." })
|
|
8981
9041
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8982
9042
|
__decorateClass([
|
|
8983
|
-
|
|
8984
|
-
|
|
9043
|
+
IsNotEmpty73({ message: "Please enter phone number." }),
|
|
9044
|
+
IsString50({ message: "Phone number must be a string." })
|
|
8985
9045
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8986
9046
|
__decorateClass([
|
|
8987
|
-
|
|
8988
|
-
|
|
9047
|
+
IsNotEmpty73({ message: "Please enter password." }),
|
|
9048
|
+
MinLength19(6),
|
|
8989
9049
|
MaxLength20(32),
|
|
8990
|
-
|
|
9050
|
+
Matches15(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8991
9051
|
message: "Password must include letters, numbers and symbols."
|
|
8992
9052
|
})
|
|
8993
9053
|
], CreateClientDto.prototype, "password", 2);
|
|
8994
9054
|
__decorateClass([
|
|
8995
|
-
|
|
9055
|
+
IsNotEmpty73({ message: "Please enter confirm password." }),
|
|
8996
9056
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8997
9057
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8998
9058
|
__decorateClass([
|
|
8999
|
-
|
|
9000
|
-
|
|
9059
|
+
IsNotEmpty73({ message: "Please enter company name." }),
|
|
9060
|
+
IsString50()
|
|
9001
9061
|
], CreateClientDto.prototype, "companyName", 2);
|
|
9002
9062
|
__decorateClass([
|
|
9003
9063
|
IsOptional43(),
|
|
9004
|
-
|
|
9064
|
+
IsString50()
|
|
9005
9065
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
9006
9066
|
__decorateClass([
|
|
9007
9067
|
IsOptional43(),
|
|
9008
|
-
|
|
9068
|
+
IsString50()
|
|
9009
9069
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9010
9070
|
__decorateClass([
|
|
9011
9071
|
IsOptional43(),
|
|
9012
|
-
|
|
9072
|
+
IsString50({ message: "About company must be a string." })
|
|
9013
9073
|
], CreateClientDto.prototype, "about", 2);
|
|
9014
9074
|
__decorateClass([
|
|
9015
9075
|
IsOptional43(),
|
|
@@ -9017,15 +9077,15 @@ __decorateClass([
|
|
|
9017
9077
|
], CreateClientDto.prototype, "webSite", 2);
|
|
9018
9078
|
__decorateClass([
|
|
9019
9079
|
IsOptional43(),
|
|
9020
|
-
|
|
9080
|
+
IsString50({ message: "Company address must be a string." })
|
|
9021
9081
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
9022
9082
|
__decorateClass([
|
|
9023
9083
|
IsOptional43(),
|
|
9024
|
-
|
|
9084
|
+
IsString50({ message: "Address line must be a string." })
|
|
9025
9085
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
9026
9086
|
__decorateClass([
|
|
9027
9087
|
IsOptional43(),
|
|
9028
|
-
|
|
9088
|
+
IsString50({ message: "Postal code must be a string." })
|
|
9029
9089
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
9030
9090
|
__decorateClass([
|
|
9031
9091
|
IsOptional43(),
|
|
@@ -9056,76 +9116,76 @@ __decorateClass([
|
|
|
9056
9116
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
9057
9117
|
import { Transform as Transform5, Type as Type10 } from "class-transformer";
|
|
9058
9118
|
import {
|
|
9059
|
-
IsNotEmpty as
|
|
9119
|
+
IsNotEmpty as IsNotEmpty74,
|
|
9060
9120
|
IsEmail as IsEmail17,
|
|
9061
9121
|
IsOptional as IsOptional44,
|
|
9062
|
-
IsString as
|
|
9063
|
-
MinLength as
|
|
9122
|
+
IsString as IsString51,
|
|
9123
|
+
MinLength as MinLength20,
|
|
9064
9124
|
MaxLength as MaxLength21,
|
|
9065
|
-
Matches as
|
|
9125
|
+
Matches as Matches16
|
|
9066
9126
|
} from "class-validator";
|
|
9067
9127
|
var UpdateClientDto = class {
|
|
9068
9128
|
};
|
|
9069
9129
|
__decorateClass([
|
|
9070
|
-
|
|
9071
|
-
|
|
9130
|
+
IsNotEmpty74({ message: "Please enter first name." }),
|
|
9131
|
+
IsString51()
|
|
9072
9132
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
9073
9133
|
__decorateClass([
|
|
9074
|
-
|
|
9075
|
-
|
|
9134
|
+
IsNotEmpty74({ message: "Please enter last name." }),
|
|
9135
|
+
IsString51()
|
|
9076
9136
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
9077
9137
|
__decorateClass([
|
|
9078
|
-
|
|
9138
|
+
IsNotEmpty74({ message: "Please enter email." }),
|
|
9079
9139
|
IsEmail17()
|
|
9080
9140
|
], UpdateClientDto.prototype, "email", 2);
|
|
9081
9141
|
__decorateClass([
|
|
9082
9142
|
IsOptional44(),
|
|
9083
|
-
|
|
9143
|
+
IsString51({ message: "Mobile code must be a string." })
|
|
9084
9144
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
9085
9145
|
__decorateClass([
|
|
9086
9146
|
IsOptional44(),
|
|
9087
|
-
|
|
9147
|
+
IsString51({ message: "Phone number must be a string." })
|
|
9088
9148
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
9089
9149
|
__decorateClass([
|
|
9090
9150
|
IsOptional44(),
|
|
9091
9151
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
9092
|
-
|
|
9152
|
+
MinLength20(6, { message: "Password must be at least 6 characters." }),
|
|
9093
9153
|
MaxLength21(32, { message: "Password must not exceed 32 characters." }),
|
|
9094
|
-
|
|
9154
|
+
Matches16(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
9095
9155
|
message: "Password must include letters, numbers and symbols."
|
|
9096
9156
|
})
|
|
9097
9157
|
], UpdateClientDto.prototype, "password", 2);
|
|
9098
9158
|
__decorateClass([
|
|
9099
|
-
|
|
9100
|
-
|
|
9159
|
+
IsNotEmpty74({ message: "Please enter company name." }),
|
|
9160
|
+
IsString51()
|
|
9101
9161
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
9102
9162
|
__decorateClass([
|
|
9103
9163
|
IsOptional44(),
|
|
9104
|
-
|
|
9164
|
+
IsString51()
|
|
9105
9165
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
9106
9166
|
__decorateClass([
|
|
9107
9167
|
IsOptional44(),
|
|
9108
|
-
|
|
9168
|
+
IsString51()
|
|
9109
9169
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9110
9170
|
__decorateClass([
|
|
9111
9171
|
IsOptional44(),
|
|
9112
|
-
|
|
9172
|
+
IsString51({ message: "About company must be a string." })
|
|
9113
9173
|
], UpdateClientDto.prototype, "about", 2);
|
|
9114
9174
|
__decorateClass([
|
|
9115
9175
|
IsOptional44(),
|
|
9116
|
-
|
|
9176
|
+
IsString51({ message: "Website must be a string." })
|
|
9117
9177
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
9118
9178
|
__decorateClass([
|
|
9119
9179
|
IsOptional44(),
|
|
9120
|
-
|
|
9180
|
+
IsString51({ message: "Company address must be a string." })
|
|
9121
9181
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
9122
9182
|
__decorateClass([
|
|
9123
9183
|
IsOptional44(),
|
|
9124
|
-
|
|
9184
|
+
IsString51({ message: "Address line must be a string." })
|
|
9125
9185
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
9126
9186
|
__decorateClass([
|
|
9127
9187
|
IsOptional44(),
|
|
9128
|
-
|
|
9188
|
+
IsString51({ message: "Postal code must be a string." })
|
|
9129
9189
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
9130
9190
|
__decorateClass([
|
|
9131
9191
|
IsOptional44(),
|
|
@@ -9165,20 +9225,20 @@ __decorateClass([
|
|
|
9165
9225
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
9166
9226
|
|
|
9167
9227
|
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
9168
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
9228
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty75 } from "class-validator";
|
|
9169
9229
|
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
9170
9230
|
};
|
|
9171
9231
|
__decorateClass([
|
|
9172
|
-
|
|
9232
|
+
IsNotEmpty75({ message: "Job posting restriction status is required." }),
|
|
9173
9233
|
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
9174
9234
|
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
9175
9235
|
|
|
9176
9236
|
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
9177
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
9237
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty76 } from "class-validator";
|
|
9178
9238
|
var SkipServiceAgreementFlowDto = class {
|
|
9179
9239
|
};
|
|
9180
9240
|
__decorateClass([
|
|
9181
|
-
|
|
9241
|
+
IsNotEmpty76({ message: "Skip service agreement flag is required." }),
|
|
9182
9242
|
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
9183
9243
|
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
9184
9244
|
|
|
@@ -9189,7 +9249,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
9189
9249
|
};
|
|
9190
9250
|
|
|
9191
9251
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
9192
|
-
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as
|
|
9252
|
+
import { IsOptional as IsOptional46, IsEnum as IsEnum33, IsString as IsString52, IsNotEmpty as IsNotEmpty77, IsIn as IsIn3 } from "class-validator";
|
|
9193
9253
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
9194
9254
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
9195
9255
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -9201,14 +9261,14 @@ var FreelancerDeclarationDto = class {
|
|
|
9201
9261
|
};
|
|
9202
9262
|
__decorateClass([
|
|
9203
9263
|
IsOptional46(),
|
|
9204
|
-
|
|
9264
|
+
IsString52({ message: "UUID must be a string" })
|
|
9205
9265
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
9206
9266
|
__decorateClass([
|
|
9207
9267
|
IsEnum33(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
9208
9268
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
9209
9269
|
__decorateClass([
|
|
9210
|
-
|
|
9211
|
-
|
|
9270
|
+
IsNotEmpty77({ message: "Please accept the declaration " }),
|
|
9271
|
+
IsString52(),
|
|
9212
9272
|
IsIn3([
|
|
9213
9273
|
"true"
|
|
9214
9274
|
])
|
|
@@ -9224,12 +9284,12 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
9224
9284
|
};
|
|
9225
9285
|
|
|
9226
9286
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
9227
|
-
import { IsNotEmpty as
|
|
9287
|
+
import { IsNotEmpty as IsNotEmpty78, IsNumber as IsNumber12, IsOptional as IsOptional47 } from "class-validator";
|
|
9228
9288
|
import { Type as Type11 } from "class-transformer";
|
|
9229
9289
|
var MarkCandidateStatusDto = class {
|
|
9230
9290
|
};
|
|
9231
9291
|
__decorateClass([
|
|
9232
|
-
|
|
9292
|
+
IsNotEmpty78({ message: "Candidate ID is required." }),
|
|
9233
9293
|
IsNumber12({}, { message: "Candidate ID must be a number." }),
|
|
9234
9294
|
Type11(() => Number)
|
|
9235
9295
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
@@ -9267,11 +9327,11 @@ var CMS_PATTERNS = {
|
|
|
9267
9327
|
};
|
|
9268
9328
|
|
|
9269
9329
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
9270
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
9330
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty79, IsOptional as IsOptional49 } from "class-validator";
|
|
9271
9331
|
var CreateCmsDto = class {
|
|
9272
9332
|
};
|
|
9273
9333
|
__decorateClass([
|
|
9274
|
-
|
|
9334
|
+
IsNotEmpty79({ message: "Please enter name." })
|
|
9275
9335
|
], CreateCmsDto.prototype, "title", 2);
|
|
9276
9336
|
__decorateClass([
|
|
9277
9337
|
IsOptional49()
|
|
@@ -9282,23 +9342,23 @@ __decorateClass([
|
|
|
9282
9342
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
9283
9343
|
|
|
9284
9344
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
9285
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
9345
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty80 } from "class-validator";
|
|
9286
9346
|
var UpdateCmsStatusDto = class {
|
|
9287
9347
|
};
|
|
9288
9348
|
__decorateClass([
|
|
9289
|
-
|
|
9349
|
+
IsNotEmpty80({ message: "Please specify cms status." }),
|
|
9290
9350
|
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
9291
9351
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
9292
9352
|
|
|
9293
9353
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
9294
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as
|
|
9354
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty81, IsOptional as IsOptional50 } from "class-validator";
|
|
9295
9355
|
var UpdateCmsDto = class {
|
|
9296
9356
|
};
|
|
9297
9357
|
__decorateClass([
|
|
9298
9358
|
IsOptional50()
|
|
9299
9359
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
9300
9360
|
__decorateClass([
|
|
9301
|
-
|
|
9361
|
+
IsNotEmpty81({ message: "Please enter name." })
|
|
9302
9362
|
], UpdateCmsDto.prototype, "title", 2);
|
|
9303
9363
|
__decorateClass([
|
|
9304
9364
|
IsOptional50()
|
|
@@ -9342,13 +9402,13 @@ var ADMIN_JOB_PATTERN = {
|
|
|
9342
9402
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
9343
9403
|
import { Type as Type13 } from "class-transformer";
|
|
9344
9404
|
import {
|
|
9345
|
-
IsString as
|
|
9405
|
+
IsString as IsString53,
|
|
9346
9406
|
IsEnum as IsEnum34,
|
|
9347
9407
|
IsInt as IsInt10,
|
|
9348
9408
|
IsOptional as IsOptional51,
|
|
9349
9409
|
IsArray as IsArray18,
|
|
9350
9410
|
IsDateString as IsDateString3,
|
|
9351
|
-
IsNotEmpty as
|
|
9411
|
+
IsNotEmpty as IsNotEmpty82,
|
|
9352
9412
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9353
9413
|
Min as Min7,
|
|
9354
9414
|
IsNumber as IsNumber14
|
|
@@ -9368,17 +9428,17 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
9368
9428
|
var AdminCreateJobInformationDto = class {
|
|
9369
9429
|
};
|
|
9370
9430
|
__decorateClass([
|
|
9371
|
-
|
|
9372
|
-
|
|
9431
|
+
IsString53({ message: "Job role must be a string." }),
|
|
9432
|
+
IsNotEmpty82({ message: "Job role is required." })
|
|
9373
9433
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
9374
9434
|
__decorateClass([
|
|
9375
9435
|
IsOptional51(),
|
|
9376
|
-
|
|
9436
|
+
IsString53({ message: "Note must be a string." })
|
|
9377
9437
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
9378
9438
|
__decorateClass([
|
|
9379
9439
|
IsArray18({ message: "Skills must be an array of skill names." }),
|
|
9380
9440
|
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
9381
|
-
|
|
9441
|
+
IsString53({ each: true, message: "Each skill must be a valid string." })
|
|
9382
9442
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
9383
9443
|
__decorateClass([
|
|
9384
9444
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
@@ -9399,16 +9459,16 @@ __decorateClass([
|
|
|
9399
9459
|
})
|
|
9400
9460
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9401
9461
|
__decorateClass([
|
|
9402
|
-
|
|
9403
|
-
|
|
9462
|
+
IsString53({ message: "Onboarding Days must be a string." }),
|
|
9463
|
+
IsNotEmpty82({ message: "Onboarding Days is required." })
|
|
9404
9464
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9405
9465
|
__decorateClass([
|
|
9406
|
-
|
|
9407
|
-
|
|
9466
|
+
IsString53({ message: "Communication skills must be a string." }),
|
|
9467
|
+
IsNotEmpty82({ message: "Communication skills are required." })
|
|
9408
9468
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9409
9469
|
__decorateClass([
|
|
9410
|
-
|
|
9411
|
-
|
|
9470
|
+
IsString53({ message: "Currency must be a string." }),
|
|
9471
|
+
IsNotEmpty82({ message: "Currency is required." })
|
|
9412
9472
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
9413
9473
|
__decorateClass([
|
|
9414
9474
|
Type13(() => Number),
|
|
@@ -9432,7 +9492,7 @@ __decorateClass([
|
|
|
9432
9492
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9433
9493
|
__decorateClass([
|
|
9434
9494
|
IsOptional51(),
|
|
9435
|
-
|
|
9495
|
+
IsString53({ message: "Additional comment must be a string." })
|
|
9436
9496
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
9437
9497
|
__decorateClass([
|
|
9438
9498
|
IsOptional51(),
|
|
@@ -9453,13 +9513,13 @@ __decorateClass([
|
|
|
9453
9513
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
9454
9514
|
import { Type as Type14 } from "class-transformer";
|
|
9455
9515
|
import {
|
|
9456
|
-
IsString as
|
|
9516
|
+
IsString as IsString54,
|
|
9457
9517
|
IsEnum as IsEnum35,
|
|
9458
9518
|
IsInt as IsInt11,
|
|
9459
9519
|
IsOptional as IsOptional52,
|
|
9460
9520
|
IsArray as IsArray19,
|
|
9461
9521
|
IsDateString as IsDateString4,
|
|
9462
|
-
IsNotEmpty as
|
|
9522
|
+
IsNotEmpty as IsNotEmpty83,
|
|
9463
9523
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9464
9524
|
Min as Min8,
|
|
9465
9525
|
IsNumber as IsNumber15
|
|
@@ -9479,17 +9539,17 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
9479
9539
|
var AdminUpdateJobInformationDto = class {
|
|
9480
9540
|
};
|
|
9481
9541
|
__decorateClass([
|
|
9482
|
-
|
|
9483
|
-
|
|
9542
|
+
IsString54({ message: "Job role must be a string." }),
|
|
9543
|
+
IsNotEmpty83({ message: "Job role is required." })
|
|
9484
9544
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9485
9545
|
__decorateClass([
|
|
9486
9546
|
IsOptional52(),
|
|
9487
|
-
|
|
9547
|
+
IsString54({ message: "Note must be a string." })
|
|
9488
9548
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
9489
9549
|
__decorateClass([
|
|
9490
9550
|
IsArray19({ message: "Skills must be an array of skill names." }),
|
|
9491
9551
|
ArrayNotEmpty11({ message: "At least one skill must be provided." }),
|
|
9492
|
-
|
|
9552
|
+
IsString54({ each: true, message: "Each skill must be a valid string." })
|
|
9493
9553
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
9494
9554
|
__decorateClass([
|
|
9495
9555
|
IsInt11({ message: "Openings must be a valid integer." }),
|
|
@@ -9510,16 +9570,16 @@ __decorateClass([
|
|
|
9510
9570
|
})
|
|
9511
9571
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9512
9572
|
__decorateClass([
|
|
9513
|
-
|
|
9514
|
-
|
|
9573
|
+
IsString54({ message: "Onboarding Days must be a string." }),
|
|
9574
|
+
IsNotEmpty83({ message: "Onboarding Days is required." })
|
|
9515
9575
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9516
9576
|
__decorateClass([
|
|
9517
|
-
|
|
9518
|
-
|
|
9577
|
+
IsString54({ message: "Communication skills must be a string." }),
|
|
9578
|
+
IsNotEmpty83({ message: "Communication skills are required." })
|
|
9519
9579
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9520
9580
|
__decorateClass([
|
|
9521
|
-
|
|
9522
|
-
|
|
9581
|
+
IsString54({ message: "Currency must be a string." }),
|
|
9582
|
+
IsNotEmpty83({ message: "Currency is required." })
|
|
9523
9583
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9524
9584
|
__decorateClass([
|
|
9525
9585
|
Type14(() => Number),
|
|
@@ -9543,7 +9603,7 @@ __decorateClass([
|
|
|
9543
9603
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9544
9604
|
__decorateClass([
|
|
9545
9605
|
IsOptional52(),
|
|
9546
|
-
|
|
9606
|
+
IsString54({ message: "Additional comment must be a string." })
|
|
9547
9607
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9548
9608
|
__decorateClass([
|
|
9549
9609
|
IsOptional52(),
|
|
@@ -9563,8 +9623,8 @@ __decorateClass([
|
|
|
9563
9623
|
|
|
9564
9624
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9565
9625
|
import {
|
|
9566
|
-
IsString as
|
|
9567
|
-
IsNotEmpty as
|
|
9626
|
+
IsString as IsString55,
|
|
9627
|
+
IsNotEmpty as IsNotEmpty84,
|
|
9568
9628
|
IsArray as IsArray20,
|
|
9569
9629
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9570
9630
|
IsNumber as IsNumber16,
|
|
@@ -9602,11 +9662,11 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9602
9662
|
AdminStepCompletedEnumV22["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
9603
9663
|
return AdminStepCompletedEnumV22;
|
|
9604
9664
|
})(AdminStepCompletedEnumV2 || {});
|
|
9605
|
-
var
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
return
|
|
9609
|
-
})(
|
|
9665
|
+
var BillingCycleEnumV23 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
9666
|
+
BillingCycleEnumV24["WEEKLY"] = "WEEKLY";
|
|
9667
|
+
BillingCycleEnumV24["DELIVERABLE"] = "DELIVERABLE";
|
|
9668
|
+
return BillingCycleEnumV24;
|
|
9669
|
+
})(BillingCycleEnumV23 || {});
|
|
9610
9670
|
var JobLocationAdminDto = class {
|
|
9611
9671
|
};
|
|
9612
9672
|
__decorateClass([
|
|
@@ -9634,19 +9694,19 @@ __decorateClass([
|
|
|
9634
9694
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9635
9695
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9636
9696
|
__decorateClass([
|
|
9637
|
-
|
|
9638
|
-
|
|
9697
|
+
IsNotEmpty84({ message: "Please enter job role" }),
|
|
9698
|
+
IsString55({ message: "Job role must be a string" })
|
|
9639
9699
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9640
9700
|
__decorateClass([
|
|
9641
9701
|
IsOptional53(),
|
|
9642
|
-
|
|
9702
|
+
IsString55({ message: "Note must be a string" })
|
|
9643
9703
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9644
9704
|
__decorateClass([
|
|
9645
9705
|
ValidateIf11((o) => !o.isDraft),
|
|
9646
9706
|
IsOptional53(),
|
|
9647
9707
|
IsArray20({ message: "Skills must be an array" }),
|
|
9648
9708
|
ArrayNotEmpty12({ message: "Please select at least one skill" }),
|
|
9649
|
-
|
|
9709
|
+
IsString55({ each: true, message: "Each skill must be a string" }),
|
|
9650
9710
|
Type15(() => String)
|
|
9651
9711
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9652
9712
|
__decorateClass([
|
|
@@ -9673,8 +9733,8 @@ __decorateClass([
|
|
|
9673
9733
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9674
9734
|
__decorateClass([
|
|
9675
9735
|
IsOptional53(),
|
|
9676
|
-
IsEnum36(
|
|
9677
|
-
message: `Billing cycle must be one of: ${Object.values(
|
|
9736
|
+
IsEnum36(BillingCycleEnumV23, {
|
|
9737
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV23).join(", ")}`
|
|
9678
9738
|
})
|
|
9679
9739
|
], AdminJobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
9680
9740
|
__decorateClass([
|
|
@@ -9695,7 +9755,7 @@ __decorateClass([
|
|
|
9695
9755
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9696
9756
|
__decorateClass([
|
|
9697
9757
|
IsOptional53(),
|
|
9698
|
-
|
|
9758
|
+
IsString55({ message: "Academic qualification must be a string" })
|
|
9699
9759
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9700
9760
|
__decorateClass([
|
|
9701
9761
|
ValidateIf11((o) => !o.isDraft),
|
|
@@ -9707,21 +9767,21 @@ __decorateClass([
|
|
|
9707
9767
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9708
9768
|
__decorateClass([
|
|
9709
9769
|
ValidateIf11((o) => !o.isDraft),
|
|
9710
|
-
|
|
9711
|
-
|
|
9770
|
+
IsNotEmpty84({ message: "Please enter the years of experience" }),
|
|
9771
|
+
IsString55({ message: "Years of experience must be a string" })
|
|
9712
9772
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9713
9773
|
__decorateClass([
|
|
9714
9774
|
ValidateIf11((o) => !o.isDraft),
|
|
9715
|
-
|
|
9716
|
-
|
|
9775
|
+
IsNotEmpty84({ message: "Please enter the years of experience upto" }),
|
|
9776
|
+
IsString55({ message: "Years of experience must be a string" })
|
|
9717
9777
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9718
9778
|
__decorateClass([
|
|
9719
9779
|
IsOptional53(),
|
|
9720
|
-
|
|
9780
|
+
IsString55({ message: "Business industry must be a string" })
|
|
9721
9781
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9722
9782
|
__decorateClass([
|
|
9723
9783
|
IsOptional53(),
|
|
9724
|
-
|
|
9784
|
+
IsString55({ message: "Project name must be a string" })
|
|
9725
9785
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9726
9786
|
__decorateClass([
|
|
9727
9787
|
IsOptional53()
|
|
@@ -9768,13 +9828,13 @@ __decorateClass([
|
|
|
9768
9828
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9769
9829
|
__decorateClass([
|
|
9770
9830
|
IsOptional53(),
|
|
9771
|
-
|
|
9831
|
+
IsString55({ message: "Additional comment must be a string" }),
|
|
9772
9832
|
MaxLength22(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9773
9833
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9774
9834
|
__decorateClass([
|
|
9775
9835
|
ValidateIf11((o) => !o.isDraft),
|
|
9776
9836
|
IsArray20({ message: "Good to have skills must be an array" }),
|
|
9777
|
-
|
|
9837
|
+
IsString55({ each: true, message: "Each skill must be a string" }),
|
|
9778
9838
|
IsOptional53(),
|
|
9779
9839
|
Type15(() => String)
|
|
9780
9840
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -9797,7 +9857,7 @@ var LEAD_PATTERN = {
|
|
|
9797
9857
|
};
|
|
9798
9858
|
|
|
9799
9859
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9800
|
-
import { IsString as
|
|
9860
|
+
import { IsString as IsString56, IsEmail as IsEmail19, IsOptional as IsOptional54, IsEnum as IsEnum37 } from "class-validator";
|
|
9801
9861
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9802
9862
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9803
9863
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9806,20 +9866,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9806
9866
|
var CreateLeadDto = class {
|
|
9807
9867
|
};
|
|
9808
9868
|
__decorateClass([
|
|
9809
|
-
|
|
9869
|
+
IsString56({ message: "Name must be a string" })
|
|
9810
9870
|
], CreateLeadDto.prototype, "name", 2);
|
|
9811
9871
|
__decorateClass([
|
|
9812
9872
|
IsEmail19({}, { message: "Invalid email address" })
|
|
9813
9873
|
], CreateLeadDto.prototype, "email", 2);
|
|
9814
9874
|
__decorateClass([
|
|
9815
|
-
|
|
9875
|
+
IsString56({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9816
9876
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9817
9877
|
__decorateClass([
|
|
9818
|
-
|
|
9878
|
+
IsString56({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9819
9879
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9820
9880
|
__decorateClass([
|
|
9821
9881
|
IsOptional54(),
|
|
9822
|
-
|
|
9882
|
+
IsString56({ message: "Description must be a string" })
|
|
9823
9883
|
], CreateLeadDto.prototype, "description", 2);
|
|
9824
9884
|
__decorateClass([
|
|
9825
9885
|
IsEnum37(CategoryEmumDto, {
|
|
@@ -9844,16 +9904,16 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9844
9904
|
};
|
|
9845
9905
|
|
|
9846
9906
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9847
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as
|
|
9907
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty85, IsOptional as IsOptional55, IsString as IsString57 } from "class-validator";
|
|
9848
9908
|
var CreateAdminRoleDto = class {
|
|
9849
9909
|
};
|
|
9850
9910
|
__decorateClass([
|
|
9851
|
-
|
|
9852
|
-
|
|
9911
|
+
IsNotEmpty85({ message: "Please enter admin role name." }),
|
|
9912
|
+
IsString57({ message: "Role name must be a string." })
|
|
9853
9913
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9854
9914
|
__decorateClass([
|
|
9855
9915
|
IsOptional55(),
|
|
9856
|
-
|
|
9916
|
+
IsString57({ message: "Role description must be a string." })
|
|
9857
9917
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9858
9918
|
__decorateClass([
|
|
9859
9919
|
IsOptional55(),
|
|
@@ -9861,16 +9921,16 @@ __decorateClass([
|
|
|
9861
9921
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9862
9922
|
|
|
9863
9923
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9864
|
-
import { IsBoolean as IsBoolean19, IsNotEmpty as
|
|
9924
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty86, IsOptional as IsOptional56, IsString as IsString58 } from "class-validator";
|
|
9865
9925
|
var UpdateAdminRoleDto = class {
|
|
9866
9926
|
};
|
|
9867
9927
|
__decorateClass([
|
|
9868
|
-
|
|
9869
|
-
|
|
9928
|
+
IsNotEmpty86({ message: "Please enter admin role name." }),
|
|
9929
|
+
IsString58({ message: "Role name must be a string." })
|
|
9870
9930
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9871
9931
|
__decorateClass([
|
|
9872
9932
|
IsOptional56(),
|
|
9873
|
-
|
|
9933
|
+
IsString58({ message: "Role description must be a string." })
|
|
9874
9934
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9875
9935
|
__decorateClass([
|
|
9876
9936
|
IsOptional56(),
|
|
@@ -9878,24 +9938,24 @@ __decorateClass([
|
|
|
9878
9938
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9879
9939
|
|
|
9880
9940
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9881
|
-
import { IsNotEmpty as
|
|
9941
|
+
import { IsNotEmpty as IsNotEmpty87, IsString as IsString59 } from "class-validator";
|
|
9882
9942
|
var AttachPermissionsToRoleDto = class {
|
|
9883
9943
|
};
|
|
9884
9944
|
__decorateClass([
|
|
9885
|
-
|
|
9886
|
-
|
|
9945
|
+
IsNotEmpty87({ message: "Please enter admin role ID." }),
|
|
9946
|
+
IsString59({ message: "Role ID must be a string." })
|
|
9887
9947
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9888
9948
|
__decorateClass([
|
|
9889
|
-
|
|
9890
|
-
|
|
9949
|
+
IsNotEmpty87({ message: "Please enter permission IDs." }),
|
|
9950
|
+
IsString59({ message: "Permission IDs must be a comma-separated string." })
|
|
9891
9951
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9892
9952
|
|
|
9893
9953
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9894
|
-
import { IsBoolean as IsBoolean20, IsNotEmpty as
|
|
9954
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty88 } from "class-validator";
|
|
9895
9955
|
var UpdateAdminRoleStatusDto = class {
|
|
9896
9956
|
};
|
|
9897
9957
|
__decorateClass([
|
|
9898
|
-
|
|
9958
|
+
IsNotEmpty88({ message: "Please specify admin role status." }),
|
|
9899
9959
|
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9900
9960
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9901
9961
|
|
|
@@ -9978,8 +10038,8 @@ var INTERVIEW_PATTERN = {
|
|
|
9978
10038
|
|
|
9979
10039
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9980
10040
|
import {
|
|
9981
|
-
IsString as
|
|
9982
|
-
IsNotEmpty as
|
|
10041
|
+
IsString as IsString60,
|
|
10042
|
+
IsNotEmpty as IsNotEmpty89,
|
|
9983
10043
|
IsArray as IsArray21,
|
|
9984
10044
|
ArrayNotEmpty as ArrayNotEmpty13,
|
|
9985
10045
|
IsEmail as IsEmail20,
|
|
@@ -10009,8 +10069,8 @@ __decorateClass([
|
|
|
10009
10069
|
var NewCandidateDto = class {
|
|
10010
10070
|
};
|
|
10011
10071
|
__decorateClass([
|
|
10012
|
-
|
|
10013
|
-
|
|
10072
|
+
IsNotEmpty89({ message: "Please enter the candidate name" }),
|
|
10073
|
+
IsString60({ message: "Name must be a string" })
|
|
10014
10074
|
], NewCandidateDto.prototype, "name", 2);
|
|
10015
10075
|
__decorateClass([
|
|
10016
10076
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
@@ -10048,8 +10108,8 @@ __decorateClass([
|
|
|
10048
10108
|
|
|
10049
10109
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
10050
10110
|
import {
|
|
10051
|
-
IsString as
|
|
10052
|
-
IsNotEmpty as
|
|
10111
|
+
IsString as IsString61,
|
|
10112
|
+
IsNotEmpty as IsNotEmpty90,
|
|
10053
10113
|
IsArray as IsArray22,
|
|
10054
10114
|
IsUUID as IsUUID21,
|
|
10055
10115
|
IsEnum as IsEnum39,
|
|
@@ -10069,35 +10129,35 @@ var ExistingCandidateDto2 = class {
|
|
|
10069
10129
|
};
|
|
10070
10130
|
__decorateClass([
|
|
10071
10131
|
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
10072
|
-
|
|
10132
|
+
IsNotEmpty90({ message: "Candidate ID is required." })
|
|
10073
10133
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
10074
10134
|
__decorateClass([
|
|
10075
10135
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10076
10136
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
10077
10137
|
}),
|
|
10078
|
-
|
|
10138
|
+
IsNotEmpty90({ message: "Candidate type is required." })
|
|
10079
10139
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
10080
10140
|
var NewCandidateDto2 = class {
|
|
10081
10141
|
};
|
|
10082
10142
|
__decorateClass([
|
|
10083
|
-
|
|
10084
|
-
|
|
10143
|
+
IsString61({ message: "Name must be a string." }),
|
|
10144
|
+
IsNotEmpty90({ message: "Candidate name is required." })
|
|
10085
10145
|
], NewCandidateDto2.prototype, "name", 2);
|
|
10086
10146
|
__decorateClass([
|
|
10087
10147
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
10088
|
-
|
|
10148
|
+
IsNotEmpty90({ message: "Email is required." })
|
|
10089
10149
|
], NewCandidateDto2.prototype, "email", 2);
|
|
10090
10150
|
__decorateClass([
|
|
10091
10151
|
IsEnum39(InterviewInviteCandidateType, {
|
|
10092
10152
|
message: "Type must be NEW for new candidates."
|
|
10093
10153
|
}),
|
|
10094
|
-
|
|
10154
|
+
IsNotEmpty90({ message: "Candidate type is required." })
|
|
10095
10155
|
], NewCandidateDto2.prototype, "type", 2);
|
|
10096
10156
|
var SendInterviewInviteDto = class {
|
|
10097
10157
|
};
|
|
10098
10158
|
__decorateClass([
|
|
10099
10159
|
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
10100
|
-
|
|
10160
|
+
IsNotEmpty90({ message: "Job ID is required." })
|
|
10101
10161
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
10102
10162
|
__decorateClass([
|
|
10103
10163
|
IsArray22({ message: "Existing candidates must be an array." }),
|
|
@@ -10114,8 +10174,8 @@ __decorateClass([
|
|
|
10114
10174
|
|
|
10115
10175
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
10116
10176
|
import {
|
|
10117
|
-
IsString as
|
|
10118
|
-
IsNotEmpty as
|
|
10177
|
+
IsString as IsString62,
|
|
10178
|
+
IsNotEmpty as IsNotEmpty91,
|
|
10119
10179
|
IsEmail as IsEmail22,
|
|
10120
10180
|
IsNumber as IsNumber17
|
|
10121
10181
|
} from "class-validator";
|
|
@@ -10123,11 +10183,11 @@ var CreateF2FInterviewDto = class {
|
|
|
10123
10183
|
};
|
|
10124
10184
|
__decorateClass([
|
|
10125
10185
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
10126
|
-
|
|
10186
|
+
IsNotEmpty91({ message: "Invitee email is required." })
|
|
10127
10187
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
10128
10188
|
__decorateClass([
|
|
10129
|
-
|
|
10130
|
-
|
|
10189
|
+
IsString62({ message: "Invitee name must be a string." }),
|
|
10190
|
+
IsNotEmpty91({ message: "Invitee name is required." })
|
|
10131
10191
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
10132
10192
|
__decorateClass([
|
|
10133
10193
|
IsNumber17({}, { message: "Interview ID must be a number." })
|
|
@@ -10138,8 +10198,8 @@ __decorateClass([
|
|
|
10138
10198
|
|
|
10139
10199
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
10140
10200
|
import {
|
|
10141
|
-
IsString as
|
|
10142
|
-
IsNotEmpty as
|
|
10201
|
+
IsString as IsString63,
|
|
10202
|
+
IsNotEmpty as IsNotEmpty92,
|
|
10143
10203
|
IsEmail as IsEmail23,
|
|
10144
10204
|
IsNumber as IsNumber18
|
|
10145
10205
|
} from "class-validator";
|
|
@@ -10147,11 +10207,11 @@ var CreateF2FInterviewDirectDto = class {
|
|
|
10147
10207
|
};
|
|
10148
10208
|
__decorateClass([
|
|
10149
10209
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
10150
|
-
|
|
10210
|
+
IsNotEmpty92({ message: "Invitee email is required." })
|
|
10151
10211
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
10152
10212
|
__decorateClass([
|
|
10153
|
-
|
|
10154
|
-
|
|
10213
|
+
IsString63({ message: "Invitee name must be a string." }),
|
|
10214
|
+
IsNotEmpty92({ message: "Invitee name is required." })
|
|
10155
10215
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
10156
10216
|
__decorateClass([
|
|
10157
10217
|
IsNumber18({}, { message: "Job ID must be a number." })
|
|
@@ -10162,8 +10222,8 @@ __decorateClass([
|
|
|
10162
10222
|
|
|
10163
10223
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
10164
10224
|
import {
|
|
10165
|
-
IsString as
|
|
10166
|
-
IsNotEmpty as
|
|
10225
|
+
IsString as IsString64,
|
|
10226
|
+
IsNotEmpty as IsNotEmpty93,
|
|
10167
10227
|
IsOptional as IsOptional59,
|
|
10168
10228
|
IsUUID as IsUUID22
|
|
10169
10229
|
} from "class-validator";
|
|
@@ -10171,60 +10231,60 @@ var CreateF2FInterviewRescheduleRequestDto = class {
|
|
|
10171
10231
|
};
|
|
10172
10232
|
__decorateClass([
|
|
10173
10233
|
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
10174
|
-
|
|
10234
|
+
IsNotEmpty93({ message: "F2F Interview ID is required." })
|
|
10175
10235
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
10176
10236
|
__decorateClass([
|
|
10177
|
-
|
|
10237
|
+
IsNotEmpty93({ message: "Rescheduled date is required." })
|
|
10178
10238
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
10179
10239
|
__decorateClass([
|
|
10180
|
-
|
|
10181
|
-
|
|
10240
|
+
IsString64({ message: "Rescheduled slot must be a string." }),
|
|
10241
|
+
IsNotEmpty93({ message: "Rescheduled slot is required." })
|
|
10182
10242
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
10183
10243
|
__decorateClass([
|
|
10184
10244
|
IsOptional59(),
|
|
10185
|
-
|
|
10245
|
+
IsString64({ message: "Freelancer request reason must be a string." })
|
|
10186
10246
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10187
10247
|
|
|
10188
10248
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
10189
10249
|
import {
|
|
10190
|
-
IsString as
|
|
10191
|
-
IsNotEmpty as
|
|
10250
|
+
IsString as IsString65,
|
|
10251
|
+
IsNotEmpty as IsNotEmpty94
|
|
10192
10252
|
} from "class-validator";
|
|
10193
10253
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
10194
10254
|
};
|
|
10195
10255
|
__decorateClass([
|
|
10196
|
-
|
|
10256
|
+
IsNotEmpty94({ message: "AI Interview ID is required." })
|
|
10197
10257
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
10198
10258
|
__decorateClass([
|
|
10199
|
-
|
|
10259
|
+
IsString65({ message: "Freelancer reason must be a string." })
|
|
10200
10260
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
10201
10261
|
|
|
10202
10262
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
10203
10263
|
import {
|
|
10204
|
-
IsString as
|
|
10264
|
+
IsString as IsString66
|
|
10205
10265
|
} from "class-validator";
|
|
10206
10266
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
10207
10267
|
};
|
|
10208
10268
|
__decorateClass([
|
|
10209
|
-
|
|
10269
|
+
IsString66({ message: "Client reject reason must be a string." })
|
|
10210
10270
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10211
10271
|
|
|
10212
10272
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
10213
|
-
import { IsOptional as IsOptional61, IsString as
|
|
10273
|
+
import { IsOptional as IsOptional61, IsString as IsString67 } from "class-validator";
|
|
10214
10274
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
10215
10275
|
};
|
|
10216
10276
|
__decorateClass([
|
|
10217
10277
|
IsOptional61(),
|
|
10218
|
-
|
|
10278
|
+
IsString67()
|
|
10219
10279
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
10220
10280
|
|
|
10221
10281
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
10222
|
-
import { IsNotEmpty as
|
|
10282
|
+
import { IsNotEmpty as IsNotEmpty95, IsString as IsString68, IsOptional as IsOptional62, IsObject as IsObject6 } from "class-validator";
|
|
10223
10283
|
var CaptureAiInterviewResultPublicDto = class {
|
|
10224
10284
|
};
|
|
10225
10285
|
__decorateClass([
|
|
10226
|
-
|
|
10227
|
-
|
|
10286
|
+
IsNotEmpty95({ message: "AI Interview UUID is required" }),
|
|
10287
|
+
IsString68({ message: "AI Interview UUID must be a string" })
|
|
10228
10288
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
10229
10289
|
__decorateClass([
|
|
10230
10290
|
IsOptional62(),
|
|
@@ -10232,33 +10292,33 @@ __decorateClass([
|
|
|
10232
10292
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
10233
10293
|
__decorateClass([
|
|
10234
10294
|
IsOptional62(),
|
|
10235
|
-
|
|
10295
|
+
IsString68()
|
|
10236
10296
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
10237
10297
|
|
|
10238
10298
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
10239
|
-
import { IsNotEmpty as
|
|
10299
|
+
import { IsNotEmpty as IsNotEmpty96, IsString as IsString69, IsNumber as IsNumber19 } from "class-validator";
|
|
10240
10300
|
var CreateInterviewBasicInformationDto = class {
|
|
10241
10301
|
};
|
|
10242
10302
|
__decorateClass([
|
|
10243
|
-
|
|
10303
|
+
IsNotEmpty96({ message: "Job ID is required" }),
|
|
10244
10304
|
IsNumber19({}, { message: "Job ID must be a number" })
|
|
10245
10305
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
10246
10306
|
__decorateClass([
|
|
10247
|
-
|
|
10248
|
-
|
|
10307
|
+
IsNotEmpty96({ message: "Interview name is required" }),
|
|
10308
|
+
IsString69({ message: "Interview name must be a string" })
|
|
10249
10309
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
10250
10310
|
|
|
10251
10311
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
10252
|
-
import { IsOptional as IsOptional64, IsString as
|
|
10312
|
+
import { IsOptional as IsOptional64, IsString as IsString70, IsNumber as IsNumber20, IsArray as IsArray24, IsDateString as IsDateString8 } from "class-validator";
|
|
10253
10313
|
var UpdateInterviewBasicInformationDto = class {
|
|
10254
10314
|
};
|
|
10255
10315
|
__decorateClass([
|
|
10256
10316
|
IsOptional64(),
|
|
10257
|
-
|
|
10317
|
+
IsString70()
|
|
10258
10318
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
10259
10319
|
__decorateClass([
|
|
10260
10320
|
IsOptional64(),
|
|
10261
|
-
|
|
10321
|
+
IsString70()
|
|
10262
10322
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
10263
10323
|
__decorateClass([
|
|
10264
10324
|
IsOptional64(),
|
|
@@ -10275,15 +10335,15 @@ __decorateClass([
|
|
|
10275
10335
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
10276
10336
|
__decorateClass([
|
|
10277
10337
|
IsOptional64(),
|
|
10278
|
-
|
|
10338
|
+
IsString70()
|
|
10279
10339
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
10280
10340
|
|
|
10281
10341
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
10282
10342
|
import {
|
|
10283
10343
|
IsArray as IsArray25,
|
|
10284
|
-
IsNotEmpty as
|
|
10344
|
+
IsNotEmpty as IsNotEmpty97,
|
|
10285
10345
|
IsOptional as IsOptional65,
|
|
10286
|
-
IsString as
|
|
10346
|
+
IsString as IsString71,
|
|
10287
10347
|
ValidateNested as ValidateNested10
|
|
10288
10348
|
} from "class-validator";
|
|
10289
10349
|
import { Type as Type18 } from "class-transformer";
|
|
@@ -10293,18 +10353,18 @@ __decorateClass([
|
|
|
10293
10353
|
IsOptional65()
|
|
10294
10354
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
10295
10355
|
__decorateClass([
|
|
10296
|
-
|
|
10297
|
-
|
|
10356
|
+
IsString71({ message: "Skill name must be a string." }),
|
|
10357
|
+
IsNotEmpty97({ message: "Skill name is required." })
|
|
10298
10358
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
10299
10359
|
__decorateClass([
|
|
10300
10360
|
IsOptional65(),
|
|
10301
|
-
|
|
10361
|
+
IsString71({ message: "Skill description must be a string." })
|
|
10302
10362
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
10303
10363
|
var CreateInterviewSkillsDto = class {
|
|
10304
10364
|
};
|
|
10305
10365
|
__decorateClass([
|
|
10306
10366
|
IsArray25({ message: "Skills must be an array." }),
|
|
10307
|
-
|
|
10367
|
+
IsNotEmpty97({ message: "At least one skill is required." }),
|
|
10308
10368
|
ValidateNested10({ each: true }),
|
|
10309
10369
|
Type18(() => InterviewSkillItemDto)
|
|
10310
10370
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
@@ -10312,9 +10372,9 @@ __decorateClass([
|
|
|
10312
10372
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
10313
10373
|
import {
|
|
10314
10374
|
IsArray as IsArray26,
|
|
10315
|
-
IsNotEmpty as
|
|
10375
|
+
IsNotEmpty as IsNotEmpty98,
|
|
10316
10376
|
IsOptional as IsOptional66,
|
|
10317
|
-
IsString as
|
|
10377
|
+
IsString as IsString72,
|
|
10318
10378
|
IsUUID as IsUUID24,
|
|
10319
10379
|
ValidateNested as ValidateNested11
|
|
10320
10380
|
} from "class-validator";
|
|
@@ -10326,8 +10386,8 @@ __decorateClass([
|
|
|
10326
10386
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10327
10387
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
10328
10388
|
__decorateClass([
|
|
10329
|
-
|
|
10330
|
-
|
|
10389
|
+
IsString72({ message: "Question must be a string." }),
|
|
10390
|
+
IsNotEmpty98({ message: "Question is required." })
|
|
10331
10391
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
10332
10392
|
var AiQuestionItemDto = class {
|
|
10333
10393
|
};
|
|
@@ -10336,13 +10396,13 @@ __decorateClass([
|
|
|
10336
10396
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
10337
10397
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
10338
10398
|
__decorateClass([
|
|
10339
|
-
|
|
10340
|
-
|
|
10399
|
+
IsString72({ message: "Question must be a string." }),
|
|
10400
|
+
IsNotEmpty98({ message: "Question is required." })
|
|
10341
10401
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
10342
10402
|
__decorateClass([
|
|
10343
10403
|
IsOptional66(),
|
|
10344
10404
|
IsArray26({ message: "Concepts must be an array." }),
|
|
10345
|
-
|
|
10405
|
+
IsString72({ each: true, message: "Each concept must be a string." })
|
|
10346
10406
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
10347
10407
|
var CreateInterviewQuestionsDto = class {
|
|
10348
10408
|
};
|
|
@@ -10363,14 +10423,14 @@ __decorateClass([
|
|
|
10363
10423
|
import {
|
|
10364
10424
|
IsBoolean as IsBoolean21,
|
|
10365
10425
|
IsOptional as IsOptional67,
|
|
10366
|
-
IsString as
|
|
10426
|
+
IsString as IsString73
|
|
10367
10427
|
} from "class-validator";
|
|
10368
10428
|
import { Type as Type20 } from "class-transformer";
|
|
10369
10429
|
var UpdateInterviewSettingDto = class {
|
|
10370
10430
|
};
|
|
10371
10431
|
__decorateClass([
|
|
10372
10432
|
IsOptional67(),
|
|
10373
|
-
|
|
10433
|
+
IsString73({ message: "Interview language must be a string." })
|
|
10374
10434
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
10375
10435
|
__decorateClass([
|
|
10376
10436
|
IsOptional67(),
|
|
@@ -10379,32 +10439,32 @@ __decorateClass([
|
|
|
10379
10439
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
10380
10440
|
__decorateClass([
|
|
10381
10441
|
IsOptional67(),
|
|
10382
|
-
|
|
10442
|
+
IsString73({ message: "Interview duration must be a string." })
|
|
10383
10443
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
10384
10444
|
__decorateClass([
|
|
10385
10445
|
IsOptional67(),
|
|
10386
|
-
|
|
10446
|
+
IsString73({ message: "Interview validity period must be a string." })
|
|
10387
10447
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
10388
10448
|
__decorateClass([
|
|
10389
10449
|
IsOptional67(),
|
|
10390
|
-
|
|
10450
|
+
IsString73({ message: "Maximum attempts allowed must be a string." })
|
|
10391
10451
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
10392
10452
|
__decorateClass([
|
|
10393
10453
|
IsOptional67(),
|
|
10394
|
-
|
|
10454
|
+
IsString73({ message: "Start interview message must be a string." })
|
|
10395
10455
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
10396
10456
|
__decorateClass([
|
|
10397
10457
|
IsOptional67(),
|
|
10398
|
-
|
|
10458
|
+
IsString73({ message: "End interview message must be a string." })
|
|
10399
10459
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
10400
10460
|
|
|
10401
10461
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
10402
|
-
import { IsOptional as IsOptional68, IsString as
|
|
10462
|
+
import { IsOptional as IsOptional68, IsString as IsString74 } from "class-validator";
|
|
10403
10463
|
var UpdateInterviewTypeInformationDto = class {
|
|
10404
10464
|
};
|
|
10405
10465
|
__decorateClass([
|
|
10406
10466
|
IsOptional68(),
|
|
10407
|
-
|
|
10467
|
+
IsString74({ message: "Interview type must be a string." })
|
|
10408
10468
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
10409
10469
|
|
|
10410
10470
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -10443,51 +10503,51 @@ var CONTRACT_PATTERN = {
|
|
|
10443
10503
|
};
|
|
10444
10504
|
|
|
10445
10505
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10446
|
-
import { IsEnum as IsEnum40, IsNotEmpty as
|
|
10506
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty99, IsNumber as IsNumber21 } from "class-validator";
|
|
10447
10507
|
import { Type as Type21 } from "class-transformer";
|
|
10448
10508
|
var SignContractForClientDto = class {
|
|
10449
10509
|
};
|
|
10450
10510
|
__decorateClass([
|
|
10451
|
-
|
|
10511
|
+
IsNotEmpty99({ message: "Job Id is required." }),
|
|
10452
10512
|
Type21(() => Number),
|
|
10453
10513
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10454
10514
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10455
10515
|
__decorateClass([
|
|
10456
|
-
|
|
10516
|
+
IsNotEmpty99({ message: "Freelancer ID is required." }),
|
|
10457
10517
|
Type21(() => Number),
|
|
10458
10518
|
IsNumber21({}, { message: "Freelancer ID must be a number." })
|
|
10459
10519
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10460
10520
|
__decorateClass([
|
|
10461
|
-
|
|
10521
|
+
IsNotEmpty99({ message: "Contract type is required." }),
|
|
10462
10522
|
IsEnum40(ContractTypeEnum)
|
|
10463
10523
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10464
10524
|
|
|
10465
10525
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10466
|
-
import { IsEnum as IsEnum41, IsNotEmpty as
|
|
10526
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty100, IsNumber as IsNumber22 } from "class-validator";
|
|
10467
10527
|
import { Type as Type22 } from "class-transformer";
|
|
10468
10528
|
var SignContractForFreelancerDto = class {
|
|
10469
10529
|
};
|
|
10470
10530
|
__decorateClass([
|
|
10471
|
-
|
|
10531
|
+
IsNotEmpty100({ message: "Job Id is required." }),
|
|
10472
10532
|
Type22(() => Number),
|
|
10473
10533
|
IsNumber22({}, { message: "Job ID must be a number." })
|
|
10474
10534
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10475
10535
|
__decorateClass([
|
|
10476
|
-
|
|
10536
|
+
IsNotEmpty100({ message: "Client ID is required." }),
|
|
10477
10537
|
Type22(() => Number),
|
|
10478
10538
|
IsNumber22({}, { message: "Client ID must be a number." })
|
|
10479
10539
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10480
10540
|
__decorateClass([
|
|
10481
|
-
|
|
10541
|
+
IsNotEmpty100({ message: "Contract type is required." }),
|
|
10482
10542
|
IsEnum41(ContractTypeEnum)
|
|
10483
10543
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10484
10544
|
|
|
10485
10545
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10486
10546
|
import {
|
|
10487
|
-
IsNotEmpty as
|
|
10547
|
+
IsNotEmpty as IsNotEmpty101,
|
|
10488
10548
|
IsNumber as IsNumber23,
|
|
10489
10549
|
IsOptional as IsOptional69,
|
|
10490
|
-
IsString as
|
|
10550
|
+
IsString as IsString75,
|
|
10491
10551
|
IsUUID as IsUUID25,
|
|
10492
10552
|
IsEnum as IsEnum42
|
|
10493
10553
|
} from "class-validator";
|
|
@@ -10512,11 +10572,11 @@ var GenerateContractDto = class {
|
|
|
10512
10572
|
};
|
|
10513
10573
|
__decorateClass([
|
|
10514
10574
|
IsNumber23({}, { message: "Job ID must be a number." }),
|
|
10515
|
-
|
|
10575
|
+
IsNotEmpty101({ message: "Job ID is required." })
|
|
10516
10576
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10517
10577
|
__decorateClass([
|
|
10518
10578
|
IsNumber23({}, { message: "Freelancer ID must be a number." }),
|
|
10519
|
-
|
|
10579
|
+
IsNotEmpty101({ message: "Freelancer ID is required." })
|
|
10520
10580
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10521
10581
|
__decorateClass([
|
|
10522
10582
|
IsOptional69(),
|
|
@@ -10525,19 +10585,19 @@ __decorateClass([
|
|
|
10525
10585
|
})
|
|
10526
10586
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
10527
10587
|
__decorateClass([
|
|
10528
|
-
|
|
10529
|
-
|
|
10588
|
+
IsNotEmpty101({ message: "Contract start date is required." }),
|
|
10589
|
+
IsString75({ message: "Contract start date must be a string." })
|
|
10530
10590
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
10531
10591
|
__decorateClass([
|
|
10532
|
-
|
|
10533
|
-
|
|
10592
|
+
IsNotEmpty101({ message: "Contract end date is required." }),
|
|
10593
|
+
IsString75({ message: "Contract end date must be a string." })
|
|
10534
10594
|
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
10535
10595
|
__decorateClass([
|
|
10536
10596
|
IsOptional69(),
|
|
10537
|
-
|
|
10597
|
+
IsString75({ message: "Contract invoicing cycle must be a string." })
|
|
10538
10598
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10539
10599
|
__decorateClass([
|
|
10540
|
-
|
|
10600
|
+
IsNotEmpty101({ message: "Preferred engagement type is required" }),
|
|
10541
10601
|
IsEnum42(PreferredEngagementTypeEnum, {
|
|
10542
10602
|
message: "Preferred engagement type must be FREELANCE."
|
|
10543
10603
|
})
|
|
@@ -10554,34 +10614,34 @@ __decorateClass([
|
|
|
10554
10614
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10555
10615
|
|
|
10556
10616
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10557
|
-
import { IsNotEmpty as
|
|
10617
|
+
import { IsNotEmpty as IsNotEmpty102, IsUUID as IsUUID26 } from "class-validator";
|
|
10558
10618
|
var EsignContractClientDto = class {
|
|
10559
10619
|
};
|
|
10560
10620
|
__decorateClass([
|
|
10561
10621
|
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10562
|
-
|
|
10622
|
+
IsNotEmpty102({ message: "Contract UUID is required." })
|
|
10563
10623
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10564
10624
|
|
|
10565
10625
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10566
|
-
import { IsNotEmpty as
|
|
10626
|
+
import { IsNotEmpty as IsNotEmpty103, IsUUID as IsUUID27 } from "class-validator";
|
|
10567
10627
|
var EsignContractFreelancerDto = class {
|
|
10568
10628
|
};
|
|
10569
10629
|
__decorateClass([
|
|
10570
10630
|
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10571
|
-
|
|
10631
|
+
IsNotEmpty103({ message: "Contract UUID is required." })
|
|
10572
10632
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10573
10633
|
|
|
10574
10634
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10575
|
-
import { IsNotEmpty as
|
|
10635
|
+
import { IsNotEmpty as IsNotEmpty104, IsUUID as IsUUID28 } from "class-validator";
|
|
10576
10636
|
var EscrowFundContractDto = class {
|
|
10577
10637
|
};
|
|
10578
10638
|
__decorateClass([
|
|
10579
10639
|
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10580
|
-
|
|
10640
|
+
IsNotEmpty104({ message: "Contract ID is required." })
|
|
10581
10641
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10582
10642
|
|
|
10583
10643
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10584
|
-
import { IsNotEmpty as
|
|
10644
|
+
import { IsNotEmpty as IsNotEmpty105, IsOptional as IsOptional70, IsUUID as IsUUID29, IsEnum as IsEnum43 } from "class-validator";
|
|
10585
10645
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10586
10646
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10587
10647
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10592,7 +10652,7 @@ var SendNdaContractToFreelancerDto = class {
|
|
|
10592
10652
|
};
|
|
10593
10653
|
__decorateClass([
|
|
10594
10654
|
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10595
|
-
|
|
10655
|
+
IsNotEmpty105({ message: "Contract UUID is required." })
|
|
10596
10656
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10597
10657
|
__decorateClass([
|
|
10598
10658
|
IsOptional70(),
|
|
@@ -10606,12 +10666,12 @@ __decorateClass([
|
|
|
10606
10666
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10607
10667
|
|
|
10608
10668
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10609
|
-
import { IsOptional as IsOptional71, IsString as
|
|
10669
|
+
import { IsOptional as IsOptional71, IsString as IsString77 } from "class-validator";
|
|
10610
10670
|
var RejectContractDto = class {
|
|
10611
10671
|
};
|
|
10612
10672
|
__decorateClass([
|
|
10613
10673
|
IsOptional71(),
|
|
10614
|
-
|
|
10674
|
+
IsString77({ message: "Reject reason must be a string." })
|
|
10615
10675
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10616
10676
|
|
|
10617
10677
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10636,55 +10696,55 @@ var STRIPE_PATTERN = {
|
|
|
10636
10696
|
|
|
10637
10697
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10638
10698
|
import {
|
|
10639
|
-
IsNotEmpty as
|
|
10699
|
+
IsNotEmpty as IsNotEmpty106
|
|
10640
10700
|
} from "class-validator";
|
|
10641
10701
|
var CreateCheckoutSessionDto = class {
|
|
10642
10702
|
};
|
|
10643
10703
|
__decorateClass([
|
|
10644
|
-
|
|
10704
|
+
IsNotEmpty106({ message: "Amount is required" })
|
|
10645
10705
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10646
10706
|
|
|
10647
10707
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10648
|
-
import { IsNotEmpty as
|
|
10708
|
+
import { IsNotEmpty as IsNotEmpty107, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString78 } from "class-validator";
|
|
10649
10709
|
var PreCheckoutCalculationDto = class {
|
|
10650
10710
|
};
|
|
10651
10711
|
__decorateClass([
|
|
10652
|
-
|
|
10712
|
+
IsNotEmpty107({ message: "Amount is required" }),
|
|
10653
10713
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10654
10714
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10655
10715
|
__decorateClass([
|
|
10656
10716
|
IsOptional72(),
|
|
10657
|
-
|
|
10717
|
+
IsString78()
|
|
10658
10718
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10659
10719
|
__decorateClass([
|
|
10660
10720
|
IsOptional72(),
|
|
10661
|
-
|
|
10721
|
+
IsString78()
|
|
10662
10722
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10663
10723
|
|
|
10664
10724
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10665
|
-
import { IsNotEmpty as
|
|
10725
|
+
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber25, IsOptional as IsOptional73, IsString as IsString79 } from "class-validator";
|
|
10666
10726
|
var ClientAddFundDto = class {
|
|
10667
10727
|
};
|
|
10668
10728
|
__decorateClass([
|
|
10669
|
-
|
|
10729
|
+
IsNotEmpty108({ message: "Amount is required" }),
|
|
10670
10730
|
IsNumber25({}, { message: "Amount must be a number" })
|
|
10671
10731
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10672
10732
|
__decorateClass([
|
|
10673
10733
|
IsOptional73(),
|
|
10674
|
-
|
|
10734
|
+
IsString79()
|
|
10675
10735
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10676
10736
|
__decorateClass([
|
|
10677
10737
|
IsOptional73(),
|
|
10678
|
-
|
|
10738
|
+
IsString79()
|
|
10679
10739
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10680
10740
|
|
|
10681
10741
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10682
|
-
import { IsNotEmpty as
|
|
10742
|
+
import { IsNotEmpty as IsNotEmpty109, IsUUID as IsUUID30 } from "class-validator";
|
|
10683
10743
|
var TransferFundsDto = class {
|
|
10684
10744
|
};
|
|
10685
10745
|
__decorateClass([
|
|
10686
10746
|
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10687
|
-
|
|
10747
|
+
IsNotEmpty109({ message: "Invoice UUID is required." })
|
|
10688
10748
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10689
10749
|
|
|
10690
10750
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10731,35 +10791,35 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10731
10791
|
import {
|
|
10732
10792
|
IsDateString as IsDateString10,
|
|
10733
10793
|
IsInt as IsInt13,
|
|
10734
|
-
IsNotEmpty as
|
|
10794
|
+
IsNotEmpty as IsNotEmpty110,
|
|
10735
10795
|
IsOptional as IsOptional74,
|
|
10736
|
-
IsString as
|
|
10737
|
-
Matches as
|
|
10796
|
+
IsString as IsString80,
|
|
10797
|
+
Matches as Matches17,
|
|
10738
10798
|
IsNumber as IsNumber26
|
|
10739
10799
|
} from "class-validator";
|
|
10740
10800
|
var CreateFreelancerTimesheetDto = class {
|
|
10741
10801
|
};
|
|
10742
10802
|
__decorateClass([
|
|
10743
|
-
|
|
10803
|
+
IsNotEmpty110({ message: "Job id is required" }),
|
|
10744
10804
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10745
10805
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10746
10806
|
__decorateClass([
|
|
10747
|
-
|
|
10807
|
+
IsNotEmpty110({ message: "start date is required" }),
|
|
10748
10808
|
IsDateString10()
|
|
10749
10809
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10750
10810
|
__decorateClass([
|
|
10751
|
-
|
|
10811
|
+
IsNotEmpty110({ message: "end date is required" }),
|
|
10752
10812
|
IsDateString10()
|
|
10753
10813
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10754
10814
|
__decorateClass([
|
|
10755
|
-
|
|
10756
|
-
|
|
10815
|
+
IsNotEmpty110({ message: "start time is required" }),
|
|
10816
|
+
Matches17(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10757
10817
|
message: "startTime must be in HH:mm:ss format"
|
|
10758
10818
|
})
|
|
10759
10819
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10760
10820
|
__decorateClass([
|
|
10761
|
-
|
|
10762
|
-
|
|
10821
|
+
IsNotEmpty110({ message: "end time is required" }),
|
|
10822
|
+
Matches17(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10763
10823
|
message: "endTime must be in HH:mm:ss format"
|
|
10764
10824
|
})
|
|
10765
10825
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10769,53 +10829,53 @@ __decorateClass([
|
|
|
10769
10829
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10770
10830
|
__decorateClass([
|
|
10771
10831
|
IsOptional74(),
|
|
10772
|
-
|
|
10832
|
+
IsString80()
|
|
10773
10833
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10774
10834
|
__decorateClass([
|
|
10775
10835
|
IsOptional74(),
|
|
10776
|
-
|
|
10836
|
+
IsString80()
|
|
10777
10837
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10778
10838
|
__decorateClass([
|
|
10779
10839
|
IsOptional74(),
|
|
10780
|
-
|
|
10840
|
+
IsString80()
|
|
10781
10841
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10782
10842
|
__decorateClass([
|
|
10783
|
-
|
|
10843
|
+
IsNotEmpty110({ message: "Description is required" })
|
|
10784
10844
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10785
10845
|
|
|
10786
10846
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10787
10847
|
import {
|
|
10788
10848
|
IsDateString as IsDateString11,
|
|
10789
10849
|
IsInt as IsInt14,
|
|
10790
|
-
IsNotEmpty as
|
|
10850
|
+
IsNotEmpty as IsNotEmpty111,
|
|
10791
10851
|
IsOptional as IsOptional75,
|
|
10792
|
-
IsString as
|
|
10793
|
-
Matches as
|
|
10852
|
+
IsString as IsString81,
|
|
10853
|
+
Matches as Matches18,
|
|
10794
10854
|
IsNumber as IsNumber27
|
|
10795
10855
|
} from "class-validator";
|
|
10796
10856
|
var UpdateFreelancerTimesheetDto = class {
|
|
10797
10857
|
};
|
|
10798
10858
|
__decorateClass([
|
|
10799
|
-
|
|
10859
|
+
IsNotEmpty111({ message: "Job id is required" }),
|
|
10800
10860
|
IsNumber27({}, { message: "Job id must be a number" })
|
|
10801
10861
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10802
10862
|
__decorateClass([
|
|
10803
|
-
|
|
10863
|
+
IsNotEmpty111({ message: "start date is required" }),
|
|
10804
10864
|
IsDateString11()
|
|
10805
10865
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10806
10866
|
__decorateClass([
|
|
10807
|
-
|
|
10867
|
+
IsNotEmpty111({ message: "end date is required" }),
|
|
10808
10868
|
IsDateString11()
|
|
10809
10869
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10810
10870
|
__decorateClass([
|
|
10811
|
-
|
|
10812
|
-
|
|
10871
|
+
IsNotEmpty111({ message: "start time is required" }),
|
|
10872
|
+
Matches18(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10813
10873
|
message: "startTime must be in HH:mm:ss format"
|
|
10814
10874
|
})
|
|
10815
10875
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10816
10876
|
__decorateClass([
|
|
10817
|
-
|
|
10818
|
-
|
|
10877
|
+
IsNotEmpty111({ message: "end time is required" }),
|
|
10878
|
+
Matches18(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10819
10879
|
message: "endTime must be in HH:mm:ss format"
|
|
10820
10880
|
})
|
|
10821
10881
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
@@ -10825,78 +10885,78 @@ __decorateClass([
|
|
|
10825
10885
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10826
10886
|
__decorateClass([
|
|
10827
10887
|
IsOptional75(),
|
|
10828
|
-
|
|
10888
|
+
IsString81()
|
|
10829
10889
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10830
10890
|
__decorateClass([
|
|
10831
10891
|
IsOptional75(),
|
|
10832
|
-
|
|
10892
|
+
IsString81()
|
|
10833
10893
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10834
10894
|
__decorateClass([
|
|
10835
10895
|
IsOptional75(),
|
|
10836
|
-
|
|
10896
|
+
IsString81()
|
|
10837
10897
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10838
10898
|
__decorateClass([
|
|
10839
|
-
|
|
10899
|
+
IsNotEmpty111({ message: "Description is required" })
|
|
10840
10900
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10841
10901
|
|
|
10842
10902
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10843
|
-
import { IsNotEmpty as
|
|
10903
|
+
import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber28 } from "class-validator";
|
|
10844
10904
|
var SubmitTimesheetDto = class {
|
|
10845
10905
|
};
|
|
10846
10906
|
__decorateClass([
|
|
10847
|
-
|
|
10907
|
+
IsNotEmpty112({ message: "Timesheet line ID is required" }),
|
|
10848
10908
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10849
10909
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10850
10910
|
|
|
10851
10911
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10852
|
-
import { IsNotEmpty as
|
|
10912
|
+
import { IsNotEmpty as IsNotEmpty113, IsNumber as IsNumber29 } from "class-validator";
|
|
10853
10913
|
var ResubmitTimesheetDto = class {
|
|
10854
10914
|
};
|
|
10855
10915
|
__decorateClass([
|
|
10856
|
-
|
|
10916
|
+
IsNotEmpty113({ message: "Timesheet line ID is required" }),
|
|
10857
10917
|
IsNumber29({}, { message: "Timesheet line ID must be a number" })
|
|
10858
10918
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10859
10919
|
|
|
10860
10920
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10861
|
-
import { IsNotEmpty as
|
|
10921
|
+
import { IsNotEmpty as IsNotEmpty114, IsNumber as IsNumber30 } from "class-validator";
|
|
10862
10922
|
import { Type as Type23 } from "class-transformer";
|
|
10863
10923
|
var ApproveTimesheetsDto = class {
|
|
10864
10924
|
};
|
|
10865
10925
|
__decorateClass([
|
|
10866
10926
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10867
|
-
|
|
10927
|
+
IsNotEmpty114({ message: "Timesheet line ID is required." }),
|
|
10868
10928
|
Type23(() => Number)
|
|
10869
10929
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10870
10930
|
|
|
10871
10931
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10872
|
-
import { IsNotEmpty as
|
|
10932
|
+
import { IsNotEmpty as IsNotEmpty115, IsNumber as IsNumber31, IsOptional as IsOptional76, IsString as IsString82 } from "class-validator";
|
|
10873
10933
|
import { Type as Type24 } from "class-transformer";
|
|
10874
10934
|
var SendBackTimesheetsDto = class {
|
|
10875
10935
|
};
|
|
10876
10936
|
__decorateClass([
|
|
10877
10937
|
IsNumber31({}, { message: "Timesheet line ID must be a number." }),
|
|
10878
|
-
|
|
10938
|
+
IsNotEmpty115({ message: "Timesheet line ID is required." }),
|
|
10879
10939
|
Type24(() => Number)
|
|
10880
10940
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10881
10941
|
__decorateClass([
|
|
10882
10942
|
IsOptional76(),
|
|
10883
|
-
|
|
10943
|
+
IsString82({ message: "Client send back reason must be a string." })
|
|
10884
10944
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10885
10945
|
|
|
10886
10946
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10887
|
-
import { IsNotEmpty as
|
|
10947
|
+
import { IsNotEmpty as IsNotEmpty116, IsNumber as IsNumber32 } from "class-validator";
|
|
10888
10948
|
var CreateDefaultTimesheetLineDto = class {
|
|
10889
10949
|
};
|
|
10890
10950
|
__decorateClass([
|
|
10891
|
-
|
|
10951
|
+
IsNotEmpty116({ message: "Contract ID is required" }),
|
|
10892
10952
|
IsNumber32({}, { message: "Contract ID must be a number" })
|
|
10893
10953
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10894
10954
|
__decorateClass([
|
|
10895
|
-
|
|
10955
|
+
IsNotEmpty116({ message: "Freelancer ID is required" }),
|
|
10896
10956
|
IsNumber32({}, { message: "Freelancer ID must be a number" })
|
|
10897
10957
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10898
10958
|
__decorateClass([
|
|
10899
|
-
|
|
10959
|
+
IsNotEmpty116({ message: "Client ID is required" }),
|
|
10900
10960
|
IsNumber32({}, { message: "Client ID must be a number" })
|
|
10901
10961
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10902
10962
|
|
|
@@ -10919,22 +10979,22 @@ var INVOICE_PATTERN = {
|
|
|
10919
10979
|
};
|
|
10920
10980
|
|
|
10921
10981
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10922
|
-
import { IsEnum as IsEnum46, IsNotEmpty as
|
|
10982
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty117 } from "class-validator";
|
|
10923
10983
|
var UpdateInvoiceStatusDto = class {
|
|
10924
10984
|
};
|
|
10925
10985
|
__decorateClass([
|
|
10926
|
-
|
|
10986
|
+
IsNotEmpty117({ message: "Please provide invoice status." }),
|
|
10927
10987
|
IsEnum46(InvoiceStatusEnum, {
|
|
10928
10988
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10929
10989
|
})
|
|
10930
10990
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10931
10991
|
|
|
10932
10992
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10933
|
-
import { IsNotEmpty as
|
|
10993
|
+
import { IsNotEmpty as IsNotEmpty118, IsNumber as IsNumber33 } from "class-validator";
|
|
10934
10994
|
var CreateInvoiceDto = class {
|
|
10935
10995
|
};
|
|
10936
10996
|
__decorateClass([
|
|
10937
|
-
|
|
10997
|
+
IsNotEmpty118({ message: "Timesheet line ID is required" }),
|
|
10938
10998
|
IsNumber33({}, { message: "Timesheet line ID must be a number" })
|
|
10939
10999
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10940
11000
|
|
|
@@ -10947,8 +11007,8 @@ var DISPUTE_PATTERN = {
|
|
|
10947
11007
|
|
|
10948
11008
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10949
11009
|
import {
|
|
10950
|
-
IsString as
|
|
10951
|
-
IsNotEmpty as
|
|
11010
|
+
IsString as IsString83,
|
|
11011
|
+
IsNotEmpty as IsNotEmpty119,
|
|
10952
11012
|
IsIn as IsIn4,
|
|
10953
11013
|
IsOptional as IsOptional77,
|
|
10954
11014
|
MaxLength as MaxLength23,
|
|
@@ -10970,22 +11030,22 @@ __decorateClass([
|
|
|
10970
11030
|
Type25(() => Number)
|
|
10971
11031
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10972
11032
|
__decorateClass([
|
|
10973
|
-
|
|
10974
|
-
|
|
11033
|
+
IsNotEmpty119({ message: "Please select dispute type." }),
|
|
11034
|
+
IsString83(),
|
|
10975
11035
|
IsIn4(["JOB", "INVOICE"])
|
|
10976
11036
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10977
11037
|
__decorateClass([
|
|
10978
|
-
|
|
10979
|
-
|
|
11038
|
+
IsNotEmpty119({ message: "Please provide initiator type." }),
|
|
11039
|
+
IsString83()
|
|
10980
11040
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10981
11041
|
__decorateClass([
|
|
10982
|
-
|
|
10983
|
-
|
|
11042
|
+
IsNotEmpty119({ message: "Please enter description." }),
|
|
11043
|
+
IsString83({ message: "Description must be a string" }),
|
|
10984
11044
|
MaxLength23(500, { message: "Description must not exceed 500 characters" })
|
|
10985
11045
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10986
11046
|
__decorateClass([
|
|
10987
11047
|
IsOptional77(),
|
|
10988
|
-
|
|
11048
|
+
IsString83({ message: "Comment must be a string" }),
|
|
10989
11049
|
MaxLength23(500, { message: "Comment must not exceed 500 characters" })
|
|
10990
11050
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10991
11051
|
__decorateClass([
|
|
@@ -11012,76 +11072,76 @@ var SENSELOAF_PATTERN = {
|
|
|
11012
11072
|
|
|
11013
11073
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
11014
11074
|
import {
|
|
11015
|
-
IsNotEmpty as
|
|
11075
|
+
IsNotEmpty as IsNotEmpty120
|
|
11016
11076
|
} from "class-validator";
|
|
11017
11077
|
var AiInterviewQuestionGenerateDto = class {
|
|
11018
11078
|
};
|
|
11019
11079
|
__decorateClass([
|
|
11020
|
-
|
|
11080
|
+
IsNotEmpty120({ message: "Please enter job description." })
|
|
11021
11081
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
11022
11082
|
__decorateClass([
|
|
11023
|
-
|
|
11083
|
+
IsNotEmpty120({ message: "Please enter number of questions." })
|
|
11024
11084
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
11025
11085
|
|
|
11026
11086
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
11027
|
-
import { IsNotEmpty as
|
|
11087
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional78 } from "class-validator";
|
|
11028
11088
|
var ResumeParsingByUrlDto = class {
|
|
11029
11089
|
};
|
|
11030
11090
|
__decorateClass([
|
|
11031
|
-
|
|
11032
|
-
|
|
11091
|
+
IsNotEmpty121({ message: "Resume URL is required" }),
|
|
11092
|
+
IsString84({ message: "Resume URL must be a string" })
|
|
11033
11093
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
11034
11094
|
__decorateClass([
|
|
11035
11095
|
IsOptional78(),
|
|
11036
|
-
|
|
11096
|
+
IsString84()
|
|
11037
11097
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
11038
11098
|
|
|
11039
11099
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
11040
|
-
import { IsNotEmpty as
|
|
11100
|
+
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as IsOptional79, IsObject as IsObject8 } from "class-validator";
|
|
11041
11101
|
var ResumeDataProcessingDto = class {
|
|
11042
11102
|
};
|
|
11043
11103
|
__decorateClass([
|
|
11044
|
-
|
|
11104
|
+
IsNotEmpty122({ message: "Resume data is required" }),
|
|
11045
11105
|
IsObject8()
|
|
11046
11106
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
11047
11107
|
__decorateClass([
|
|
11048
11108
|
IsOptional79(),
|
|
11049
|
-
|
|
11109
|
+
IsString85()
|
|
11050
11110
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
11051
11111
|
__decorateClass([
|
|
11052
11112
|
IsOptional79(),
|
|
11053
|
-
|
|
11113
|
+
IsString85()
|
|
11054
11114
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
11055
11115
|
|
|
11056
11116
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
11057
|
-
import { IsNotEmpty as
|
|
11117
|
+
import { IsNotEmpty as IsNotEmpty123, IsString as IsString86, IsOptional as IsOptional80, IsObject as IsObject9 } from "class-validator";
|
|
11058
11118
|
var CheckResumeEligibilityDto = class {
|
|
11059
11119
|
};
|
|
11060
11120
|
__decorateClass([
|
|
11061
|
-
|
|
11121
|
+
IsNotEmpty123({ message: "Resume data is required" }),
|
|
11062
11122
|
IsObject9()
|
|
11063
11123
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
11064
11124
|
__decorateClass([
|
|
11065
11125
|
IsOptional80(),
|
|
11066
|
-
|
|
11126
|
+
IsString86()
|
|
11067
11127
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
11068
11128
|
__decorateClass([
|
|
11069
11129
|
IsOptional80(),
|
|
11070
|
-
|
|
11130
|
+
IsString86()
|
|
11071
11131
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
11072
11132
|
|
|
11073
11133
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
11074
|
-
import { IsNotEmpty as
|
|
11134
|
+
import { IsNotEmpty as IsNotEmpty124, IsString as IsString87, IsOptional as IsOptional81, IsArray as IsArray27, IsNumber as IsNumber35 } from "class-validator";
|
|
11075
11135
|
var AiInterviewTemplateGenerationDto = class {
|
|
11076
11136
|
};
|
|
11077
11137
|
__decorateClass([
|
|
11078
|
-
|
|
11079
|
-
|
|
11138
|
+
IsNotEmpty124({ message: "Job ID is required" }),
|
|
11139
|
+
IsString87({ message: "Job ID must be a string" })
|
|
11080
11140
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
11081
11141
|
__decorateClass([
|
|
11082
11142
|
IsOptional81(),
|
|
11083
11143
|
IsArray27(),
|
|
11084
|
-
|
|
11144
|
+
IsString87({ each: true, message: "Each skill must be a string" })
|
|
11085
11145
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
11086
11146
|
__decorateClass([
|
|
11087
11147
|
IsOptional81(),
|
|
@@ -11089,24 +11149,24 @@ __decorateClass([
|
|
|
11089
11149
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
11090
11150
|
__decorateClass([
|
|
11091
11151
|
IsOptional81(),
|
|
11092
|
-
|
|
11152
|
+
IsString87()
|
|
11093
11153
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
11094
11154
|
|
|
11095
11155
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
11096
|
-
import { IsNotEmpty as
|
|
11156
|
+
import { IsNotEmpty as IsNotEmpty125, IsString as IsString88, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
11097
11157
|
var AiInterviewLinkGenerationDto = class {
|
|
11098
11158
|
};
|
|
11099
11159
|
__decorateClass([
|
|
11100
|
-
|
|
11101
|
-
|
|
11160
|
+
IsNotEmpty125({ message: "Template ID is required" }),
|
|
11161
|
+
IsString88({ message: "Template ID must be a string" })
|
|
11102
11162
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
11103
11163
|
__decorateClass([
|
|
11104
|
-
|
|
11105
|
-
|
|
11164
|
+
IsNotEmpty125({ message: "Freelancer ID is required" }),
|
|
11165
|
+
IsString88({ message: "Freelancer ID must be a string" })
|
|
11106
11166
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
11107
11167
|
__decorateClass([
|
|
11108
11168
|
IsOptional82(),
|
|
11109
|
-
|
|
11169
|
+
IsString88()
|
|
11110
11170
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
11111
11171
|
__decorateClass([
|
|
11112
11172
|
IsOptional82(),
|
|
@@ -11114,16 +11174,16 @@ __decorateClass([
|
|
|
11114
11174
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
11115
11175
|
|
|
11116
11176
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
11117
|
-
import { IsNotEmpty as
|
|
11177
|
+
import { IsNotEmpty as IsNotEmpty126, IsString as IsString89, IsOptional as IsOptional83, IsNumber as IsNumber37 } from "class-validator";
|
|
11118
11178
|
var AiAssessmentCreationDto = class {
|
|
11119
11179
|
};
|
|
11120
11180
|
__decorateClass([
|
|
11121
|
-
|
|
11122
|
-
|
|
11181
|
+
IsNotEmpty126({ message: "User ID is required" }),
|
|
11182
|
+
IsString89({ message: "User ID must be a string" })
|
|
11123
11183
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
11124
11184
|
__decorateClass([
|
|
11125
11185
|
IsOptional83(),
|
|
11126
|
-
|
|
11186
|
+
IsString89()
|
|
11127
11187
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
11128
11188
|
__decorateClass([
|
|
11129
11189
|
IsOptional83(),
|
|
@@ -11131,7 +11191,7 @@ __decorateClass([
|
|
|
11131
11191
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
11132
11192
|
__decorateClass([
|
|
11133
11193
|
IsOptional83(),
|
|
11134
|
-
|
|
11194
|
+
IsString89()
|
|
11135
11195
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
11136
11196
|
|
|
11137
11197
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -11147,7 +11207,7 @@ var HIRING_PATTERN = {
|
|
|
11147
11207
|
};
|
|
11148
11208
|
|
|
11149
11209
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
11150
|
-
import { IsEnum as IsEnum47, IsNotEmpty as
|
|
11210
|
+
import { IsEnum as IsEnum47, IsNotEmpty as IsNotEmpty127, IsNumber as IsNumber38 } from "class-validator";
|
|
11151
11211
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
11152
11212
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
11153
11213
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -11156,15 +11216,15 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
11156
11216
|
var CreateHiringDto = class {
|
|
11157
11217
|
};
|
|
11158
11218
|
__decorateClass([
|
|
11159
|
-
|
|
11219
|
+
IsNotEmpty127({ message: "Freelancer ID is required" }),
|
|
11160
11220
|
IsNumber38({}, { message: "Freelancer ID must be a number" })
|
|
11161
11221
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
11162
11222
|
__decorateClass([
|
|
11163
|
-
|
|
11223
|
+
IsNotEmpty127({ message: "Job ID is required" }),
|
|
11164
11224
|
IsNumber38({}, { message: "Job ID must be a number" })
|
|
11165
11225
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
11166
11226
|
__decorateClass([
|
|
11167
|
-
|
|
11227
|
+
IsNotEmpty127({ message: "Preferred engagement type is required" }),
|
|
11168
11228
|
IsEnum47(PreferredEngagementTypeEnum2, {
|
|
11169
11229
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
11170
11230
|
})
|
|
@@ -11188,16 +11248,16 @@ var SIGNATURE_PATTERN = {
|
|
|
11188
11248
|
};
|
|
11189
11249
|
|
|
11190
11250
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
11191
|
-
import { IsOptional as IsOptional84, IsString as
|
|
11251
|
+
import { IsOptional as IsOptional84, IsString as IsString90 } from "class-validator";
|
|
11192
11252
|
var SaveSignatureDto = class {
|
|
11193
11253
|
};
|
|
11194
11254
|
__decorateClass([
|
|
11195
11255
|
IsOptional84(),
|
|
11196
|
-
|
|
11256
|
+
IsString90()
|
|
11197
11257
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
11198
11258
|
__decorateClass([
|
|
11199
11259
|
IsOptional84(),
|
|
11200
|
-
|
|
11260
|
+
IsString90()
|
|
11201
11261
|
], SaveSignatureDto.prototype, "description", 2);
|
|
11202
11262
|
|
|
11203
11263
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -11215,25 +11275,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
11215
11275
|
};
|
|
11216
11276
|
|
|
11217
11277
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
11218
|
-
import { IsNotEmpty as
|
|
11278
|
+
import { IsNotEmpty as IsNotEmpty128, IsNumber as IsNumber39, IsUUID as IsUUID31 } from "class-validator";
|
|
11219
11279
|
var AddTopupEscrowAmountDto = class {
|
|
11220
11280
|
};
|
|
11221
11281
|
__decorateClass([
|
|
11222
|
-
|
|
11282
|
+
IsNotEmpty128({ message: "Amount is required" }),
|
|
11223
11283
|
IsNumber39({}, { message: "Amount must be a number" })
|
|
11224
11284
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
11225
11285
|
__decorateClass([
|
|
11226
|
-
|
|
11286
|
+
IsNotEmpty128({ message: "Escrow wallet UUID is required" }),
|
|
11227
11287
|
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
11228
11288
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
11229
11289
|
|
|
11230
11290
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
11231
|
-
import { IsNotEmpty as
|
|
11291
|
+
import { IsNotEmpty as IsNotEmpty129, IsUUID as IsUUID32 } from "class-validator";
|
|
11232
11292
|
var DebitCommissionFteHiringDto = class {
|
|
11233
11293
|
};
|
|
11234
11294
|
__decorateClass([
|
|
11235
11295
|
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
11236
|
-
|
|
11296
|
+
IsNotEmpty129({ message: "Invoice UUID is required." })
|
|
11237
11297
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
11238
11298
|
|
|
11239
11299
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12342,28 +12402,28 @@ function createDiscordTransport(options) {
|
|
|
12342
12402
|
}
|
|
12343
12403
|
|
|
12344
12404
|
// src/modules/in-app-notification/dto/create-in-app-notification.dto.ts
|
|
12345
|
-
import { IsNotEmpty as
|
|
12405
|
+
import { IsNotEmpty as IsNotEmpty130, IsNumber as IsNumber40, IsOptional as IsOptional85, IsString as IsString91, IsObject as IsObject10 } from "class-validator";
|
|
12346
12406
|
var CreateInAppNotificationDto = class {
|
|
12347
12407
|
};
|
|
12348
12408
|
__decorateClass([
|
|
12349
|
-
|
|
12409
|
+
IsNotEmpty130(),
|
|
12350
12410
|
IsNumber40()
|
|
12351
12411
|
], CreateInAppNotificationDto.prototype, "userId", 2);
|
|
12352
12412
|
__decorateClass([
|
|
12353
12413
|
IsOptional85(),
|
|
12354
|
-
|
|
12414
|
+
IsString91()
|
|
12355
12415
|
], CreateInAppNotificationDto.prototype, "event", 2);
|
|
12356
12416
|
__decorateClass([
|
|
12357
12417
|
IsOptional85(),
|
|
12358
|
-
|
|
12418
|
+
IsString91()
|
|
12359
12419
|
], CreateInAppNotificationDto.prototype, "title", 2);
|
|
12360
12420
|
__decorateClass([
|
|
12361
|
-
|
|
12362
|
-
|
|
12421
|
+
IsNotEmpty130(),
|
|
12422
|
+
IsString91()
|
|
12363
12423
|
], CreateInAppNotificationDto.prototype, "message", 2);
|
|
12364
12424
|
__decorateClass([
|
|
12365
12425
|
IsOptional85(),
|
|
12366
|
-
|
|
12426
|
+
IsString91()
|
|
12367
12427
|
], CreateInAppNotificationDto.prototype, "redirectUrl", 2);
|
|
12368
12428
|
__decorateClass([
|
|
12369
12429
|
IsOptional85(),
|
|
@@ -12371,7 +12431,7 @@ __decorateClass([
|
|
|
12371
12431
|
], CreateInAppNotificationDto.prototype, "metaData", 2);
|
|
12372
12432
|
|
|
12373
12433
|
// src/modules/in-app-notification/dto/update-is-read.dto.ts
|
|
12374
|
-
import { IsNotEmpty as
|
|
12434
|
+
import { IsNotEmpty as IsNotEmpty131, IsNumber as IsNumber41, IsBoolean as IsBoolean22, IsOptional as IsOptional86, IsArray as IsArray29 } from "class-validator";
|
|
12375
12435
|
import { Type as Type26 } from "class-transformer";
|
|
12376
12436
|
var UpdateIsReadDto = class {
|
|
12377
12437
|
};
|
|
@@ -12387,7 +12447,7 @@ __decorateClass([
|
|
|
12387
12447
|
Type26(() => Number)
|
|
12388
12448
|
], UpdateIsReadDto.prototype, "ids", 2);
|
|
12389
12449
|
__decorateClass([
|
|
12390
|
-
|
|
12450
|
+
IsNotEmpty131(),
|
|
12391
12451
|
IsBoolean22()
|
|
12392
12452
|
], UpdateIsReadDto.prototype, "isRead", 2);
|
|
12393
12453
|
|
|
@@ -12416,10 +12476,10 @@ import {
|
|
|
12416
12476
|
IsBoolean as IsBoolean23,
|
|
12417
12477
|
IsEmail as IsEmail24,
|
|
12418
12478
|
IsEnum as IsEnum48,
|
|
12419
|
-
IsNotEmpty as
|
|
12479
|
+
IsNotEmpty as IsNotEmpty132,
|
|
12420
12480
|
IsNumber as IsNumber42,
|
|
12421
12481
|
IsOptional as IsOptional87,
|
|
12422
|
-
IsString as
|
|
12482
|
+
IsString as IsString92,
|
|
12423
12483
|
ValidateNested as ValidateNested12
|
|
12424
12484
|
} from "class-validator";
|
|
12425
12485
|
import { Type as Type27 } from "class-transformer";
|
|
@@ -12432,15 +12492,15 @@ var DocuSealSubmitterDto = class {
|
|
|
12432
12492
|
};
|
|
12433
12493
|
__decorateClass([
|
|
12434
12494
|
IsEmail24({}, { message: "Submitter email must be valid." }),
|
|
12435
|
-
|
|
12495
|
+
IsNotEmpty132({ message: "Submitter email is required." })
|
|
12436
12496
|
], DocuSealSubmitterDto.prototype, "email", 2);
|
|
12437
12497
|
__decorateClass([
|
|
12438
12498
|
IsOptional87(),
|
|
12439
|
-
|
|
12499
|
+
IsString92()
|
|
12440
12500
|
], DocuSealSubmitterDto.prototype, "name", 2);
|
|
12441
12501
|
__decorateClass([
|
|
12442
12502
|
IsOptional87(),
|
|
12443
|
-
|
|
12503
|
+
IsString92()
|
|
12444
12504
|
], DocuSealSubmitterDto.prototype, "phone", 2);
|
|
12445
12505
|
__decorateClass([
|
|
12446
12506
|
IsOptional87(),
|
|
@@ -12450,17 +12510,17 @@ var DocuSealMessageDto = class {
|
|
|
12450
12510
|
};
|
|
12451
12511
|
__decorateClass([
|
|
12452
12512
|
IsOptional87(),
|
|
12453
|
-
|
|
12513
|
+
IsString92()
|
|
12454
12514
|
], DocuSealMessageDto.prototype, "subject", 2);
|
|
12455
12515
|
__decorateClass([
|
|
12456
12516
|
IsOptional87(),
|
|
12457
|
-
|
|
12517
|
+
IsString92()
|
|
12458
12518
|
], DocuSealMessageDto.prototype, "body", 2);
|
|
12459
12519
|
var CreateUserSigningDto = class {
|
|
12460
12520
|
};
|
|
12461
12521
|
__decorateClass([
|
|
12462
12522
|
IsNumber42({}, { message: "Template ID must be a number." }),
|
|
12463
|
-
|
|
12523
|
+
IsNotEmpty132({ message: "Template ID is required." })
|
|
12464
12524
|
], CreateUserSigningDto.prototype, "templateId", 2);
|
|
12465
12525
|
__decorateClass([
|
|
12466
12526
|
IsOptional87(),
|
|
@@ -12484,54 +12544,54 @@ __decorateClass([
|
|
|
12484
12544
|
], CreateUserSigningDto.prototype, "message", 2);
|
|
12485
12545
|
__decorateClass([
|
|
12486
12546
|
IsOptional87(),
|
|
12487
|
-
|
|
12547
|
+
IsString92()
|
|
12488
12548
|
], CreateUserSigningDto.prototype, "completedRedirectUrl", 2);
|
|
12489
12549
|
__decorateClass([
|
|
12490
12550
|
IsOptional87(),
|
|
12491
|
-
|
|
12551
|
+
IsString92()
|
|
12492
12552
|
], CreateUserSigningDto.prototype, "expireAt", 2);
|
|
12493
12553
|
|
|
12494
12554
|
// src/modules/docuseal/dto/get-submission.dto.ts
|
|
12495
|
-
import { IsNotEmpty as
|
|
12555
|
+
import { IsNotEmpty as IsNotEmpty133, IsNumber as IsNumber43 } from "class-validator";
|
|
12496
12556
|
import { Type as Type28 } from "class-transformer";
|
|
12497
12557
|
var GetSubmissionDto = class {
|
|
12498
12558
|
};
|
|
12499
12559
|
__decorateClass([
|
|
12500
12560
|
IsNumber43({}, { message: "Submission ID must be a number." }),
|
|
12501
|
-
|
|
12561
|
+
IsNotEmpty133({ message: "Submission ID is required." }),
|
|
12502
12562
|
Type28(() => Number)
|
|
12503
12563
|
], GetSubmissionDto.prototype, "submissionId", 2);
|
|
12504
12564
|
|
|
12505
12565
|
// src/modules/docuseal/dto/get-submitter.dto.ts
|
|
12506
|
-
import { IsNotEmpty as
|
|
12566
|
+
import { IsNotEmpty as IsNotEmpty134, IsNumber as IsNumber44 } from "class-validator";
|
|
12507
12567
|
import { Type as Type29 } from "class-transformer";
|
|
12508
12568
|
var GetSubmitterDto = class {
|
|
12509
12569
|
};
|
|
12510
12570
|
__decorateClass([
|
|
12511
12571
|
IsNumber44({}, { message: "Submitter ID must be a number." }),
|
|
12512
|
-
|
|
12572
|
+
IsNotEmpty134({ message: "Submitter ID is required." }),
|
|
12513
12573
|
Type29(() => Number)
|
|
12514
12574
|
], GetSubmitterDto.prototype, "submitterId", 2);
|
|
12515
12575
|
|
|
12516
12576
|
// src/modules/docuseal/dto/get-template.dto.ts
|
|
12517
|
-
import { IsNotEmpty as
|
|
12577
|
+
import { IsNotEmpty as IsNotEmpty135, IsNumber as IsNumber45 } from "class-validator";
|
|
12518
12578
|
import { Type as Type30 } from "class-transformer";
|
|
12519
12579
|
var GetTemplateDto = class {
|
|
12520
12580
|
};
|
|
12521
12581
|
__decorateClass([
|
|
12522
12582
|
IsNumber45({}, { message: "Template ID must be a number." }),
|
|
12523
|
-
|
|
12583
|
+
IsNotEmpty135({ message: "Template ID is required." }),
|
|
12524
12584
|
Type30(() => Number)
|
|
12525
12585
|
], GetTemplateDto.prototype, "templateId", 2);
|
|
12526
12586
|
|
|
12527
12587
|
// src/modules/docuseal/dto/archive-submission.dto.ts
|
|
12528
|
-
import { IsNotEmpty as
|
|
12588
|
+
import { IsNotEmpty as IsNotEmpty136, IsNumber as IsNumber46 } from "class-validator";
|
|
12529
12589
|
import { Type as Type31 } from "class-transformer";
|
|
12530
12590
|
var ArchiveSubmissionDto = class {
|
|
12531
12591
|
};
|
|
12532
12592
|
__decorateClass([
|
|
12533
12593
|
IsNumber46({}, { message: "Submission ID must be a number." }),
|
|
12534
|
-
|
|
12594
|
+
IsNotEmpty136({ message: "Submission ID is required." }),
|
|
12535
12595
|
Type31(() => Number)
|
|
12536
12596
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12537
12597
|
|
|
@@ -13899,7 +13959,8 @@ export {
|
|
|
13899
13959
|
RejectContractDto,
|
|
13900
13960
|
RejectF2FInterviewRescheduleRequestDto,
|
|
13901
13961
|
RemoveGlobalSettingDto,
|
|
13902
|
-
|
|
13962
|
+
RequestPasswordChangeOtpForClientDto,
|
|
13963
|
+
RequestPasswordChangeOtpForFreelancerDto,
|
|
13903
13964
|
ResetPasswordDto,
|
|
13904
13965
|
ResetPasswordTokenValidationDto,
|
|
13905
13966
|
ResetUserPasswordByAdminDto,
|
|
@@ -13990,7 +14051,8 @@ export {
|
|
|
13990
14051
|
VerifyGuestOtpDto,
|
|
13991
14052
|
VerifyOnboardingTokenDto,
|
|
13992
14053
|
VerifyOtpDto,
|
|
13993
|
-
|
|
14054
|
+
VerifyPasswordChangeOtpForClientDto,
|
|
14055
|
+
VerifyPasswordChangeOtpForFreelancerDto,
|
|
13994
14056
|
WALLET_ADMIN_PATTERN,
|
|
13995
14057
|
WALLET_PATTERN,
|
|
13996
14058
|
Wallet,
|