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