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