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