@experts_hub/shared 1.0.282 → 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/entities/freelancer-profile.entity.d.ts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +621 -574
- package/dist/index.mjs +51 -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");
|
|
@@ -1862,6 +1906,9 @@ __decorateClass([
|
|
|
1862
1906
|
__decorateClass([
|
|
1863
1907
|
(0, import_typeorm8.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1864
1908
|
], FreelancerProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1909
|
+
__decorateClass([
|
|
1910
|
+
(0, import_typeorm8.Column)({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
1911
|
+
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
1865
1912
|
FreelancerProfile = __decorateClass([
|
|
1866
1913
|
(0, import_typeorm8.Entity)("freelancer_profiles")
|
|
1867
1914
|
], FreelancerProfile);
|
|
@@ -3521,22 +3568,22 @@ Rating = __decorateClass([
|
|
|
3521
3568
|
var CreateRatingDto = class {
|
|
3522
3569
|
};
|
|
3523
3570
|
__decorateClass([
|
|
3524
|
-
(0,
|
|
3525
|
-
(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" })
|
|
3526
3573
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3527
3574
|
__decorateClass([
|
|
3528
|
-
(0,
|
|
3575
|
+
(0, import_class_validator39.IsEnum)(RatingTypeEnum, {
|
|
3529
3576
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3530
3577
|
})
|
|
3531
3578
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3532
3579
|
__decorateClass([
|
|
3533
|
-
(0,
|
|
3534
|
-
(0,
|
|
3535
|
-
(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" })
|
|
3536
3583
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3537
3584
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3539
|
-
(0,
|
|
3585
|
+
(0, import_class_validator39.IsOptional)(),
|
|
3586
|
+
(0, import_class_validator39.IsString)({ message: "Review must be a string" })
|
|
3540
3587
|
], CreateRatingDto.prototype, "review", 2);
|
|
3541
3588
|
|
|
3542
3589
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3552,57 +3599,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3552
3599
|
};
|
|
3553
3600
|
|
|
3554
3601
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3555
|
-
var
|
|
3602
|
+
var import_class_validator40 = require("class-validator");
|
|
3556
3603
|
var CreateCompanyRoleDto = class {
|
|
3557
3604
|
};
|
|
3558
3605
|
__decorateClass([
|
|
3559
|
-
(0,
|
|
3606
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3560
3607
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3561
3608
|
__decorateClass([
|
|
3562
|
-
(0,
|
|
3609
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3563
3610
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3564
3611
|
__decorateClass([
|
|
3565
|
-
(0,
|
|
3612
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter description" })
|
|
3566
3613
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3567
3614
|
__decorateClass([
|
|
3568
|
-
(0,
|
|
3569
|
-
(0,
|
|
3570
|
-
(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." })
|
|
3571
3618
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3572
3619
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3574
|
-
(0,
|
|
3620
|
+
(0, import_class_validator40.IsOptional)(),
|
|
3621
|
+
(0, import_class_validator40.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3575
3622
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3576
3623
|
|
|
3577
3624
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3578
|
-
var
|
|
3625
|
+
var import_class_validator41 = require("class-validator");
|
|
3579
3626
|
var UpdateCompanyRoleDto = class {
|
|
3580
3627
|
};
|
|
3581
3628
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3629
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter company name." })
|
|
3583
3630
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3584
3631
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3632
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter slug" })
|
|
3586
3633
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3587
3634
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3635
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter description" })
|
|
3589
3636
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3590
3637
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3592
|
-
(0,
|
|
3593
|
-
(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." })
|
|
3594
3641
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3595
3642
|
__decorateClass([
|
|
3596
|
-
(0,
|
|
3597
|
-
(0,
|
|
3643
|
+
(0, import_class_validator41.IsOptional)(),
|
|
3644
|
+
(0, import_class_validator41.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3598
3645
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3599
3646
|
|
|
3600
3647
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3601
|
-
var
|
|
3648
|
+
var import_class_validator42 = require("class-validator");
|
|
3602
3649
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3603
3650
|
};
|
|
3604
3651
|
__decorateClass([
|
|
3605
|
-
(0,
|
|
3652
|
+
(0, import_class_validator42.IsBoolean)()
|
|
3606
3653
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3607
3654
|
|
|
3608
3655
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3612,35 +3659,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3612
3659
|
};
|
|
3613
3660
|
|
|
3614
3661
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3615
|
-
var
|
|
3662
|
+
var import_class_validator43 = require("class-validator");
|
|
3616
3663
|
var import_class_transformer2 = require("class-transformer");
|
|
3617
3664
|
var ExperienceDto = class {
|
|
3618
3665
|
};
|
|
3619
3666
|
__decorateClass([
|
|
3620
|
-
(0,
|
|
3667
|
+
(0, import_class_validator43.IsOptional)()
|
|
3621
3668
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3622
3669
|
__decorateClass([
|
|
3623
|
-
(0,
|
|
3624
|
-
(0,
|
|
3670
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3671
|
+
(0, import_class_validator43.IsString)()
|
|
3625
3672
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3626
3673
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3628
|
-
(0,
|
|
3674
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3675
|
+
(0, import_class_validator43.IsString)()
|
|
3629
3676
|
], ExperienceDto.prototype, "designation", 2);
|
|
3630
3677
|
__decorateClass([
|
|
3631
|
-
(0,
|
|
3632
|
-
(0,
|
|
3678
|
+
(0, import_class_validator43.IsNotEmpty)(),
|
|
3679
|
+
(0, import_class_validator43.IsString)()
|
|
3633
3680
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3634
3681
|
__decorateClass([
|
|
3635
|
-
(0,
|
|
3636
|
-
(0,
|
|
3637
|
-
(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" })
|
|
3638
3685
|
], ExperienceDto.prototype, "description", 2);
|
|
3639
3686
|
var FreelancerExperienceDto = class {
|
|
3640
3687
|
};
|
|
3641
3688
|
__decorateClass([
|
|
3642
|
-
(0,
|
|
3643
|
-
(0,
|
|
3689
|
+
(0, import_class_validator43.ValidateNested)({ each: true }),
|
|
3690
|
+
(0, import_class_validator43.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3644
3691
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3645
3692
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3646
3693
|
|
|
@@ -3657,43 +3704,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3657
3704
|
};
|
|
3658
3705
|
|
|
3659
3706
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3660
|
-
var
|
|
3707
|
+
var import_class_validator44 = require("class-validator");
|
|
3661
3708
|
var CreateCompanyMemberDto = class {
|
|
3662
3709
|
};
|
|
3663
3710
|
__decorateClass([
|
|
3664
|
-
(0,
|
|
3711
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter name." })
|
|
3665
3712
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3666
3713
|
__decorateClass([
|
|
3667
|
-
(0,
|
|
3714
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter email" })
|
|
3668
3715
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3669
3716
|
__decorateClass([
|
|
3670
|
-
(0,
|
|
3671
|
-
(0,
|
|
3672
|
-
(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." })
|
|
3673
3720
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3674
3721
|
|
|
3675
3722
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3676
|
-
var
|
|
3723
|
+
var import_class_validator45 = require("class-validator");
|
|
3677
3724
|
var UpdateCompanyMemberDto = class {
|
|
3678
3725
|
};
|
|
3679
3726
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3727
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter name." })
|
|
3681
3728
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3682
3729
|
__decorateClass([
|
|
3683
|
-
(0,
|
|
3730
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter email" })
|
|
3684
3731
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3685
3732
|
__decorateClass([
|
|
3686
|
-
(0,
|
|
3687
|
-
(0,
|
|
3688
|
-
(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." })
|
|
3689
3736
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3690
3737
|
|
|
3691
3738
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3692
|
-
var
|
|
3739
|
+
var import_class_validator46 = require("class-validator");
|
|
3693
3740
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3694
3741
|
};
|
|
3695
3742
|
__decorateClass([
|
|
3696
|
-
(0,
|
|
3743
|
+
(0, import_class_validator46.IsBoolean)()
|
|
3697
3744
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3698
3745
|
|
|
3699
3746
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3703,31 +3750,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3703
3750
|
};
|
|
3704
3751
|
|
|
3705
3752
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3706
|
-
var
|
|
3753
|
+
var import_class_validator47 = require("class-validator");
|
|
3707
3754
|
var import_class_transformer3 = require("class-transformer");
|
|
3708
3755
|
var EducationDto = class {
|
|
3709
3756
|
};
|
|
3710
3757
|
__decorateClass([
|
|
3711
|
-
(0,
|
|
3758
|
+
(0, import_class_validator47.IsOptional)()
|
|
3712
3759
|
], EducationDto.prototype, "uuid", 2);
|
|
3713
3760
|
__decorateClass([
|
|
3714
|
-
(0,
|
|
3715
|
-
(0,
|
|
3761
|
+
(0, import_class_validator47.IsString)(),
|
|
3762
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3716
3763
|
], EducationDto.prototype, "degree", 2);
|
|
3717
3764
|
__decorateClass([
|
|
3718
|
-
(0,
|
|
3719
|
-
(0,
|
|
3765
|
+
(0, import_class_validator47.IsString)(),
|
|
3766
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter University " })
|
|
3720
3767
|
], EducationDto.prototype, "university", 2);
|
|
3721
3768
|
__decorateClass([
|
|
3722
|
-
(0,
|
|
3723
|
-
(0,
|
|
3769
|
+
(0, import_class_validator47.IsString)(),
|
|
3770
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3724
3771
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3725
3772
|
var FreelancerEducationDto = class {
|
|
3726
3773
|
};
|
|
3727
3774
|
__decorateClass([
|
|
3728
|
-
(0,
|
|
3729
|
-
(0,
|
|
3730
|
-
(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 }),
|
|
3731
3778
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3732
3779
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3733
3780
|
|
|
@@ -3738,67 +3785,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3738
3785
|
};
|
|
3739
3786
|
|
|
3740
3787
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3741
|
-
var
|
|
3788
|
+
var import_class_validator48 = require("class-validator");
|
|
3742
3789
|
var import_class_transformer4 = require("class-transformer");
|
|
3743
3790
|
var ProjectDto = class {
|
|
3744
3791
|
};
|
|
3745
3792
|
__decorateClass([
|
|
3746
|
-
(0,
|
|
3793
|
+
(0, import_class_validator48.IsOptional)()
|
|
3747
3794
|
], ProjectDto.prototype, "uuid", 2);
|
|
3748
3795
|
__decorateClass([
|
|
3749
|
-
(0,
|
|
3750
|
-
(0,
|
|
3796
|
+
(0, import_class_validator48.IsString)(),
|
|
3797
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3751
3798
|
], ProjectDto.prototype, "projectName", 2);
|
|
3752
3799
|
__decorateClass([
|
|
3753
|
-
(0,
|
|
3754
|
-
(0,
|
|
3800
|
+
(0, import_class_validator48.IsDateString)(),
|
|
3801
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3755
3802
|
], ProjectDto.prototype, "startDate", 2);
|
|
3756
3803
|
__decorateClass([
|
|
3757
|
-
(0,
|
|
3758
|
-
(0,
|
|
3804
|
+
(0, import_class_validator48.IsDateString)(),
|
|
3805
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3759
3806
|
], ProjectDto.prototype, "endDate", 2);
|
|
3760
3807
|
__decorateClass([
|
|
3761
|
-
(0,
|
|
3762
|
-
(0,
|
|
3808
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3809
|
+
(0, import_class_validator48.IsString)()
|
|
3763
3810
|
], ProjectDto.prototype, "clientName", 2);
|
|
3764
3811
|
__decorateClass([
|
|
3765
|
-
(0,
|
|
3766
|
-
(0,
|
|
3812
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3813
|
+
(0, import_class_validator48.IsString)()
|
|
3767
3814
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3768
3815
|
__decorateClass([
|
|
3769
|
-
(0,
|
|
3770
|
-
(0,
|
|
3771
|
-
(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" })
|
|
3772
3819
|
], ProjectDto.prototype, "description", 2);
|
|
3773
3820
|
var CaseStudyDto = class {
|
|
3774
3821
|
};
|
|
3775
3822
|
__decorateClass([
|
|
3776
|
-
(0,
|
|
3823
|
+
(0, import_class_validator48.IsOptional)()
|
|
3777
3824
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3778
3825
|
__decorateClass([
|
|
3779
|
-
(0,
|
|
3780
|
-
(0,
|
|
3826
|
+
(0, import_class_validator48.IsString)(),
|
|
3827
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3781
3828
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3782
3829
|
__decorateClass([
|
|
3783
|
-
(0,
|
|
3784
|
-
(0,
|
|
3830
|
+
(0, import_class_validator48.IsString)(),
|
|
3831
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
3785
3832
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3786
3833
|
__decorateClass([
|
|
3787
|
-
(0,
|
|
3788
|
-
(0,
|
|
3789
|
-
(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" })
|
|
3790
3837
|
], CaseStudyDto.prototype, "description", 2);
|
|
3791
3838
|
var FreelancerProjectDto = class {
|
|
3792
3839
|
};
|
|
3793
3840
|
__decorateClass([
|
|
3794
|
-
(0,
|
|
3795
|
-
(0,
|
|
3796
|
-
(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 }),
|
|
3797
3844
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3798
3845
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3799
3846
|
__decorateClass([
|
|
3800
|
-
(0,
|
|
3801
|
-
(0,
|
|
3847
|
+
(0, import_class_validator48.IsArray)(),
|
|
3848
|
+
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
3802
3849
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3803
3850
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3804
3851
|
|
|
@@ -3814,7 +3861,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3814
3861
|
};
|
|
3815
3862
|
|
|
3816
3863
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3817
|
-
var
|
|
3864
|
+
var import_class_validator49 = require("class-validator");
|
|
3818
3865
|
var import_class_transformer5 = require("class-transformer");
|
|
3819
3866
|
var FreelancerSkillDto = class {
|
|
3820
3867
|
constructor() {
|
|
@@ -3824,22 +3871,22 @@ var FreelancerSkillDto = class {
|
|
|
3824
3871
|
}
|
|
3825
3872
|
};
|
|
3826
3873
|
__decorateClass([
|
|
3827
|
-
(0,
|
|
3828
|
-
(0,
|
|
3874
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3875
|
+
(0, import_class_validator49.IsArray)(),
|
|
3829
3876
|
(0, import_class_transformer5.Type)(() => String),
|
|
3830
|
-
(0,
|
|
3877
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3831
3878
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3832
3879
|
__decorateClass([
|
|
3833
|
-
(0,
|
|
3834
|
-
(0,
|
|
3880
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3881
|
+
(0, import_class_validator49.IsArray)(),
|
|
3835
3882
|
(0, import_class_transformer5.Type)(() => String),
|
|
3836
|
-
(0,
|
|
3883
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3837
3884
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3838
3885
|
__decorateClass([
|
|
3839
|
-
(0,
|
|
3840
|
-
(0,
|
|
3886
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3887
|
+
(0, import_class_validator49.IsArray)(),
|
|
3841
3888
|
(0, import_class_transformer5.Type)(() => String),
|
|
3842
|
-
(0,
|
|
3889
|
+
(0, import_class_validator49.IsString)({ each: true })
|
|
3843
3890
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3844
3891
|
|
|
3845
3892
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3855,7 +3902,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3855
3902
|
};
|
|
3856
3903
|
|
|
3857
3904
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3858
|
-
var
|
|
3905
|
+
var import_class_validator50 = require("class-validator");
|
|
3859
3906
|
var import_class_transformer6 = require("class-transformer");
|
|
3860
3907
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3861
3908
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3872,84 +3919,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3872
3919
|
var CreateFreelancerDto = class {
|
|
3873
3920
|
};
|
|
3874
3921
|
__decorateClass([
|
|
3875
|
-
(0,
|
|
3876
|
-
(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" })
|
|
3877
3924
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3878
3925
|
__decorateClass([
|
|
3879
|
-
(0,
|
|
3926
|
+
(0, import_class_validator50.IsEmail)({}, { message: "Invalid email address" })
|
|
3880
3927
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3881
3928
|
__decorateClass([
|
|
3882
|
-
(0,
|
|
3929
|
+
(0, import_class_validator50.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3883
3930
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3884
3931
|
__decorateClass([
|
|
3885
|
-
(0,
|
|
3932
|
+
(0, import_class_validator50.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3886
3933
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3887
3934
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
3889
|
-
(0,
|
|
3890
|
-
(0,
|
|
3891
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
3892
3939
|
message: "Password must include letters, numbers and symbols."
|
|
3893
3940
|
})
|
|
3894
3941
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3895
3942
|
__decorateClass([
|
|
3896
|
-
(0,
|
|
3943
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3897
3944
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3898
3945
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3899
3946
|
__decorateClass([
|
|
3900
|
-
(0,
|
|
3947
|
+
(0, import_class_validator50.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3901
3948
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3902
3949
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3903
3950
|
__decorateClass([
|
|
3904
|
-
(0,
|
|
3951
|
+
(0, import_class_validator50.IsEnum)(NatureOfWorkEnum, {
|
|
3905
3952
|
message: `Nature of work must be one of: ${Object.values(
|
|
3906
3953
|
NatureOfWorkEnum
|
|
3907
3954
|
).join(", ")}`
|
|
3908
3955
|
})
|
|
3909
3956
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3910
3957
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
3912
|
-
(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" }),
|
|
3913
3960
|
(0, import_class_transformer6.Type)(() => Number)
|
|
3914
3961
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3915
3962
|
__decorateClass([
|
|
3916
|
-
(0,
|
|
3963
|
+
(0, import_class_validator50.IsEnum)(ModeOfWorkEnum, {
|
|
3917
3964
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3918
3965
|
", "
|
|
3919
3966
|
)}`
|
|
3920
3967
|
})
|
|
3921
3968
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3922
3969
|
__decorateClass([
|
|
3923
|
-
(0,
|
|
3970
|
+
(0, import_class_validator50.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3924
3971
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3925
3972
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3926
3973
|
__decorateClass([
|
|
3927
|
-
(0,
|
|
3928
|
-
(0,
|
|
3974
|
+
(0, import_class_validator50.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3975
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3929
3976
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3930
3977
|
__decorateClass([
|
|
3931
|
-
(0,
|
|
3932
|
-
(0,
|
|
3978
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3979
|
+
(0, import_class_validator50.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3933
3980
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3934
3981
|
__decorateClass([
|
|
3935
|
-
(0,
|
|
3936
|
-
(0,
|
|
3982
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3983
|
+
(0, import_class_validator50.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3937
3984
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3938
3985
|
__decorateClass([
|
|
3939
|
-
(0,
|
|
3940
|
-
(0,
|
|
3986
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3987
|
+
(0, import_class_validator50.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3941
3988
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3942
3989
|
__decorateClass([
|
|
3943
|
-
(0,
|
|
3944
|
-
(0,
|
|
3990
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3991
|
+
(0, import_class_validator50.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3945
3992
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3946
3993
|
__decorateClass([
|
|
3947
|
-
(0,
|
|
3948
|
-
(0,
|
|
3994
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3995
|
+
(0, import_class_validator50.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3949
3996
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3950
3997
|
|
|
3951
3998
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3952
|
-
var
|
|
3999
|
+
var import_class_validator51 = require("class-validator");
|
|
3953
4000
|
var import_class_transformer7 = require("class-transformer");
|
|
3954
4001
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3955
4002
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3966,85 +4013,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3966
4013
|
var UpdateFreelancerDto = class {
|
|
3967
4014
|
};
|
|
3968
4015
|
__decorateClass([
|
|
3969
|
-
(0,
|
|
3970
|
-
(0,
|
|
3971
|
-
(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" })
|
|
3972
4019
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3973
4020
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
3975
|
-
(0,
|
|
4021
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4022
|
+
(0, import_class_validator51.IsEmail)({}, { message: "Invalid email address" })
|
|
3976
4023
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3977
4024
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
3979
|
-
(0,
|
|
4025
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4026
|
+
(0, import_class_validator51.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3980
4027
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3981
4028
|
__decorateClass([
|
|
3982
|
-
(0,
|
|
3983
|
-
(0,
|
|
4029
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4030
|
+
(0, import_class_validator51.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3984
4031
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3985
4032
|
__decorateClass([
|
|
3986
|
-
(0,
|
|
3987
|
-
(0,
|
|
3988
|
-
(0,
|
|
3989
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
3990
4037
|
message: "Password must include letters, numbers and symbols."
|
|
3991
4038
|
})
|
|
3992
4039
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3993
4040
|
__decorateClass([
|
|
3994
|
-
(0,
|
|
3995
|
-
(0,
|
|
4041
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4042
|
+
(0, import_class_validator51.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3996
4043
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3997
4044
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3998
4045
|
__decorateClass([
|
|
3999
|
-
(0,
|
|
4000
|
-
(0,
|
|
4046
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4047
|
+
(0, import_class_validator51.IsEnum)(NatureOfWorkEnum2, {
|
|
4001
4048
|
message: `Nature of work must be one of: ${Object.values(
|
|
4002
4049
|
NatureOfWorkEnum2
|
|
4003
4050
|
).join(", ")}`
|
|
4004
4051
|
})
|
|
4005
4052
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4006
4053
|
__decorateClass([
|
|
4007
|
-
(0,
|
|
4008
|
-
(0,
|
|
4009
|
-
(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" }),
|
|
4010
4057
|
(0, import_class_transformer7.Type)(() => Number)
|
|
4011
4058
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4012
4059
|
__decorateClass([
|
|
4013
|
-
(0,
|
|
4014
|
-
(0,
|
|
4060
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4061
|
+
(0, import_class_validator51.IsEnum)(ModeOfWorkEnum2, {
|
|
4015
4062
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4016
4063
|
", "
|
|
4017
4064
|
)}`
|
|
4018
4065
|
})
|
|
4019
4066
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4020
4067
|
__decorateClass([
|
|
4021
|
-
(0,
|
|
4022
|
-
(0,
|
|
4068
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4069
|
+
(0, import_class_validator51.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4023
4070
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4024
4071
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4025
4072
|
__decorateClass([
|
|
4026
|
-
(0,
|
|
4027
|
-
(0,
|
|
4073
|
+
(0, import_class_validator51.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4074
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4028
4075
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4029
4076
|
__decorateClass([
|
|
4030
|
-
(0,
|
|
4031
|
-
(0,
|
|
4077
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4078
|
+
(0, import_class_validator51.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4032
4079
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4033
4080
|
__decorateClass([
|
|
4034
|
-
(0,
|
|
4035
|
-
(0,
|
|
4081
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4082
|
+
(0, import_class_validator51.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4036
4083
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4037
4084
|
__decorateClass([
|
|
4038
|
-
(0,
|
|
4039
|
-
(0,
|
|
4085
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4086
|
+
(0, import_class_validator51.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4040
4087
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4041
4088
|
__decorateClass([
|
|
4042
|
-
(0,
|
|
4043
|
-
(0,
|
|
4089
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4090
|
+
(0, import_class_validator51.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4044
4091
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4045
4092
|
__decorateClass([
|
|
4046
|
-
(0,
|
|
4047
|
-
(0,
|
|
4093
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4094
|
+
(0, import_class_validator51.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4048
4095
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4049
4096
|
|
|
4050
4097
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -4061,7 +4108,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4061
4108
|
};
|
|
4062
4109
|
|
|
4063
4110
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4064
|
-
var
|
|
4111
|
+
var import_class_validator52 = require("class-validator");
|
|
4065
4112
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4066
4113
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4067
4114
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4077,69 +4124,69 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4077
4124
|
var CreateClientDto = class {
|
|
4078
4125
|
};
|
|
4079
4126
|
__decorateClass([
|
|
4080
|
-
(0,
|
|
4081
|
-
(0,
|
|
4127
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4128
|
+
(0, import_class_validator52.IsString)()
|
|
4082
4129
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4083
4130
|
__decorateClass([
|
|
4084
|
-
(0,
|
|
4085
|
-
(0,
|
|
4131
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4132
|
+
(0, import_class_validator52.IsString)()
|
|
4086
4133
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4087
4134
|
__decorateClass([
|
|
4088
|
-
(0,
|
|
4089
|
-
(0,
|
|
4135
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter email." }),
|
|
4136
|
+
(0, import_class_validator52.IsEmail)()
|
|
4090
4137
|
], CreateClientDto.prototype, "email", 2);
|
|
4091
4138
|
__decorateClass([
|
|
4092
|
-
(0,
|
|
4093
|
-
(0,
|
|
4094
|
-
(0,
|
|
4095
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4096
4143
|
message: "Password must include letters, numbers and symbols."
|
|
4097
4144
|
})
|
|
4098
4145
|
], CreateClientDto.prototype, "password", 2);
|
|
4099
4146
|
__decorateClass([
|
|
4100
|
-
(0,
|
|
4147
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4101
4148
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4102
4149
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4103
4150
|
__decorateClass([
|
|
4104
|
-
(0,
|
|
4105
|
-
(0,
|
|
4151
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4152
|
+
(0, import_class_validator52.IsString)()
|
|
4106
4153
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4107
4154
|
__decorateClass([
|
|
4108
|
-
(0,
|
|
4109
|
-
(0,
|
|
4155
|
+
(0, import_class_validator52.IsArray)({ message: "Skills should be an array." }),
|
|
4156
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter skills." })
|
|
4110
4157
|
], CreateClientDto.prototype, "skills", 2);
|
|
4111
4158
|
__decorateClass([
|
|
4112
|
-
(0,
|
|
4113
|
-
(0,
|
|
4159
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4160
|
+
(0, import_class_validator52.IsString)()
|
|
4114
4161
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4115
4162
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4117
|
-
(0,
|
|
4163
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4164
|
+
(0, import_class_validator52.IsEnum)(CreateClientHiringTypeEnum)
|
|
4118
4165
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4119
4166
|
__decorateClass([
|
|
4120
|
-
(0,
|
|
4121
|
-
(0,
|
|
4167
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4168
|
+
(0, import_class_validator52.IsEnum)(CreateClientHiringModeEnum)
|
|
4122
4169
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4123
4170
|
__decorateClass([
|
|
4124
|
-
(0,
|
|
4125
|
-
(0,
|
|
4171
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4172
|
+
(0, import_class_validator52.IsString)()
|
|
4126
4173
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4127
4174
|
__decorateClass([
|
|
4128
|
-
(0,
|
|
4129
|
-
(0,
|
|
4175
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4176
|
+
(0, import_class_validator52.IsString)()
|
|
4130
4177
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4131
4178
|
|
|
4132
4179
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4133
|
-
var
|
|
4180
|
+
var import_class_validator53 = require("class-validator");
|
|
4134
4181
|
var UpdateClientAccountStatusDto = class {
|
|
4135
4182
|
};
|
|
4136
4183
|
__decorateClass([
|
|
4137
|
-
(0,
|
|
4138
|
-
(0,
|
|
4184
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter account status." }),
|
|
4185
|
+
(0, import_class_validator53.IsString)()
|
|
4139
4186
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4140
4187
|
|
|
4141
4188
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4142
|
-
var
|
|
4189
|
+
var import_class_validator54 = require("class-validator");
|
|
4143
4190
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4144
4191
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4145
4192
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4155,52 +4202,52 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4155
4202
|
var UpdateClientDto = class {
|
|
4156
4203
|
};
|
|
4157
4204
|
__decorateClass([
|
|
4158
|
-
(0,
|
|
4159
|
-
(0,
|
|
4205
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4206
|
+
(0, import_class_validator54.IsString)()
|
|
4160
4207
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4161
4208
|
__decorateClass([
|
|
4162
|
-
(0,
|
|
4163
|
-
(0,
|
|
4209
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4210
|
+
(0, import_class_validator54.IsString)()
|
|
4164
4211
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4165
4212
|
__decorateClass([
|
|
4166
|
-
(0,
|
|
4167
|
-
(0,
|
|
4213
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter email." }),
|
|
4214
|
+
(0, import_class_validator54.IsEmail)()
|
|
4168
4215
|
], UpdateClientDto.prototype, "email", 2);
|
|
4169
4216
|
__decorateClass([
|
|
4170
|
-
(0,
|
|
4171
|
-
(0,
|
|
4172
|
-
(0,
|
|
4173
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4174
4221
|
message: "Password must include letters, numbers and symbols."
|
|
4175
4222
|
})
|
|
4176
4223
|
], UpdateClientDto.prototype, "password", 2);
|
|
4177
4224
|
__decorateClass([
|
|
4178
|
-
(0,
|
|
4179
|
-
(0,
|
|
4225
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4226
|
+
(0, import_class_validator54.IsString)()
|
|
4180
4227
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4181
4228
|
__decorateClass([
|
|
4182
|
-
(0,
|
|
4183
|
-
(0,
|
|
4229
|
+
(0, import_class_validator54.IsArray)({ message: "Skills should be an array." }),
|
|
4230
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter skills." })
|
|
4184
4231
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4185
4232
|
__decorateClass([
|
|
4186
|
-
(0,
|
|
4187
|
-
(0,
|
|
4233
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4234
|
+
(0, import_class_validator54.IsString)()
|
|
4188
4235
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4189
4236
|
__decorateClass([
|
|
4190
|
-
(0,
|
|
4191
|
-
(0,
|
|
4237
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4238
|
+
(0, import_class_validator54.IsEnum)(UpdateClientHiringTypeEnum)
|
|
4192
4239
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4193
4240
|
__decorateClass([
|
|
4194
|
-
(0,
|
|
4195
|
-
(0,
|
|
4241
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4242
|
+
(0, import_class_validator54.IsEnum)(UpdateClientHiringModeEnum)
|
|
4196
4243
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4197
4244
|
__decorateClass([
|
|
4198
|
-
(0,
|
|
4199
|
-
(0,
|
|
4245
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4246
|
+
(0, import_class_validator54.IsString)()
|
|
4200
4247
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4201
4248
|
__decorateClass([
|
|
4202
|
-
(0,
|
|
4203
|
-
(0,
|
|
4249
|
+
(0, import_class_validator54.IsOptional)(),
|
|
4250
|
+
(0, import_class_validator54.IsString)()
|
|
4204
4251
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4205
4252
|
|
|
4206
4253
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4210,7 +4257,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4210
4257
|
};
|
|
4211
4258
|
|
|
4212
4259
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4213
|
-
var
|
|
4260
|
+
var import_class_validator55 = require("class-validator");
|
|
4214
4261
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4215
4262
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4216
4263
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4221,16 +4268,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4221
4268
|
var FreelancerDeclarationDto = class {
|
|
4222
4269
|
};
|
|
4223
4270
|
__decorateClass([
|
|
4224
|
-
(0,
|
|
4225
|
-
(0,
|
|
4271
|
+
(0, import_class_validator55.IsOptional)(),
|
|
4272
|
+
(0, import_class_validator55.IsString)({ message: "UUID must be a string" })
|
|
4226
4273
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4227
4274
|
__decorateClass([
|
|
4228
|
-
(0,
|
|
4275
|
+
(0, import_class_validator55.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4229
4276
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4230
4277
|
__decorateClass([
|
|
4231
|
-
(0,
|
|
4232
|
-
(0,
|
|
4233
|
-
(0,
|
|
4278
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
4279
|
+
(0, import_class_validator55.IsString)(),
|
|
4280
|
+
(0, import_class_validator55.IsIn)([
|
|
4234
4281
|
"true"
|
|
4235
4282
|
])
|
|
4236
4283
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -4245,36 +4292,36 @@ var CMS_PATTERNS = {
|
|
|
4245
4292
|
};
|
|
4246
4293
|
|
|
4247
4294
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4248
|
-
var
|
|
4295
|
+
var import_class_validator56 = require("class-validator");
|
|
4249
4296
|
var CreateCmsDto = class {
|
|
4250
4297
|
};
|
|
4251
4298
|
__decorateClass([
|
|
4252
|
-
(0,
|
|
4299
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter name." })
|
|
4253
4300
|
], CreateCmsDto.prototype, "title", 2);
|
|
4254
4301
|
__decorateClass([
|
|
4255
|
-
(0,
|
|
4302
|
+
(0, import_class_validator56.IsOptional)()
|
|
4256
4303
|
], CreateCmsDto.prototype, "content", 2);
|
|
4257
4304
|
__decorateClass([
|
|
4258
|
-
(0,
|
|
4259
|
-
(0,
|
|
4305
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4306
|
+
(0, import_class_validator56.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4260
4307
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4261
4308
|
|
|
4262
4309
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4263
|
-
var
|
|
4310
|
+
var import_class_validator57 = require("class-validator");
|
|
4264
4311
|
var UpdateCmsDto = class {
|
|
4265
4312
|
};
|
|
4266
4313
|
__decorateClass([
|
|
4267
|
-
(0,
|
|
4314
|
+
(0, import_class_validator57.IsOptional)()
|
|
4268
4315
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4269
4316
|
__decorateClass([
|
|
4270
|
-
(0,
|
|
4317
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please enter name." })
|
|
4271
4318
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4272
4319
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4320
|
+
(0, import_class_validator57.IsOptional)()
|
|
4274
4321
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4275
4322
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4277
|
-
(0,
|
|
4323
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4324
|
+
(0, import_class_validator57.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4278
4325
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4279
4326
|
|
|
4280
4327
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4302,7 +4349,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4302
4349
|
|
|
4303
4350
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4304
4351
|
var import_class_transformer8 = require("class-transformer");
|
|
4305
|
-
var
|
|
4352
|
+
var import_class_validator58 = require("class-validator");
|
|
4306
4353
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4307
4354
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4308
4355
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4318,79 +4365,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4318
4365
|
var AdminCreateJobInformationDto = class {
|
|
4319
4366
|
};
|
|
4320
4367
|
__decorateClass([
|
|
4321
|
-
(0,
|
|
4322
|
-
(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." })
|
|
4323
4370
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4324
4371
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4326
|
-
(0,
|
|
4372
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4373
|
+
(0, import_class_validator58.IsString)({ message: "Note must be a string." })
|
|
4327
4374
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4328
4375
|
__decorateClass([
|
|
4329
|
-
(0,
|
|
4330
|
-
(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." }),
|
|
4331
4378
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4332
|
-
(0,
|
|
4379
|
+
(0, import_class_validator58.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4333
4380
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4334
4381
|
__decorateClass([
|
|
4335
|
-
(0,
|
|
4336
|
-
(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." })
|
|
4337
4384
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4338
4385
|
__decorateClass([
|
|
4339
|
-
(0,
|
|
4386
|
+
(0, import_class_validator58.IsEnum)(JobLocationEnumDto, {
|
|
4340
4387
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
4341
4388
|
})
|
|
4342
4389
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4343
4390
|
__decorateClass([
|
|
4344
|
-
(0,
|
|
4391
|
+
(0, import_class_validator58.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4345
4392
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
4346
4393
|
})
|
|
4347
4394
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4348
4395
|
__decorateClass([
|
|
4349
|
-
(0,
|
|
4350
|
-
(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." })
|
|
4351
4398
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4352
4399
|
__decorateClass([
|
|
4353
|
-
(0,
|
|
4354
|
-
(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." })
|
|
4355
4402
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4356
4403
|
__decorateClass([
|
|
4357
|
-
(0,
|
|
4358
|
-
(0,
|
|
4404
|
+
(0, import_class_validator58.IsString)({ message: "Currency must be a string." }),
|
|
4405
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Currency is required." })
|
|
4359
4406
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4360
4407
|
__decorateClass([
|
|
4361
4408
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4362
|
-
(0,
|
|
4409
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4363
4410
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4364
4411
|
__decorateClass([
|
|
4365
4412
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4366
|
-
(0,
|
|
4413
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4367
4414
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4368
4415
|
__decorateClass([
|
|
4369
|
-
(0,
|
|
4416
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4370
4417
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4371
4418
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4419
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4373
4420
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4374
4421
|
__decorateClass([
|
|
4375
|
-
(0,
|
|
4376
|
-
(0,
|
|
4422
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4423
|
+
(0, import_class_validator58.IsString)({ message: "Additional comment must be a string." })
|
|
4377
4424
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4378
4425
|
__decorateClass([
|
|
4379
|
-
(0,
|
|
4426
|
+
(0, import_class_validator58.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4380
4427
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4381
4428
|
__decorateClass([
|
|
4382
|
-
(0,
|
|
4429
|
+
(0, import_class_validator58.IsInt)({ message: "State ID must be a valid integer." })
|
|
4383
4430
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4384
4431
|
__decorateClass([
|
|
4385
|
-
(0,
|
|
4432
|
+
(0, import_class_validator58.IsInt)({ message: "City ID must be a valid integer." })
|
|
4386
4433
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4387
4434
|
__decorateClass([
|
|
4388
|
-
(0,
|
|
4435
|
+
(0, import_class_validator58.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4389
4436
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4390
4437
|
|
|
4391
4438
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4392
4439
|
var import_class_transformer9 = require("class-transformer");
|
|
4393
|
-
var
|
|
4440
|
+
var import_class_validator59 = require("class-validator");
|
|
4394
4441
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4395
4442
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4396
4443
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4406,74 +4453,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4406
4453
|
var AdminUpdateJobInformationDto = class {
|
|
4407
4454
|
};
|
|
4408
4455
|
__decorateClass([
|
|
4409
|
-
(0,
|
|
4410
|
-
(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." })
|
|
4411
4458
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4412
4459
|
__decorateClass([
|
|
4413
|
-
(0,
|
|
4414
|
-
(0,
|
|
4460
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4461
|
+
(0, import_class_validator59.IsString)({ message: "Note must be a string." })
|
|
4415
4462
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4416
4463
|
__decorateClass([
|
|
4417
|
-
(0,
|
|
4418
|
-
(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." }),
|
|
4419
4466
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4420
|
-
(0,
|
|
4467
|
+
(0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4421
4468
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4422
4469
|
__decorateClass([
|
|
4423
|
-
(0,
|
|
4424
|
-
(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." })
|
|
4425
4472
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4426
4473
|
__decorateClass([
|
|
4427
|
-
(0,
|
|
4474
|
+
(0, import_class_validator59.IsEnum)(JobLocationEnums, {
|
|
4428
4475
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4429
4476
|
})
|
|
4430
4477
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4431
4478
|
__decorateClass([
|
|
4432
|
-
(0,
|
|
4479
|
+
(0, import_class_validator59.IsEnum)(TypeOfEmploymentEnums, {
|
|
4433
4480
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4434
4481
|
})
|
|
4435
4482
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4436
4483
|
__decorateClass([
|
|
4437
|
-
(0,
|
|
4438
|
-
(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." })
|
|
4439
4486
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4440
4487
|
__decorateClass([
|
|
4441
|
-
(0,
|
|
4442
|
-
(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." })
|
|
4443
4490
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4444
4491
|
__decorateClass([
|
|
4445
|
-
(0,
|
|
4446
|
-
(0,
|
|
4492
|
+
(0, import_class_validator59.IsString)({ message: "Currency must be a string." }),
|
|
4493
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Currency is required." })
|
|
4447
4494
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4448
4495
|
__decorateClass([
|
|
4449
4496
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4450
|
-
(0,
|
|
4497
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4451
4498
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4452
4499
|
__decorateClass([
|
|
4453
4500
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4454
|
-
(0,
|
|
4501
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4455
4502
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4456
4503
|
__decorateClass([
|
|
4457
|
-
(0,
|
|
4504
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4458
4505
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4459
4506
|
__decorateClass([
|
|
4460
|
-
(0,
|
|
4507
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4461
4508
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4462
4509
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4464
|
-
(0,
|
|
4510
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4511
|
+
(0, import_class_validator59.IsString)({ message: "Additional comment must be a string." })
|
|
4465
4512
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4466
4513
|
__decorateClass([
|
|
4467
|
-
(0,
|
|
4514
|
+
(0, import_class_validator59.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4468
4515
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4469
4516
|
__decorateClass([
|
|
4470
|
-
(0,
|
|
4517
|
+
(0, import_class_validator59.IsInt)({ message: "State ID must be a valid integer." })
|
|
4471
4518
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4472
4519
|
__decorateClass([
|
|
4473
|
-
(0,
|
|
4520
|
+
(0, import_class_validator59.IsInt)({ message: "City ID must be a valid integer." })
|
|
4474
4521
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4475
4522
|
__decorateClass([
|
|
4476
|
-
(0,
|
|
4523
|
+
(0, import_class_validator59.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4477
4524
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4478
4525
|
|
|
4479
4526
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4483,7 +4530,7 @@ var LEAD_PATTERN = {
|
|
|
4483
4530
|
};
|
|
4484
4531
|
|
|
4485
4532
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4486
|
-
var
|
|
4533
|
+
var import_class_validator60 = require("class-validator");
|
|
4487
4534
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4488
4535
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4489
4536
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4492,23 +4539,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4492
4539
|
var CreateLeadDto = class {
|
|
4493
4540
|
};
|
|
4494
4541
|
__decorateClass([
|
|
4495
|
-
(0,
|
|
4542
|
+
(0, import_class_validator60.IsString)({ message: "Name must be a string" })
|
|
4496
4543
|
], CreateLeadDto.prototype, "name", 2);
|
|
4497
4544
|
__decorateClass([
|
|
4498
|
-
(0,
|
|
4545
|
+
(0, import_class_validator60.IsEmail)({}, { message: "Invalid email address" })
|
|
4499
4546
|
], CreateLeadDto.prototype, "email", 2);
|
|
4500
4547
|
__decorateClass([
|
|
4501
|
-
(0,
|
|
4548
|
+
(0, import_class_validator60.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4502
4549
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4503
4550
|
__decorateClass([
|
|
4504
|
-
(0,
|
|
4551
|
+
(0, import_class_validator60.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4505
4552
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4506
4553
|
__decorateClass([
|
|
4507
|
-
(0,
|
|
4508
|
-
(0,
|
|
4554
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4555
|
+
(0, import_class_validator60.IsString)({ message: "Description must be a string" })
|
|
4509
4556
|
], CreateLeadDto.prototype, "description", 2);
|
|
4510
4557
|
__decorateClass([
|
|
4511
|
-
(0,
|
|
4558
|
+
(0, import_class_validator60.IsEnum)(CategoryEmumDto, {
|
|
4512
4559
|
message: `Type of category must be one of: ${Object.values(
|
|
4513
4560
|
CategoryEmumDto
|
|
4514
4561
|
).join(", ")}`
|
|
@@ -4529,46 +4576,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4529
4576
|
};
|
|
4530
4577
|
|
|
4531
4578
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4532
|
-
var
|
|
4579
|
+
var import_class_validator61 = require("class-validator");
|
|
4533
4580
|
var CreateAdminRoleDto = class {
|
|
4534
4581
|
};
|
|
4535
4582
|
__decorateClass([
|
|
4536
|
-
(0,
|
|
4537
|
-
(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." })
|
|
4538
4585
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4539
4586
|
__decorateClass([
|
|
4540
|
-
(0,
|
|
4541
|
-
(0,
|
|
4587
|
+
(0, import_class_validator61.IsOptional)(),
|
|
4588
|
+
(0, import_class_validator61.IsString)({ message: "Role description must be a string." })
|
|
4542
4589
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4543
4590
|
|
|
4544
4591
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4545
|
-
var
|
|
4592
|
+
var import_class_validator62 = require("class-validator");
|
|
4546
4593
|
var UpdateAdminRoleDto = class {
|
|
4547
4594
|
};
|
|
4548
4595
|
__decorateClass([
|
|
4549
|
-
(0,
|
|
4550
|
-
(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." })
|
|
4551
4598
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4552
4599
|
__decorateClass([
|
|
4553
|
-
(0,
|
|
4554
|
-
(0,
|
|
4600
|
+
(0, import_class_validator62.IsOptional)(),
|
|
4601
|
+
(0, import_class_validator62.IsString)({ message: "Role description must be a string." })
|
|
4555
4602
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4556
4603
|
__decorateClass([
|
|
4557
|
-
(0,
|
|
4558
|
-
(0,
|
|
4604
|
+
(0, import_class_validator62.IsOptional)(),
|
|
4605
|
+
(0, import_class_validator62.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4559
4606
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4560
4607
|
|
|
4561
4608
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4562
|
-
var
|
|
4609
|
+
var import_class_validator63 = require("class-validator");
|
|
4563
4610
|
var AttachPermissionsToRoleDto = class {
|
|
4564
4611
|
};
|
|
4565
4612
|
__decorateClass([
|
|
4566
|
-
(0,
|
|
4567
|
-
(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." })
|
|
4568
4615
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4569
4616
|
__decorateClass([
|
|
4570
|
-
(0,
|
|
4571
|
-
(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." })
|
|
4572
4619
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4573
4620
|
|
|
4574
4621
|
// src/adapters/tcp/user.tcp.adapter.ts
|