@experts_hub/shared 1.0.283 → 1.0.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/decorators/index.d.ts +1 -0
- package/dist/decorators/is-business-email.decorator.d.ts +7 -0
- package/dist/index.js +621 -576
- package/dist/index.mjs +53 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -427,7 +427,7 @@ var ONBOARDING_PATTERN = {
|
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
430
|
-
var
|
|
430
|
+
var import_class_validator12 = require("class-validator");
|
|
431
431
|
|
|
432
432
|
// src/decorators/match.decorator.ts
|
|
433
433
|
var import_class_validator9 = require("class-validator");
|
|
@@ -506,128 +506,171 @@ function IsValidMobileNumber(validationOptions) {
|
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
+
// src/decorators/is-business-email.decorator.ts
|
|
510
|
+
var import_class_validator11 = require("class-validator");
|
|
511
|
+
var IsBusinessEmailConstraint = class {
|
|
512
|
+
constructor() {
|
|
513
|
+
this.blockedDomains = [
|
|
514
|
+
"gmail.com",
|
|
515
|
+
"yahoo.com",
|
|
516
|
+
"hotmail.com",
|
|
517
|
+
"yopmail.com",
|
|
518
|
+
"outlook.com",
|
|
519
|
+
"aol.com",
|
|
520
|
+
"mail.com",
|
|
521
|
+
"zoho.com",
|
|
522
|
+
"protonmail.com",
|
|
523
|
+
"icloud.com"
|
|
524
|
+
];
|
|
525
|
+
}
|
|
526
|
+
validate(value) {
|
|
527
|
+
if (typeof value !== "string") return false;
|
|
528
|
+
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
529
|
+
if (!emailRegex.test(value)) return false;
|
|
530
|
+
const domain = value.split("@")[1].toLowerCase();
|
|
531
|
+
return !this.blockedDomains.includes(domain);
|
|
532
|
+
}
|
|
533
|
+
defaultMessage(args) {
|
|
534
|
+
return "Please enter a valid business email address. Personal email domains are not allowed.";
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
IsBusinessEmailConstraint = __decorateClass([
|
|
538
|
+
(0, import_class_validator11.ValidatorConstraint)({ async: false })
|
|
539
|
+
], IsBusinessEmailConstraint);
|
|
540
|
+
function IsBusinessEmail(validationOptions) {
|
|
541
|
+
return function(object, propertyName) {
|
|
542
|
+
(0, import_class_validator11.registerDecorator)({
|
|
543
|
+
target: object.constructor,
|
|
544
|
+
propertyName,
|
|
545
|
+
options: validationOptions,
|
|
546
|
+
constraints: [],
|
|
547
|
+
validator: IsBusinessEmailConstraint
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
|
|
509
552
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
510
553
|
var FreelancerCreateAccountDto = class {
|
|
511
554
|
};
|
|
512
555
|
__decorateClass([
|
|
513
|
-
(0,
|
|
514
|
-
(0,
|
|
556
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter full name." }),
|
|
557
|
+
(0, import_class_validator12.IsString)({ message: "Please enter valid full name." })
|
|
515
558
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
516
559
|
__decorateClass([
|
|
517
|
-
(0,
|
|
518
|
-
(0,
|
|
560
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." }),
|
|
561
|
+
(0, import_class_validator12.IsEmail)()
|
|
519
562
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
520
563
|
__decorateClass([
|
|
521
|
-
(0,
|
|
522
|
-
(0,
|
|
564
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
565
|
+
(0, import_class_validator12.Matches)(/^\+\d{1,4}$/, {
|
|
523
566
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
524
567
|
})
|
|
525
568
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
526
569
|
__decorateClass([
|
|
527
|
-
(0,
|
|
570
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
528
571
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
529
572
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
530
573
|
__decorateClass([
|
|
531
|
-
(0,
|
|
532
|
-
(0,
|
|
533
|
-
(0,
|
|
534
|
-
(0,
|
|
574
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter password." }),
|
|
575
|
+
(0, import_class_validator12.MinLength)(6),
|
|
576
|
+
(0, import_class_validator12.MaxLength)(32),
|
|
577
|
+
(0, import_class_validator12.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
535
578
|
message: "Password must include letters, numbers and symbols."
|
|
536
579
|
})
|
|
537
580
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
538
581
|
__decorateClass([
|
|
539
|
-
(0,
|
|
582
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
540
583
|
Match("password", { message: "Passwords do not match" })
|
|
541
584
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
542
585
|
|
|
543
586
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
544
|
-
var
|
|
587
|
+
var import_class_validator13 = require("class-validator");
|
|
545
588
|
var FreelancerUploadResumeDto = class {
|
|
546
589
|
};
|
|
547
590
|
__decorateClass([
|
|
548
|
-
(0,
|
|
549
|
-
(0,
|
|
591
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
592
|
+
(0, import_class_validator13.IsUUID)()
|
|
550
593
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
551
594
|
|
|
552
595
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
553
|
-
var
|
|
596
|
+
var import_class_validator14 = require("class-validator");
|
|
554
597
|
var FreelancerParseResumeDto = class {
|
|
555
598
|
};
|
|
556
599
|
__decorateClass([
|
|
557
|
-
(0,
|
|
558
|
-
(0,
|
|
600
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
601
|
+
(0, import_class_validator14.IsUUID)()
|
|
559
602
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
560
603
|
|
|
561
604
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
562
|
-
var
|
|
605
|
+
var import_class_validator15 = require("class-validator");
|
|
563
606
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
564
607
|
};
|
|
565
608
|
__decorateClass([
|
|
566
|
-
(0,
|
|
567
|
-
(0,
|
|
609
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
610
|
+
(0, import_class_validator15.IsUUID)()
|
|
568
611
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
569
612
|
|
|
570
613
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
571
|
-
var
|
|
614
|
+
var import_class_validator16 = require("class-validator");
|
|
572
615
|
var FreelancerSkipAiAssessmentDto = class {
|
|
573
616
|
};
|
|
574
617
|
__decorateClass([
|
|
575
|
-
(0,
|
|
576
|
-
(0,
|
|
618
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
619
|
+
(0, import_class_validator16.IsUUID)()
|
|
577
620
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
578
621
|
|
|
579
622
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
580
|
-
var
|
|
623
|
+
var import_class_validator17 = require("class-validator");
|
|
581
624
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
582
625
|
};
|
|
583
626
|
__decorateClass([
|
|
584
|
-
(0,
|
|
585
|
-
(0,
|
|
627
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
628
|
+
(0, import_class_validator17.IsUUID)()
|
|
586
629
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
587
630
|
|
|
588
631
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
589
|
-
var
|
|
632
|
+
var import_class_validator18 = require("class-validator");
|
|
590
633
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
591
634
|
};
|
|
592
635
|
__decorateClass([
|
|
593
|
-
(0,
|
|
594
|
-
(0,
|
|
636
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
637
|
+
(0, import_class_validator18.IsUUID)()
|
|
595
638
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
596
639
|
__decorateClass([
|
|
597
|
-
(0,
|
|
640
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
598
641
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
599
642
|
__decorateClass([
|
|
600
|
-
(0,
|
|
643
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
601
644
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
602
645
|
__decorateClass([
|
|
603
|
-
(0,
|
|
646
|
+
(0, import_class_validator18.IsOptional)()
|
|
604
647
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
605
648
|
|
|
606
649
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
607
|
-
var
|
|
650
|
+
var import_class_validator19 = require("class-validator");
|
|
608
651
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
609
652
|
};
|
|
610
653
|
__decorateClass([
|
|
611
|
-
(0,
|
|
612
|
-
(0,
|
|
654
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
655
|
+
(0, import_class_validator19.IsUUID)()
|
|
613
656
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
614
657
|
__decorateClass([
|
|
615
|
-
(0,
|
|
616
|
-
(0,
|
|
658
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please select development flag." }),
|
|
659
|
+
(0, import_class_validator19.IsBoolean)()
|
|
617
660
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
618
661
|
|
|
619
662
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
620
|
-
var
|
|
663
|
+
var import_class_validator20 = require("class-validator");
|
|
621
664
|
var FreelancerProfileQuestionDto = class {
|
|
622
665
|
};
|
|
623
666
|
__decorateClass([
|
|
624
|
-
(0,
|
|
625
|
-
(0,
|
|
667
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
668
|
+
(0, import_class_validator20.IsUUID)()
|
|
626
669
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
627
670
|
__decorateClass([
|
|
628
|
-
(0,
|
|
629
|
-
(0,
|
|
630
|
-
(0,
|
|
671
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
672
|
+
(0, import_class_validator20.IsString)(),
|
|
673
|
+
(0, import_class_validator20.IsIn)([
|
|
631
674
|
"natureOfWork",
|
|
632
675
|
"expectedHourlyCompensation",
|
|
633
676
|
"modeOfWork",
|
|
@@ -636,51 +679,51 @@ __decorateClass([
|
|
|
636
679
|
])
|
|
637
680
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
638
681
|
__decorateClass([
|
|
639
|
-
(0,
|
|
682
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter answer." })
|
|
640
683
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
641
684
|
|
|
642
685
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
643
|
-
var
|
|
686
|
+
var import_class_validator21 = require("class-validator");
|
|
644
687
|
var FreelancerWorkShowcaseDto = class {
|
|
645
688
|
};
|
|
646
689
|
__decorateClass([
|
|
647
|
-
(0,
|
|
648
|
-
(0,
|
|
690
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
691
|
+
(0, import_class_validator21.IsUUID)()
|
|
649
692
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
650
693
|
__decorateClass([
|
|
651
|
-
(0,
|
|
652
|
-
(0,
|
|
653
|
-
(0,
|
|
694
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
695
|
+
(0, import_class_validator21.IsString)(),
|
|
696
|
+
(0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
654
697
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
655
698
|
__decorateClass([
|
|
656
|
-
(0,
|
|
657
|
-
(0,
|
|
699
|
+
(0, import_class_validator21.IsOptional)(),
|
|
700
|
+
(0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
658
701
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
659
702
|
__decorateClass([
|
|
660
|
-
(0,
|
|
661
|
-
(0,
|
|
703
|
+
(0, import_class_validator21.IsOptional)(),
|
|
704
|
+
(0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
662
705
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
663
706
|
__decorateClass([
|
|
664
|
-
(0,
|
|
665
|
-
(0,
|
|
707
|
+
(0, import_class_validator21.IsOptional)(),
|
|
708
|
+
(0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
666
709
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
667
710
|
__decorateClass([
|
|
668
|
-
(0,
|
|
669
|
-
(0,
|
|
711
|
+
(0, import_class_validator21.IsOptional)(),
|
|
712
|
+
(0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
670
713
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
671
714
|
|
|
672
715
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
673
|
-
var
|
|
716
|
+
var import_class_validator22 = require("class-validator");
|
|
674
717
|
var ClientProfileQuestionDto = class {
|
|
675
718
|
};
|
|
676
719
|
__decorateClass([
|
|
677
|
-
(0,
|
|
678
|
-
(0,
|
|
720
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
721
|
+
(0, import_class_validator22.IsUUID)()
|
|
679
722
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
680
723
|
__decorateClass([
|
|
681
|
-
(0,
|
|
682
|
-
(0,
|
|
683
|
-
(0,
|
|
724
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
725
|
+
(0, import_class_validator22.IsString)(),
|
|
726
|
+
(0, import_class_validator22.IsIn)([
|
|
684
727
|
"skills",
|
|
685
728
|
"requiredFreelancer",
|
|
686
729
|
"kindOfHiring",
|
|
@@ -689,44 +732,45 @@ __decorateClass([
|
|
|
689
732
|
])
|
|
690
733
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
691
734
|
__decorateClass([
|
|
692
|
-
(0,
|
|
735
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter answer." })
|
|
693
736
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
694
737
|
__decorateClass([
|
|
695
|
-
(0,
|
|
696
|
-
(0,
|
|
697
|
-
(0,
|
|
738
|
+
(0, import_class_validator22.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
739
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
740
|
+
(0, import_class_validator22.IsString)()
|
|
698
741
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
699
742
|
|
|
700
743
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
701
|
-
var
|
|
744
|
+
var import_class_validator23 = require("class-validator");
|
|
702
745
|
var ClientCreateAccountDto = class {
|
|
703
746
|
};
|
|
704
747
|
__decorateClass([
|
|
705
|
-
(0,
|
|
706
|
-
(0,
|
|
748
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter first name." }),
|
|
749
|
+
(0, import_class_validator23.IsString)({ message: "Please enter valid first name." })
|
|
707
750
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
708
751
|
__decorateClass([
|
|
709
|
-
(0,
|
|
710
|
-
(0,
|
|
752
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter last name." }),
|
|
753
|
+
(0, import_class_validator23.IsString)({ message: "Please enter valid last name." })
|
|
711
754
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
712
755
|
__decorateClass([
|
|
713
|
-
(0,
|
|
714
|
-
(0,
|
|
756
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter email." }),
|
|
757
|
+
(0, import_class_validator23.IsEmail)(),
|
|
758
|
+
IsBusinessEmail()
|
|
715
759
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
716
760
|
__decorateClass([
|
|
717
|
-
(0,
|
|
718
|
-
(0,
|
|
761
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company name." }),
|
|
762
|
+
(0, import_class_validator23.IsString)({ message: "Please enter valid company name." })
|
|
719
763
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
720
764
|
__decorateClass([
|
|
721
|
-
(0,
|
|
722
|
-
(0,
|
|
723
|
-
(0,
|
|
724
|
-
(0,
|
|
765
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter password." }),
|
|
766
|
+
(0, import_class_validator23.MinLength)(6),
|
|
767
|
+
(0, import_class_validator23.MaxLength)(32),
|
|
768
|
+
(0, import_class_validator23.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
725
769
|
message: "Password must include letters, numbers and symbols."
|
|
726
770
|
})
|
|
727
771
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
728
772
|
__decorateClass([
|
|
729
|
-
(0,
|
|
773
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
730
774
|
Match("password", { message: "Passwords do not match" })
|
|
731
775
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
732
776
|
|
|
@@ -748,69 +792,69 @@ var SUBADMIN_PATTERN = {
|
|
|
748
792
|
};
|
|
749
793
|
|
|
750
794
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
751
|
-
var
|
|
795
|
+
var import_class_validator24 = require("class-validator");
|
|
752
796
|
var CreateSubAdminDto = class {
|
|
753
797
|
};
|
|
754
798
|
__decorateClass([
|
|
755
|
-
(0,
|
|
799
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter username." })
|
|
756
800
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
757
801
|
__decorateClass([
|
|
758
|
-
(0,
|
|
802
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter first name." })
|
|
759
803
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
760
804
|
__decorateClass([
|
|
761
|
-
(0,
|
|
805
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter last name." })
|
|
762
806
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
763
807
|
__decorateClass([
|
|
764
|
-
(0,
|
|
808
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter email." })
|
|
765
809
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
766
810
|
__decorateClass([
|
|
767
|
-
(0,
|
|
811
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
768
812
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
769
813
|
__decorateClass([
|
|
770
|
-
(0,
|
|
814
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
771
815
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
772
816
|
__decorateClass([
|
|
773
|
-
(0,
|
|
817
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter the password." })
|
|
774
818
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
775
819
|
__decorateClass([
|
|
776
|
-
(0,
|
|
820
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please Select Roles." })
|
|
777
821
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
778
822
|
|
|
779
823
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
780
|
-
var
|
|
824
|
+
var import_class_validator25 = require("class-validator");
|
|
781
825
|
var UpdateSubAdminAccountStatusDto = class {
|
|
782
826
|
};
|
|
783
827
|
__decorateClass([
|
|
784
|
-
(0,
|
|
828
|
+
(0, import_class_validator25.IsString)()
|
|
785
829
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
786
830
|
|
|
787
831
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
788
|
-
var
|
|
832
|
+
var import_class_validator26 = require("class-validator");
|
|
789
833
|
var UpdateSubAdminDto = class {
|
|
790
834
|
};
|
|
791
835
|
__decorateClass([
|
|
792
|
-
(0,
|
|
836
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter username." })
|
|
793
837
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
794
838
|
__decorateClass([
|
|
795
|
-
(0,
|
|
839
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter first name." })
|
|
796
840
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
797
841
|
__decorateClass([
|
|
798
|
-
(0,
|
|
842
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter last name." })
|
|
799
843
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
800
844
|
__decorateClass([
|
|
801
|
-
(0,
|
|
845
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter email." })
|
|
802
846
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
803
847
|
__decorateClass([
|
|
804
|
-
(0,
|
|
848
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
805
849
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
806
850
|
__decorateClass([
|
|
807
|
-
(0,
|
|
851
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
808
852
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
809
853
|
__decorateClass([
|
|
810
|
-
(0,
|
|
854
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter the password." })
|
|
811
855
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
812
856
|
__decorateClass([
|
|
813
|
-
(0,
|
|
857
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please Select Roles." })
|
|
814
858
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
815
859
|
|
|
816
860
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -824,57 +868,58 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
824
868
|
};
|
|
825
869
|
|
|
826
870
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
827
|
-
var
|
|
871
|
+
var import_class_validator27 = require("class-validator");
|
|
828
872
|
var UpdateCompanyProfileDto = class {
|
|
829
873
|
};
|
|
830
874
|
__decorateClass([
|
|
831
|
-
(0,
|
|
832
|
-
(0,
|
|
833
|
-
(0,
|
|
875
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter company name." }),
|
|
876
|
+
(0, import_class_validator27.IsString)({ message: "Company name must be a string." }),
|
|
877
|
+
(0, import_class_validator27.Length)(2, 255, {
|
|
834
878
|
message: "Company name must be between 2 and 255 characters"
|
|
835
879
|
})
|
|
836
880
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
837
881
|
__decorateClass([
|
|
838
|
-
(0,
|
|
839
|
-
(0,
|
|
882
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
883
|
+
(0, import_class_validator27.IsUrl)({}, { message: "Invalid website URL format" })
|
|
840
884
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
841
885
|
__decorateClass([
|
|
842
|
-
(0,
|
|
843
|
-
(0,
|
|
844
|
-
(0,
|
|
886
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter company address." }),
|
|
887
|
+
(0, import_class_validator27.IsString)({ message: "Company address must be a string" }),
|
|
888
|
+
(0, import_class_validator27.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
845
889
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
846
890
|
__decorateClass([
|
|
847
|
-
(0,
|
|
848
|
-
(0,
|
|
891
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
892
|
+
(0, import_class_validator27.IsString)({ message: "Mobile Code must be a string" })
|
|
849
893
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
894
|
+
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
895
|
+
// message: "Please enter a valid US phone number",
|
|
896
|
+
// })
|
|
850
897
|
__decorateClass([
|
|
851
|
-
(0,
|
|
852
|
-
(0,
|
|
853
|
-
message: "Please enter a valid US phone number"
|
|
854
|
-
})
|
|
898
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
899
|
+
(0, import_class_validator27.IsString)({ message: "Please enter valid phone number." })
|
|
855
900
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
856
901
|
__decorateClass([
|
|
857
|
-
(0,
|
|
858
|
-
(0,
|
|
902
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter email." }),
|
|
903
|
+
(0, import_class_validator27.IsEmail)()
|
|
859
904
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
860
905
|
__decorateClass([
|
|
861
|
-
(0,
|
|
862
|
-
(0,
|
|
906
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
907
|
+
(0, import_class_validator27.IsString)({ message: "About company must be a string." })
|
|
863
908
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
864
909
|
|
|
865
910
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
866
|
-
var
|
|
911
|
+
var import_class_validator28 = require("class-validator");
|
|
867
912
|
var ClientChangePasswordDto = class {
|
|
868
913
|
};
|
|
869
914
|
__decorateClass([
|
|
870
|
-
(0,
|
|
871
|
-
(0,
|
|
872
|
-
(0,
|
|
915
|
+
(0, import_class_validator28.IsString)(),
|
|
916
|
+
(0, import_class_validator28.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
917
|
+
(0, import_class_validator28.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
873
918
|
message: "Password must contain at least one uppercase letter and one number."
|
|
874
919
|
})
|
|
875
920
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
876
921
|
__decorateClass([
|
|
877
|
-
(0,
|
|
922
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
878
923
|
Match("newPassword", { message: "Passwords do not match" })
|
|
879
924
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
880
925
|
|
|
@@ -887,24 +932,24 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
887
932
|
};
|
|
888
933
|
|
|
889
934
|
// src/modules/question/dto/create-question.dto.ts
|
|
890
|
-
var
|
|
935
|
+
var import_class_validator29 = require("class-validator");
|
|
891
936
|
var CreateQuestionDto = class {
|
|
892
937
|
};
|
|
893
938
|
__decorateClass([
|
|
894
|
-
(0,
|
|
939
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter unique id." })
|
|
895
940
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
896
941
|
__decorateClass([
|
|
897
|
-
(0,
|
|
942
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter question." })
|
|
898
943
|
], CreateQuestionDto.prototype, "question", 2);
|
|
899
944
|
__decorateClass([
|
|
900
|
-
(0,
|
|
945
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
901
946
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
902
947
|
__decorateClass([
|
|
903
|
-
(0,
|
|
948
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter options." })
|
|
904
949
|
], CreateQuestionDto.prototype, "options", 2);
|
|
905
950
|
__decorateClass([
|
|
906
|
-
(0,
|
|
907
|
-
(0,
|
|
951
|
+
(0, import_class_validator29.IsOptional)(),
|
|
952
|
+
(0, import_class_validator29.IsBoolean)({ message: "Whether the question status active" })
|
|
908
953
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
909
954
|
|
|
910
955
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -933,7 +978,7 @@ var JOB_PATTERN = {
|
|
|
933
978
|
};
|
|
934
979
|
|
|
935
980
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
936
|
-
var
|
|
981
|
+
var import_class_validator30 = require("class-validator");
|
|
937
982
|
var import_class_transformer = require("class-transformer");
|
|
938
983
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
939
984
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -950,114 +995,114 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
950
995
|
var JobBasicInformationDto = class {
|
|
951
996
|
};
|
|
952
997
|
__decorateClass([
|
|
953
|
-
(0,
|
|
954
|
-
(0,
|
|
998
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter job role" }),
|
|
999
|
+
(0, import_class_validator30.IsString)({ message: "Job role must be a string" })
|
|
955
1000
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
956
1001
|
__decorateClass([
|
|
957
|
-
(0,
|
|
958
|
-
(0,
|
|
1002
|
+
(0, import_class_validator30.IsOptional)(),
|
|
1003
|
+
(0, import_class_validator30.IsString)({ message: "Note must be a string" })
|
|
959
1004
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
960
1005
|
__decorateClass([
|
|
961
|
-
(0,
|
|
962
|
-
(0,
|
|
963
|
-
(0,
|
|
1006
|
+
(0, import_class_validator30.IsArray)({ message: "Skills must be an array" }),
|
|
1007
|
+
(0, import_class_validator30.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1008
|
+
(0, import_class_validator30.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
964
1009
|
(0, import_class_transformer.Type)(() => Number)
|
|
965
1010
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
966
1011
|
__decorateClass([
|
|
967
|
-
(0,
|
|
968
|
-
(0,
|
|
1012
|
+
(0, import_class_validator30.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1013
|
+
(0, import_class_validator30.Min)(1, { message: "There must be at least 1 opening" }),
|
|
969
1014
|
(0, import_class_transformer.Type)(() => Number)
|
|
970
1015
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
971
1016
|
__decorateClass([
|
|
972
|
-
(0,
|
|
1017
|
+
(0, import_class_validator30.IsEnum)(JobLocation, {
|
|
973
1018
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
974
1019
|
", "
|
|
975
1020
|
)}`
|
|
976
1021
|
})
|
|
977
1022
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
978
1023
|
__decorateClass([
|
|
979
|
-
(0,
|
|
1024
|
+
(0, import_class_validator30.IsNumber)({}, { message: "Country id must be a number" }),
|
|
980
1025
|
(0, import_class_transformer.Type)(() => Number)
|
|
981
1026
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
982
1027
|
__decorateClass([
|
|
983
|
-
(0,
|
|
1028
|
+
(0, import_class_validator30.IsNumber)({}, { message: "State id must be a number" }),
|
|
984
1029
|
(0, import_class_transformer.Type)(() => Number)
|
|
985
1030
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
986
1031
|
__decorateClass([
|
|
987
|
-
(0,
|
|
1032
|
+
(0, import_class_validator30.IsNumber)({}, { message: "City id must be a number" }),
|
|
988
1033
|
(0, import_class_transformer.Type)(() => Number)
|
|
989
1034
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
990
1035
|
__decorateClass([
|
|
991
|
-
(0,
|
|
1036
|
+
(0, import_class_validator30.IsEnum)(EmploymentType, {
|
|
992
1037
|
message: `Type of employment must be one of: ${Object.values(
|
|
993
1038
|
EmploymentType
|
|
994
1039
|
).join(", ")}`
|
|
995
1040
|
})
|
|
996
1041
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
997
1042
|
__decorateClass([
|
|
998
|
-
(0,
|
|
1043
|
+
(0, import_class_validator30.IsString)({ message: "Currency must be a string" })
|
|
999
1044
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1000
1045
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1002
|
-
(0,
|
|
1046
|
+
(0, import_class_validator30.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1047
|
+
(0, import_class_validator30.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1003
1048
|
(0, import_class_transformer.Type)(() => Number)
|
|
1004
1049
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1005
1050
|
__decorateClass([
|
|
1006
|
-
(0,
|
|
1007
|
-
(0,
|
|
1051
|
+
(0, import_class_validator30.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1052
|
+
(0, import_class_validator30.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1008
1053
|
(0, import_class_transformer.Type)(() => Number)
|
|
1009
1054
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1010
1055
|
__decorateClass([
|
|
1011
|
-
(0,
|
|
1012
|
-
(0,
|
|
1056
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter start date" }),
|
|
1057
|
+
(0, import_class_validator30.IsString)({ message: "Start date must be valid" })
|
|
1013
1058
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1014
1059
|
__decorateClass([
|
|
1015
|
-
(0,
|
|
1016
|
-
(0,
|
|
1060
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter end date" }),
|
|
1061
|
+
(0, import_class_validator30.IsString)({ message: "End date must be valid" })
|
|
1017
1062
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1018
1063
|
__decorateClass([
|
|
1019
|
-
(0,
|
|
1020
|
-
(0,
|
|
1064
|
+
(0, import_class_validator30.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1065
|
+
(0, import_class_validator30.IsOptional)()
|
|
1021
1066
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1022
1067
|
__decorateClass([
|
|
1023
|
-
(0,
|
|
1024
|
-
(0,
|
|
1068
|
+
(0, import_class_validator30.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1069
|
+
(0, import_class_validator30.IsOptional)()
|
|
1025
1070
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1026
1071
|
__decorateClass([
|
|
1027
|
-
(0,
|
|
1028
|
-
(0,
|
|
1072
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
1073
|
+
(0, import_class_validator30.IsString)({ message: "Academic qualification must be a string" })
|
|
1029
1074
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1030
1075
|
__decorateClass([
|
|
1031
|
-
(0,
|
|
1032
|
-
(0,
|
|
1076
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
1077
|
+
(0, import_class_validator30.IsString)({ message: "Years of experience must be a string" })
|
|
1033
1078
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1034
1079
|
__decorateClass([
|
|
1035
|
-
(0,
|
|
1036
|
-
(0,
|
|
1080
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter the business industry" }),
|
|
1081
|
+
(0, import_class_validator30.IsString)({ message: "Business industry must be a string" })
|
|
1037
1082
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1038
1083
|
|
|
1039
1084
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1040
|
-
var
|
|
1085
|
+
var import_class_validator31 = require("class-validator");
|
|
1041
1086
|
var JobAdditionalCommentDto = class {
|
|
1042
1087
|
};
|
|
1043
1088
|
__decorateClass([
|
|
1044
|
-
(0,
|
|
1045
|
-
(0,
|
|
1046
|
-
(0,
|
|
1089
|
+
(0, import_class_validator31.IsOptional)(),
|
|
1090
|
+
(0, import_class_validator31.IsString)({ message: "Additional comment must be a string" }),
|
|
1091
|
+
(0, import_class_validator31.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1047
1092
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1048
1093
|
|
|
1049
1094
|
// src/modules/job/dto/job-description.dto.ts
|
|
1050
|
-
var
|
|
1095
|
+
var import_class_validator32 = require("class-validator");
|
|
1051
1096
|
var JobDescriptionDto = class {
|
|
1052
1097
|
};
|
|
1053
1098
|
__decorateClass([
|
|
1054
|
-
(0,
|
|
1055
|
-
(0,
|
|
1056
|
-
(0,
|
|
1099
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1100
|
+
(0, import_class_validator32.IsString)({ message: "Description must be a string" }),
|
|
1101
|
+
(0, import_class_validator32.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1057
1102
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1058
1103
|
|
|
1059
1104
|
// src/modules/job/dto/job-status.dto.ts
|
|
1060
|
-
var
|
|
1105
|
+
var import_class_validator33 = require("class-validator");
|
|
1061
1106
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1062
1107
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1063
1108
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1069,18 +1114,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1069
1114
|
var JobStatusDto = class {
|
|
1070
1115
|
};
|
|
1071
1116
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1073
|
-
(0,
|
|
1117
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1118
|
+
(0, import_class_validator33.IsEnum)(JobStatus, {
|
|
1074
1119
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1075
1120
|
})
|
|
1076
1121
|
], JobStatusDto.prototype, "status", 2);
|
|
1077
1122
|
|
|
1078
1123
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
1079
|
-
var
|
|
1124
|
+
var import_class_validator34 = require("class-validator");
|
|
1080
1125
|
var JobIdParamDto = class {
|
|
1081
1126
|
};
|
|
1082
1127
|
__decorateClass([
|
|
1083
|
-
(0,
|
|
1128
|
+
(0, import_class_validator34.IsUUID)("4", {
|
|
1084
1129
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1085
1130
|
})
|
|
1086
1131
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -1098,25 +1143,25 @@ var PROFILE_PATTERN = {
|
|
|
1098
1143
|
};
|
|
1099
1144
|
|
|
1100
1145
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1101
|
-
var
|
|
1146
|
+
var import_class_validator35 = require("class-validator");
|
|
1102
1147
|
var FreelancerChangePasswordDto = class {
|
|
1103
1148
|
};
|
|
1104
1149
|
__decorateClass([
|
|
1105
|
-
(0,
|
|
1106
|
-
(0,
|
|
1150
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1151
|
+
(0, import_class_validator35.IsString)()
|
|
1107
1152
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1108
1153
|
__decorateClass([
|
|
1109
|
-
(0,
|
|
1110
|
-
(0,
|
|
1111
|
-
(0,
|
|
1112
|
-
(0,
|
|
1113
|
-
(0,
|
|
1154
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1155
|
+
(0, import_class_validator35.IsString)(),
|
|
1156
|
+
(0, import_class_validator35.MinLength)(6),
|
|
1157
|
+
(0, import_class_validator35.MaxLength)(32),
|
|
1158
|
+
(0, import_class_validator35.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1114
1159
|
message: "New Password must include letters, numbers and symbols."
|
|
1115
1160
|
})
|
|
1116
1161
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1117
1162
|
|
|
1118
1163
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1119
|
-
var
|
|
1164
|
+
var import_class_validator36 = require("class-validator");
|
|
1120
1165
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1121
1166
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1122
1167
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1132,92 +1177,92 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1132
1177
|
var UpdateFreelancerProfileDto = class {
|
|
1133
1178
|
};
|
|
1134
1179
|
__decorateClass([
|
|
1135
|
-
(0,
|
|
1136
|
-
(0,
|
|
1180
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1181
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid first name." })
|
|
1137
1182
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1138
1183
|
__decorateClass([
|
|
1139
|
-
(0,
|
|
1140
|
-
(0,
|
|
1184
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1185
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid last name." })
|
|
1141
1186
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1142
1187
|
__decorateClass([
|
|
1143
|
-
(0,
|
|
1144
|
-
(0,
|
|
1188
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1189
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid designation." })
|
|
1145
1190
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1146
1191
|
__decorateClass([
|
|
1147
|
-
(0,
|
|
1148
|
-
(0,
|
|
1192
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1193
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid experience." })
|
|
1149
1194
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1150
1195
|
__decorateClass([
|
|
1151
|
-
(0,
|
|
1152
|
-
(0,
|
|
1196
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1197
|
+
(0, import_class_validator36.IsEmail)()
|
|
1153
1198
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1154
1199
|
__decorateClass([
|
|
1155
|
-
(0,
|
|
1156
|
-
(0,
|
|
1200
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1201
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid mobile code." })
|
|
1157
1202
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1158
1203
|
__decorateClass([
|
|
1159
|
-
(0,
|
|
1160
|
-
(0,
|
|
1204
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1205
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid mobile number." })
|
|
1161
1206
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1162
1207
|
__decorateClass([
|
|
1163
|
-
(0,
|
|
1164
|
-
(0,
|
|
1208
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please select country." }),
|
|
1209
|
+
(0, import_class_validator36.IsNumber)()
|
|
1165
1210
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1166
1211
|
__decorateClass([
|
|
1167
|
-
(0,
|
|
1168
|
-
(0,
|
|
1212
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please select currency." }),
|
|
1213
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid currency." })
|
|
1169
1214
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1170
1215
|
__decorateClass([
|
|
1171
|
-
(0,
|
|
1172
|
-
(0,
|
|
1216
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter expected hourly compensation." }),
|
|
1217
|
+
(0, import_class_validator36.IsString)({ message: "Please enter valid expected hourly compensation." })
|
|
1173
1218
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1174
1219
|
__decorateClass([
|
|
1175
|
-
(0,
|
|
1176
|
-
(0,
|
|
1220
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1221
|
+
(0, import_class_validator36.IsEnum)(NatureOfWorkDto, {
|
|
1177
1222
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1178
1223
|
NatureOfWorkDto
|
|
1179
1224
|
).join(", ")}`
|
|
1180
1225
|
})
|
|
1181
1226
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1182
1227
|
__decorateClass([
|
|
1183
|
-
(0,
|
|
1184
|
-
(0,
|
|
1228
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1229
|
+
(0, import_class_validator36.IsEnum)(ModeOfWorkDto, {
|
|
1185
1230
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1186
1231
|
", "
|
|
1187
1232
|
)}`
|
|
1188
1233
|
})
|
|
1189
1234
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1190
1235
|
__decorateClass([
|
|
1191
|
-
(0,
|
|
1192
|
-
(0,
|
|
1236
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1237
|
+
(0, import_class_validator36.IsString)()
|
|
1193
1238
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1194
1239
|
__decorateClass([
|
|
1195
|
-
(0,
|
|
1196
|
-
(0,
|
|
1240
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1241
|
+
(0, import_class_validator36.IsString)()
|
|
1197
1242
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1198
1243
|
__decorateClass([
|
|
1199
|
-
(0,
|
|
1200
|
-
(0,
|
|
1244
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1245
|
+
(0, import_class_validator36.IsString)()
|
|
1201
1246
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1202
1247
|
__decorateClass([
|
|
1203
|
-
(0,
|
|
1204
|
-
(0,
|
|
1248
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1249
|
+
(0, import_class_validator36.IsString)()
|
|
1205
1250
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1206
1251
|
__decorateClass([
|
|
1207
|
-
(0,
|
|
1208
|
-
(0,
|
|
1252
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1253
|
+
(0, import_class_validator36.IsString)()
|
|
1209
1254
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1210
1255
|
__decorateClass([
|
|
1211
|
-
(0,
|
|
1212
|
-
(0,
|
|
1256
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1257
|
+
(0, import_class_validator36.IsString)()
|
|
1213
1258
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1214
1259
|
__decorateClass([
|
|
1215
|
-
(0,
|
|
1216
|
-
(0,
|
|
1260
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1261
|
+
(0, import_class_validator36.IsString)()
|
|
1217
1262
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1218
1263
|
__decorateClass([
|
|
1219
|
-
(0,
|
|
1220
|
-
(0,
|
|
1264
|
+
(0, import_class_validator36.IsOptional)(),
|
|
1265
|
+
(0, import_class_validator36.IsString)()
|
|
1221
1266
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1222
1267
|
|
|
1223
1268
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1228,7 +1273,7 @@ var BANK_PATTERN = {
|
|
|
1228
1273
|
};
|
|
1229
1274
|
|
|
1230
1275
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1231
|
-
var
|
|
1276
|
+
var import_class_validator37 = require("class-validator");
|
|
1232
1277
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1233
1278
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1234
1279
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1237,47 +1282,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1237
1282
|
var FreelancerBankDetailsDto = class {
|
|
1238
1283
|
};
|
|
1239
1284
|
__decorateClass([
|
|
1240
|
-
(0,
|
|
1285
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1241
1286
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1242
1287
|
__decorateClass([
|
|
1243
|
-
(0,
|
|
1288
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1244
1289
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1245
1290
|
__decorateClass([
|
|
1246
|
-
(0,
|
|
1291
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Email." })
|
|
1247
1292
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1248
1293
|
__decorateClass([
|
|
1249
|
-
(0,
|
|
1294
|
+
(0, import_class_validator37.IsOptional)()
|
|
1250
1295
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1251
1296
|
__decorateClass([
|
|
1252
|
-
(0,
|
|
1297
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1253
1298
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1254
1299
|
__decorateClass([
|
|
1255
|
-
(0,
|
|
1300
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1256
1301
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1257
1302
|
__decorateClass([
|
|
1258
|
-
(0,
|
|
1303
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1259
1304
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1260
1305
|
__decorateClass([
|
|
1261
|
-
(0,
|
|
1262
|
-
(0,
|
|
1306
|
+
(0, import_class_validator37.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1307
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1263
1308
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1264
1309
|
__decorateClass([
|
|
1265
|
-
(0,
|
|
1266
|
-
(0,
|
|
1310
|
+
(0, import_class_validator37.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1311
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1267
1312
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1268
1313
|
__decorateClass([
|
|
1269
|
-
(0,
|
|
1270
|
-
(0,
|
|
1314
|
+
(0, import_class_validator37.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1315
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1271
1316
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1272
1317
|
__decorateClass([
|
|
1273
|
-
(0,
|
|
1274
|
-
(0,
|
|
1318
|
+
(0, import_class_validator37.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1319
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1275
1320
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1276
1321
|
__decorateClass([
|
|
1277
|
-
(0,
|
|
1322
|
+
(0, import_class_validator37.IsOptional)()
|
|
1278
1323
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1279
1324
|
__decorateClass([
|
|
1280
|
-
(0,
|
|
1325
|
+
(0, import_class_validator37.IsEnum)(BankAccountScope, {
|
|
1281
1326
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1282
1327
|
BankAccountScope
|
|
1283
1328
|
).join(", ")}`
|
|
@@ -1297,7 +1342,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1297
1342
|
};
|
|
1298
1343
|
|
|
1299
1344
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1300
|
-
var
|
|
1345
|
+
var import_class_validator38 = require("class-validator");
|
|
1301
1346
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1302
1347
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1303
1348
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1306,10 +1351,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1306
1351
|
var SystemPreferenceDto = class {
|
|
1307
1352
|
};
|
|
1308
1353
|
__decorateClass([
|
|
1309
|
-
(0,
|
|
1354
|
+
(0, import_class_validator38.IsBoolean)()
|
|
1310
1355
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1311
1356
|
__decorateClass([
|
|
1312
|
-
(0,
|
|
1357
|
+
(0, import_class_validator38.IsEnum)(SystemPreferenceKey, {
|
|
1313
1358
|
message: `key must be one of: ${Object.values(
|
|
1314
1359
|
SystemPreferenceKey
|
|
1315
1360
|
).join(", ")}`
|
|
@@ -1329,7 +1374,7 @@ var RATING_PATTERN = {
|
|
|
1329
1374
|
};
|
|
1330
1375
|
|
|
1331
1376
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1332
|
-
var
|
|
1377
|
+
var import_class_validator39 = require("class-validator");
|
|
1333
1378
|
|
|
1334
1379
|
// src/entities/rating.entity.ts
|
|
1335
1380
|
var import_typeorm42 = require("typeorm");
|
|
@@ -3524,22 +3569,22 @@ Rating = __decorateClass([
|
|
|
3524
3569
|
var CreateRatingDto = class {
|
|
3525
3570
|
};
|
|
3526
3571
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3528
|
-
(0,
|
|
3572
|
+
(0, import_class_validator39.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
3573
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
3529
3574
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3530
3575
|
__decorateClass([
|
|
3531
|
-
(0,
|
|
3576
|
+
(0, import_class_validator39.IsEnum)(RatingTypeEnum, {
|
|
3532
3577
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3533
3578
|
})
|
|
3534
3579
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3535
3580
|
__decorateClass([
|
|
3536
|
-
(0,
|
|
3537
|
-
(0,
|
|
3538
|
-
(0,
|
|
3581
|
+
(0, import_class_validator39.IsInt)({ message: "Rating must be an integer value" }),
|
|
3582
|
+
(0, import_class_validator39.Min)(1, { message: "Rating must be at least 1" }),
|
|
3583
|
+
(0, import_class_validator39.Max)(5, { message: "Rating must be at most 5" })
|
|
3539
3584
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3540
3585
|
__decorateClass([
|
|
3541
|
-
(0,
|
|
3542
|
-
(0,
|
|
3586
|
+
(0, import_class_validator39.IsOptional)(),
|
|
3587
|
+
(0, import_class_validator39.IsString)({ message: "Review must be a string" })
|
|
3543
3588
|
], CreateRatingDto.prototype, "review", 2);
|
|
3544
3589
|
|
|
3545
3590
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3555,57 +3600,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3555
3600
|
};
|
|
3556
3601
|
|
|
3557
3602
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3558
|
-
var
|
|
3603
|
+
var import_class_validator40 = require("class-validator");
|
|
3559
3604
|
var CreateCompanyRoleDto = class {
|
|
3560
3605
|
};
|
|
3561
3606
|
__decorateClass([
|
|
3562
|
-
(0,
|
|
3607
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3563
3608
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3564
3609
|
__decorateClass([
|
|
3565
|
-
(0,
|
|
3610
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3566
3611
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3567
3612
|
__decorateClass([
|
|
3568
|
-
(0,
|
|
3613
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter description" })
|
|
3569
3614
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3570
3615
|
__decorateClass([
|
|
3571
|
-
(0,
|
|
3572
|
-
(0,
|
|
3573
|
-
(0,
|
|
3616
|
+
(0, import_class_validator40.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3617
|
+
(0, import_class_validator40.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3618
|
+
(0, import_class_validator40.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3574
3619
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3575
3620
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3577
|
-
(0,
|
|
3621
|
+
(0, import_class_validator40.IsOptional)(),
|
|
3622
|
+
(0, import_class_validator40.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3578
3623
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3579
3624
|
|
|
3580
3625
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3581
|
-
var
|
|
3626
|
+
var import_class_validator41 = require("class-validator");
|
|
3582
3627
|
var UpdateCompanyRoleDto = class {
|
|
3583
3628
|
};
|
|
3584
3629
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3630
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter company name." })
|
|
3586
3631
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3587
3632
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3633
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter slug" })
|
|
3589
3634
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3590
3635
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3636
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter description" })
|
|
3592
3637
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3593
3638
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3595
|
-
(0,
|
|
3596
|
-
(0,
|
|
3639
|
+
(0, import_class_validator41.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3640
|
+
(0, import_class_validator41.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3641
|
+
(0, import_class_validator41.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3597
3642
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3598
3643
|
__decorateClass([
|
|
3599
|
-
(0,
|
|
3600
|
-
(0,
|
|
3644
|
+
(0, import_class_validator41.IsOptional)(),
|
|
3645
|
+
(0, import_class_validator41.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3601
3646
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3602
3647
|
|
|
3603
3648
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3604
|
-
var
|
|
3649
|
+
var import_class_validator42 = require("class-validator");
|
|
3605
3650
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3606
3651
|
};
|
|
3607
3652
|
__decorateClass([
|
|
3608
|
-
(0,
|
|
3653
|
+
(0, import_class_validator42.IsBoolean)()
|
|
3609
3654
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3610
3655
|
|
|
3611
3656
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3615,35 +3660,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3615
3660
|
};
|
|
3616
3661
|
|
|
3617
3662
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3618
|
-
var
|
|
3663
|
+
var import_class_validator43 = require("class-validator");
|
|
3619
3664
|
var import_class_transformer2 = require("class-transformer");
|
|
3620
3665
|
var ExperienceDto = class {
|
|
3621
3666
|
};
|
|
3622
3667
|
__decorateClass([
|
|
3623
|
-
(0,
|
|
3668
|
+
(0, import_class_validator43.IsOptional)()
|
|
3624
3669
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3625
3670
|
__decorateClass([
|
|
3626
|
-
(0,
|
|
3627
|
-
(0,
|
|
3671
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3672
|
+
(0, import_class_validator43.IsString)()
|
|
3628
3673
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3629
3674
|
__decorateClass([
|
|
3630
|
-
(0,
|
|
3631
|
-
(0,
|
|
3675
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3676
|
+
(0, import_class_validator43.IsString)()
|
|
3632
3677
|
], ExperienceDto.prototype, "designation", 2);
|
|
3633
3678
|
__decorateClass([
|
|
3634
|
-
(0,
|
|
3635
|
-
(0,
|
|
3679
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3680
|
+
(0, import_class_validator43.IsString)()
|
|
3636
3681
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3637
3682
|
__decorateClass([
|
|
3638
|
-
(0,
|
|
3639
|
-
(0,
|
|
3640
|
-
(0,
|
|
3683
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3684
|
+
(0, import_class_validator43.IsString)(),
|
|
3685
|
+
(0, import_class_validator43.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3641
3686
|
], ExperienceDto.prototype, "description", 2);
|
|
3642
3687
|
var FreelancerExperienceDto = class {
|
|
3643
3688
|
};
|
|
3644
3689
|
__decorateClass([
|
|
3645
|
-
(0,
|
|
3646
|
-
(0,
|
|
3690
|
+
(0, import_class_validator43.ValidateNested)({ each: true }),
|
|
3691
|
+
(0, import_class_validator43.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3647
3692
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3648
3693
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3649
3694
|
|
|
@@ -3660,43 +3705,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3660
3705
|
};
|
|
3661
3706
|
|
|
3662
3707
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3663
|
-
var
|
|
3708
|
+
var import_class_validator44 = require("class-validator");
|
|
3664
3709
|
var CreateCompanyMemberDto = class {
|
|
3665
3710
|
};
|
|
3666
3711
|
__decorateClass([
|
|
3667
|
-
(0,
|
|
3712
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter name." })
|
|
3668
3713
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3669
3714
|
__decorateClass([
|
|
3670
|
-
(0,
|
|
3715
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter email" })
|
|
3671
3716
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3672
3717
|
__decorateClass([
|
|
3673
|
-
(0,
|
|
3674
|
-
(0,
|
|
3675
|
-
(0,
|
|
3718
|
+
(0, import_class_validator44.IsArray)({ message: "Role IDs must be an array." }),
|
|
3719
|
+
(0, import_class_validator44.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3720
|
+
(0, import_class_validator44.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3676
3721
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3677
3722
|
|
|
3678
3723
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3679
|
-
var
|
|
3724
|
+
var import_class_validator45 = require("class-validator");
|
|
3680
3725
|
var UpdateCompanyMemberDto = class {
|
|
3681
3726
|
};
|
|
3682
3727
|
__decorateClass([
|
|
3683
|
-
(0,
|
|
3728
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter name." })
|
|
3684
3729
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3685
3730
|
__decorateClass([
|
|
3686
|
-
(0,
|
|
3731
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter email" })
|
|
3687
3732
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3688
3733
|
__decorateClass([
|
|
3689
|
-
(0,
|
|
3690
|
-
(0,
|
|
3691
|
-
(0,
|
|
3734
|
+
(0, import_class_validator45.IsArray)({ message: "Role IDs must be an array." }),
|
|
3735
|
+
(0, import_class_validator45.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3736
|
+
(0, import_class_validator45.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3692
3737
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3693
3738
|
|
|
3694
3739
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3695
|
-
var
|
|
3740
|
+
var import_class_validator46 = require("class-validator");
|
|
3696
3741
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3697
3742
|
};
|
|
3698
3743
|
__decorateClass([
|
|
3699
|
-
(0,
|
|
3744
|
+
(0, import_class_validator46.IsBoolean)()
|
|
3700
3745
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3701
3746
|
|
|
3702
3747
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3706,31 +3751,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3706
3751
|
};
|
|
3707
3752
|
|
|
3708
3753
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3709
|
-
var
|
|
3754
|
+
var import_class_validator47 = require("class-validator");
|
|
3710
3755
|
var import_class_transformer3 = require("class-transformer");
|
|
3711
3756
|
var EducationDto = class {
|
|
3712
3757
|
};
|
|
3713
3758
|
__decorateClass([
|
|
3714
|
-
(0,
|
|
3759
|
+
(0, import_class_validator47.IsOptional)()
|
|
3715
3760
|
], EducationDto.prototype, "uuid", 2);
|
|
3716
3761
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3718
|
-
(0,
|
|
3762
|
+
(0, import_class_validator47.IsString)(),
|
|
3763
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3719
3764
|
], EducationDto.prototype, "degree", 2);
|
|
3720
3765
|
__decorateClass([
|
|
3721
|
-
(0,
|
|
3722
|
-
(0,
|
|
3766
|
+
(0, import_class_validator47.IsString)(),
|
|
3767
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter University " })
|
|
3723
3768
|
], EducationDto.prototype, "university", 2);
|
|
3724
3769
|
__decorateClass([
|
|
3725
|
-
(0,
|
|
3726
|
-
(0,
|
|
3770
|
+
(0, import_class_validator47.IsString)(),
|
|
3771
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3727
3772
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3728
3773
|
var FreelancerEducationDto = class {
|
|
3729
3774
|
};
|
|
3730
3775
|
__decorateClass([
|
|
3731
|
-
(0,
|
|
3732
|
-
(0,
|
|
3733
|
-
(0,
|
|
3776
|
+
(0, import_class_validator47.IsArray)(),
|
|
3777
|
+
(0, import_class_validator47.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
3778
|
+
(0, import_class_validator47.ValidateNested)({ each: true }),
|
|
3734
3779
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3735
3780
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3736
3781
|
|
|
@@ -3741,67 +3786,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3741
3786
|
};
|
|
3742
3787
|
|
|
3743
3788
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3744
|
-
var
|
|
3789
|
+
var import_class_validator48 = require("class-validator");
|
|
3745
3790
|
var import_class_transformer4 = require("class-transformer");
|
|
3746
3791
|
var ProjectDto = class {
|
|
3747
3792
|
};
|
|
3748
3793
|
__decorateClass([
|
|
3749
|
-
(0,
|
|
3794
|
+
(0, import_class_validator48.IsOptional)()
|
|
3750
3795
|
], ProjectDto.prototype, "uuid", 2);
|
|
3751
3796
|
__decorateClass([
|
|
3752
|
-
(0,
|
|
3753
|
-
(0,
|
|
3797
|
+
(0, import_class_validator48.IsString)(),
|
|
3798
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3754
3799
|
], ProjectDto.prototype, "projectName", 2);
|
|
3755
3800
|
__decorateClass([
|
|
3756
|
-
(0,
|
|
3757
|
-
(0,
|
|
3801
|
+
(0, import_class_validator48.IsDateString)(),
|
|
3802
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3758
3803
|
], ProjectDto.prototype, "startDate", 2);
|
|
3759
3804
|
__decorateClass([
|
|
3760
|
-
(0,
|
|
3761
|
-
(0,
|
|
3805
|
+
(0, import_class_validator48.IsDateString)(),
|
|
3806
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3762
3807
|
], ProjectDto.prototype, "endDate", 2);
|
|
3763
3808
|
__decorateClass([
|
|
3764
|
-
(0,
|
|
3765
|
-
(0,
|
|
3809
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3810
|
+
(0, import_class_validator48.IsString)()
|
|
3766
3811
|
], ProjectDto.prototype, "clientName", 2);
|
|
3767
3812
|
__decorateClass([
|
|
3768
|
-
(0,
|
|
3769
|
-
(0,
|
|
3813
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3814
|
+
(0, import_class_validator48.IsString)()
|
|
3770
3815
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3771
3816
|
__decorateClass([
|
|
3772
|
-
(0,
|
|
3773
|
-
(0,
|
|
3774
|
-
(0,
|
|
3817
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3818
|
+
(0, import_class_validator48.IsString)(),
|
|
3819
|
+
(0, import_class_validator48.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3775
3820
|
], ProjectDto.prototype, "description", 2);
|
|
3776
3821
|
var CaseStudyDto = class {
|
|
3777
3822
|
};
|
|
3778
3823
|
__decorateClass([
|
|
3779
|
-
(0,
|
|
3824
|
+
(0, import_class_validator48.IsOptional)()
|
|
3780
3825
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3781
3826
|
__decorateClass([
|
|
3782
|
-
(0,
|
|
3783
|
-
(0,
|
|
3827
|
+
(0, import_class_validator48.IsString)(),
|
|
3828
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3784
3829
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3785
3830
|
__decorateClass([
|
|
3786
|
-
(0,
|
|
3787
|
-
(0,
|
|
3831
|
+
(0, import_class_validator48.IsString)(),
|
|
3832
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
3788
3833
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3789
3834
|
__decorateClass([
|
|
3790
|
-
(0,
|
|
3791
|
-
(0,
|
|
3792
|
-
(0,
|
|
3835
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3836
|
+
(0, import_class_validator48.IsString)(),
|
|
3837
|
+
(0, import_class_validator48.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3793
3838
|
], CaseStudyDto.prototype, "description", 2);
|
|
3794
3839
|
var FreelancerProjectDto = class {
|
|
3795
3840
|
};
|
|
3796
3841
|
__decorateClass([
|
|
3797
|
-
(0,
|
|
3798
|
-
(0,
|
|
3799
|
-
(0,
|
|
3842
|
+
(0, import_class_validator48.IsArray)(),
|
|
3843
|
+
(0, import_class_validator48.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
3844
|
+
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
3800
3845
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3801
3846
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3802
3847
|
__decorateClass([
|
|
3803
|
-
(0,
|
|
3804
|
-
(0,
|
|
3848
|
+
(0, import_class_validator48.IsArray)(),
|
|
3849
|
+
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
3805
3850
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3806
3851
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3807
3852
|
|
|
@@ -3817,7 +3862,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3817
3862
|
};
|
|
3818
3863
|
|
|
3819
3864
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3820
|
-
var
|
|
3865
|
+
var import_class_validator49 = require("class-validator");
|
|
3821
3866
|
var import_class_transformer5 = require("class-transformer");
|
|
3822
3867
|
var FreelancerSkillDto = class {
|
|
3823
3868
|
constructor() {
|
|
@@ -3827,22 +3872,22 @@ var FreelancerSkillDto = class {
|
|
|
3827
3872
|
}
|
|
3828
3873
|
};
|
|
3829
3874
|
__decorateClass([
|
|
3830
|
-
(0,
|
|
3831
|
-
(0,
|
|
3875
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3876
|
+
(0, import_class_validator49.IsArray)(),
|
|
3832
3877
|
(0, import_class_transformer5.Type)(() => String),
|
|
3833
|
-
(0,
|
|
3878
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3834
3879
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3835
3880
|
__decorateClass([
|
|
3836
|
-
(0,
|
|
3837
|
-
(0,
|
|
3881
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3882
|
+
(0, import_class_validator49.IsArray)(),
|
|
3838
3883
|
(0, import_class_transformer5.Type)(() => String),
|
|
3839
|
-
(0,
|
|
3884
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3840
3885
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3841
3886
|
__decorateClass([
|
|
3842
|
-
(0,
|
|
3843
|
-
(0,
|
|
3887
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3888
|
+
(0, import_class_validator49.IsArray)(),
|
|
3844
3889
|
(0, import_class_transformer5.Type)(() => String),
|
|
3845
|
-
(0,
|
|
3890
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3846
3891
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3847
3892
|
|
|
3848
3893
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3858,7 +3903,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3858
3903
|
};
|
|
3859
3904
|
|
|
3860
3905
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3861
|
-
var
|
|
3906
|
+
var import_class_validator50 = require("class-validator");
|
|
3862
3907
|
var import_class_transformer6 = require("class-transformer");
|
|
3863
3908
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3864
3909
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3875,84 +3920,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3875
3920
|
var CreateFreelancerDto = class {
|
|
3876
3921
|
};
|
|
3877
3922
|
__decorateClass([
|
|
3878
|
-
(0,
|
|
3879
|
-
(0,
|
|
3923
|
+
(0, import_class_validator50.IsString)({ message: "Full name must be a string" }),
|
|
3924
|
+
(0, import_class_validator50.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3880
3925
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3881
3926
|
__decorateClass([
|
|
3882
|
-
(0,
|
|
3927
|
+
(0, import_class_validator50.IsEmail)({}, { message: "Invalid email address" })
|
|
3883
3928
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3884
3929
|
__decorateClass([
|
|
3885
|
-
(0,
|
|
3930
|
+
(0, import_class_validator50.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3886
3931
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3887
3932
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
3933
|
+
(0, import_class_validator50.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3889
3934
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3890
3935
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
3892
|
-
(0,
|
|
3893
|
-
(0,
|
|
3894
|
-
(0,
|
|
3936
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter password." }),
|
|
3937
|
+
(0, import_class_validator50.MinLength)(6),
|
|
3938
|
+
(0, import_class_validator50.MaxLength)(32),
|
|
3939
|
+
(0, import_class_validator50.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3895
3940
|
message: "Password must include letters, numbers and symbols."
|
|
3896
3941
|
})
|
|
3897
3942
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3898
3943
|
__decorateClass([
|
|
3899
|
-
(0,
|
|
3944
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3900
3945
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3901
3946
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3902
3947
|
__decorateClass([
|
|
3903
|
-
(0,
|
|
3948
|
+
(0, import_class_validator50.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3904
3949
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3905
3950
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3906
3951
|
__decorateClass([
|
|
3907
|
-
(0,
|
|
3952
|
+
(0, import_class_validator50.IsEnum)(NatureOfWorkEnum, {
|
|
3908
3953
|
message: `Nature of work must be one of: ${Object.values(
|
|
3909
3954
|
NatureOfWorkEnum
|
|
3910
3955
|
).join(", ")}`
|
|
3911
3956
|
})
|
|
3912
3957
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3913
3958
|
__decorateClass([
|
|
3914
|
-
(0,
|
|
3915
|
-
(0,
|
|
3959
|
+
(0, import_class_validator50.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3960
|
+
(0, import_class_validator50.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3916
3961
|
(0, import_class_transformer6.Type)(() => Number)
|
|
3917
3962
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3918
3963
|
__decorateClass([
|
|
3919
|
-
(0,
|
|
3964
|
+
(0, import_class_validator50.IsEnum)(ModeOfWorkEnum, {
|
|
3920
3965
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3921
3966
|
", "
|
|
3922
3967
|
)}`
|
|
3923
3968
|
})
|
|
3924
3969
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3925
3970
|
__decorateClass([
|
|
3926
|
-
(0,
|
|
3971
|
+
(0, import_class_validator50.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3927
3972
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3928
3973
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3929
3974
|
__decorateClass([
|
|
3930
|
-
(0,
|
|
3931
|
-
(0,
|
|
3975
|
+
(0, import_class_validator50.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3976
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3932
3977
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3933
3978
|
__decorateClass([
|
|
3934
|
-
(0,
|
|
3935
|
-
(0,
|
|
3979
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3980
|
+
(0, import_class_validator50.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3936
3981
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3937
3982
|
__decorateClass([
|
|
3938
|
-
(0,
|
|
3939
|
-
(0,
|
|
3983
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3984
|
+
(0, import_class_validator50.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3940
3985
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3941
3986
|
__decorateClass([
|
|
3942
|
-
(0,
|
|
3943
|
-
(0,
|
|
3987
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3988
|
+
(0, import_class_validator50.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3944
3989
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3945
3990
|
__decorateClass([
|
|
3946
|
-
(0,
|
|
3947
|
-
(0,
|
|
3991
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3992
|
+
(0, import_class_validator50.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3948
3993
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3949
3994
|
__decorateClass([
|
|
3950
|
-
(0,
|
|
3951
|
-
(0,
|
|
3995
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3996
|
+
(0, import_class_validator50.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3952
3997
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3953
3998
|
|
|
3954
3999
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3955
|
-
var
|
|
4000
|
+
var import_class_validator51 = require("class-validator");
|
|
3956
4001
|
var import_class_transformer7 = require("class-transformer");
|
|
3957
4002
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3958
4003
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3969,85 +4014,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3969
4014
|
var UpdateFreelancerDto = class {
|
|
3970
4015
|
};
|
|
3971
4016
|
__decorateClass([
|
|
3972
|
-
(0,
|
|
3973
|
-
(0,
|
|
3974
|
-
(0,
|
|
4017
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4018
|
+
(0, import_class_validator51.IsString)({ message: "Full name must be a string" }),
|
|
4019
|
+
(0, import_class_validator51.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3975
4020
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3976
4021
|
__decorateClass([
|
|
3977
|
-
(0,
|
|
3978
|
-
(0,
|
|
4022
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4023
|
+
(0, import_class_validator51.IsEmail)({}, { message: "Invalid email address" })
|
|
3979
4024
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3980
4025
|
__decorateClass([
|
|
3981
|
-
(0,
|
|
3982
|
-
(0,
|
|
4026
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4027
|
+
(0, import_class_validator51.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3983
4028
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3984
4029
|
__decorateClass([
|
|
3985
|
-
(0,
|
|
3986
|
-
(0,
|
|
4030
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4031
|
+
(0, import_class_validator51.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3987
4032
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3988
4033
|
__decorateClass([
|
|
3989
|
-
(0,
|
|
3990
|
-
(0,
|
|
3991
|
-
(0,
|
|
3992
|
-
(0,
|
|
4034
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4035
|
+
(0, import_class_validator51.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4036
|
+
(0, import_class_validator51.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4037
|
+
(0, import_class_validator51.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3993
4038
|
message: "Password must include letters, numbers and symbols."
|
|
3994
4039
|
})
|
|
3995
4040
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3996
4041
|
__decorateClass([
|
|
3997
|
-
(0,
|
|
3998
|
-
(0,
|
|
4042
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4043
|
+
(0, import_class_validator51.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3999
4044
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4000
4045
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4001
4046
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4003
|
-
(0,
|
|
4047
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4048
|
+
(0, import_class_validator51.IsEnum)(NatureOfWorkEnum2, {
|
|
4004
4049
|
message: `Nature of work must be one of: ${Object.values(
|
|
4005
4050
|
NatureOfWorkEnum2
|
|
4006
4051
|
).join(", ")}`
|
|
4007
4052
|
})
|
|
4008
4053
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4009
4054
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
4011
|
-
(0,
|
|
4012
|
-
(0,
|
|
4055
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4056
|
+
(0, import_class_validator51.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4057
|
+
(0, import_class_validator51.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4013
4058
|
(0, import_class_transformer7.Type)(() => Number)
|
|
4014
4059
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4015
4060
|
__decorateClass([
|
|
4016
|
-
(0,
|
|
4017
|
-
(0,
|
|
4061
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4062
|
+
(0, import_class_validator51.IsEnum)(ModeOfWorkEnum2, {
|
|
4018
4063
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4019
4064
|
", "
|
|
4020
4065
|
)}`
|
|
4021
4066
|
})
|
|
4022
4067
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4023
4068
|
__decorateClass([
|
|
4024
|
-
(0,
|
|
4025
|
-
(0,
|
|
4069
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4070
|
+
(0, import_class_validator51.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4026
4071
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4027
4072
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4028
4073
|
__decorateClass([
|
|
4029
|
-
(0,
|
|
4030
|
-
(0,
|
|
4074
|
+
(0, import_class_validator51.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4075
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4031
4076
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4032
4077
|
__decorateClass([
|
|
4033
|
-
(0,
|
|
4034
|
-
(0,
|
|
4078
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4079
|
+
(0, import_class_validator51.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4035
4080
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4036
4081
|
__decorateClass([
|
|
4037
|
-
(0,
|
|
4038
|
-
(0,
|
|
4082
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4083
|
+
(0, import_class_validator51.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4039
4084
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4040
4085
|
__decorateClass([
|
|
4041
|
-
(0,
|
|
4042
|
-
(0,
|
|
4086
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4087
|
+
(0, import_class_validator51.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4043
4088
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4044
4089
|
__decorateClass([
|
|
4045
|
-
(0,
|
|
4046
|
-
(0,
|
|
4090
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4091
|
+
(0, import_class_validator51.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4047
4092
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4048
4093
|
__decorateClass([
|
|
4049
|
-
(0,
|
|
4050
|
-
(0,
|
|
4094
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4095
|
+
(0, import_class_validator51.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4051
4096
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4052
4097
|
|
|
4053
4098
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -4064,7 +4109,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4064
4109
|
};
|
|
4065
4110
|
|
|
4066
4111
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4067
|
-
var
|
|
4112
|
+
var import_class_validator52 = require("class-validator");
|
|
4068
4113
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4069
4114
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4070
4115
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4080,69 +4125,69 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4080
4125
|
var CreateClientDto = class {
|
|
4081
4126
|
};
|
|
4082
4127
|
__decorateClass([
|
|
4083
|
-
(0,
|
|
4084
|
-
(0,
|
|
4128
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4129
|
+
(0, import_class_validator52.IsString)()
|
|
4085
4130
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4086
4131
|
__decorateClass([
|
|
4087
|
-
(0,
|
|
4088
|
-
(0,
|
|
4132
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4133
|
+
(0, import_class_validator52.IsString)()
|
|
4089
4134
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4090
4135
|
__decorateClass([
|
|
4091
|
-
(0,
|
|
4092
|
-
(0,
|
|
4136
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter email." }),
|
|
4137
|
+
(0, import_class_validator52.IsEmail)()
|
|
4093
4138
|
], CreateClientDto.prototype, "email", 2);
|
|
4094
4139
|
__decorateClass([
|
|
4095
|
-
(0,
|
|
4096
|
-
(0,
|
|
4097
|
-
(0,
|
|
4098
|
-
(0,
|
|
4140
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter password." }),
|
|
4141
|
+
(0, import_class_validator52.MinLength)(6),
|
|
4142
|
+
(0, import_class_validator52.MaxLength)(32),
|
|
4143
|
+
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4099
4144
|
message: "Password must include letters, numbers and symbols."
|
|
4100
4145
|
})
|
|
4101
4146
|
], CreateClientDto.prototype, "password", 2);
|
|
4102
4147
|
__decorateClass([
|
|
4103
|
-
(0,
|
|
4148
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4104
4149
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4105
4150
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4106
4151
|
__decorateClass([
|
|
4107
|
-
(0,
|
|
4108
|
-
(0,
|
|
4152
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4153
|
+
(0, import_class_validator52.IsString)()
|
|
4109
4154
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4110
4155
|
__decorateClass([
|
|
4111
|
-
(0,
|
|
4112
|
-
(0,
|
|
4156
|
+
(0, import_class_validator52.IsArray)({ message: "Skills should be an array." }),
|
|
4157
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter skills." })
|
|
4113
4158
|
], CreateClientDto.prototype, "skills", 2);
|
|
4114
4159
|
__decorateClass([
|
|
4115
|
-
(0,
|
|
4116
|
-
(0,
|
|
4160
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4161
|
+
(0, import_class_validator52.IsString)()
|
|
4117
4162
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4118
4163
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4120
|
-
(0,
|
|
4164
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4165
|
+
(0, import_class_validator52.IsEnum)(CreateClientHiringTypeEnum)
|
|
4121
4166
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4122
4167
|
__decorateClass([
|
|
4123
|
-
(0,
|
|
4124
|
-
(0,
|
|
4168
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4169
|
+
(0, import_class_validator52.IsEnum)(CreateClientHiringModeEnum)
|
|
4125
4170
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4126
4171
|
__decorateClass([
|
|
4127
|
-
(0,
|
|
4128
|
-
(0,
|
|
4172
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4173
|
+
(0, import_class_validator52.IsString)()
|
|
4129
4174
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4130
4175
|
__decorateClass([
|
|
4131
|
-
(0,
|
|
4132
|
-
(0,
|
|
4176
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4177
|
+
(0, import_class_validator52.IsString)()
|
|
4133
4178
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4134
4179
|
|
|
4135
4180
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4136
|
-
var
|
|
4181
|
+
var import_class_validator53 = require("class-validator");
|
|
4137
4182
|
var UpdateClientAccountStatusDto = class {
|
|
4138
4183
|
};
|
|
4139
4184
|
__decorateClass([
|
|
4140
|
-
(0,
|
|
4141
|
-
(0,
|
|
4185
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter account status." }),
|
|
4186
|
+
(0, import_class_validator53.IsString)()
|
|
4142
4187
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4143
4188
|
|
|
4144
4189
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4145
|
-
var
|
|
4190
|
+
var import_class_validator54 = require("class-validator");
|
|
4146
4191
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4147
4192
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4148
4193
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4158,52 +4203,52 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4158
4203
|
var UpdateClientDto = class {
|
|
4159
4204
|
};
|
|
4160
4205
|
__decorateClass([
|
|
4161
|
-
(0,
|
|
4162
|
-
(0,
|
|
4206
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4207
|
+
(0, import_class_validator54.IsString)()
|
|
4163
4208
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4164
4209
|
__decorateClass([
|
|
4165
|
-
(0,
|
|
4166
|
-
(0,
|
|
4210
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4211
|
+
(0, import_class_validator54.IsString)()
|
|
4167
4212
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4168
4213
|
__decorateClass([
|
|
4169
|
-
(0,
|
|
4170
|
-
(0,
|
|
4214
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter email." }),
|
|
4215
|
+
(0, import_class_validator54.IsEmail)()
|
|
4171
4216
|
], UpdateClientDto.prototype, "email", 2);
|
|
4172
4217
|
__decorateClass([
|
|
4173
|
-
(0,
|
|
4174
|
-
(0,
|
|
4175
|
-
(0,
|
|
4176
|
-
(0,
|
|
4218
|
+
(0, import_class_validator54.IsOptional)(),
|
|
4219
|
+
(0, import_class_validator54.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4220
|
+
(0, import_class_validator54.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4221
|
+
(0, import_class_validator54.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4177
4222
|
message: "Password must include letters, numbers and symbols."
|
|
4178
4223
|
})
|
|
4179
4224
|
], UpdateClientDto.prototype, "password", 2);
|
|
4180
4225
|
__decorateClass([
|
|
4181
|
-
(0,
|
|
4182
|
-
(0,
|
|
4226
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4227
|
+
(0, import_class_validator54.IsString)()
|
|
4183
4228
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4184
4229
|
__decorateClass([
|
|
4185
|
-
(0,
|
|
4186
|
-
(0,
|
|
4230
|
+
(0, import_class_validator54.IsArray)({ message: "Skills should be an array." }),
|
|
4231
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter skills." })
|
|
4187
4232
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4188
4233
|
__decorateClass([
|
|
4189
|
-
(0,
|
|
4190
|
-
(0,
|
|
4234
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4235
|
+
(0, import_class_validator54.IsString)()
|
|
4191
4236
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4192
4237
|
__decorateClass([
|
|
4193
|
-
(0,
|
|
4194
|
-
(0,
|
|
4238
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4239
|
+
(0, import_class_validator54.IsEnum)(UpdateClientHiringTypeEnum)
|
|
4195
4240
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4196
4241
|
__decorateClass([
|
|
4197
|
-
(0,
|
|
4198
|
-
(0,
|
|
4242
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4243
|
+
(0, import_class_validator54.IsEnum)(UpdateClientHiringModeEnum)
|
|
4199
4244
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4200
4245
|
__decorateClass([
|
|
4201
|
-
(0,
|
|
4202
|
-
(0,
|
|
4246
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4247
|
+
(0, import_class_validator54.IsString)()
|
|
4203
4248
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4204
4249
|
__decorateClass([
|
|
4205
|
-
(0,
|
|
4206
|
-
(0,
|
|
4250
|
+
(0, import_class_validator54.IsOptional)(),
|
|
4251
|
+
(0, import_class_validator54.IsString)()
|
|
4207
4252
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4208
4253
|
|
|
4209
4254
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4213,7 +4258,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4213
4258
|
};
|
|
4214
4259
|
|
|
4215
4260
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4216
|
-
var
|
|
4261
|
+
var import_class_validator55 = require("class-validator");
|
|
4217
4262
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4218
4263
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4219
4264
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4224,16 +4269,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4224
4269
|
var FreelancerDeclarationDto = class {
|
|
4225
4270
|
};
|
|
4226
4271
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4228
|
-
(0,
|
|
4272
|
+
(0, import_class_validator55.IsOptional)(),
|
|
4273
|
+
(0, import_class_validator55.IsString)({ message: "UUID must be a string" })
|
|
4229
4274
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4230
4275
|
__decorateClass([
|
|
4231
|
-
(0,
|
|
4276
|
+
(0, import_class_validator55.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4232
4277
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4233
4278
|
__decorateClass([
|
|
4234
|
-
(0,
|
|
4235
|
-
(0,
|
|
4236
|
-
(0,
|
|
4279
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
4280
|
+
(0, import_class_validator55.IsString)(),
|
|
4281
|
+
(0, import_class_validator55.IsIn)([
|
|
4237
4282
|
"true"
|
|
4238
4283
|
])
|
|
4239
4284
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -4248,36 +4293,36 @@ var CMS_PATTERNS = {
|
|
|
4248
4293
|
};
|
|
4249
4294
|
|
|
4250
4295
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4251
|
-
var
|
|
4296
|
+
var import_class_validator56 = require("class-validator");
|
|
4252
4297
|
var CreateCmsDto = class {
|
|
4253
4298
|
};
|
|
4254
4299
|
__decorateClass([
|
|
4255
|
-
(0,
|
|
4300
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter name." })
|
|
4256
4301
|
], CreateCmsDto.prototype, "title", 2);
|
|
4257
4302
|
__decorateClass([
|
|
4258
|
-
(0,
|
|
4303
|
+
(0, import_class_validator56.IsOptional)()
|
|
4259
4304
|
], CreateCmsDto.prototype, "content", 2);
|
|
4260
4305
|
__decorateClass([
|
|
4261
|
-
(0,
|
|
4262
|
-
(0,
|
|
4306
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4307
|
+
(0, import_class_validator56.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4263
4308
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4264
4309
|
|
|
4265
4310
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4266
|
-
var
|
|
4311
|
+
var import_class_validator57 = require("class-validator");
|
|
4267
4312
|
var UpdateCmsDto = class {
|
|
4268
4313
|
};
|
|
4269
4314
|
__decorateClass([
|
|
4270
|
-
(0,
|
|
4315
|
+
(0, import_class_validator57.IsOptional)()
|
|
4271
4316
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4272
4317
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4318
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please enter name." })
|
|
4274
4319
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4275
4320
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4321
|
+
(0, import_class_validator57.IsOptional)()
|
|
4277
4322
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4278
4323
|
__decorateClass([
|
|
4279
|
-
(0,
|
|
4280
|
-
(0,
|
|
4324
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4325
|
+
(0, import_class_validator57.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4281
4326
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4282
4327
|
|
|
4283
4328
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4305,7 +4350,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4305
4350
|
|
|
4306
4351
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4307
4352
|
var import_class_transformer8 = require("class-transformer");
|
|
4308
|
-
var
|
|
4353
|
+
var import_class_validator58 = require("class-validator");
|
|
4309
4354
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4310
4355
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4311
4356
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4321,79 +4366,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4321
4366
|
var AdminCreateJobInformationDto = class {
|
|
4322
4367
|
};
|
|
4323
4368
|
__decorateClass([
|
|
4324
|
-
(0,
|
|
4325
|
-
(0,
|
|
4369
|
+
(0, import_class_validator58.IsString)({ message: "Job role must be a string." }),
|
|
4370
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Job role is required." })
|
|
4326
4371
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4327
4372
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4329
|
-
(0,
|
|
4373
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4374
|
+
(0, import_class_validator58.IsString)({ message: "Note must be a string." })
|
|
4330
4375
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4331
4376
|
__decorateClass([
|
|
4332
|
-
(0,
|
|
4333
|
-
(0,
|
|
4377
|
+
(0, import_class_validator58.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4378
|
+
(0, import_class_validator58.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4334
4379
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4335
|
-
(0,
|
|
4380
|
+
(0, import_class_validator58.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4336
4381
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4337
4382
|
__decorateClass([
|
|
4338
|
-
(0,
|
|
4339
|
-
(0,
|
|
4383
|
+
(0, import_class_validator58.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4384
|
+
(0, import_class_validator58.Min)(1, { message: "There must be at least one opening." })
|
|
4340
4385
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4341
4386
|
__decorateClass([
|
|
4342
|
-
(0,
|
|
4387
|
+
(0, import_class_validator58.IsEnum)(JobLocationEnumDto, {
|
|
4343
4388
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
4344
4389
|
})
|
|
4345
4390
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4346
4391
|
__decorateClass([
|
|
4347
|
-
(0,
|
|
4392
|
+
(0, import_class_validator58.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4348
4393
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
4349
4394
|
})
|
|
4350
4395
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4351
4396
|
__decorateClass([
|
|
4352
|
-
(0,
|
|
4353
|
-
(0,
|
|
4397
|
+
(0, import_class_validator58.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4398
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4354
4399
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4355
4400
|
__decorateClass([
|
|
4356
|
-
(0,
|
|
4357
|
-
(0,
|
|
4401
|
+
(0, import_class_validator58.IsString)({ message: "Communication skills must be a string." }),
|
|
4402
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4358
4403
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4359
4404
|
__decorateClass([
|
|
4360
|
-
(0,
|
|
4361
|
-
(0,
|
|
4405
|
+
(0, import_class_validator58.IsString)({ message: "Currency must be a string." }),
|
|
4406
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Currency is required." })
|
|
4362
4407
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4363
4408
|
__decorateClass([
|
|
4364
4409
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4365
|
-
(0,
|
|
4410
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4366
4411
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4367
4412
|
__decorateClass([
|
|
4368
4413
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4369
|
-
(0,
|
|
4414
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4370
4415
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4371
4416
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4417
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4373
4418
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4374
4419
|
__decorateClass([
|
|
4375
|
-
(0,
|
|
4420
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4376
4421
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4377
4422
|
__decorateClass([
|
|
4378
|
-
(0,
|
|
4379
|
-
(0,
|
|
4423
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4424
|
+
(0, import_class_validator58.IsString)({ message: "Additional comment must be a string." })
|
|
4380
4425
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4381
4426
|
__decorateClass([
|
|
4382
|
-
(0,
|
|
4427
|
+
(0, import_class_validator58.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4383
4428
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4384
4429
|
__decorateClass([
|
|
4385
|
-
(0,
|
|
4430
|
+
(0, import_class_validator58.IsInt)({ message: "State ID must be a valid integer." })
|
|
4386
4431
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4387
4432
|
__decorateClass([
|
|
4388
|
-
(0,
|
|
4433
|
+
(0, import_class_validator58.IsInt)({ message: "City ID must be a valid integer." })
|
|
4389
4434
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4390
4435
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4436
|
+
(0, import_class_validator58.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4392
4437
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4393
4438
|
|
|
4394
4439
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4395
4440
|
var import_class_transformer9 = require("class-transformer");
|
|
4396
|
-
var
|
|
4441
|
+
var import_class_validator59 = require("class-validator");
|
|
4397
4442
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4398
4443
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4399
4444
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4409,74 +4454,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4409
4454
|
var AdminUpdateJobInformationDto = class {
|
|
4410
4455
|
};
|
|
4411
4456
|
__decorateClass([
|
|
4412
|
-
(0,
|
|
4413
|
-
(0,
|
|
4457
|
+
(0, import_class_validator59.IsString)({ message: "Job role must be a string." }),
|
|
4458
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Job role is required." })
|
|
4414
4459
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4415
4460
|
__decorateClass([
|
|
4416
|
-
(0,
|
|
4417
|
-
(0,
|
|
4461
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4462
|
+
(0, import_class_validator59.IsString)({ message: "Note must be a string." })
|
|
4418
4463
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4419
4464
|
__decorateClass([
|
|
4420
|
-
(0,
|
|
4421
|
-
(0,
|
|
4465
|
+
(0, import_class_validator59.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4466
|
+
(0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4422
4467
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4423
|
-
(0,
|
|
4468
|
+
(0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4424
4469
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4425
4470
|
__decorateClass([
|
|
4426
|
-
(0,
|
|
4427
|
-
(0,
|
|
4471
|
+
(0, import_class_validator59.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4472
|
+
(0, import_class_validator59.Min)(1, { message: "There must be at least one opening." })
|
|
4428
4473
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4429
4474
|
__decorateClass([
|
|
4430
|
-
(0,
|
|
4475
|
+
(0, import_class_validator59.IsEnum)(JobLocationEnums, {
|
|
4431
4476
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4432
4477
|
})
|
|
4433
4478
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4434
4479
|
__decorateClass([
|
|
4435
|
-
(0,
|
|
4480
|
+
(0, import_class_validator59.IsEnum)(TypeOfEmploymentEnums, {
|
|
4436
4481
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4437
4482
|
})
|
|
4438
4483
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4439
4484
|
__decorateClass([
|
|
4440
|
-
(0,
|
|
4441
|
-
(0,
|
|
4485
|
+
(0, import_class_validator59.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4486
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4442
4487
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4443
4488
|
__decorateClass([
|
|
4444
|
-
(0,
|
|
4445
|
-
(0,
|
|
4489
|
+
(0, import_class_validator59.IsString)({ message: "Communication skills must be a string." }),
|
|
4490
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4446
4491
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4447
4492
|
__decorateClass([
|
|
4448
|
-
(0,
|
|
4449
|
-
(0,
|
|
4493
|
+
(0, import_class_validator59.IsString)({ message: "Currency must be a string." }),
|
|
4494
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Currency is required." })
|
|
4450
4495
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4451
4496
|
__decorateClass([
|
|
4452
4497
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4453
|
-
(0,
|
|
4498
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4454
4499
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4455
4500
|
__decorateClass([
|
|
4456
4501
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4457
|
-
(0,
|
|
4502
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4458
4503
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4459
4504
|
__decorateClass([
|
|
4460
|
-
(0,
|
|
4505
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4461
4506
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4462
4507
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4508
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4464
4509
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4465
4510
|
__decorateClass([
|
|
4466
|
-
(0,
|
|
4467
|
-
(0,
|
|
4511
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4512
|
+
(0, import_class_validator59.IsString)({ message: "Additional comment must be a string." })
|
|
4468
4513
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4469
4514
|
__decorateClass([
|
|
4470
|
-
(0,
|
|
4515
|
+
(0, import_class_validator59.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4471
4516
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4472
4517
|
__decorateClass([
|
|
4473
|
-
(0,
|
|
4518
|
+
(0, import_class_validator59.IsInt)({ message: "State ID must be a valid integer." })
|
|
4474
4519
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4475
4520
|
__decorateClass([
|
|
4476
|
-
(0,
|
|
4521
|
+
(0, import_class_validator59.IsInt)({ message: "City ID must be a valid integer." })
|
|
4477
4522
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4478
4523
|
__decorateClass([
|
|
4479
|
-
(0,
|
|
4524
|
+
(0, import_class_validator59.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4480
4525
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4481
4526
|
|
|
4482
4527
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4486,7 +4531,7 @@ var LEAD_PATTERN = {
|
|
|
4486
4531
|
};
|
|
4487
4532
|
|
|
4488
4533
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4489
|
-
var
|
|
4534
|
+
var import_class_validator60 = require("class-validator");
|
|
4490
4535
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4491
4536
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4492
4537
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4495,23 +4540,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4495
4540
|
var CreateLeadDto = class {
|
|
4496
4541
|
};
|
|
4497
4542
|
__decorateClass([
|
|
4498
|
-
(0,
|
|
4543
|
+
(0, import_class_validator60.IsString)({ message: "Name must be a string" })
|
|
4499
4544
|
], CreateLeadDto.prototype, "name", 2);
|
|
4500
4545
|
__decorateClass([
|
|
4501
|
-
(0,
|
|
4546
|
+
(0, import_class_validator60.IsEmail)({}, { message: "Invalid email address" })
|
|
4502
4547
|
], CreateLeadDto.prototype, "email", 2);
|
|
4503
4548
|
__decorateClass([
|
|
4504
|
-
(0,
|
|
4549
|
+
(0, import_class_validator60.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4505
4550
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4506
4551
|
__decorateClass([
|
|
4507
|
-
(0,
|
|
4552
|
+
(0, import_class_validator60.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4508
4553
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4509
4554
|
__decorateClass([
|
|
4510
|
-
(0,
|
|
4511
|
-
(0,
|
|
4555
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4556
|
+
(0, import_class_validator60.IsString)({ message: "Description must be a string" })
|
|
4512
4557
|
], CreateLeadDto.prototype, "description", 2);
|
|
4513
4558
|
__decorateClass([
|
|
4514
|
-
(0,
|
|
4559
|
+
(0, import_class_validator60.IsEnum)(CategoryEmumDto, {
|
|
4515
4560
|
message: `Type of category must be one of: ${Object.values(
|
|
4516
4561
|
CategoryEmumDto
|
|
4517
4562
|
).join(", ")}`
|
|
@@ -4532,46 +4577,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4532
4577
|
};
|
|
4533
4578
|
|
|
4534
4579
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4535
|
-
var
|
|
4580
|
+
var import_class_validator61 = require("class-validator");
|
|
4536
4581
|
var CreateAdminRoleDto = class {
|
|
4537
4582
|
};
|
|
4538
4583
|
__decorateClass([
|
|
4539
|
-
(0,
|
|
4540
|
-
(0,
|
|
4584
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4585
|
+
(0, import_class_validator61.IsString)({ message: "Role name must be a string." })
|
|
4541
4586
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4542
4587
|
__decorateClass([
|
|
4543
|
-
(0,
|
|
4544
|
-
(0,
|
|
4588
|
+
(0, import_class_validator61.IsOptional)(),
|
|
4589
|
+
(0, import_class_validator61.IsString)({ message: "Role description must be a string." })
|
|
4545
4590
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4546
4591
|
|
|
4547
4592
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4548
|
-
var
|
|
4593
|
+
var import_class_validator62 = require("class-validator");
|
|
4549
4594
|
var UpdateAdminRoleDto = class {
|
|
4550
4595
|
};
|
|
4551
4596
|
__decorateClass([
|
|
4552
|
-
(0,
|
|
4553
|
-
(0,
|
|
4597
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4598
|
+
(0, import_class_validator62.IsString)({ message: "Role name must be a string." })
|
|
4554
4599
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4555
4600
|
__decorateClass([
|
|
4556
|
-
(0,
|
|
4557
|
-
(0,
|
|
4601
|
+
(0, import_class_validator62.IsOptional)(),
|
|
4602
|
+
(0, import_class_validator62.IsString)({ message: "Role description must be a string." })
|
|
4558
4603
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4559
4604
|
__decorateClass([
|
|
4560
|
-
(0,
|
|
4561
|
-
(0,
|
|
4605
|
+
(0, import_class_validator62.IsOptional)(),
|
|
4606
|
+
(0, import_class_validator62.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4562
4607
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4563
4608
|
|
|
4564
4609
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4565
|
-
var
|
|
4610
|
+
var import_class_validator63 = require("class-validator");
|
|
4566
4611
|
var AttachPermissionsToRoleDto = class {
|
|
4567
4612
|
};
|
|
4568
4613
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4570
|
-
(0,
|
|
4614
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
4615
|
+
(0, import_class_validator63.IsString)({ message: "Role ID must be a string." })
|
|
4571
4616
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4572
4617
|
__decorateClass([
|
|
4573
|
-
(0,
|
|
4574
|
-
(0,
|
|
4618
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
4619
|
+
(0, import_class_validator63.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
4575
4620
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4576
4621
|
|
|
4577
4622
|
// src/adapters/tcp/user.tcp.adapter.ts
|