@experts_hub/shared 1.0.252 → 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/decorators/index.d.ts +1 -0
- package/dist/decorators/is-valid-mobile-number.decorator.d.ts +6 -0
- package/dist/index.d.mts +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.js +585 -568
- package/dist/index.mjs +292 -272
- 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 +2 -1
package/dist/index.mjs
CHANGED
|
@@ -260,6 +260,43 @@ IfscOrOtherFieldsConstraint = __decorateClass([
|
|
|
260
260
|
ValidatorConstraint({ async: false })
|
|
261
261
|
], IfscOrOtherFieldsConstraint);
|
|
262
262
|
|
|
263
|
+
// src/decorators/is-valid-mobile-number.decorator.ts
|
|
264
|
+
import {
|
|
265
|
+
ValidatorConstraint as ValidatorConstraint2,
|
|
266
|
+
registerDecorator as registerDecorator2
|
|
267
|
+
} from "class-validator";
|
|
268
|
+
import { parsePhoneNumberFromString } from "libphonenumber-js";
|
|
269
|
+
var IsValidMobileNumberConstraint = class {
|
|
270
|
+
validate(mobile, args) {
|
|
271
|
+
const object = args.object;
|
|
272
|
+
const mobileCode = object.mobileCode;
|
|
273
|
+
if (!mobileCode || !mobile) return false;
|
|
274
|
+
try {
|
|
275
|
+
const phoneNumber = parsePhoneNumberFromString(mobileCode + mobile);
|
|
276
|
+
return phoneNumber?.isValid() ?? false;
|
|
277
|
+
} catch {
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
defaultMessage(args) {
|
|
282
|
+
return "Please enter a valid mobile number for the selected country code.";
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
IsValidMobileNumberConstraint = __decorateClass([
|
|
286
|
+
ValidatorConstraint2({ name: "isValidMobileNumber", async: false })
|
|
287
|
+
], IsValidMobileNumberConstraint);
|
|
288
|
+
function IsValidMobileNumber(validationOptions) {
|
|
289
|
+
return function(object, propertyName) {
|
|
290
|
+
registerDecorator2({
|
|
291
|
+
name: "isValidMobileNumber",
|
|
292
|
+
target: object.constructor,
|
|
293
|
+
propertyName,
|
|
294
|
+
options: validationOptions,
|
|
295
|
+
validator: IsValidMobileNumberConstraint
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
263
300
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
264
301
|
var FreelancerCreateAccountDto = class {
|
|
265
302
|
};
|
|
@@ -273,13 +310,13 @@ __decorateClass([
|
|
|
273
310
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
274
311
|
__decorateClass([
|
|
275
312
|
IsNotEmpty9({ message: "Please enter mobile code." }),
|
|
276
|
-
Matches3(
|
|
313
|
+
Matches3(/^\+\d{1,4}$/, {
|
|
314
|
+
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
315
|
+
})
|
|
277
316
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
278
317
|
__decorateClass([
|
|
279
318
|
IsNotEmpty9({ message: "Please enter mobile number." }),
|
|
280
|
-
|
|
281
|
-
message: "Please enter a valid US mobile number"
|
|
282
|
-
})
|
|
319
|
+
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
283
320
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
284
321
|
__decorateClass([
|
|
285
322
|
IsNotEmpty9({ message: "Please enter password." }),
|
|
@@ -531,9 +568,6 @@ import {
|
|
|
531
568
|
} from "class-validator";
|
|
532
569
|
var CreateSubAdminDto = class {
|
|
533
570
|
};
|
|
534
|
-
__decorateClass([
|
|
535
|
-
IsNotEmpty21({ message: "Please enter unique id." })
|
|
536
|
-
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
537
571
|
__decorateClass([
|
|
538
572
|
IsNotEmpty21({ message: "Please enter username." })
|
|
539
573
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
@@ -552,12 +586,6 @@ __decorateClass([
|
|
|
552
586
|
__decorateClass([
|
|
553
587
|
IsNotEmpty21({ message: "Please enter the password." })
|
|
554
588
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
555
|
-
__decorateClass([
|
|
556
|
-
IsNotEmpty21({ message: "Please enter account type." })
|
|
557
|
-
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
558
|
-
__decorateClass([
|
|
559
|
-
IsNotEmpty21({ message: "Please enter account status." })
|
|
560
|
-
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
561
589
|
|
|
562
590
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
563
591
|
import { IsString as IsString8 } from "class-validator";
|
|
@@ -571,9 +599,6 @@ __decorateClass([
|
|
|
571
599
|
import { IsNotEmpty as IsNotEmpty22 } from "class-validator";
|
|
572
600
|
var UpdateSubAdminDto = class {
|
|
573
601
|
};
|
|
574
|
-
__decorateClass([
|
|
575
|
-
IsNotEmpty22({ message: "Please enter unique id." })
|
|
576
|
-
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
577
602
|
__decorateClass([
|
|
578
603
|
IsNotEmpty22({ message: "Please enter username." })
|
|
579
604
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
@@ -592,12 +617,6 @@ __decorateClass([
|
|
|
592
617
|
__decorateClass([
|
|
593
618
|
IsNotEmpty22({ message: "Please enter the password." })
|
|
594
619
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
595
|
-
__decorateClass([
|
|
596
|
-
IsNotEmpty22({ message: "Please enter account type." })
|
|
597
|
-
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
598
|
-
__decorateClass([
|
|
599
|
-
IsNotEmpty22({ message: "Please enter account status." })
|
|
600
|
-
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
601
620
|
|
|
602
621
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
603
622
|
var CLIENT_PROFILE_PATTERN = {
|
|
@@ -611,9 +630,9 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
611
630
|
|
|
612
631
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
613
632
|
import {
|
|
614
|
-
IsString as
|
|
633
|
+
IsString as IsString9,
|
|
615
634
|
IsNotEmpty as IsNotEmpty23,
|
|
616
|
-
IsEmail as
|
|
635
|
+
IsEmail as IsEmail4,
|
|
617
636
|
Length as Length2,
|
|
618
637
|
IsUrl as IsUrl2,
|
|
619
638
|
Matches as Matches5
|
|
@@ -622,7 +641,7 @@ var UpdateCompanyProfileDto = class {
|
|
|
622
641
|
};
|
|
623
642
|
__decorateClass([
|
|
624
643
|
IsNotEmpty23({ message: "Please enter company name." }),
|
|
625
|
-
|
|
644
|
+
IsString9({ message: "Company name must be a string." }),
|
|
626
645
|
Length2(2, 255, {
|
|
627
646
|
message: "Company name must be between 2 and 255 characters"
|
|
628
647
|
})
|
|
@@ -633,12 +652,12 @@ __decorateClass([
|
|
|
633
652
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
634
653
|
__decorateClass([
|
|
635
654
|
IsNotEmpty23({ message: "Please enter company address." }),
|
|
636
|
-
|
|
655
|
+
IsString9({ message: "Company address must be a string" }),
|
|
637
656
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
638
657
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
639
658
|
__decorateClass([
|
|
640
659
|
IsNotEmpty23({ message: "Please enter mobile code." }),
|
|
641
|
-
|
|
660
|
+
IsString9({ message: "Mobile Code must be a string" })
|
|
642
661
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
643
662
|
__decorateClass([
|
|
644
663
|
IsNotEmpty23({ message: "Please enter phone number." }),
|
|
@@ -648,25 +667,25 @@ __decorateClass([
|
|
|
648
667
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
649
668
|
__decorateClass([
|
|
650
669
|
IsNotEmpty23({ message: "Please enter email." }),
|
|
651
|
-
|
|
670
|
+
IsEmail4()
|
|
652
671
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
653
672
|
__decorateClass([
|
|
654
673
|
IsNotEmpty23({ message: "Please enter something about company." }),
|
|
655
|
-
|
|
674
|
+
IsString9({ message: "About company must be a string." })
|
|
656
675
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
657
676
|
|
|
658
677
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
659
678
|
import {
|
|
660
|
-
IsString as
|
|
661
|
-
MinLength as
|
|
679
|
+
IsString as IsString10,
|
|
680
|
+
MinLength as MinLength5,
|
|
662
681
|
Matches as Matches6,
|
|
663
682
|
IsNotEmpty as IsNotEmpty24
|
|
664
683
|
} from "class-validator";
|
|
665
684
|
var ClientChangePasswordDto = class {
|
|
666
685
|
};
|
|
667
686
|
__decorateClass([
|
|
668
|
-
|
|
669
|
-
|
|
687
|
+
IsString10(),
|
|
688
|
+
MinLength5(8, { message: "Password must be at least 8 characters long." }),
|
|
670
689
|
Matches6(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
671
690
|
message: "Password must contain at least one uppercase letter and one number."
|
|
672
691
|
})
|
|
@@ -687,8 +706,8 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
687
706
|
// src/modules/question/dto/create-question.dto.ts
|
|
688
707
|
import {
|
|
689
708
|
IsNotEmpty as IsNotEmpty25,
|
|
690
|
-
IsOptional as
|
|
691
|
-
IsBoolean as
|
|
709
|
+
IsOptional as IsOptional3,
|
|
710
|
+
IsBoolean as IsBoolean2
|
|
692
711
|
} from "class-validator";
|
|
693
712
|
var CreateQuestionDto = class {
|
|
694
713
|
};
|
|
@@ -705,8 +724,8 @@ __decorateClass([
|
|
|
705
724
|
IsNotEmpty25({ message: "Please enter options." })
|
|
706
725
|
], CreateQuestionDto.prototype, "options", 2);
|
|
707
726
|
__decorateClass([
|
|
708
|
-
|
|
709
|
-
|
|
727
|
+
IsOptional3(),
|
|
728
|
+
IsBoolean2({ message: "Whether the question status active" })
|
|
710
729
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
711
730
|
|
|
712
731
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -735,12 +754,12 @@ var JOB_PATTERN = {
|
|
|
735
754
|
|
|
736
755
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
737
756
|
import {
|
|
738
|
-
IsString as
|
|
757
|
+
IsString as IsString11,
|
|
739
758
|
IsNotEmpty as IsNotEmpty26,
|
|
740
759
|
IsArray,
|
|
741
760
|
ArrayNotEmpty,
|
|
742
761
|
IsNumber,
|
|
743
|
-
IsOptional as
|
|
762
|
+
IsOptional as IsOptional4,
|
|
744
763
|
IsEnum as IsEnum7,
|
|
745
764
|
Min
|
|
746
765
|
} from "class-validator";
|
|
@@ -761,11 +780,11 @@ var JobBasicInformationDto = class {
|
|
|
761
780
|
};
|
|
762
781
|
__decorateClass([
|
|
763
782
|
IsNotEmpty26({ message: "Please enter job role" }),
|
|
764
|
-
|
|
783
|
+
IsString11({ message: "Job role must be a string" })
|
|
765
784
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
766
785
|
__decorateClass([
|
|
767
|
-
|
|
768
|
-
|
|
786
|
+
IsOptional4(),
|
|
787
|
+
IsString11({ message: "Note must be a string" })
|
|
769
788
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
770
789
|
__decorateClass([
|
|
771
790
|
IsArray({ message: "Skills must be an array" }),
|
|
@@ -805,7 +824,7 @@ __decorateClass([
|
|
|
805
824
|
})
|
|
806
825
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
807
826
|
__decorateClass([
|
|
808
|
-
|
|
827
|
+
IsString11({ message: "Currency must be a string" })
|
|
809
828
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
810
829
|
__decorateClass([
|
|
811
830
|
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
@@ -819,39 +838,39 @@ __decorateClass([
|
|
|
819
838
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
820
839
|
__decorateClass([
|
|
821
840
|
IsNotEmpty26({ message: "Please enter start date" }),
|
|
822
|
-
|
|
841
|
+
IsString11({ message: "Start date must be valid" })
|
|
823
842
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
824
843
|
__decorateClass([
|
|
825
844
|
IsNotEmpty26({ message: "Please enter end date" }),
|
|
826
|
-
|
|
845
|
+
IsString11({ message: "End date must be valid" })
|
|
827
846
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
828
847
|
__decorateClass([
|
|
829
|
-
|
|
830
|
-
|
|
848
|
+
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
849
|
+
IsOptional4()
|
|
831
850
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
832
851
|
__decorateClass([
|
|
833
|
-
|
|
834
|
-
|
|
852
|
+
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
853
|
+
IsOptional4()
|
|
835
854
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
836
855
|
|
|
837
856
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
838
|
-
import { IsOptional as
|
|
857
|
+
import { IsOptional as IsOptional5, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
|
|
839
858
|
var JobAdditionalCommentDto = class {
|
|
840
859
|
};
|
|
841
860
|
__decorateClass([
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
861
|
+
IsOptional5(),
|
|
862
|
+
IsString12({ message: "Additional comment must be a string" }),
|
|
863
|
+
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
845
864
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
846
865
|
|
|
847
866
|
// src/modules/job/dto/job-description.dto.ts
|
|
848
|
-
import { IsString as
|
|
867
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty27, MaxLength as MaxLength6 } from "class-validator";
|
|
849
868
|
var JobDescriptionDto = class {
|
|
850
869
|
};
|
|
851
870
|
__decorateClass([
|
|
852
871
|
IsNotEmpty27({ message: "Please enter job description" }),
|
|
853
|
-
|
|
854
|
-
|
|
872
|
+
IsString13({ message: "Description must be a string" }),
|
|
873
|
+
MaxLength6(5e3, { message: "Description must not exceed 5000 characters" })
|
|
855
874
|
], JobDescriptionDto.prototype, "description", 2);
|
|
856
875
|
|
|
857
876
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -888,6 +907,7 @@ var PROFILE_PATTERN = {
|
|
|
888
907
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
889
908
|
fetchFreelancerPublicProfile: "fetch.freelancer.public.profile",
|
|
890
909
|
fetchFreelancerScreeningResult: "fetch.freelancer.screening.result",
|
|
910
|
+
fetchFreelancerScreeningResultPublic: "fetch.freelancer.screening.result.public",
|
|
891
911
|
changeFreelancerPassword: "change.freelancer.password",
|
|
892
912
|
uploadFreelancerProfilePic: "upload.freelancer.profilepic",
|
|
893
913
|
updateFreelancerProfile: "update.freelancer.profile",
|
|
@@ -896,23 +916,23 @@ var PROFILE_PATTERN = {
|
|
|
896
916
|
|
|
897
917
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
898
918
|
import {
|
|
899
|
-
IsString as
|
|
919
|
+
IsString as IsString14,
|
|
900
920
|
IsNotEmpty as IsNotEmpty29,
|
|
901
|
-
MaxLength as
|
|
902
|
-
MinLength as
|
|
921
|
+
MaxLength as MaxLength7,
|
|
922
|
+
MinLength as MinLength6,
|
|
903
923
|
Matches as Matches7
|
|
904
924
|
} from "class-validator";
|
|
905
925
|
var FreelancerChangePasswordDto = class {
|
|
906
926
|
};
|
|
907
927
|
__decorateClass([
|
|
908
928
|
IsNotEmpty29({ message: "Please enter Old Password." }),
|
|
909
|
-
|
|
929
|
+
IsString14()
|
|
910
930
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
911
931
|
__decorateClass([
|
|
912
932
|
IsNotEmpty29({ message: "Please enter New Password." }),
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
933
|
+
IsString14(),
|
|
934
|
+
MinLength6(6),
|
|
935
|
+
MaxLength7(32),
|
|
916
936
|
Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
917
937
|
message: "New Password must include letters, numbers and symbols."
|
|
918
938
|
})
|
|
@@ -920,9 +940,9 @@ __decorateClass([
|
|
|
920
940
|
|
|
921
941
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
922
942
|
import {
|
|
923
|
-
IsOptional as
|
|
924
|
-
IsString as
|
|
925
|
-
IsEmail as
|
|
943
|
+
IsOptional as IsOptional6,
|
|
944
|
+
IsString as IsString15,
|
|
945
|
+
IsEmail as IsEmail5,
|
|
926
946
|
IsNumber as IsNumber2,
|
|
927
947
|
IsEnum as IsEnum9,
|
|
928
948
|
IsNotEmpty as IsNotEmpty30
|
|
@@ -943,31 +963,31 @@ var UpdateFreelancerProfileDto = class {
|
|
|
943
963
|
};
|
|
944
964
|
__decorateClass([
|
|
945
965
|
IsNotEmpty30({ message: "Please enter first name." }),
|
|
946
|
-
|
|
966
|
+
IsString15({ message: "Please enter valid first name." })
|
|
947
967
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
948
968
|
__decorateClass([
|
|
949
969
|
IsNotEmpty30({ message: "Please enter last name." }),
|
|
950
|
-
|
|
970
|
+
IsString15({ message: "Please enter valid last name." })
|
|
951
971
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
952
972
|
__decorateClass([
|
|
953
973
|
IsNotEmpty30({ message: "Please enter designation." }),
|
|
954
|
-
|
|
974
|
+
IsString15({ message: "Please enter valid designation." })
|
|
955
975
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
956
976
|
__decorateClass([
|
|
957
977
|
IsNotEmpty30({ message: "Please enter experience." }),
|
|
958
|
-
|
|
978
|
+
IsString15({ message: "Please enter valid experience." })
|
|
959
979
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
960
980
|
__decorateClass([
|
|
961
981
|
IsNotEmpty30({ message: "Please enter email id." }),
|
|
962
|
-
|
|
982
|
+
IsEmail5()
|
|
963
983
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
964
984
|
__decorateClass([
|
|
965
985
|
IsNotEmpty30({ message: "Please enter mobile code." }),
|
|
966
|
-
|
|
986
|
+
IsString15({ message: "Please enter valid mobile code." })
|
|
967
987
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
968
988
|
__decorateClass([
|
|
969
989
|
IsNotEmpty30({ message: "Please enter mobile number." }),
|
|
970
|
-
|
|
990
|
+
IsString15({ message: "Please enter valid mobile number." })
|
|
971
991
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
972
992
|
__decorateClass([
|
|
973
993
|
IsNotEmpty30({ message: "Please select country." }),
|
|
@@ -975,11 +995,11 @@ __decorateClass([
|
|
|
975
995
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
976
996
|
__decorateClass([
|
|
977
997
|
IsNotEmpty30({ message: "Please select currency." }),
|
|
978
|
-
|
|
998
|
+
IsString15({ message: "Please enter valid currency." })
|
|
979
999
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
980
1000
|
__decorateClass([
|
|
981
1001
|
IsNotEmpty30({ message: "Please enter expected hourly compensation." }),
|
|
982
|
-
|
|
1002
|
+
IsString15({ message: "Please enter valid expected hourly compensation." })
|
|
983
1003
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
984
1004
|
__decorateClass([
|
|
985
1005
|
IsNotEmpty30({ message: "Please select engagement type." }),
|
|
@@ -998,36 +1018,36 @@ __decorateClass([
|
|
|
998
1018
|
})
|
|
999
1019
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1000
1020
|
__decorateClass([
|
|
1001
|
-
|
|
1002
|
-
|
|
1021
|
+
IsOptional6(),
|
|
1022
|
+
IsString15()
|
|
1003
1023
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1004
1024
|
__decorateClass([
|
|
1005
|
-
|
|
1006
|
-
|
|
1025
|
+
IsOptional6(),
|
|
1026
|
+
IsString15()
|
|
1007
1027
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1008
1028
|
__decorateClass([
|
|
1009
|
-
|
|
1010
|
-
|
|
1029
|
+
IsOptional6(),
|
|
1030
|
+
IsString15()
|
|
1011
1031
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1012
1032
|
__decorateClass([
|
|
1013
|
-
|
|
1014
|
-
|
|
1033
|
+
IsOptional6(),
|
|
1034
|
+
IsString15()
|
|
1015
1035
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1016
1036
|
__decorateClass([
|
|
1017
|
-
|
|
1018
|
-
|
|
1037
|
+
IsOptional6(),
|
|
1038
|
+
IsString15()
|
|
1019
1039
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1020
1040
|
__decorateClass([
|
|
1021
|
-
|
|
1022
|
-
|
|
1041
|
+
IsOptional6(),
|
|
1042
|
+
IsString15()
|
|
1023
1043
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1024
1044
|
__decorateClass([
|
|
1025
|
-
|
|
1026
|
-
|
|
1045
|
+
IsOptional6(),
|
|
1046
|
+
IsString15()
|
|
1027
1047
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1028
1048
|
__decorateClass([
|
|
1029
|
-
|
|
1030
|
-
|
|
1049
|
+
IsOptional6(),
|
|
1050
|
+
IsString15()
|
|
1031
1051
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1032
1052
|
|
|
1033
1053
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1041,7 +1061,7 @@ var BANK_PATTERN = {
|
|
|
1041
1061
|
import {
|
|
1042
1062
|
IsEnum as IsEnum10,
|
|
1043
1063
|
IsNotEmpty as IsNotEmpty31,
|
|
1044
|
-
IsOptional as
|
|
1064
|
+
IsOptional as IsOptional7,
|
|
1045
1065
|
ValidateIf as ValidateIf2
|
|
1046
1066
|
} from "class-validator";
|
|
1047
1067
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1061,7 +1081,7 @@ __decorateClass([
|
|
|
1061
1081
|
IsNotEmpty31({ message: "Please enter Email." })
|
|
1062
1082
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1063
1083
|
__decorateClass([
|
|
1064
|
-
|
|
1084
|
+
IsOptional7()
|
|
1065
1085
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1066
1086
|
__decorateClass([
|
|
1067
1087
|
IsNotEmpty31({ message: "Please enter Account Number." })
|
|
@@ -1089,7 +1109,7 @@ __decorateClass([
|
|
|
1089
1109
|
IsNotEmpty31({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1090
1110
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1091
1111
|
__decorateClass([
|
|
1092
|
-
|
|
1112
|
+
IsOptional7()
|
|
1093
1113
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1094
1114
|
__decorateClass([
|
|
1095
1115
|
IsEnum10(BankAccountScope, {
|
|
@@ -1113,7 +1133,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1113
1133
|
|
|
1114
1134
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1115
1135
|
import {
|
|
1116
|
-
IsBoolean as
|
|
1136
|
+
IsBoolean as IsBoolean3,
|
|
1117
1137
|
IsEnum as IsEnum11
|
|
1118
1138
|
} from "class-validator";
|
|
1119
1139
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
@@ -1124,7 +1144,7 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1124
1144
|
var SystemPreferenceDto = class {
|
|
1125
1145
|
};
|
|
1126
1146
|
__decorateClass([
|
|
1127
|
-
|
|
1147
|
+
IsBoolean3()
|
|
1128
1148
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1129
1149
|
__decorateClass([
|
|
1130
1150
|
IsEnum11(SystemPreferenceKey, {
|
|
@@ -1151,8 +1171,8 @@ import {
|
|
|
1151
1171
|
IsEnum as IsEnum12,
|
|
1152
1172
|
IsInt,
|
|
1153
1173
|
IsNotEmpty as IsNotEmpty32,
|
|
1154
|
-
IsOptional as
|
|
1155
|
-
IsString as
|
|
1174
|
+
IsOptional as IsOptional8,
|
|
1175
|
+
IsString as IsString16,
|
|
1156
1176
|
Max,
|
|
1157
1177
|
Min as Min2
|
|
1158
1178
|
} from "class-validator";
|
|
@@ -3336,8 +3356,8 @@ __decorateClass([
|
|
|
3336
3356
|
Max(5, { message: "Rating must be at most 5" })
|
|
3337
3357
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3338
3358
|
__decorateClass([
|
|
3339
|
-
|
|
3340
|
-
|
|
3359
|
+
IsOptional8(),
|
|
3360
|
+
IsString16({ message: "Review must be a string" })
|
|
3341
3361
|
], CreateRatingDto.prototype, "review", 2);
|
|
3342
3362
|
|
|
3343
3363
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3353,7 +3373,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3353
3373
|
};
|
|
3354
3374
|
|
|
3355
3375
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3356
|
-
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";
|
|
3357
3377
|
var CreateCompanyRoleDto = class {
|
|
3358
3378
|
};
|
|
3359
3379
|
__decorateClass([
|
|
@@ -3371,12 +3391,12 @@ __decorateClass([
|
|
|
3371
3391
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3372
3392
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3373
3393
|
__decorateClass([
|
|
3374
|
-
|
|
3375
|
-
|
|
3394
|
+
IsOptional9(),
|
|
3395
|
+
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3376
3396
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3377
3397
|
|
|
3378
3398
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3379
|
-
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";
|
|
3380
3400
|
var UpdateCompanyRoleDto = class {
|
|
3381
3401
|
};
|
|
3382
3402
|
__decorateClass([
|
|
@@ -3394,16 +3414,16 @@ __decorateClass([
|
|
|
3394
3414
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3395
3415
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3396
3416
|
__decorateClass([
|
|
3397
|
-
|
|
3398
|
-
|
|
3417
|
+
IsOptional10(),
|
|
3418
|
+
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3399
3419
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3400
3420
|
|
|
3401
3421
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3402
|
-
import { IsBoolean as
|
|
3422
|
+
import { IsBoolean as IsBoolean6 } from "class-validator";
|
|
3403
3423
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3404
3424
|
};
|
|
3405
3425
|
__decorateClass([
|
|
3406
|
-
|
|
3426
|
+
IsBoolean6()
|
|
3407
3427
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3408
3428
|
|
|
3409
3429
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3416,33 +3436,33 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3416
3436
|
import {
|
|
3417
3437
|
ArrayMinSize,
|
|
3418
3438
|
IsNotEmpty as IsNotEmpty35,
|
|
3419
|
-
IsOptional as
|
|
3420
|
-
IsString as
|
|
3421
|
-
MaxLength as
|
|
3439
|
+
IsOptional as IsOptional11,
|
|
3440
|
+
IsString as IsString19,
|
|
3441
|
+
MaxLength as MaxLength9,
|
|
3422
3442
|
ValidateNested
|
|
3423
3443
|
} from "class-validator";
|
|
3424
3444
|
import { Type as Type2 } from "class-transformer";
|
|
3425
3445
|
var ExperienceDto = class {
|
|
3426
3446
|
};
|
|
3427
3447
|
__decorateClass([
|
|
3428
|
-
|
|
3448
|
+
IsOptional11()
|
|
3429
3449
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3430
3450
|
__decorateClass([
|
|
3431
3451
|
IsNotEmpty35(),
|
|
3432
|
-
|
|
3452
|
+
IsString19()
|
|
3433
3453
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3434
3454
|
__decorateClass([
|
|
3435
3455
|
IsNotEmpty35(),
|
|
3436
|
-
|
|
3456
|
+
IsString19()
|
|
3437
3457
|
], ExperienceDto.prototype, "designation", 2);
|
|
3438
3458
|
__decorateClass([
|
|
3439
3459
|
IsNotEmpty35(),
|
|
3440
|
-
|
|
3460
|
+
IsString19()
|
|
3441
3461
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3442
3462
|
__decorateClass([
|
|
3443
3463
|
IsNotEmpty35(),
|
|
3444
|
-
|
|
3445
|
-
|
|
3464
|
+
IsString19(),
|
|
3465
|
+
MaxLength9(500, { message: "Description must not exceed 500 characters" })
|
|
3446
3466
|
], ExperienceDto.prototype, "description", 2);
|
|
3447
3467
|
var FreelancerExperienceDto = class {
|
|
3448
3468
|
};
|
|
@@ -3497,11 +3517,11 @@ __decorateClass([
|
|
|
3497
3517
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3498
3518
|
|
|
3499
3519
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3500
|
-
import { IsBoolean as
|
|
3520
|
+
import { IsBoolean as IsBoolean9 } from "class-validator";
|
|
3501
3521
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3502
3522
|
};
|
|
3503
3523
|
__decorateClass([
|
|
3504
|
-
|
|
3524
|
+
IsBoolean9()
|
|
3505
3525
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3506
3526
|
|
|
3507
3527
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3511,23 +3531,23 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3511
3531
|
};
|
|
3512
3532
|
|
|
3513
3533
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3514
|
-
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";
|
|
3515
3535
|
import { Type as Type3 } from "class-transformer";
|
|
3516
3536
|
var EducationDto = class {
|
|
3517
3537
|
};
|
|
3518
3538
|
__decorateClass([
|
|
3519
|
-
|
|
3539
|
+
IsOptional14()
|
|
3520
3540
|
], EducationDto.prototype, "uuid", 2);
|
|
3521
3541
|
__decorateClass([
|
|
3522
|
-
|
|
3542
|
+
IsString22(),
|
|
3523
3543
|
IsNotEmpty38({ message: "Please Enter Degree " })
|
|
3524
3544
|
], EducationDto.prototype, "degree", 2);
|
|
3525
3545
|
__decorateClass([
|
|
3526
|
-
|
|
3546
|
+
IsString22(),
|
|
3527
3547
|
IsNotEmpty38({ message: "Please Enter University " })
|
|
3528
3548
|
], EducationDto.prototype, "university", 2);
|
|
3529
3549
|
__decorateClass([
|
|
3530
|
-
|
|
3550
|
+
IsString22(),
|
|
3531
3551
|
IsNotEmpty38({ message: "Please Enter Year of Graduation " })
|
|
3532
3552
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3533
3553
|
var FreelancerEducationDto = class {
|
|
@@ -3546,15 +3566,15 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3546
3566
|
};
|
|
3547
3567
|
|
|
3548
3568
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3549
|
-
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";
|
|
3550
3570
|
import { Type as Type4 } from "class-transformer";
|
|
3551
3571
|
var ProjectDto = class {
|
|
3552
3572
|
};
|
|
3553
3573
|
__decorateClass([
|
|
3554
|
-
|
|
3574
|
+
IsOptional15()
|
|
3555
3575
|
], ProjectDto.prototype, "uuid", 2);
|
|
3556
3576
|
__decorateClass([
|
|
3557
|
-
|
|
3577
|
+
IsString23(),
|
|
3558
3578
|
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3559
3579
|
], ProjectDto.prototype, "projectName", 2);
|
|
3560
3580
|
__decorateClass([
|
|
@@ -3566,35 +3586,35 @@ __decorateClass([
|
|
|
3566
3586
|
IsNotEmpty39({ message: "Please Enter End Date " })
|
|
3567
3587
|
], ProjectDto.prototype, "endDate", 2);
|
|
3568
3588
|
__decorateClass([
|
|
3569
|
-
|
|
3570
|
-
|
|
3589
|
+
IsOptional15(),
|
|
3590
|
+
IsString23()
|
|
3571
3591
|
], ProjectDto.prototype, "clientName", 2);
|
|
3572
3592
|
__decorateClass([
|
|
3573
|
-
|
|
3574
|
-
|
|
3593
|
+
IsOptional15(),
|
|
3594
|
+
IsString23()
|
|
3575
3595
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3576
3596
|
__decorateClass([
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3597
|
+
IsOptional15(),
|
|
3598
|
+
IsString23(),
|
|
3599
|
+
MaxLength11(500, { message: "Description must not exceed 500 characters" })
|
|
3580
3600
|
], ProjectDto.prototype, "description", 2);
|
|
3581
3601
|
var CaseStudyDto = class {
|
|
3582
3602
|
};
|
|
3583
3603
|
__decorateClass([
|
|
3584
|
-
|
|
3604
|
+
IsOptional15()
|
|
3585
3605
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3586
3606
|
__decorateClass([
|
|
3587
|
-
|
|
3607
|
+
IsString23(),
|
|
3588
3608
|
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3589
3609
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3590
3610
|
__decorateClass([
|
|
3591
|
-
|
|
3611
|
+
IsString23(),
|
|
3592
3612
|
IsNotEmpty39({ message: "Please Enter Case Study Link " })
|
|
3593
3613
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3594
3614
|
__decorateClass([
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3615
|
+
IsOptional15(),
|
|
3616
|
+
IsString23(),
|
|
3617
|
+
MaxLength11(500, { message: "Description must not exceed 500 characters" })
|
|
3598
3618
|
], CaseStudyDto.prototype, "description", 2);
|
|
3599
3619
|
var FreelancerProjectDto = class {
|
|
3600
3620
|
};
|
|
@@ -3622,7 +3642,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3622
3642
|
};
|
|
3623
3643
|
|
|
3624
3644
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3625
|
-
import { IsArray as IsArray8, IsString as
|
|
3645
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional16 } from "class-validator";
|
|
3626
3646
|
import { Type as Type5 } from "class-transformer";
|
|
3627
3647
|
var FreelancerSkillDto = class {
|
|
3628
3648
|
constructor() {
|
|
@@ -3632,22 +3652,22 @@ var FreelancerSkillDto = class {
|
|
|
3632
3652
|
}
|
|
3633
3653
|
};
|
|
3634
3654
|
__decorateClass([
|
|
3635
|
-
|
|
3655
|
+
IsOptional16(),
|
|
3636
3656
|
IsArray8(),
|
|
3637
3657
|
Type5(() => String),
|
|
3638
|
-
|
|
3658
|
+
IsString24({ each: true })
|
|
3639
3659
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3640
3660
|
__decorateClass([
|
|
3641
|
-
|
|
3661
|
+
IsOptional16(),
|
|
3642
3662
|
IsArray8(),
|
|
3643
3663
|
Type5(() => String),
|
|
3644
|
-
|
|
3664
|
+
IsString24({ each: true })
|
|
3645
3665
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3646
3666
|
__decorateClass([
|
|
3647
|
-
|
|
3667
|
+
IsOptional16(),
|
|
3648
3668
|
IsArray8(),
|
|
3649
3669
|
Type5(() => String),
|
|
3650
|
-
|
|
3670
|
+
IsString24({ each: true })
|
|
3651
3671
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3652
3672
|
|
|
3653
3673
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3664,17 +3684,17 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3664
3684
|
|
|
3665
3685
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3666
3686
|
import {
|
|
3667
|
-
IsString as
|
|
3668
|
-
IsEmail as
|
|
3669
|
-
IsBoolean as
|
|
3670
|
-
IsOptional as
|
|
3687
|
+
IsString as IsString25,
|
|
3688
|
+
IsEmail as IsEmail10,
|
|
3689
|
+
IsBoolean as IsBoolean10,
|
|
3690
|
+
IsOptional as IsOptional17,
|
|
3671
3691
|
IsEnum as IsEnum13,
|
|
3672
3692
|
IsNumber as IsNumber3,
|
|
3673
3693
|
IsUrl as IsUrl3,
|
|
3674
3694
|
Min as Min3,
|
|
3675
|
-
MaxLength as
|
|
3695
|
+
MaxLength as MaxLength13,
|
|
3676
3696
|
IsNotEmpty as IsNotEmpty41,
|
|
3677
|
-
MinLength as
|
|
3697
|
+
MinLength as MinLength11,
|
|
3678
3698
|
Matches as Matches8,
|
|
3679
3699
|
ValidateIf as ValidateIf3
|
|
3680
3700
|
} from "class-validator";
|
|
@@ -3694,22 +3714,22 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3694
3714
|
var CreateFreelancerDto = class {
|
|
3695
3715
|
};
|
|
3696
3716
|
__decorateClass([
|
|
3697
|
-
|
|
3698
|
-
|
|
3717
|
+
IsString25({ message: "Full name must be a string" }),
|
|
3718
|
+
MaxLength13(100, { message: "Full name must not exceed 100 characters" })
|
|
3699
3719
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3700
3720
|
__decorateClass([
|
|
3701
|
-
|
|
3721
|
+
IsEmail10({}, { message: "Invalid email address" })
|
|
3702
3722
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3703
3723
|
__decorateClass([
|
|
3704
|
-
|
|
3724
|
+
IsString25({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3705
3725
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3706
3726
|
__decorateClass([
|
|
3707
|
-
|
|
3727
|
+
IsString25({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3708
3728
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3709
3729
|
__decorateClass([
|
|
3710
3730
|
IsNotEmpty41({ message: "Please enter password." }),
|
|
3711
|
-
|
|
3712
|
-
|
|
3731
|
+
MinLength11(6),
|
|
3732
|
+
MaxLength13(32),
|
|
3713
3733
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3714
3734
|
message: "Password must include letters, numbers and symbols."
|
|
3715
3735
|
})
|
|
@@ -3719,7 +3739,7 @@ __decorateClass([
|
|
|
3719
3739
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3720
3740
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3721
3741
|
__decorateClass([
|
|
3722
|
-
|
|
3742
|
+
IsBoolean10({ message: "Developer flag must be true or false" }),
|
|
3723
3743
|
Type6(() => Boolean)
|
|
3724
3744
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3725
3745
|
__decorateClass([
|
|
@@ -3742,7 +3762,7 @@ __decorateClass([
|
|
|
3742
3762
|
})
|
|
3743
3763
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3744
3764
|
__decorateClass([
|
|
3745
|
-
|
|
3765
|
+
IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
|
|
3746
3766
|
Type6(() => Boolean)
|
|
3747
3767
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3748
3768
|
__decorateClass([
|
|
@@ -3750,38 +3770,38 @@ __decorateClass([
|
|
|
3750
3770
|
IsNotEmpty41({ message: "Please enter availability to join." })
|
|
3751
3771
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3752
3772
|
__decorateClass([
|
|
3753
|
-
|
|
3773
|
+
IsOptional17(),
|
|
3754
3774
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3755
3775
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3756
3776
|
__decorateClass([
|
|
3757
|
-
|
|
3758
|
-
|
|
3777
|
+
IsOptional17(),
|
|
3778
|
+
IsString25({ message: "Kaggle profile link must be a string" })
|
|
3759
3779
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3760
3780
|
__decorateClass([
|
|
3761
|
-
|
|
3781
|
+
IsOptional17(),
|
|
3762
3782
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
3763
3783
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3764
3784
|
__decorateClass([
|
|
3765
|
-
|
|
3785
|
+
IsOptional17(),
|
|
3766
3786
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3767
3787
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3768
3788
|
__decorateClass([
|
|
3769
|
-
|
|
3789
|
+
IsOptional17(),
|
|
3770
3790
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
3771
3791
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3772
3792
|
|
|
3773
3793
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3774
3794
|
import {
|
|
3775
|
-
IsString as
|
|
3776
|
-
IsEmail as
|
|
3777
|
-
IsBoolean as
|
|
3778
|
-
IsOptional as
|
|
3795
|
+
IsString as IsString26,
|
|
3796
|
+
IsEmail as IsEmail11,
|
|
3797
|
+
IsBoolean as IsBoolean11,
|
|
3798
|
+
IsOptional as IsOptional18,
|
|
3779
3799
|
IsEnum as IsEnum14,
|
|
3780
3800
|
IsNumber as IsNumber4,
|
|
3781
3801
|
IsUrl as IsUrl4,
|
|
3782
3802
|
Min as Min4,
|
|
3783
|
-
MaxLength as
|
|
3784
|
-
MinLength as
|
|
3803
|
+
MaxLength as MaxLength14,
|
|
3804
|
+
MinLength as MinLength12,
|
|
3785
3805
|
Matches as Matches9,
|
|
3786
3806
|
IsNotEmpty as IsNotEmpty42,
|
|
3787
3807
|
ValidateIf as ValidateIf4
|
|
@@ -3802,37 +3822,37 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3802
3822
|
var UpdateFreelancerDto = class {
|
|
3803
3823
|
};
|
|
3804
3824
|
__decorateClass([
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3825
|
+
IsOptional18(),
|
|
3826
|
+
IsString26({ message: "Full name must be a string" }),
|
|
3827
|
+
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
3808
3828
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3809
3829
|
__decorateClass([
|
|
3810
|
-
|
|
3811
|
-
|
|
3830
|
+
IsOptional18(),
|
|
3831
|
+
IsEmail11({}, { message: "Invalid email address" })
|
|
3812
3832
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3813
3833
|
__decorateClass([
|
|
3814
|
-
|
|
3815
|
-
|
|
3834
|
+
IsOptional18(),
|
|
3835
|
+
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3816
3836
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3817
3837
|
__decorateClass([
|
|
3818
|
-
|
|
3819
|
-
|
|
3838
|
+
IsOptional18(),
|
|
3839
|
+
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3820
3840
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3821
3841
|
__decorateClass([
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3842
|
+
IsOptional18(),
|
|
3843
|
+
MinLength12(6, { message: "Password must be at least 6 characters." }),
|
|
3844
|
+
MaxLength14(32, { message: "Password must not exceed 32 characters." }),
|
|
3825
3845
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3826
3846
|
message: "Password must include letters, numbers and symbols."
|
|
3827
3847
|
})
|
|
3828
3848
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3829
3849
|
__decorateClass([
|
|
3830
|
-
|
|
3831
|
-
|
|
3850
|
+
IsOptional18(),
|
|
3851
|
+
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
3832
3852
|
Type7(() => Boolean)
|
|
3833
3853
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3834
3854
|
__decorateClass([
|
|
3835
|
-
|
|
3855
|
+
IsOptional18(),
|
|
3836
3856
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3837
3857
|
message: `Nature of work must be one of: ${Object.values(
|
|
3838
3858
|
NatureOfWorkEnum2
|
|
@@ -3840,13 +3860,13 @@ __decorateClass([
|
|
|
3840
3860
|
})
|
|
3841
3861
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3842
3862
|
__decorateClass([
|
|
3843
|
-
|
|
3863
|
+
IsOptional18(),
|
|
3844
3864
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3845
3865
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3846
3866
|
Type7(() => Number)
|
|
3847
3867
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3848
3868
|
__decorateClass([
|
|
3849
|
-
|
|
3869
|
+
IsOptional18(),
|
|
3850
3870
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3851
3871
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3852
3872
|
", "
|
|
@@ -3854,8 +3874,8 @@ __decorateClass([
|
|
|
3854
3874
|
})
|
|
3855
3875
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3856
3876
|
__decorateClass([
|
|
3857
|
-
|
|
3858
|
-
|
|
3877
|
+
IsOptional18(),
|
|
3878
|
+
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
3859
3879
|
Type7(() => Boolean)
|
|
3860
3880
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3861
3881
|
__decorateClass([
|
|
@@ -3863,23 +3883,23 @@ __decorateClass([
|
|
|
3863
3883
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
3864
3884
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3865
3885
|
__decorateClass([
|
|
3866
|
-
|
|
3886
|
+
IsOptional18(),
|
|
3867
3887
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3868
3888
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3869
3889
|
__decorateClass([
|
|
3870
|
-
|
|
3871
|
-
|
|
3890
|
+
IsOptional18(),
|
|
3891
|
+
IsString26({ message: "Kaggle profile link must be a string" })
|
|
3872
3892
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3873
3893
|
__decorateClass([
|
|
3874
|
-
|
|
3894
|
+
IsOptional18(),
|
|
3875
3895
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
3876
3896
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3877
3897
|
__decorateClass([
|
|
3878
|
-
|
|
3898
|
+
IsOptional18(),
|
|
3879
3899
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3880
3900
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3881
3901
|
__decorateClass([
|
|
3882
|
-
|
|
3902
|
+
IsOptional18(),
|
|
3883
3903
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
3884
3904
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3885
3905
|
|
|
@@ -3899,12 +3919,12 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3899
3919
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3900
3920
|
import {
|
|
3901
3921
|
IsNotEmpty as IsNotEmpty43,
|
|
3902
|
-
IsEmail as
|
|
3903
|
-
IsOptional as
|
|
3904
|
-
IsString as
|
|
3922
|
+
IsEmail as IsEmail12,
|
|
3923
|
+
IsOptional as IsOptional19,
|
|
3924
|
+
IsString as IsString27,
|
|
3905
3925
|
IsArray as IsArray9,
|
|
3906
|
-
MinLength as
|
|
3907
|
-
MaxLength as
|
|
3926
|
+
MinLength as MinLength13,
|
|
3927
|
+
MaxLength as MaxLength15,
|
|
3908
3928
|
IsEnum as IsEnum15,
|
|
3909
3929
|
Matches as Matches10
|
|
3910
3930
|
} from "class-validator";
|
|
@@ -3924,20 +3944,20 @@ var CreateClientDto = class {
|
|
|
3924
3944
|
};
|
|
3925
3945
|
__decorateClass([
|
|
3926
3946
|
IsNotEmpty43({ message: "Please enter first name." }),
|
|
3927
|
-
|
|
3947
|
+
IsString27()
|
|
3928
3948
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3929
3949
|
__decorateClass([
|
|
3930
3950
|
IsNotEmpty43({ message: "Please enter last name." }),
|
|
3931
|
-
|
|
3951
|
+
IsString27()
|
|
3932
3952
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3933
3953
|
__decorateClass([
|
|
3934
3954
|
IsNotEmpty43({ message: "Please enter email." }),
|
|
3935
|
-
|
|
3955
|
+
IsEmail12()
|
|
3936
3956
|
], CreateClientDto.prototype, "email", 2);
|
|
3937
3957
|
__decorateClass([
|
|
3938
3958
|
IsNotEmpty43({ message: "Please enter password." }),
|
|
3939
|
-
|
|
3940
|
-
|
|
3959
|
+
MinLength13(6),
|
|
3960
|
+
MaxLength15(32),
|
|
3941
3961
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3942
3962
|
message: "Password must include letters, numbers and symbols."
|
|
3943
3963
|
})
|
|
@@ -3948,7 +3968,7 @@ __decorateClass([
|
|
|
3948
3968
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3949
3969
|
__decorateClass([
|
|
3950
3970
|
IsNotEmpty43({ message: "Please enter company name." }),
|
|
3951
|
-
|
|
3971
|
+
IsString27()
|
|
3952
3972
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3953
3973
|
__decorateClass([
|
|
3954
3974
|
IsArray9({ message: "Skills should be an array." }),
|
|
@@ -3956,7 +3976,7 @@ __decorateClass([
|
|
|
3956
3976
|
], CreateClientDto.prototype, "skills", 2);
|
|
3957
3977
|
__decorateClass([
|
|
3958
3978
|
IsNotEmpty43({ message: "Please specify required freelancer count." }),
|
|
3959
|
-
|
|
3979
|
+
IsString27()
|
|
3960
3980
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3961
3981
|
__decorateClass([
|
|
3962
3982
|
IsNotEmpty43({ message: "Please specify the kind of hiring." }),
|
|
@@ -3968,31 +3988,31 @@ __decorateClass([
|
|
|
3968
3988
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3969
3989
|
__decorateClass([
|
|
3970
3990
|
IsNotEmpty43({ message: "Please let us know how you found us." }),
|
|
3971
|
-
|
|
3991
|
+
IsString27()
|
|
3972
3992
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3973
3993
|
__decorateClass([
|
|
3974
|
-
|
|
3975
|
-
|
|
3994
|
+
IsOptional19(),
|
|
3995
|
+
IsString27()
|
|
3976
3996
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3977
3997
|
|
|
3978
3998
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3979
|
-
import { IsString as
|
|
3999
|
+
import { IsString as IsString28, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
3980
4000
|
var UpdateClientAccountStatusDto = class {
|
|
3981
4001
|
};
|
|
3982
4002
|
__decorateClass([
|
|
3983
4003
|
IsNotEmpty44({ message: "Please enter account status." }),
|
|
3984
|
-
|
|
4004
|
+
IsString28()
|
|
3985
4005
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3986
4006
|
|
|
3987
4007
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3988
4008
|
import {
|
|
3989
4009
|
IsNotEmpty as IsNotEmpty45,
|
|
3990
|
-
IsEmail as
|
|
3991
|
-
IsOptional as
|
|
3992
|
-
IsString as
|
|
4010
|
+
IsEmail as IsEmail13,
|
|
4011
|
+
IsOptional as IsOptional20,
|
|
4012
|
+
IsString as IsString29,
|
|
3993
4013
|
IsArray as IsArray10,
|
|
3994
|
-
MinLength as
|
|
3995
|
-
MaxLength as
|
|
4014
|
+
MinLength as MinLength14,
|
|
4015
|
+
MaxLength as MaxLength16,
|
|
3996
4016
|
IsEnum as IsEnum16,
|
|
3997
4017
|
Matches as Matches11
|
|
3998
4018
|
} from "class-validator";
|
|
@@ -4012,27 +4032,27 @@ var UpdateClientDto = class {
|
|
|
4012
4032
|
};
|
|
4013
4033
|
__decorateClass([
|
|
4014
4034
|
IsNotEmpty45({ message: "Please enter first name." }),
|
|
4015
|
-
|
|
4035
|
+
IsString29()
|
|
4016
4036
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4017
4037
|
__decorateClass([
|
|
4018
4038
|
IsNotEmpty45({ message: "Please enter last name." }),
|
|
4019
|
-
|
|
4039
|
+
IsString29()
|
|
4020
4040
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4021
4041
|
__decorateClass([
|
|
4022
4042
|
IsNotEmpty45({ message: "Please enter email." }),
|
|
4023
|
-
|
|
4043
|
+
IsEmail13()
|
|
4024
4044
|
], UpdateClientDto.prototype, "email", 2);
|
|
4025
4045
|
__decorateClass([
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4046
|
+
IsOptional20(),
|
|
4047
|
+
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
4048
|
+
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
4029
4049
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4030
4050
|
message: "Password must include letters, numbers and symbols."
|
|
4031
4051
|
})
|
|
4032
4052
|
], UpdateClientDto.prototype, "password", 2);
|
|
4033
4053
|
__decorateClass([
|
|
4034
4054
|
IsNotEmpty45({ message: "Please enter company name." }),
|
|
4035
|
-
|
|
4055
|
+
IsString29()
|
|
4036
4056
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4037
4057
|
__decorateClass([
|
|
4038
4058
|
IsArray10({ message: "Skills should be an array." }),
|
|
@@ -4040,7 +4060,7 @@ __decorateClass([
|
|
|
4040
4060
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4041
4061
|
__decorateClass([
|
|
4042
4062
|
IsNotEmpty45({ message: "Please specify required freelancer count." }),
|
|
4043
|
-
|
|
4063
|
+
IsString29()
|
|
4044
4064
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4045
4065
|
__decorateClass([
|
|
4046
4066
|
IsNotEmpty45({ message: "Please specify the kind of hiring." }),
|
|
@@ -4052,11 +4072,11 @@ __decorateClass([
|
|
|
4052
4072
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4053
4073
|
__decorateClass([
|
|
4054
4074
|
IsNotEmpty45({ message: "Please let us know how you found us." }),
|
|
4055
|
-
|
|
4075
|
+
IsString29()
|
|
4056
4076
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4057
4077
|
__decorateClass([
|
|
4058
|
-
|
|
4059
|
-
|
|
4078
|
+
IsOptional20(),
|
|
4079
|
+
IsString29()
|
|
4060
4080
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4061
4081
|
|
|
4062
4082
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4066,7 +4086,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4066
4086
|
};
|
|
4067
4087
|
|
|
4068
4088
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4069
|
-
import { IsOptional as
|
|
4089
|
+
import { IsOptional as IsOptional21, IsEnum as IsEnum17, IsString as IsString30, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
|
|
4070
4090
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4071
4091
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4072
4092
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4077,15 +4097,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4077
4097
|
var FreelancerDeclarationDto = class {
|
|
4078
4098
|
};
|
|
4079
4099
|
__decorateClass([
|
|
4080
|
-
|
|
4081
|
-
|
|
4100
|
+
IsOptional21(),
|
|
4101
|
+
IsString30({ message: "UUID must be a string" })
|
|
4082
4102
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4083
4103
|
__decorateClass([
|
|
4084
4104
|
IsEnum17(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4085
4105
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4086
4106
|
__decorateClass([
|
|
4087
4107
|
IsNotEmpty46({ message: "Please accept the declaration " }),
|
|
4088
|
-
|
|
4108
|
+
IsString30(),
|
|
4089
4109
|
IsIn3([
|
|
4090
4110
|
"true"
|
|
4091
4111
|
])
|
|
@@ -4101,36 +4121,36 @@ var CMS_PATTERNS = {
|
|
|
4101
4121
|
};
|
|
4102
4122
|
|
|
4103
4123
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4104
|
-
import { IsBoolean as
|
|
4124
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional22 } from "class-validator";
|
|
4105
4125
|
var CreateCmsDto = class {
|
|
4106
4126
|
};
|
|
4107
4127
|
__decorateClass([
|
|
4108
4128
|
IsNotEmpty47({ message: "Please enter name." })
|
|
4109
4129
|
], CreateCmsDto.prototype, "title", 2);
|
|
4110
4130
|
__decorateClass([
|
|
4111
|
-
|
|
4131
|
+
IsOptional22()
|
|
4112
4132
|
], CreateCmsDto.prototype, "content", 2);
|
|
4113
4133
|
__decorateClass([
|
|
4114
|
-
|
|
4115
|
-
|
|
4134
|
+
IsOptional22(),
|
|
4135
|
+
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4116
4136
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4117
4137
|
|
|
4118
4138
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4119
|
-
import { IsBoolean as
|
|
4139
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional23 } from "class-validator";
|
|
4120
4140
|
var UpdateCmsDto = class {
|
|
4121
4141
|
};
|
|
4122
4142
|
__decorateClass([
|
|
4123
|
-
|
|
4143
|
+
IsOptional23()
|
|
4124
4144
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4125
4145
|
__decorateClass([
|
|
4126
4146
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4127
4147
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4128
4148
|
__decorateClass([
|
|
4129
|
-
|
|
4149
|
+
IsOptional23()
|
|
4130
4150
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4131
4151
|
__decorateClass([
|
|
4132
|
-
|
|
4133
|
-
|
|
4152
|
+
IsOptional23(),
|
|
4153
|
+
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4134
4154
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4135
4155
|
|
|
4136
4156
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4159,10 +4179,10 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4159
4179
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4160
4180
|
import { Type as Type8 } from "class-transformer";
|
|
4161
4181
|
import {
|
|
4162
|
-
IsString as
|
|
4182
|
+
IsString as IsString31,
|
|
4163
4183
|
IsEnum as IsEnum18,
|
|
4164
4184
|
IsInt as IsInt6,
|
|
4165
|
-
IsOptional as
|
|
4185
|
+
IsOptional as IsOptional24,
|
|
4166
4186
|
IsArray as IsArray11,
|
|
4167
4187
|
IsDateString as IsDateString4,
|
|
4168
4188
|
IsNotEmpty as IsNotEmpty49,
|
|
@@ -4185,12 +4205,12 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4185
4205
|
var AdminCreateJobInformationDto = class {
|
|
4186
4206
|
};
|
|
4187
4207
|
__decorateClass([
|
|
4188
|
-
|
|
4208
|
+
IsString31({ message: "Job role must be a string." }),
|
|
4189
4209
|
IsNotEmpty49({ message: "Job role is required." })
|
|
4190
4210
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4191
4211
|
__decorateClass([
|
|
4192
|
-
|
|
4193
|
-
|
|
4212
|
+
IsOptional24(),
|
|
4213
|
+
IsString31({ message: "Note must be a string." })
|
|
4194
4214
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4195
4215
|
__decorateClass([
|
|
4196
4216
|
IsArray11({ message: "Skills must be an array of numeric IDs." }),
|
|
@@ -4213,15 +4233,15 @@ __decorateClass([
|
|
|
4213
4233
|
})
|
|
4214
4234
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4215
4235
|
__decorateClass([
|
|
4216
|
-
|
|
4236
|
+
IsString31({ message: "Onboarding Days must be a string." }),
|
|
4217
4237
|
IsNotEmpty49({ message: "Onboarding Days is required." })
|
|
4218
4238
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4219
4239
|
__decorateClass([
|
|
4220
|
-
|
|
4240
|
+
IsString31({ message: "Communication skills must be a string." }),
|
|
4221
4241
|
IsNotEmpty49({ message: "Communication skills are required." })
|
|
4222
4242
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4223
4243
|
__decorateClass([
|
|
4224
|
-
|
|
4244
|
+
IsString31({ message: "Currency must be a string." }),
|
|
4225
4245
|
IsNotEmpty49({ message: "Currency is required." })
|
|
4226
4246
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4227
4247
|
__decorateClass([
|
|
@@ -4239,8 +4259,8 @@ __decorateClass([
|
|
|
4239
4259
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4240
4260
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4241
4261
|
__decorateClass([
|
|
4242
|
-
|
|
4243
|
-
|
|
4262
|
+
IsOptional24(),
|
|
4263
|
+
IsString31({ message: "Additional comment must be a string." })
|
|
4244
4264
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4245
4265
|
__decorateClass([
|
|
4246
4266
|
IsInt6({ message: "Country ID must be a valid integer." })
|
|
@@ -4258,10 +4278,10 @@ __decorateClass([
|
|
|
4258
4278
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4259
4279
|
import { Type as Type9 } from "class-transformer";
|
|
4260
4280
|
import {
|
|
4261
|
-
IsString as
|
|
4281
|
+
IsString as IsString32,
|
|
4262
4282
|
IsEnum as IsEnum19,
|
|
4263
4283
|
IsInt as IsInt7,
|
|
4264
|
-
IsOptional as
|
|
4284
|
+
IsOptional as IsOptional25,
|
|
4265
4285
|
IsArray as IsArray12,
|
|
4266
4286
|
IsDateString as IsDateString5,
|
|
4267
4287
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4284,12 +4304,12 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4284
4304
|
var AdminUpdateJobInformationDto = class {
|
|
4285
4305
|
};
|
|
4286
4306
|
__decorateClass([
|
|
4287
|
-
|
|
4307
|
+
IsString32({ message: "Job role must be a string." }),
|
|
4288
4308
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4289
4309
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4290
4310
|
__decorateClass([
|
|
4291
|
-
|
|
4292
|
-
|
|
4311
|
+
IsOptional25(),
|
|
4312
|
+
IsString32({ message: "Note must be a string." })
|
|
4293
4313
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4294
4314
|
__decorateClass([
|
|
4295
4315
|
IsArray12({ message: "Skills must be an array of numeric IDs." }),
|
|
@@ -4312,15 +4332,15 @@ __decorateClass([
|
|
|
4312
4332
|
})
|
|
4313
4333
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4314
4334
|
__decorateClass([
|
|
4315
|
-
|
|
4335
|
+
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4316
4336
|
IsNotEmpty50({ message: "Onboarding Days is required." })
|
|
4317
4337
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4318
4338
|
__decorateClass([
|
|
4319
|
-
|
|
4339
|
+
IsString32({ message: "Communication skills must be a string." }),
|
|
4320
4340
|
IsNotEmpty50({ message: "Communication skills are required." })
|
|
4321
4341
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4322
4342
|
__decorateClass([
|
|
4323
|
-
|
|
4343
|
+
IsString32({ message: "Currency must be a string." }),
|
|
4324
4344
|
IsNotEmpty50({ message: "Currency is required." })
|
|
4325
4345
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4326
4346
|
__decorateClass([
|
|
@@ -4338,8 +4358,8 @@ __decorateClass([
|
|
|
4338
4358
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4339
4359
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4340
4360
|
__decorateClass([
|
|
4341
|
-
|
|
4342
|
-
|
|
4361
|
+
IsOptional25(),
|
|
4362
|
+
IsString32({ message: "Additional comment must be a string." })
|
|
4343
4363
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4344
4364
|
__decorateClass([
|
|
4345
4365
|
IsInt7({ message: "Country ID must be a valid integer." })
|
|
@@ -4361,7 +4381,7 @@ var LEAD_PATTERN = {
|
|
|
4361
4381
|
};
|
|
4362
4382
|
|
|
4363
4383
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4364
|
-
import { IsString as
|
|
4384
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional26, IsEnum as IsEnum20 } from "class-validator";
|
|
4365
4385
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4366
4386
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4367
4387
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4370,20 +4390,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4370
4390
|
var CreateLeadDto = class {
|
|
4371
4391
|
};
|
|
4372
4392
|
__decorateClass([
|
|
4373
|
-
|
|
4393
|
+
IsString33({ message: "Name must be a string" })
|
|
4374
4394
|
], CreateLeadDto.prototype, "name", 2);
|
|
4375
4395
|
__decorateClass([
|
|
4376
|
-
|
|
4396
|
+
IsEmail14({}, { message: "Invalid email address" })
|
|
4377
4397
|
], CreateLeadDto.prototype, "email", 2);
|
|
4378
4398
|
__decorateClass([
|
|
4379
|
-
|
|
4399
|
+
IsString33({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4380
4400
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4381
4401
|
__decorateClass([
|
|
4382
|
-
|
|
4402
|
+
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4383
4403
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4384
4404
|
__decorateClass([
|
|
4385
|
-
|
|
4386
|
-
|
|
4405
|
+
IsOptional26(),
|
|
4406
|
+
IsString33({ message: "Description must be a string" })
|
|
4387
4407
|
], CreateLeadDto.prototype, "description", 2);
|
|
4388
4408
|
__decorateClass([
|
|
4389
4409
|
IsEnum20(CategoryEmumDto, {
|