@experts_hub/shared 1.0.231 → 1.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +548 -514
- package/dist/index.mjs +205 -172
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +6 -0
- package/dist/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.d.ts +3 -0
- package/dist/modules/onboarding/dto/index.d.ts +1 -0
- package/package.json +1 -1
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,102 @@ 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.IsNumber)({}, { message: "Country id must be a number" }),
|
|
916
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
917
|
+
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
918
|
+
__decorateClass([
|
|
919
|
+
(0, import_class_validator28.IsNumber)({}, { message: "State id must be a number" }),
|
|
920
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
921
|
+
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
922
|
+
__decorateClass([
|
|
923
|
+
(0, import_class_validator28.IsNumber)({}, { message: "City id must be a number" }),
|
|
924
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
925
|
+
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
926
|
+
__decorateClass([
|
|
927
|
+
(0, import_class_validator28.IsEnum)(EmploymentType, {
|
|
906
928
|
message: `Type of employment must be one of: ${Object.values(
|
|
907
929
|
EmploymentType
|
|
908
930
|
).join(", ")}`
|
|
909
931
|
})
|
|
910
932
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
911
933
|
__decorateClass([
|
|
912
|
-
(0,
|
|
913
|
-
|
|
934
|
+
(0, import_class_validator28.IsString)({ message: "Currency must be a string" })
|
|
935
|
+
], JobBasicInformationDto.prototype, "currency", 2);
|
|
936
|
+
__decorateClass([
|
|
937
|
+
(0, import_class_validator28.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
938
|
+
(0, import_class_validator28.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
914
939
|
(0, import_class_transformer.Type)(() => Number)
|
|
915
940
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
916
941
|
__decorateClass([
|
|
917
|
-
(0,
|
|
918
|
-
(0,
|
|
942
|
+
(0, import_class_validator28.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
943
|
+
(0, import_class_validator28.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
919
944
|
(0, import_class_transformer.Type)(() => Number)
|
|
920
945
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
921
946
|
__decorateClass([
|
|
922
|
-
(0,
|
|
923
|
-
(0,
|
|
947
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter start date" }),
|
|
948
|
+
(0, import_class_validator28.IsString)({ message: "Start date must be valid" })
|
|
949
|
+
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
950
|
+
__decorateClass([
|
|
951
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter end date" }),
|
|
952
|
+
(0, import_class_validator28.IsString)({ message: "End date must be valid" })
|
|
953
|
+
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
954
|
+
__decorateClass([
|
|
955
|
+
(0, import_class_validator28.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
956
|
+
(0, import_class_validator28.IsOptional)()
|
|
924
957
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
925
958
|
__decorateClass([
|
|
926
|
-
(0,
|
|
927
|
-
(0,
|
|
959
|
+
(0, import_class_validator28.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
960
|
+
(0, import_class_validator28.IsOptional)()
|
|
928
961
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
929
962
|
|
|
930
963
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
931
|
-
var
|
|
964
|
+
var import_class_validator29 = require("class-validator");
|
|
932
965
|
var JobAdditionalCommentDto = class {
|
|
933
966
|
};
|
|
934
967
|
__decorateClass([
|
|
935
|
-
(0,
|
|
936
|
-
(0,
|
|
937
|
-
(0,
|
|
968
|
+
(0, import_class_validator29.IsOptional)(),
|
|
969
|
+
(0, import_class_validator29.IsString)({ message: "Additional comment must be a string" }),
|
|
970
|
+
(0, import_class_validator29.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
938
971
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
939
972
|
|
|
940
973
|
// src/modules/job/dto/job-description.dto.ts
|
|
941
|
-
var
|
|
974
|
+
var import_class_validator30 = require("class-validator");
|
|
942
975
|
var JobDescriptionDto = class {
|
|
943
976
|
};
|
|
944
977
|
__decorateClass([
|
|
945
|
-
(0,
|
|
946
|
-
(0,
|
|
947
|
-
(0,
|
|
978
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter job description" }),
|
|
979
|
+
(0, import_class_validator30.IsString)({ message: "Description must be a string" }),
|
|
980
|
+
(0, import_class_validator30.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
948
981
|
], JobDescriptionDto.prototype, "description", 2);
|
|
949
982
|
|
|
950
983
|
// src/modules/job/dto/job-status.dto.ts
|
|
951
|
-
var
|
|
984
|
+
var import_class_validator31 = require("class-validator");
|
|
952
985
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
953
986
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
954
987
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -960,18 +993,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
960
993
|
var JobStatusDto = class {
|
|
961
994
|
};
|
|
962
995
|
__decorateClass([
|
|
963
|
-
(0,
|
|
964
|
-
(0,
|
|
996
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
997
|
+
(0, import_class_validator31.IsEnum)(JobStatus, {
|
|
965
998
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
966
999
|
})
|
|
967
1000
|
], JobStatusDto.prototype, "status", 2);
|
|
968
1001
|
|
|
969
1002
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
970
|
-
var
|
|
1003
|
+
var import_class_validator32 = require("class-validator");
|
|
971
1004
|
var JobIdParamDto = class {
|
|
972
1005
|
};
|
|
973
1006
|
__decorateClass([
|
|
974
|
-
(0,
|
|
1007
|
+
(0, import_class_validator32.IsUUID)("4", {
|
|
975
1008
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
976
1009
|
})
|
|
977
1010
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -987,25 +1020,25 @@ var PROFILE_PATTERN = {
|
|
|
987
1020
|
};
|
|
988
1021
|
|
|
989
1022
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
990
|
-
var
|
|
1023
|
+
var import_class_validator33 = require("class-validator");
|
|
991
1024
|
var FreelancerChangePasswordDto = class {
|
|
992
1025
|
};
|
|
993
1026
|
__decorateClass([
|
|
994
|
-
(0,
|
|
995
|
-
(0,
|
|
1027
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1028
|
+
(0, import_class_validator33.IsString)()
|
|
996
1029
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
997
1030
|
__decorateClass([
|
|
998
|
-
(0,
|
|
999
|
-
(0,
|
|
1000
|
-
(0,
|
|
1001
|
-
(0,
|
|
1002
|
-
(0,
|
|
1031
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1032
|
+
(0, import_class_validator33.IsString)(),
|
|
1033
|
+
(0, import_class_validator33.MinLength)(6),
|
|
1034
|
+
(0, import_class_validator33.MaxLength)(32),
|
|
1035
|
+
(0, import_class_validator33.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1003
1036
|
message: "New Password must include letters, numbers and symbols."
|
|
1004
1037
|
})
|
|
1005
1038
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1006
1039
|
|
|
1007
1040
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1008
|
-
var
|
|
1041
|
+
var import_class_validator34 = require("class-validator");
|
|
1009
1042
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1010
1043
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1011
1044
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1015,66 +1048,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
1015
1048
|
var UpdateFreelancerProfileDto = class {
|
|
1016
1049
|
};
|
|
1017
1050
|
__decorateClass([
|
|
1018
|
-
(0,
|
|
1019
|
-
(0,
|
|
1051
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1052
|
+
(0, import_class_validator34.IsString)()
|
|
1020
1053
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1021
1054
|
__decorateClass([
|
|
1022
|
-
(0,
|
|
1023
|
-
(0,
|
|
1055
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1056
|
+
(0, import_class_validator34.IsString)()
|
|
1024
1057
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1025
1058
|
__decorateClass([
|
|
1026
|
-
(0,
|
|
1027
|
-
(0,
|
|
1059
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1060
|
+
(0, import_class_validator34.IsEmail)()
|
|
1028
1061
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1029
1062
|
__decorateClass([
|
|
1030
|
-
(0,
|
|
1031
|
-
(0,
|
|
1063
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1064
|
+
(0, import_class_validator34.IsString)()
|
|
1032
1065
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1033
1066
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1035
|
-
(0,
|
|
1067
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1068
|
+
(0, import_class_validator34.IsNumber)()
|
|
1036
1069
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1037
1070
|
__decorateClass([
|
|
1038
|
-
(0,
|
|
1039
|
-
(0,
|
|
1071
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1072
|
+
(0, import_class_validator34.IsString)()
|
|
1040
1073
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1041
1074
|
__decorateClass([
|
|
1042
|
-
(0,
|
|
1043
|
-
(0,
|
|
1075
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1076
|
+
(0, import_class_validator34.IsString)()
|
|
1044
1077
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1045
1078
|
__decorateClass([
|
|
1046
|
-
(0,
|
|
1047
|
-
(0,
|
|
1079
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1080
|
+
(0, import_class_validator34.IsEnum)(NatureOfWorkDto, {
|
|
1048
1081
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
1049
1082
|
})
|
|
1050
1083
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1051
1084
|
__decorateClass([
|
|
1052
|
-
(0,
|
|
1053
|
-
(0,
|
|
1085
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1086
|
+
(0, import_class_validator34.IsString)()
|
|
1054
1087
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1055
1088
|
__decorateClass([
|
|
1056
|
-
(0,
|
|
1057
|
-
(0,
|
|
1089
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1090
|
+
(0, import_class_validator34.IsString)()
|
|
1058
1091
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1059
1092
|
__decorateClass([
|
|
1060
|
-
(0,
|
|
1061
|
-
(0,
|
|
1093
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1094
|
+
(0, import_class_validator34.IsString)()
|
|
1062
1095
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1063
1096
|
__decorateClass([
|
|
1064
|
-
(0,
|
|
1065
|
-
(0,
|
|
1097
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1098
|
+
(0, import_class_validator34.IsString)()
|
|
1066
1099
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1067
1100
|
__decorateClass([
|
|
1068
|
-
(0,
|
|
1069
|
-
(0,
|
|
1101
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1102
|
+
(0, import_class_validator34.IsString)()
|
|
1070
1103
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1071
1104
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1073
|
-
(0,
|
|
1105
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1106
|
+
(0, import_class_validator34.IsString)()
|
|
1074
1107
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1075
1108
|
__decorateClass([
|
|
1076
|
-
(0,
|
|
1077
|
-
(0,
|
|
1109
|
+
(0, import_class_validator34.IsOptional)(),
|
|
1110
|
+
(0, import_class_validator34.IsString)()
|
|
1078
1111
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1079
1112
|
|
|
1080
1113
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1085,7 +1118,7 @@ var BANK_PATTERN = {
|
|
|
1085
1118
|
};
|
|
1086
1119
|
|
|
1087
1120
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1088
|
-
var
|
|
1121
|
+
var import_class_validator35 = require("class-validator");
|
|
1089
1122
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1090
1123
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1091
1124
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1094,47 +1127,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1094
1127
|
var FreelancerBankDetailsDto = class {
|
|
1095
1128
|
};
|
|
1096
1129
|
__decorateClass([
|
|
1097
|
-
(0,
|
|
1130
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1098
1131
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1099
1132
|
__decorateClass([
|
|
1100
|
-
(0,
|
|
1133
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1101
1134
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1102
1135
|
__decorateClass([
|
|
1103
|
-
(0,
|
|
1136
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Email." })
|
|
1104
1137
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1105
1138
|
__decorateClass([
|
|
1106
|
-
(0,
|
|
1139
|
+
(0, import_class_validator35.IsOptional)()
|
|
1107
1140
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1108
1141
|
__decorateClass([
|
|
1109
|
-
(0,
|
|
1142
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1110
1143
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1111
1144
|
__decorateClass([
|
|
1112
|
-
(0,
|
|
1145
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1113
1146
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1114
1147
|
__decorateClass([
|
|
1115
|
-
(0,
|
|
1148
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1116
1149
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1117
1150
|
__decorateClass([
|
|
1118
|
-
(0,
|
|
1119
|
-
(0,
|
|
1151
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1152
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1120
1153
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1121
1154
|
__decorateClass([
|
|
1122
|
-
(0,
|
|
1123
|
-
(0,
|
|
1155
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1156
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1124
1157
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1125
1158
|
__decorateClass([
|
|
1126
|
-
(0,
|
|
1127
|
-
(0,
|
|
1159
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1160
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1128
1161
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1129
1162
|
__decorateClass([
|
|
1130
|
-
(0,
|
|
1131
|
-
(0,
|
|
1163
|
+
(0, import_class_validator35.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1164
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1132
1165
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1133
1166
|
__decorateClass([
|
|
1134
|
-
(0,
|
|
1167
|
+
(0, import_class_validator35.IsOptional)()
|
|
1135
1168
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1136
1169
|
__decorateClass([
|
|
1137
|
-
(0,
|
|
1170
|
+
(0, import_class_validator35.IsEnum)(BankAccountScope, {
|
|
1138
1171
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1139
1172
|
BankAccountScope
|
|
1140
1173
|
).join(", ")}`
|
|
@@ -1154,7 +1187,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1154
1187
|
};
|
|
1155
1188
|
|
|
1156
1189
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1157
|
-
var
|
|
1190
|
+
var import_class_validator36 = require("class-validator");
|
|
1158
1191
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1159
1192
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1160
1193
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1163,10 +1196,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1163
1196
|
var SystemPreferenceDto = class {
|
|
1164
1197
|
};
|
|
1165
1198
|
__decorateClass([
|
|
1166
|
-
(0,
|
|
1199
|
+
(0, import_class_validator36.IsBoolean)()
|
|
1167
1200
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1168
1201
|
__decorateClass([
|
|
1169
|
-
(0,
|
|
1202
|
+
(0, import_class_validator36.IsEnum)(SystemPreferenceKey, {
|
|
1170
1203
|
message: `key must be one of: ${Object.values(
|
|
1171
1204
|
SystemPreferenceKey
|
|
1172
1205
|
).join(", ")}`
|
|
@@ -1186,7 +1219,7 @@ var RATING_PATTERN = {
|
|
|
1186
1219
|
};
|
|
1187
1220
|
|
|
1188
1221
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1189
|
-
var
|
|
1222
|
+
var import_class_validator37 = require("class-validator");
|
|
1190
1223
|
|
|
1191
1224
|
// src/entities/rating.entity.ts
|
|
1192
1225
|
var import_typeorm36 = require("typeorm");
|
|
@@ -3163,22 +3196,22 @@ Rating = __decorateClass([
|
|
|
3163
3196
|
var CreateRatingDto = class {
|
|
3164
3197
|
};
|
|
3165
3198
|
__decorateClass([
|
|
3166
|
-
(0,
|
|
3167
|
-
(0,
|
|
3199
|
+
(0, import_class_validator37.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
3200
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
3168
3201
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3169
3202
|
__decorateClass([
|
|
3170
|
-
(0,
|
|
3203
|
+
(0, import_class_validator37.IsEnum)(RatingTypeEnum, {
|
|
3171
3204
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3172
3205
|
})
|
|
3173
3206
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3174
3207
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3176
|
-
(0,
|
|
3177
|
-
(0,
|
|
3208
|
+
(0, import_class_validator37.IsInt)({ message: "Rating must be an integer value" }),
|
|
3209
|
+
(0, import_class_validator37.Min)(1, { message: "Rating must be at least 1" }),
|
|
3210
|
+
(0, import_class_validator37.Max)(5, { message: "Rating must be at most 5" })
|
|
3178
3211
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3179
3212
|
__decorateClass([
|
|
3180
|
-
(0,
|
|
3181
|
-
(0,
|
|
3213
|
+
(0, import_class_validator37.IsOptional)(),
|
|
3214
|
+
(0, import_class_validator37.IsString)({ message: "Review must be a string" })
|
|
3182
3215
|
], CreateRatingDto.prototype, "review", 2);
|
|
3183
3216
|
|
|
3184
3217
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3194,57 +3227,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3194
3227
|
};
|
|
3195
3228
|
|
|
3196
3229
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3197
|
-
var
|
|
3230
|
+
var import_class_validator38 = require("class-validator");
|
|
3198
3231
|
var CreateCompanyRoleDto = class {
|
|
3199
3232
|
};
|
|
3200
3233
|
__decorateClass([
|
|
3201
|
-
(0,
|
|
3234
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3202
3235
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3203
3236
|
__decorateClass([
|
|
3204
|
-
(0,
|
|
3237
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3205
3238
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3206
3239
|
__decorateClass([
|
|
3207
|
-
(0,
|
|
3240
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter description" })
|
|
3208
3241
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3209
3242
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3211
|
-
(0,
|
|
3212
|
-
(0,
|
|
3243
|
+
(0, import_class_validator38.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3244
|
+
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3245
|
+
(0, import_class_validator38.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3213
3246
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3214
3247
|
__decorateClass([
|
|
3215
|
-
(0,
|
|
3216
|
-
(0,
|
|
3248
|
+
(0, import_class_validator38.IsOptional)(),
|
|
3249
|
+
(0, import_class_validator38.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3217
3250
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3218
3251
|
|
|
3219
3252
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3220
|
-
var
|
|
3253
|
+
var import_class_validator39 = require("class-validator");
|
|
3221
3254
|
var UpdateCompanyRoleDto = class {
|
|
3222
3255
|
};
|
|
3223
3256
|
__decorateClass([
|
|
3224
|
-
(0,
|
|
3257
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter company name." })
|
|
3225
3258
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3226
3259
|
__decorateClass([
|
|
3227
|
-
(0,
|
|
3260
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter slug" })
|
|
3228
3261
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3229
3262
|
__decorateClass([
|
|
3230
|
-
(0,
|
|
3263
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter description" })
|
|
3231
3264
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3232
3265
|
__decorateClass([
|
|
3233
|
-
(0,
|
|
3234
|
-
(0,
|
|
3235
|
-
(0,
|
|
3266
|
+
(0, import_class_validator39.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3267
|
+
(0, import_class_validator39.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3268
|
+
(0, import_class_validator39.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3236
3269
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3237
3270
|
__decorateClass([
|
|
3238
|
-
(0,
|
|
3239
|
-
(0,
|
|
3271
|
+
(0, import_class_validator39.IsOptional)(),
|
|
3272
|
+
(0, import_class_validator39.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3240
3273
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3241
3274
|
|
|
3242
3275
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3243
|
-
var
|
|
3276
|
+
var import_class_validator40 = require("class-validator");
|
|
3244
3277
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3245
3278
|
};
|
|
3246
3279
|
__decorateClass([
|
|
3247
|
-
(0,
|
|
3280
|
+
(0, import_class_validator40.IsBoolean)()
|
|
3248
3281
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3249
3282
|
|
|
3250
3283
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3254,35 +3287,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3254
3287
|
};
|
|
3255
3288
|
|
|
3256
3289
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3257
|
-
var
|
|
3290
|
+
var import_class_validator41 = require("class-validator");
|
|
3258
3291
|
var import_class_transformer2 = require("class-transformer");
|
|
3259
3292
|
var ExperienceDto = class {
|
|
3260
3293
|
};
|
|
3261
3294
|
__decorateClass([
|
|
3262
|
-
(0,
|
|
3295
|
+
(0, import_class_validator41.IsOptional)()
|
|
3263
3296
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3264
3297
|
__decorateClass([
|
|
3265
|
-
(0,
|
|
3266
|
-
(0,
|
|
3298
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3299
|
+
(0, import_class_validator41.IsString)()
|
|
3267
3300
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3268
3301
|
__decorateClass([
|
|
3269
|
-
(0,
|
|
3270
|
-
(0,
|
|
3302
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3303
|
+
(0, import_class_validator41.IsString)()
|
|
3271
3304
|
], ExperienceDto.prototype, "designation", 2);
|
|
3272
3305
|
__decorateClass([
|
|
3273
|
-
(0,
|
|
3274
|
-
(0,
|
|
3306
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3307
|
+
(0, import_class_validator41.IsString)()
|
|
3275
3308
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3276
3309
|
__decorateClass([
|
|
3277
|
-
(0,
|
|
3278
|
-
(0,
|
|
3279
|
-
(0,
|
|
3310
|
+
(0, import_class_validator41.IsNotEmpty)(),
|
|
3311
|
+
(0, import_class_validator41.IsString)(),
|
|
3312
|
+
(0, import_class_validator41.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3280
3313
|
], ExperienceDto.prototype, "description", 2);
|
|
3281
3314
|
var FreelancerExperienceDto = class {
|
|
3282
3315
|
};
|
|
3283
3316
|
__decorateClass([
|
|
3284
|
-
(0,
|
|
3285
|
-
(0,
|
|
3317
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
3318
|
+
(0, import_class_validator41.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3286
3319
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3287
3320
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3288
3321
|
|
|
@@ -3299,43 +3332,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3299
3332
|
};
|
|
3300
3333
|
|
|
3301
3334
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3302
|
-
var
|
|
3335
|
+
var import_class_validator42 = require("class-validator");
|
|
3303
3336
|
var CreateCompanyMemberDto = class {
|
|
3304
3337
|
};
|
|
3305
3338
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3339
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter name." })
|
|
3307
3340
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3308
3341
|
__decorateClass([
|
|
3309
|
-
(0,
|
|
3342
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter email" })
|
|
3310
3343
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3311
3344
|
__decorateClass([
|
|
3312
|
-
(0,
|
|
3313
|
-
(0,
|
|
3314
|
-
(0,
|
|
3345
|
+
(0, import_class_validator42.IsArray)({ message: "Role IDs must be an array." }),
|
|
3346
|
+
(0, import_class_validator42.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3347
|
+
(0, import_class_validator42.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3315
3348
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3316
3349
|
|
|
3317
3350
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3318
|
-
var
|
|
3351
|
+
var import_class_validator43 = require("class-validator");
|
|
3319
3352
|
var UpdateCompanyMemberDto = class {
|
|
3320
3353
|
};
|
|
3321
3354
|
__decorateClass([
|
|
3322
|
-
(0,
|
|
3355
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter name." })
|
|
3323
3356
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3324
3357
|
__decorateClass([
|
|
3325
|
-
(0,
|
|
3358
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter email" })
|
|
3326
3359
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3327
3360
|
__decorateClass([
|
|
3328
|
-
(0,
|
|
3329
|
-
(0,
|
|
3330
|
-
(0,
|
|
3361
|
+
(0, import_class_validator43.IsArray)({ message: "Role IDs must be an array." }),
|
|
3362
|
+
(0, import_class_validator43.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3363
|
+
(0, import_class_validator43.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3331
3364
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3332
3365
|
|
|
3333
3366
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3334
|
-
var
|
|
3367
|
+
var import_class_validator44 = require("class-validator");
|
|
3335
3368
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3336
3369
|
};
|
|
3337
3370
|
__decorateClass([
|
|
3338
|
-
(0,
|
|
3371
|
+
(0, import_class_validator44.IsBoolean)()
|
|
3339
3372
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3340
3373
|
|
|
3341
3374
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3345,31 +3378,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3345
3378
|
};
|
|
3346
3379
|
|
|
3347
3380
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3348
|
-
var
|
|
3381
|
+
var import_class_validator45 = require("class-validator");
|
|
3349
3382
|
var import_class_transformer3 = require("class-transformer");
|
|
3350
3383
|
var EducationDto = class {
|
|
3351
3384
|
};
|
|
3352
3385
|
__decorateClass([
|
|
3353
|
-
(0,
|
|
3386
|
+
(0, import_class_validator45.IsOptional)()
|
|
3354
3387
|
], EducationDto.prototype, "uuid", 2);
|
|
3355
3388
|
__decorateClass([
|
|
3356
|
-
(0,
|
|
3357
|
-
(0,
|
|
3389
|
+
(0, import_class_validator45.IsString)(),
|
|
3390
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3358
3391
|
], EducationDto.prototype, "degree", 2);
|
|
3359
3392
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3361
|
-
(0,
|
|
3393
|
+
(0, import_class_validator45.IsString)(),
|
|
3394
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter University " })
|
|
3362
3395
|
], EducationDto.prototype, "university", 2);
|
|
3363
3396
|
__decorateClass([
|
|
3364
|
-
(0,
|
|
3365
|
-
(0,
|
|
3397
|
+
(0, import_class_validator45.IsString)(),
|
|
3398
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3366
3399
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3367
3400
|
var FreelancerEducationDto = class {
|
|
3368
3401
|
};
|
|
3369
3402
|
__decorateClass([
|
|
3370
|
-
(0,
|
|
3371
|
-
(0,
|
|
3372
|
-
(0,
|
|
3403
|
+
(0, import_class_validator45.IsArray)(),
|
|
3404
|
+
(0, import_class_validator45.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
3405
|
+
(0, import_class_validator45.ValidateNested)({ each: true }),
|
|
3373
3406
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3374
3407
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3375
3408
|
|
|
@@ -3380,67 +3413,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3380
3413
|
};
|
|
3381
3414
|
|
|
3382
3415
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3383
|
-
var
|
|
3416
|
+
var import_class_validator46 = require("class-validator");
|
|
3384
3417
|
var import_class_transformer4 = require("class-transformer");
|
|
3385
3418
|
var ProjectDto = class {
|
|
3386
3419
|
};
|
|
3387
3420
|
__decorateClass([
|
|
3388
|
-
(0,
|
|
3421
|
+
(0, import_class_validator46.IsOptional)()
|
|
3389
3422
|
], ProjectDto.prototype, "uuid", 2);
|
|
3390
3423
|
__decorateClass([
|
|
3391
|
-
(0,
|
|
3392
|
-
(0,
|
|
3424
|
+
(0, import_class_validator46.IsString)(),
|
|
3425
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3393
3426
|
], ProjectDto.prototype, "projectName", 2);
|
|
3394
3427
|
__decorateClass([
|
|
3395
|
-
(0,
|
|
3396
|
-
(0,
|
|
3428
|
+
(0, import_class_validator46.IsDateString)(),
|
|
3429
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3397
3430
|
], ProjectDto.prototype, "startDate", 2);
|
|
3398
3431
|
__decorateClass([
|
|
3399
|
-
(0,
|
|
3400
|
-
(0,
|
|
3432
|
+
(0, import_class_validator46.IsDateString)(),
|
|
3433
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3401
3434
|
], ProjectDto.prototype, "endDate", 2);
|
|
3402
3435
|
__decorateClass([
|
|
3403
|
-
(0,
|
|
3404
|
-
(0,
|
|
3436
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3437
|
+
(0, import_class_validator46.IsString)()
|
|
3405
3438
|
], ProjectDto.prototype, "clientName", 2);
|
|
3406
3439
|
__decorateClass([
|
|
3407
|
-
(0,
|
|
3408
|
-
(0,
|
|
3440
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3441
|
+
(0, import_class_validator46.IsString)()
|
|
3409
3442
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3410
3443
|
__decorateClass([
|
|
3411
|
-
(0,
|
|
3412
|
-
(0,
|
|
3413
|
-
(0,
|
|
3444
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3445
|
+
(0, import_class_validator46.IsString)(),
|
|
3446
|
+
(0, import_class_validator46.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3414
3447
|
], ProjectDto.prototype, "description", 2);
|
|
3415
3448
|
var CaseStudyDto = class {
|
|
3416
3449
|
};
|
|
3417
3450
|
__decorateClass([
|
|
3418
|
-
(0,
|
|
3451
|
+
(0, import_class_validator46.IsOptional)()
|
|
3419
3452
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3420
3453
|
__decorateClass([
|
|
3421
|
-
(0,
|
|
3422
|
-
(0,
|
|
3454
|
+
(0, import_class_validator46.IsString)(),
|
|
3455
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3423
3456
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3424
3457
|
__decorateClass([
|
|
3425
|
-
(0,
|
|
3426
|
-
(0,
|
|
3458
|
+
(0, import_class_validator46.IsString)(),
|
|
3459
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
3427
3460
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3428
3461
|
__decorateClass([
|
|
3429
|
-
(0,
|
|
3430
|
-
(0,
|
|
3431
|
-
(0,
|
|
3462
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3463
|
+
(0, import_class_validator46.IsString)(),
|
|
3464
|
+
(0, import_class_validator46.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3432
3465
|
], CaseStudyDto.prototype, "description", 2);
|
|
3433
3466
|
var FreelancerProjectDto = class {
|
|
3434
3467
|
};
|
|
3435
3468
|
__decorateClass([
|
|
3436
|
-
(0,
|
|
3437
|
-
(0,
|
|
3438
|
-
(0,
|
|
3469
|
+
(0, import_class_validator46.IsArray)(),
|
|
3470
|
+
(0, import_class_validator46.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
3471
|
+
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
3439
3472
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3440
3473
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3441
3474
|
__decorateClass([
|
|
3442
|
-
(0,
|
|
3443
|
-
(0,
|
|
3475
|
+
(0, import_class_validator46.IsArray)(),
|
|
3476
|
+
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
3444
3477
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3445
3478
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3446
3479
|
|
|
@@ -3456,7 +3489,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3456
3489
|
};
|
|
3457
3490
|
|
|
3458
3491
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3459
|
-
var
|
|
3492
|
+
var import_class_validator47 = require("class-validator");
|
|
3460
3493
|
var import_class_transformer5 = require("class-transformer");
|
|
3461
3494
|
var FreelancerSkillDto = class {
|
|
3462
3495
|
constructor() {
|
|
@@ -3466,22 +3499,22 @@ var FreelancerSkillDto = class {
|
|
|
3466
3499
|
}
|
|
3467
3500
|
};
|
|
3468
3501
|
__decorateClass([
|
|
3469
|
-
(0,
|
|
3470
|
-
(0,
|
|
3502
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3503
|
+
(0, import_class_validator47.IsArray)(),
|
|
3471
3504
|
(0, import_class_transformer5.Type)(() => String),
|
|
3472
|
-
(0,
|
|
3505
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3473
3506
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3474
3507
|
__decorateClass([
|
|
3475
|
-
(0,
|
|
3476
|
-
(0,
|
|
3508
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3509
|
+
(0, import_class_validator47.IsArray)(),
|
|
3477
3510
|
(0, import_class_transformer5.Type)(() => String),
|
|
3478
|
-
(0,
|
|
3511
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3479
3512
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3480
3513
|
__decorateClass([
|
|
3481
|
-
(0,
|
|
3482
|
-
(0,
|
|
3514
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3515
|
+
(0, import_class_validator47.IsArray)(),
|
|
3483
3516
|
(0, import_class_transformer5.Type)(() => String),
|
|
3484
|
-
(0,
|
|
3517
|
+
(0, import_class_validator47.IsString)({ each: true })
|
|
3485
3518
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3486
3519
|
|
|
3487
3520
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3497,7 +3530,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3497
3530
|
};
|
|
3498
3531
|
|
|
3499
3532
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3500
|
-
var
|
|
3533
|
+
var import_class_validator48 = require("class-validator");
|
|
3501
3534
|
var import_class_transformer6 = require("class-transformer");
|
|
3502
3535
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3503
3536
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3514,84 +3547,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3514
3547
|
var CreateFreelancerDto = class {
|
|
3515
3548
|
};
|
|
3516
3549
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3518
|
-
(0,
|
|
3550
|
+
(0, import_class_validator48.IsString)({ message: "Full name must be a string" }),
|
|
3551
|
+
(0, import_class_validator48.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3519
3552
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3520
3553
|
__decorateClass([
|
|
3521
|
-
(0,
|
|
3554
|
+
(0, import_class_validator48.IsEmail)({}, { message: "Invalid email address" })
|
|
3522
3555
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3523
3556
|
__decorateClass([
|
|
3524
|
-
(0,
|
|
3557
|
+
(0, import_class_validator48.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3525
3558
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3526
3559
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3560
|
+
(0, import_class_validator48.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3528
3561
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3529
3562
|
__decorateClass([
|
|
3530
|
-
(0,
|
|
3531
|
-
(0,
|
|
3532
|
-
(0,
|
|
3533
|
-
(0,
|
|
3563
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter password." }),
|
|
3564
|
+
(0, import_class_validator48.MinLength)(6),
|
|
3565
|
+
(0, import_class_validator48.MaxLength)(32),
|
|
3566
|
+
(0, import_class_validator48.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3534
3567
|
message: "Password must include letters, numbers and symbols."
|
|
3535
3568
|
})
|
|
3536
3569
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3537
3570
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3571
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3539
3572
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3540
3573
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3541
3574
|
__decorateClass([
|
|
3542
|
-
(0,
|
|
3575
|
+
(0, import_class_validator48.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3543
3576
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3544
3577
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3545
3578
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3579
|
+
(0, import_class_validator48.IsEnum)(NatureOfWorkEnum, {
|
|
3547
3580
|
message: `Nature of work must be one of: ${Object.values(
|
|
3548
3581
|
NatureOfWorkEnum
|
|
3549
3582
|
).join(", ")}`
|
|
3550
3583
|
})
|
|
3551
3584
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3552
3585
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3554
|
-
(0,
|
|
3586
|
+
(0, import_class_validator48.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3587
|
+
(0, import_class_validator48.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3555
3588
|
(0, import_class_transformer6.Type)(() => Number)
|
|
3556
3589
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3557
3590
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3591
|
+
(0, import_class_validator48.IsEnum)(ModeOfWorkEnum, {
|
|
3559
3592
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3560
3593
|
", "
|
|
3561
3594
|
)}`
|
|
3562
3595
|
})
|
|
3563
3596
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3564
3597
|
__decorateClass([
|
|
3565
|
-
(0,
|
|
3598
|
+
(0, import_class_validator48.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3566
3599
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3567
3600
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3568
3601
|
__decorateClass([
|
|
3569
|
-
(0,
|
|
3570
|
-
(0,
|
|
3602
|
+
(0, import_class_validator48.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3603
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3571
3604
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3572
3605
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3574
|
-
(0,
|
|
3606
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3607
|
+
(0, import_class_validator48.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3575
3608
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3576
3609
|
__decorateClass([
|
|
3577
|
-
(0,
|
|
3578
|
-
(0,
|
|
3610
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3611
|
+
(0, import_class_validator48.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3579
3612
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3580
3613
|
__decorateClass([
|
|
3581
|
-
(0,
|
|
3582
|
-
(0,
|
|
3614
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3615
|
+
(0, import_class_validator48.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3583
3616
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3584
3617
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3586
|
-
(0,
|
|
3618
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3619
|
+
(0, import_class_validator48.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3587
3620
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3588
3621
|
__decorateClass([
|
|
3589
|
-
(0,
|
|
3590
|
-
(0,
|
|
3622
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3623
|
+
(0, import_class_validator48.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3591
3624
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3592
3625
|
|
|
3593
3626
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3594
|
-
var
|
|
3627
|
+
var import_class_validator49 = require("class-validator");
|
|
3595
3628
|
var import_class_transformer7 = require("class-transformer");
|
|
3596
3629
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3597
3630
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3608,85 +3641,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3608
3641
|
var UpdateFreelancerDto = class {
|
|
3609
3642
|
};
|
|
3610
3643
|
__decorateClass([
|
|
3611
|
-
(0,
|
|
3612
|
-
(0,
|
|
3613
|
-
(0,
|
|
3644
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3645
|
+
(0, import_class_validator49.IsString)({ message: "Full name must be a string" }),
|
|
3646
|
+
(0, import_class_validator49.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3614
3647
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3615
3648
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3617
|
-
(0,
|
|
3649
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3650
|
+
(0, import_class_validator49.IsEmail)({}, { message: "Invalid email address" })
|
|
3618
3651
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3619
3652
|
__decorateClass([
|
|
3620
|
-
(0,
|
|
3621
|
-
(0,
|
|
3653
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3654
|
+
(0, import_class_validator49.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3622
3655
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3623
3656
|
__decorateClass([
|
|
3624
|
-
(0,
|
|
3625
|
-
(0,
|
|
3657
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3658
|
+
(0, import_class_validator49.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3626
3659
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3627
3660
|
__decorateClass([
|
|
3628
|
-
(0,
|
|
3629
|
-
(0,
|
|
3630
|
-
(0,
|
|
3631
|
-
(0,
|
|
3661
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3662
|
+
(0, import_class_validator49.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3663
|
+
(0, import_class_validator49.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3664
|
+
(0, import_class_validator49.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3632
3665
|
message: "Password must include letters, numbers and symbols."
|
|
3633
3666
|
})
|
|
3634
3667
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3635
3668
|
__decorateClass([
|
|
3636
|
-
(0,
|
|
3637
|
-
(0,
|
|
3669
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3670
|
+
(0, import_class_validator49.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3638
3671
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3639
3672
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3640
3673
|
__decorateClass([
|
|
3641
|
-
(0,
|
|
3642
|
-
(0,
|
|
3674
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3675
|
+
(0, import_class_validator49.IsEnum)(NatureOfWorkEnum2, {
|
|
3643
3676
|
message: `Nature of work must be one of: ${Object.values(
|
|
3644
3677
|
NatureOfWorkEnum2
|
|
3645
3678
|
).join(", ")}`
|
|
3646
3679
|
})
|
|
3647
3680
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3648
3681
|
__decorateClass([
|
|
3649
|
-
(0,
|
|
3650
|
-
(0,
|
|
3651
|
-
(0,
|
|
3682
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3683
|
+
(0, import_class_validator49.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3684
|
+
(0, import_class_validator49.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3652
3685
|
(0, import_class_transformer7.Type)(() => Number)
|
|
3653
3686
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3654
3687
|
__decorateClass([
|
|
3655
|
-
(0,
|
|
3656
|
-
(0,
|
|
3688
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3689
|
+
(0, import_class_validator49.IsEnum)(ModeOfWorkEnum2, {
|
|
3657
3690
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3658
3691
|
", "
|
|
3659
3692
|
)}`
|
|
3660
3693
|
})
|
|
3661
3694
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3662
3695
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3664
|
-
(0,
|
|
3696
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3697
|
+
(0, import_class_validator49.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3665
3698
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3666
3699
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3667
3700
|
__decorateClass([
|
|
3668
|
-
(0,
|
|
3669
|
-
(0,
|
|
3701
|
+
(0, import_class_validator49.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3702
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3670
3703
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3671
3704
|
__decorateClass([
|
|
3672
|
-
(0,
|
|
3673
|
-
(0,
|
|
3705
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3706
|
+
(0, import_class_validator49.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3674
3707
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3675
3708
|
__decorateClass([
|
|
3676
|
-
(0,
|
|
3677
|
-
(0,
|
|
3709
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3710
|
+
(0, import_class_validator49.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3678
3711
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3679
3712
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3681
|
-
(0,
|
|
3713
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3714
|
+
(0, import_class_validator49.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3682
3715
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3683
3716
|
__decorateClass([
|
|
3684
|
-
(0,
|
|
3685
|
-
(0,
|
|
3717
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3718
|
+
(0, import_class_validator49.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3686
3719
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3687
3720
|
__decorateClass([
|
|
3688
|
-
(0,
|
|
3689
|
-
(0,
|
|
3721
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3722
|
+
(0, import_class_validator49.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3690
3723
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3691
3724
|
|
|
3692
3725
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -3703,7 +3736,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3703
3736
|
};
|
|
3704
3737
|
|
|
3705
3738
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3706
|
-
var
|
|
3739
|
+
var import_class_validator50 = require("class-validator");
|
|
3707
3740
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3708
3741
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3709
3742
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3719,73 +3752,73 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3719
3752
|
var CreateClientDto = class {
|
|
3720
3753
|
};
|
|
3721
3754
|
__decorateClass([
|
|
3722
|
-
(0,
|
|
3723
|
-
(0,
|
|
3755
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3756
|
+
(0, import_class_validator50.IsString)()
|
|
3724
3757
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3725
3758
|
__decorateClass([
|
|
3726
|
-
(0,
|
|
3727
|
-
(0,
|
|
3759
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3760
|
+
(0, import_class_validator50.IsString)()
|
|
3728
3761
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3729
3762
|
__decorateClass([
|
|
3730
|
-
(0,
|
|
3731
|
-
(0,
|
|
3763
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter email." }),
|
|
3764
|
+
(0, import_class_validator50.IsEmail)()
|
|
3732
3765
|
], CreateClientDto.prototype, "email", 2);
|
|
3733
3766
|
__decorateClass([
|
|
3734
|
-
(0,
|
|
3735
|
-
(0,
|
|
3736
|
-
(0,
|
|
3737
|
-
(0,
|
|
3767
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter password." }),
|
|
3768
|
+
(0, import_class_validator50.MinLength)(6),
|
|
3769
|
+
(0, import_class_validator50.MaxLength)(32),
|
|
3770
|
+
(0, import_class_validator50.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3738
3771
|
message: "Password must include letters, numbers and symbols."
|
|
3739
3772
|
})
|
|
3740
3773
|
], CreateClientDto.prototype, "password", 2);
|
|
3741
3774
|
__decorateClass([
|
|
3742
|
-
(0,
|
|
3775
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3743
3776
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3744
3777
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3745
3778
|
__decorateClass([
|
|
3746
|
-
(0,
|
|
3747
|
-
(0,
|
|
3779
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3780
|
+
(0, import_class_validator50.IsString)()
|
|
3748
3781
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3749
3782
|
__decorateClass([
|
|
3750
|
-
(0,
|
|
3751
|
-
(0,
|
|
3783
|
+
(0, import_class_validator50.IsArray)({ message: "Skills should be an array." }),
|
|
3784
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter skills." })
|
|
3752
3785
|
], CreateClientDto.prototype, "skills", 2);
|
|
3753
3786
|
__decorateClass([
|
|
3754
|
-
(0,
|
|
3755
|
-
(0,
|
|
3787
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3788
|
+
(0, import_class_validator50.IsString)()
|
|
3756
3789
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3757
3790
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3759
|
-
(0,
|
|
3791
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3792
|
+
(0, import_class_validator50.IsEnum)(CreateClientHiringTypeEnum)
|
|
3760
3793
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3761
3794
|
__decorateClass([
|
|
3762
|
-
(0,
|
|
3763
|
-
(0,
|
|
3795
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3796
|
+
(0, import_class_validator50.IsEnum)(CreateClientHiringModeEnum)
|
|
3764
3797
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3765
3798
|
__decorateClass([
|
|
3766
|
-
(0,
|
|
3767
|
-
(0,
|
|
3799
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3800
|
+
(0, import_class_validator50.IsString)()
|
|
3768
3801
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3769
3802
|
__decorateClass([
|
|
3770
|
-
(0,
|
|
3771
|
-
(0,
|
|
3803
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3804
|
+
(0, import_class_validator50.IsString)()
|
|
3772
3805
|
], CreateClientDto.prototype, "OTHER", 2);
|
|
3773
3806
|
__decorateClass([
|
|
3774
|
-
(0,
|
|
3775
|
-
(0,
|
|
3807
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3808
|
+
(0, import_class_validator50.IsString)()
|
|
3776
3809
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3777
3810
|
|
|
3778
3811
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3779
|
-
var
|
|
3812
|
+
var import_class_validator51 = require("class-validator");
|
|
3780
3813
|
var UpdateClientAccountStatusDto = class {
|
|
3781
3814
|
};
|
|
3782
3815
|
__decorateClass([
|
|
3783
|
-
(0,
|
|
3784
|
-
(0,
|
|
3816
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3817
|
+
(0, import_class_validator51.IsString)()
|
|
3785
3818
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3786
3819
|
|
|
3787
3820
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3788
|
-
var
|
|
3821
|
+
var import_class_validator52 = require("class-validator");
|
|
3789
3822
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3790
3823
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3791
3824
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3801,56 +3834,56 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3801
3834
|
var UpdateClientDto = class {
|
|
3802
3835
|
};
|
|
3803
3836
|
__decorateClass([
|
|
3804
|
-
(0,
|
|
3805
|
-
(0,
|
|
3837
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3838
|
+
(0, import_class_validator52.IsString)()
|
|
3806
3839
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3807
3840
|
__decorateClass([
|
|
3808
|
-
(0,
|
|
3809
|
-
(0,
|
|
3841
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3842
|
+
(0, import_class_validator52.IsString)()
|
|
3810
3843
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3811
3844
|
__decorateClass([
|
|
3812
|
-
(0,
|
|
3813
|
-
(0,
|
|
3845
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter email." }),
|
|
3846
|
+
(0, import_class_validator52.IsEmail)()
|
|
3814
3847
|
], UpdateClientDto.prototype, "email", 2);
|
|
3815
3848
|
__decorateClass([
|
|
3816
|
-
(0,
|
|
3817
|
-
(0,
|
|
3818
|
-
(0,
|
|
3819
|
-
(0,
|
|
3849
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3850
|
+
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3851
|
+
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3852
|
+
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3820
3853
|
message: "Password must include letters, numbers and symbols."
|
|
3821
3854
|
})
|
|
3822
3855
|
], UpdateClientDto.prototype, "password", 2);
|
|
3823
3856
|
__decorateClass([
|
|
3824
|
-
(0,
|
|
3825
|
-
(0,
|
|
3857
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3858
|
+
(0, import_class_validator52.IsString)()
|
|
3826
3859
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
3827
3860
|
__decorateClass([
|
|
3828
|
-
(0,
|
|
3829
|
-
(0,
|
|
3861
|
+
(0, import_class_validator52.IsArray)({ message: "Skills should be an array." }),
|
|
3862
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter skills." })
|
|
3830
3863
|
], UpdateClientDto.prototype, "skills", 2);
|
|
3831
3864
|
__decorateClass([
|
|
3832
|
-
(0,
|
|
3833
|
-
(0,
|
|
3865
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3866
|
+
(0, import_class_validator52.IsString)()
|
|
3834
3867
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3835
3868
|
__decorateClass([
|
|
3836
|
-
(0,
|
|
3837
|
-
(0,
|
|
3869
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3870
|
+
(0, import_class_validator52.IsEnum)(UpdateClientHiringTypeEnum)
|
|
3838
3871
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3839
3872
|
__decorateClass([
|
|
3840
|
-
(0,
|
|
3841
|
-
(0,
|
|
3873
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3874
|
+
(0, import_class_validator52.IsEnum)(UpdateClientHiringModeEnum)
|
|
3842
3875
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3843
3876
|
__decorateClass([
|
|
3844
|
-
(0,
|
|
3845
|
-
(0,
|
|
3877
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3878
|
+
(0, import_class_validator52.IsString)()
|
|
3846
3879
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3847
3880
|
__decorateClass([
|
|
3848
|
-
(0,
|
|
3849
|
-
(0,
|
|
3881
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3882
|
+
(0, import_class_validator52.IsString)()
|
|
3850
3883
|
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3851
3884
|
__decorateClass([
|
|
3852
|
-
(0,
|
|
3853
|
-
(0,
|
|
3885
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3886
|
+
(0, import_class_validator52.IsString)()
|
|
3854
3887
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3855
3888
|
|
|
3856
3889
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -3860,7 +3893,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3860
3893
|
};
|
|
3861
3894
|
|
|
3862
3895
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3863
|
-
var
|
|
3896
|
+
var import_class_validator53 = require("class-validator");
|
|
3864
3897
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3865
3898
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3866
3899
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3871,16 +3904,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3871
3904
|
var FreelancerDeclarationDto = class {
|
|
3872
3905
|
};
|
|
3873
3906
|
__decorateClass([
|
|
3874
|
-
(0,
|
|
3875
|
-
(0,
|
|
3907
|
+
(0, import_class_validator53.IsOptional)(),
|
|
3908
|
+
(0, import_class_validator53.IsString)({ message: "UUID must be a string" })
|
|
3876
3909
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3877
3910
|
__decorateClass([
|
|
3878
|
-
(0,
|
|
3911
|
+
(0, import_class_validator53.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3879
3912
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3880
3913
|
__decorateClass([
|
|
3881
|
-
(0,
|
|
3882
|
-
(0,
|
|
3883
|
-
(0,
|
|
3914
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3915
|
+
(0, import_class_validator53.IsString)(),
|
|
3916
|
+
(0, import_class_validator53.IsIn)([
|
|
3884
3917
|
"true"
|
|
3885
3918
|
])
|
|
3886
3919
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3895,36 +3928,36 @@ var CMS_PATTERNS = {
|
|
|
3895
3928
|
};
|
|
3896
3929
|
|
|
3897
3930
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3898
|
-
var
|
|
3931
|
+
var import_class_validator54 = require("class-validator");
|
|
3899
3932
|
var CreateCmsDto = class {
|
|
3900
3933
|
};
|
|
3901
3934
|
__decorateClass([
|
|
3902
|
-
(0,
|
|
3935
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter name." })
|
|
3903
3936
|
], CreateCmsDto.prototype, "title", 2);
|
|
3904
3937
|
__decorateClass([
|
|
3905
|
-
(0,
|
|
3938
|
+
(0, import_class_validator54.IsOptional)()
|
|
3906
3939
|
], CreateCmsDto.prototype, "content", 2);
|
|
3907
3940
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
3909
|
-
(0,
|
|
3941
|
+
(0, import_class_validator54.IsOptional)(),
|
|
3942
|
+
(0, import_class_validator54.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3910
3943
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3911
3944
|
|
|
3912
3945
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3913
|
-
var
|
|
3946
|
+
var import_class_validator55 = require("class-validator");
|
|
3914
3947
|
var UpdateCmsDto = class {
|
|
3915
3948
|
};
|
|
3916
3949
|
__decorateClass([
|
|
3917
|
-
(0,
|
|
3950
|
+
(0, import_class_validator55.IsOptional)()
|
|
3918
3951
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3919
3952
|
__decorateClass([
|
|
3920
|
-
(0,
|
|
3953
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter name." })
|
|
3921
3954
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3922
3955
|
__decorateClass([
|
|
3923
|
-
(0,
|
|
3956
|
+
(0, import_class_validator55.IsOptional)()
|
|
3924
3957
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3925
3958
|
__decorateClass([
|
|
3926
|
-
(0,
|
|
3927
|
-
(0,
|
|
3959
|
+
(0, import_class_validator55.IsOptional)(),
|
|
3960
|
+
(0, import_class_validator55.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3928
3961
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3929
3962
|
|
|
3930
3963
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -3951,7 +3984,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
3951
3984
|
|
|
3952
3985
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
3953
3986
|
var import_class_transformer8 = require("class-transformer");
|
|
3954
|
-
var
|
|
3987
|
+
var import_class_validator56 = require("class-validator");
|
|
3955
3988
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
3956
3989
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
3957
3990
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -3967,79 +4000,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
3967
4000
|
var AdminCreateJobInformationDto = class {
|
|
3968
4001
|
};
|
|
3969
4002
|
__decorateClass([
|
|
3970
|
-
(0,
|
|
3971
|
-
(0,
|
|
4003
|
+
(0, import_class_validator56.IsString)({ message: "Job role must be a string." }),
|
|
4004
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Job role is required." })
|
|
3972
4005
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
3973
4006
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
3975
|
-
(0,
|
|
4007
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4008
|
+
(0, import_class_validator56.IsString)({ message: "Note must be a string." })
|
|
3976
4009
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
3977
4010
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
3979
|
-
(0,
|
|
4011
|
+
(0, import_class_validator56.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4012
|
+
(0, import_class_validator56.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
3980
4013
|
(0, import_class_transformer8.Type)(() => Number),
|
|
3981
|
-
(0,
|
|
4014
|
+
(0, import_class_validator56.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
3982
4015
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
3983
4016
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3985
|
-
(0,
|
|
4017
|
+
(0, import_class_validator56.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4018
|
+
(0, import_class_validator56.Min)(1, { message: "There must be at least one opening." })
|
|
3986
4019
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
3987
4020
|
__decorateClass([
|
|
3988
|
-
(0,
|
|
4021
|
+
(0, import_class_validator56.IsEnum)(JobLocationEnumDto, {
|
|
3989
4022
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
3990
4023
|
})
|
|
3991
4024
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
3992
4025
|
__decorateClass([
|
|
3993
|
-
(0,
|
|
4026
|
+
(0, import_class_validator56.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
3994
4027
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
3995
4028
|
})
|
|
3996
4029
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
3997
4030
|
__decorateClass([
|
|
3998
|
-
(0,
|
|
3999
|
-
(0,
|
|
4031
|
+
(0, import_class_validator56.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4032
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4000
4033
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4001
4034
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4003
|
-
(0,
|
|
4035
|
+
(0, import_class_validator56.IsString)({ message: "Communication skills must be a string." }),
|
|
4036
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4004
4037
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4005
4038
|
__decorateClass([
|
|
4006
|
-
(0,
|
|
4007
|
-
(0,
|
|
4039
|
+
(0, import_class_validator56.IsString)({ message: "Currency must be a string." }),
|
|
4040
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Currency is required." })
|
|
4008
4041
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4009
4042
|
__decorateClass([
|
|
4010
4043
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4011
|
-
(0,
|
|
4044
|
+
(0, import_class_validator56.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4012
4045
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4013
4046
|
__decorateClass([
|
|
4014
4047
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4015
|
-
(0,
|
|
4048
|
+
(0, import_class_validator56.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4016
4049
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4017
4050
|
__decorateClass([
|
|
4018
|
-
(0,
|
|
4051
|
+
(0, import_class_validator56.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4019
4052
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4020
4053
|
__decorateClass([
|
|
4021
|
-
(0,
|
|
4054
|
+
(0, import_class_validator56.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4022
4055
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4023
4056
|
__decorateClass([
|
|
4024
|
-
(0,
|
|
4025
|
-
(0,
|
|
4057
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4058
|
+
(0, import_class_validator56.IsString)({ message: "Additional comment must be a string." })
|
|
4026
4059
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4027
4060
|
__decorateClass([
|
|
4028
|
-
(0,
|
|
4061
|
+
(0, import_class_validator56.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4029
4062
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4030
4063
|
__decorateClass([
|
|
4031
|
-
(0,
|
|
4064
|
+
(0, import_class_validator56.IsInt)({ message: "State ID must be a valid integer." })
|
|
4032
4065
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4033
4066
|
__decorateClass([
|
|
4034
|
-
(0,
|
|
4067
|
+
(0, import_class_validator56.IsInt)({ message: "City ID must be a valid integer." })
|
|
4035
4068
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4036
4069
|
__decorateClass([
|
|
4037
|
-
(0,
|
|
4070
|
+
(0, import_class_validator56.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4038
4071
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4039
4072
|
|
|
4040
4073
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4041
4074
|
var import_class_transformer9 = require("class-transformer");
|
|
4042
|
-
var
|
|
4075
|
+
var import_class_validator57 = require("class-validator");
|
|
4043
4076
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4044
4077
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4045
4078
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4055,74 +4088,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4055
4088
|
var AdminUpdateJobInformationDto = class {
|
|
4056
4089
|
};
|
|
4057
4090
|
__decorateClass([
|
|
4058
|
-
(0,
|
|
4059
|
-
(0,
|
|
4091
|
+
(0, import_class_validator57.IsString)({ message: "Job role must be a string." }),
|
|
4092
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Job role is required." })
|
|
4060
4093
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4061
4094
|
__decorateClass([
|
|
4062
|
-
(0,
|
|
4063
|
-
(0,
|
|
4095
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4096
|
+
(0, import_class_validator57.IsString)({ message: "Note must be a string." })
|
|
4064
4097
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4065
4098
|
__decorateClass([
|
|
4066
|
-
(0,
|
|
4067
|
-
(0,
|
|
4099
|
+
(0, import_class_validator57.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4100
|
+
(0, import_class_validator57.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4068
4101
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4069
|
-
(0,
|
|
4102
|
+
(0, import_class_validator57.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4070
4103
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4071
4104
|
__decorateClass([
|
|
4072
|
-
(0,
|
|
4073
|
-
(0,
|
|
4105
|
+
(0, import_class_validator57.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4106
|
+
(0, import_class_validator57.Min)(1, { message: "There must be at least one opening." })
|
|
4074
4107
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4075
4108
|
__decorateClass([
|
|
4076
|
-
(0,
|
|
4109
|
+
(0, import_class_validator57.IsEnum)(JobLocationEnums, {
|
|
4077
4110
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4078
4111
|
})
|
|
4079
4112
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4080
4113
|
__decorateClass([
|
|
4081
|
-
(0,
|
|
4114
|
+
(0, import_class_validator57.IsEnum)(TypeOfEmploymentEnums, {
|
|
4082
4115
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4083
4116
|
})
|
|
4084
4117
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4085
4118
|
__decorateClass([
|
|
4086
|
-
(0,
|
|
4087
|
-
(0,
|
|
4119
|
+
(0, import_class_validator57.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4120
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4088
4121
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4089
4122
|
__decorateClass([
|
|
4090
|
-
(0,
|
|
4091
|
-
(0,
|
|
4123
|
+
(0, import_class_validator57.IsString)({ message: "Communication skills must be a string." }),
|
|
4124
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4092
4125
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4093
4126
|
__decorateClass([
|
|
4094
|
-
(0,
|
|
4095
|
-
(0,
|
|
4127
|
+
(0, import_class_validator57.IsString)({ message: "Currency must be a string." }),
|
|
4128
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Currency is required." })
|
|
4096
4129
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4097
4130
|
__decorateClass([
|
|
4098
4131
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4099
|
-
(0,
|
|
4132
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4100
4133
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4101
4134
|
__decorateClass([
|
|
4102
4135
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4103
|
-
(0,
|
|
4136
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4104
4137
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4105
4138
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4139
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4107
4140
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4108
4141
|
__decorateClass([
|
|
4109
|
-
(0,
|
|
4142
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4110
4143
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4111
4144
|
__decorateClass([
|
|
4112
|
-
(0,
|
|
4113
|
-
(0,
|
|
4145
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4146
|
+
(0, import_class_validator57.IsString)({ message: "Additional comment must be a string." })
|
|
4114
4147
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4115
4148
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4149
|
+
(0, import_class_validator57.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4117
4150
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4118
4151
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4152
|
+
(0, import_class_validator57.IsInt)({ message: "State ID must be a valid integer." })
|
|
4120
4153
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4121
4154
|
__decorateClass([
|
|
4122
|
-
(0,
|
|
4155
|
+
(0, import_class_validator57.IsInt)({ message: "City ID must be a valid integer." })
|
|
4123
4156
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4124
4157
|
__decorateClass([
|
|
4125
|
-
(0,
|
|
4158
|
+
(0, import_class_validator57.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4126
4159
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4127
4160
|
|
|
4128
4161
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4132,7 +4165,7 @@ var LEAD_PATTERN = {
|
|
|
4132
4165
|
};
|
|
4133
4166
|
|
|
4134
4167
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4135
|
-
var
|
|
4168
|
+
var import_class_validator58 = require("class-validator");
|
|
4136
4169
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4137
4170
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4138
4171
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4141,23 +4174,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4141
4174
|
var CreateLeadDto = class {
|
|
4142
4175
|
};
|
|
4143
4176
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4177
|
+
(0, import_class_validator58.IsString)({ message: "Name must be a string" })
|
|
4145
4178
|
], CreateLeadDto.prototype, "name", 2);
|
|
4146
4179
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4180
|
+
(0, import_class_validator58.IsEmail)({}, { message: "Invalid email address" })
|
|
4148
4181
|
], CreateLeadDto.prototype, "email", 2);
|
|
4149
4182
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4183
|
+
(0, import_class_validator58.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4151
4184
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4152
4185
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4186
|
+
(0, import_class_validator58.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4154
4187
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4155
4188
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4157
|
-
(0,
|
|
4189
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4190
|
+
(0, import_class_validator58.IsString)({ message: "Description must be a string" })
|
|
4158
4191
|
], CreateLeadDto.prototype, "description", 2);
|
|
4159
4192
|
__decorateClass([
|
|
4160
|
-
(0,
|
|
4193
|
+
(0, import_class_validator58.IsEnum)(CategoryEmumDto, {
|
|
4161
4194
|
message: `Type of category must be one of: ${Object.values(
|
|
4162
4195
|
CategoryEmumDto
|
|
4163
4196
|
).join(", ")}`
|
|
@@ -4618,6 +4651,7 @@ Lead = __decorateClass([
|
|
|
4618
4651
|
FreelancerExperienceDto,
|
|
4619
4652
|
FreelancerFramework,
|
|
4620
4653
|
FreelancerInitiateAiAssessmentDto,
|
|
4654
|
+
FreelancerInitiateMcqAssessmentDto,
|
|
4621
4655
|
FreelancerParseResumeDto,
|
|
4622
4656
|
FreelancerProfile,
|
|
4623
4657
|
FreelancerProfileQuestionDto,
|