@experts_hub/shared 1.0.710 → 1.0.712
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 +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +113 -49
- package/dist/index.mjs +226 -161
- package/dist/modules/onboarding/dto/freelancer-profile-question.dto.d.ts +22 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -751,9 +751,21 @@ import {
|
|
|
751
751
|
IsUUID as IsUUID11,
|
|
752
752
|
IsString as IsString11,
|
|
753
753
|
IsNotEmpty as IsNotEmpty27,
|
|
754
|
-
|
|
755
|
-
|
|
754
|
+
IsOptional as IsOptional11,
|
|
755
|
+
IsUrl,
|
|
756
|
+
IsEnum as IsEnum12
|
|
756
757
|
} from "class-validator";
|
|
758
|
+
var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
|
|
759
|
+
ModeOfWorkEnum4["ONSITE"] = "ONSITE";
|
|
760
|
+
ModeOfWorkEnum4["REMOTE"] = "REMOTE";
|
|
761
|
+
ModeOfWorkEnum4["HYBRID"] = "HYBRID";
|
|
762
|
+
ModeOfWorkEnum4["BOTH"] = "BOTH";
|
|
763
|
+
return ModeOfWorkEnum4;
|
|
764
|
+
})(ModeOfWorkEnum || {});
|
|
765
|
+
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
|
|
766
|
+
NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
|
|
767
|
+
return NatureOfWorkEnum4;
|
|
768
|
+
})(NatureOfWorkEnum || {});
|
|
757
769
|
var FreelancerProfileQuestionDto = class {
|
|
758
770
|
};
|
|
759
771
|
__decorateClass([
|
|
@@ -761,34 +773,88 @@ __decorateClass([
|
|
|
761
773
|
IsUUID11()
|
|
762
774
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
763
775
|
__decorateClass([
|
|
764
|
-
IsNotEmpty27({ message: "Please enter
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
"isImmediateJoiner"
|
|
772
|
-
])
|
|
773
|
-
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
776
|
+
IsNotEmpty27({ message: "Please enter mode of work." }),
|
|
777
|
+
IsEnum12(ModeOfWorkEnum, {
|
|
778
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
779
|
+
", "
|
|
780
|
+
)}`
|
|
781
|
+
})
|
|
782
|
+
], FreelancerProfileQuestionDto.prototype, "modeOfWork", 2);
|
|
774
783
|
__decorateClass([
|
|
775
|
-
IsNotEmpty27({ message: "Please enter
|
|
776
|
-
|
|
784
|
+
IsNotEmpty27({ message: "Please enter nature of work." }),
|
|
785
|
+
IsEnum12(NatureOfWorkEnum, {
|
|
786
|
+
message: `Nature of work must be one of: ${Object.values(NatureOfWorkEnum).join(
|
|
787
|
+
", "
|
|
788
|
+
)}`
|
|
789
|
+
})
|
|
790
|
+
], FreelancerProfileQuestionDto.prototype, "natureOfWork", 2);
|
|
777
791
|
__decorateClass([
|
|
778
|
-
|
|
792
|
+
IsNotEmpty27({ message: "Please enter number of hours." })
|
|
779
793
|
], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
794
|
+
__decorateClass([
|
|
795
|
+
IsNotEmpty27({ message: "Please enter is immediate joiner." })
|
|
796
|
+
], FreelancerProfileQuestionDto.prototype, "isImmediateJoiner", 2);
|
|
780
797
|
__decorateClass([
|
|
781
798
|
IsOptional11()
|
|
799
|
+
], FreelancerProfileQuestionDto.prototype, "availabilityToJoin", 2);
|
|
800
|
+
__decorateClass([
|
|
801
|
+
IsNotEmpty27({ message: "Please enter currency." })
|
|
782
802
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
783
803
|
__decorateClass([
|
|
784
|
-
|
|
785
|
-
], FreelancerProfileQuestionDto.prototype, "
|
|
804
|
+
IsNotEmpty27({ message: "Please enter expected hourly compensation." })
|
|
805
|
+
], FreelancerProfileQuestionDto.prototype, "expectedHourlyCompensation", 2);
|
|
806
|
+
__decorateClass([
|
|
807
|
+
IsNotEmpty27({ message: "Please enter likedin profile url." }),
|
|
808
|
+
IsString11(),
|
|
809
|
+
IsUrl(
|
|
810
|
+
{ require_protocol: false },
|
|
811
|
+
{
|
|
812
|
+
message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
], FreelancerProfileQuestionDto.prototype, "linkedinProfileLink", 2);
|
|
816
|
+
__decorateClass([
|
|
817
|
+
IsOptional11(),
|
|
818
|
+
IsUrl(
|
|
819
|
+
{ require_protocol: false },
|
|
820
|
+
{
|
|
821
|
+
message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
822
|
+
}
|
|
823
|
+
)
|
|
824
|
+
], FreelancerProfileQuestionDto.prototype, "kaggleProfileLink", 2);
|
|
825
|
+
__decorateClass([
|
|
826
|
+
IsOptional11(),
|
|
827
|
+
IsUrl(
|
|
828
|
+
{ require_protocol: false },
|
|
829
|
+
{
|
|
830
|
+
message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
831
|
+
}
|
|
832
|
+
)
|
|
833
|
+
], FreelancerProfileQuestionDto.prototype, "githubProfileLink", 2);
|
|
834
|
+
__decorateClass([
|
|
835
|
+
IsOptional11(),
|
|
836
|
+
IsUrl(
|
|
837
|
+
{ require_protocol: false },
|
|
838
|
+
{
|
|
839
|
+
message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
840
|
+
}
|
|
841
|
+
)
|
|
842
|
+
], FreelancerProfileQuestionDto.prototype, "stackOverflowProfileLink", 2);
|
|
843
|
+
__decorateClass([
|
|
844
|
+
IsOptional11(),
|
|
845
|
+
IsUrl(
|
|
846
|
+
{ require_protocol: false },
|
|
847
|
+
{
|
|
848
|
+
message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
|
|
849
|
+
}
|
|
850
|
+
)
|
|
851
|
+
], FreelancerProfileQuestionDto.prototype, "portfolioLink", 2);
|
|
786
852
|
|
|
787
853
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
788
854
|
import {
|
|
789
855
|
IsNotEmpty as IsNotEmpty28,
|
|
790
856
|
IsOptional as IsOptional12,
|
|
791
|
-
IsUrl,
|
|
857
|
+
IsUrl as IsUrl2,
|
|
792
858
|
IsString as IsString12,
|
|
793
859
|
IsUUID as IsUUID12
|
|
794
860
|
} from "class-validator";
|
|
@@ -801,7 +867,7 @@ __decorateClass([
|
|
|
801
867
|
__decorateClass([
|
|
802
868
|
IsNotEmpty28({ message: "Please enter likedin profile url." }),
|
|
803
869
|
IsString12(),
|
|
804
|
-
|
|
870
|
+
IsUrl2(
|
|
805
871
|
{ require_protocol: false },
|
|
806
872
|
{
|
|
807
873
|
message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -810,7 +876,7 @@ __decorateClass([
|
|
|
810
876
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
811
877
|
__decorateClass([
|
|
812
878
|
IsOptional12(),
|
|
813
|
-
|
|
879
|
+
IsUrl2(
|
|
814
880
|
{ require_protocol: false },
|
|
815
881
|
{
|
|
816
882
|
message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -819,7 +885,7 @@ __decorateClass([
|
|
|
819
885
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
820
886
|
__decorateClass([
|
|
821
887
|
IsOptional12(),
|
|
822
|
-
|
|
888
|
+
IsUrl2(
|
|
823
889
|
{ require_protocol: false },
|
|
824
890
|
{
|
|
825
891
|
message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -828,7 +894,7 @@ __decorateClass([
|
|
|
828
894
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
829
895
|
__decorateClass([
|
|
830
896
|
IsOptional12(),
|
|
831
|
-
|
|
897
|
+
IsUrl2(
|
|
832
898
|
{ require_protocol: false },
|
|
833
899
|
{
|
|
834
900
|
message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -837,7 +903,7 @@ __decorateClass([
|
|
|
837
903
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
838
904
|
__decorateClass([
|
|
839
905
|
IsOptional12(),
|
|
840
|
-
|
|
906
|
+
IsUrl2(
|
|
841
907
|
{ require_protocol: false },
|
|
842
908
|
{
|
|
843
909
|
message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -850,7 +916,7 @@ import {
|
|
|
850
916
|
IsUUID as IsUUID13,
|
|
851
917
|
IsString as IsString13,
|
|
852
918
|
IsNotEmpty as IsNotEmpty29,
|
|
853
|
-
IsIn
|
|
919
|
+
IsIn,
|
|
854
920
|
ValidateIf,
|
|
855
921
|
IsOptional as IsOptional13
|
|
856
922
|
} from "class-validator";
|
|
@@ -863,7 +929,7 @@ __decorateClass([
|
|
|
863
929
|
__decorateClass([
|
|
864
930
|
IsNotEmpty29({ message: "Please enter question slug." }),
|
|
865
931
|
IsString13(),
|
|
866
|
-
|
|
932
|
+
IsIn([
|
|
867
933
|
"skills",
|
|
868
934
|
"requiredFreelancer",
|
|
869
935
|
"kindOfHiring",
|
|
@@ -952,7 +1018,7 @@ var SUBADMIN_PATTERN = {
|
|
|
952
1018
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
953
1019
|
import {
|
|
954
1020
|
IsNotEmpty as IsNotEmpty32,
|
|
955
|
-
IsEnum as
|
|
1021
|
+
IsEnum as IsEnum13
|
|
956
1022
|
} from "class-validator";
|
|
957
1023
|
var AccountType = /* @__PURE__ */ ((AccountType4) => {
|
|
958
1024
|
AccountType4["ADMIN"] = "ADMIN";
|
|
@@ -972,7 +1038,7 @@ __decorateClass([
|
|
|
972
1038
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
973
1039
|
__decorateClass([
|
|
974
1040
|
IsNotEmpty32({ message: "Please enter account type." }),
|
|
975
|
-
|
|
1041
|
+
IsEnum13(AccountType, {
|
|
976
1042
|
message: `Account type must be one of: ${Object.values(AccountType).join(", ")}`
|
|
977
1043
|
})
|
|
978
1044
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
@@ -993,7 +1059,7 @@ __decorateClass([
|
|
|
993
1059
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
994
1060
|
|
|
995
1061
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
996
|
-
import { IsEnum as
|
|
1062
|
+
import { IsEnum as IsEnum14 } from "class-validator";
|
|
997
1063
|
|
|
998
1064
|
// src/entities/user.entity.ts
|
|
999
1065
|
import {
|
|
@@ -6964,14 +7030,14 @@ User = __decorateClass([
|
|
|
6964
7030
|
var UpdateSubAdminAccountStatusDto = class {
|
|
6965
7031
|
};
|
|
6966
7032
|
__decorateClass([
|
|
6967
|
-
|
|
7033
|
+
IsEnum14(AccountStatus, {
|
|
6968
7034
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
6969
7035
|
})
|
|
6970
7036
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
6971
7037
|
|
|
6972
7038
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
6973
7039
|
import { Transform } from "class-transformer";
|
|
6974
|
-
import { IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional15, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength6, IsEnum as
|
|
7040
|
+
import { IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional15, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength6, IsEnum as IsEnum15 } from "class-validator";
|
|
6975
7041
|
var AccountType3 = /* @__PURE__ */ ((AccountType4) => {
|
|
6976
7042
|
AccountType4["ADMIN"] = "ADMIN";
|
|
6977
7043
|
AccountType4["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -6990,7 +7056,7 @@ __decorateClass([
|
|
|
6990
7056
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
6991
7057
|
__decorateClass([
|
|
6992
7058
|
IsNotEmpty33({ message: "Please enter account type." }),
|
|
6993
|
-
|
|
7059
|
+
IsEnum15(AccountType3, {
|
|
6994
7060
|
message: `Account type must be one of: ${Object.values(AccountType3).join(", ")}`
|
|
6995
7061
|
})
|
|
6996
7062
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
@@ -7049,7 +7115,7 @@ import {
|
|
|
7049
7115
|
IsNotEmpty as IsNotEmpty34,
|
|
7050
7116
|
IsEmail as IsEmail6,
|
|
7051
7117
|
Length as Length2,
|
|
7052
|
-
IsUrl as
|
|
7118
|
+
IsUrl as IsUrl3,
|
|
7053
7119
|
IsOptional as IsOptional16,
|
|
7054
7120
|
ValidateIf as ValidateIf2,
|
|
7055
7121
|
IsNumber
|
|
@@ -7066,7 +7132,7 @@ __decorateClass([
|
|
|
7066
7132
|
__decorateClass([
|
|
7067
7133
|
IsOptional16(),
|
|
7068
7134
|
ValidateIf2((o) => o.webSite !== ""),
|
|
7069
|
-
|
|
7135
|
+
IsUrl3({}, { message: "Invalid website URL format" })
|
|
7070
7136
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
7071
7137
|
__decorateClass([
|
|
7072
7138
|
IsOptional16(),
|
|
@@ -7347,7 +7413,7 @@ import {
|
|
|
7347
7413
|
ArrayNotEmpty,
|
|
7348
7414
|
IsNumber as IsNumber3,
|
|
7349
7415
|
IsOptional as IsOptional21,
|
|
7350
|
-
IsEnum as
|
|
7416
|
+
IsEnum as IsEnum16,
|
|
7351
7417
|
Min,
|
|
7352
7418
|
ValidateIf as ValidateIf3,
|
|
7353
7419
|
MaxLength as MaxLength6,
|
|
@@ -7416,7 +7482,7 @@ __decorateClass([
|
|
|
7416
7482
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
7417
7483
|
__decorateClass([
|
|
7418
7484
|
ValidateIf3((o) => !o.isDraft),
|
|
7419
|
-
|
|
7485
|
+
IsEnum16(JobLocationEnum2, {
|
|
7420
7486
|
message: `Location must be one of: ${Object.values(JobLocationEnum2).join(
|
|
7421
7487
|
", "
|
|
7422
7488
|
)}`
|
|
@@ -7439,7 +7505,7 @@ __decorateClass([
|
|
|
7439
7505
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
7440
7506
|
__decorateClass([
|
|
7441
7507
|
ValidateIf3((o) => !o.isDraft),
|
|
7442
|
-
|
|
7508
|
+
IsEnum16(EmploymentType, {
|
|
7443
7509
|
message: `Type of employment must be one of: ${Object.values(
|
|
7444
7510
|
EmploymentType
|
|
7445
7511
|
).join(", ")}`
|
|
@@ -7522,7 +7588,7 @@ __decorateClass([
|
|
|
7522
7588
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
7523
7589
|
|
|
7524
7590
|
// src/modules/job/dto/job-description.dto.ts
|
|
7525
|
-
import { IsString as IsString24, IsNotEmpty as IsNotEmpty44,
|
|
7591
|
+
import { IsString as IsString24, IsNotEmpty as IsNotEmpty44, IsOptional as IsOptional23 } from "class-validator";
|
|
7526
7592
|
import { Type as Type2 } from "class-transformer";
|
|
7527
7593
|
var JobDescriptionDto = class {
|
|
7528
7594
|
constructor() {
|
|
@@ -7535,8 +7601,7 @@ __decorateClass([
|
|
|
7535
7601
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
7536
7602
|
__decorateClass([
|
|
7537
7603
|
IsNotEmpty44({ message: "Please enter job description" }),
|
|
7538
|
-
IsString24({ message: "Description must be a string" })
|
|
7539
|
-
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7604
|
+
IsString24({ message: "Description must be a string" })
|
|
7540
7605
|
], JobDescriptionDto.prototype, "description", 2);
|
|
7541
7606
|
|
|
7542
7607
|
// src/modules/job/dto/create-job-via-ai.dto..ts
|
|
@@ -7547,7 +7612,7 @@ import {
|
|
|
7547
7612
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
7548
7613
|
IsNumber as IsNumber4,
|
|
7549
7614
|
IsOptional as IsOptional24,
|
|
7550
|
-
IsEnum as
|
|
7615
|
+
IsEnum as IsEnum17,
|
|
7551
7616
|
Min as Min2,
|
|
7552
7617
|
ValidateIf as ValidateIf4,
|
|
7553
7618
|
MaxLength as MaxLength9,
|
|
@@ -7659,7 +7724,7 @@ __decorateClass([
|
|
|
7659
7724
|
], CreateJobViaAIDto.prototype, "openings", 2);
|
|
7660
7725
|
__decorateClass([
|
|
7661
7726
|
ValidateIf4((o) => !o.isDraft),
|
|
7662
|
-
|
|
7727
|
+
IsEnum17(JobLocationEnumV2, {
|
|
7663
7728
|
message: `Location must be one of: ${Object.values(JobLocationEnumV2).join(
|
|
7664
7729
|
", "
|
|
7665
7730
|
)}`
|
|
@@ -7671,7 +7736,7 @@ __decorateClass([
|
|
|
7671
7736
|
], CreateJobViaAIDto.prototype, "locations", 2);
|
|
7672
7737
|
__decorateClass([
|
|
7673
7738
|
ValidateIf4((o) => !o.isDraft),
|
|
7674
|
-
|
|
7739
|
+
IsEnum17(EmploymentTypeV2, {
|
|
7675
7740
|
message: `Type of employment must be one of: ${Object.values(
|
|
7676
7741
|
EmploymentTypeV2
|
|
7677
7742
|
).join(", ")}`
|
|
@@ -7679,7 +7744,7 @@ __decorateClass([
|
|
|
7679
7744
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
7680
7745
|
__decorateClass([
|
|
7681
7746
|
IsOptional24(),
|
|
7682
|
-
|
|
7747
|
+
IsEnum17(BillingCycleEnumV2, {
|
|
7683
7748
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV2).join(", ")}`
|
|
7684
7749
|
})
|
|
7685
7750
|
], CreateJobViaAIDto.prototype, "billingCycle", 2);
|
|
@@ -7767,7 +7832,7 @@ __decorateClass([
|
|
|
7767
7832
|
], CreateJobViaAIDto.prototype, "businessIndustry", 2);
|
|
7768
7833
|
__decorateClass([
|
|
7769
7834
|
IsOptional24(),
|
|
7770
|
-
|
|
7835
|
+
IsEnum17(StepCompletedEnumV2, {
|
|
7771
7836
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
7772
7837
|
StepCompletedEnumV2
|
|
7773
7838
|
).join(", ")}`
|
|
@@ -7788,7 +7853,7 @@ __decorateClass([
|
|
|
7788
7853
|
], CreateJobViaAIDto.prototype, "dealBreakers", 2);
|
|
7789
7854
|
|
|
7790
7855
|
// src/modules/job/dto/job-status.dto.ts
|
|
7791
|
-
import { IsEnum as
|
|
7856
|
+
import { IsEnum as IsEnum18, IsNotEmpty as IsNotEmpty46 } from "class-validator";
|
|
7792
7857
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
7793
7858
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
7794
7859
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -7802,7 +7867,7 @@ var JobStatusDto = class {
|
|
|
7802
7867
|
};
|
|
7803
7868
|
__decorateClass([
|
|
7804
7869
|
IsNotEmpty46({ message: "Please provide a job status" }),
|
|
7805
|
-
|
|
7870
|
+
IsEnum18(JobStatus, {
|
|
7806
7871
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
7807
7872
|
})
|
|
7808
7873
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -7825,7 +7890,7 @@ import {
|
|
|
7825
7890
|
ArrayNotEmpty as ArrayNotEmpty3,
|
|
7826
7891
|
IsNumber as IsNumber5,
|
|
7827
7892
|
IsOptional as IsOptional25,
|
|
7828
|
-
IsEnum as
|
|
7893
|
+
IsEnum as IsEnum19,
|
|
7829
7894
|
Min as Min3,
|
|
7830
7895
|
ValidateIf as ValidateIf5,
|
|
7831
7896
|
MaxLength as MaxLength10,
|
|
@@ -7933,7 +7998,7 @@ __decorateClass([
|
|
|
7933
7998
|
], JobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7934
7999
|
__decorateClass([
|
|
7935
8000
|
ValidateIf5((o) => !o.isDraft),
|
|
7936
|
-
|
|
8001
|
+
IsEnum19(JobLocationEnumV22, {
|
|
7937
8002
|
message: `Location must be one of: ${Object.values(JobLocationEnumV22).join(
|
|
7938
8003
|
", "
|
|
7939
8004
|
)}`
|
|
@@ -7945,7 +8010,7 @@ __decorateClass([
|
|
|
7945
8010
|
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7946
8011
|
__decorateClass([
|
|
7947
8012
|
ValidateIf5((o) => !o.isDraft),
|
|
7948
|
-
|
|
8013
|
+
IsEnum19(EmploymentTypeV22, {
|
|
7949
8014
|
message: `Type of employment must be one of: ${Object.values(
|
|
7950
8015
|
EmploymentTypeV22
|
|
7951
8016
|
).join(", ")}`
|
|
@@ -7953,7 +8018,7 @@ __decorateClass([
|
|
|
7953
8018
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7954
8019
|
__decorateClass([
|
|
7955
8020
|
IsOptional25(),
|
|
7956
|
-
|
|
8021
|
+
IsEnum19(BillingCycleEnumV22, {
|
|
7957
8022
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV22).join(", ")}`
|
|
7958
8023
|
})
|
|
7959
8024
|
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
@@ -8041,7 +8106,7 @@ __decorateClass([
|
|
|
8041
8106
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
8042
8107
|
__decorateClass([
|
|
8043
8108
|
IsOptional25(),
|
|
8044
|
-
|
|
8109
|
+
IsEnum19(StepCompletedEnumV22, {
|
|
8045
8110
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
8046
8111
|
StepCompletedEnumV22
|
|
8047
8112
|
).join(", ")}`
|
|
@@ -8079,7 +8144,7 @@ __decorateClass([
|
|
|
8079
8144
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
8080
8145
|
|
|
8081
8146
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
8082
|
-
import { IsEnum as
|
|
8147
|
+
import { IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty49 } from "class-validator";
|
|
8083
8148
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
8084
8149
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
8085
8150
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -8092,13 +8157,13 @@ var ChangeJobApplicationStatusDto = class {
|
|
|
8092
8157
|
};
|
|
8093
8158
|
__decorateClass([
|
|
8094
8159
|
IsNotEmpty49({ message: "Status is required" }),
|
|
8095
|
-
|
|
8160
|
+
IsEnum20(JobApplicationStatus, {
|
|
8096
8161
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
8097
8162
|
})
|
|
8098
8163
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
8099
8164
|
|
|
8100
8165
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
8101
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as
|
|
8166
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsEnum as IsEnum21, IsNotEmpty as IsNotEmpty50, IsNumber as IsNumber6 } from "class-validator";
|
|
8102
8167
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
8103
8168
|
};
|
|
8104
8169
|
__decorateClass([
|
|
@@ -8108,7 +8173,7 @@ __decorateClass([
|
|
|
8108
8173
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
8109
8174
|
__decorateClass([
|
|
8110
8175
|
IsNotEmpty50({ message: "Status is required" }),
|
|
8111
|
-
|
|
8176
|
+
IsEnum21(JobApplicationStatus, {
|
|
8112
8177
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
8113
8178
|
})
|
|
8114
8179
|
], ChangeJobApplicationStatusBulkDto.prototype, "status", 2);
|
|
@@ -8187,7 +8252,7 @@ import {
|
|
|
8187
8252
|
IsString as IsString30,
|
|
8188
8253
|
IsEmail as IsEmail7,
|
|
8189
8254
|
IsNumber as IsNumber7,
|
|
8190
|
-
IsEnum as
|
|
8255
|
+
IsEnum as IsEnum22,
|
|
8191
8256
|
IsNotEmpty as IsNotEmpty52,
|
|
8192
8257
|
ValidateIf as ValidateIf6,
|
|
8193
8258
|
IsInt
|
|
@@ -8263,7 +8328,7 @@ __decorateClass([
|
|
|
8263
8328
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
8264
8329
|
__decorateClass([
|
|
8265
8330
|
IsNotEmpty52({ message: "Please select engagement type." }),
|
|
8266
|
-
|
|
8331
|
+
IsEnum22(NatureOfWorkDto, {
|
|
8267
8332
|
message: `Engagement Type must be one of: ${Object.values(
|
|
8268
8333
|
NatureOfWorkDto
|
|
8269
8334
|
).join(", ")}`
|
|
@@ -8271,7 +8336,7 @@ __decorateClass([
|
|
|
8271
8336
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
8272
8337
|
__decorateClass([
|
|
8273
8338
|
IsNotEmpty52({ message: "Please select mode of work." }),
|
|
8274
|
-
|
|
8339
|
+
IsEnum22(ModeOfWorkDto, {
|
|
8275
8340
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
8276
8341
|
", "
|
|
8277
8342
|
)}`
|
|
@@ -8410,7 +8475,7 @@ var BANK_PATTERN = {
|
|
|
8410
8475
|
|
|
8411
8476
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
8412
8477
|
import {
|
|
8413
|
-
IsEnum as
|
|
8478
|
+
IsEnum as IsEnum23,
|
|
8414
8479
|
IsNotEmpty as IsNotEmpty58,
|
|
8415
8480
|
IsOptional as IsOptional30,
|
|
8416
8481
|
IsString as IsString34,
|
|
@@ -8468,7 +8533,7 @@ __decorateClass([
|
|
|
8468
8533
|
IsOptional30()
|
|
8469
8534
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
8470
8535
|
__decorateClass([
|
|
8471
|
-
|
|
8536
|
+
IsEnum23(BankAccountScope, {
|
|
8472
8537
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
8473
8538
|
BankAccountScope
|
|
8474
8539
|
).join(", ")}`
|
|
@@ -8490,7 +8555,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
8490
8555
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
8491
8556
|
import {
|
|
8492
8557
|
IsBoolean as IsBoolean4,
|
|
8493
|
-
IsEnum as
|
|
8558
|
+
IsEnum as IsEnum24
|
|
8494
8559
|
} from "class-validator";
|
|
8495
8560
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
8496
8561
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -8503,7 +8568,7 @@ __decorateClass([
|
|
|
8503
8568
|
IsBoolean4()
|
|
8504
8569
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
8505
8570
|
__decorateClass([
|
|
8506
|
-
|
|
8571
|
+
IsEnum24(SystemPreferenceKey, {
|
|
8507
8572
|
message: `key must be one of: ${Object.values(
|
|
8508
8573
|
SystemPreferenceKey
|
|
8509
8574
|
).join(", ")}`
|
|
@@ -8630,7 +8695,7 @@ var RATING_PATTERN = {
|
|
|
8630
8695
|
|
|
8631
8696
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
8632
8697
|
import {
|
|
8633
|
-
IsEnum as
|
|
8698
|
+
IsEnum as IsEnum25,
|
|
8634
8699
|
IsInt as IsInt2,
|
|
8635
8700
|
IsNotEmpty as IsNotEmpty61,
|
|
8636
8701
|
IsOptional as IsOptional32,
|
|
@@ -8654,7 +8719,7 @@ __decorateClass([
|
|
|
8654
8719
|
IsNotEmpty61({ message: "Job ID is required" })
|
|
8655
8720
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
8656
8721
|
__decorateClass([
|
|
8657
|
-
|
|
8722
|
+
IsEnum25(RatingTypeEnum, {
|
|
8658
8723
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
8659
8724
|
})
|
|
8660
8725
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -9083,9 +9148,9 @@ import {
|
|
|
9083
9148
|
IsEmail as IsEmail13,
|
|
9084
9149
|
IsBoolean as IsBoolean11,
|
|
9085
9150
|
IsOptional as IsOptional41,
|
|
9086
|
-
IsEnum as
|
|
9151
|
+
IsEnum as IsEnum26,
|
|
9087
9152
|
IsNumber as IsNumber10,
|
|
9088
|
-
IsUrl as
|
|
9153
|
+
IsUrl as IsUrl4,
|
|
9089
9154
|
MaxLength as MaxLength18,
|
|
9090
9155
|
MinLength as MinLength17,
|
|
9091
9156
|
Matches as Matches13,
|
|
@@ -9094,18 +9159,18 @@ import {
|
|
|
9094
9159
|
IsInt as IsInt7
|
|
9095
9160
|
} from "class-validator";
|
|
9096
9161
|
import { Transform as Transform2 } from "class-transformer";
|
|
9097
|
-
var
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
return
|
|
9102
|
-
})(
|
|
9103
|
-
var
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
return
|
|
9108
|
-
})(
|
|
9162
|
+
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
|
|
9163
|
+
NatureOfWorkEnum4["FTE"] = "FTE";
|
|
9164
|
+
NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
|
|
9165
|
+
NatureOfWorkEnum4["BOTH"] = "BOTH";
|
|
9166
|
+
return NatureOfWorkEnum4;
|
|
9167
|
+
})(NatureOfWorkEnum2 || {});
|
|
9168
|
+
var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
|
|
9169
|
+
ModeOfWorkEnum4["REMOTE"] = "REMOTE";
|
|
9170
|
+
ModeOfWorkEnum4["ONSITE"] = "ONSITE";
|
|
9171
|
+
ModeOfWorkEnum4["HYBRID"] = "HYBRID";
|
|
9172
|
+
return ModeOfWorkEnum4;
|
|
9173
|
+
})(ModeOfWorkEnum2 || {});
|
|
9109
9174
|
var CreateFreelancerDto = class {
|
|
9110
9175
|
};
|
|
9111
9176
|
__decorateClass([
|
|
@@ -9275,9 +9340,9 @@ __decorateClass([
|
|
|
9275
9340
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
9276
9341
|
__decorateClass([
|
|
9277
9342
|
IsOptional41(),
|
|
9278
|
-
|
|
9343
|
+
IsEnum26(NatureOfWorkEnum2, {
|
|
9279
9344
|
message: `Nature of work must be one of: ${Object.values(
|
|
9280
|
-
|
|
9345
|
+
NatureOfWorkEnum2
|
|
9281
9346
|
).join(", ")}`
|
|
9282
9347
|
})
|
|
9283
9348
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
@@ -9319,8 +9384,8 @@ __decorateClass([
|
|
|
9319
9384
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9320
9385
|
__decorateClass([
|
|
9321
9386
|
IsOptional41(),
|
|
9322
|
-
|
|
9323
|
-
message: `Mode of work must be one of: ${Object.values(
|
|
9387
|
+
IsEnum26(ModeOfWorkEnum2, {
|
|
9388
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
9324
9389
|
", "
|
|
9325
9390
|
)}`
|
|
9326
9391
|
})
|
|
@@ -9351,7 +9416,7 @@ __decorateClass([
|
|
|
9351
9416
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
9352
9417
|
__decorateClass([
|
|
9353
9418
|
IsOptional41(),
|
|
9354
|
-
|
|
9419
|
+
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
9355
9420
|
Transform2(({ value }) => {
|
|
9356
9421
|
if (Array.isArray(value)) {
|
|
9357
9422
|
const val = value[0];
|
|
@@ -9377,7 +9442,7 @@ __decorateClass([
|
|
|
9377
9442
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
9378
9443
|
__decorateClass([
|
|
9379
9444
|
IsOptional41(),
|
|
9380
|
-
|
|
9445
|
+
IsUrl4({}, { message: "GitHub profile link must be a valid URL" }),
|
|
9381
9446
|
Transform2(({ value }) => {
|
|
9382
9447
|
if (Array.isArray(value)) {
|
|
9383
9448
|
const val = value[0];
|
|
@@ -9390,7 +9455,7 @@ __decorateClass([
|
|
|
9390
9455
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
9391
9456
|
__decorateClass([
|
|
9392
9457
|
IsOptional41(),
|
|
9393
|
-
|
|
9458
|
+
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
9394
9459
|
Transform2(({ value }) => {
|
|
9395
9460
|
if (Array.isArray(value)) {
|
|
9396
9461
|
const val = value[0];
|
|
@@ -9403,7 +9468,7 @@ __decorateClass([
|
|
|
9403
9468
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
9404
9469
|
__decorateClass([
|
|
9405
9470
|
IsOptional41(),
|
|
9406
|
-
|
|
9471
|
+
IsUrl4({}, { message: "Portfolio link must be a valid URL" }),
|
|
9407
9472
|
Transform2(({ value }) => {
|
|
9408
9473
|
if (Array.isArray(value)) {
|
|
9409
9474
|
const val = value[0];
|
|
@@ -9424,9 +9489,9 @@ import {
|
|
|
9424
9489
|
IsEmail as IsEmail14,
|
|
9425
9490
|
IsBoolean as IsBoolean12,
|
|
9426
9491
|
IsOptional as IsOptional42,
|
|
9427
|
-
IsEnum as
|
|
9492
|
+
IsEnum as IsEnum27,
|
|
9428
9493
|
IsNumber as IsNumber11,
|
|
9429
|
-
IsUrl as
|
|
9494
|
+
IsUrl as IsUrl5,
|
|
9430
9495
|
MaxLength as MaxLength19,
|
|
9431
9496
|
MinLength as MinLength18,
|
|
9432
9497
|
Matches as Matches14,
|
|
@@ -9435,18 +9500,18 @@ import {
|
|
|
9435
9500
|
IsInt as IsInt8
|
|
9436
9501
|
} from "class-validator";
|
|
9437
9502
|
import { Transform as Transform3 } from "class-transformer";
|
|
9438
|
-
var
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
return
|
|
9443
|
-
})(
|
|
9444
|
-
var
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
return
|
|
9449
|
-
})(
|
|
9503
|
+
var NatureOfWorkEnum3 = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
|
|
9504
|
+
NatureOfWorkEnum4["FTE"] = "FTE";
|
|
9505
|
+
NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
|
|
9506
|
+
NatureOfWorkEnum4["BOTH"] = "BOTH";
|
|
9507
|
+
return NatureOfWorkEnum4;
|
|
9508
|
+
})(NatureOfWorkEnum3 || {});
|
|
9509
|
+
var ModeOfWorkEnum3 = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
|
|
9510
|
+
ModeOfWorkEnum4["REMOTE"] = "REMOTE";
|
|
9511
|
+
ModeOfWorkEnum4["ONSITE"] = "ONSITE";
|
|
9512
|
+
ModeOfWorkEnum4["HYBRID"] = "HYBRID";
|
|
9513
|
+
return ModeOfWorkEnum4;
|
|
9514
|
+
})(ModeOfWorkEnum3 || {});
|
|
9450
9515
|
var UpdateFreelancerDto = class {
|
|
9451
9516
|
};
|
|
9452
9517
|
__decorateClass([
|
|
@@ -9605,9 +9670,9 @@ __decorateClass([
|
|
|
9605
9670
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
9606
9671
|
__decorateClass([
|
|
9607
9672
|
IsOptional42(),
|
|
9608
|
-
|
|
9673
|
+
IsEnum27(NatureOfWorkEnum3, {
|
|
9609
9674
|
message: `Nature of work must be one of: ${Object.values(
|
|
9610
|
-
|
|
9675
|
+
NatureOfWorkEnum3
|
|
9611
9676
|
).join(", ")}`
|
|
9612
9677
|
})
|
|
9613
9678
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
@@ -9649,8 +9714,8 @@ __decorateClass([
|
|
|
9649
9714
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9650
9715
|
__decorateClass([
|
|
9651
9716
|
IsOptional42(),
|
|
9652
|
-
|
|
9653
|
-
message: `Mode of work must be one of: ${Object.values(
|
|
9717
|
+
IsEnum27(ModeOfWorkEnum3, {
|
|
9718
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum3).join(
|
|
9654
9719
|
", "
|
|
9655
9720
|
)}`
|
|
9656
9721
|
})
|
|
@@ -9681,7 +9746,7 @@ __decorateClass([
|
|
|
9681
9746
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
9682
9747
|
__decorateClass([
|
|
9683
9748
|
IsOptional42(),
|
|
9684
|
-
|
|
9749
|
+
IsUrl5({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
9685
9750
|
Transform3(({ value }) => {
|
|
9686
9751
|
if (Array.isArray(value)) {
|
|
9687
9752
|
const val = value[0];
|
|
@@ -9707,7 +9772,7 @@ __decorateClass([
|
|
|
9707
9772
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
9708
9773
|
__decorateClass([
|
|
9709
9774
|
IsOptional42(),
|
|
9710
|
-
|
|
9775
|
+
IsUrl5({}, { message: "GitHub profile link must be a valid URL" }),
|
|
9711
9776
|
Transform3(({ value }) => {
|
|
9712
9777
|
if (Array.isArray(value)) {
|
|
9713
9778
|
const val = value[0];
|
|
@@ -9720,7 +9785,7 @@ __decorateClass([
|
|
|
9720
9785
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
9721
9786
|
__decorateClass([
|
|
9722
9787
|
IsOptional42(),
|
|
9723
|
-
|
|
9788
|
+
IsUrl5({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
9724
9789
|
Transform3(({ value }) => {
|
|
9725
9790
|
if (Array.isArray(value)) {
|
|
9726
9791
|
const val = value[0];
|
|
@@ -9733,7 +9798,7 @@ __decorateClass([
|
|
|
9733
9798
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
9734
9799
|
__decorateClass([
|
|
9735
9800
|
IsOptional42(),
|
|
9736
|
-
|
|
9801
|
+
IsUrl5({}, { message: "Portfolio link must be a valid URL" }),
|
|
9737
9802
|
Transform3(({ value }) => {
|
|
9738
9803
|
if (Array.isArray(value)) {
|
|
9739
9804
|
const val = value[0];
|
|
@@ -9758,7 +9823,7 @@ __decorateClass([
|
|
|
9758
9823
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
9759
9824
|
|
|
9760
9825
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
9761
|
-
import { IsEnum as
|
|
9826
|
+
import { IsEnum as IsEnum28, IsOptional as IsOptional43, IsString as IsString49 } from "class-validator";
|
|
9762
9827
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
9763
9828
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
9764
9829
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -9769,7 +9834,7 @@ var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
|
9769
9834
|
var UpdateAssessmentRequestStatusDto = class {
|
|
9770
9835
|
};
|
|
9771
9836
|
__decorateClass([
|
|
9772
|
-
|
|
9837
|
+
IsEnum28(AssessmentRequestStatus, {
|
|
9773
9838
|
message: `Status must be one of: ${Object.values(AssessmentRequestStatus).join(", ")}`
|
|
9774
9839
|
})
|
|
9775
9840
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
@@ -9793,11 +9858,11 @@ __decorateClass([
|
|
|
9793
9858
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
9794
9859
|
|
|
9795
9860
|
// src/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.ts
|
|
9796
|
-
import { IsEnum as
|
|
9861
|
+
import { IsEnum as IsEnum29 } from "class-validator";
|
|
9797
9862
|
var UpdateAdminFreelancerAccountStatusDto = class {
|
|
9798
9863
|
};
|
|
9799
9864
|
__decorateClass([
|
|
9800
|
-
|
|
9865
|
+
IsEnum29(AccountStatus, {
|
|
9801
9866
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
9802
9867
|
})
|
|
9803
9868
|
], UpdateAdminFreelancerAccountStatusDto.prototype, "accountStatus", 2);
|
|
@@ -9857,7 +9922,7 @@ import {
|
|
|
9857
9922
|
MaxLength as MaxLength20,
|
|
9858
9923
|
Matches as Matches16,
|
|
9859
9924
|
IsInt as IsInt9,
|
|
9860
|
-
IsUrl as
|
|
9925
|
+
IsUrl as IsUrl6
|
|
9861
9926
|
} from "class-validator";
|
|
9862
9927
|
import { Type as Type9 } from "class-transformer";
|
|
9863
9928
|
var CreateClientDto = class {
|
|
@@ -9912,7 +9977,7 @@ __decorateClass([
|
|
|
9912
9977
|
], CreateClientDto.prototype, "about", 2);
|
|
9913
9978
|
__decorateClass([
|
|
9914
9979
|
IsOptional45(),
|
|
9915
|
-
|
|
9980
|
+
IsUrl6({}, { message: "Website must be a valid URL." })
|
|
9916
9981
|
], CreateClientDto.prototype, "webSite", 2);
|
|
9917
9982
|
__decorateClass([
|
|
9918
9983
|
IsOptional45(),
|
|
@@ -9948,11 +10013,11 @@ __decorateClass([
|
|
|
9948
10013
|
], CreateClientDto.prototype, "markupPercentage", 2);
|
|
9949
10014
|
|
|
9950
10015
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
9951
|
-
import { IsEnum as
|
|
10016
|
+
import { IsEnum as IsEnum31 } from "class-validator";
|
|
9952
10017
|
var UpdateClientAccountStatusDto = class {
|
|
9953
10018
|
};
|
|
9954
10019
|
__decorateClass([
|
|
9955
|
-
|
|
10020
|
+
IsEnum31(AccountStatus, {
|
|
9956
10021
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
9957
10022
|
})
|
|
9958
10023
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
@@ -10063,11 +10128,11 @@ __decorateClass([
|
|
|
10063
10128
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
10064
10129
|
|
|
10065
10130
|
// src/modules/client-admin/dto/update-admin-client-account-status.dto.ts
|
|
10066
|
-
import { IsEnum as
|
|
10131
|
+
import { IsEnum as IsEnum33 } from "class-validator";
|
|
10067
10132
|
var UpdateAdminClientAccountStatusDto = class {
|
|
10068
10133
|
};
|
|
10069
10134
|
__decorateClass([
|
|
10070
|
-
|
|
10135
|
+
IsEnum33(AccountStatus, {
|
|
10071
10136
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
10072
10137
|
})
|
|
10073
10138
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
@@ -10097,7 +10162,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
10097
10162
|
};
|
|
10098
10163
|
|
|
10099
10164
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
10100
|
-
import { IsOptional as IsOptional48, IsEnum as
|
|
10165
|
+
import { IsOptional as IsOptional48, IsEnum as IsEnum34, IsString as IsString53, IsNotEmpty as IsNotEmpty78, IsIn as IsIn2 } from "class-validator";
|
|
10101
10166
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
10102
10167
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
10103
10168
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -10112,12 +10177,12 @@ __decorateClass([
|
|
|
10112
10177
|
IsString53({ message: "UUID must be a string" })
|
|
10113
10178
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
10114
10179
|
__decorateClass([
|
|
10115
|
-
|
|
10180
|
+
IsEnum34(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
10116
10181
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
10117
10182
|
__decorateClass([
|
|
10118
10183
|
IsNotEmpty78({ message: "Please accept the declaration " }),
|
|
10119
10184
|
IsString53(),
|
|
10120
|
-
|
|
10185
|
+
IsIn2([
|
|
10121
10186
|
"true"
|
|
10122
10187
|
])
|
|
10123
10188
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -10251,7 +10316,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
10251
10316
|
import { Type as Type13 } from "class-transformer";
|
|
10252
10317
|
import {
|
|
10253
10318
|
IsString as IsString54,
|
|
10254
|
-
IsEnum as
|
|
10319
|
+
IsEnum as IsEnum35,
|
|
10255
10320
|
IsInt as IsInt10,
|
|
10256
10321
|
IsOptional as IsOptional53,
|
|
10257
10322
|
IsArray as IsArray18,
|
|
@@ -10293,14 +10358,14 @@ __decorateClass([
|
|
|
10293
10358
|
Min7(1, { message: "There must be at least one opening." })
|
|
10294
10359
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
10295
10360
|
__decorateClass([
|
|
10296
|
-
|
|
10361
|
+
IsEnum35(JobLocationEnumDto, {
|
|
10297
10362
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
10298
10363
|
", "
|
|
10299
10364
|
)}.`
|
|
10300
10365
|
})
|
|
10301
10366
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
10302
10367
|
__decorateClass([
|
|
10303
|
-
|
|
10368
|
+
IsEnum35(TypeOfEmploymentEnumDto, {
|
|
10304
10369
|
message: `Type of employment must be one of: ${Object.values(
|
|
10305
10370
|
TypeOfEmploymentEnumDto
|
|
10306
10371
|
).join(", ")}.`
|
|
@@ -10362,7 +10427,7 @@ __decorateClass([
|
|
|
10362
10427
|
import { Type as Type14 } from "class-transformer";
|
|
10363
10428
|
import {
|
|
10364
10429
|
IsString as IsString55,
|
|
10365
|
-
IsEnum as
|
|
10430
|
+
IsEnum as IsEnum36,
|
|
10366
10431
|
IsInt as IsInt11,
|
|
10367
10432
|
IsOptional as IsOptional54,
|
|
10368
10433
|
IsArray as IsArray19,
|
|
@@ -10404,14 +10469,14 @@ __decorateClass([
|
|
|
10404
10469
|
Min8(1, { message: "There must be at least one opening." })
|
|
10405
10470
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
10406
10471
|
__decorateClass([
|
|
10407
|
-
|
|
10472
|
+
IsEnum36(JobLocationEnums, {
|
|
10408
10473
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
10409
10474
|
", "
|
|
10410
10475
|
)}.`
|
|
10411
10476
|
})
|
|
10412
10477
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
10413
10478
|
__decorateClass([
|
|
10414
|
-
|
|
10479
|
+
IsEnum36(TypeOfEmploymentEnums, {
|
|
10415
10480
|
message: `Type of employment must be one of: ${Object.values(
|
|
10416
10481
|
TypeOfEmploymentEnums
|
|
10417
10482
|
).join(", ")}.`
|
|
@@ -10477,7 +10542,7 @@ import {
|
|
|
10477
10542
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
10478
10543
|
IsNumber as IsNumber16,
|
|
10479
10544
|
IsOptional as IsOptional55,
|
|
10480
|
-
IsEnum as
|
|
10545
|
+
IsEnum as IsEnum37,
|
|
10481
10546
|
Min as Min9,
|
|
10482
10547
|
ValidateIf as ValidateIf11,
|
|
10483
10548
|
MaxLength as MaxLength22,
|
|
@@ -10565,7 +10630,7 @@ __decorateClass([
|
|
|
10565
10630
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
10566
10631
|
__decorateClass([
|
|
10567
10632
|
ValidateIf11((o) => !o.isDraft),
|
|
10568
|
-
|
|
10633
|
+
IsEnum37(JobLocationAdminEnumDto, {
|
|
10569
10634
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
10570
10635
|
", "
|
|
10571
10636
|
)}`
|
|
@@ -10573,7 +10638,7 @@ __decorateClass([
|
|
|
10573
10638
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
10574
10639
|
__decorateClass([
|
|
10575
10640
|
ValidateIf11((o) => !o.isDraft),
|
|
10576
|
-
|
|
10641
|
+
IsEnum37(EmploymentTypeAdminEnumDto, {
|
|
10577
10642
|
message: `Type of employment must be one of: ${Object.values(
|
|
10578
10643
|
EmploymentTypeAdminEnumDto
|
|
10579
10644
|
).join(", ")}`
|
|
@@ -10581,7 +10646,7 @@ __decorateClass([
|
|
|
10581
10646
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
10582
10647
|
__decorateClass([
|
|
10583
10648
|
IsOptional55(),
|
|
10584
|
-
|
|
10649
|
+
IsEnum37(BillingCycleEnumV23, {
|
|
10585
10650
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV23).join(", ")}`
|
|
10586
10651
|
})
|
|
10587
10652
|
], AdminJobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
@@ -10607,7 +10672,7 @@ __decorateClass([
|
|
|
10607
10672
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
10608
10673
|
__decorateClass([
|
|
10609
10674
|
ValidateIf11((o) => !o.isDraft),
|
|
10610
|
-
|
|
10675
|
+
IsEnum37(typeOfExperienceAdminEnumDto, {
|
|
10611
10676
|
message: `Type of experience must be one of: ${Object.values(
|
|
10612
10677
|
typeOfExperienceAdminEnumDto
|
|
10613
10678
|
).join(", ")}`
|
|
@@ -10691,7 +10756,7 @@ __decorateClass([
|
|
|
10691
10756
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
10692
10757
|
__decorateClass([
|
|
10693
10758
|
IsOptional55(),
|
|
10694
|
-
|
|
10759
|
+
IsEnum37(AdminStepCompletedEnumV2, {
|
|
10695
10760
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
10696
10761
|
AdminStepCompletedEnumV2
|
|
10697
10762
|
).join(", ")}`
|
|
@@ -10705,7 +10770,7 @@ var LEAD_PATTERN = {
|
|
|
10705
10770
|
};
|
|
10706
10771
|
|
|
10707
10772
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
10708
|
-
import { IsString as IsString57, IsEmail as IsEmail20, IsOptional as IsOptional56, IsEnum as
|
|
10773
|
+
import { IsString as IsString57, IsEmail as IsEmail20, IsOptional as IsOptional56, IsEnum as IsEnum38 } from "class-validator";
|
|
10709
10774
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
10710
10775
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
10711
10776
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -10730,7 +10795,7 @@ __decorateClass([
|
|
|
10730
10795
|
IsString57({ message: "Description must be a string" })
|
|
10731
10796
|
], CreateLeadDto.prototype, "description", 2);
|
|
10732
10797
|
__decorateClass([
|
|
10733
|
-
|
|
10798
|
+
IsEnum38(CategoryEmumDto, {
|
|
10734
10799
|
message: `Type of category must be one of: ${Object.values(
|
|
10735
10800
|
CategoryEmumDto
|
|
10736
10801
|
).join(", ")}`
|
|
@@ -10892,7 +10957,7 @@ import {
|
|
|
10892
10957
|
ArrayNotEmpty as ArrayNotEmpty13,
|
|
10893
10958
|
IsEmail as IsEmail21,
|
|
10894
10959
|
IsUUID as IsUUID20,
|
|
10895
|
-
IsEnum as
|
|
10960
|
+
IsEnum as IsEnum39,
|
|
10896
10961
|
ValidateIf as ValidateIf12,
|
|
10897
10962
|
ValidateNested as ValidateNested8
|
|
10898
10963
|
} from "class-validator";
|
|
@@ -10910,7 +10975,7 @@ __decorateClass([
|
|
|
10910
10975
|
IsUUID20()
|
|
10911
10976
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
10912
10977
|
__decorateClass([
|
|
10913
|
-
|
|
10978
|
+
IsEnum39(CandidateType, {
|
|
10914
10979
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
10915
10980
|
})
|
|
10916
10981
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
@@ -10924,7 +10989,7 @@ __decorateClass([
|
|
|
10924
10989
|
IsEmail21({}, { message: "Please enter a valid email." })
|
|
10925
10990
|
], NewCandidateDto.prototype, "email", 2);
|
|
10926
10991
|
__decorateClass([
|
|
10927
|
-
|
|
10992
|
+
IsEnum39(CandidateType, {
|
|
10928
10993
|
message: "type must be NEW"
|
|
10929
10994
|
})
|
|
10930
10995
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -10960,7 +11025,7 @@ import {
|
|
|
10960
11025
|
IsNotEmpty as IsNotEmpty91,
|
|
10961
11026
|
IsArray as IsArray22,
|
|
10962
11027
|
IsUUID as IsUUID21,
|
|
10963
|
-
IsEnum as
|
|
11028
|
+
IsEnum as IsEnum40,
|
|
10964
11029
|
IsEmail as IsEmail22,
|
|
10965
11030
|
ValidateNested as ValidateNested9,
|
|
10966
11031
|
IsOptional as IsOptional60
|
|
@@ -10980,7 +11045,7 @@ __decorateClass([
|
|
|
10980
11045
|
IsNotEmpty91({ message: "Candidate ID is required." })
|
|
10981
11046
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
10982
11047
|
__decorateClass([
|
|
10983
|
-
|
|
11048
|
+
IsEnum40(InterviewInviteCandidateType, {
|
|
10984
11049
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
10985
11050
|
}),
|
|
10986
11051
|
IsNotEmpty91({ message: "Candidate type is required." })
|
|
@@ -10996,7 +11061,7 @@ __decorateClass([
|
|
|
10996
11061
|
IsNotEmpty91({ message: "Email is required." })
|
|
10997
11062
|
], NewCandidateDto2.prototype, "email", 2);
|
|
10998
11063
|
__decorateClass([
|
|
10999
|
-
|
|
11064
|
+
IsEnum40(InterviewInviteCandidateType, {
|
|
11000
11065
|
message: "Type must be NEW for new candidates."
|
|
11001
11066
|
}),
|
|
11002
11067
|
IsNotEmpty91({ message: "Candidate type is required." })
|
|
@@ -11352,7 +11417,7 @@ var CONTRACT_PATTERN = {
|
|
|
11352
11417
|
};
|
|
11353
11418
|
|
|
11354
11419
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
11355
|
-
import { IsEnum as
|
|
11420
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty100, IsNumber as IsNumber21 } from "class-validator";
|
|
11356
11421
|
import { Type as Type21 } from "class-transformer";
|
|
11357
11422
|
var SignContractForClientDto = class {
|
|
11358
11423
|
};
|
|
@@ -11368,11 +11433,11 @@ __decorateClass([
|
|
|
11368
11433
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
11369
11434
|
__decorateClass([
|
|
11370
11435
|
IsNotEmpty100({ message: "Contract type is required." }),
|
|
11371
|
-
|
|
11436
|
+
IsEnum41(ContractTypeEnum)
|
|
11372
11437
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
11373
11438
|
|
|
11374
11439
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
11375
|
-
import { IsEnum as
|
|
11440
|
+
import { IsEnum as IsEnum42, IsNotEmpty as IsNotEmpty101, IsNumber as IsNumber22 } from "class-validator";
|
|
11376
11441
|
import { Type as Type22 } from "class-transformer";
|
|
11377
11442
|
var SignContractForFreelancerDto = class {
|
|
11378
11443
|
};
|
|
@@ -11388,7 +11453,7 @@ __decorateClass([
|
|
|
11388
11453
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
11389
11454
|
__decorateClass([
|
|
11390
11455
|
IsNotEmpty101({ message: "Contract type is required." }),
|
|
11391
|
-
|
|
11456
|
+
IsEnum42(ContractTypeEnum)
|
|
11392
11457
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
11393
11458
|
|
|
11394
11459
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
@@ -11398,7 +11463,7 @@ import {
|
|
|
11398
11463
|
IsOptional as IsOptional71,
|
|
11399
11464
|
IsString as IsString76,
|
|
11400
11465
|
IsUUID as IsUUID25,
|
|
11401
|
-
IsEnum as
|
|
11466
|
+
IsEnum as IsEnum43
|
|
11402
11467
|
} from "class-validator";
|
|
11403
11468
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
11404
11469
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
@@ -11429,7 +11494,7 @@ __decorateClass([
|
|
|
11429
11494
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
11430
11495
|
__decorateClass([
|
|
11431
11496
|
IsOptional71(),
|
|
11432
|
-
|
|
11497
|
+
IsEnum43(ContractTypeEnumDto, {
|
|
11433
11498
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
11434
11499
|
})
|
|
11435
11500
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
@@ -11447,13 +11512,13 @@ __decorateClass([
|
|
|
11447
11512
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
11448
11513
|
__decorateClass([
|
|
11449
11514
|
IsNotEmpty102({ message: "Preferred engagement type is required" }),
|
|
11450
|
-
|
|
11515
|
+
IsEnum43(PreferredEngagementTypeEnum, {
|
|
11451
11516
|
message: "Preferred engagement type must be FREELANCE."
|
|
11452
11517
|
})
|
|
11453
11518
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
11454
11519
|
__decorateClass([
|
|
11455
11520
|
IsOptional71(),
|
|
11456
|
-
|
|
11521
|
+
IsEnum43(ContractSourceEnum, {
|
|
11457
11522
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
11458
11523
|
})
|
|
11459
11524
|
], GenerateContractDto.prototype, "source", 2);
|
|
@@ -11490,7 +11555,7 @@ __decorateClass([
|
|
|
11490
11555
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
11491
11556
|
|
|
11492
11557
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
11493
|
-
import { IsNotEmpty as IsNotEmpty106, IsOptional as IsOptional72, IsUUID as IsUUID29, IsEnum as
|
|
11558
|
+
import { IsNotEmpty as IsNotEmpty106, IsOptional as IsOptional72, IsUUID as IsUUID29, IsEnum as IsEnum44 } from "class-validator";
|
|
11494
11559
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
11495
11560
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
11496
11561
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -11505,7 +11570,7 @@ __decorateClass([
|
|
|
11505
11570
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
11506
11571
|
__decorateClass([
|
|
11507
11572
|
IsOptional72(),
|
|
11508
|
-
|
|
11573
|
+
IsEnum44(ContractSourceEnum2, {
|
|
11509
11574
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
11510
11575
|
})
|
|
11511
11576
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
@@ -11833,12 +11898,12 @@ var INVOICE_PATTERN = {
|
|
|
11833
11898
|
};
|
|
11834
11899
|
|
|
11835
11900
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
11836
|
-
import { IsEnum as
|
|
11901
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty118 } from "class-validator";
|
|
11837
11902
|
var UpdateInvoiceStatusDto = class {
|
|
11838
11903
|
};
|
|
11839
11904
|
__decorateClass([
|
|
11840
11905
|
IsNotEmpty118({ message: "Please provide invoice status." }),
|
|
11841
|
-
|
|
11906
|
+
IsEnum46(InvoiceStatusEnum, {
|
|
11842
11907
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
11843
11908
|
})
|
|
11844
11909
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
@@ -11863,7 +11928,7 @@ var DISPUTE_PATTERN = {
|
|
|
11863
11928
|
import {
|
|
11864
11929
|
IsString as IsString84,
|
|
11865
11930
|
IsNotEmpty as IsNotEmpty120,
|
|
11866
|
-
IsIn as
|
|
11931
|
+
IsIn as IsIn3,
|
|
11867
11932
|
IsOptional as IsOptional79,
|
|
11868
11933
|
MaxLength as MaxLength23,
|
|
11869
11934
|
IsObject as IsObject7,
|
|
@@ -11886,7 +11951,7 @@ __decorateClass([
|
|
|
11886
11951
|
__decorateClass([
|
|
11887
11952
|
IsNotEmpty120({ message: "Please select dispute type." }),
|
|
11888
11953
|
IsString84(),
|
|
11889
|
-
|
|
11954
|
+
IsIn3(["JOB", "INVOICE"])
|
|
11890
11955
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
11891
11956
|
__decorateClass([
|
|
11892
11957
|
IsNotEmpty120({ message: "Please provide initiator type." }),
|
|
@@ -12061,7 +12126,7 @@ var HIRING_PATTERN = {
|
|
|
12061
12126
|
};
|
|
12062
12127
|
|
|
12063
12128
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
12064
|
-
import { IsEnum as
|
|
12129
|
+
import { IsEnum as IsEnum47, IsNotEmpty as IsNotEmpty128, IsNumber as IsNumber38 } from "class-validator";
|
|
12065
12130
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
12066
12131
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
12067
12132
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -12079,7 +12144,7 @@ __decorateClass([
|
|
|
12079
12144
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
12080
12145
|
__decorateClass([
|
|
12081
12146
|
IsNotEmpty128({ message: "Preferred engagement type is required" }),
|
|
12082
|
-
|
|
12147
|
+
IsEnum47(PreferredEngagementTypeEnum2, {
|
|
12083
12148
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
12084
12149
|
})
|
|
12085
12150
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -13329,7 +13394,7 @@ import {
|
|
|
13329
13394
|
IsArray as IsArray30,
|
|
13330
13395
|
IsBoolean as IsBoolean24,
|
|
13331
13396
|
IsEmail as IsEmail25,
|
|
13332
|
-
IsEnum as
|
|
13397
|
+
IsEnum as IsEnum48,
|
|
13333
13398
|
IsNotEmpty as IsNotEmpty133,
|
|
13334
13399
|
IsNumber as IsNumber42,
|
|
13335
13400
|
IsOptional as IsOptional89,
|
|
@@ -13382,7 +13447,7 @@ __decorateClass([
|
|
|
13382
13447
|
], CreateUserSigningDto.prototype, "sendEmail", 2);
|
|
13383
13448
|
__decorateClass([
|
|
13384
13449
|
IsOptional89(),
|
|
13385
|
-
|
|
13450
|
+
IsEnum48(DocuSealOrderEnum, {
|
|
13386
13451
|
message: "Order must be one of preserved or random."
|
|
13387
13452
|
})
|
|
13388
13453
|
], CreateUserSigningDto.prototype, "order", 2);
|
|
@@ -13752,11 +13817,11 @@ __decorateClass([
|
|
|
13752
13817
|
], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
|
|
13753
13818
|
|
|
13754
13819
|
// src/modules/task/dto/create-task-query.dto.ts
|
|
13755
|
-
import { IsEnum as
|
|
13820
|
+
import { IsEnum as IsEnum49, IsOptional as IsOptional92, IsString as IsString100 } from "class-validator";
|
|
13756
13821
|
var CreateTaskQueryDto = class {
|
|
13757
13822
|
};
|
|
13758
13823
|
__decorateClass([
|
|
13759
|
-
|
|
13824
|
+
IsEnum49(TaskQueryCategoryEnum)
|
|
13760
13825
|
], CreateTaskQueryDto.prototype, "queryCategory", 2);
|
|
13761
13826
|
__decorateClass([
|
|
13762
13827
|
IsOptional92(),
|