@experts_hub/shared 1.0.173 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +300 -300
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -443,63 +443,63 @@ __decorateClass([
|
|
|
443
443
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
444
444
|
|
|
445
445
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
446
|
-
var
|
|
446
|
+
var import_class_validator12 = require("class-validator");
|
|
447
447
|
var FreelancerParseResumeDto = class {
|
|
448
448
|
};
|
|
449
449
|
__decorateClass([
|
|
450
|
-
(0,
|
|
451
|
-
(0,
|
|
450
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
451
|
+
(0, import_class_validator12.IsUUID)()
|
|
452
452
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
453
453
|
|
|
454
454
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
455
|
-
var
|
|
455
|
+
var import_class_validator13 = require("class-validator");
|
|
456
456
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
457
457
|
};
|
|
458
458
|
__decorateClass([
|
|
459
|
-
(0,
|
|
460
|
-
(0,
|
|
459
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
460
|
+
(0, import_class_validator13.IsUUID)()
|
|
461
461
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
462
462
|
|
|
463
463
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
464
|
-
var
|
|
464
|
+
var import_class_validator14 = require("class-validator");
|
|
465
465
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
466
466
|
};
|
|
467
467
|
__decorateClass([
|
|
468
|
-
(0,
|
|
469
|
-
(0,
|
|
468
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
469
|
+
(0, import_class_validator14.IsUUID)()
|
|
470
470
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
471
471
|
__decorateClass([
|
|
472
|
-
(0,
|
|
472
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
473
473
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
474
474
|
__decorateClass([
|
|
475
|
-
(0,
|
|
475
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
476
476
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
477
477
|
|
|
478
478
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
479
|
-
var
|
|
479
|
+
var import_class_validator15 = require("class-validator");
|
|
480
480
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
481
481
|
};
|
|
482
482
|
__decorateClass([
|
|
483
|
-
(0,
|
|
484
|
-
(0,
|
|
483
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
484
|
+
(0, import_class_validator15.IsUUID)()
|
|
485
485
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
486
486
|
__decorateClass([
|
|
487
|
-
(0,
|
|
488
|
-
(0,
|
|
487
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please select development flag." }),
|
|
488
|
+
(0, import_class_validator15.IsBoolean)()
|
|
489
489
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
490
490
|
|
|
491
491
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
492
|
-
var
|
|
492
|
+
var import_class_validator16 = require("class-validator");
|
|
493
493
|
var FreelancerProfileQuestionDto = class {
|
|
494
494
|
};
|
|
495
495
|
__decorateClass([
|
|
496
|
-
(0,
|
|
497
|
-
(0,
|
|
496
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
497
|
+
(0, import_class_validator16.IsUUID)()
|
|
498
498
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
499
499
|
__decorateClass([
|
|
500
|
-
(0,
|
|
501
|
-
(0,
|
|
502
|
-
(0,
|
|
500
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
501
|
+
(0, import_class_validator16.IsString)(),
|
|
502
|
+
(0, import_class_validator16.IsIn)([
|
|
503
503
|
"natureOfWork",
|
|
504
504
|
"expectedHourlyCompensation",
|
|
505
505
|
"modeOfWork",
|
|
@@ -508,51 +508,51 @@ __decorateClass([
|
|
|
508
508
|
])
|
|
509
509
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
510
510
|
__decorateClass([
|
|
511
|
-
(0,
|
|
511
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter answer." })
|
|
512
512
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
513
513
|
|
|
514
514
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
515
|
-
var
|
|
515
|
+
var import_class_validator17 = require("class-validator");
|
|
516
516
|
var FreelancerWorkShowcaseDto = class {
|
|
517
517
|
};
|
|
518
518
|
__decorateClass([
|
|
519
|
-
(0,
|
|
520
|
-
(0,
|
|
519
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
520
|
+
(0, import_class_validator17.IsUUID)()
|
|
521
521
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
522
522
|
__decorateClass([
|
|
523
|
-
(0,
|
|
524
|
-
(0,
|
|
525
|
-
(0,
|
|
523
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
524
|
+
(0, import_class_validator17.IsString)(),
|
|
525
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
526
526
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
527
527
|
__decorateClass([
|
|
528
|
-
(0,
|
|
529
|
-
(0,
|
|
528
|
+
(0, import_class_validator17.IsOptional)(),
|
|
529
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
530
530
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
531
531
|
__decorateClass([
|
|
532
|
-
(0,
|
|
533
|
-
(0,
|
|
532
|
+
(0, import_class_validator17.IsOptional)(),
|
|
533
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
534
534
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
535
535
|
__decorateClass([
|
|
536
|
-
(0,
|
|
537
|
-
(0,
|
|
536
|
+
(0, import_class_validator17.IsOptional)(),
|
|
537
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
538
538
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
539
539
|
__decorateClass([
|
|
540
|
-
(0,
|
|
541
|
-
(0,
|
|
540
|
+
(0, import_class_validator17.IsOptional)(),
|
|
541
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
542
542
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
543
543
|
|
|
544
544
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
545
|
-
var
|
|
545
|
+
var import_class_validator18 = require("class-validator");
|
|
546
546
|
var ClientProfileQuestionDto = class {
|
|
547
547
|
};
|
|
548
548
|
__decorateClass([
|
|
549
|
-
(0,
|
|
550
|
-
(0,
|
|
549
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
550
|
+
(0, import_class_validator18.IsUUID)()
|
|
551
551
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
552
552
|
__decorateClass([
|
|
553
|
-
(0,
|
|
554
|
-
(0,
|
|
555
|
-
(0,
|
|
553
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
554
|
+
(0, import_class_validator18.IsString)(),
|
|
555
|
+
(0, import_class_validator18.IsIn)([
|
|
556
556
|
"skills",
|
|
557
557
|
"requiredFreelancer",
|
|
558
558
|
"kindOfHiring",
|
|
@@ -561,44 +561,44 @@ __decorateClass([
|
|
|
561
561
|
])
|
|
562
562
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
563
563
|
__decorateClass([
|
|
564
|
-
(0,
|
|
564
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter answer." })
|
|
565
565
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
566
566
|
__decorateClass([
|
|
567
|
-
(0,
|
|
568
|
-
(0,
|
|
569
|
-
(0,
|
|
567
|
+
(0, import_class_validator18.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
568
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
569
|
+
(0, import_class_validator18.IsString)()
|
|
570
570
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
571
571
|
|
|
572
572
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
573
|
-
var
|
|
573
|
+
var import_class_validator19 = require("class-validator");
|
|
574
574
|
var ClientCreateAccountDto = class {
|
|
575
575
|
};
|
|
576
576
|
__decorateClass([
|
|
577
|
-
(0,
|
|
578
|
-
(0,
|
|
577
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter first name." }),
|
|
578
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid first name." })
|
|
579
579
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
580
580
|
__decorateClass([
|
|
581
|
-
(0,
|
|
582
|
-
(0,
|
|
581
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter last name." }),
|
|
582
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid last name." })
|
|
583
583
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
584
584
|
__decorateClass([
|
|
585
|
-
(0,
|
|
586
|
-
(0,
|
|
585
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter email." }),
|
|
586
|
+
(0, import_class_validator19.IsEmail)()
|
|
587
587
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
588
588
|
__decorateClass([
|
|
589
|
-
(0,
|
|
590
|
-
(0,
|
|
589
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter company name." }),
|
|
590
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid company name." })
|
|
591
591
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
592
592
|
__decorateClass([
|
|
593
|
-
(0,
|
|
594
|
-
(0,
|
|
595
|
-
(0,
|
|
596
|
-
(0,
|
|
593
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter password." }),
|
|
594
|
+
(0, import_class_validator19.MinLength)(6),
|
|
595
|
+
(0, import_class_validator19.MaxLength)(32),
|
|
596
|
+
(0, import_class_validator19.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
597
597
|
message: "Password must include letters, numbers and symbols."
|
|
598
598
|
})
|
|
599
599
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
600
600
|
__decorateClass([
|
|
601
|
-
(0,
|
|
601
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
602
602
|
Match("password", { message: "Passwords do not match" })
|
|
603
603
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
604
604
|
|
|
@@ -620,75 +620,75 @@ var SUBADMIN_PATTERN = {
|
|
|
620
620
|
};
|
|
621
621
|
|
|
622
622
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
623
|
-
var
|
|
623
|
+
var import_class_validator20 = require("class-validator");
|
|
624
624
|
var CreateSubAdminDto = class {
|
|
625
625
|
};
|
|
626
626
|
__decorateClass([
|
|
627
|
-
(0,
|
|
627
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter unique id." })
|
|
628
628
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
629
629
|
__decorateClass([
|
|
630
|
-
(0,
|
|
630
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter username." })
|
|
631
631
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
632
632
|
__decorateClass([
|
|
633
|
-
(0,
|
|
633
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter first name." })
|
|
634
634
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
635
635
|
__decorateClass([
|
|
636
|
-
(0,
|
|
636
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter last name." })
|
|
637
637
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
638
638
|
__decorateClass([
|
|
639
|
-
(0,
|
|
639
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter email." })
|
|
640
640
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
641
641
|
__decorateClass([
|
|
642
|
-
(0,
|
|
642
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
643
643
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
644
644
|
__decorateClass([
|
|
645
|
-
(0,
|
|
645
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter the password." })
|
|
646
646
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
647
647
|
__decorateClass([
|
|
648
|
-
(0,
|
|
648
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter account type." })
|
|
649
649
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
650
650
|
__decorateClass([
|
|
651
|
-
(0,
|
|
651
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter account status." })
|
|
652
652
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
653
653
|
|
|
654
654
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
655
|
-
var
|
|
655
|
+
var import_class_validator21 = require("class-validator");
|
|
656
656
|
var UpdateSubAdminAccountStatusDto = class {
|
|
657
657
|
};
|
|
658
658
|
__decorateClass([
|
|
659
|
-
(0,
|
|
659
|
+
(0, import_class_validator21.IsString)()
|
|
660
660
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
661
661
|
|
|
662
662
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
663
|
-
var
|
|
663
|
+
var import_class_validator22 = require("class-validator");
|
|
664
664
|
var UpdateSubAdminDto = class {
|
|
665
665
|
};
|
|
666
666
|
__decorateClass([
|
|
667
|
-
(0,
|
|
667
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter unique id." })
|
|
668
668
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
669
669
|
__decorateClass([
|
|
670
|
-
(0,
|
|
670
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter username." })
|
|
671
671
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
672
672
|
__decorateClass([
|
|
673
|
-
(0,
|
|
673
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter first name." })
|
|
674
674
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
675
675
|
__decorateClass([
|
|
676
|
-
(0,
|
|
676
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter last name." })
|
|
677
677
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
678
678
|
__decorateClass([
|
|
679
|
-
(0,
|
|
679
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter email." })
|
|
680
680
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
681
681
|
__decorateClass([
|
|
682
|
-
(0,
|
|
682
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
683
683
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
684
684
|
__decorateClass([
|
|
685
|
-
(0,
|
|
685
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter the password." })
|
|
686
686
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
687
687
|
__decorateClass([
|
|
688
|
-
(0,
|
|
688
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account type." })
|
|
689
689
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
690
690
|
__decorateClass([
|
|
691
|
-
(0,
|
|
691
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account status." })
|
|
692
692
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
693
693
|
|
|
694
694
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -700,53 +700,53 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
700
700
|
};
|
|
701
701
|
|
|
702
702
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
703
|
-
var
|
|
703
|
+
var import_class_validator23 = require("class-validator");
|
|
704
704
|
var UpdateCompanyProfileDto = class {
|
|
705
705
|
};
|
|
706
706
|
__decorateClass([
|
|
707
|
-
(0,
|
|
708
|
-
(0,
|
|
709
|
-
(0,
|
|
707
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company name." }),
|
|
708
|
+
(0, import_class_validator23.IsString)({ message: "Company name must be a string." }),
|
|
709
|
+
(0, import_class_validator23.Length)(2, 255, {
|
|
710
710
|
message: "Company name must be between 2 and 255 characters"
|
|
711
711
|
})
|
|
712
712
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
713
713
|
__decorateClass([
|
|
714
|
-
(0,
|
|
715
|
-
(0,
|
|
714
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
715
|
+
(0, import_class_validator23.IsUrl)({}, { message: "Invalid website URL format" })
|
|
716
716
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
717
717
|
__decorateClass([
|
|
718
|
-
(0,
|
|
719
|
-
(0,
|
|
720
|
-
(0,
|
|
718
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company address." }),
|
|
719
|
+
(0, import_class_validator23.IsString)({ message: "Company address must be a string" }),
|
|
720
|
+
(0, import_class_validator23.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
721
721
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
722
722
|
__decorateClass([
|
|
723
|
-
(0,
|
|
724
|
-
(0,
|
|
723
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
724
|
+
(0, import_class_validator23.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
725
725
|
message: "Please enter a valid US phone number"
|
|
726
726
|
})
|
|
727
727
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
728
728
|
__decorateClass([
|
|
729
|
-
(0,
|
|
730
|
-
(0,
|
|
729
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter email." }),
|
|
730
|
+
(0, import_class_validator23.IsEmail)()
|
|
731
731
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
732
732
|
__decorateClass([
|
|
733
|
-
(0,
|
|
734
|
-
(0,
|
|
733
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
734
|
+
(0, import_class_validator23.IsString)({ message: "About company must be a string." })
|
|
735
735
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
736
736
|
|
|
737
737
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
738
|
-
var
|
|
738
|
+
var import_class_validator24 = require("class-validator");
|
|
739
739
|
var ClientChangePasswordDto = class {
|
|
740
740
|
};
|
|
741
741
|
__decorateClass([
|
|
742
|
-
(0,
|
|
743
|
-
(0,
|
|
744
|
-
(0,
|
|
742
|
+
(0, import_class_validator24.IsString)(),
|
|
743
|
+
(0, import_class_validator24.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
744
|
+
(0, import_class_validator24.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
745
745
|
message: "Password must contain at least one uppercase letter and one number."
|
|
746
746
|
})
|
|
747
747
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
748
748
|
__decorateClass([
|
|
749
|
-
(0,
|
|
749
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
750
750
|
Match("newPassword", { message: "Passwords do not match" })
|
|
751
751
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
752
752
|
|
|
@@ -756,24 +756,24 @@ var QUESTION_PATTERN = {
|
|
|
756
756
|
};
|
|
757
757
|
|
|
758
758
|
// src/modules/question/dto/create-question.dto.ts
|
|
759
|
-
var
|
|
759
|
+
var import_class_validator25 = require("class-validator");
|
|
760
760
|
var CreateQuestionDto = class {
|
|
761
761
|
};
|
|
762
762
|
__decorateClass([
|
|
763
|
-
(0,
|
|
763
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter unique id." })
|
|
764
764
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
765
765
|
__decorateClass([
|
|
766
|
-
(0,
|
|
766
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter question." })
|
|
767
767
|
], CreateQuestionDto.prototype, "question", 2);
|
|
768
768
|
__decorateClass([
|
|
769
|
-
(0,
|
|
769
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
770
770
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
771
771
|
__decorateClass([
|
|
772
|
-
(0,
|
|
772
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter options." })
|
|
773
773
|
], CreateQuestionDto.prototype, "options", 2);
|
|
774
774
|
__decorateClass([
|
|
775
|
-
(0,
|
|
776
|
-
(0,
|
|
775
|
+
(0, import_class_validator25.IsOptional)(),
|
|
776
|
+
(0, import_class_validator25.IsBoolean)({ message: "Whether the question status active" })
|
|
777
777
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
778
778
|
|
|
779
779
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -798,7 +798,7 @@ var JOB_PATTERN = {
|
|
|
798
798
|
};
|
|
799
799
|
|
|
800
800
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
801
|
-
var
|
|
801
|
+
var import_class_validator26 = require("class-validator");
|
|
802
802
|
var import_class_transformer = require("class-transformer");
|
|
803
803
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
804
804
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -815,79 +815,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
815
815
|
var JobBasicInformationDto = class {
|
|
816
816
|
};
|
|
817
817
|
__decorateClass([
|
|
818
|
-
(0,
|
|
819
|
-
(0,
|
|
818
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter job role" }),
|
|
819
|
+
(0, import_class_validator26.IsString)({ message: "Job role must be a string" })
|
|
820
820
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
821
821
|
__decorateClass([
|
|
822
|
-
(0,
|
|
823
|
-
(0,
|
|
822
|
+
(0, import_class_validator26.IsOptional)(),
|
|
823
|
+
(0, import_class_validator26.IsString)({ message: "Note must be a string" })
|
|
824
824
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
825
825
|
__decorateClass([
|
|
826
|
-
(0,
|
|
827
|
-
(0,
|
|
828
|
-
(0,
|
|
826
|
+
(0, import_class_validator26.IsArray)({ message: "Skills must be an array" }),
|
|
827
|
+
(0, import_class_validator26.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
828
|
+
(0, import_class_validator26.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
829
829
|
(0, import_class_transformer.Type)(() => Number)
|
|
830
830
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
831
831
|
__decorateClass([
|
|
832
|
-
(0,
|
|
833
|
-
(0,
|
|
832
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Openings must be a number" }),
|
|
833
|
+
(0, import_class_validator26.Min)(1, { message: "There must be at least 1 opening" }),
|
|
834
834
|
(0, import_class_transformer.Type)(() => Number)
|
|
835
835
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
836
836
|
__decorateClass([
|
|
837
|
-
(0,
|
|
837
|
+
(0, import_class_validator26.IsEnum)(JobLocation, {
|
|
838
838
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
839
839
|
", "
|
|
840
840
|
)}`
|
|
841
841
|
})
|
|
842
842
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
843
843
|
__decorateClass([
|
|
844
|
-
(0,
|
|
844
|
+
(0, import_class_validator26.IsEnum)(EmploymentType, {
|
|
845
845
|
message: `Type of employment must be one of: ${Object.values(
|
|
846
846
|
EmploymentType
|
|
847
847
|
).join(", ")}`
|
|
848
848
|
})
|
|
849
849
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
850
850
|
__decorateClass([
|
|
851
|
-
(0,
|
|
852
|
-
(0,
|
|
851
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
852
|
+
(0, import_class_validator26.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
853
853
|
(0, import_class_transformer.Type)(() => Number)
|
|
854
854
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
855
855
|
__decorateClass([
|
|
856
|
-
(0,
|
|
857
|
-
(0,
|
|
856
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
857
|
+
(0, import_class_validator26.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
858
858
|
(0, import_class_transformer.Type)(() => Number)
|
|
859
859
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
860
860
|
__decorateClass([
|
|
861
|
-
(0,
|
|
862
|
-
(0,
|
|
861
|
+
(0, import_class_validator26.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
862
|
+
(0, import_class_validator26.IsOptional)()
|
|
863
863
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
864
864
|
__decorateClass([
|
|
865
|
-
(0,
|
|
866
|
-
(0,
|
|
865
|
+
(0, import_class_validator26.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
866
|
+
(0, import_class_validator26.IsOptional)()
|
|
867
867
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
868
868
|
|
|
869
869
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
870
|
-
var
|
|
870
|
+
var import_class_validator27 = require("class-validator");
|
|
871
871
|
var JobAdditionalCommentDto = class {
|
|
872
872
|
};
|
|
873
873
|
__decorateClass([
|
|
874
|
-
(0,
|
|
875
|
-
(0,
|
|
876
|
-
(0,
|
|
874
|
+
(0, import_class_validator27.IsOptional)(),
|
|
875
|
+
(0, import_class_validator27.IsString)({ message: "Additional comment must be a string" }),
|
|
876
|
+
(0, import_class_validator27.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
877
877
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
878
878
|
|
|
879
879
|
// src/modules/job/dto/job-description.dto.ts
|
|
880
|
-
var
|
|
880
|
+
var import_class_validator28 = require("class-validator");
|
|
881
881
|
var JobDescriptionDto = class {
|
|
882
882
|
};
|
|
883
883
|
__decorateClass([
|
|
884
|
-
(0,
|
|
885
|
-
(0,
|
|
886
|
-
(0,
|
|
884
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter job description" }),
|
|
885
|
+
(0, import_class_validator28.IsString)({ message: "Description must be a string" }),
|
|
886
|
+
(0, import_class_validator28.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
887
887
|
], JobDescriptionDto.prototype, "description", 2);
|
|
888
888
|
|
|
889
889
|
// src/modules/job/dto/job-status.dto.ts
|
|
890
|
-
var
|
|
890
|
+
var import_class_validator29 = require("class-validator");
|
|
891
891
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
892
892
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
893
893
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -899,18 +899,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
899
899
|
var JobStatusDto = class {
|
|
900
900
|
};
|
|
901
901
|
__decorateClass([
|
|
902
|
-
(0,
|
|
903
|
-
(0,
|
|
902
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
903
|
+
(0, import_class_validator29.IsEnum)(JobStatus, {
|
|
904
904
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
905
905
|
})
|
|
906
906
|
], JobStatusDto.prototype, "status", 2);
|
|
907
907
|
|
|
908
908
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
909
|
-
var
|
|
909
|
+
var import_class_validator30 = require("class-validator");
|
|
910
910
|
var JobIdParamDto = class {
|
|
911
911
|
};
|
|
912
912
|
__decorateClass([
|
|
913
|
-
(0,
|
|
913
|
+
(0, import_class_validator30.IsUUID)("4", {
|
|
914
914
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
915
915
|
})
|
|
916
916
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -924,25 +924,25 @@ var PROFILE_PATTERN = {
|
|
|
924
924
|
};
|
|
925
925
|
|
|
926
926
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
927
|
-
var
|
|
927
|
+
var import_class_validator31 = require("class-validator");
|
|
928
928
|
var FreelancerChangePasswordDto = class {
|
|
929
929
|
};
|
|
930
930
|
__decorateClass([
|
|
931
|
-
(0,
|
|
932
|
-
(0,
|
|
931
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
932
|
+
(0, import_class_validator31.IsString)()
|
|
933
933
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
934
934
|
__decorateClass([
|
|
935
|
-
(0,
|
|
936
|
-
(0,
|
|
937
|
-
(0,
|
|
938
|
-
(0,
|
|
939
|
-
(0,
|
|
935
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
936
|
+
(0, import_class_validator31.IsString)(),
|
|
937
|
+
(0, import_class_validator31.MinLength)(6),
|
|
938
|
+
(0, import_class_validator31.MaxLength)(32),
|
|
939
|
+
(0, import_class_validator31.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
940
940
|
message: "New Password must include letters, numbers and symbols."
|
|
941
941
|
})
|
|
942
942
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
943
943
|
|
|
944
944
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
945
|
-
var
|
|
945
|
+
var import_class_validator32 = require("class-validator");
|
|
946
946
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
947
947
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
948
948
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -952,66 +952,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
952
952
|
var UpdateFreelancerProfileDto = class {
|
|
953
953
|
};
|
|
954
954
|
__decorateClass([
|
|
955
|
-
(0,
|
|
956
|
-
(0,
|
|
955
|
+
(0, import_class_validator32.IsOptional)(),
|
|
956
|
+
(0, import_class_validator32.IsString)()
|
|
957
957
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
958
958
|
__decorateClass([
|
|
959
|
-
(0,
|
|
960
|
-
(0,
|
|
959
|
+
(0, import_class_validator32.IsOptional)(),
|
|
960
|
+
(0, import_class_validator32.IsString)()
|
|
961
961
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
962
962
|
__decorateClass([
|
|
963
|
-
(0,
|
|
964
|
-
(0,
|
|
963
|
+
(0, import_class_validator32.IsOptional)(),
|
|
964
|
+
(0, import_class_validator32.IsEmail)()
|
|
965
965
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
966
966
|
__decorateClass([
|
|
967
|
-
(0,
|
|
968
|
-
(0,
|
|
967
|
+
(0, import_class_validator32.IsOptional)(),
|
|
968
|
+
(0, import_class_validator32.IsString)()
|
|
969
969
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
970
970
|
__decorateClass([
|
|
971
|
-
(0,
|
|
972
|
-
(0,
|
|
971
|
+
(0, import_class_validator32.IsOptional)(),
|
|
972
|
+
(0, import_class_validator32.IsNumber)()
|
|
973
973
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
974
974
|
__decorateClass([
|
|
975
|
-
(0,
|
|
976
|
-
(0,
|
|
975
|
+
(0, import_class_validator32.IsOptional)(),
|
|
976
|
+
(0, import_class_validator32.IsString)()
|
|
977
977
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
978
978
|
__decorateClass([
|
|
979
|
-
(0,
|
|
980
|
-
(0,
|
|
979
|
+
(0, import_class_validator32.IsOptional)(),
|
|
980
|
+
(0, import_class_validator32.IsString)()
|
|
981
981
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
982
982
|
__decorateClass([
|
|
983
|
-
(0,
|
|
984
|
-
(0,
|
|
983
|
+
(0, import_class_validator32.IsOptional)(),
|
|
984
|
+
(0, import_class_validator32.IsEnum)(NatureOfWorkDto, {
|
|
985
985
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
986
986
|
})
|
|
987
987
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
988
988
|
__decorateClass([
|
|
989
|
-
(0,
|
|
990
|
-
(0,
|
|
989
|
+
(0, import_class_validator32.IsOptional)(),
|
|
990
|
+
(0, import_class_validator32.IsString)()
|
|
991
991
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
992
992
|
__decorateClass([
|
|
993
|
-
(0,
|
|
994
|
-
(0,
|
|
993
|
+
(0, import_class_validator32.IsOptional)(),
|
|
994
|
+
(0, import_class_validator32.IsString)()
|
|
995
995
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
996
996
|
__decorateClass([
|
|
997
|
-
(0,
|
|
998
|
-
(0,
|
|
997
|
+
(0, import_class_validator32.IsOptional)(),
|
|
998
|
+
(0, import_class_validator32.IsString)()
|
|
999
999
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1000
1000
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1002
|
-
(0,
|
|
1001
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1002
|
+
(0, import_class_validator32.IsString)()
|
|
1003
1003
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1004
1004
|
__decorateClass([
|
|
1005
|
-
(0,
|
|
1006
|
-
(0,
|
|
1005
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1006
|
+
(0, import_class_validator32.IsString)()
|
|
1007
1007
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1008
1008
|
__decorateClass([
|
|
1009
|
-
(0,
|
|
1010
|
-
(0,
|
|
1009
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1010
|
+
(0, import_class_validator32.IsString)()
|
|
1011
1011
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1012
1012
|
__decorateClass([
|
|
1013
|
-
(0,
|
|
1014
|
-
(0,
|
|
1013
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1014
|
+
(0, import_class_validator32.IsString)()
|
|
1015
1015
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1016
1016
|
|
|
1017
1017
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1022,7 +1022,7 @@ var BANK_PATTERN = {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
1024
1024
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1025
|
-
var
|
|
1025
|
+
var import_class_validator33 = require("class-validator");
|
|
1026
1026
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1027
1027
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1028
1028
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1031,47 +1031,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1031
1031
|
var FreelancerBankDetailsDto = class {
|
|
1032
1032
|
};
|
|
1033
1033
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1034
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1035
1035
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1036
1036
|
__decorateClass([
|
|
1037
|
-
(0,
|
|
1037
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1038
1038
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1039
1039
|
__decorateClass([
|
|
1040
|
-
(0,
|
|
1040
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Email." })
|
|
1041
1041
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1042
1042
|
__decorateClass([
|
|
1043
|
-
(0,
|
|
1043
|
+
(0, import_class_validator33.IsOptional)()
|
|
1044
1044
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1045
1045
|
__decorateClass([
|
|
1046
|
-
(0,
|
|
1046
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1047
1047
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1048
1048
|
__decorateClass([
|
|
1049
|
-
(0,
|
|
1049
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1050
1050
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1051
1051
|
__decorateClass([
|
|
1052
|
-
(0,
|
|
1052
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1053
1053
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1054
1054
|
__decorateClass([
|
|
1055
|
-
(0,
|
|
1056
|
-
(0,
|
|
1055
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1056
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1057
1057
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1058
1058
|
__decorateClass([
|
|
1059
|
-
(0,
|
|
1060
|
-
(0,
|
|
1059
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1060
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1061
1061
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1062
1062
|
__decorateClass([
|
|
1063
|
-
(0,
|
|
1064
|
-
(0,
|
|
1063
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1064
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1065
1065
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1066
1066
|
__decorateClass([
|
|
1067
|
-
(0,
|
|
1068
|
-
(0,
|
|
1067
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1068
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1069
1069
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1070
1070
|
__decorateClass([
|
|
1071
|
-
(0,
|
|
1071
|
+
(0, import_class_validator33.IsOptional)()
|
|
1072
1072
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1073
1073
|
__decorateClass([
|
|
1074
|
-
(0,
|
|
1074
|
+
(0, import_class_validator33.IsEnum)(BankAccountScope, {
|
|
1075
1075
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1076
1076
|
BankAccountScope
|
|
1077
1077
|
).join(", ")}`
|
|
@@ -1091,7 +1091,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
1093
1093
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1094
|
-
var
|
|
1094
|
+
var import_class_validator34 = require("class-validator");
|
|
1095
1095
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1096
1096
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1097
1097
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1100,10 +1100,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1100
1100
|
var SystemPreferenceDto = class {
|
|
1101
1101
|
};
|
|
1102
1102
|
__decorateClass([
|
|
1103
|
-
(0,
|
|
1103
|
+
(0, import_class_validator34.IsBoolean)()
|
|
1104
1104
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1105
1105
|
__decorateClass([
|
|
1106
|
-
(0,
|
|
1106
|
+
(0, import_class_validator34.IsEnum)(SystemPreferenceKey, {
|
|
1107
1107
|
message: `key must be one of: ${Object.values(
|
|
1108
1108
|
SystemPreferenceKey
|
|
1109
1109
|
).join(", ")}`
|
|
@@ -1123,7 +1123,7 @@ var RATING_PATTERN = {
|
|
|
1123
1123
|
};
|
|
1124
1124
|
|
|
1125
1125
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1126
|
-
var
|
|
1126
|
+
var import_class_validator35 = require("class-validator");
|
|
1127
1127
|
|
|
1128
1128
|
// src/entities/rating.entity.ts
|
|
1129
1129
|
var import_typeorm26 = require("typeorm");
|
|
@@ -2577,22 +2577,22 @@ Rating = __decorateClass([
|
|
|
2577
2577
|
var CreateRatingDto = class {
|
|
2578
2578
|
};
|
|
2579
2579
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2581
|
-
(0,
|
|
2580
|
+
(0, import_class_validator35.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
2581
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
2582
2582
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2583
2583
|
__decorateClass([
|
|
2584
|
-
(0,
|
|
2584
|
+
(0, import_class_validator35.IsEnum)(RatingTypeEnum, {
|
|
2585
2585
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2586
2586
|
})
|
|
2587
2587
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
2588
2588
|
__decorateClass([
|
|
2589
|
-
(0,
|
|
2590
|
-
(0,
|
|
2591
|
-
(0,
|
|
2589
|
+
(0, import_class_validator35.IsInt)({ message: "Rating must be an integer value" }),
|
|
2590
|
+
(0, import_class_validator35.Min)(1, { message: "Rating must be at least 1" }),
|
|
2591
|
+
(0, import_class_validator35.Max)(5, { message: "Rating must be at most 5" })
|
|
2592
2592
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2593
2593
|
__decorateClass([
|
|
2594
|
-
(0,
|
|
2595
|
-
(0,
|
|
2594
|
+
(0, import_class_validator35.IsOptional)(),
|
|
2595
|
+
(0, import_class_validator35.IsString)({ message: "Review must be a string" })
|
|
2596
2596
|
], CreateRatingDto.prototype, "review", 2);
|
|
2597
2597
|
|
|
2598
2598
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -2608,47 +2608,47 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2608
2608
|
};
|
|
2609
2609
|
|
|
2610
2610
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2611
|
-
var
|
|
2611
|
+
var import_class_validator36 = require("class-validator");
|
|
2612
2612
|
var CreateCompanyRoleDto = class {
|
|
2613
2613
|
};
|
|
2614
2614
|
__decorateClass([
|
|
2615
|
-
(0,
|
|
2615
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter company role name." })
|
|
2616
2616
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2617
2617
|
__decorateClass([
|
|
2618
|
-
(0,
|
|
2618
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
2619
2619
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2620
2620
|
__decorateClass([
|
|
2621
|
-
(0,
|
|
2621
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter description" })
|
|
2622
2622
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2623
2623
|
__decorateClass([
|
|
2624
|
-
(0,
|
|
2625
|
-
(0,
|
|
2624
|
+
(0, import_class_validator36.IsOptional)(),
|
|
2625
|
+
(0, import_class_validator36.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2626
2626
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2627
2627
|
|
|
2628
2628
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2629
|
-
var
|
|
2629
|
+
var import_class_validator37 = require("class-validator");
|
|
2630
2630
|
var UpdateCompanyRoleDto = class {
|
|
2631
2631
|
};
|
|
2632
2632
|
__decorateClass([
|
|
2633
|
-
(0,
|
|
2633
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter company name." })
|
|
2634
2634
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2635
2635
|
__decorateClass([
|
|
2636
|
-
(0,
|
|
2636
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter slug" })
|
|
2637
2637
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2638
2638
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2639
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter description" })
|
|
2640
2640
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2641
2641
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2643
|
-
(0,
|
|
2642
|
+
(0, import_class_validator37.IsOptional)(),
|
|
2643
|
+
(0, import_class_validator37.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2644
2644
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2645
2645
|
|
|
2646
2646
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2647
|
-
var
|
|
2647
|
+
var import_class_validator38 = require("class-validator");
|
|
2648
2648
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
2649
2649
|
};
|
|
2650
2650
|
__decorateClass([
|
|
2651
|
-
(0,
|
|
2651
|
+
(0, import_class_validator38.IsBoolean)()
|
|
2652
2652
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2653
2653
|
|
|
2654
2654
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -2658,34 +2658,34 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2658
2658
|
};
|
|
2659
2659
|
|
|
2660
2660
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
2661
|
-
var
|
|
2661
|
+
var import_class_validator39 = require("class-validator");
|
|
2662
2662
|
var import_class_transformer2 = require("class-transformer");
|
|
2663
2663
|
var ExperienceDto = class {
|
|
2664
2664
|
};
|
|
2665
2665
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2666
|
+
(0, import_class_validator39.IsOptional)()
|
|
2667
2667
|
], ExperienceDto.prototype, "uuid", 2);
|
|
2668
2668
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2670
|
-
(0,
|
|
2669
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2670
|
+
(0, import_class_validator39.IsString)()
|
|
2671
2671
|
], ExperienceDto.prototype, "companyName", 2);
|
|
2672
2672
|
__decorateClass([
|
|
2673
|
-
(0,
|
|
2674
|
-
(0,
|
|
2673
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2674
|
+
(0, import_class_validator39.IsString)()
|
|
2675
2675
|
], ExperienceDto.prototype, "designation", 2);
|
|
2676
2676
|
__decorateClass([
|
|
2677
|
-
(0,
|
|
2678
|
-
(0,
|
|
2677
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2678
|
+
(0, import_class_validator39.IsString)()
|
|
2679
2679
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
2680
2680
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2682
|
-
(0,
|
|
2683
|
-
(0,
|
|
2681
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2682
|
+
(0, import_class_validator39.IsString)(),
|
|
2683
|
+
(0, import_class_validator39.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2684
2684
|
], ExperienceDto.prototype, "description", 2);
|
|
2685
2685
|
var FreelancerExperienceDto = class {
|
|
2686
2686
|
};
|
|
2687
2687
|
__decorateClass([
|
|
2688
|
-
(0,
|
|
2688
|
+
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2689
2689
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
2690
2690
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
2691
2691
|
|
|
@@ -2702,35 +2702,35 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2702
2702
|
};
|
|
2703
2703
|
|
|
2704
2704
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2705
|
-
var
|
|
2705
|
+
var import_class_validator40 = require("class-validator");
|
|
2706
2706
|
var CreateCompanyMemberDto = class {
|
|
2707
2707
|
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2708
2708
|
// companyRoleId: number;
|
|
2709
2709
|
};
|
|
2710
2710
|
__decorateClass([
|
|
2711
|
-
(0,
|
|
2711
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter name." })
|
|
2712
2712
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2713
2713
|
__decorateClass([
|
|
2714
|
-
(0,
|
|
2714
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter email" })
|
|
2715
2715
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2716
2716
|
|
|
2717
2717
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2718
|
-
var
|
|
2718
|
+
var import_class_validator41 = require("class-validator");
|
|
2719
2719
|
var UpdateCompanyMemberDto = class {
|
|
2720
2720
|
};
|
|
2721
2721
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2722
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter name." })
|
|
2723
2723
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2724
2724
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2725
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter email" })
|
|
2726
2726
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2727
2727
|
|
|
2728
2728
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2729
|
-
var
|
|
2729
|
+
var import_class_validator42 = require("class-validator");
|
|
2730
2730
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
2731
2731
|
};
|
|
2732
2732
|
__decorateClass([
|
|
2733
|
-
(0,
|
|
2733
|
+
(0, import_class_validator42.IsBoolean)()
|
|
2734
2734
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2735
2735
|
|
|
2736
2736
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -2740,30 +2740,30 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2740
2740
|
};
|
|
2741
2741
|
|
|
2742
2742
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2743
|
-
var
|
|
2743
|
+
var import_class_validator43 = require("class-validator");
|
|
2744
2744
|
var import_class_transformer3 = require("class-transformer");
|
|
2745
2745
|
var EducationDto = class {
|
|
2746
2746
|
};
|
|
2747
2747
|
__decorateClass([
|
|
2748
|
-
(0,
|
|
2748
|
+
(0, import_class_validator43.IsOptional)()
|
|
2749
2749
|
], EducationDto.prototype, "uuid", 2);
|
|
2750
2750
|
__decorateClass([
|
|
2751
|
-
(0,
|
|
2752
|
-
(0,
|
|
2751
|
+
(0, import_class_validator43.IsString)(),
|
|
2752
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
2753
2753
|
], EducationDto.prototype, "degree", 2);
|
|
2754
2754
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2756
|
-
(0,
|
|
2755
|
+
(0, import_class_validator43.IsString)(),
|
|
2756
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter University " })
|
|
2757
2757
|
], EducationDto.prototype, "university", 2);
|
|
2758
2758
|
__decorateClass([
|
|
2759
|
-
(0,
|
|
2760
|
-
(0,
|
|
2759
|
+
(0, import_class_validator43.IsString)(),
|
|
2760
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
2761
2761
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2762
2762
|
var FreelancerEducationDto = class {
|
|
2763
2763
|
};
|
|
2764
2764
|
__decorateClass([
|
|
2765
|
-
(0,
|
|
2766
|
-
(0,
|
|
2765
|
+
(0, import_class_validator43.IsArray)(),
|
|
2766
|
+
(0, import_class_validator43.ValidateNested)({ each: true }),
|
|
2767
2767
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
2768
2768
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
2769
2769
|
|
|
@@ -2774,66 +2774,66 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2774
2774
|
};
|
|
2775
2775
|
|
|
2776
2776
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2777
|
-
var
|
|
2777
|
+
var import_class_validator44 = require("class-validator");
|
|
2778
2778
|
var import_class_transformer4 = require("class-transformer");
|
|
2779
2779
|
var ProjectDto = class {
|
|
2780
2780
|
};
|
|
2781
2781
|
__decorateClass([
|
|
2782
|
-
(0,
|
|
2782
|
+
(0, import_class_validator44.IsOptional)()
|
|
2783
2783
|
], ProjectDto.prototype, "uuid", 2);
|
|
2784
2784
|
__decorateClass([
|
|
2785
|
-
(0,
|
|
2786
|
-
(0,
|
|
2785
|
+
(0, import_class_validator44.IsString)(),
|
|
2786
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2787
2787
|
], ProjectDto.prototype, "projectName", 2);
|
|
2788
2788
|
__decorateClass([
|
|
2789
|
-
(0,
|
|
2790
|
-
(0,
|
|
2789
|
+
(0, import_class_validator44.IsDateString)(),
|
|
2790
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
2791
2791
|
], ProjectDto.prototype, "startDate", 2);
|
|
2792
2792
|
__decorateClass([
|
|
2793
|
-
(0,
|
|
2794
|
-
(0,
|
|
2793
|
+
(0, import_class_validator44.IsDateString)(),
|
|
2794
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
2795
2795
|
], ProjectDto.prototype, "endDate", 2);
|
|
2796
2796
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2798
|
-
(0,
|
|
2797
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2798
|
+
(0, import_class_validator44.IsString)()
|
|
2799
2799
|
], ProjectDto.prototype, "clientName", 2);
|
|
2800
2800
|
__decorateClass([
|
|
2801
|
-
(0,
|
|
2802
|
-
(0,
|
|
2801
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2802
|
+
(0, import_class_validator44.IsString)()
|
|
2803
2803
|
], ProjectDto.prototype, "gitLink", 2);
|
|
2804
2804
|
__decorateClass([
|
|
2805
|
-
(0,
|
|
2806
|
-
(0,
|
|
2807
|
-
(0,
|
|
2805
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2806
|
+
(0, import_class_validator44.IsString)(),
|
|
2807
|
+
(0, import_class_validator44.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2808
2808
|
], ProjectDto.prototype, "description", 2);
|
|
2809
2809
|
var CaseStudyDto = class {
|
|
2810
2810
|
};
|
|
2811
2811
|
__decorateClass([
|
|
2812
|
-
(0,
|
|
2812
|
+
(0, import_class_validator44.IsOptional)()
|
|
2813
2813
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2814
2814
|
__decorateClass([
|
|
2815
|
-
(0,
|
|
2816
|
-
(0,
|
|
2815
|
+
(0, import_class_validator44.IsString)(),
|
|
2816
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2817
2817
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2818
2818
|
__decorateClass([
|
|
2819
|
-
(0,
|
|
2820
|
-
(0,
|
|
2819
|
+
(0, import_class_validator44.IsString)(),
|
|
2820
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
2821
2821
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2822
2822
|
__decorateClass([
|
|
2823
|
-
(0,
|
|
2824
|
-
(0,
|
|
2825
|
-
(0,
|
|
2823
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2824
|
+
(0, import_class_validator44.IsString)(),
|
|
2825
|
+
(0, import_class_validator44.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2826
2826
|
], CaseStudyDto.prototype, "description", 2);
|
|
2827
2827
|
var FreelancerProjectDto = class {
|
|
2828
2828
|
};
|
|
2829
2829
|
__decorateClass([
|
|
2830
|
-
(0,
|
|
2831
|
-
(0,
|
|
2830
|
+
(0, import_class_validator44.IsArray)(),
|
|
2831
|
+
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
2832
2832
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
2833
2833
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2834
2834
|
__decorateClass([
|
|
2835
|
-
(0,
|
|
2836
|
-
(0,
|
|
2835
|
+
(0, import_class_validator44.IsArray)(),
|
|
2836
|
+
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
2837
2837
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
2838
2838
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
2839
2839
|
|
|
@@ -2849,7 +2849,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
2849
2849
|
};
|
|
2850
2850
|
|
|
2851
2851
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
2852
|
-
var
|
|
2852
|
+
var import_class_validator45 = require("class-validator");
|
|
2853
2853
|
var import_class_transformer5 = require("class-transformer");
|
|
2854
2854
|
var FreelancerSkillDto = class {
|
|
2855
2855
|
constructor() {
|
|
@@ -2859,22 +2859,22 @@ var FreelancerSkillDto = class {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
};
|
|
2861
2861
|
__decorateClass([
|
|
2862
|
-
(0,
|
|
2863
|
-
(0,
|
|
2862
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2863
|
+
(0, import_class_validator45.IsArray)(),
|
|
2864
2864
|
(0, import_class_transformer5.Type)(() => String),
|
|
2865
|
-
(0,
|
|
2865
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2866
2866
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
2867
2867
|
__decorateClass([
|
|
2868
|
-
(0,
|
|
2869
|
-
(0,
|
|
2868
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2869
|
+
(0, import_class_validator45.IsArray)(),
|
|
2870
2870
|
(0, import_class_transformer5.Type)(() => String),
|
|
2871
|
-
(0,
|
|
2871
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2872
2872
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
2873
2873
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
2875
|
-
(0,
|
|
2874
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2875
|
+
(0, import_class_validator45.IsArray)(),
|
|
2876
2876
|
(0, import_class_transformer5.Type)(() => String),
|
|
2877
|
-
(0,
|
|
2877
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2878
2878
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
2879
2879
|
|
|
2880
2880
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -2896,7 +2896,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
2898
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
2899
|
-
var
|
|
2899
|
+
var import_class_validator46 = require("class-validator");
|
|
2900
2900
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
2901
2901
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
2902
2902
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -2907,16 +2907,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
2907
2907
|
var FreelancerDeclarationDto = class {
|
|
2908
2908
|
};
|
|
2909
2909
|
__decorateClass([
|
|
2910
|
-
(0,
|
|
2911
|
-
(0,
|
|
2910
|
+
(0, import_class_validator46.IsOptional)(),
|
|
2911
|
+
(0, import_class_validator46.IsString)({ message: "UUID must be a string" })
|
|
2912
2912
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
2913
2913
|
__decorateClass([
|
|
2914
|
-
(0,
|
|
2914
|
+
(0, import_class_validator46.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
2915
2915
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
2916
2916
|
__decorateClass([
|
|
2917
|
-
(0,
|
|
2918
|
-
(0,
|
|
2919
|
-
(0,
|
|
2917
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
2918
|
+
(0, import_class_validator46.IsString)(),
|
|
2919
|
+
(0, import_class_validator46.IsIn)([
|
|
2920
2920
|
"true"
|
|
2921
2921
|
])
|
|
2922
2922
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -304,7 +304,7 @@ __decorateClass([
|
|
|
304
304
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
305
305
|
|
|
306
306
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
307
|
-
import {
|
|
307
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty11 } from "class-validator";
|
|
308
308
|
var FreelancerParseResumeDto = class {
|
|
309
309
|
};
|
|
310
310
|
__decorateClass([
|
|
@@ -313,7 +313,7 @@ __decorateClass([
|
|
|
313
313
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
314
314
|
|
|
315
315
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
316
|
-
import {
|
|
316
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
317
317
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
318
318
|
};
|
|
319
319
|
__decorateClass([
|
|
@@ -322,7 +322,7 @@ __decorateClass([
|
|
|
322
322
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
323
323
|
|
|
324
324
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
325
|
-
import {
|
|
325
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
326
326
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
327
327
|
};
|
|
328
328
|
__decorateClass([
|