@experts_hub/shared 1.0.252 → 1.0.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -402,7 +402,7 @@ var ONBOARDING_PATTERN = {
|
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
405
|
-
var
|
|
405
|
+
var import_class_validator11 = require("class-validator");
|
|
406
406
|
|
|
407
407
|
// src/decorators/match.decorator.ts
|
|
408
408
|
var import_class_validator9 = require("class-validator");
|
|
@@ -447,128 +447,162 @@ IfscOrOtherFieldsConstraint = __decorateClass([
|
|
|
447
447
|
(0, import_class_validator9.ValidatorConstraint)({ async: false })
|
|
448
448
|
], IfscOrOtherFieldsConstraint);
|
|
449
449
|
|
|
450
|
+
// src/decorators/is-valid-mobile-number.decorator.ts
|
|
451
|
+
var import_class_validator10 = require("class-validator");
|
|
452
|
+
var import_libphonenumber_js = require("libphonenumber-js");
|
|
453
|
+
var IsValidMobileNumberConstraint = class {
|
|
454
|
+
validate(mobile, args) {
|
|
455
|
+
const object = args.object;
|
|
456
|
+
const mobileCode = object.mobileCode;
|
|
457
|
+
if (!mobileCode || !mobile) return false;
|
|
458
|
+
try {
|
|
459
|
+
const phoneNumber = (0, import_libphonenumber_js.parsePhoneNumberFromString)(mobileCode + mobile);
|
|
460
|
+
return phoneNumber?.isValid() ?? false;
|
|
461
|
+
} catch {
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
defaultMessage(args) {
|
|
466
|
+
return "Please enter a valid mobile number for the selected country code.";
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
IsValidMobileNumberConstraint = __decorateClass([
|
|
470
|
+
(0, import_class_validator10.ValidatorConstraint)({ name: "isValidMobileNumber", async: false })
|
|
471
|
+
], IsValidMobileNumberConstraint);
|
|
472
|
+
function IsValidMobileNumber(validationOptions) {
|
|
473
|
+
return function(object, propertyName) {
|
|
474
|
+
(0, import_class_validator10.registerDecorator)({
|
|
475
|
+
name: "isValidMobileNumber",
|
|
476
|
+
target: object.constructor,
|
|
477
|
+
propertyName,
|
|
478
|
+
options: validationOptions,
|
|
479
|
+
validator: IsValidMobileNumberConstraint
|
|
480
|
+
});
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
|
|
450
484
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
451
485
|
var FreelancerCreateAccountDto = class {
|
|
452
486
|
};
|
|
453
487
|
__decorateClass([
|
|
454
|
-
(0,
|
|
455
|
-
(0,
|
|
488
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter full name." }),
|
|
489
|
+
(0, import_class_validator11.IsString)({ message: "Please enter valid full name." })
|
|
456
490
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
457
491
|
__decorateClass([
|
|
458
|
-
(0,
|
|
459
|
-
(0,
|
|
492
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter email." }),
|
|
493
|
+
(0, import_class_validator11.IsEmail)()
|
|
460
494
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
461
495
|
__decorateClass([
|
|
462
|
-
(0,
|
|
463
|
-
(0,
|
|
496
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
497
|
+
(0, import_class_validator11.Matches)(/^\+\d{1,4}$/, {
|
|
498
|
+
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
499
|
+
})
|
|
464
500
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
465
501
|
__decorateClass([
|
|
466
|
-
(0,
|
|
467
|
-
(
|
|
468
|
-
message: "Please enter a valid US mobile number"
|
|
469
|
-
})
|
|
502
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
503
|
+
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
470
504
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
471
505
|
__decorateClass([
|
|
472
|
-
(0,
|
|
473
|
-
(0,
|
|
474
|
-
(0,
|
|
475
|
-
(0,
|
|
506
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter password." }),
|
|
507
|
+
(0, import_class_validator11.MinLength)(6),
|
|
508
|
+
(0, import_class_validator11.MaxLength)(32),
|
|
509
|
+
(0, import_class_validator11.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
476
510
|
message: "Password must include letters, numbers and symbols."
|
|
477
511
|
})
|
|
478
512
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
479
513
|
__decorateClass([
|
|
480
|
-
(0,
|
|
514
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
481
515
|
Match("password", { message: "Passwords do not match" })
|
|
482
516
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
483
517
|
|
|
484
518
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
485
|
-
var
|
|
519
|
+
var import_class_validator12 = require("class-validator");
|
|
486
520
|
var FreelancerUploadResumeDto = class {
|
|
487
521
|
};
|
|
488
522
|
__decorateClass([
|
|
489
|
-
(0,
|
|
490
|
-
(0,
|
|
523
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
524
|
+
(0, import_class_validator12.IsUUID)()
|
|
491
525
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
492
526
|
|
|
493
527
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
494
|
-
var
|
|
528
|
+
var import_class_validator13 = require("class-validator");
|
|
495
529
|
var FreelancerParseResumeDto = class {
|
|
496
530
|
};
|
|
497
531
|
__decorateClass([
|
|
498
|
-
(0,
|
|
499
|
-
(0,
|
|
532
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
533
|
+
(0, import_class_validator13.IsUUID)()
|
|
500
534
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
501
535
|
|
|
502
536
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
503
|
-
var
|
|
537
|
+
var import_class_validator14 = require("class-validator");
|
|
504
538
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
505
539
|
};
|
|
506
540
|
__decorateClass([
|
|
507
|
-
(0,
|
|
508
|
-
(0,
|
|
541
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
542
|
+
(0, import_class_validator14.IsUUID)()
|
|
509
543
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
510
544
|
|
|
511
545
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
512
|
-
var
|
|
546
|
+
var import_class_validator15 = require("class-validator");
|
|
513
547
|
var FreelancerSkipAiAssessmentDto = class {
|
|
514
548
|
};
|
|
515
549
|
__decorateClass([
|
|
516
|
-
(0,
|
|
517
|
-
(0,
|
|
550
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
551
|
+
(0, import_class_validator15.IsUUID)()
|
|
518
552
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
519
553
|
|
|
520
554
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
521
|
-
var
|
|
555
|
+
var import_class_validator16 = require("class-validator");
|
|
522
556
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
523
557
|
};
|
|
524
558
|
__decorateClass([
|
|
525
|
-
(0,
|
|
526
|
-
(0,
|
|
559
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
560
|
+
(0, import_class_validator16.IsUUID)()
|
|
527
561
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
528
562
|
|
|
529
563
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
530
|
-
var
|
|
564
|
+
var import_class_validator17 = require("class-validator");
|
|
531
565
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
532
566
|
};
|
|
533
567
|
__decorateClass([
|
|
534
|
-
(0,
|
|
535
|
-
(0,
|
|
568
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
569
|
+
(0, import_class_validator17.IsUUID)()
|
|
536
570
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
537
571
|
__decorateClass([
|
|
538
|
-
(0,
|
|
572
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
539
573
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
540
574
|
__decorateClass([
|
|
541
|
-
(0,
|
|
575
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
542
576
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
543
577
|
__decorateClass([
|
|
544
|
-
(0,
|
|
578
|
+
(0, import_class_validator17.IsOptional)()
|
|
545
579
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
546
580
|
|
|
547
581
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
548
|
-
var
|
|
582
|
+
var import_class_validator18 = require("class-validator");
|
|
549
583
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
550
584
|
};
|
|
551
585
|
__decorateClass([
|
|
552
|
-
(0,
|
|
553
|
-
(0,
|
|
586
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
587
|
+
(0, import_class_validator18.IsUUID)()
|
|
554
588
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
555
589
|
__decorateClass([
|
|
556
|
-
(0,
|
|
557
|
-
(0,
|
|
590
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please select development flag." }),
|
|
591
|
+
(0, import_class_validator18.IsBoolean)()
|
|
558
592
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
559
593
|
|
|
560
594
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
561
|
-
var
|
|
595
|
+
var import_class_validator19 = require("class-validator");
|
|
562
596
|
var FreelancerProfileQuestionDto = class {
|
|
563
597
|
};
|
|
564
598
|
__decorateClass([
|
|
565
|
-
(0,
|
|
566
|
-
(0,
|
|
599
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
600
|
+
(0, import_class_validator19.IsUUID)()
|
|
567
601
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
568
602
|
__decorateClass([
|
|
569
|
-
(0,
|
|
570
|
-
(0,
|
|
571
|
-
(0,
|
|
603
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
604
|
+
(0, import_class_validator19.IsString)(),
|
|
605
|
+
(0, import_class_validator19.IsIn)([
|
|
572
606
|
"natureOfWork",
|
|
573
607
|
"expectedHourlyCompensation",
|
|
574
608
|
"modeOfWork",
|
|
@@ -577,51 +611,51 @@ __decorateClass([
|
|
|
577
611
|
])
|
|
578
612
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
579
613
|
__decorateClass([
|
|
580
|
-
(0,
|
|
614
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter answer." })
|
|
581
615
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
582
616
|
|
|
583
617
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
584
|
-
var
|
|
618
|
+
var import_class_validator20 = require("class-validator");
|
|
585
619
|
var FreelancerWorkShowcaseDto = class {
|
|
586
620
|
};
|
|
587
621
|
__decorateClass([
|
|
588
|
-
(0,
|
|
589
|
-
(0,
|
|
622
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
623
|
+
(0, import_class_validator20.IsUUID)()
|
|
590
624
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
591
625
|
__decorateClass([
|
|
592
|
-
(0,
|
|
593
|
-
(0,
|
|
594
|
-
(0,
|
|
626
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
627
|
+
(0, import_class_validator20.IsString)(),
|
|
628
|
+
(0, import_class_validator20.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
595
629
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
596
630
|
__decorateClass([
|
|
597
|
-
(0,
|
|
598
|
-
(0,
|
|
631
|
+
(0, import_class_validator20.IsOptional)(),
|
|
632
|
+
(0, import_class_validator20.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
599
633
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
600
634
|
__decorateClass([
|
|
601
|
-
(0,
|
|
602
|
-
(0,
|
|
635
|
+
(0, import_class_validator20.IsOptional)(),
|
|
636
|
+
(0, import_class_validator20.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
603
637
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
604
638
|
__decorateClass([
|
|
605
|
-
(0,
|
|
606
|
-
(0,
|
|
639
|
+
(0, import_class_validator20.IsOptional)(),
|
|
640
|
+
(0, import_class_validator20.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
607
641
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
608
642
|
__decorateClass([
|
|
609
|
-
(0,
|
|
610
|
-
(0,
|
|
643
|
+
(0, import_class_validator20.IsOptional)(),
|
|
644
|
+
(0, import_class_validator20.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
611
645
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
612
646
|
|
|
613
647
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
614
|
-
var
|
|
648
|
+
var import_class_validator21 = require("class-validator");
|
|
615
649
|
var ClientProfileQuestionDto = class {
|
|
616
650
|
};
|
|
617
651
|
__decorateClass([
|
|
618
|
-
(0,
|
|
619
|
-
(0,
|
|
652
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
653
|
+
(0, import_class_validator21.IsUUID)()
|
|
620
654
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
621
655
|
__decorateClass([
|
|
622
|
-
(0,
|
|
623
|
-
(0,
|
|
624
|
-
(0,
|
|
656
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
657
|
+
(0, import_class_validator21.IsString)(),
|
|
658
|
+
(0, import_class_validator21.IsIn)([
|
|
625
659
|
"skills",
|
|
626
660
|
"requiredFreelancer",
|
|
627
661
|
"kindOfHiring",
|
|
@@ -630,44 +664,44 @@ __decorateClass([
|
|
|
630
664
|
])
|
|
631
665
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
632
666
|
__decorateClass([
|
|
633
|
-
(0,
|
|
667
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter answer." })
|
|
634
668
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
635
669
|
__decorateClass([
|
|
636
|
-
(0,
|
|
637
|
-
(0,
|
|
638
|
-
(0,
|
|
670
|
+
(0, import_class_validator21.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
671
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
672
|
+
(0, import_class_validator21.IsString)()
|
|
639
673
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
640
674
|
|
|
641
675
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
642
|
-
var
|
|
676
|
+
var import_class_validator22 = require("class-validator");
|
|
643
677
|
var ClientCreateAccountDto = class {
|
|
644
678
|
};
|
|
645
679
|
__decorateClass([
|
|
646
|
-
(0,
|
|
647
|
-
(0,
|
|
680
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter first name." }),
|
|
681
|
+
(0, import_class_validator22.IsString)({ message: "Please enter valid first name." })
|
|
648
682
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
649
683
|
__decorateClass([
|
|
650
|
-
(0,
|
|
651
|
-
(0,
|
|
684
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter last name." }),
|
|
685
|
+
(0, import_class_validator22.IsString)({ message: "Please enter valid last name." })
|
|
652
686
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
653
687
|
__decorateClass([
|
|
654
|
-
(0,
|
|
655
|
-
(0,
|
|
688
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter email." }),
|
|
689
|
+
(0, import_class_validator22.IsEmail)()
|
|
656
690
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
657
691
|
__decorateClass([
|
|
658
|
-
(0,
|
|
659
|
-
(0,
|
|
692
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter company name." }),
|
|
693
|
+
(0, import_class_validator22.IsString)({ message: "Please enter valid company name." })
|
|
660
694
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
661
695
|
__decorateClass([
|
|
662
|
-
(0,
|
|
663
|
-
(0,
|
|
664
|
-
(0,
|
|
665
|
-
(0,
|
|
696
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter password." }),
|
|
697
|
+
(0, import_class_validator22.MinLength)(6),
|
|
698
|
+
(0, import_class_validator22.MaxLength)(32),
|
|
699
|
+
(0, import_class_validator22.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
666
700
|
message: "Password must include letters, numbers and symbols."
|
|
667
701
|
})
|
|
668
702
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
669
703
|
__decorateClass([
|
|
670
|
-
(0,
|
|
704
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
671
705
|
Match("password", { message: "Passwords do not match" })
|
|
672
706
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
673
707
|
|
|
@@ -689,75 +723,75 @@ var SUBADMIN_PATTERN = {
|
|
|
689
723
|
};
|
|
690
724
|
|
|
691
725
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
692
|
-
var
|
|
726
|
+
var import_class_validator23 = require("class-validator");
|
|
693
727
|
var CreateSubAdminDto = class {
|
|
694
728
|
};
|
|
695
729
|
__decorateClass([
|
|
696
|
-
(0,
|
|
730
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter unique id." })
|
|
697
731
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
698
732
|
__decorateClass([
|
|
699
|
-
(0,
|
|
733
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter username." })
|
|
700
734
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
701
735
|
__decorateClass([
|
|
702
|
-
(0,
|
|
736
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter first name." })
|
|
703
737
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
704
738
|
__decorateClass([
|
|
705
|
-
(0,
|
|
739
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter last name." })
|
|
706
740
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
707
741
|
__decorateClass([
|
|
708
|
-
(0,
|
|
742
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter email." })
|
|
709
743
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
710
744
|
__decorateClass([
|
|
711
|
-
(0,
|
|
745
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
712
746
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
713
747
|
__decorateClass([
|
|
714
|
-
(0,
|
|
748
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter the password." })
|
|
715
749
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
716
750
|
__decorateClass([
|
|
717
|
-
(0,
|
|
751
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter account type." })
|
|
718
752
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
719
753
|
__decorateClass([
|
|
720
|
-
(0,
|
|
754
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter account status." })
|
|
721
755
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
722
756
|
|
|
723
757
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
724
|
-
var
|
|
758
|
+
var import_class_validator24 = require("class-validator");
|
|
725
759
|
var UpdateSubAdminAccountStatusDto = class {
|
|
726
760
|
};
|
|
727
761
|
__decorateClass([
|
|
728
|
-
(0,
|
|
762
|
+
(0, import_class_validator24.IsString)()
|
|
729
763
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
730
764
|
|
|
731
765
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
732
|
-
var
|
|
766
|
+
var import_class_validator25 = require("class-validator");
|
|
733
767
|
var UpdateSubAdminDto = class {
|
|
734
768
|
};
|
|
735
769
|
__decorateClass([
|
|
736
|
-
(0,
|
|
770
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter unique id." })
|
|
737
771
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
738
772
|
__decorateClass([
|
|
739
|
-
(0,
|
|
773
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter username." })
|
|
740
774
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
741
775
|
__decorateClass([
|
|
742
|
-
(0,
|
|
776
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter first name." })
|
|
743
777
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
744
778
|
__decorateClass([
|
|
745
|
-
(0,
|
|
779
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter last name." })
|
|
746
780
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
747
781
|
__decorateClass([
|
|
748
|
-
(0,
|
|
782
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter email." })
|
|
749
783
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
750
784
|
__decorateClass([
|
|
751
|
-
(0,
|
|
785
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
752
786
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
753
787
|
__decorateClass([
|
|
754
|
-
(0,
|
|
788
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter the password." })
|
|
755
789
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
756
790
|
__decorateClass([
|
|
757
|
-
(0,
|
|
791
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter account type." })
|
|
758
792
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
759
793
|
__decorateClass([
|
|
760
|
-
(0,
|
|
794
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter account status." })
|
|
761
795
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
762
796
|
|
|
763
797
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -771,57 +805,57 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
771
805
|
};
|
|
772
806
|
|
|
773
807
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
774
|
-
var
|
|
808
|
+
var import_class_validator26 = require("class-validator");
|
|
775
809
|
var UpdateCompanyProfileDto = class {
|
|
776
810
|
};
|
|
777
811
|
__decorateClass([
|
|
778
|
-
(0,
|
|
779
|
-
(0,
|
|
780
|
-
(0,
|
|
812
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter company name." }),
|
|
813
|
+
(0, import_class_validator26.IsString)({ message: "Company name must be a string." }),
|
|
814
|
+
(0, import_class_validator26.Length)(2, 255, {
|
|
781
815
|
message: "Company name must be between 2 and 255 characters"
|
|
782
816
|
})
|
|
783
817
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
784
818
|
__decorateClass([
|
|
785
|
-
(0,
|
|
786
|
-
(0,
|
|
819
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
820
|
+
(0, import_class_validator26.IsUrl)({}, { message: "Invalid website URL format" })
|
|
787
821
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
788
822
|
__decorateClass([
|
|
789
|
-
(0,
|
|
790
|
-
(0,
|
|
791
|
-
(0,
|
|
823
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter company address." }),
|
|
824
|
+
(0, import_class_validator26.IsString)({ message: "Company address must be a string" }),
|
|
825
|
+
(0, import_class_validator26.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
792
826
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
793
827
|
__decorateClass([
|
|
794
|
-
(0,
|
|
795
|
-
(0,
|
|
828
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
829
|
+
(0, import_class_validator26.IsString)({ message: "Mobile Code must be a string" })
|
|
796
830
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
797
831
|
__decorateClass([
|
|
798
|
-
(0,
|
|
799
|
-
(0,
|
|
832
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
833
|
+
(0, import_class_validator26.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
800
834
|
message: "Please enter a valid US phone number"
|
|
801
835
|
})
|
|
802
836
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
803
837
|
__decorateClass([
|
|
804
|
-
(0,
|
|
805
|
-
(0,
|
|
838
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter email." }),
|
|
839
|
+
(0, import_class_validator26.IsEmail)()
|
|
806
840
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
807
841
|
__decorateClass([
|
|
808
|
-
(0,
|
|
809
|
-
(0,
|
|
842
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
843
|
+
(0, import_class_validator26.IsString)({ message: "About company must be a string." })
|
|
810
844
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
811
845
|
|
|
812
846
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
813
|
-
var
|
|
847
|
+
var import_class_validator27 = require("class-validator");
|
|
814
848
|
var ClientChangePasswordDto = class {
|
|
815
849
|
};
|
|
816
850
|
__decorateClass([
|
|
817
|
-
(0,
|
|
818
|
-
(0,
|
|
819
|
-
(0,
|
|
851
|
+
(0, import_class_validator27.IsString)(),
|
|
852
|
+
(0, import_class_validator27.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
853
|
+
(0, import_class_validator27.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
820
854
|
message: "Password must contain at least one uppercase letter and one number."
|
|
821
855
|
})
|
|
822
856
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
823
857
|
__decorateClass([
|
|
824
|
-
(0,
|
|
858
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
825
859
|
Match("newPassword", { message: "Passwords do not match" })
|
|
826
860
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
827
861
|
|
|
@@ -834,24 +868,24 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
834
868
|
};
|
|
835
869
|
|
|
836
870
|
// src/modules/question/dto/create-question.dto.ts
|
|
837
|
-
var
|
|
871
|
+
var import_class_validator28 = require("class-validator");
|
|
838
872
|
var CreateQuestionDto = class {
|
|
839
873
|
};
|
|
840
874
|
__decorateClass([
|
|
841
|
-
(0,
|
|
875
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter unique id." })
|
|
842
876
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
843
877
|
__decorateClass([
|
|
844
|
-
(0,
|
|
878
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter question." })
|
|
845
879
|
], CreateQuestionDto.prototype, "question", 2);
|
|
846
880
|
__decorateClass([
|
|
847
|
-
(0,
|
|
881
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
848
882
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
849
883
|
__decorateClass([
|
|
850
|
-
(0,
|
|
884
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter options." })
|
|
851
885
|
], CreateQuestionDto.prototype, "options", 2);
|
|
852
886
|
__decorateClass([
|
|
853
|
-
(0,
|
|
854
|
-
(0,
|
|
887
|
+
(0, import_class_validator28.IsOptional)(),
|
|
888
|
+
(0, import_class_validator28.IsBoolean)({ message: "Whether the question status active" })
|
|
855
889
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
856
890
|
|
|
857
891
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -879,7 +913,7 @@ var JOB_PATTERN = {
|
|
|
879
913
|
};
|
|
880
914
|
|
|
881
915
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
882
|
-
var
|
|
916
|
+
var import_class_validator29 = require("class-validator");
|
|
883
917
|
var import_class_transformer = require("class-transformer");
|
|
884
918
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
885
919
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -896,102 +930,102 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
896
930
|
var JobBasicInformationDto = class {
|
|
897
931
|
};
|
|
898
932
|
__decorateClass([
|
|
899
|
-
(0,
|
|
900
|
-
(0,
|
|
933
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter job role" }),
|
|
934
|
+
(0, import_class_validator29.IsString)({ message: "Job role must be a string" })
|
|
901
935
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
902
936
|
__decorateClass([
|
|
903
|
-
(0,
|
|
904
|
-
(0,
|
|
937
|
+
(0, import_class_validator29.IsOptional)(),
|
|
938
|
+
(0, import_class_validator29.IsString)({ message: "Note must be a string" })
|
|
905
939
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
906
940
|
__decorateClass([
|
|
907
|
-
(0,
|
|
908
|
-
(0,
|
|
909
|
-
(0,
|
|
941
|
+
(0, import_class_validator29.IsArray)({ message: "Skills must be an array" }),
|
|
942
|
+
(0, import_class_validator29.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
943
|
+
(0, import_class_validator29.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
910
944
|
(0, import_class_transformer.Type)(() => Number)
|
|
911
945
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
912
946
|
__decorateClass([
|
|
913
|
-
(0,
|
|
914
|
-
(0,
|
|
947
|
+
(0, import_class_validator29.IsNumber)({}, { message: "Openings must be a number" }),
|
|
948
|
+
(0, import_class_validator29.Min)(1, { message: "There must be at least 1 opening" }),
|
|
915
949
|
(0, import_class_transformer.Type)(() => Number)
|
|
916
950
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
917
951
|
__decorateClass([
|
|
918
|
-
(0,
|
|
952
|
+
(0, import_class_validator29.IsEnum)(JobLocation, {
|
|
919
953
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
920
954
|
", "
|
|
921
955
|
)}`
|
|
922
956
|
})
|
|
923
957
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
924
958
|
__decorateClass([
|
|
925
|
-
(0,
|
|
959
|
+
(0, import_class_validator29.IsNumber)({}, { message: "Country id must be a number" }),
|
|
926
960
|
(0, import_class_transformer.Type)(() => Number)
|
|
927
961
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
928
962
|
__decorateClass([
|
|
929
|
-
(0,
|
|
963
|
+
(0, import_class_validator29.IsNumber)({}, { message: "State id must be a number" }),
|
|
930
964
|
(0, import_class_transformer.Type)(() => Number)
|
|
931
965
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
932
966
|
__decorateClass([
|
|
933
|
-
(0,
|
|
967
|
+
(0, import_class_validator29.IsNumber)({}, { message: "City id must be a number" }),
|
|
934
968
|
(0, import_class_transformer.Type)(() => Number)
|
|
935
969
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
936
970
|
__decorateClass([
|
|
937
|
-
(0,
|
|
971
|
+
(0, import_class_validator29.IsEnum)(EmploymentType, {
|
|
938
972
|
message: `Type of employment must be one of: ${Object.values(
|
|
939
973
|
EmploymentType
|
|
940
974
|
).join(", ")}`
|
|
941
975
|
})
|
|
942
976
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
943
977
|
__decorateClass([
|
|
944
|
-
(0,
|
|
978
|
+
(0, import_class_validator29.IsString)({ message: "Currency must be a string" })
|
|
945
979
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
946
980
|
__decorateClass([
|
|
947
|
-
(0,
|
|
948
|
-
(0,
|
|
981
|
+
(0, import_class_validator29.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
982
|
+
(0, import_class_validator29.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
949
983
|
(0, import_class_transformer.Type)(() => Number)
|
|
950
984
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
951
985
|
__decorateClass([
|
|
952
|
-
(0,
|
|
953
|
-
(0,
|
|
986
|
+
(0, import_class_validator29.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
987
|
+
(0, import_class_validator29.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
954
988
|
(0, import_class_transformer.Type)(() => Number)
|
|
955
989
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
956
990
|
__decorateClass([
|
|
957
|
-
(0,
|
|
958
|
-
(0,
|
|
991
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter start date" }),
|
|
992
|
+
(0, import_class_validator29.IsString)({ message: "Start date must be valid" })
|
|
959
993
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
960
994
|
__decorateClass([
|
|
961
|
-
(0,
|
|
962
|
-
(0,
|
|
995
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter end date" }),
|
|
996
|
+
(0, import_class_validator29.IsString)({ message: "End date must be valid" })
|
|
963
997
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
964
998
|
__decorateClass([
|
|
965
|
-
(0,
|
|
966
|
-
(0,
|
|
999
|
+
(0, import_class_validator29.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1000
|
+
(0, import_class_validator29.IsOptional)()
|
|
967
1001
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
968
1002
|
__decorateClass([
|
|
969
|
-
(0,
|
|
970
|
-
(0,
|
|
1003
|
+
(0, import_class_validator29.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1004
|
+
(0, import_class_validator29.IsOptional)()
|
|
971
1005
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
972
1006
|
|
|
973
1007
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
974
|
-
var
|
|
1008
|
+
var import_class_validator30 = require("class-validator");
|
|
975
1009
|
var JobAdditionalCommentDto = class {
|
|
976
1010
|
};
|
|
977
1011
|
__decorateClass([
|
|
978
|
-
(0,
|
|
979
|
-
(0,
|
|
980
|
-
(0,
|
|
1012
|
+
(0, import_class_validator30.IsOptional)(),
|
|
1013
|
+
(0, import_class_validator30.IsString)({ message: "Additional comment must be a string" }),
|
|
1014
|
+
(0, import_class_validator30.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
981
1015
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
982
1016
|
|
|
983
1017
|
// src/modules/job/dto/job-description.dto.ts
|
|
984
|
-
var
|
|
1018
|
+
var import_class_validator31 = require("class-validator");
|
|
985
1019
|
var JobDescriptionDto = class {
|
|
986
1020
|
};
|
|
987
1021
|
__decorateClass([
|
|
988
|
-
(0,
|
|
989
|
-
(0,
|
|
990
|
-
(0,
|
|
1022
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1023
|
+
(0, import_class_validator31.IsString)({ message: "Description must be a string" }),
|
|
1024
|
+
(0, import_class_validator31.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
991
1025
|
], JobDescriptionDto.prototype, "description", 2);
|
|
992
1026
|
|
|
993
1027
|
// src/modules/job/dto/job-status.dto.ts
|
|
994
|
-
var
|
|
1028
|
+
var import_class_validator32 = require("class-validator");
|
|
995
1029
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
996
1030
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
997
1031
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1003,18 +1037,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1003
1037
|
var JobStatusDto = class {
|
|
1004
1038
|
};
|
|
1005
1039
|
__decorateClass([
|
|
1006
|
-
(0,
|
|
1007
|
-
(0,
|
|
1040
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1041
|
+
(0, import_class_validator32.IsEnum)(JobStatus, {
|
|
1008
1042
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1009
1043
|
})
|
|
1010
1044
|
], JobStatusDto.prototype, "status", 2);
|
|
1011
1045
|
|
|
1012
1046
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
1013
|
-
var
|
|
1047
|
+
var import_class_validator33 = require("class-validator");
|
|
1014
1048
|
var JobIdParamDto = class {
|
|
1015
1049
|
};
|
|
1016
1050
|
__decorateClass([
|
|
1017
|
-
(0,
|
|
1051
|
+
(0, import_class_validator33.IsUUID)("4", {
|
|
1018
1052
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1019
1053
|
})
|
|
1020
1054
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -1031,25 +1065,25 @@ var PROFILE_PATTERN = {
|
|
|
1031
1065
|
};
|
|
1032
1066
|
|
|
1033
1067
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1034
|
-
var
|
|
1068
|
+
var import_class_validator34 = require("class-validator");
|
|
1035
1069
|
var FreelancerChangePasswordDto = class {
|
|
1036
1070
|
};
|
|
1037
1071
|
__decorateClass([
|
|
1038
|
-
(0,
|
|
1039
|
-
(0,
|
|
1072
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1073
|
+
(0, import_class_validator34.IsString)()
|
|
1040
1074
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1041
1075
|
__decorateClass([
|
|
1042
|
-
(0,
|
|
1043
|
-
(0,
|
|
1044
|
-
(0,
|
|
1045
|
-
(0,
|
|
1046
|
-
(0,
|
|
1076
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1077
|
+
(0, import_class_validator34.IsString)(),
|
|
1078
|
+
(0, import_class_validator34.MinLength)(6),
|
|
1079
|
+
(0, import_class_validator34.MaxLength)(32),
|
|
1080
|
+
(0, import_class_validator34.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1047
1081
|
message: "New Password must include letters, numbers and symbols."
|
|
1048
1082
|
})
|
|
1049
1083
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1050
1084
|
|
|
1051
1085
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1052
|
-
var
|
|
1086
|
+
var import_class_validator35 = require("class-validator");
|
|
1053
1087
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1054
1088
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1055
1089
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1065,92 +1099,92 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1065
1099
|
var UpdateFreelancerProfileDto = class {
|
|
1066
1100
|
};
|
|
1067
1101
|
__decorateClass([
|
|
1068
|
-
(0,
|
|
1069
|
-
(0,
|
|
1102
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1103
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid first name." })
|
|
1070
1104
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1071
1105
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1073
|
-
(0,
|
|
1106
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1107
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid last name." })
|
|
1074
1108
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1075
1109
|
__decorateClass([
|
|
1076
|
-
(0,
|
|
1077
|
-
(0,
|
|
1110
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1111
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid designation." })
|
|
1078
1112
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1079
1113
|
__decorateClass([
|
|
1080
|
-
(0,
|
|
1081
|
-
(0,
|
|
1114
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1115
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid experience." })
|
|
1082
1116
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1083
1117
|
__decorateClass([
|
|
1084
|
-
(0,
|
|
1085
|
-
(0,
|
|
1118
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1119
|
+
(0, import_class_validator35.IsEmail)()
|
|
1086
1120
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1087
1121
|
__decorateClass([
|
|
1088
|
-
(0,
|
|
1089
|
-
(0,
|
|
1122
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1123
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid mobile code." })
|
|
1090
1124
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1091
1125
|
__decorateClass([
|
|
1092
|
-
(0,
|
|
1093
|
-
(0,
|
|
1126
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1127
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid mobile number." })
|
|
1094
1128
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1095
1129
|
__decorateClass([
|
|
1096
|
-
(0,
|
|
1097
|
-
(0,
|
|
1130
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please select country." }),
|
|
1131
|
+
(0, import_class_validator35.IsNumber)()
|
|
1098
1132
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1099
1133
|
__decorateClass([
|
|
1100
|
-
(0,
|
|
1101
|
-
(0,
|
|
1134
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please select currency." }),
|
|
1135
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid currency." })
|
|
1102
1136
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1103
1137
|
__decorateClass([
|
|
1104
|
-
(0,
|
|
1105
|
-
(0,
|
|
1138
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter expected hourly compensation." }),
|
|
1139
|
+
(0, import_class_validator35.IsString)({ message: "Please enter valid expected hourly compensation." })
|
|
1106
1140
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1107
1141
|
__decorateClass([
|
|
1108
|
-
(0,
|
|
1109
|
-
(0,
|
|
1142
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1143
|
+
(0, import_class_validator35.IsEnum)(NatureOfWorkDto, {
|
|
1110
1144
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1111
1145
|
NatureOfWorkDto
|
|
1112
1146
|
).join(", ")}`
|
|
1113
1147
|
})
|
|
1114
1148
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1115
1149
|
__decorateClass([
|
|
1116
|
-
(0,
|
|
1117
|
-
(0,
|
|
1150
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1151
|
+
(0, import_class_validator35.IsEnum)(ModeOfWorkDto, {
|
|
1118
1152
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1119
1153
|
", "
|
|
1120
1154
|
)}`
|
|
1121
1155
|
})
|
|
1122
1156
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1123
1157
|
__decorateClass([
|
|
1124
|
-
(0,
|
|
1125
|
-
(0,
|
|
1158
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1159
|
+
(0, import_class_validator35.IsString)()
|
|
1126
1160
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1127
1161
|
__decorateClass([
|
|
1128
|
-
(0,
|
|
1129
|
-
(0,
|
|
1162
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1163
|
+
(0, import_class_validator35.IsString)()
|
|
1130
1164
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1131
1165
|
__decorateClass([
|
|
1132
|
-
(0,
|
|
1133
|
-
(0,
|
|
1166
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1167
|
+
(0, import_class_validator35.IsString)()
|
|
1134
1168
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1135
1169
|
__decorateClass([
|
|
1136
|
-
(0,
|
|
1137
|
-
(0,
|
|
1170
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1171
|
+
(0, import_class_validator35.IsString)()
|
|
1138
1172
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1139
1173
|
__decorateClass([
|
|
1140
|
-
(0,
|
|
1141
|
-
(0,
|
|
1174
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1175
|
+
(0, import_class_validator35.IsString)()
|
|
1142
1176
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1143
1177
|
__decorateClass([
|
|
1144
|
-
(0,
|
|
1145
|
-
(0,
|
|
1178
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1179
|
+
(0, import_class_validator35.IsString)()
|
|
1146
1180
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1147
1181
|
__decorateClass([
|
|
1148
|
-
(0,
|
|
1149
|
-
(0,
|
|
1182
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1183
|
+
(0, import_class_validator35.IsString)()
|
|
1150
1184
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1151
1185
|
__decorateClass([
|
|
1152
|
-
(0,
|
|
1153
|
-
(0,
|
|
1186
|
+
(0, import_class_validator35.IsOptional)(),
|
|
1187
|
+
(0, import_class_validator35.IsString)()
|
|
1154
1188
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1155
1189
|
|
|
1156
1190
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1161,7 +1195,7 @@ var BANK_PATTERN = {
|
|
|
1161
1195
|
};
|
|
1162
1196
|
|
|
1163
1197
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1164
|
-
var
|
|
1198
|
+
var import_class_validator36 = require("class-validator");
|
|
1165
1199
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1166
1200
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1167
1201
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1170,47 +1204,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1170
1204
|
var FreelancerBankDetailsDto = class {
|
|
1171
1205
|
};
|
|
1172
1206
|
__decorateClass([
|
|
1173
|
-
(0,
|
|
1207
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1174
1208
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1175
1209
|
__decorateClass([
|
|
1176
|
-
(0,
|
|
1210
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1177
1211
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1178
1212
|
__decorateClass([
|
|
1179
|
-
(0,
|
|
1213
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Email." })
|
|
1180
1214
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1181
1215
|
__decorateClass([
|
|
1182
|
-
(0,
|
|
1216
|
+
(0, import_class_validator36.IsOptional)()
|
|
1183
1217
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1184
1218
|
__decorateClass([
|
|
1185
|
-
(0,
|
|
1219
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1186
1220
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1187
1221
|
__decorateClass([
|
|
1188
|
-
(0,
|
|
1222
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1189
1223
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1190
1224
|
__decorateClass([
|
|
1191
|
-
(0,
|
|
1225
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1192
1226
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1193
1227
|
__decorateClass([
|
|
1194
|
-
(0,
|
|
1195
|
-
(0,
|
|
1228
|
+
(0, import_class_validator36.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1229
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1196
1230
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1197
1231
|
__decorateClass([
|
|
1198
|
-
(0,
|
|
1199
|
-
(0,
|
|
1232
|
+
(0, import_class_validator36.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1233
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1200
1234
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1201
1235
|
__decorateClass([
|
|
1202
|
-
(0,
|
|
1203
|
-
(0,
|
|
1236
|
+
(0, import_class_validator36.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1237
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1204
1238
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1205
1239
|
__decorateClass([
|
|
1206
|
-
(0,
|
|
1207
|
-
(0,
|
|
1240
|
+
(0, import_class_validator36.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1241
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1208
1242
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1209
1243
|
__decorateClass([
|
|
1210
|
-
(0,
|
|
1244
|
+
(0, import_class_validator36.IsOptional)()
|
|
1211
1245
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1212
1246
|
__decorateClass([
|
|
1213
|
-
(0,
|
|
1247
|
+
(0, import_class_validator36.IsEnum)(BankAccountScope, {
|
|
1214
1248
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1215
1249
|
BankAccountScope
|
|
1216
1250
|
).join(", ")}`
|
|
@@ -1230,7 +1264,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1230
1264
|
};
|
|
1231
1265
|
|
|
1232
1266
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1233
|
-
var
|
|
1267
|
+
var import_class_validator37 = require("class-validator");
|
|
1234
1268
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1235
1269
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1236
1270
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1239,10 +1273,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1239
1273
|
var SystemPreferenceDto = class {
|
|
1240
1274
|
};
|
|
1241
1275
|
__decorateClass([
|
|
1242
|
-
(0,
|
|
1276
|
+
(0, import_class_validator37.IsBoolean)()
|
|
1243
1277
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1244
1278
|
__decorateClass([
|
|
1245
|
-
(0,
|
|
1279
|
+
(0, import_class_validator37.IsEnum)(SystemPreferenceKey, {
|
|
1246
1280
|
message: `key must be one of: ${Object.values(
|
|
1247
1281
|
SystemPreferenceKey
|
|
1248
1282
|
).join(", ")}`
|
|
@@ -1262,7 +1296,7 @@ var RATING_PATTERN = {
|
|
|
1262
1296
|
};
|
|
1263
1297
|
|
|
1264
1298
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1265
|
-
var
|
|
1299
|
+
var import_class_validator38 = require("class-validator");
|
|
1266
1300
|
|
|
1267
1301
|
// src/entities/rating.entity.ts
|
|
1268
1302
|
var import_typeorm36 = require("typeorm");
|
|
@@ -3252,22 +3286,22 @@ Rating = __decorateClass([
|
|
|
3252
3286
|
var CreateRatingDto = class {
|
|
3253
3287
|
};
|
|
3254
3288
|
__decorateClass([
|
|
3255
|
-
(0,
|
|
3256
|
-
(0,
|
|
3289
|
+
(0, import_class_validator38.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
3290
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
3257
3291
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3258
3292
|
__decorateClass([
|
|
3259
|
-
(0,
|
|
3293
|
+
(0, import_class_validator38.IsEnum)(RatingTypeEnum, {
|
|
3260
3294
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3261
3295
|
})
|
|
3262
3296
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3263
3297
|
__decorateClass([
|
|
3264
|
-
(0,
|
|
3265
|
-
(0,
|
|
3266
|
-
(0,
|
|
3298
|
+
(0, import_class_validator38.IsInt)({ message: "Rating must be an integer value" }),
|
|
3299
|
+
(0, import_class_validator38.Min)(1, { message: "Rating must be at least 1" }),
|
|
3300
|
+
(0, import_class_validator38.Max)(5, { message: "Rating must be at most 5" })
|
|
3267
3301
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3268
3302
|
__decorateClass([
|
|
3269
|
-
(0,
|
|
3270
|
-
(0,
|
|
3303
|
+
(0, import_class_validator38.IsOptional)(),
|
|
3304
|
+
(0, import_class_validator38.IsString)({ message: "Review must be a string" })
|
|
3271
3305
|
], CreateRatingDto.prototype, "review", 2);
|
|
3272
3306
|
|
|
3273
3307
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3283,57 +3317,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3283
3317
|
};
|
|
3284
3318
|
|
|
3285
3319
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3286
|
-
var
|
|
3320
|
+
var import_class_validator39 = require("class-validator");
|
|
3287
3321
|
var CreateCompanyRoleDto = class {
|
|
3288
3322
|
};
|
|
3289
3323
|
__decorateClass([
|
|
3290
|
-
(0,
|
|
3324
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3291
3325
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3292
3326
|
__decorateClass([
|
|
3293
|
-
(0,
|
|
3327
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3294
3328
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3295
3329
|
__decorateClass([
|
|
3296
|
-
(0,
|
|
3330
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter description" })
|
|
3297
3331
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3298
3332
|
__decorateClass([
|
|
3299
|
-
(0,
|
|
3300
|
-
(0,
|
|
3301
|
-
(0,
|
|
3333
|
+
(0, import_class_validator39.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3334
|
+
(0, import_class_validator39.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3335
|
+
(0, import_class_validator39.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3302
3336
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3303
3337
|
__decorateClass([
|
|
3304
|
-
(0,
|
|
3305
|
-
(0,
|
|
3338
|
+
(0, import_class_validator39.IsOptional)(),
|
|
3339
|
+
(0, import_class_validator39.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3306
3340
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3307
3341
|
|
|
3308
3342
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3309
|
-
var
|
|
3343
|
+
var import_class_validator40 = require("class-validator");
|
|
3310
3344
|
var UpdateCompanyRoleDto = class {
|
|
3311
3345
|
};
|
|
3312
3346
|
__decorateClass([
|
|
3313
|
-
(0,
|
|
3347
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter company name." })
|
|
3314
3348
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3315
3349
|
__decorateClass([
|
|
3316
|
-
(0,
|
|
3350
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter slug" })
|
|
3317
3351
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3318
3352
|
__decorateClass([
|
|
3319
|
-
(0,
|
|
3353
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter description" })
|
|
3320
3354
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3321
3355
|
__decorateClass([
|
|
3322
|
-
(0,
|
|
3323
|
-
(0,
|
|
3324
|
-
(0,
|
|
3356
|
+
(0, import_class_validator40.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3357
|
+
(0, import_class_validator40.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3358
|
+
(0, import_class_validator40.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3325
3359
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3326
3360
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3328
|
-
(0,
|
|
3361
|
+
(0, import_class_validator40.IsOptional)(),
|
|
3362
|
+
(0, import_class_validator40.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3329
3363
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3330
3364
|
|
|
3331
3365
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3332
|
-
var
|
|
3366
|
+
var import_class_validator41 = require("class-validator");
|
|
3333
3367
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3334
3368
|
};
|
|
3335
3369
|
__decorateClass([
|
|
3336
|
-
(0,
|
|
3370
|
+
(0, import_class_validator41.IsBoolean)()
|
|
3337
3371
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3338
3372
|
|
|
3339
3373
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3343,35 +3377,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3343
3377
|
};
|
|
3344
3378
|
|
|
3345
3379
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3346
|
-
var
|
|
3380
|
+
var import_class_validator42 = require("class-validator");
|
|
3347
3381
|
var import_class_transformer2 = require("class-transformer");
|
|
3348
3382
|
var ExperienceDto = class {
|
|
3349
3383
|
};
|
|
3350
3384
|
__decorateClass([
|
|
3351
|
-
(0,
|
|
3385
|
+
(0, import_class_validator42.IsOptional)()
|
|
3352
3386
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3353
3387
|
__decorateClass([
|
|
3354
|
-
(0,
|
|
3355
|
-
(0,
|
|
3388
|
+
(0, import_class_validator42.IsNotEmpty)(),
|
|
3389
|
+
(0, import_class_validator42.IsString)()
|
|
3356
3390
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3357
3391
|
__decorateClass([
|
|
3358
|
-
(0,
|
|
3359
|
-
(0,
|
|
3392
|
+
(0, import_class_validator42.IsNotEmpty)(),
|
|
3393
|
+
(0, import_class_validator42.IsString)()
|
|
3360
3394
|
], ExperienceDto.prototype, "designation", 2);
|
|
3361
3395
|
__decorateClass([
|
|
3362
|
-
(0,
|
|
3363
|
-
(0,
|
|
3396
|
+
(0, import_class_validator42.IsNotEmpty)(),
|
|
3397
|
+
(0, import_class_validator42.IsString)()
|
|
3364
3398
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3365
3399
|
__decorateClass([
|
|
3366
|
-
(0,
|
|
3367
|
-
(0,
|
|
3368
|
-
(0,
|
|
3400
|
+
(0, import_class_validator42.IsNotEmpty)(),
|
|
3401
|
+
(0, import_class_validator42.IsString)(),
|
|
3402
|
+
(0, import_class_validator42.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3369
3403
|
], ExperienceDto.prototype, "description", 2);
|
|
3370
3404
|
var FreelancerExperienceDto = class {
|
|
3371
3405
|
};
|
|
3372
3406
|
__decorateClass([
|
|
3373
|
-
(0,
|
|
3374
|
-
(0,
|
|
3407
|
+
(0, import_class_validator42.ValidateNested)({ each: true }),
|
|
3408
|
+
(0, import_class_validator42.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3375
3409
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3376
3410
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3377
3411
|
|
|
@@ -3388,43 +3422,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3388
3422
|
};
|
|
3389
3423
|
|
|
3390
3424
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3391
|
-
var
|
|
3425
|
+
var import_class_validator43 = require("class-validator");
|
|
3392
3426
|
var CreateCompanyMemberDto = class {
|
|
3393
3427
|
};
|
|
3394
3428
|
__decorateClass([
|
|
3395
|
-
(0,
|
|
3429
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter name." })
|
|
3396
3430
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3397
3431
|
__decorateClass([
|
|
3398
|
-
(0,
|
|
3432
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter email" })
|
|
3399
3433
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3400
3434
|
__decorateClass([
|
|
3401
|
-
(0,
|
|
3402
|
-
(0,
|
|
3403
|
-
(0,
|
|
3435
|
+
(0, import_class_validator43.IsArray)({ message: "Role IDs must be an array." }),
|
|
3436
|
+
(0, import_class_validator43.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3437
|
+
(0, import_class_validator43.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3404
3438
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3405
3439
|
|
|
3406
3440
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3407
|
-
var
|
|
3441
|
+
var import_class_validator44 = require("class-validator");
|
|
3408
3442
|
var UpdateCompanyMemberDto = class {
|
|
3409
3443
|
};
|
|
3410
3444
|
__decorateClass([
|
|
3411
|
-
(0,
|
|
3445
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter name." })
|
|
3412
3446
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3413
3447
|
__decorateClass([
|
|
3414
|
-
(0,
|
|
3448
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter email" })
|
|
3415
3449
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3416
3450
|
__decorateClass([
|
|
3417
|
-
(0,
|
|
3418
|
-
(0,
|
|
3419
|
-
(0,
|
|
3451
|
+
(0, import_class_validator44.IsArray)({ message: "Role IDs must be an array." }),
|
|
3452
|
+
(0, import_class_validator44.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3453
|
+
(0, import_class_validator44.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3420
3454
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3421
3455
|
|
|
3422
3456
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3423
|
-
var
|
|
3457
|
+
var import_class_validator45 = require("class-validator");
|
|
3424
3458
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3425
3459
|
};
|
|
3426
3460
|
__decorateClass([
|
|
3427
|
-
(0,
|
|
3461
|
+
(0, import_class_validator45.IsBoolean)()
|
|
3428
3462
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3429
3463
|
|
|
3430
3464
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3434,31 +3468,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3434
3468
|
};
|
|
3435
3469
|
|
|
3436
3470
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3437
|
-
var
|
|
3471
|
+
var import_class_validator46 = require("class-validator");
|
|
3438
3472
|
var import_class_transformer3 = require("class-transformer");
|
|
3439
3473
|
var EducationDto = class {
|
|
3440
3474
|
};
|
|
3441
3475
|
__decorateClass([
|
|
3442
|
-
(0,
|
|
3476
|
+
(0, import_class_validator46.IsOptional)()
|
|
3443
3477
|
], EducationDto.prototype, "uuid", 2);
|
|
3444
3478
|
__decorateClass([
|
|
3445
|
-
(0,
|
|
3446
|
-
(0,
|
|
3479
|
+
(0, import_class_validator46.IsString)(),
|
|
3480
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3447
3481
|
], EducationDto.prototype, "degree", 2);
|
|
3448
3482
|
__decorateClass([
|
|
3449
|
-
(0,
|
|
3450
|
-
(0,
|
|
3483
|
+
(0, import_class_validator46.IsString)(),
|
|
3484
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter University " })
|
|
3451
3485
|
], EducationDto.prototype, "university", 2);
|
|
3452
3486
|
__decorateClass([
|
|
3453
|
-
(0,
|
|
3454
|
-
(0,
|
|
3487
|
+
(0, import_class_validator46.IsString)(),
|
|
3488
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3455
3489
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3456
3490
|
var FreelancerEducationDto = class {
|
|
3457
3491
|
};
|
|
3458
3492
|
__decorateClass([
|
|
3459
|
-
(0,
|
|
3460
|
-
(0,
|
|
3461
|
-
(0,
|
|
3493
|
+
(0, import_class_validator46.IsArray)(),
|
|
3494
|
+
(0, import_class_validator46.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
3495
|
+
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
3462
3496
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3463
3497
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3464
3498
|
|
|
@@ -3469,67 +3503,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3469
3503
|
};
|
|
3470
3504
|
|
|
3471
3505
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3472
|
-
var
|
|
3506
|
+
var import_class_validator47 = require("class-validator");
|
|
3473
3507
|
var import_class_transformer4 = require("class-transformer");
|
|
3474
3508
|
var ProjectDto = class {
|
|
3475
3509
|
};
|
|
3476
3510
|
__decorateClass([
|
|
3477
|
-
(0,
|
|
3511
|
+
(0, import_class_validator47.IsOptional)()
|
|
3478
3512
|
], ProjectDto.prototype, "uuid", 2);
|
|
3479
3513
|
__decorateClass([
|
|
3480
|
-
(0,
|
|
3481
|
-
(0,
|
|
3514
|
+
(0, import_class_validator47.IsString)(),
|
|
3515
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3482
3516
|
], ProjectDto.prototype, "projectName", 2);
|
|
3483
3517
|
__decorateClass([
|
|
3484
|
-
(0,
|
|
3485
|
-
(0,
|
|
3518
|
+
(0, import_class_validator47.IsDateString)(),
|
|
3519
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3486
3520
|
], ProjectDto.prototype, "startDate", 2);
|
|
3487
3521
|
__decorateClass([
|
|
3488
|
-
(0,
|
|
3489
|
-
(0,
|
|
3522
|
+
(0, import_class_validator47.IsDateString)(),
|
|
3523
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3490
3524
|
], ProjectDto.prototype, "endDate", 2);
|
|
3491
3525
|
__decorateClass([
|
|
3492
|
-
(0,
|
|
3493
|
-
(0,
|
|
3526
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3527
|
+
(0, import_class_validator47.IsString)()
|
|
3494
3528
|
], ProjectDto.prototype, "clientName", 2);
|
|
3495
3529
|
__decorateClass([
|
|
3496
|
-
(0,
|
|
3497
|
-
(0,
|
|
3530
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3531
|
+
(0, import_class_validator47.IsString)()
|
|
3498
3532
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3499
3533
|
__decorateClass([
|
|
3500
|
-
(0,
|
|
3501
|
-
(0,
|
|
3502
|
-
(0,
|
|
3534
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3535
|
+
(0, import_class_validator47.IsString)(),
|
|
3536
|
+
(0, import_class_validator47.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3503
3537
|
], ProjectDto.prototype, "description", 2);
|
|
3504
3538
|
var CaseStudyDto = class {
|
|
3505
3539
|
};
|
|
3506
3540
|
__decorateClass([
|
|
3507
|
-
(0,
|
|
3541
|
+
(0, import_class_validator47.IsOptional)()
|
|
3508
3542
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3509
3543
|
__decorateClass([
|
|
3510
|
-
(0,
|
|
3511
|
-
(0,
|
|
3544
|
+
(0, import_class_validator47.IsString)(),
|
|
3545
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3512
3546
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3513
3547
|
__decorateClass([
|
|
3514
|
-
(0,
|
|
3515
|
-
(0,
|
|
3548
|
+
(0, import_class_validator47.IsString)(),
|
|
3549
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
3516
3550
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3517
3551
|
__decorateClass([
|
|
3518
|
-
(0,
|
|
3519
|
-
(0,
|
|
3520
|
-
(0,
|
|
3552
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3553
|
+
(0, import_class_validator47.IsString)(),
|
|
3554
|
+
(0, import_class_validator47.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
3521
3555
|
], CaseStudyDto.prototype, "description", 2);
|
|
3522
3556
|
var FreelancerProjectDto = class {
|
|
3523
3557
|
};
|
|
3524
3558
|
__decorateClass([
|
|
3525
|
-
(0,
|
|
3526
|
-
(0,
|
|
3527
|
-
(0,
|
|
3559
|
+
(0, import_class_validator47.IsArray)(),
|
|
3560
|
+
(0, import_class_validator47.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
3561
|
+
(0, import_class_validator47.ValidateNested)({ each: true }),
|
|
3528
3562
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3529
3563
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3530
3564
|
__decorateClass([
|
|
3531
|
-
(0,
|
|
3532
|
-
(0,
|
|
3565
|
+
(0, import_class_validator47.IsArray)(),
|
|
3566
|
+
(0, import_class_validator47.ValidateNested)({ each: true }),
|
|
3533
3567
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3534
3568
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3535
3569
|
|
|
@@ -3545,7 +3579,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3545
3579
|
};
|
|
3546
3580
|
|
|
3547
3581
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3548
|
-
var
|
|
3582
|
+
var import_class_validator48 = require("class-validator");
|
|
3549
3583
|
var import_class_transformer5 = require("class-transformer");
|
|
3550
3584
|
var FreelancerSkillDto = class {
|
|
3551
3585
|
constructor() {
|
|
@@ -3555,22 +3589,22 @@ var FreelancerSkillDto = class {
|
|
|
3555
3589
|
}
|
|
3556
3590
|
};
|
|
3557
3591
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3559
|
-
(0,
|
|
3592
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3593
|
+
(0, import_class_validator48.IsArray)(),
|
|
3560
3594
|
(0, import_class_transformer5.Type)(() => String),
|
|
3561
|
-
(0,
|
|
3595
|
+
(0, import_class_validator48.IsString)({ each: true })
|
|
3562
3596
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3563
3597
|
__decorateClass([
|
|
3564
|
-
(0,
|
|
3565
|
-
(0,
|
|
3598
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3599
|
+
(0, import_class_validator48.IsArray)(),
|
|
3566
3600
|
(0, import_class_transformer5.Type)(() => String),
|
|
3567
|
-
(0,
|
|
3601
|
+
(0, import_class_validator48.IsString)({ each: true })
|
|
3568
3602
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3569
3603
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3571
|
-
(0,
|
|
3604
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3605
|
+
(0, import_class_validator48.IsArray)(),
|
|
3572
3606
|
(0, import_class_transformer5.Type)(() => String),
|
|
3573
|
-
(0,
|
|
3607
|
+
(0, import_class_validator48.IsString)({ each: true })
|
|
3574
3608
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3575
3609
|
|
|
3576
3610
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3586,7 +3620,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3586
3620
|
};
|
|
3587
3621
|
|
|
3588
3622
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3589
|
-
var
|
|
3623
|
+
var import_class_validator49 = require("class-validator");
|
|
3590
3624
|
var import_class_transformer6 = require("class-transformer");
|
|
3591
3625
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3592
3626
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3603,84 +3637,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3603
3637
|
var CreateFreelancerDto = class {
|
|
3604
3638
|
};
|
|
3605
3639
|
__decorateClass([
|
|
3606
|
-
(0,
|
|
3607
|
-
(0,
|
|
3640
|
+
(0, import_class_validator49.IsString)({ message: "Full name must be a string" }),
|
|
3641
|
+
(0, import_class_validator49.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3608
3642
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3609
3643
|
__decorateClass([
|
|
3610
|
-
(0,
|
|
3644
|
+
(0, import_class_validator49.IsEmail)({}, { message: "Invalid email address" })
|
|
3611
3645
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
3612
3646
|
__decorateClass([
|
|
3613
|
-
(0,
|
|
3647
|
+
(0, import_class_validator49.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3614
3648
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3615
3649
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3650
|
+
(0, import_class_validator49.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3617
3651
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3618
3652
|
__decorateClass([
|
|
3619
|
-
(0,
|
|
3620
|
-
(0,
|
|
3621
|
-
(0,
|
|
3622
|
-
(0,
|
|
3653
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter password." }),
|
|
3654
|
+
(0, import_class_validator49.MinLength)(6),
|
|
3655
|
+
(0, import_class_validator49.MaxLength)(32),
|
|
3656
|
+
(0, import_class_validator49.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3623
3657
|
message: "Password must include letters, numbers and symbols."
|
|
3624
3658
|
})
|
|
3625
3659
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3626
3660
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3661
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3628
3662
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3629
3663
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3630
3664
|
__decorateClass([
|
|
3631
|
-
(0,
|
|
3665
|
+
(0, import_class_validator49.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3632
3666
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3633
3667
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3634
3668
|
__decorateClass([
|
|
3635
|
-
(0,
|
|
3669
|
+
(0, import_class_validator49.IsEnum)(NatureOfWorkEnum, {
|
|
3636
3670
|
message: `Nature of work must be one of: ${Object.values(
|
|
3637
3671
|
NatureOfWorkEnum
|
|
3638
3672
|
).join(", ")}`
|
|
3639
3673
|
})
|
|
3640
3674
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3641
3675
|
__decorateClass([
|
|
3642
|
-
(0,
|
|
3643
|
-
(0,
|
|
3676
|
+
(0, import_class_validator49.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3677
|
+
(0, import_class_validator49.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3644
3678
|
(0, import_class_transformer6.Type)(() => Number)
|
|
3645
3679
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3646
3680
|
__decorateClass([
|
|
3647
|
-
(0,
|
|
3681
|
+
(0, import_class_validator49.IsEnum)(ModeOfWorkEnum, {
|
|
3648
3682
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3649
3683
|
", "
|
|
3650
3684
|
)}`
|
|
3651
3685
|
})
|
|
3652
3686
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3653
3687
|
__decorateClass([
|
|
3654
|
-
(0,
|
|
3688
|
+
(0, import_class_validator49.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3655
3689
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3656
3690
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3657
3691
|
__decorateClass([
|
|
3658
|
-
(0,
|
|
3659
|
-
(0,
|
|
3692
|
+
(0, import_class_validator49.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3693
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3660
3694
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3661
3695
|
__decorateClass([
|
|
3662
|
-
(0,
|
|
3663
|
-
(0,
|
|
3696
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3697
|
+
(0, import_class_validator49.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3664
3698
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3665
3699
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3667
|
-
(0,
|
|
3700
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3701
|
+
(0, import_class_validator49.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3668
3702
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3669
3703
|
__decorateClass([
|
|
3670
|
-
(0,
|
|
3671
|
-
(0,
|
|
3704
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3705
|
+
(0, import_class_validator49.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3672
3706
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3673
3707
|
__decorateClass([
|
|
3674
|
-
(0,
|
|
3675
|
-
(0,
|
|
3708
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3709
|
+
(0, import_class_validator49.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3676
3710
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3677
3711
|
__decorateClass([
|
|
3678
|
-
(0,
|
|
3679
|
-
(0,
|
|
3712
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3713
|
+
(0, import_class_validator49.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3680
3714
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3681
3715
|
|
|
3682
3716
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3683
|
-
var
|
|
3717
|
+
var import_class_validator50 = require("class-validator");
|
|
3684
3718
|
var import_class_transformer7 = require("class-transformer");
|
|
3685
3719
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3686
3720
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -3697,85 +3731,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3697
3731
|
var UpdateFreelancerDto = class {
|
|
3698
3732
|
};
|
|
3699
3733
|
__decorateClass([
|
|
3700
|
-
(0,
|
|
3701
|
-
(0,
|
|
3702
|
-
(0,
|
|
3734
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3735
|
+
(0, import_class_validator50.IsString)({ message: "Full name must be a string" }),
|
|
3736
|
+
(0, import_class_validator50.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3703
3737
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3704
3738
|
__decorateClass([
|
|
3705
|
-
(0,
|
|
3706
|
-
(0,
|
|
3739
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3740
|
+
(0, import_class_validator50.IsEmail)({}, { message: "Invalid email address" })
|
|
3707
3741
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3708
3742
|
__decorateClass([
|
|
3709
|
-
(0,
|
|
3710
|
-
(0,
|
|
3743
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3744
|
+
(0, import_class_validator50.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3711
3745
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3712
3746
|
__decorateClass([
|
|
3713
|
-
(0,
|
|
3714
|
-
(0,
|
|
3747
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3748
|
+
(0, import_class_validator50.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3715
3749
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3716
3750
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3718
|
-
(0,
|
|
3719
|
-
(0,
|
|
3720
|
-
(0,
|
|
3751
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3752
|
+
(0, import_class_validator50.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3753
|
+
(0, import_class_validator50.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3754
|
+
(0, import_class_validator50.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3721
3755
|
message: "Password must include letters, numbers and symbols."
|
|
3722
3756
|
})
|
|
3723
3757
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3724
3758
|
__decorateClass([
|
|
3725
|
-
(0,
|
|
3726
|
-
(0,
|
|
3759
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3760
|
+
(0, import_class_validator50.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3727
3761
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3728
3762
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3729
3763
|
__decorateClass([
|
|
3730
|
-
(0,
|
|
3731
|
-
(0,
|
|
3764
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3765
|
+
(0, import_class_validator50.IsEnum)(NatureOfWorkEnum2, {
|
|
3732
3766
|
message: `Nature of work must be one of: ${Object.values(
|
|
3733
3767
|
NatureOfWorkEnum2
|
|
3734
3768
|
).join(", ")}`
|
|
3735
3769
|
})
|
|
3736
3770
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3737
3771
|
__decorateClass([
|
|
3738
|
-
(0,
|
|
3739
|
-
(0,
|
|
3740
|
-
(0,
|
|
3772
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3773
|
+
(0, import_class_validator50.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3774
|
+
(0, import_class_validator50.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3741
3775
|
(0, import_class_transformer7.Type)(() => Number)
|
|
3742
3776
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3743
3777
|
__decorateClass([
|
|
3744
|
-
(0,
|
|
3745
|
-
(0,
|
|
3778
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3779
|
+
(0, import_class_validator50.IsEnum)(ModeOfWorkEnum2, {
|
|
3746
3780
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3747
3781
|
", "
|
|
3748
3782
|
)}`
|
|
3749
3783
|
})
|
|
3750
3784
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3751
3785
|
__decorateClass([
|
|
3752
|
-
(0,
|
|
3753
|
-
(0,
|
|
3786
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3787
|
+
(0, import_class_validator50.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3754
3788
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3755
3789
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3756
3790
|
__decorateClass([
|
|
3757
|
-
(0,
|
|
3758
|
-
(0,
|
|
3791
|
+
(0, import_class_validator50.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3792
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3759
3793
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3760
3794
|
__decorateClass([
|
|
3761
|
-
(0,
|
|
3762
|
-
(0,
|
|
3795
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3796
|
+
(0, import_class_validator50.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3763
3797
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3764
3798
|
__decorateClass([
|
|
3765
|
-
(0,
|
|
3766
|
-
(0,
|
|
3799
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3800
|
+
(0, import_class_validator50.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3767
3801
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3768
3802
|
__decorateClass([
|
|
3769
|
-
(0,
|
|
3770
|
-
(0,
|
|
3803
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3804
|
+
(0, import_class_validator50.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3771
3805
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3772
3806
|
__decorateClass([
|
|
3773
|
-
(0,
|
|
3774
|
-
(0,
|
|
3807
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3808
|
+
(0, import_class_validator50.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3775
3809
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3776
3810
|
__decorateClass([
|
|
3777
|
-
(0,
|
|
3778
|
-
(0,
|
|
3811
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3812
|
+
(0, import_class_validator50.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3779
3813
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3780
3814
|
|
|
3781
3815
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -3792,7 +3826,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3792
3826
|
};
|
|
3793
3827
|
|
|
3794
3828
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3795
|
-
var
|
|
3829
|
+
var import_class_validator51 = require("class-validator");
|
|
3796
3830
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3797
3831
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3798
3832
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3808,69 +3842,69 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3808
3842
|
var CreateClientDto = class {
|
|
3809
3843
|
};
|
|
3810
3844
|
__decorateClass([
|
|
3811
|
-
(0,
|
|
3812
|
-
(0,
|
|
3845
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3846
|
+
(0, import_class_validator51.IsString)()
|
|
3813
3847
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3814
3848
|
__decorateClass([
|
|
3815
|
-
(0,
|
|
3816
|
-
(0,
|
|
3849
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3850
|
+
(0, import_class_validator51.IsString)()
|
|
3817
3851
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3818
3852
|
__decorateClass([
|
|
3819
|
-
(0,
|
|
3820
|
-
(0,
|
|
3853
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter email." }),
|
|
3854
|
+
(0, import_class_validator51.IsEmail)()
|
|
3821
3855
|
], CreateClientDto.prototype, "email", 2);
|
|
3822
3856
|
__decorateClass([
|
|
3823
|
-
(0,
|
|
3824
|
-
(0,
|
|
3825
|
-
(0,
|
|
3826
|
-
(0,
|
|
3857
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter password." }),
|
|
3858
|
+
(0, import_class_validator51.MinLength)(6),
|
|
3859
|
+
(0, import_class_validator51.MaxLength)(32),
|
|
3860
|
+
(0, import_class_validator51.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3827
3861
|
message: "Password must include letters, numbers and symbols."
|
|
3828
3862
|
})
|
|
3829
3863
|
], CreateClientDto.prototype, "password", 2);
|
|
3830
3864
|
__decorateClass([
|
|
3831
|
-
(0,
|
|
3865
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3832
3866
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3833
3867
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3834
3868
|
__decorateClass([
|
|
3835
|
-
(0,
|
|
3836
|
-
(0,
|
|
3869
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3870
|
+
(0, import_class_validator51.IsString)()
|
|
3837
3871
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3838
3872
|
__decorateClass([
|
|
3839
|
-
(0,
|
|
3840
|
-
(0,
|
|
3873
|
+
(0, import_class_validator51.IsArray)({ message: "Skills should be an array." }),
|
|
3874
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter skills." })
|
|
3841
3875
|
], CreateClientDto.prototype, "skills", 2);
|
|
3842
3876
|
__decorateClass([
|
|
3843
|
-
(0,
|
|
3844
|
-
(0,
|
|
3877
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3878
|
+
(0, import_class_validator51.IsString)()
|
|
3845
3879
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3846
3880
|
__decorateClass([
|
|
3847
|
-
(0,
|
|
3848
|
-
(0,
|
|
3881
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3882
|
+
(0, import_class_validator51.IsEnum)(CreateClientHiringTypeEnum)
|
|
3849
3883
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3850
3884
|
__decorateClass([
|
|
3851
|
-
(0,
|
|
3852
|
-
(0,
|
|
3885
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3886
|
+
(0, import_class_validator51.IsEnum)(CreateClientHiringModeEnum)
|
|
3853
3887
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3854
3888
|
__decorateClass([
|
|
3855
|
-
(0,
|
|
3856
|
-
(0,
|
|
3889
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3890
|
+
(0, import_class_validator51.IsString)()
|
|
3857
3891
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3858
3892
|
__decorateClass([
|
|
3859
|
-
(0,
|
|
3860
|
-
(0,
|
|
3893
|
+
(0, import_class_validator51.IsOptional)(),
|
|
3894
|
+
(0, import_class_validator51.IsString)()
|
|
3861
3895
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3862
3896
|
|
|
3863
3897
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3864
|
-
var
|
|
3898
|
+
var import_class_validator52 = require("class-validator");
|
|
3865
3899
|
var UpdateClientAccountStatusDto = class {
|
|
3866
3900
|
};
|
|
3867
3901
|
__decorateClass([
|
|
3868
|
-
(0,
|
|
3869
|
-
(0,
|
|
3902
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3903
|
+
(0, import_class_validator52.IsString)()
|
|
3870
3904
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3871
3905
|
|
|
3872
3906
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3873
|
-
var
|
|
3907
|
+
var import_class_validator53 = require("class-validator");
|
|
3874
3908
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3875
3909
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3876
3910
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3886,52 +3920,52 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3886
3920
|
var UpdateClientDto = class {
|
|
3887
3921
|
};
|
|
3888
3922
|
__decorateClass([
|
|
3889
|
-
(0,
|
|
3890
|
-
(0,
|
|
3923
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3924
|
+
(0, import_class_validator53.IsString)()
|
|
3891
3925
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3892
3926
|
__decorateClass([
|
|
3893
|
-
(0,
|
|
3894
|
-
(0,
|
|
3927
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3928
|
+
(0, import_class_validator53.IsString)()
|
|
3895
3929
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3896
3930
|
__decorateClass([
|
|
3897
|
-
(0,
|
|
3898
|
-
(0,
|
|
3931
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter email." }),
|
|
3932
|
+
(0, import_class_validator53.IsEmail)()
|
|
3899
3933
|
], UpdateClientDto.prototype, "email", 2);
|
|
3900
3934
|
__decorateClass([
|
|
3901
|
-
(0,
|
|
3902
|
-
(0,
|
|
3903
|
-
(0,
|
|
3904
|
-
(0,
|
|
3935
|
+
(0, import_class_validator53.IsOptional)(),
|
|
3936
|
+
(0, import_class_validator53.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3937
|
+
(0, import_class_validator53.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3938
|
+
(0, import_class_validator53.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3905
3939
|
message: "Password must include letters, numbers and symbols."
|
|
3906
3940
|
})
|
|
3907
3941
|
], UpdateClientDto.prototype, "password", 2);
|
|
3908
3942
|
__decorateClass([
|
|
3909
|
-
(0,
|
|
3910
|
-
(0,
|
|
3943
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3944
|
+
(0, import_class_validator53.IsString)()
|
|
3911
3945
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
3912
3946
|
__decorateClass([
|
|
3913
|
-
(0,
|
|
3914
|
-
(0,
|
|
3947
|
+
(0, import_class_validator53.IsArray)({ message: "Skills should be an array." }),
|
|
3948
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter skills." })
|
|
3915
3949
|
], UpdateClientDto.prototype, "skills", 2);
|
|
3916
3950
|
__decorateClass([
|
|
3917
|
-
(0,
|
|
3918
|
-
(0,
|
|
3951
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3952
|
+
(0, import_class_validator53.IsString)()
|
|
3919
3953
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3920
3954
|
__decorateClass([
|
|
3921
|
-
(0,
|
|
3922
|
-
(0,
|
|
3955
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3956
|
+
(0, import_class_validator53.IsEnum)(UpdateClientHiringTypeEnum)
|
|
3923
3957
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3924
3958
|
__decorateClass([
|
|
3925
|
-
(0,
|
|
3926
|
-
(0,
|
|
3959
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3960
|
+
(0, import_class_validator53.IsEnum)(UpdateClientHiringModeEnum)
|
|
3927
3961
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3928
3962
|
__decorateClass([
|
|
3929
|
-
(0,
|
|
3930
|
-
(0,
|
|
3963
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3964
|
+
(0, import_class_validator53.IsString)()
|
|
3931
3965
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3932
3966
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
3934
|
-
(0,
|
|
3967
|
+
(0, import_class_validator53.IsOptional)(),
|
|
3968
|
+
(0, import_class_validator53.IsString)()
|
|
3935
3969
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3936
3970
|
|
|
3937
3971
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -3941,7 +3975,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3941
3975
|
};
|
|
3942
3976
|
|
|
3943
3977
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3944
|
-
var
|
|
3978
|
+
var import_class_validator54 = require("class-validator");
|
|
3945
3979
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3946
3980
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3947
3981
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3952,16 +3986,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3952
3986
|
var FreelancerDeclarationDto = class {
|
|
3953
3987
|
};
|
|
3954
3988
|
__decorateClass([
|
|
3955
|
-
(0,
|
|
3956
|
-
(0,
|
|
3989
|
+
(0, import_class_validator54.IsOptional)(),
|
|
3990
|
+
(0, import_class_validator54.IsString)({ message: "UUID must be a string" })
|
|
3957
3991
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3958
3992
|
__decorateClass([
|
|
3959
|
-
(0,
|
|
3993
|
+
(0, import_class_validator54.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3960
3994
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3961
3995
|
__decorateClass([
|
|
3962
|
-
(0,
|
|
3963
|
-
(0,
|
|
3964
|
-
(0,
|
|
3996
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3997
|
+
(0, import_class_validator54.IsString)(),
|
|
3998
|
+
(0, import_class_validator54.IsIn)([
|
|
3965
3999
|
"true"
|
|
3966
4000
|
])
|
|
3967
4001
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3976,36 +4010,36 @@ var CMS_PATTERNS = {
|
|
|
3976
4010
|
};
|
|
3977
4011
|
|
|
3978
4012
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3979
|
-
var
|
|
4013
|
+
var import_class_validator55 = require("class-validator");
|
|
3980
4014
|
var CreateCmsDto = class {
|
|
3981
4015
|
};
|
|
3982
4016
|
__decorateClass([
|
|
3983
|
-
(0,
|
|
4017
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter name." })
|
|
3984
4018
|
], CreateCmsDto.prototype, "title", 2);
|
|
3985
4019
|
__decorateClass([
|
|
3986
|
-
(0,
|
|
4020
|
+
(0, import_class_validator55.IsOptional)()
|
|
3987
4021
|
], CreateCmsDto.prototype, "content", 2);
|
|
3988
4022
|
__decorateClass([
|
|
3989
|
-
(0,
|
|
3990
|
-
(0,
|
|
4023
|
+
(0, import_class_validator55.IsOptional)(),
|
|
4024
|
+
(0, import_class_validator55.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3991
4025
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3992
4026
|
|
|
3993
4027
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3994
|
-
var
|
|
4028
|
+
var import_class_validator56 = require("class-validator");
|
|
3995
4029
|
var UpdateCmsDto = class {
|
|
3996
4030
|
};
|
|
3997
4031
|
__decorateClass([
|
|
3998
|
-
(0,
|
|
4032
|
+
(0, import_class_validator56.IsOptional)()
|
|
3999
4033
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4000
4034
|
__decorateClass([
|
|
4001
|
-
(0,
|
|
4035
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter name." })
|
|
4002
4036
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4003
4037
|
__decorateClass([
|
|
4004
|
-
(0,
|
|
4038
|
+
(0, import_class_validator56.IsOptional)()
|
|
4005
4039
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4006
4040
|
__decorateClass([
|
|
4007
|
-
(0,
|
|
4008
|
-
(0,
|
|
4041
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4042
|
+
(0, import_class_validator56.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4009
4043
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4010
4044
|
|
|
4011
4045
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4033,7 +4067,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4033
4067
|
|
|
4034
4068
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4035
4069
|
var import_class_transformer8 = require("class-transformer");
|
|
4036
|
-
var
|
|
4070
|
+
var import_class_validator57 = require("class-validator");
|
|
4037
4071
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4038
4072
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4039
4073
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4049,79 +4083,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4049
4083
|
var AdminCreateJobInformationDto = class {
|
|
4050
4084
|
};
|
|
4051
4085
|
__decorateClass([
|
|
4052
|
-
(0,
|
|
4053
|
-
(0,
|
|
4086
|
+
(0, import_class_validator57.IsString)({ message: "Job role must be a string." }),
|
|
4087
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Job role is required." })
|
|
4054
4088
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4055
4089
|
__decorateClass([
|
|
4056
|
-
(0,
|
|
4057
|
-
(0,
|
|
4090
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4091
|
+
(0, import_class_validator57.IsString)({ message: "Note must be a string." })
|
|
4058
4092
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4059
4093
|
__decorateClass([
|
|
4060
|
-
(0,
|
|
4061
|
-
(0,
|
|
4094
|
+
(0, import_class_validator57.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4095
|
+
(0, import_class_validator57.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4062
4096
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4063
|
-
(0,
|
|
4097
|
+
(0, import_class_validator57.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4064
4098
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4065
4099
|
__decorateClass([
|
|
4066
|
-
(0,
|
|
4067
|
-
(0,
|
|
4100
|
+
(0, import_class_validator57.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4101
|
+
(0, import_class_validator57.Min)(1, { message: "There must be at least one opening." })
|
|
4068
4102
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4069
4103
|
__decorateClass([
|
|
4070
|
-
(0,
|
|
4104
|
+
(0, import_class_validator57.IsEnum)(JobLocationEnumDto, {
|
|
4071
4105
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
4072
4106
|
})
|
|
4073
4107
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4074
4108
|
__decorateClass([
|
|
4075
|
-
(0,
|
|
4109
|
+
(0, import_class_validator57.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4076
4110
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
4077
4111
|
})
|
|
4078
4112
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4079
4113
|
__decorateClass([
|
|
4080
|
-
(0,
|
|
4081
|
-
(0,
|
|
4114
|
+
(0, import_class_validator57.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4115
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4082
4116
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4083
4117
|
__decorateClass([
|
|
4084
|
-
(0,
|
|
4085
|
-
(0,
|
|
4118
|
+
(0, import_class_validator57.IsString)({ message: "Communication skills must be a string." }),
|
|
4119
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4086
4120
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4087
4121
|
__decorateClass([
|
|
4088
|
-
(0,
|
|
4089
|
-
(0,
|
|
4122
|
+
(0, import_class_validator57.IsString)({ message: "Currency must be a string." }),
|
|
4123
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Currency is required." })
|
|
4090
4124
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4091
4125
|
__decorateClass([
|
|
4092
4126
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4093
|
-
(0,
|
|
4127
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4094
4128
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4095
4129
|
__decorateClass([
|
|
4096
4130
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4097
|
-
(0,
|
|
4131
|
+
(0, import_class_validator57.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4098
4132
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4099
4133
|
__decorateClass([
|
|
4100
|
-
(0,
|
|
4134
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4101
4135
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4102
4136
|
__decorateClass([
|
|
4103
|
-
(0,
|
|
4137
|
+
(0, import_class_validator57.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4104
4138
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4105
4139
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4107
|
-
(0,
|
|
4140
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4141
|
+
(0, import_class_validator57.IsString)({ message: "Additional comment must be a string." })
|
|
4108
4142
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4109
4143
|
__decorateClass([
|
|
4110
|
-
(0,
|
|
4144
|
+
(0, import_class_validator57.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4111
4145
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4112
4146
|
__decorateClass([
|
|
4113
|
-
(0,
|
|
4147
|
+
(0, import_class_validator57.IsInt)({ message: "State ID must be a valid integer." })
|
|
4114
4148
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4115
4149
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4150
|
+
(0, import_class_validator57.IsInt)({ message: "City ID must be a valid integer." })
|
|
4117
4151
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4118
4152
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4153
|
+
(0, import_class_validator57.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4120
4154
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4121
4155
|
|
|
4122
4156
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4123
4157
|
var import_class_transformer9 = require("class-transformer");
|
|
4124
|
-
var
|
|
4158
|
+
var import_class_validator58 = require("class-validator");
|
|
4125
4159
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4126
4160
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4127
4161
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4137,74 +4171,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4137
4171
|
var AdminUpdateJobInformationDto = class {
|
|
4138
4172
|
};
|
|
4139
4173
|
__decorateClass([
|
|
4140
|
-
(0,
|
|
4141
|
-
(0,
|
|
4174
|
+
(0, import_class_validator58.IsString)({ message: "Job role must be a string." }),
|
|
4175
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Job role is required." })
|
|
4142
4176
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4143
4177
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4145
|
-
(0,
|
|
4178
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4179
|
+
(0, import_class_validator58.IsString)({ message: "Note must be a string." })
|
|
4146
4180
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4147
4181
|
__decorateClass([
|
|
4148
|
-
(0,
|
|
4149
|
-
(0,
|
|
4182
|
+
(0, import_class_validator58.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4183
|
+
(0, import_class_validator58.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4150
4184
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4151
|
-
(0,
|
|
4185
|
+
(0, import_class_validator58.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4152
4186
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4153
4187
|
__decorateClass([
|
|
4154
|
-
(0,
|
|
4155
|
-
(0,
|
|
4188
|
+
(0, import_class_validator58.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4189
|
+
(0, import_class_validator58.Min)(1, { message: "There must be at least one opening." })
|
|
4156
4190
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4157
4191
|
__decorateClass([
|
|
4158
|
-
(0,
|
|
4192
|
+
(0, import_class_validator58.IsEnum)(JobLocationEnums, {
|
|
4159
4193
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4160
4194
|
})
|
|
4161
4195
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4162
4196
|
__decorateClass([
|
|
4163
|
-
(0,
|
|
4197
|
+
(0, import_class_validator58.IsEnum)(TypeOfEmploymentEnums, {
|
|
4164
4198
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4165
4199
|
})
|
|
4166
4200
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4167
4201
|
__decorateClass([
|
|
4168
|
-
(0,
|
|
4169
|
-
(0,
|
|
4202
|
+
(0, import_class_validator58.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4203
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4170
4204
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4171
4205
|
__decorateClass([
|
|
4172
|
-
(0,
|
|
4173
|
-
(0,
|
|
4206
|
+
(0, import_class_validator58.IsString)({ message: "Communication skills must be a string." }),
|
|
4207
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4174
4208
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4175
4209
|
__decorateClass([
|
|
4176
|
-
(0,
|
|
4177
|
-
(0,
|
|
4210
|
+
(0, import_class_validator58.IsString)({ message: "Currency must be a string." }),
|
|
4211
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Currency is required." })
|
|
4178
4212
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4179
4213
|
__decorateClass([
|
|
4180
4214
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4181
|
-
(0,
|
|
4215
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4182
4216
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4183
4217
|
__decorateClass([
|
|
4184
4218
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4185
|
-
(0,
|
|
4219
|
+
(0, import_class_validator58.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4186
4220
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4187
4221
|
__decorateClass([
|
|
4188
|
-
(0,
|
|
4222
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4189
4223
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4190
4224
|
__decorateClass([
|
|
4191
|
-
(0,
|
|
4225
|
+
(0, import_class_validator58.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4192
4226
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4193
4227
|
__decorateClass([
|
|
4194
|
-
(0,
|
|
4195
|
-
(0,
|
|
4228
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4229
|
+
(0, import_class_validator58.IsString)({ message: "Additional comment must be a string." })
|
|
4196
4230
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4197
4231
|
__decorateClass([
|
|
4198
|
-
(0,
|
|
4232
|
+
(0, import_class_validator58.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4199
4233
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4200
4234
|
__decorateClass([
|
|
4201
|
-
(0,
|
|
4235
|
+
(0, import_class_validator58.IsInt)({ message: "State ID must be a valid integer." })
|
|
4202
4236
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4203
4237
|
__decorateClass([
|
|
4204
|
-
(0,
|
|
4238
|
+
(0, import_class_validator58.IsInt)({ message: "City ID must be a valid integer." })
|
|
4205
4239
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4206
4240
|
__decorateClass([
|
|
4207
|
-
(0,
|
|
4241
|
+
(0, import_class_validator58.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4208
4242
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4209
4243
|
|
|
4210
4244
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4214,7 +4248,7 @@ var LEAD_PATTERN = {
|
|
|
4214
4248
|
};
|
|
4215
4249
|
|
|
4216
4250
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4217
|
-
var
|
|
4251
|
+
var import_class_validator59 = require("class-validator");
|
|
4218
4252
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4219
4253
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4220
4254
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4223,23 +4257,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4223
4257
|
var CreateLeadDto = class {
|
|
4224
4258
|
};
|
|
4225
4259
|
__decorateClass([
|
|
4226
|
-
(0,
|
|
4260
|
+
(0, import_class_validator59.IsString)({ message: "Name must be a string" })
|
|
4227
4261
|
], CreateLeadDto.prototype, "name", 2);
|
|
4228
4262
|
__decorateClass([
|
|
4229
|
-
(0,
|
|
4263
|
+
(0, import_class_validator59.IsEmail)({}, { message: "Invalid email address" })
|
|
4230
4264
|
], CreateLeadDto.prototype, "email", 2);
|
|
4231
4265
|
__decorateClass([
|
|
4232
|
-
(0,
|
|
4266
|
+
(0, import_class_validator59.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4233
4267
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4234
4268
|
__decorateClass([
|
|
4235
|
-
(0,
|
|
4269
|
+
(0, import_class_validator59.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4236
4270
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4237
4271
|
__decorateClass([
|
|
4238
|
-
(0,
|
|
4239
|
-
(0,
|
|
4272
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4273
|
+
(0, import_class_validator59.IsString)({ message: "Description must be a string" })
|
|
4240
4274
|
], CreateLeadDto.prototype, "description", 2);
|
|
4241
4275
|
__decorateClass([
|
|
4242
|
-
(0,
|
|
4276
|
+
(0, import_class_validator59.IsEnum)(CategoryEmumDto, {
|
|
4243
4277
|
message: `Type of category must be one of: ${Object.values(
|
|
4244
4278
|
CategoryEmumDto
|
|
4245
4279
|
).join(", ")}`
|