@experts_hub/shared 1.0.253 → 1.0.254
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 +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.js +1 -18
- package/dist/index.mjs +251 -268
- package/dist/modules/user/freelancer-profile/pattern/pattern.d.ts +1 -0
- package/dist/modules/user/subadmin/dto/create-subadmin.dto.d.ts +0 -3
- package/dist/modules/user/subadmin/dto/update-subadmin.dto.d.ts +0 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -568,9 +568,6 @@ import {
|
|
|
568
568
|
} from "class-validator";
|
|
569
569
|
var CreateSubAdminDto = class {
|
|
570
570
|
};
|
|
571
|
-
__decorateClass([
|
|
572
|
-
IsNotEmpty21({ message: "Please enter unique id." })
|
|
573
|
-
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
574
571
|
__decorateClass([
|
|
575
572
|
IsNotEmpty21({ message: "Please enter username." })
|
|
576
573
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
@@ -589,12 +586,6 @@ __decorateClass([
|
|
|
589
586
|
__decorateClass([
|
|
590
587
|
IsNotEmpty21({ message: "Please enter the password." })
|
|
591
588
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
592
|
-
__decorateClass([
|
|
593
|
-
IsNotEmpty21({ message: "Please enter account type." })
|
|
594
|
-
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
595
|
-
__decorateClass([
|
|
596
|
-
IsNotEmpty21({ message: "Please enter account status." })
|
|
597
|
-
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
598
589
|
|
|
599
590
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
600
591
|
import { IsString as IsString8 } from "class-validator";
|
|
@@ -608,9 +599,6 @@ __decorateClass([
|
|
|
608
599
|
import { IsNotEmpty as IsNotEmpty22 } from "class-validator";
|
|
609
600
|
var UpdateSubAdminDto = class {
|
|
610
601
|
};
|
|
611
|
-
__decorateClass([
|
|
612
|
-
IsNotEmpty22({ message: "Please enter unique id." })
|
|
613
|
-
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
614
602
|
__decorateClass([
|
|
615
603
|
IsNotEmpty22({ message: "Please enter username." })
|
|
616
604
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
@@ -629,12 +617,6 @@ __decorateClass([
|
|
|
629
617
|
__decorateClass([
|
|
630
618
|
IsNotEmpty22({ message: "Please enter the password." })
|
|
631
619
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
632
|
-
__decorateClass([
|
|
633
|
-
IsNotEmpty22({ message: "Please enter account type." })
|
|
634
|
-
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
635
|
-
__decorateClass([
|
|
636
|
-
IsNotEmpty22({ message: "Please enter account status." })
|
|
637
|
-
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
638
620
|
|
|
639
621
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
640
622
|
var CLIENT_PROFILE_PATTERN = {
|
|
@@ -648,9 +630,9 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
648
630
|
|
|
649
631
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
650
632
|
import {
|
|
651
|
-
IsString as
|
|
633
|
+
IsString as IsString9,
|
|
652
634
|
IsNotEmpty as IsNotEmpty23,
|
|
653
|
-
IsEmail as
|
|
635
|
+
IsEmail as IsEmail4,
|
|
654
636
|
Length as Length2,
|
|
655
637
|
IsUrl as IsUrl2,
|
|
656
638
|
Matches as Matches5
|
|
@@ -659,7 +641,7 @@ var UpdateCompanyProfileDto = class {
|
|
|
659
641
|
};
|
|
660
642
|
__decorateClass([
|
|
661
643
|
IsNotEmpty23({ message: "Please enter company name." }),
|
|
662
|
-
|
|
644
|
+
IsString9({ message: "Company name must be a string." }),
|
|
663
645
|
Length2(2, 255, {
|
|
664
646
|
message: "Company name must be between 2 and 255 characters"
|
|
665
647
|
})
|
|
@@ -670,12 +652,12 @@ __decorateClass([
|
|
|
670
652
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
671
653
|
__decorateClass([
|
|
672
654
|
IsNotEmpty23({ message: "Please enter company address." }),
|
|
673
|
-
|
|
655
|
+
IsString9({ message: "Company address must be a string" }),
|
|
674
656
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
675
657
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
676
658
|
__decorateClass([
|
|
677
659
|
IsNotEmpty23({ message: "Please enter mobile code." }),
|
|
678
|
-
|
|
660
|
+
IsString9({ message: "Mobile Code must be a string" })
|
|
679
661
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
680
662
|
__decorateClass([
|
|
681
663
|
IsNotEmpty23({ message: "Please enter phone number." }),
|
|
@@ -685,25 +667,25 @@ __decorateClass([
|
|
|
685
667
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
686
668
|
__decorateClass([
|
|
687
669
|
IsNotEmpty23({ message: "Please enter email." }),
|
|
688
|
-
|
|
670
|
+
IsEmail4()
|
|
689
671
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
690
672
|
__decorateClass([
|
|
691
673
|
IsNotEmpty23({ message: "Please enter something about company." }),
|
|
692
|
-
|
|
674
|
+
IsString9({ message: "About company must be a string." })
|
|
693
675
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
694
676
|
|
|
695
677
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
696
678
|
import {
|
|
697
|
-
IsString as
|
|
698
|
-
MinLength as
|
|
679
|
+
IsString as IsString10,
|
|
680
|
+
MinLength as MinLength5,
|
|
699
681
|
Matches as Matches6,
|
|
700
682
|
IsNotEmpty as IsNotEmpty24
|
|
701
683
|
} from "class-validator";
|
|
702
684
|
var ClientChangePasswordDto = class {
|
|
703
685
|
};
|
|
704
686
|
__decorateClass([
|
|
705
|
-
|
|
706
|
-
|
|
687
|
+
IsString10(),
|
|
688
|
+
MinLength5(8, { message: "Password must be at least 8 characters long." }),
|
|
707
689
|
Matches6(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
708
690
|
message: "Password must contain at least one uppercase letter and one number."
|
|
709
691
|
})
|
|
@@ -724,8 +706,8 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
724
706
|
// src/modules/question/dto/create-question.dto.ts
|
|
725
707
|
import {
|
|
726
708
|
IsNotEmpty as IsNotEmpty25,
|
|
727
|
-
IsOptional as
|
|
728
|
-
IsBoolean as
|
|
709
|
+
IsOptional as IsOptional3,
|
|
710
|
+
IsBoolean as IsBoolean2
|
|
729
711
|
} from "class-validator";
|
|
730
712
|
var CreateQuestionDto = class {
|
|
731
713
|
};
|
|
@@ -742,8 +724,8 @@ __decorateClass([
|
|
|
742
724
|
IsNotEmpty25({ message: "Please enter options." })
|
|
743
725
|
], CreateQuestionDto.prototype, "options", 2);
|
|
744
726
|
__decorateClass([
|
|
745
|
-
|
|
746
|
-
|
|
727
|
+
IsOptional3(),
|
|
728
|
+
IsBoolean2({ message: "Whether the question status active" })
|
|
747
729
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
748
730
|
|
|
749
731
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -772,12 +754,12 @@ var JOB_PATTERN = {
|
|
|
772
754
|
|
|
773
755
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
774
756
|
import {
|
|
775
|
-
IsString as
|
|
757
|
+
IsString as IsString11,
|
|
776
758
|
IsNotEmpty as IsNotEmpty26,
|
|
777
759
|
IsArray,
|
|
778
760
|
ArrayNotEmpty,
|
|
779
761
|
IsNumber,
|
|
780
|
-
IsOptional as
|
|
762
|
+
IsOptional as IsOptional4,
|
|
781
763
|
IsEnum as IsEnum7,
|
|
782
764
|
Min
|
|
783
765
|
} from "class-validator";
|
|
@@ -798,11 +780,11 @@ var JobBasicInformationDto = class {
|
|
|
798
780
|
};
|
|
799
781
|
__decorateClass([
|
|
800
782
|
IsNotEmpty26({ message: "Please enter job role" }),
|
|
801
|
-
|
|
783
|
+
IsString11({ message: "Job role must be a string" })
|
|
802
784
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
803
785
|
__decorateClass([
|
|
804
|
-
|
|
805
|
-
|
|
786
|
+
IsOptional4(),
|
|
787
|
+
IsString11({ message: "Note must be a string" })
|
|
806
788
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
807
789
|
__decorateClass([
|
|
808
790
|
IsArray({ message: "Skills must be an array" }),
|
|
@@ -842,7 +824,7 @@ __decorateClass([
|
|
|
842
824
|
})
|
|
843
825
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
844
826
|
__decorateClass([
|
|
845
|
-
|
|
827
|
+
IsString11({ message: "Currency must be a string" })
|
|
846
828
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
847
829
|
__decorateClass([
|
|
848
830
|
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
@@ -856,39 +838,39 @@ __decorateClass([
|
|
|
856
838
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
857
839
|
__decorateClass([
|
|
858
840
|
IsNotEmpty26({ message: "Please enter start date" }),
|
|
859
|
-
|
|
841
|
+
IsString11({ message: "Start date must be valid" })
|
|
860
842
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
861
843
|
__decorateClass([
|
|
862
844
|
IsNotEmpty26({ message: "Please enter end date" }),
|
|
863
|
-
|
|
845
|
+
IsString11({ message: "End date must be valid" })
|
|
864
846
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
865
847
|
__decorateClass([
|
|
866
|
-
|
|
867
|
-
|
|
848
|
+
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
849
|
+
IsOptional4()
|
|
868
850
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
869
851
|
__decorateClass([
|
|
870
|
-
|
|
871
|
-
|
|
852
|
+
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
853
|
+
IsOptional4()
|
|
872
854
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
873
855
|
|
|
874
856
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
875
|
-
import { IsOptional as
|
|
857
|
+
import { IsOptional as IsOptional5, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
|
|
876
858
|
var JobAdditionalCommentDto = class {
|
|
877
859
|
};
|
|
878
860
|
__decorateClass([
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
861
|
+
IsOptional5(),
|
|
862
|
+
IsString12({ message: "Additional comment must be a string" }),
|
|
863
|
+
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
882
864
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
883
865
|
|
|
884
866
|
// src/modules/job/dto/job-description.dto.ts
|
|
885
|
-
import { IsString as
|
|
867
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty27, MaxLength as MaxLength6 } from "class-validator";
|
|
886
868
|
var JobDescriptionDto = class {
|
|
887
869
|
};
|
|
888
870
|
__decorateClass([
|
|
889
871
|
IsNotEmpty27({ message: "Please enter job description" }),
|
|
890
|
-
|
|
891
|
-
|
|
872
|
+
IsString13({ message: "Description must be a string" }),
|
|
873
|
+
MaxLength6(5e3, { message: "Description must not exceed 5000 characters" })
|
|
892
874
|
], JobDescriptionDto.prototype, "description", 2);
|
|
893
875
|
|
|
894
876
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -925,6 +907,7 @@ var PROFILE_PATTERN = {
|
|
|
925
907
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
926
908
|
fetchFreelancerPublicProfile: "fetch.freelancer.public.profile",
|
|
927
909
|
fetchFreelancerScreeningResult: "fetch.freelancer.screening.result",
|
|
910
|
+
fetchFreelancerScreeningResultPublic: "fetch.freelancer.screening.result.public",
|
|
928
911
|
changeFreelancerPassword: "change.freelancer.password",
|
|
929
912
|
uploadFreelancerProfilePic: "upload.freelancer.profilepic",
|
|
930
913
|
updateFreelancerProfile: "update.freelancer.profile",
|
|
@@ -933,23 +916,23 @@ var PROFILE_PATTERN = {
|
|
|
933
916
|
|
|
934
917
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
935
918
|
import {
|
|
936
|
-
IsString as
|
|
919
|
+
IsString as IsString14,
|
|
937
920
|
IsNotEmpty as IsNotEmpty29,
|
|
938
|
-
MaxLength as
|
|
939
|
-
MinLength as
|
|
921
|
+
MaxLength as MaxLength7,
|
|
922
|
+
MinLength as MinLength6,
|
|
940
923
|
Matches as Matches7
|
|
941
924
|
} from "class-validator";
|
|
942
925
|
var FreelancerChangePasswordDto = class {
|
|
943
926
|
};
|
|
944
927
|
__decorateClass([
|
|
945
928
|
IsNotEmpty29({ message: "Please enter Old Password." }),
|
|
946
|
-
|
|
929
|
+
IsString14()
|
|
947
930
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
948
931
|
__decorateClass([
|
|
949
932
|
IsNotEmpty29({ message: "Please enter New Password." }),
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
933
|
+
IsString14(),
|
|
934
|
+
MinLength6(6),
|
|
935
|
+
MaxLength7(32),
|
|
953
936
|
Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
954
937
|
message: "New Password must include letters, numbers and symbols."
|
|
955
938
|
})
|
|
@@ -957,9 +940,9 @@ __decorateClass([
|
|
|
957
940
|
|
|
958
941
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
959
942
|
import {
|
|
960
|
-
IsOptional as
|
|
961
|
-
IsString as
|
|
962
|
-
IsEmail as
|
|
943
|
+
IsOptional as IsOptional6,
|
|
944
|
+
IsString as IsString15,
|
|
945
|
+
IsEmail as IsEmail5,
|
|
963
946
|
IsNumber as IsNumber2,
|
|
964
947
|
IsEnum as IsEnum9,
|
|
965
948
|
IsNotEmpty as IsNotEmpty30
|
|
@@ -980,31 +963,31 @@ var UpdateFreelancerProfileDto = class {
|
|
|
980
963
|
};
|
|
981
964
|
__decorateClass([
|
|
982
965
|
IsNotEmpty30({ message: "Please enter first name." }),
|
|
983
|
-
|
|
966
|
+
IsString15({ message: "Please enter valid first name." })
|
|
984
967
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
985
968
|
__decorateClass([
|
|
986
969
|
IsNotEmpty30({ message: "Please enter last name." }),
|
|
987
|
-
|
|
970
|
+
IsString15({ message: "Please enter valid last name." })
|
|
988
971
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
989
972
|
__decorateClass([
|
|
990
973
|
IsNotEmpty30({ message: "Please enter designation." }),
|
|
991
|
-
|
|
974
|
+
IsString15({ message: "Please enter valid designation." })
|
|
992
975
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
993
976
|
__decorateClass([
|
|
994
977
|
IsNotEmpty30({ message: "Please enter experience." }),
|
|
995
|
-
|
|
978
|
+
IsString15({ message: "Please enter valid experience." })
|
|
996
979
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
997
980
|
__decorateClass([
|
|
998
981
|
IsNotEmpty30({ message: "Please enter email id." }),
|
|
999
|
-
|
|
982
|
+
IsEmail5()
|
|
1000
983
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1001
984
|
__decorateClass([
|
|
1002
985
|
IsNotEmpty30({ message: "Please enter mobile code." }),
|
|
1003
|
-
|
|
986
|
+
IsString15({ message: "Please enter valid mobile code." })
|
|
1004
987
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1005
988
|
__decorateClass([
|
|
1006
989
|
IsNotEmpty30({ message: "Please enter mobile number." }),
|
|
1007
|
-
|
|
990
|
+
IsString15({ message: "Please enter valid mobile number." })
|
|
1008
991
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1009
992
|
__decorateClass([
|
|
1010
993
|
IsNotEmpty30({ message: "Please select country." }),
|
|
@@ -1012,11 +995,11 @@ __decorateClass([
|
|
|
1012
995
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1013
996
|
__decorateClass([
|
|
1014
997
|
IsNotEmpty30({ message: "Please select currency." }),
|
|
1015
|
-
|
|
998
|
+
IsString15({ message: "Please enter valid currency." })
|
|
1016
999
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1017
1000
|
__decorateClass([
|
|
1018
1001
|
IsNotEmpty30({ message: "Please enter expected hourly compensation." }),
|
|
1019
|
-
|
|
1002
|
+
IsString15({ message: "Please enter valid expected hourly compensation." })
|
|
1020
1003
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1021
1004
|
__decorateClass([
|
|
1022
1005
|
IsNotEmpty30({ message: "Please select engagement type." }),
|
|
@@ -1035,36 +1018,36 @@ __decorateClass([
|
|
|
1035
1018
|
})
|
|
1036
1019
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1037
1020
|
__decorateClass([
|
|
1038
|
-
|
|
1039
|
-
|
|
1021
|
+
IsOptional6(),
|
|
1022
|
+
IsString15()
|
|
1040
1023
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1041
1024
|
__decorateClass([
|
|
1042
|
-
|
|
1043
|
-
|
|
1025
|
+
IsOptional6(),
|
|
1026
|
+
IsString15()
|
|
1044
1027
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1045
1028
|
__decorateClass([
|
|
1046
|
-
|
|
1047
|
-
|
|
1029
|
+
IsOptional6(),
|
|
1030
|
+
IsString15()
|
|
1048
1031
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1049
1032
|
__decorateClass([
|
|
1050
|
-
|
|
1051
|
-
|
|
1033
|
+
IsOptional6(),
|
|
1034
|
+
IsString15()
|
|
1052
1035
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1053
1036
|
__decorateClass([
|
|
1054
|
-
|
|
1055
|
-
|
|
1037
|
+
IsOptional6(),
|
|
1038
|
+
IsString15()
|
|
1056
1039
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1057
1040
|
__decorateClass([
|
|
1058
|
-
|
|
1059
|
-
|
|
1041
|
+
IsOptional6(),
|
|
1042
|
+
IsString15()
|
|
1060
1043
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1061
1044
|
__decorateClass([
|
|
1062
|
-
|
|
1063
|
-
|
|
1045
|
+
IsOptional6(),
|
|
1046
|
+
IsString15()
|
|
1064
1047
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1065
1048
|
__decorateClass([
|
|
1066
|
-
|
|
1067
|
-
|
|
1049
|
+
IsOptional6(),
|
|
1050
|
+
IsString15()
|
|
1068
1051
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1069
1052
|
|
|
1070
1053
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1078,7 +1061,7 @@ var BANK_PATTERN = {
|
|
|
1078
1061
|
import {
|
|
1079
1062
|
IsEnum as IsEnum10,
|
|
1080
1063
|
IsNotEmpty as IsNotEmpty31,
|
|
1081
|
-
IsOptional as
|
|
1064
|
+
IsOptional as IsOptional7,
|
|
1082
1065
|
ValidateIf as ValidateIf2
|
|
1083
1066
|
} from "class-validator";
|
|
1084
1067
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1098,7 +1081,7 @@ __decorateClass([
|
|
|
1098
1081
|
IsNotEmpty31({ message: "Please enter Email." })
|
|
1099
1082
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1100
1083
|
__decorateClass([
|
|
1101
|
-
|
|
1084
|
+
IsOptional7()
|
|
1102
1085
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1103
1086
|
__decorateClass([
|
|
1104
1087
|
IsNotEmpty31({ message: "Please enter Account Number." })
|
|
@@ -1126,7 +1109,7 @@ __decorateClass([
|
|
|
1126
1109
|
IsNotEmpty31({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1127
1110
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1128
1111
|
__decorateClass([
|
|
1129
|
-
|
|
1112
|
+
IsOptional7()
|
|
1130
1113
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1131
1114
|
__decorateClass([
|
|
1132
1115
|
IsEnum10(BankAccountScope, {
|
|
@@ -1150,7 +1133,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1150
1133
|
|
|
1151
1134
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1152
1135
|
import {
|
|
1153
|
-
IsBoolean as
|
|
1136
|
+
IsBoolean as IsBoolean3,
|
|
1154
1137
|
IsEnum as IsEnum11
|
|
1155
1138
|
} from "class-validator";
|
|
1156
1139
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
@@ -1161,7 +1144,7 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1161
1144
|
var SystemPreferenceDto = class {
|
|
1162
1145
|
};
|
|
1163
1146
|
__decorateClass([
|
|
1164
|
-
|
|
1147
|
+
IsBoolean3()
|
|
1165
1148
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1166
1149
|
__decorateClass([
|
|
1167
1150
|
IsEnum11(SystemPreferenceKey, {
|
|
@@ -1188,8 +1171,8 @@ import {
|
|
|
1188
1171
|
IsEnum as IsEnum12,
|
|
1189
1172
|
IsInt,
|
|
1190
1173
|
IsNotEmpty as IsNotEmpty32,
|
|
1191
|
-
IsOptional as
|
|
1192
|
-
IsString as
|
|
1174
|
+
IsOptional as IsOptional8,
|
|
1175
|
+
IsString as IsString16,
|
|
1193
1176
|
Max,
|
|
1194
1177
|
Min as Min2
|
|
1195
1178
|
} from "class-validator";
|
|
@@ -3373,8 +3356,8 @@ __decorateClass([
|
|
|
3373
3356
|
Max(5, { message: "Rating must be at most 5" })
|
|
3374
3357
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3375
3358
|
__decorateClass([
|
|
3376
|
-
|
|
3377
|
-
|
|
3359
|
+
IsOptional8(),
|
|
3360
|
+
IsString16({ message: "Review must be a string" })
|
|
3378
3361
|
], CreateRatingDto.prototype, "review", 2);
|
|
3379
3362
|
|
|
3380
3363
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3390,7 +3373,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3390
3373
|
};
|
|
3391
3374
|
|
|
3392
3375
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3393
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as
|
|
3376
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional9 } from "class-validator";
|
|
3394
3377
|
var CreateCompanyRoleDto = class {
|
|
3395
3378
|
};
|
|
3396
3379
|
__decorateClass([
|
|
@@ -3408,12 +3391,12 @@ __decorateClass([
|
|
|
3408
3391
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3409
3392
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3410
3393
|
__decorateClass([
|
|
3411
|
-
|
|
3412
|
-
|
|
3394
|
+
IsOptional9(),
|
|
3395
|
+
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3413
3396
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3414
3397
|
|
|
3415
3398
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3416
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as
|
|
3399
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional10 } from "class-validator";
|
|
3417
3400
|
var UpdateCompanyRoleDto = class {
|
|
3418
3401
|
};
|
|
3419
3402
|
__decorateClass([
|
|
@@ -3431,16 +3414,16 @@ __decorateClass([
|
|
|
3431
3414
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3432
3415
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3433
3416
|
__decorateClass([
|
|
3434
|
-
|
|
3435
|
-
|
|
3417
|
+
IsOptional10(),
|
|
3418
|
+
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3436
3419
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3437
3420
|
|
|
3438
3421
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3439
|
-
import { IsBoolean as
|
|
3422
|
+
import { IsBoolean as IsBoolean6 } from "class-validator";
|
|
3440
3423
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3441
3424
|
};
|
|
3442
3425
|
__decorateClass([
|
|
3443
|
-
|
|
3426
|
+
IsBoolean6()
|
|
3444
3427
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3445
3428
|
|
|
3446
3429
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3453,33 +3436,33 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3453
3436
|
import {
|
|
3454
3437
|
ArrayMinSize,
|
|
3455
3438
|
IsNotEmpty as IsNotEmpty35,
|
|
3456
|
-
IsOptional as
|
|
3457
|
-
IsString as
|
|
3458
|
-
MaxLength as
|
|
3439
|
+
IsOptional as IsOptional11,
|
|
3440
|
+
IsString as IsString19,
|
|
3441
|
+
MaxLength as MaxLength9,
|
|
3459
3442
|
ValidateNested
|
|
3460
3443
|
} from "class-validator";
|
|
3461
3444
|
import { Type as Type2 } from "class-transformer";
|
|
3462
3445
|
var ExperienceDto = class {
|
|
3463
3446
|
};
|
|
3464
3447
|
__decorateClass([
|
|
3465
|
-
|
|
3448
|
+
IsOptional11()
|
|
3466
3449
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3467
3450
|
__decorateClass([
|
|
3468
3451
|
IsNotEmpty35(),
|
|
3469
|
-
|
|
3452
|
+
IsString19()
|
|
3470
3453
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3471
3454
|
__decorateClass([
|
|
3472
3455
|
IsNotEmpty35(),
|
|
3473
|
-
|
|
3456
|
+
IsString19()
|
|
3474
3457
|
], ExperienceDto.prototype, "designation", 2);
|
|
3475
3458
|
__decorateClass([
|
|
3476
3459
|
IsNotEmpty35(),
|
|
3477
|
-
|
|
3460
|
+
IsString19()
|
|
3478
3461
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3479
3462
|
__decorateClass([
|
|
3480
3463
|
IsNotEmpty35(),
|
|
3481
|
-
|
|
3482
|
-
|
|
3464
|
+
IsString19(),
|
|
3465
|
+
MaxLength9(500, { message: "Description must not exceed 500 characters" })
|
|
3483
3466
|
], ExperienceDto.prototype, "description", 2);
|
|
3484
3467
|
var FreelancerExperienceDto = class {
|
|
3485
3468
|
};
|
|
@@ -3534,11 +3517,11 @@ __decorateClass([
|
|
|
3534
3517
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3535
3518
|
|
|
3536
3519
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3537
|
-
import { IsBoolean as
|
|
3520
|
+
import { IsBoolean as IsBoolean9 } from "class-validator";
|
|
3538
3521
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3539
3522
|
};
|
|
3540
3523
|
__decorateClass([
|
|
3541
|
-
|
|
3524
|
+
IsBoolean9()
|
|
3542
3525
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3543
3526
|
|
|
3544
3527
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3548,23 +3531,23 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3548
3531
|
};
|
|
3549
3532
|
|
|
3550
3533
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3551
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as
|
|
3534
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional14, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3552
3535
|
import { Type as Type3 } from "class-transformer";
|
|
3553
3536
|
var EducationDto = class {
|
|
3554
3537
|
};
|
|
3555
3538
|
__decorateClass([
|
|
3556
|
-
|
|
3539
|
+
IsOptional14()
|
|
3557
3540
|
], EducationDto.prototype, "uuid", 2);
|
|
3558
3541
|
__decorateClass([
|
|
3559
|
-
|
|
3542
|
+
IsString22(),
|
|
3560
3543
|
IsNotEmpty38({ message: "Please Enter Degree " })
|
|
3561
3544
|
], EducationDto.prototype, "degree", 2);
|
|
3562
3545
|
__decorateClass([
|
|
3563
|
-
|
|
3546
|
+
IsString22(),
|
|
3564
3547
|
IsNotEmpty38({ message: "Please Enter University " })
|
|
3565
3548
|
], EducationDto.prototype, "university", 2);
|
|
3566
3549
|
__decorateClass([
|
|
3567
|
-
|
|
3550
|
+
IsString22(),
|
|
3568
3551
|
IsNotEmpty38({ message: "Please Enter Year of Graduation " })
|
|
3569
3552
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3570
3553
|
var FreelancerEducationDto = class {
|
|
@@ -3583,15 +3566,15 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3583
3566
|
};
|
|
3584
3567
|
|
|
3585
3568
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3586
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as
|
|
3569
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional15, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3587
3570
|
import { Type as Type4 } from "class-transformer";
|
|
3588
3571
|
var ProjectDto = class {
|
|
3589
3572
|
};
|
|
3590
3573
|
__decorateClass([
|
|
3591
|
-
|
|
3574
|
+
IsOptional15()
|
|
3592
3575
|
], ProjectDto.prototype, "uuid", 2);
|
|
3593
3576
|
__decorateClass([
|
|
3594
|
-
|
|
3577
|
+
IsString23(),
|
|
3595
3578
|
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3596
3579
|
], ProjectDto.prototype, "projectName", 2);
|
|
3597
3580
|
__decorateClass([
|
|
@@ -3603,35 +3586,35 @@ __decorateClass([
|
|
|
3603
3586
|
IsNotEmpty39({ message: "Please Enter End Date " })
|
|
3604
3587
|
], ProjectDto.prototype, "endDate", 2);
|
|
3605
3588
|
__decorateClass([
|
|
3606
|
-
|
|
3607
|
-
|
|
3589
|
+
IsOptional15(),
|
|
3590
|
+
IsString23()
|
|
3608
3591
|
], ProjectDto.prototype, "clientName", 2);
|
|
3609
3592
|
__decorateClass([
|
|
3610
|
-
|
|
3611
|
-
|
|
3593
|
+
IsOptional15(),
|
|
3594
|
+
IsString23()
|
|
3612
3595
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3613
3596
|
__decorateClass([
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3597
|
+
IsOptional15(),
|
|
3598
|
+
IsString23(),
|
|
3599
|
+
MaxLength11(500, { message: "Description must not exceed 500 characters" })
|
|
3617
3600
|
], ProjectDto.prototype, "description", 2);
|
|
3618
3601
|
var CaseStudyDto = class {
|
|
3619
3602
|
};
|
|
3620
3603
|
__decorateClass([
|
|
3621
|
-
|
|
3604
|
+
IsOptional15()
|
|
3622
3605
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3623
3606
|
__decorateClass([
|
|
3624
|
-
|
|
3607
|
+
IsString23(),
|
|
3625
3608
|
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3626
3609
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3627
3610
|
__decorateClass([
|
|
3628
|
-
|
|
3611
|
+
IsString23(),
|
|
3629
3612
|
IsNotEmpty39({ message: "Please Enter Case Study Link " })
|
|
3630
3613
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3631
3614
|
__decorateClass([
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3615
|
+
IsOptional15(),
|
|
3616
|
+
IsString23(),
|
|
3617
|
+
MaxLength11(500, { message: "Description must not exceed 500 characters" })
|
|
3635
3618
|
], CaseStudyDto.prototype, "description", 2);
|
|
3636
3619
|
var FreelancerProjectDto = class {
|
|
3637
3620
|
};
|
|
@@ -3659,7 +3642,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3659
3642
|
};
|
|
3660
3643
|
|
|
3661
3644
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3662
|
-
import { IsArray as IsArray8, IsString as
|
|
3645
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional16 } from "class-validator";
|
|
3663
3646
|
import { Type as Type5 } from "class-transformer";
|
|
3664
3647
|
var FreelancerSkillDto = class {
|
|
3665
3648
|
constructor() {
|
|
@@ -3669,22 +3652,22 @@ var FreelancerSkillDto = class {
|
|
|
3669
3652
|
}
|
|
3670
3653
|
};
|
|
3671
3654
|
__decorateClass([
|
|
3672
|
-
|
|
3655
|
+
IsOptional16(),
|
|
3673
3656
|
IsArray8(),
|
|
3674
3657
|
Type5(() => String),
|
|
3675
|
-
|
|
3658
|
+
IsString24({ each: true })
|
|
3676
3659
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3677
3660
|
__decorateClass([
|
|
3678
|
-
|
|
3661
|
+
IsOptional16(),
|
|
3679
3662
|
IsArray8(),
|
|
3680
3663
|
Type5(() => String),
|
|
3681
|
-
|
|
3664
|
+
IsString24({ each: true })
|
|
3682
3665
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3683
3666
|
__decorateClass([
|
|
3684
|
-
|
|
3667
|
+
IsOptional16(),
|
|
3685
3668
|
IsArray8(),
|
|
3686
3669
|
Type5(() => String),
|
|
3687
|
-
|
|
3670
|
+
IsString24({ each: true })
|
|
3688
3671
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3689
3672
|
|
|
3690
3673
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3701,17 +3684,17 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3701
3684
|
|
|
3702
3685
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3703
3686
|
import {
|
|
3704
|
-
IsString as
|
|
3705
|
-
IsEmail as
|
|
3706
|
-
IsBoolean as
|
|
3707
|
-
IsOptional as
|
|
3687
|
+
IsString as IsString25,
|
|
3688
|
+
IsEmail as IsEmail10,
|
|
3689
|
+
IsBoolean as IsBoolean10,
|
|
3690
|
+
IsOptional as IsOptional17,
|
|
3708
3691
|
IsEnum as IsEnum13,
|
|
3709
3692
|
IsNumber as IsNumber3,
|
|
3710
3693
|
IsUrl as IsUrl3,
|
|
3711
3694
|
Min as Min3,
|
|
3712
|
-
MaxLength as
|
|
3695
|
+
MaxLength as MaxLength13,
|
|
3713
3696
|
IsNotEmpty as IsNotEmpty41,
|
|
3714
|
-
MinLength as
|
|
3697
|
+
MinLength as MinLength11,
|
|
3715
3698
|
Matches as Matches8,
|
|
3716
3699
|
ValidateIf as ValidateIf3
|
|
3717
3700
|
} from "class-validator";
|
|
@@ -3731,22 +3714,22 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3731
3714
|
var CreateFreelancerDto = class {
|
|
3732
3715
|
};
|
|
3733
3716
|
__decorateClass([
|
|
3734
|
-
|
|
3735
|
-
|
|
3717
|
+
IsString25({ message: "Full name must be a string" }),
|
|
3718
|
+
MaxLength13(100, { message: "Full name must not exceed 100 characters" })
|
|
3736
3719
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3737
3720
|
__decorateClass([
|
|
3738
|
-
|
|
3721
|
+
IsEmail10({}, { message: "Invalid email address" })
|
|
3739
3722
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3740
3723
|
__decorateClass([
|
|
3741
|
-
|
|
3724
|
+
IsString25({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3742
3725
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3743
3726
|
__decorateClass([
|
|
3744
|
-
|
|
3727
|
+
IsString25({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3745
3728
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3746
3729
|
__decorateClass([
|
|
3747
3730
|
IsNotEmpty41({ message: "Please enter password." }),
|
|
3748
|
-
|
|
3749
|
-
|
|
3731
|
+
MinLength11(6),
|
|
3732
|
+
MaxLength13(32),
|
|
3750
3733
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3751
3734
|
message: "Password must include letters, numbers and symbols."
|
|
3752
3735
|
})
|
|
@@ -3756,7 +3739,7 @@ __decorateClass([
|
|
|
3756
3739
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3757
3740
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3758
3741
|
__decorateClass([
|
|
3759
|
-
|
|
3742
|
+
IsBoolean10({ message: "Developer flag must be true or false" }),
|
|
3760
3743
|
Type6(() => Boolean)
|
|
3761
3744
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3762
3745
|
__decorateClass([
|
|
@@ -3779,7 +3762,7 @@ __decorateClass([
|
|
|
3779
3762
|
})
|
|
3780
3763
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3781
3764
|
__decorateClass([
|
|
3782
|
-
|
|
3765
|
+
IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
|
|
3783
3766
|
Type6(() => Boolean)
|
|
3784
3767
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3785
3768
|
__decorateClass([
|
|
@@ -3787,38 +3770,38 @@ __decorateClass([
|
|
|
3787
3770
|
IsNotEmpty41({ message: "Please enter availability to join." })
|
|
3788
3771
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3789
3772
|
__decorateClass([
|
|
3790
|
-
|
|
3773
|
+
IsOptional17(),
|
|
3791
3774
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3792
3775
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3793
3776
|
__decorateClass([
|
|
3794
|
-
|
|
3795
|
-
|
|
3777
|
+
IsOptional17(),
|
|
3778
|
+
IsString25({ message: "Kaggle profile link must be a string" })
|
|
3796
3779
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3797
3780
|
__decorateClass([
|
|
3798
|
-
|
|
3781
|
+
IsOptional17(),
|
|
3799
3782
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
3800
3783
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3801
3784
|
__decorateClass([
|
|
3802
|
-
|
|
3785
|
+
IsOptional17(),
|
|
3803
3786
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3804
3787
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3805
3788
|
__decorateClass([
|
|
3806
|
-
|
|
3789
|
+
IsOptional17(),
|
|
3807
3790
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
3808
3791
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3809
3792
|
|
|
3810
3793
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3811
3794
|
import {
|
|
3812
|
-
IsString as
|
|
3813
|
-
IsEmail as
|
|
3814
|
-
IsBoolean as
|
|
3815
|
-
IsOptional as
|
|
3795
|
+
IsString as IsString26,
|
|
3796
|
+
IsEmail as IsEmail11,
|
|
3797
|
+
IsBoolean as IsBoolean11,
|
|
3798
|
+
IsOptional as IsOptional18,
|
|
3816
3799
|
IsEnum as IsEnum14,
|
|
3817
3800
|
IsNumber as IsNumber4,
|
|
3818
3801
|
IsUrl as IsUrl4,
|
|
3819
3802
|
Min as Min4,
|
|
3820
|
-
MaxLength as
|
|
3821
|
-
MinLength as
|
|
3803
|
+
MaxLength as MaxLength14,
|
|
3804
|
+
MinLength as MinLength12,
|
|
3822
3805
|
Matches as Matches9,
|
|
3823
3806
|
IsNotEmpty as IsNotEmpty42,
|
|
3824
3807
|
ValidateIf as ValidateIf4
|
|
@@ -3839,37 +3822,37 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3839
3822
|
var UpdateFreelancerDto = class {
|
|
3840
3823
|
};
|
|
3841
3824
|
__decorateClass([
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3825
|
+
IsOptional18(),
|
|
3826
|
+
IsString26({ message: "Full name must be a string" }),
|
|
3827
|
+
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
3845
3828
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3846
3829
|
__decorateClass([
|
|
3847
|
-
|
|
3848
|
-
|
|
3830
|
+
IsOptional18(),
|
|
3831
|
+
IsEmail11({}, { message: "Invalid email address" })
|
|
3849
3832
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3850
3833
|
__decorateClass([
|
|
3851
|
-
|
|
3852
|
-
|
|
3834
|
+
IsOptional18(),
|
|
3835
|
+
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3853
3836
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3854
3837
|
__decorateClass([
|
|
3855
|
-
|
|
3856
|
-
|
|
3838
|
+
IsOptional18(),
|
|
3839
|
+
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3857
3840
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3858
3841
|
__decorateClass([
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3842
|
+
IsOptional18(),
|
|
3843
|
+
MinLength12(6, { message: "Password must be at least 6 characters." }),
|
|
3844
|
+
MaxLength14(32, { message: "Password must not exceed 32 characters." }),
|
|
3862
3845
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3863
3846
|
message: "Password must include letters, numbers and symbols."
|
|
3864
3847
|
})
|
|
3865
3848
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3866
3849
|
__decorateClass([
|
|
3867
|
-
|
|
3868
|
-
|
|
3850
|
+
IsOptional18(),
|
|
3851
|
+
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
3869
3852
|
Type7(() => Boolean)
|
|
3870
3853
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3871
3854
|
__decorateClass([
|
|
3872
|
-
|
|
3855
|
+
IsOptional18(),
|
|
3873
3856
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3874
3857
|
message: `Nature of work must be one of: ${Object.values(
|
|
3875
3858
|
NatureOfWorkEnum2
|
|
@@ -3877,13 +3860,13 @@ __decorateClass([
|
|
|
3877
3860
|
})
|
|
3878
3861
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3879
3862
|
__decorateClass([
|
|
3880
|
-
|
|
3863
|
+
IsOptional18(),
|
|
3881
3864
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3882
3865
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3883
3866
|
Type7(() => Number)
|
|
3884
3867
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3885
3868
|
__decorateClass([
|
|
3886
|
-
|
|
3869
|
+
IsOptional18(),
|
|
3887
3870
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3888
3871
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3889
3872
|
", "
|
|
@@ -3891,8 +3874,8 @@ __decorateClass([
|
|
|
3891
3874
|
})
|
|
3892
3875
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3893
3876
|
__decorateClass([
|
|
3894
|
-
|
|
3895
|
-
|
|
3877
|
+
IsOptional18(),
|
|
3878
|
+
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
3896
3879
|
Type7(() => Boolean)
|
|
3897
3880
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3898
3881
|
__decorateClass([
|
|
@@ -3900,23 +3883,23 @@ __decorateClass([
|
|
|
3900
3883
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
3901
3884
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3902
3885
|
__decorateClass([
|
|
3903
|
-
|
|
3886
|
+
IsOptional18(),
|
|
3904
3887
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3905
3888
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3906
3889
|
__decorateClass([
|
|
3907
|
-
|
|
3908
|
-
|
|
3890
|
+
IsOptional18(),
|
|
3891
|
+
IsString26({ message: "Kaggle profile link must be a string" })
|
|
3909
3892
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3910
3893
|
__decorateClass([
|
|
3911
|
-
|
|
3894
|
+
IsOptional18(),
|
|
3912
3895
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
3913
3896
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3914
3897
|
__decorateClass([
|
|
3915
|
-
|
|
3898
|
+
IsOptional18(),
|
|
3916
3899
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3917
3900
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3918
3901
|
__decorateClass([
|
|
3919
|
-
|
|
3902
|
+
IsOptional18(),
|
|
3920
3903
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
3921
3904
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3922
3905
|
|
|
@@ -3936,12 +3919,12 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3936
3919
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3937
3920
|
import {
|
|
3938
3921
|
IsNotEmpty as IsNotEmpty43,
|
|
3939
|
-
IsEmail as
|
|
3940
|
-
IsOptional as
|
|
3941
|
-
IsString as
|
|
3922
|
+
IsEmail as IsEmail12,
|
|
3923
|
+
IsOptional as IsOptional19,
|
|
3924
|
+
IsString as IsString27,
|
|
3942
3925
|
IsArray as IsArray9,
|
|
3943
|
-
MinLength as
|
|
3944
|
-
MaxLength as
|
|
3926
|
+
MinLength as MinLength13,
|
|
3927
|
+
MaxLength as MaxLength15,
|
|
3945
3928
|
IsEnum as IsEnum15,
|
|
3946
3929
|
Matches as Matches10
|
|
3947
3930
|
} from "class-validator";
|
|
@@ -3961,20 +3944,20 @@ var CreateClientDto = class {
|
|
|
3961
3944
|
};
|
|
3962
3945
|
__decorateClass([
|
|
3963
3946
|
IsNotEmpty43({ message: "Please enter first name." }),
|
|
3964
|
-
|
|
3947
|
+
IsString27()
|
|
3965
3948
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3966
3949
|
__decorateClass([
|
|
3967
3950
|
IsNotEmpty43({ message: "Please enter last name." }),
|
|
3968
|
-
|
|
3951
|
+
IsString27()
|
|
3969
3952
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3970
3953
|
__decorateClass([
|
|
3971
3954
|
IsNotEmpty43({ message: "Please enter email." }),
|
|
3972
|
-
|
|
3955
|
+
IsEmail12()
|
|
3973
3956
|
], CreateClientDto.prototype, "email", 2);
|
|
3974
3957
|
__decorateClass([
|
|
3975
3958
|
IsNotEmpty43({ message: "Please enter password." }),
|
|
3976
|
-
|
|
3977
|
-
|
|
3959
|
+
MinLength13(6),
|
|
3960
|
+
MaxLength15(32),
|
|
3978
3961
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3979
3962
|
message: "Password must include letters, numbers and symbols."
|
|
3980
3963
|
})
|
|
@@ -3985,7 +3968,7 @@ __decorateClass([
|
|
|
3985
3968
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3986
3969
|
__decorateClass([
|
|
3987
3970
|
IsNotEmpty43({ message: "Please enter company name." }),
|
|
3988
|
-
|
|
3971
|
+
IsString27()
|
|
3989
3972
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3990
3973
|
__decorateClass([
|
|
3991
3974
|
IsArray9({ message: "Skills should be an array." }),
|
|
@@ -3993,7 +3976,7 @@ __decorateClass([
|
|
|
3993
3976
|
], CreateClientDto.prototype, "skills", 2);
|
|
3994
3977
|
__decorateClass([
|
|
3995
3978
|
IsNotEmpty43({ message: "Please specify required freelancer count." }),
|
|
3996
|
-
|
|
3979
|
+
IsString27()
|
|
3997
3980
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3998
3981
|
__decorateClass([
|
|
3999
3982
|
IsNotEmpty43({ message: "Please specify the kind of hiring." }),
|
|
@@ -4005,31 +3988,31 @@ __decorateClass([
|
|
|
4005
3988
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4006
3989
|
__decorateClass([
|
|
4007
3990
|
IsNotEmpty43({ message: "Please let us know how you found us." }),
|
|
4008
|
-
|
|
3991
|
+
IsString27()
|
|
4009
3992
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4010
3993
|
__decorateClass([
|
|
4011
|
-
|
|
4012
|
-
|
|
3994
|
+
IsOptional19(),
|
|
3995
|
+
IsString27()
|
|
4013
3996
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4014
3997
|
|
|
4015
3998
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4016
|
-
import { IsString as
|
|
3999
|
+
import { IsString as IsString28, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
4017
4000
|
var UpdateClientAccountStatusDto = class {
|
|
4018
4001
|
};
|
|
4019
4002
|
__decorateClass([
|
|
4020
4003
|
IsNotEmpty44({ message: "Please enter account status." }),
|
|
4021
|
-
|
|
4004
|
+
IsString28()
|
|
4022
4005
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4023
4006
|
|
|
4024
4007
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4025
4008
|
import {
|
|
4026
4009
|
IsNotEmpty as IsNotEmpty45,
|
|
4027
|
-
IsEmail as
|
|
4028
|
-
IsOptional as
|
|
4029
|
-
IsString as
|
|
4010
|
+
IsEmail as IsEmail13,
|
|
4011
|
+
IsOptional as IsOptional20,
|
|
4012
|
+
IsString as IsString29,
|
|
4030
4013
|
IsArray as IsArray10,
|
|
4031
|
-
MinLength as
|
|
4032
|
-
MaxLength as
|
|
4014
|
+
MinLength as MinLength14,
|
|
4015
|
+
MaxLength as MaxLength16,
|
|
4033
4016
|
IsEnum as IsEnum16,
|
|
4034
4017
|
Matches as Matches11
|
|
4035
4018
|
} from "class-validator";
|
|
@@ -4049,27 +4032,27 @@ var UpdateClientDto = class {
|
|
|
4049
4032
|
};
|
|
4050
4033
|
__decorateClass([
|
|
4051
4034
|
IsNotEmpty45({ message: "Please enter first name." }),
|
|
4052
|
-
|
|
4035
|
+
IsString29()
|
|
4053
4036
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4054
4037
|
__decorateClass([
|
|
4055
4038
|
IsNotEmpty45({ message: "Please enter last name." }),
|
|
4056
|
-
|
|
4039
|
+
IsString29()
|
|
4057
4040
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4058
4041
|
__decorateClass([
|
|
4059
4042
|
IsNotEmpty45({ message: "Please enter email." }),
|
|
4060
|
-
|
|
4043
|
+
IsEmail13()
|
|
4061
4044
|
], UpdateClientDto.prototype, "email", 2);
|
|
4062
4045
|
__decorateClass([
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4046
|
+
IsOptional20(),
|
|
4047
|
+
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
4048
|
+
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
4066
4049
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4067
4050
|
message: "Password must include letters, numbers and symbols."
|
|
4068
4051
|
})
|
|
4069
4052
|
], UpdateClientDto.prototype, "password", 2);
|
|
4070
4053
|
__decorateClass([
|
|
4071
4054
|
IsNotEmpty45({ message: "Please enter company name." }),
|
|
4072
|
-
|
|
4055
|
+
IsString29()
|
|
4073
4056
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4074
4057
|
__decorateClass([
|
|
4075
4058
|
IsArray10({ message: "Skills should be an array." }),
|
|
@@ -4077,7 +4060,7 @@ __decorateClass([
|
|
|
4077
4060
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4078
4061
|
__decorateClass([
|
|
4079
4062
|
IsNotEmpty45({ message: "Please specify required freelancer count." }),
|
|
4080
|
-
|
|
4063
|
+
IsString29()
|
|
4081
4064
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4082
4065
|
__decorateClass([
|
|
4083
4066
|
IsNotEmpty45({ message: "Please specify the kind of hiring." }),
|
|
@@ -4089,11 +4072,11 @@ __decorateClass([
|
|
|
4089
4072
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4090
4073
|
__decorateClass([
|
|
4091
4074
|
IsNotEmpty45({ message: "Please let us know how you found us." }),
|
|
4092
|
-
|
|
4075
|
+
IsString29()
|
|
4093
4076
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4094
4077
|
__decorateClass([
|
|
4095
|
-
|
|
4096
|
-
|
|
4078
|
+
IsOptional20(),
|
|
4079
|
+
IsString29()
|
|
4097
4080
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4098
4081
|
|
|
4099
4082
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4103,7 +4086,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4103
4086
|
};
|
|
4104
4087
|
|
|
4105
4088
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4106
|
-
import { IsOptional as
|
|
4089
|
+
import { IsOptional as IsOptional21, IsEnum as IsEnum17, IsString as IsString30, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
|
|
4107
4090
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4108
4091
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4109
4092
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4114,15 +4097,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4114
4097
|
var FreelancerDeclarationDto = class {
|
|
4115
4098
|
};
|
|
4116
4099
|
__decorateClass([
|
|
4117
|
-
|
|
4118
|
-
|
|
4100
|
+
IsOptional21(),
|
|
4101
|
+
IsString30({ message: "UUID must be a string" })
|
|
4119
4102
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4120
4103
|
__decorateClass([
|
|
4121
4104
|
IsEnum17(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4122
4105
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4123
4106
|
__decorateClass([
|
|
4124
4107
|
IsNotEmpty46({ message: "Please accept the declaration " }),
|
|
4125
|
-
|
|
4108
|
+
IsString30(),
|
|
4126
4109
|
IsIn3([
|
|
4127
4110
|
"true"
|
|
4128
4111
|
])
|
|
@@ -4138,36 +4121,36 @@ var CMS_PATTERNS = {
|
|
|
4138
4121
|
};
|
|
4139
4122
|
|
|
4140
4123
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4141
|
-
import { IsBoolean as
|
|
4124
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional22 } from "class-validator";
|
|
4142
4125
|
var CreateCmsDto = class {
|
|
4143
4126
|
};
|
|
4144
4127
|
__decorateClass([
|
|
4145
4128
|
IsNotEmpty47({ message: "Please enter name." })
|
|
4146
4129
|
], CreateCmsDto.prototype, "title", 2);
|
|
4147
4130
|
__decorateClass([
|
|
4148
|
-
|
|
4131
|
+
IsOptional22()
|
|
4149
4132
|
], CreateCmsDto.prototype, "content", 2);
|
|
4150
4133
|
__decorateClass([
|
|
4151
|
-
|
|
4152
|
-
|
|
4134
|
+
IsOptional22(),
|
|
4135
|
+
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4153
4136
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4154
4137
|
|
|
4155
4138
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4156
|
-
import { IsBoolean as
|
|
4139
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional23 } from "class-validator";
|
|
4157
4140
|
var UpdateCmsDto = class {
|
|
4158
4141
|
};
|
|
4159
4142
|
__decorateClass([
|
|
4160
|
-
|
|
4143
|
+
IsOptional23()
|
|
4161
4144
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4162
4145
|
__decorateClass([
|
|
4163
4146
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4164
4147
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4165
4148
|
__decorateClass([
|
|
4166
|
-
|
|
4149
|
+
IsOptional23()
|
|
4167
4150
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4168
4151
|
__decorateClass([
|
|
4169
|
-
|
|
4170
|
-
|
|
4152
|
+
IsOptional23(),
|
|
4153
|
+
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4171
4154
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4172
4155
|
|
|
4173
4156
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4196,10 +4179,10 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4196
4179
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4197
4180
|
import { Type as Type8 } from "class-transformer";
|
|
4198
4181
|
import {
|
|
4199
|
-
IsString as
|
|
4182
|
+
IsString as IsString31,
|
|
4200
4183
|
IsEnum as IsEnum18,
|
|
4201
4184
|
IsInt as IsInt6,
|
|
4202
|
-
IsOptional as
|
|
4185
|
+
IsOptional as IsOptional24,
|
|
4203
4186
|
IsArray as IsArray11,
|
|
4204
4187
|
IsDateString as IsDateString4,
|
|
4205
4188
|
IsNotEmpty as IsNotEmpty49,
|
|
@@ -4222,12 +4205,12 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4222
4205
|
var AdminCreateJobInformationDto = class {
|
|
4223
4206
|
};
|
|
4224
4207
|
__decorateClass([
|
|
4225
|
-
|
|
4208
|
+
IsString31({ message: "Job role must be a string." }),
|
|
4226
4209
|
IsNotEmpty49({ message: "Job role is required." })
|
|
4227
4210
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4228
4211
|
__decorateClass([
|
|
4229
|
-
|
|
4230
|
-
|
|
4212
|
+
IsOptional24(),
|
|
4213
|
+
IsString31({ message: "Note must be a string." })
|
|
4231
4214
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4232
4215
|
__decorateClass([
|
|
4233
4216
|
IsArray11({ message: "Skills must be an array of numeric IDs." }),
|
|
@@ -4250,15 +4233,15 @@ __decorateClass([
|
|
|
4250
4233
|
})
|
|
4251
4234
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4252
4235
|
__decorateClass([
|
|
4253
|
-
|
|
4236
|
+
IsString31({ message: "Onboarding Days must be a string." }),
|
|
4254
4237
|
IsNotEmpty49({ message: "Onboarding Days is required." })
|
|
4255
4238
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4256
4239
|
__decorateClass([
|
|
4257
|
-
|
|
4240
|
+
IsString31({ message: "Communication skills must be a string." }),
|
|
4258
4241
|
IsNotEmpty49({ message: "Communication skills are required." })
|
|
4259
4242
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4260
4243
|
__decorateClass([
|
|
4261
|
-
|
|
4244
|
+
IsString31({ message: "Currency must be a string." }),
|
|
4262
4245
|
IsNotEmpty49({ message: "Currency is required." })
|
|
4263
4246
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4264
4247
|
__decorateClass([
|
|
@@ -4276,8 +4259,8 @@ __decorateClass([
|
|
|
4276
4259
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4277
4260
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4278
4261
|
__decorateClass([
|
|
4279
|
-
|
|
4280
|
-
|
|
4262
|
+
IsOptional24(),
|
|
4263
|
+
IsString31({ message: "Additional comment must be a string." })
|
|
4281
4264
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4282
4265
|
__decorateClass([
|
|
4283
4266
|
IsInt6({ message: "Country ID must be a valid integer." })
|
|
@@ -4295,10 +4278,10 @@ __decorateClass([
|
|
|
4295
4278
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4296
4279
|
import { Type as Type9 } from "class-transformer";
|
|
4297
4280
|
import {
|
|
4298
|
-
IsString as
|
|
4281
|
+
IsString as IsString32,
|
|
4299
4282
|
IsEnum as IsEnum19,
|
|
4300
4283
|
IsInt as IsInt7,
|
|
4301
|
-
IsOptional as
|
|
4284
|
+
IsOptional as IsOptional25,
|
|
4302
4285
|
IsArray as IsArray12,
|
|
4303
4286
|
IsDateString as IsDateString5,
|
|
4304
4287
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4321,12 +4304,12 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4321
4304
|
var AdminUpdateJobInformationDto = class {
|
|
4322
4305
|
};
|
|
4323
4306
|
__decorateClass([
|
|
4324
|
-
|
|
4307
|
+
IsString32({ message: "Job role must be a string." }),
|
|
4325
4308
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4326
4309
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4327
4310
|
__decorateClass([
|
|
4328
|
-
|
|
4329
|
-
|
|
4311
|
+
IsOptional25(),
|
|
4312
|
+
IsString32({ message: "Note must be a string." })
|
|
4330
4313
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4331
4314
|
__decorateClass([
|
|
4332
4315
|
IsArray12({ message: "Skills must be an array of numeric IDs." }),
|
|
@@ -4349,15 +4332,15 @@ __decorateClass([
|
|
|
4349
4332
|
})
|
|
4350
4333
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4351
4334
|
__decorateClass([
|
|
4352
|
-
|
|
4335
|
+
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4353
4336
|
IsNotEmpty50({ message: "Onboarding Days is required." })
|
|
4354
4337
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4355
4338
|
__decorateClass([
|
|
4356
|
-
|
|
4339
|
+
IsString32({ message: "Communication skills must be a string." }),
|
|
4357
4340
|
IsNotEmpty50({ message: "Communication skills are required." })
|
|
4358
4341
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4359
4342
|
__decorateClass([
|
|
4360
|
-
|
|
4343
|
+
IsString32({ message: "Currency must be a string." }),
|
|
4361
4344
|
IsNotEmpty50({ message: "Currency is required." })
|
|
4362
4345
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4363
4346
|
__decorateClass([
|
|
@@ -4375,8 +4358,8 @@ __decorateClass([
|
|
|
4375
4358
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4376
4359
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4377
4360
|
__decorateClass([
|
|
4378
|
-
|
|
4379
|
-
|
|
4361
|
+
IsOptional25(),
|
|
4362
|
+
IsString32({ message: "Additional comment must be a string." })
|
|
4380
4363
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4381
4364
|
__decorateClass([
|
|
4382
4365
|
IsInt7({ message: "Country ID must be a valid integer." })
|
|
@@ -4398,7 +4381,7 @@ var LEAD_PATTERN = {
|
|
|
4398
4381
|
};
|
|
4399
4382
|
|
|
4400
4383
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4401
|
-
import { IsString as
|
|
4384
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional26, IsEnum as IsEnum20 } from "class-validator";
|
|
4402
4385
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4403
4386
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4404
4387
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4407,20 +4390,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4407
4390
|
var CreateLeadDto = class {
|
|
4408
4391
|
};
|
|
4409
4392
|
__decorateClass([
|
|
4410
|
-
|
|
4393
|
+
IsString33({ message: "Name must be a string" })
|
|
4411
4394
|
], CreateLeadDto.prototype, "name", 2);
|
|
4412
4395
|
__decorateClass([
|
|
4413
|
-
|
|
4396
|
+
IsEmail14({}, { message: "Invalid email address" })
|
|
4414
4397
|
], CreateLeadDto.prototype, "email", 2);
|
|
4415
4398
|
__decorateClass([
|
|
4416
|
-
|
|
4399
|
+
IsString33({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4417
4400
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4418
4401
|
__decorateClass([
|
|
4419
|
-
|
|
4402
|
+
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4420
4403
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4421
4404
|
__decorateClass([
|
|
4422
|
-
|
|
4423
|
-
|
|
4405
|
+
IsOptional26(),
|
|
4406
|
+
IsString33({ message: "Description must be a string" })
|
|
4424
4407
|
], CreateLeadDto.prototype, "description", 2);
|
|
4425
4408
|
__decorateClass([
|
|
4426
4409
|
IsEnum20(CategoryEmumDto, {
|