@experts_hub/shared 1.0.231 → 1.0.236
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.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(index_exports, {
|
|
|
109
109
|
FreelancerExperienceDto: () => FreelancerExperienceDto,
|
|
110
110
|
FreelancerFramework: () => FreelancerFramework,
|
|
111
111
|
FreelancerInitiateAiAssessmentDto: () => FreelancerInitiateAiAssessmentDto,
|
|
112
|
+
FreelancerInitiateMcqAssessmentDto: () => FreelancerInitiateMcqAssessmentDto,
|
|
112
113
|
FreelancerParseResumeDto: () => FreelancerParseResumeDto,
|
|
113
114
|
FreelancerProfile: () => FreelancerProfile,
|
|
114
115
|
FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
|
|
@@ -496,67 +497,76 @@ __decorateClass([
|
|
|
496
497
|
(0, import_class_validator12.IsUUID)()
|
|
497
498
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
498
499
|
|
|
499
|
-
// src/modules/onboarding/dto/freelancer-
|
|
500
|
+
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
500
501
|
var import_class_validator13 = require("class-validator");
|
|
501
|
-
var
|
|
502
|
+
var FreelancerInitiateMcqAssessmentDto = class {
|
|
502
503
|
};
|
|
503
504
|
__decorateClass([
|
|
504
505
|
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
505
506
|
(0, import_class_validator13.IsUUID)()
|
|
506
|
-
],
|
|
507
|
+
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
507
508
|
|
|
508
|
-
// src/modules/onboarding/dto/freelancer-
|
|
509
|
+
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
509
510
|
var import_class_validator14 = require("class-validator");
|
|
510
|
-
var
|
|
511
|
+
var FreelancerSkipAiAssessmentDto = class {
|
|
511
512
|
};
|
|
512
513
|
__decorateClass([
|
|
513
514
|
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
514
515
|
(0, import_class_validator14.IsUUID)()
|
|
515
|
-
],
|
|
516
|
+
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
516
517
|
|
|
517
|
-
// src/modules/onboarding/dto/freelancer-
|
|
518
|
+
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
518
519
|
var import_class_validator15 = require("class-validator");
|
|
519
|
-
var
|
|
520
|
+
var FreelancerInitiateAiAssessmentDto = class {
|
|
520
521
|
};
|
|
521
522
|
__decorateClass([
|
|
522
523
|
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
523
524
|
(0, import_class_validator15.IsUUID)()
|
|
525
|
+
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
526
|
+
|
|
527
|
+
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
528
|
+
var import_class_validator16 = require("class-validator");
|
|
529
|
+
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
530
|
+
};
|
|
531
|
+
__decorateClass([
|
|
532
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
533
|
+
(0, import_class_validator16.IsUUID)()
|
|
524
534
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
525
535
|
__decorateClass([
|
|
526
|
-
(0,
|
|
536
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
527
537
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
528
538
|
__decorateClass([
|
|
529
|
-
(0,
|
|
539
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
530
540
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
531
541
|
__decorateClass([
|
|
532
|
-
(0,
|
|
542
|
+
(0, import_class_validator16.IsOptional)()
|
|
533
543
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
534
544
|
|
|
535
545
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
536
|
-
var
|
|
546
|
+
var import_class_validator17 = require("class-validator");
|
|
537
547
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
538
548
|
};
|
|
539
549
|
__decorateClass([
|
|
540
|
-
(0,
|
|
541
|
-
(0,
|
|
550
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
551
|
+
(0, import_class_validator17.IsUUID)()
|
|
542
552
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
543
553
|
__decorateClass([
|
|
544
|
-
(0,
|
|
545
|
-
(0,
|
|
554
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please select development flag." }),
|
|
555
|
+
(0, import_class_validator17.IsBoolean)()
|
|
546
556
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
547
557
|
|
|
548
558
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
549
|
-
var
|
|
559
|
+
var import_class_validator18 = require("class-validator");
|
|
550
560
|
var FreelancerProfileQuestionDto = class {
|
|
551
561
|
};
|
|
552
562
|
__decorateClass([
|
|
553
|
-
(0,
|
|
554
|
-
(0,
|
|
563
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
564
|
+
(0, import_class_validator18.IsUUID)()
|
|
555
565
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
556
566
|
__decorateClass([
|
|
557
|
-
(0,
|
|
558
|
-
(0,
|
|
559
|
-
(0,
|
|
567
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
568
|
+
(0, import_class_validator18.IsString)(),
|
|
569
|
+
(0, import_class_validator18.IsIn)([
|
|
560
570
|
"natureOfWork",
|
|
561
571
|
"expectedHourlyCompensation",
|
|
562
572
|
"modeOfWork",
|
|
@@ -565,51 +575,51 @@ __decorateClass([
|
|
|
565
575
|
])
|
|
566
576
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
567
577
|
__decorateClass([
|
|
568
|
-
(0,
|
|
578
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter answer." })
|
|
569
579
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
570
580
|
|
|
571
581
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
572
|
-
var
|
|
582
|
+
var import_class_validator19 = require("class-validator");
|
|
573
583
|
var FreelancerWorkShowcaseDto = class {
|
|
574
584
|
};
|
|
575
585
|
__decorateClass([
|
|
576
|
-
(0,
|
|
577
|
-
(0,
|
|
586
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
587
|
+
(0, import_class_validator19.IsUUID)()
|
|
578
588
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
579
589
|
__decorateClass([
|
|
580
|
-
(0,
|
|
581
|
-
(0,
|
|
582
|
-
(0,
|
|
590
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
591
|
+
(0, import_class_validator19.IsString)(),
|
|
592
|
+
(0, import_class_validator19.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
583
593
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
584
594
|
__decorateClass([
|
|
585
|
-
(0,
|
|
586
|
-
(0,
|
|
595
|
+
(0, import_class_validator19.IsOptional)(),
|
|
596
|
+
(0, import_class_validator19.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
587
597
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
588
598
|
__decorateClass([
|
|
589
|
-
(0,
|
|
590
|
-
(0,
|
|
599
|
+
(0, import_class_validator19.IsOptional)(),
|
|
600
|
+
(0, import_class_validator19.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
591
601
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
592
602
|
__decorateClass([
|
|
593
|
-
(0,
|
|
594
|
-
(0,
|
|
603
|
+
(0, import_class_validator19.IsOptional)(),
|
|
604
|
+
(0, import_class_validator19.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
595
605
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
596
606
|
__decorateClass([
|
|
597
|
-
(0,
|
|
598
|
-
(0,
|
|
607
|
+
(0, import_class_validator19.IsOptional)(),
|
|
608
|
+
(0, import_class_validator19.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
599
609
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
600
610
|
|
|
601
611
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
602
|
-
var
|
|
612
|
+
var import_class_validator20 = require("class-validator");
|
|
603
613
|
var ClientProfileQuestionDto = class {
|
|
604
614
|
};
|
|
605
615
|
__decorateClass([
|
|
606
|
-
(0,
|
|
607
|
-
(0,
|
|
616
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
617
|
+
(0, import_class_validator20.IsUUID)()
|
|
608
618
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
609
619
|
__decorateClass([
|
|
610
|
-
(0,
|
|
611
|
-
(0,
|
|
612
|
-
(0,
|
|
620
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
621
|
+
(0, import_class_validator20.IsString)(),
|
|
622
|
+
(0, import_class_validator20.IsIn)([
|
|
613
623
|
"skills",
|
|
614
624
|
"requiredFreelancer",
|
|
615
625
|
"kindOfHiring",
|
|
@@ -618,44 +628,44 @@ __decorateClass([
|
|
|
618
628
|
])
|
|
619
629
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
620
630
|
__decorateClass([
|
|
621
|
-
(0,
|
|
631
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter answer." })
|
|
622
632
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
623
633
|
__decorateClass([
|
|
624
|
-
(0,
|
|
625
|
-
(0,
|
|
626
|
-
(0,
|
|
634
|
+
(0, import_class_validator20.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
635
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
636
|
+
(0, import_class_validator20.IsString)()
|
|
627
637
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
628
638
|
|
|
629
639
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
630
|
-
var
|
|
640
|
+
var import_class_validator21 = require("class-validator");
|
|
631
641
|
var ClientCreateAccountDto = class {
|
|
632
642
|
};
|
|
633
643
|
__decorateClass([
|
|
634
|
-
(0,
|
|
635
|
-
(0,
|
|
644
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter first name." }),
|
|
645
|
+
(0, import_class_validator21.IsString)({ message: "Please enter valid first name." })
|
|
636
646
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
637
647
|
__decorateClass([
|
|
638
|
-
(0,
|
|
639
|
-
(0,
|
|
648
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter last name." }),
|
|
649
|
+
(0, import_class_validator21.IsString)({ message: "Please enter valid last name." })
|
|
640
650
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
641
651
|
__decorateClass([
|
|
642
|
-
(0,
|
|
643
|
-
(0,
|
|
652
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter email." }),
|
|
653
|
+
(0, import_class_validator21.IsEmail)()
|
|
644
654
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
645
655
|
__decorateClass([
|
|
646
|
-
(0,
|
|
647
|
-
(0,
|
|
656
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter company name." }),
|
|
657
|
+
(0, import_class_validator21.IsString)({ message: "Please enter valid company name." })
|
|
648
658
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
649
659
|
__decorateClass([
|
|
650
|
-
(0,
|
|
651
|
-
(0,
|
|
652
|
-
(0,
|
|
653
|
-
(0,
|
|
660
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter password." }),
|
|
661
|
+
(0, import_class_validator21.MinLength)(6),
|
|
662
|
+
(0, import_class_validator21.MaxLength)(32),
|
|
663
|
+
(0, import_class_validator21.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
654
664
|
message: "Password must include letters, numbers and symbols."
|
|
655
665
|
})
|
|
656
666
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
657
667
|
__decorateClass([
|
|
658
|
-
(0,
|
|
668
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
659
669
|
Match("password", { message: "Passwords do not match" })
|
|
660
670
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
661
671
|
|
|
@@ -677,75 +687,75 @@ var SUBADMIN_PATTERN = {
|
|
|
677
687
|
};
|
|
678
688
|
|
|
679
689
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
680
|
-
var
|
|
690
|
+
var import_class_validator22 = require("class-validator");
|
|
681
691
|
var CreateSubAdminDto = class {
|
|
682
692
|
};
|
|
683
693
|
__decorateClass([
|
|
684
|
-
(0,
|
|
694
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter unique id." })
|
|
685
695
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
686
696
|
__decorateClass([
|
|
687
|
-
(0,
|
|
697
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter username." })
|
|
688
698
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
689
699
|
__decorateClass([
|
|
690
|
-
(0,
|
|
700
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter first name." })
|
|
691
701
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
692
702
|
__decorateClass([
|
|
693
|
-
(0,
|
|
703
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter last name." })
|
|
694
704
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
695
705
|
__decorateClass([
|
|
696
|
-
(0,
|
|
706
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter email." })
|
|
697
707
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
698
708
|
__decorateClass([
|
|
699
|
-
(0,
|
|
709
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
700
710
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
701
711
|
__decorateClass([
|
|
702
|
-
(0,
|
|
712
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter the password." })
|
|
703
713
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
704
714
|
__decorateClass([
|
|
705
|
-
(0,
|
|
715
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account type." })
|
|
706
716
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
707
717
|
__decorateClass([
|
|
708
|
-
(0,
|
|
718
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account status." })
|
|
709
719
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
710
720
|
|
|
711
721
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
712
|
-
var
|
|
722
|
+
var import_class_validator23 = require("class-validator");
|
|
713
723
|
var UpdateSubAdminAccountStatusDto = class {
|
|
714
724
|
};
|
|
715
725
|
__decorateClass([
|
|
716
|
-
(0,
|
|
726
|
+
(0, import_class_validator23.IsString)()
|
|
717
727
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
718
728
|
|
|
719
729
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
720
|
-
var
|
|
730
|
+
var import_class_validator24 = require("class-validator");
|
|
721
731
|
var UpdateSubAdminDto = class {
|
|
722
732
|
};
|
|
723
733
|
__decorateClass([
|
|
724
|
-
(0,
|
|
734
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter unique id." })
|
|
725
735
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
726
736
|
__decorateClass([
|
|
727
|
-
(0,
|
|
737
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter username." })
|
|
728
738
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
729
739
|
__decorateClass([
|
|
730
|
-
(0,
|
|
740
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter first name." })
|
|
731
741
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
732
742
|
__decorateClass([
|
|
733
|
-
(0,
|
|
743
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter last name." })
|
|
734
744
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
735
745
|
__decorateClass([
|
|
736
|
-
(0,
|
|
746
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter email." })
|
|
737
747
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
738
748
|
__decorateClass([
|
|
739
|
-
(0,
|
|
749
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
740
750
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
741
751
|
__decorateClass([
|
|
742
|
-
(0,
|
|
752
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter the password." })
|
|
743
753
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
744
754
|
__decorateClass([
|
|
745
|
-
(0,
|
|
755
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter account type." })
|
|
746
756
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
747
757
|
__decorateClass([
|
|
748
|
-
(0,
|
|
758
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter account status." })
|
|
749
759
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
750
760
|
|
|
751
761
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -758,53 +768,53 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
758
768
|
};
|
|
759
769
|
|
|
760
770
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
761
|
-
var
|
|
771
|
+
var import_class_validator25 = require("class-validator");
|
|
762
772
|
var UpdateCompanyProfileDto = class {
|
|
763
773
|
};
|
|
764
774
|
__decorateClass([
|
|
765
|
-
(0,
|
|
766
|
-
(0,
|
|
767
|
-
(0,
|
|
775
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter company name." }),
|
|
776
|
+
(0, import_class_validator25.IsString)({ message: "Company name must be a string." }),
|
|
777
|
+
(0, import_class_validator25.Length)(2, 255, {
|
|
768
778
|
message: "Company name must be between 2 and 255 characters"
|
|
769
779
|
})
|
|
770
780
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
771
781
|
__decorateClass([
|
|
772
|
-
(0,
|
|
773
|
-
(0,
|
|
782
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
783
|
+
(0, import_class_validator25.IsUrl)({}, { message: "Invalid website URL format" })
|
|
774
784
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
775
785
|
__decorateClass([
|
|
776
|
-
(0,
|
|
777
|
-
(0,
|
|
778
|
-
(0,
|
|
786
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter company address." }),
|
|
787
|
+
(0, import_class_validator25.IsString)({ message: "Company address must be a string" }),
|
|
788
|
+
(0, import_class_validator25.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
779
789
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
780
790
|
__decorateClass([
|
|
781
|
-
(0,
|
|
782
|
-
(0,
|
|
791
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
792
|
+
(0, import_class_validator25.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
783
793
|
message: "Please enter a valid US phone number"
|
|
784
794
|
})
|
|
785
795
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
786
796
|
__decorateClass([
|
|
787
|
-
(0,
|
|
788
|
-
(0,
|
|
797
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter email." }),
|
|
798
|
+
(0, import_class_validator25.IsEmail)()
|
|
789
799
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
790
800
|
__decorateClass([
|
|
791
|
-
(0,
|
|
792
|
-
(0,
|
|
801
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
802
|
+
(0, import_class_validator25.IsString)({ message: "About company must be a string." })
|
|
793
803
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
794
804
|
|
|
795
805
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
796
|
-
var
|
|
806
|
+
var import_class_validator26 = require("class-validator");
|
|
797
807
|
var ClientChangePasswordDto = class {
|
|
798
808
|
};
|
|
799
809
|
__decorateClass([
|
|
800
|
-
(0,
|
|
801
|
-
(0,
|
|
802
|
-
(0,
|
|
810
|
+
(0, import_class_validator26.IsString)(),
|
|
811
|
+
(0, import_class_validator26.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
812
|
+
(0, import_class_validator26.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
803
813
|
message: "Password must contain at least one uppercase letter and one number."
|
|
804
814
|
})
|
|
805
815
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
806
816
|
__decorateClass([
|
|
807
|
-
(0,
|
|
817
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
808
818
|
Match("newPassword", { message: "Passwords do not match" })
|
|
809
819
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
810
820
|
|
|
@@ -817,24 +827,24 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
817
827
|
};
|
|
818
828
|
|
|
819
829
|
// src/modules/question/dto/create-question.dto.ts
|
|
820
|
-
var
|
|
830
|
+
var import_class_validator27 = require("class-validator");
|
|
821
831
|
var CreateQuestionDto = class {
|
|
822
832
|
};
|
|
823
833
|
__decorateClass([
|
|
824
|
-
(0,
|
|
834
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter unique id." })
|
|
825
835
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
826
836
|
__decorateClass([
|
|
827
|
-
(0,
|
|
837
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter question." })
|
|
828
838
|
], CreateQuestionDto.prototype, "question", 2);
|
|
829
839
|
__decorateClass([
|
|
830
|
-
(0,
|
|
840
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
831
841
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
832
842
|
__decorateClass([
|
|
833
|
-
(0,
|
|
843
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter options." })
|
|
834
844
|
], CreateQuestionDto.prototype, "options", 2);
|
|
835
845
|
__decorateClass([
|
|
836
|
-
(0,
|
|
837
|
-
(0,
|
|
846
|
+
(0, import_class_validator27.IsOptional)(),
|
|
847
|
+
(0, import_class_validator27.IsBoolean)({ message: "Whether the question status active" })
|
|
838
848
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
839
849
|
|
|
840
850
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -859,7 +869,7 @@ var JOB_PATTERN = {
|
|
|
859
869
|
};
|
|
860
870
|
|
|
861
871
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
862
|
-
var
|
|
872
|
+
var import_class_validator28 = require("class-validator");
|
|
863
873
|
var import_class_transformer = require("class-transformer");
|
|
864
874
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
865
875
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -876,79 +886,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
876
886
|
var JobBasicInformationDto = class {
|
|
877
887
|
};
|
|
878
888
|
__decorateClass([
|
|
879
|
-
(0,
|
|
880
|
-
(0,
|
|
889
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter job role" }),
|
|
890
|
+
(0, import_class_validator28.IsString)({ message: "Job role must be a string" })
|
|
881
891
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
882
892
|
__decorateClass([
|
|
883
|
-
(0,
|
|
884
|
-
(0,
|
|
893
|
+
(0, import_class_validator28.IsOptional)(),
|
|
894
|
+
(0, import_class_validator28.IsString)({ message: "Note must be a string" })
|
|
885
895
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
886
896
|
__decorateClass([
|
|
887
|
-
(0,
|
|
888
|
-
(0,
|
|
889
|
-
(0,
|
|
897
|
+
(0, import_class_validator28.IsArray)({ message: "Skills must be an array" }),
|
|
898
|
+
(0, import_class_validator28.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
899
|
+
(0, import_class_validator28.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
890
900
|
(0, import_class_transformer.Type)(() => Number)
|
|
891
901
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
892
902
|
__decorateClass([
|
|
893
|
-
(0,
|
|
894
|
-
(0,
|
|
903
|
+
(0, import_class_validator28.IsNumber)({}, { message: "Openings must be a number" }),
|
|
904
|
+
(0, import_class_validator28.Min)(1, { message: "There must be at least 1 opening" }),
|
|
895
905
|
(0, import_class_transformer.Type)(() => Number)
|
|
896
906
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
897
907
|
__decorateClass([
|
|
898
|
-
(0,
|
|
908
|
+
(0, import_class_validator28.IsEnum)(JobLocation, {
|
|
899
909
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
900
910
|
", "
|
|
901
911
|
)}`
|
|
902
912
|
})
|
|
903
913
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
904
914
|
__decorateClass([
|
|
905
|
-
(0,
|
|
915
|
+
(0, import_class_validator28.IsEnum)(EmploymentType, {
|
|
906
916
|
message: `Type of employment must be one of: ${Object.values(
|
|
907
917
|
EmploymentType
|
|
908
918
|
).join(", ")}`
|
|
909
919
|
})
|
|
910
920
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
911
921
|
__decorateClass([
|
|
912
|
-
(0,
|
|
913
|
-
(0,
|
|
922
|
+
(0, import_class_validator28.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
923
|
+
(0, import_class_validator28.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
914
924
|
(0, import_class_transformer.Type)(() => Number)
|
|
915
925
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
916
926
|
__decorateClass([
|
|
917
|
-
(0,
|
|
918
|
-
(0,
|
|
927
|
+
(0, import_class_validator28.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
928
|
+
(0, import_class_validator28.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
919
929
|
(0, import_class_transformer.Type)(() => Number)
|
|
920
930
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
921
931
|
__decorateClass([
|
|
922
|
-
(0,
|
|
923
|
-
(0,
|
|
932
|
+
(0, import_class_validator28.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
933
|
+
(0, import_class_validator28.IsOptional)()
|
|
924
934
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
925
935
|
__decorateClass([
|
|
926
|
-
(0,
|
|
927
|
-
(0,
|
|
936
|
+
(0, import_class_validator28.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
937
|
+
(0, import_class_validator28.IsOptional)()
|
|
928
938
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
929
939
|
|
|
930
940
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
931
|
-
var
|
|
941
|
+
var import_class_validator29 = require("class-validator");
|
|
932
942
|
var JobAdditionalCommentDto = class {
|
|
933
943
|
};
|
|
934
944
|
__decorateClass([
|
|
935
|
-
(0,
|
|
936
|
-
(0,
|
|
937
|
-
(0,
|
|
945
|
+
(0, import_class_validator29.IsOptional)(),
|
|
946
|
+
(0, import_class_validator29.IsString)({ message: "Additional comment must be a string" }),
|
|
947
|
+
(0, import_class_validator29.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
938
948
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
939
949
|
|
|
940
950
|
// src/modules/job/dto/job-description.dto.ts
|
|
941
|
-
var
|
|
951
|
+
var import_class_validator30 = require("class-validator");
|
|
942
952
|
var JobDescriptionDto = class {
|
|
943
953
|
};
|
|
944
954
|
__decorateClass([
|
|
945
|
-
(0,
|
|
946
|
-
(0,
|
|
947
|
-
(0,
|
|
955
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter job description" }),
|
|
956
|
+
(0, import_class_validator30.IsString)({ message: "Description must be a string" }),
|
|
957
|
+
(0, import_class_validator30.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
948
958
|
], JobDescriptionDto.prototype, "description", 2);
|
|
949
959
|
|
|
950
960
|
// src/modules/job/dto/job-status.dto.ts
|
|
951
|
-
var
|
|
961
|
+
var import_class_validator31 = require("class-validator");
|
|
952
962
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
953
963
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
954
964
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -960,18 +970,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
960
970
|
var JobStatusDto = class {
|
|
961
971
|
};
|
|
962
972
|
__decorateClass([
|
|
963
|
-
(0,
|
|
964
|
-
(0,
|
|
973
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
974
|
+
(0, import_class_validator31.IsEnum)(JobStatus, {
|
|
965
975
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
966
976
|
})
|
|
967
977
|
], JobStatusDto.prototype, "status", 2);
|
|
968
978
|
|
|
969
979
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
970
|
-
var
|
|
980
|
+
var import_class_validator32 = require("class-validator");
|
|
971
981
|
var JobIdParamDto = class {
|
|
972
982
|
};
|
|
973
983
|
__decorateClass([
|
|
974
|
-
(0,
|
|
984
|
+
(0, import_class_validator32.IsUUID)("4", {
|
|
975
985
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
976
986
|
})
|
|
977
987
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -987,25 +997,25 @@ var PROFILE_PATTERN = {
|
|
|
987
997
|
};
|
|
988
998
|
|
|
989
999
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
990
|
-
var
|
|
1000
|
+
var import_class_validator33 = require("class-validator");
|
|
991
1001
|
var FreelancerChangePasswordDto = class {
|
|
992
1002
|
};
|
|
993
1003
|
__decorateClass([
|
|
994
|
-
(0,
|
|
995
|
-
(0,
|
|
1004
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1005
|
+
(0, import_class_validator33.IsString)()
|
|
996
1006
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
997
1007
|
__decorateClass([
|
|
998
|
-
(0,
|
|
999
|
-
(0,
|
|
1000
|
-
(0,
|
|
1001
|
-
(0,
|
|
1002
|
-
(0,
|
|
1008
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1009
|
+
(0, import_class_validator33.IsString)(),
|
|
1010
|
+
(0, import_class_validator33.MinLength)(6),
|
|
1011
|
+
(0, import_class_validator33.MaxLength)(32),
|
|
1012
|
+
(0, import_class_validator33.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1003
1013
|
message: "New Password must include letters, numbers and symbols."
|
|
1004
1014
|
})
|
|
1005
1015
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1006
1016
|
|
|
1007
1017
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1008
|
-
var
|
|
1018
|
+
var import_class_validator34 = require("class-validator");
|
|
1009
1019
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1010
1020
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1011
1021
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1015,66 +1025,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
1015
1025
|
var UpdateFreelancerProfileDto = class {
|
|
1016
1026
|
};
|
|
1017
1027
|
__decorateClass([
|
|
1018
|
-
(0,
|
|
1019
|
-
(0,
|
|
1028
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1029
|
+
(0, import_class_validator34.IsString)()
|
|
1020
1030
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1021
1031
|
__decorateClass([
|
|
1022
|
-
(0,
|
|
1023
|
-
(0,
|
|
1032
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1033
|
+
(0, import_class_validator34.IsString)()
|
|
1024
1034
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1025
1035
|
__decorateClass([
|
|
1026
|
-
(0,
|
|
1027
|
-
(0,
|
|
1036
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1037
|
+
(0, import_class_validator34.IsEmail)()
|
|
1028
1038
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1029
1039
|
__decorateClass([
|
|
1030
|
-
(0,
|
|
1031
|
-
(0,
|
|
1040
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1041
|
+
(0, import_class_validator34.IsString)()
|
|
1032
1042
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1033
1043
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1035
|
-
(0,
|
|
1044
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1045
|
+
(0, import_class_validator34.IsNumber)()
|
|
1036
1046
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1037
1047
|
__decorateClass([
|
|
1038
|
-
(0,
|
|
1039
|
-
(0,
|
|
1048
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1049
|
+
(0, import_class_validator34.IsString)()
|
|
1040
1050
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1041
1051
|
__decorateClass([
|
|
1042
|
-
(0,
|
|
1043
|
-
(0,
|
|
1052
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1053
|
+
(0, import_class_validator34.IsString)()
|
|
1044
1054
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1045
1055
|
__decorateClass([
|
|
1046
|
-
(0,
|
|
1047
|
-
(0,
|
|
1056
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1057
|
+
(0, import_class_validator34.IsEnum)(NatureOfWorkDto, {
|
|
1048
1058
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
1049
1059
|
})
|
|
1050
1060
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1051
1061
|
__decorateClass([
|
|
1052
|
-
(0,
|
|
1053
|
-
(0,
|
|
1062
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1063
|
+
(0, import_class_validator34.IsString)()
|
|
1054
1064
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1055
1065
|
__decorateClass([
|
|
1056
|
-
(0,
|
|
1057
|
-
(0,
|
|
1066
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1067
|
+
(0, import_class_validator34.IsString)()
|
|
1058
1068
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1059
1069
|
__decorateClass([
|
|
1060
|
-
(0,
|
|
1061
|
-
(0,
|
|
1070
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1071
|
+
(0, import_class_validator34.IsString)()
|
|
1062
1072
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1063
1073
|
__decorateClass([
|
|
1064
|
-
(0,
|
|
1065
|
-
(0,
|
|
1074
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1075
|
+
(0, import_class_validator34.IsString)()
|
|
1066
1076
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1067
1077
|
__decorateClass([
|
|
1068
|
-
(0,
|
|
1069
|
-
(0,
|
|
1078
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1079
|
+
(0, import_class_validator34.IsString)()
|
|
1070
1080
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1071
1081
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1073
|
-
(0,
|
|
1082
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1083
|
+
(0, import_class_validator34.IsString)()
|
|
1074
1084
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1075
1085
|
__decorateClass([
|
|
1076
|
-
(0,
|
|
1077
|
-
(0,
|
|
1086
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1087
|
+
(0, import_class_validator34.IsString)()
|
|
1078
1088
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1079
1089
|
|
|
1080
1090
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1085,7 +1095,7 @@ var BANK_PATTERN = {
|
|
|
1085
1095
|
};
|
|
1086
1096
|
|
|
1087
1097
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1088
|
-
var
|
|
1098
|
+
var import_class_validator35 = require("class-validator");
|
|
1089
1099
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1090
1100
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1091
1101
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1094,47 +1104,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1094
1104
|
var FreelancerBankDetailsDto = class {
|
|
1095
1105
|
};
|
|
1096
1106
|
__decorateClass([
|
|
1097
|
-
(0,
|
|
1107
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1098
1108
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1099
1109
|
__decorateClass([
|
|
1100
|
-
(0,
|
|
1110
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1101
1111
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1102
1112
|
__decorateClass([
|
|
1103
|
-
(0,
|
|
1113
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Email." })
|
|
1104
1114
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1105
1115
|
__decorateClass([
|
|
1106
|
-
(0,
|
|
1116
|
+
(0, import_class_validator35.IsOptional)()
|
|
1107
1117
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1108
1118
|
__decorateClass([
|
|
1109
|
-
(0,
|
|
1119
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1110
1120
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1111
1121
|
__decorateClass([
|
|
1112
|
-
(0,
|
|
1122
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1113
1123
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1114
1124
|
__decorateClass([
|
|
1115
|
-
(0,
|
|
1125
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1116
1126
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1117
1127
|
__decorateClass([
|
|
1118
|
-
(0,
|
|
1119
|
-
(0,
|
|
1128
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1129
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1120
1130
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1121
1131
|
__decorateClass([
|
|
1122
|
-
(0,
|
|
1123
|
-
(0,
|
|
1132
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1133
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1124
1134
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1125
1135
|
__decorateClass([
|
|
1126
|
-
(0,
|
|
1127
|
-
(0,
|
|
1136
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1137
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1128
1138
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1129
1139
|
__decorateClass([
|
|
1130
|
-
(0,
|
|
1131
|
-
(0,
|
|
1140
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1141
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1132
1142
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1133
1143
|
__decorateClass([
|
|
1134
|
-
(0,
|
|
1144
|
+
(0, import_class_validator35.IsOptional)()
|
|
1135
1145
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1136
1146
|
__decorateClass([
|
|
1137
|
-
(0,
|
|
1147
|
+
(0, import_class_validator35.IsEnum)(BankAccountScope, {
|
|
1138
1148
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1139
1149
|
BankAccountScope
|
|
1140
1150
|
).join(", ")}`
|
|
@@ -1154,7 +1164,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1154
1164
|
};
|
|
1155
1165
|
|
|
1156
1166
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1157
|
-
var
|
|
1167
|
+
var import_class_validator36 = require("class-validator");
|
|
1158
1168
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1159
1169
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1160
1170
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1163,10 +1173,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1163
1173
|
var SystemPreferenceDto = class {
|
|
1164
1174
|
};
|
|
1165
1175
|
__decorateClass([
|
|
1166
|
-
(0,
|
|
1176
|
+
(0, import_class_validator36.IsBoolean)()
|
|
1167
1177
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1168
1178
|
__decorateClass([
|
|
1169
|
-
(0,
|
|
1179
|
+
(0, import_class_validator36.IsEnum)(SystemPreferenceKey, {
|
|
1170
1180
|
message: `key must be one of: ${Object.values(
|
|
1171
1181
|
SystemPreferenceKey
|
|
1172
1182
|
).join(", ")}`
|
|
@@ -1186,7 +1196,7 @@ var RATING_PATTERN = {
|
|
|
1186
1196
|
};
|
|
1187
1197
|
|
|
1188
1198
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1189
|
-
var
|
|
1199
|
+
var import_class_validator37 = require("class-validator");
|
|
1190
1200
|
|
|
1191
1201
|
// src/entities/rating.entity.ts
|
|
1192
1202
|
var import_typeorm36 = require("typeorm");
|
|
@@ -3163,22 +3173,22 @@ Rating = __decorateClass([
|
|
|
3163
3173
|
var CreateRatingDto = class {
|
|
3164
3174
|
};
|
|
3165
3175
|
__decorateClass([
|
|
3166
|
-
(0,
|
|
3167
|
-
(0,
|
|
3176
|
+
(0, import_class_validator37.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
3177
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
3168
3178
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3169
3179
|
__decorateClass([
|
|
3170
|
-
(0,
|
|
3180
|
+
(0, import_class_validator37.IsEnum)(RatingTypeEnum, {
|
|
3171
3181
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3172
3182
|
})
|
|
3173
3183
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3174
3184
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3176
|
-
(0,
|
|
3177
|
-
(0,
|
|
3185
|
+
(0, import_class_validator37.IsInt)({ message: "Rating must be an integer value" }),
|
|
3186
|
+
(0, import_class_validator37.Min)(1, { message: "Rating must be at least 1" }),
|
|
3187
|
+
(0, import_class_validator37.Max)(5, { message: "Rating must be at most 5" })
|
|
3178
3188
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3179
3189
|
__decorateClass([
|
|
3180
|
-
(0,
|
|
3181
|
-
(0,
|
|
3190
|
+
(0, import_class_validator37.IsOptional)(),
|
|
3191
|
+
(0, import_class_validator37.IsString)({ message: "Review must be a string" })
|
|
3182
3192
|
], CreateRatingDto.prototype, "review", 2);
|
|
3183
3193
|
|
|
3184
3194
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3194,57 +3204,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3194
3204
|
};
|
|
3195
3205
|
|
|
3196
3206
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3197
|
-
var
|
|
3207
|
+
var import_class_validator38 = require("class-validator");
|
|
3198
3208
|
var CreateCompanyRoleDto = class {
|
|
3199
3209
|
};
|
|
3200
3210
|
__decorateClass([
|
|
3201
|
-
(0,
|
|
3211
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3202
3212
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3203
3213
|
__decorateClass([
|
|
3204
|
-
(0,
|
|
3214
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3205
3215
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3206
3216
|
__decorateClass([
|
|
3207
|
-
(0,
|
|
3217
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter description" })
|
|
3208
3218
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3209
3219
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3211
|
-
(0,
|
|
3212
|
-
(0,
|
|
3220
|
+
(0, import_class_validator38.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3221
|
+
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3222
|
+
(0, import_class_validator38.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3213
3223
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3214
3224
|
__decorateClass([
|
|
3215
|
-
(0,
|
|
3216
|
-
(0,
|
|
3225
|
+
(0, import_class_validator38.IsOptional)(),
|
|
3226
|
+
(0, import_class_validator38.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3217
3227
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3218
3228
|
|
|
3219
3229
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3220
|
-
var
|
|
3230
|
+
var import_class_validator39 = require("class-validator");
|
|
3221
3231
|
var UpdateCompanyRoleDto = class {
|
|
3222
3232
|
};
|
|
3223
3233
|
__decorateClass([
|
|
3224
|
-
(0,
|
|
3234
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter company name." })
|
|
3225
3235
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3226
3236
|
__decorateClass([
|
|
3227
|
-
(0,
|
|
3237
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter slug" })
|
|
3228
3238
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3229
3239
|
__decorateClass([
|
|
3230
|
-
(0,
|
|
3240
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter description" })
|
|
3231
3241
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3232
3242
|
__decorateClass([
|
|
3233
|
-
(0,
|
|
3234
|
-
(0,
|
|
3235
|
-
(0,
|
|
3243
|
+
(0, import_class_validator39.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3244
|
+
(0, import_class_validator39.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3245
|
+
(0, import_class_validator39.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3236
3246
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3237
3247
|
__decorateClass([
|
|
3238
|
-
(0,
|
|
3239
|
-
(0,
|
|
3248
|
+
(0, import_class_validator39.IsOptional)(),
|
|
3249
|
+
(0, import_class_validator39.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3240
3250
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3241
3251
|
|
|
3242
3252
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3243
|
-
var
|
|
3253
|
+
var import_class_validator40 = require("class-validator");
|
|
3244
3254
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3245
3255
|
};
|
|
3246
3256
|
__decorateClass([
|
|
3247
|
-
(0,
|
|
3257
|
+
(0, import_class_validator40.IsBoolean)()
|
|
3248
3258
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3249
3259
|
|
|
3250
3260
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3254,35 +3264,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3254
3264
|
};
|
|
3255
3265
|
|
|
3256
3266
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3257
|
-
var
|
|
3267
|
+
var import_class_validator41 = require("class-validator");
|
|
3258
3268
|
var import_class_transformer2 = require("class-transformer");
|
|
3259
3269
|
var ExperienceDto = class {
|
|
3260
3270
|
};
|
|
3261
3271
|
__decorateClass([
|
|
3262
|
-
(0,
|
|
3272
|
+
(0, import_class_validator41.IsOptional)()
|
|
3263
3273
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3264
3274
|
__decorateClass([
|
|
3265
|
-
(0,
|
|
3266
|
-
(0,
|
|
3275
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3276
|
+
(0, import_class_validator41.IsString)()
|
|
3267
3277
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3268
3278
|
__decorateClass([
|
|
3269
|
-
(0,
|
|
3270
|
-
(0,
|
|
3279
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3280
|
+
(0, import_class_validator41.IsString)()
|
|
3271
3281
|
], ExperienceDto.prototype, "designation", 2);
|
|
3272
3282
|
__decorateClass([
|
|
3273
|
-
(0,
|
|
3274
|
-
(0,
|
|
3283
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3284
|
+
(0, import_class_validator41.IsString)()
|
|
3275
3285
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3276
3286
|
__decorateClass([
|
|
3277
|
-
(0,
|
|
3278
|
-
(0,
|
|
3279
|
-
(0,
|
|
3287
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3288
|
+
(0, import_class_validator41.IsString)(),
|
|
3289
|
+
(0, import_class_validator41.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3280
3290
|
], ExperienceDto.prototype, "description", 2);
|
|
3281
3291
|
var FreelancerExperienceDto = class {
|
|
3282
3292
|
};
|
|
3283
3293
|
__decorateClass([
|
|
3284
|
-
(0,
|
|
3285
|
-
(0,
|
|
3294
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
3295
|
+
(0, import_class_validator41.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3286
3296
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3287
3297
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3288
3298
|
|
|
@@ -3299,43 +3309,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3299
3309
|
};
|
|
3300
3310
|
|
|
3301
3311
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3302
|
-
var
|
|
3312
|
+
var import_class_validator42 = require("class-validator");
|
|
3303
3313
|
var CreateCompanyMemberDto = class {
|
|
3304
3314
|
};
|
|
3305
3315
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3316
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter name." })
|
|
3307
3317
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3308
3318
|
__decorateClass([
|
|
3309
|
-
(0,
|
|
3319
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter email" })
|
|
3310
3320
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3311
3321
|
__decorateClass([
|
|
3312
|
-
(0,
|
|
3313
|
-
(0,
|
|
3314
|
-
(0,
|
|
3322
|
+
(0, import_class_validator42.IsArray)({ message: "Role IDs must be an array." }),
|
|
3323
|
+
(0, import_class_validator42.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3324
|
+
(0, import_class_validator42.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3315
3325
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3316
3326
|
|
|
3317
3327
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3318
|
-
var
|
|
3328
|
+
var import_class_validator43 = require("class-validator");
|
|
3319
3329
|
var UpdateCompanyMemberDto = class {
|
|
3320
3330
|
};
|
|
3321
3331
|
__decorateClass([
|
|
3322
|
-
(0,
|
|
3332
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter name." })
|
|
3323
3333
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3324
3334
|
__decorateClass([
|
|
3325
|
-
(0,
|
|
3335
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter email" })
|
|
3326
3336
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3327
3337
|
__decorateClass([
|
|
3328
|
-
(0,
|
|
3329
|
-
(0,
|
|
3330
|
-
(0,
|
|
3338
|
+
(0, import_class_validator43.IsArray)({ message: "Role IDs must be an array." }),
|
|
3339
|
+
(0, import_class_validator43.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3340
|
+
(0, import_class_validator43.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3331
3341
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3332
3342
|
|
|
3333
3343
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3334
|
-
var
|
|
3344
|
+
var import_class_validator44 = require("class-validator");
|
|
3335
3345
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3336
3346
|
};
|
|
3337
3347
|
__decorateClass([
|
|
3338
|
-
(0,
|
|
3348
|
+
(0, import_class_validator44.IsBoolean)()
|
|
3339
3349
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3340
3350
|
|
|
3341
3351
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3345,31 +3355,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3345
3355
|
};
|
|
3346
3356
|
|
|
3347
3357
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3348
|
-
var
|
|
3358
|
+
var import_class_validator45 = require("class-validator");
|
|
3349
3359
|
var import_class_transformer3 = require("class-transformer");
|
|
3350
3360
|
var EducationDto = class {
|
|
3351
3361
|
};
|
|
3352
3362
|
__decorateClass([
|
|
3353
|
-
(0,
|
|
3363
|
+
(0, import_class_validator45.IsOptional)()
|
|
3354
3364
|
], EducationDto.prototype, "uuid", 2);
|
|
3355
3365
|
__decorateClass([
|
|
3356
|
-
(0,
|
|
3357
|
-
(0,
|
|
3366
|
+
(0, import_class_validator45.IsString)(),
|
|
3367
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3358
3368
|
], EducationDto.prototype, "degree", 2);
|
|
3359
3369
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3361
|
-
(0,
|
|
3370
|
+
(0, import_class_validator45.IsString)(),
|
|
3371
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter University " })
|
|
3362
3372
|
], EducationDto.prototype, "university", 2);
|
|
3363
3373
|
__decorateClass([
|
|
3364
|
-
(0,
|
|
3365
|
-
(0,
|
|
3374
|
+
(0, import_class_validator45.IsString)(),
|
|
3375
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3366
3376
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3367
3377
|
var FreelancerEducationDto = class {
|
|
3368
3378
|
};
|
|
3369
3379
|
__decorateClass([
|
|
3370
|
-
(0,
|
|
3371
|
-
(0,
|
|
3372
|
-
(0,
|
|
3380
|
+
(0, import_class_validator45.IsArray)(),
|
|
3381
|
+
(0, import_class_validator45.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
3382
|
+
(0, import_class_validator45.ValidateNested)({ each: true }),
|
|
3373
3383
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3374
3384
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3375
3385
|
|
|
@@ -3380,67 +3390,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3380
3390
|
};
|
|
3381
3391
|
|
|
3382
3392
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3383
|
-
var
|
|
3393
|
+
var import_class_validator46 = require("class-validator");
|
|
3384
3394
|
var import_class_transformer4 = require("class-transformer");
|
|
3385
3395
|
var ProjectDto = class {
|
|
3386
3396
|
};
|
|
3387
3397
|
__decorateClass([
|
|
3388
|
-
(0,
|
|
3398
|
+
(0, import_class_validator46.IsOptional)()
|
|
3389
3399
|
], ProjectDto.prototype, "uuid", 2);
|
|
3390
3400
|
__decorateClass([
|
|
3391
|
-
(0,
|
|
3392
|
-
(0,
|
|
3401
|
+
(0, import_class_validator46.IsString)(),
|
|
3402
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3393
3403
|
], ProjectDto.prototype, "projectName", 2);
|
|
3394
3404
|
__decorateClass([
|
|
3395
|
-
(0,
|
|
3396
|
-
(0,
|
|
3405
|
+
(0, import_class_validator46.IsDateString)(),
|
|
3406
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3397
3407
|
], ProjectDto.prototype, "startDate", 2);
|
|
3398
3408
|
__decorateClass([
|
|
3399
|
-
(0,
|
|
3400
|
-
(0,
|
|
3409
|
+
(0, import_class_validator46.IsDateString)(),
|
|
3410
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3401
3411
|
], ProjectDto.prototype, "endDate", 2);
|
|
3402
3412
|
__decorateClass([
|
|
3403
|
-
(0,
|
|
3404
|
-
(0,
|
|
3413
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3414
|
+
(0, import_class_validator46.IsString)()
|
|
3405
3415
|
], ProjectDto.prototype, "clientName", 2);
|
|
3406
3416
|
__decorateClass([
|
|
3407
|
-
(0,
|
|
3408
|
-
(0,
|
|
3417
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3418
|
+
(0, import_class_validator46.IsString)()
|
|
3409
3419
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3410
3420
|
__decorateClass([
|
|
3411
|
-
(0,
|
|
3412
|
-
(0,
|
|
3413
|
-
(0,
|
|
3421
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3422
|
+
(0, import_class_validator46.IsString)(),
|
|
3423
|
+
(0, import_class_validator46.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3414
3424
|
], ProjectDto.prototype, "description", 2);
|
|
3415
3425
|
var CaseStudyDto = class {
|
|
3416
3426
|
};
|
|
3417
3427
|
__decorateClass([
|
|
3418
|
-
(0,
|
|
3428
|
+
(0, import_class_validator46.IsOptional)()
|
|
3419
3429
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3420
3430
|
__decorateClass([
|
|
3421
|
-
(0,
|
|
3422
|
-
(0,
|
|
3431
|
+
(0, import_class_validator46.IsString)(),
|
|
3432
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3423
3433
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3424
3434
|
__decorateClass([
|
|
3425
|
-
(0,
|
|
3426
|
-
(0,
|
|
3435
|
+
(0, import_class_validator46.IsString)(),
|
|
3436
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
3427
3437
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3428
3438
|
__decorateClass([
|
|
3429
|
-
(0,
|
|
3430
|
-
(0,
|
|
3431
|
-
(0,
|
|
3439
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3440
|
+
(0, import_class_validator46.IsString)(),
|
|
3441
|
+
(0, import_class_validator46.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3432
3442
|
], CaseStudyDto.prototype, "description", 2);
|
|
3433
3443
|
var FreelancerProjectDto = class {
|
|
3434
3444
|
};
|
|
3435
3445
|
__decorateClass([
|
|
3436
|
-
(0,
|
|
3437
|
-
(0,
|
|
3438
|
-
(0,
|
|
3446
|
+
(0, import_class_validator46.IsArray)(),
|
|
3447
|
+
(0, import_class_validator46.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
3448
|
+
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
3439
3449
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3440
3450
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3441
3451
|
__decorateClass([
|
|
3442
|
-
(0,
|
|
3443
|
-
(0,
|
|
3452
|
+
(0, import_class_validator46.IsArray)(),
|
|
3453
|
+
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
3444
3454
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3445
3455
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3446
3456
|
|
|
@@ -3456,7 +3466,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3456
3466
|
};
|
|
3457
3467
|
|
|
3458
3468
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3459
|
-
var
|
|
3469
|
+
var import_class_validator47 = require("class-validator");
|
|
3460
3470
|
var import_class_transformer5 = require("class-transformer");
|
|
3461
3471
|
var FreelancerSkillDto = class {
|
|
3462
3472
|
constructor() {
|
|
@@ -3466,22 +3476,22 @@ var FreelancerSkillDto = class {
|
|
|
3466
3476
|
}
|
|
3467
3477
|
};
|
|
3468
3478
|
__decorateClass([
|
|
3469
|
-
(0,
|
|
3470
|
-
(0,
|
|
3479
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3480
|
+
(0, import_class_validator47.IsArray)(),
|
|
3471
3481
|
(0, import_class_transformer5.Type)(() => String),
|
|
3472
|
-
(0,
|
|
3482
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3473
3483
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3474
3484
|
__decorateClass([
|
|
3475
|
-
(0,
|
|
3476
|
-
(0,
|
|
3485
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3486
|
+
(0, import_class_validator47.IsArray)(),
|
|
3477
3487
|
(0, import_class_transformer5.Type)(() => String),
|
|
3478
|
-
(0,
|
|
3488
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3479
3489
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3480
3490
|
__decorateClass([
|
|
3481
|
-
(0,
|
|
3482
|
-
(0,
|
|
3491
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3492
|
+
(0, import_class_validator47.IsArray)(),
|
|
3483
3493
|
(0, import_class_transformer5.Type)(() => String),
|
|
3484
|
-
(0,
|
|
3494
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3485
3495
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3486
3496
|
|
|
3487
3497
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3497,7 +3507,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3497
3507
|
};
|
|
3498
3508
|
|
|
3499
3509
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3500
|
-
var
|
|
3510
|
+
var import_class_validator48 = require("class-validator");
|
|
3501
3511
|
var import_class_transformer6 = require("class-transformer");
|
|
3502
3512
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3503
3513
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3514,84 +3524,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3514
3524
|
var CreateFreelancerDto = class {
|
|
3515
3525
|
};
|
|
3516
3526
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3518
|
-
(0,
|
|
3527
|
+
(0, import_class_validator48.IsString)({ message: "Full name must be a string" }),
|
|
3528
|
+
(0, import_class_validator48.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3519
3529
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3520
3530
|
__decorateClass([
|
|
3521
|
-
(0,
|
|
3531
|
+
(0, import_class_validator48.IsEmail)({}, { message: "Invalid email address" })
|
|
3522
3532
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3523
3533
|
__decorateClass([
|
|
3524
|
-
(0,
|
|
3534
|
+
(0, import_class_validator48.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3525
3535
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3526
3536
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3537
|
+
(0, import_class_validator48.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3528
3538
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3529
3539
|
__decorateClass([
|
|
3530
|
-
(0,
|
|
3531
|
-
(0,
|
|
3532
|
-
(0,
|
|
3533
|
-
(0,
|
|
3540
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter password." }),
|
|
3541
|
+
(0, import_class_validator48.MinLength)(6),
|
|
3542
|
+
(0, import_class_validator48.MaxLength)(32),
|
|
3543
|
+
(0, import_class_validator48.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3534
3544
|
message: "Password must include letters, numbers and symbols."
|
|
3535
3545
|
})
|
|
3536
3546
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3537
3547
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3548
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3539
3549
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3540
3550
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3541
3551
|
__decorateClass([
|
|
3542
|
-
(0,
|
|
3552
|
+
(0, import_class_validator48.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3543
3553
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3544
3554
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3545
3555
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3556
|
+
(0, import_class_validator48.IsEnum)(NatureOfWorkEnum, {
|
|
3547
3557
|
message: `Nature of work must be one of: ${Object.values(
|
|
3548
3558
|
NatureOfWorkEnum
|
|
3549
3559
|
).join(", ")}`
|
|
3550
3560
|
})
|
|
3551
3561
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3552
3562
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3554
|
-
(0,
|
|
3563
|
+
(0, import_class_validator48.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3564
|
+
(0, import_class_validator48.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3555
3565
|
(0, import_class_transformer6.Type)(() => Number)
|
|
3556
3566
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3557
3567
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3568
|
+
(0, import_class_validator48.IsEnum)(ModeOfWorkEnum, {
|
|
3559
3569
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3560
3570
|
", "
|
|
3561
3571
|
)}`
|
|
3562
3572
|
})
|
|
3563
3573
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3564
3574
|
__decorateClass([
|
|
3565
|
-
(0,
|
|
3575
|
+
(0, import_class_validator48.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3566
3576
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3567
3577
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3568
3578
|
__decorateClass([
|
|
3569
|
-
(0,
|
|
3570
|
-
(0,
|
|
3579
|
+
(0, import_class_validator48.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3580
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3571
3581
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3572
3582
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3574
|
-
(0,
|
|
3583
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3584
|
+
(0, import_class_validator48.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3575
3585
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3576
3586
|
__decorateClass([
|
|
3577
|
-
(0,
|
|
3578
|
-
(0,
|
|
3587
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3588
|
+
(0, import_class_validator48.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3579
3589
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3580
3590
|
__decorateClass([
|
|
3581
|
-
(0,
|
|
3582
|
-
(0,
|
|
3591
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3592
|
+
(0, import_class_validator48.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3583
3593
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3584
3594
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3586
|
-
(0,
|
|
3595
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3596
|
+
(0, import_class_validator48.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3587
3597
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3588
3598
|
__decorateClass([
|
|
3589
|
-
(0,
|
|
3590
|
-
(0,
|
|
3599
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3600
|
+
(0, import_class_validator48.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3591
3601
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3592
3602
|
|
|
3593
3603
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3594
|
-
var
|
|
3604
|
+
var import_class_validator49 = require("class-validator");
|
|
3595
3605
|
var import_class_transformer7 = require("class-transformer");
|
|
3596
3606
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3597
3607
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3608,85 +3618,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3608
3618
|
var UpdateFreelancerDto = class {
|
|
3609
3619
|
};
|
|
3610
3620
|
__decorateClass([
|
|
3611
|
-
(0,
|
|
3612
|
-
(0,
|
|
3613
|
-
(0,
|
|
3621
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3622
|
+
(0, import_class_validator49.IsString)({ message: "Full name must be a string" }),
|
|
3623
|
+
(0, import_class_validator49.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3614
3624
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3615
3625
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3617
|
-
(0,
|
|
3626
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3627
|
+
(0, import_class_validator49.IsEmail)({}, { message: "Invalid email address" })
|
|
3618
3628
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3619
3629
|
__decorateClass([
|
|
3620
|
-
(0,
|
|
3621
|
-
(0,
|
|
3630
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3631
|
+
(0, import_class_validator49.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3622
3632
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3623
3633
|
__decorateClass([
|
|
3624
|
-
(0,
|
|
3625
|
-
(0,
|
|
3634
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3635
|
+
(0, import_class_validator49.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3626
3636
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3627
3637
|
__decorateClass([
|
|
3628
|
-
(0,
|
|
3629
|
-
(0,
|
|
3630
|
-
(0,
|
|
3631
|
-
(0,
|
|
3638
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3639
|
+
(0, import_class_validator49.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3640
|
+
(0, import_class_validator49.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3641
|
+
(0, import_class_validator49.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3632
3642
|
message: "Password must include letters, numbers and symbols."
|
|
3633
3643
|
})
|
|
3634
3644
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3635
3645
|
__decorateClass([
|
|
3636
|
-
(0,
|
|
3637
|
-
(0,
|
|
3646
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3647
|
+
(0, import_class_validator49.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3638
3648
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3639
3649
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3640
3650
|
__decorateClass([
|
|
3641
|
-
(0,
|
|
3642
|
-
(0,
|
|
3651
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3652
|
+
(0, import_class_validator49.IsEnum)(NatureOfWorkEnum2, {
|
|
3643
3653
|
message: `Nature of work must be one of: ${Object.values(
|
|
3644
3654
|
NatureOfWorkEnum2
|
|
3645
3655
|
).join(", ")}`
|
|
3646
3656
|
})
|
|
3647
3657
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3648
3658
|
__decorateClass([
|
|
3649
|
-
(0,
|
|
3650
|
-
(0,
|
|
3651
|
-
(0,
|
|
3659
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3660
|
+
(0, import_class_validator49.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3661
|
+
(0, import_class_validator49.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3652
3662
|
(0, import_class_transformer7.Type)(() => Number)
|
|
3653
3663
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3654
3664
|
__decorateClass([
|
|
3655
|
-
(0,
|
|
3656
|
-
(0,
|
|
3665
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3666
|
+
(0, import_class_validator49.IsEnum)(ModeOfWorkEnum2, {
|
|
3657
3667
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3658
3668
|
", "
|
|
3659
3669
|
)}`
|
|
3660
3670
|
})
|
|
3661
3671
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3662
3672
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3664
|
-
(0,
|
|
3673
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3674
|
+
(0, import_class_validator49.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3665
3675
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3666
3676
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3667
3677
|
__decorateClass([
|
|
3668
|
-
(0,
|
|
3669
|
-
(0,
|
|
3678
|
+
(0, import_class_validator49.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3679
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3670
3680
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3671
3681
|
__decorateClass([
|
|
3672
|
-
(0,
|
|
3673
|
-
(0,
|
|
3682
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3683
|
+
(0, import_class_validator49.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3674
3684
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3675
3685
|
__decorateClass([
|
|
3676
|
-
(0,
|
|
3677
|
-
(0,
|
|
3686
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3687
|
+
(0, import_class_validator49.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3678
3688
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3679
3689
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3681
|
-
(0,
|
|
3690
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3691
|
+
(0, import_class_validator49.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3682
3692
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3683
3693
|
__decorateClass([
|
|
3684
|
-
(0,
|
|
3685
|
-
(0,
|
|
3694
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3695
|
+
(0, import_class_validator49.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3686
3696
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3687
3697
|
__decorateClass([
|
|
3688
|
-
(0,
|
|
3689
|
-
(0,
|
|
3698
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3699
|
+
(0, import_class_validator49.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3690
3700
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3691
3701
|
|
|
3692
3702
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -3703,7 +3713,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3703
3713
|
};
|
|
3704
3714
|
|
|
3705
3715
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3706
|
-
var
|
|
3716
|
+
var import_class_validator50 = require("class-validator");
|
|
3707
3717
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3708
3718
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3709
3719
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3719,73 +3729,73 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3719
3729
|
var CreateClientDto = class {
|
|
3720
3730
|
};
|
|
3721
3731
|
__decorateClass([
|
|
3722
|
-
(0,
|
|
3723
|
-
(0,
|
|
3732
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3733
|
+
(0, import_class_validator50.IsString)()
|
|
3724
3734
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3725
3735
|
__decorateClass([
|
|
3726
|
-
(0,
|
|
3727
|
-
(0,
|
|
3736
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3737
|
+
(0, import_class_validator50.IsString)()
|
|
3728
3738
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3729
3739
|
__decorateClass([
|
|
3730
|
-
(0,
|
|
3731
|
-
(0,
|
|
3740
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter email." }),
|
|
3741
|
+
(0, import_class_validator50.IsEmail)()
|
|
3732
3742
|
], CreateClientDto.prototype, "email", 2);
|
|
3733
3743
|
__decorateClass([
|
|
3734
|
-
(0,
|
|
3735
|
-
(0,
|
|
3736
|
-
(0,
|
|
3737
|
-
(0,
|
|
3744
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter password." }),
|
|
3745
|
+
(0, import_class_validator50.MinLength)(6),
|
|
3746
|
+
(0, import_class_validator50.MaxLength)(32),
|
|
3747
|
+
(0, import_class_validator50.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3738
3748
|
message: "Password must include letters, numbers and symbols."
|
|
3739
3749
|
})
|
|
3740
3750
|
], CreateClientDto.prototype, "password", 2);
|
|
3741
3751
|
__decorateClass([
|
|
3742
|
-
(0,
|
|
3752
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3743
3753
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3744
3754
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3745
3755
|
__decorateClass([
|
|
3746
|
-
(0,
|
|
3747
|
-
(0,
|
|
3756
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3757
|
+
(0, import_class_validator50.IsString)()
|
|
3748
3758
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3749
3759
|
__decorateClass([
|
|
3750
|
-
(0,
|
|
3751
|
-
(0,
|
|
3760
|
+
(0, import_class_validator50.IsArray)({ message: "Skills should be an array." }),
|
|
3761
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter skills." })
|
|
3752
3762
|
], CreateClientDto.prototype, "skills", 2);
|
|
3753
3763
|
__decorateClass([
|
|
3754
|
-
(0,
|
|
3755
|
-
(0,
|
|
3764
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3765
|
+
(0, import_class_validator50.IsString)()
|
|
3756
3766
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3757
3767
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3759
|
-
(0,
|
|
3768
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3769
|
+
(0, import_class_validator50.IsEnum)(CreateClientHiringTypeEnum)
|
|
3760
3770
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3761
3771
|
__decorateClass([
|
|
3762
|
-
(0,
|
|
3763
|
-
(0,
|
|
3772
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3773
|
+
(0, import_class_validator50.IsEnum)(CreateClientHiringModeEnum)
|
|
3764
3774
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3765
3775
|
__decorateClass([
|
|
3766
|
-
(0,
|
|
3767
|
-
(0,
|
|
3776
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3777
|
+
(0, import_class_validator50.IsString)()
|
|
3768
3778
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3769
3779
|
__decorateClass([
|
|
3770
|
-
(0,
|
|
3771
|
-
(0,
|
|
3780
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3781
|
+
(0, import_class_validator50.IsString)()
|
|
3772
3782
|
], CreateClientDto.prototype, "OTHER", 2);
|
|
3773
3783
|
__decorateClass([
|
|
3774
|
-
(0,
|
|
3775
|
-
(0,
|
|
3784
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3785
|
+
(0, import_class_validator50.IsString)()
|
|
3776
3786
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3777
3787
|
|
|
3778
3788
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3779
|
-
var
|
|
3789
|
+
var import_class_validator51 = require("class-validator");
|
|
3780
3790
|
var UpdateClientAccountStatusDto = class {
|
|
3781
3791
|
};
|
|
3782
3792
|
__decorateClass([
|
|
3783
|
-
(0,
|
|
3784
|
-
(0,
|
|
3793
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3794
|
+
(0, import_class_validator51.IsString)()
|
|
3785
3795
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3786
3796
|
|
|
3787
3797
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3788
|
-
var
|
|
3798
|
+
var import_class_validator52 = require("class-validator");
|
|
3789
3799
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3790
3800
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3791
3801
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3801,56 +3811,56 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3801
3811
|
var UpdateClientDto = class {
|
|
3802
3812
|
};
|
|
3803
3813
|
__decorateClass([
|
|
3804
|
-
(0,
|
|
3805
|
-
(0,
|
|
3814
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3815
|
+
(0, import_class_validator52.IsString)()
|
|
3806
3816
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3807
3817
|
__decorateClass([
|
|
3808
|
-
(0,
|
|
3809
|
-
(0,
|
|
3818
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3819
|
+
(0, import_class_validator52.IsString)()
|
|
3810
3820
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3811
3821
|
__decorateClass([
|
|
3812
|
-
(0,
|
|
3813
|
-
(0,
|
|
3822
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter email." }),
|
|
3823
|
+
(0, import_class_validator52.IsEmail)()
|
|
3814
3824
|
], UpdateClientDto.prototype, "email", 2);
|
|
3815
3825
|
__decorateClass([
|
|
3816
|
-
(0,
|
|
3817
|
-
(0,
|
|
3818
|
-
(0,
|
|
3819
|
-
(0,
|
|
3826
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3827
|
+
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3828
|
+
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3829
|
+
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3820
3830
|
message: "Password must include letters, numbers and symbols."
|
|
3821
3831
|
})
|
|
3822
3832
|
], UpdateClientDto.prototype, "password", 2);
|
|
3823
3833
|
__decorateClass([
|
|
3824
|
-
(0,
|
|
3825
|
-
(0,
|
|
3834
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3835
|
+
(0, import_class_validator52.IsString)()
|
|
3826
3836
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
3827
3837
|
__decorateClass([
|
|
3828
|
-
(0,
|
|
3829
|
-
(0,
|
|
3838
|
+
(0, import_class_validator52.IsArray)({ message: "Skills should be an array." }),
|
|
3839
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter skills." })
|
|
3830
3840
|
], UpdateClientDto.prototype, "skills", 2);
|
|
3831
3841
|
__decorateClass([
|
|
3832
|
-
(0,
|
|
3833
|
-
(0,
|
|
3842
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3843
|
+
(0, import_class_validator52.IsString)()
|
|
3834
3844
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3835
3845
|
__decorateClass([
|
|
3836
|
-
(0,
|
|
3837
|
-
(0,
|
|
3846
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3847
|
+
(0, import_class_validator52.IsEnum)(UpdateClientHiringTypeEnum)
|
|
3838
3848
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3839
3849
|
__decorateClass([
|
|
3840
|
-
(0,
|
|
3841
|
-
(0,
|
|
3850
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3851
|
+
(0, import_class_validator52.IsEnum)(UpdateClientHiringModeEnum)
|
|
3842
3852
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3843
3853
|
__decorateClass([
|
|
3844
|
-
(0,
|
|
3845
|
-
(0,
|
|
3854
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3855
|
+
(0, import_class_validator52.IsString)()
|
|
3846
3856
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3847
3857
|
__decorateClass([
|
|
3848
|
-
(0,
|
|
3849
|
-
(0,
|
|
3858
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3859
|
+
(0, import_class_validator52.IsString)()
|
|
3850
3860
|
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3851
3861
|
__decorateClass([
|
|
3852
|
-
(0,
|
|
3853
|
-
(0,
|
|
3862
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3863
|
+
(0, import_class_validator52.IsString)()
|
|
3854
3864
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3855
3865
|
|
|
3856
3866
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -3860,7 +3870,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3860
3870
|
};
|
|
3861
3871
|
|
|
3862
3872
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3863
|
-
var
|
|
3873
|
+
var import_class_validator53 = require("class-validator");
|
|
3864
3874
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3865
3875
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3866
3876
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3871,16 +3881,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3871
3881
|
var FreelancerDeclarationDto = class {
|
|
3872
3882
|
};
|
|
3873
3883
|
__decorateClass([
|
|
3874
|
-
(0,
|
|
3875
|
-
(0,
|
|
3884
|
+
(0, import_class_validator53.IsOptional)(),
|
|
3885
|
+
(0, import_class_validator53.IsString)({ message: "UUID must be a string" })
|
|
3876
3886
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3877
3887
|
__decorateClass([
|
|
3878
|
-
(0,
|
|
3888
|
+
(0, import_class_validator53.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3879
3889
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3880
3890
|
__decorateClass([
|
|
3881
|
-
(0,
|
|
3882
|
-
(0,
|
|
3883
|
-
(0,
|
|
3891
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3892
|
+
(0, import_class_validator53.IsString)(),
|
|
3893
|
+
(0, import_class_validator53.IsIn)([
|
|
3884
3894
|
"true"
|
|
3885
3895
|
])
|
|
3886
3896
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3895,36 +3905,36 @@ var CMS_PATTERNS = {
|
|
|
3895
3905
|
};
|
|
3896
3906
|
|
|
3897
3907
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3898
|
-
var
|
|
3908
|
+
var import_class_validator54 = require("class-validator");
|
|
3899
3909
|
var CreateCmsDto = class {
|
|
3900
3910
|
};
|
|
3901
3911
|
__decorateClass([
|
|
3902
|
-
(0,
|
|
3912
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter name." })
|
|
3903
3913
|
], CreateCmsDto.prototype, "title", 2);
|
|
3904
3914
|
__decorateClass([
|
|
3905
|
-
(0,
|
|
3915
|
+
(0, import_class_validator54.IsOptional)()
|
|
3906
3916
|
], CreateCmsDto.prototype, "content", 2);
|
|
3907
3917
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
3909
|
-
(0,
|
|
3918
|
+
(0, import_class_validator54.IsOptional)(),
|
|
3919
|
+
(0, import_class_validator54.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3910
3920
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3911
3921
|
|
|
3912
3922
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3913
|
-
var
|
|
3923
|
+
var import_class_validator55 = require("class-validator");
|
|
3914
3924
|
var UpdateCmsDto = class {
|
|
3915
3925
|
};
|
|
3916
3926
|
__decorateClass([
|
|
3917
|
-
(0,
|
|
3927
|
+
(0, import_class_validator55.IsOptional)()
|
|
3918
3928
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3919
3929
|
__decorateClass([
|
|
3920
|
-
(0,
|
|
3930
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter name." })
|
|
3921
3931
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3922
3932
|
__decorateClass([
|
|
3923
|
-
(0,
|
|
3933
|
+
(0, import_class_validator55.IsOptional)()
|
|
3924
3934
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3925
3935
|
__decorateClass([
|
|
3926
|
-
(0,
|
|
3927
|
-
(0,
|
|
3936
|
+
(0, import_class_validator55.IsOptional)(),
|
|
3937
|
+
(0, import_class_validator55.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3928
3938
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3929
3939
|
|
|
3930
3940
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -3951,7 +3961,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
3951
3961
|
|
|
3952
3962
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
3953
3963
|
var import_class_transformer8 = require("class-transformer");
|
|
3954
|
-
var
|
|
3964
|
+
var import_class_validator56 = require("class-validator");
|
|
3955
3965
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
3956
3966
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
3957
3967
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -3967,79 +3977,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
3967
3977
|
var AdminCreateJobInformationDto = class {
|
|
3968
3978
|
};
|
|
3969
3979
|
__decorateClass([
|
|
3970
|
-
(0,
|
|
3971
|
-
(0,
|
|
3980
|
+
(0, import_class_validator56.IsString)({ message: "Job role must be a string." }),
|
|
3981
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Job role is required." })
|
|
3972
3982
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
3973
3983
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
3975
|
-
(0,
|
|
3984
|
+
(0, import_class_validator56.IsOptional)(),
|
|
3985
|
+
(0, import_class_validator56.IsString)({ message: "Note must be a string." })
|
|
3976
3986
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
3977
3987
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
3979
|
-
(0,
|
|
3988
|
+
(0, import_class_validator56.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
3989
|
+
(0, import_class_validator56.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
3980
3990
|
(0, import_class_transformer8.Type)(() => Number),
|
|
3981
|
-
(0,
|
|
3991
|
+
(0, import_class_validator56.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
3982
3992
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
3983
3993
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3985
|
-
(0,
|
|
3994
|
+
(0, import_class_validator56.IsInt)({ message: "Openings must be a valid integer." }),
|
|
3995
|
+
(0, import_class_validator56.Min)(1, { message: "There must be at least one opening." })
|
|
3986
3996
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
3987
3997
|
__decorateClass([
|
|
3988
|
-
(0,
|
|
3998
|
+
(0, import_class_validator56.IsEnum)(JobLocationEnumDto, {
|
|
3989
3999
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
3990
4000
|
})
|
|
3991
4001
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
3992
4002
|
__decorateClass([
|
|
3993
|
-
(0,
|
|
4003
|
+
(0, import_class_validator56.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
3994
4004
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
3995
4005
|
})
|
|
3996
4006
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
3997
4007
|
__decorateClass([
|
|
3998
|
-
(0,
|
|
3999
|
-
(0,
|
|
4008
|
+
(0, import_class_validator56.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4009
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4000
4010
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4001
4011
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4003
|
-
(0,
|
|
4012
|
+
(0, import_class_validator56.IsString)({ message: "Communication skills must be a string." }),
|
|
4013
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4004
4014
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4005
4015
|
__decorateClass([
|
|
4006
|
-
(0,
|
|
4007
|
-
(0,
|
|
4016
|
+
(0, import_class_validator56.IsString)({ message: "Currency must be a string." }),
|
|
4017
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Currency is required." })
|
|
4008
4018
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4009
4019
|
__decorateClass([
|
|
4010
4020
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4011
|
-
(0,
|
|
4021
|
+
(0, import_class_validator56.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4012
4022
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4013
4023
|
__decorateClass([
|
|
4014
4024
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4015
|
-
(0,
|
|
4025
|
+
(0, import_class_validator56.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4016
4026
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4017
4027
|
__decorateClass([
|
|
4018
|
-
(0,
|
|
4028
|
+
(0, import_class_validator56.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4019
4029
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4020
4030
|
__decorateClass([
|
|
4021
|
-
(0,
|
|
4031
|
+
(0, import_class_validator56.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4022
4032
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4023
4033
|
__decorateClass([
|
|
4024
|
-
(0,
|
|
4025
|
-
(0,
|
|
4034
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4035
|
+
(0, import_class_validator56.IsString)({ message: "Additional comment must be a string." })
|
|
4026
4036
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4027
4037
|
__decorateClass([
|
|
4028
|
-
(0,
|
|
4038
|
+
(0, import_class_validator56.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4029
4039
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4030
4040
|
__decorateClass([
|
|
4031
|
-
(0,
|
|
4041
|
+
(0, import_class_validator56.IsInt)({ message: "State ID must be a valid integer." })
|
|
4032
4042
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4033
4043
|
__decorateClass([
|
|
4034
|
-
(0,
|
|
4044
|
+
(0, import_class_validator56.IsInt)({ message: "City ID must be a valid integer." })
|
|
4035
4045
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4036
4046
|
__decorateClass([
|
|
4037
|
-
(0,
|
|
4047
|
+
(0, import_class_validator56.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4038
4048
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4039
4049
|
|
|
4040
4050
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4041
4051
|
var import_class_transformer9 = require("class-transformer");
|
|
4042
|
-
var
|
|
4052
|
+
var import_class_validator57 = require("class-validator");
|
|
4043
4053
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4044
4054
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4045
4055
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4055,74 +4065,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4055
4065
|
var AdminUpdateJobInformationDto = class {
|
|
4056
4066
|
};
|
|
4057
4067
|
__decorateClass([
|
|
4058
|
-
(0,
|
|
4059
|
-
(0,
|
|
4068
|
+
(0, import_class_validator57.IsString)({ message: "Job role must be a string." }),
|
|
4069
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Job role is required." })
|
|
4060
4070
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4061
4071
|
__decorateClass([
|
|
4062
|
-
(0,
|
|
4063
|
-
(0,
|
|
4072
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4073
|
+
(0, import_class_validator57.IsString)({ message: "Note must be a string." })
|
|
4064
4074
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4065
4075
|
__decorateClass([
|
|
4066
|
-
(0,
|
|
4067
|
-
(0,
|
|
4076
|
+
(0, import_class_validator57.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4077
|
+
(0, import_class_validator57.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4068
4078
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4069
|
-
(0,
|
|
4079
|
+
(0, import_class_validator57.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4070
4080
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4071
4081
|
__decorateClass([
|
|
4072
|
-
(0,
|
|
4073
|
-
(0,
|
|
4082
|
+
(0, import_class_validator57.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4083
|
+
(0, import_class_validator57.Min)(1, { message: "There must be at least one opening." })
|
|
4074
4084
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4075
4085
|
__decorateClass([
|
|
4076
|
-
(0,
|
|
4086
|
+
(0, import_class_validator57.IsEnum)(JobLocationEnums, {
|
|
4077
4087
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4078
4088
|
})
|
|
4079
4089
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4080
4090
|
__decorateClass([
|
|
4081
|
-
(0,
|
|
4091
|
+
(0, import_class_validator57.IsEnum)(TypeOfEmploymentEnums, {
|
|
4082
4092
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4083
4093
|
})
|
|
4084
4094
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4085
4095
|
__decorateClass([
|
|
4086
|
-
(0,
|
|
4087
|
-
(0,
|
|
4096
|
+
(0, import_class_validator57.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4097
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4088
4098
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4089
4099
|
__decorateClass([
|
|
4090
|
-
(0,
|
|
4091
|
-
(0,
|
|
4100
|
+
(0, import_class_validator57.IsString)({ message: "Communication skills must be a string." }),
|
|
4101
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4092
4102
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4093
4103
|
__decorateClass([
|
|
4094
|
-
(0,
|
|
4095
|
-
(0,
|
|
4104
|
+
(0, import_class_validator57.IsString)({ message: "Currency must be a string." }),
|
|
4105
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Currency is required." })
|
|
4096
4106
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4097
4107
|
__decorateClass([
|
|
4098
4108
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4099
|
-
(0,
|
|
4109
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4100
4110
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4101
4111
|
__decorateClass([
|
|
4102
4112
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4103
|
-
(0,
|
|
4113
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4104
4114
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4105
4115
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4116
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4107
4117
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4108
4118
|
__decorateClass([
|
|
4109
|
-
(0,
|
|
4119
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4110
4120
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4111
4121
|
__decorateClass([
|
|
4112
|
-
(0,
|
|
4113
|
-
(0,
|
|
4122
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4123
|
+
(0, import_class_validator57.IsString)({ message: "Additional comment must be a string." })
|
|
4114
4124
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4115
4125
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4126
|
+
(0, import_class_validator57.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4117
4127
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4118
4128
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4129
|
+
(0, import_class_validator57.IsInt)({ message: "State ID must be a valid integer." })
|
|
4120
4130
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4121
4131
|
__decorateClass([
|
|
4122
|
-
(0,
|
|
4132
|
+
(0, import_class_validator57.IsInt)({ message: "City ID must be a valid integer." })
|
|
4123
4133
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4124
4134
|
__decorateClass([
|
|
4125
|
-
(0,
|
|
4135
|
+
(0, import_class_validator57.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4126
4136
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4127
4137
|
|
|
4128
4138
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4132,7 +4142,7 @@ var LEAD_PATTERN = {
|
|
|
4132
4142
|
};
|
|
4133
4143
|
|
|
4134
4144
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4135
|
-
var
|
|
4145
|
+
var import_class_validator58 = require("class-validator");
|
|
4136
4146
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4137
4147
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4138
4148
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4141,23 +4151,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4141
4151
|
var CreateLeadDto = class {
|
|
4142
4152
|
};
|
|
4143
4153
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4154
|
+
(0, import_class_validator58.IsString)({ message: "Name must be a string" })
|
|
4145
4155
|
], CreateLeadDto.prototype, "name", 2);
|
|
4146
4156
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4157
|
+
(0, import_class_validator58.IsEmail)({}, { message: "Invalid email address" })
|
|
4148
4158
|
], CreateLeadDto.prototype, "email", 2);
|
|
4149
4159
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4160
|
+
(0, import_class_validator58.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4151
4161
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4152
4162
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4163
|
+
(0, import_class_validator58.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4154
4164
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4155
4165
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4157
|
-
(0,
|
|
4166
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4167
|
+
(0, import_class_validator58.IsString)({ message: "Description must be a string" })
|
|
4158
4168
|
], CreateLeadDto.prototype, "description", 2);
|
|
4159
4169
|
__decorateClass([
|
|
4160
|
-
(0,
|
|
4170
|
+
(0, import_class_validator58.IsEnum)(CategoryEmumDto, {
|
|
4161
4171
|
message: `Type of category must be one of: ${Object.values(
|
|
4162
4172
|
CategoryEmumDto
|
|
4163
4173
|
).join(", ")}`
|
|
@@ -4618,6 +4628,7 @@ Lead = __decorateClass([
|
|
|
4618
4628
|
FreelancerExperienceDto,
|
|
4619
4629
|
FreelancerFramework,
|
|
4620
4630
|
FreelancerInitiateAiAssessmentDto,
|
|
4631
|
+
FreelancerInitiateMcqAssessmentDto,
|
|
4621
4632
|
FreelancerParseResumeDto,
|
|
4622
4633
|
FreelancerProfile,
|
|
4623
4634
|
FreelancerProfileQuestionDto,
|