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