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