@experts_hub/shared 1.0.173 → 1.0.175
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/entities/cms.entity.d.ts +7 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/index.d.mts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +369 -300
- package/dist/index.mjs +68 -3
- package/dist/modules/cms/dto/create-cms.dto.d.ts +5 -0
- package/dist/modules/cms/dto/index.d.ts +2 -0
- package/dist/modules/cms/dto/update-cms.dto.d.ts +6 -0
- package/dist/modules/cms/index.d.ts +2 -0
- package/dist/modules/cms/pattern/pattern.d.ts +6 -0
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40,14 +40,17 @@ __export(index_exports, {
|
|
|
40
40
|
BaseEntity: () => BaseEntity,
|
|
41
41
|
CLIENT_ADMIN_PATTERNS: () => CLIENT_ADMIN_PATTERNS,
|
|
42
42
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
43
|
+
CMS_PATTERNS: () => CMS_PATTERNS,
|
|
43
44
|
COMPANY_MEMBERS_PATTERNS: () => COMPANY_MEMBERS_PATTERNS,
|
|
44
45
|
COMPANY_ROLES_PATTERNS: () => COMPANY_ROLES_PATTERNS,
|
|
45
46
|
CaseStudyDto: () => CaseStudyDto,
|
|
46
47
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
47
48
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
48
49
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
50
|
+
Cms: () => Cms,
|
|
49
51
|
CompanyProfile: () => CompanyProfile,
|
|
50
52
|
CompanyRole: () => CompanyRole,
|
|
53
|
+
CreateCmsDto: () => CreateCmsDto,
|
|
51
54
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
52
55
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
53
56
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
@@ -159,6 +162,7 @@ __export(index_exports, {
|
|
|
159
162
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
160
163
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
161
164
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
165
|
+
UpdateCmsDto: () => UpdateCmsDto,
|
|
162
166
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
163
167
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
164
168
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
@@ -443,63 +447,63 @@ __decorateClass([
|
|
|
443
447
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
444
448
|
|
|
445
449
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
446
|
-
var
|
|
450
|
+
var import_class_validator12 = require("class-validator");
|
|
447
451
|
var FreelancerParseResumeDto = class {
|
|
448
452
|
};
|
|
449
453
|
__decorateClass([
|
|
450
|
-
(0,
|
|
451
|
-
(0,
|
|
454
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
455
|
+
(0, import_class_validator12.IsUUID)()
|
|
452
456
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
453
457
|
|
|
454
458
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
455
|
-
var
|
|
459
|
+
var import_class_validator13 = require("class-validator");
|
|
456
460
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
457
461
|
};
|
|
458
462
|
__decorateClass([
|
|
459
|
-
(0,
|
|
460
|
-
(0,
|
|
463
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
464
|
+
(0, import_class_validator13.IsUUID)()
|
|
461
465
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
462
466
|
|
|
463
467
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
464
|
-
var
|
|
468
|
+
var import_class_validator14 = require("class-validator");
|
|
465
469
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
466
470
|
};
|
|
467
471
|
__decorateClass([
|
|
468
|
-
(0,
|
|
469
|
-
(0,
|
|
472
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
473
|
+
(0, import_class_validator14.IsUUID)()
|
|
470
474
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
471
475
|
__decorateClass([
|
|
472
|
-
(0,
|
|
476
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
473
477
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
474
478
|
__decorateClass([
|
|
475
|
-
(0,
|
|
479
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
476
480
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
477
481
|
|
|
478
482
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
479
|
-
var
|
|
483
|
+
var import_class_validator15 = require("class-validator");
|
|
480
484
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
481
485
|
};
|
|
482
486
|
__decorateClass([
|
|
483
|
-
(0,
|
|
484
|
-
(0,
|
|
487
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
488
|
+
(0, import_class_validator15.IsUUID)()
|
|
485
489
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
486
490
|
__decorateClass([
|
|
487
|
-
(0,
|
|
488
|
-
(0,
|
|
491
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please select development flag." }),
|
|
492
|
+
(0, import_class_validator15.IsBoolean)()
|
|
489
493
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
490
494
|
|
|
491
495
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
492
|
-
var
|
|
496
|
+
var import_class_validator16 = require("class-validator");
|
|
493
497
|
var FreelancerProfileQuestionDto = class {
|
|
494
498
|
};
|
|
495
499
|
__decorateClass([
|
|
496
|
-
(0,
|
|
497
|
-
(0,
|
|
500
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
501
|
+
(0, import_class_validator16.IsUUID)()
|
|
498
502
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
499
503
|
__decorateClass([
|
|
500
|
-
(0,
|
|
501
|
-
(0,
|
|
502
|
-
(0,
|
|
504
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
505
|
+
(0, import_class_validator16.IsString)(),
|
|
506
|
+
(0, import_class_validator16.IsIn)([
|
|
503
507
|
"natureOfWork",
|
|
504
508
|
"expectedHourlyCompensation",
|
|
505
509
|
"modeOfWork",
|
|
@@ -508,51 +512,51 @@ __decorateClass([
|
|
|
508
512
|
])
|
|
509
513
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
510
514
|
__decorateClass([
|
|
511
|
-
(0,
|
|
515
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter answer." })
|
|
512
516
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
513
517
|
|
|
514
518
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
515
|
-
var
|
|
519
|
+
var import_class_validator17 = require("class-validator");
|
|
516
520
|
var FreelancerWorkShowcaseDto = class {
|
|
517
521
|
};
|
|
518
522
|
__decorateClass([
|
|
519
|
-
(0,
|
|
520
|
-
(0,
|
|
523
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
524
|
+
(0, import_class_validator17.IsUUID)()
|
|
521
525
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
522
526
|
__decorateClass([
|
|
523
|
-
(0,
|
|
524
|
-
(0,
|
|
525
|
-
(0,
|
|
527
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
528
|
+
(0, import_class_validator17.IsString)(),
|
|
529
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
526
530
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
527
531
|
__decorateClass([
|
|
528
|
-
(0,
|
|
529
|
-
(0,
|
|
532
|
+
(0, import_class_validator17.IsOptional)(),
|
|
533
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
530
534
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
531
535
|
__decorateClass([
|
|
532
|
-
(0,
|
|
533
|
-
(0,
|
|
536
|
+
(0, import_class_validator17.IsOptional)(),
|
|
537
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
534
538
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
535
539
|
__decorateClass([
|
|
536
|
-
(0,
|
|
537
|
-
(0,
|
|
540
|
+
(0, import_class_validator17.IsOptional)(),
|
|
541
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
538
542
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
539
543
|
__decorateClass([
|
|
540
|
-
(0,
|
|
541
|
-
(0,
|
|
544
|
+
(0, import_class_validator17.IsOptional)(),
|
|
545
|
+
(0, import_class_validator17.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
542
546
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
543
547
|
|
|
544
548
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
545
|
-
var
|
|
549
|
+
var import_class_validator18 = require("class-validator");
|
|
546
550
|
var ClientProfileQuestionDto = class {
|
|
547
551
|
};
|
|
548
552
|
__decorateClass([
|
|
549
|
-
(0,
|
|
550
|
-
(0,
|
|
553
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
554
|
+
(0, import_class_validator18.IsUUID)()
|
|
551
555
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
552
556
|
__decorateClass([
|
|
553
|
-
(0,
|
|
554
|
-
(0,
|
|
555
|
-
(0,
|
|
557
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
558
|
+
(0, import_class_validator18.IsString)(),
|
|
559
|
+
(0, import_class_validator18.IsIn)([
|
|
556
560
|
"skills",
|
|
557
561
|
"requiredFreelancer",
|
|
558
562
|
"kindOfHiring",
|
|
@@ -561,44 +565,44 @@ __decorateClass([
|
|
|
561
565
|
])
|
|
562
566
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
563
567
|
__decorateClass([
|
|
564
|
-
(0,
|
|
568
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter answer." })
|
|
565
569
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
566
570
|
__decorateClass([
|
|
567
|
-
(0,
|
|
568
|
-
(0,
|
|
569
|
-
(0,
|
|
571
|
+
(0, import_class_validator18.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
572
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
573
|
+
(0, import_class_validator18.IsString)()
|
|
570
574
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
571
575
|
|
|
572
576
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
573
|
-
var
|
|
577
|
+
var import_class_validator19 = require("class-validator");
|
|
574
578
|
var ClientCreateAccountDto = class {
|
|
575
579
|
};
|
|
576
580
|
__decorateClass([
|
|
577
|
-
(0,
|
|
578
|
-
(0,
|
|
581
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter first name." }),
|
|
582
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid first name." })
|
|
579
583
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
580
584
|
__decorateClass([
|
|
581
|
-
(0,
|
|
582
|
-
(0,
|
|
585
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter last name." }),
|
|
586
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid last name." })
|
|
583
587
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
584
588
|
__decorateClass([
|
|
585
|
-
(0,
|
|
586
|
-
(0,
|
|
589
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter email." }),
|
|
590
|
+
(0, import_class_validator19.IsEmail)()
|
|
587
591
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
588
592
|
__decorateClass([
|
|
589
|
-
(0,
|
|
590
|
-
(0,
|
|
593
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter company name." }),
|
|
594
|
+
(0, import_class_validator19.IsString)({ message: "Please enter valid company name." })
|
|
591
595
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
592
596
|
__decorateClass([
|
|
593
|
-
(0,
|
|
594
|
-
(0,
|
|
595
|
-
(0,
|
|
596
|
-
(0,
|
|
597
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter password." }),
|
|
598
|
+
(0, import_class_validator19.MinLength)(6),
|
|
599
|
+
(0, import_class_validator19.MaxLength)(32),
|
|
600
|
+
(0, import_class_validator19.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
597
601
|
message: "Password must include letters, numbers and symbols."
|
|
598
602
|
})
|
|
599
603
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
600
604
|
__decorateClass([
|
|
601
|
-
(0,
|
|
605
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
602
606
|
Match("password", { message: "Passwords do not match" })
|
|
603
607
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
604
608
|
|
|
@@ -620,75 +624,75 @@ var SUBADMIN_PATTERN = {
|
|
|
620
624
|
};
|
|
621
625
|
|
|
622
626
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
623
|
-
var
|
|
627
|
+
var import_class_validator20 = require("class-validator");
|
|
624
628
|
var CreateSubAdminDto = class {
|
|
625
629
|
};
|
|
626
630
|
__decorateClass([
|
|
627
|
-
(0,
|
|
631
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter unique id." })
|
|
628
632
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
629
633
|
__decorateClass([
|
|
630
|
-
(0,
|
|
634
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter username." })
|
|
631
635
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
632
636
|
__decorateClass([
|
|
633
|
-
(0,
|
|
637
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter first name." })
|
|
634
638
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
635
639
|
__decorateClass([
|
|
636
|
-
(0,
|
|
640
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter last name." })
|
|
637
641
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
638
642
|
__decorateClass([
|
|
639
|
-
(0,
|
|
643
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter email." })
|
|
640
644
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
641
645
|
__decorateClass([
|
|
642
|
-
(0,
|
|
646
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
643
647
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
644
648
|
__decorateClass([
|
|
645
|
-
(0,
|
|
649
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter the password." })
|
|
646
650
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
647
651
|
__decorateClass([
|
|
648
|
-
(0,
|
|
652
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter account type." })
|
|
649
653
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
650
654
|
__decorateClass([
|
|
651
|
-
(0,
|
|
655
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter account status." })
|
|
652
656
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
653
657
|
|
|
654
658
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
655
|
-
var
|
|
659
|
+
var import_class_validator21 = require("class-validator");
|
|
656
660
|
var UpdateSubAdminAccountStatusDto = class {
|
|
657
661
|
};
|
|
658
662
|
__decorateClass([
|
|
659
|
-
(0,
|
|
663
|
+
(0, import_class_validator21.IsString)()
|
|
660
664
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
661
665
|
|
|
662
666
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
663
|
-
var
|
|
667
|
+
var import_class_validator22 = require("class-validator");
|
|
664
668
|
var UpdateSubAdminDto = class {
|
|
665
669
|
};
|
|
666
670
|
__decorateClass([
|
|
667
|
-
(0,
|
|
671
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter unique id." })
|
|
668
672
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
669
673
|
__decorateClass([
|
|
670
|
-
(0,
|
|
674
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter username." })
|
|
671
675
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
672
676
|
__decorateClass([
|
|
673
|
-
(0,
|
|
677
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter first name." })
|
|
674
678
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
675
679
|
__decorateClass([
|
|
676
|
-
(0,
|
|
680
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter last name." })
|
|
677
681
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
678
682
|
__decorateClass([
|
|
679
|
-
(0,
|
|
683
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter email." })
|
|
680
684
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
681
685
|
__decorateClass([
|
|
682
|
-
(0,
|
|
686
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
683
687
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
684
688
|
__decorateClass([
|
|
685
|
-
(0,
|
|
689
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter the password." })
|
|
686
690
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
687
691
|
__decorateClass([
|
|
688
|
-
(0,
|
|
692
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account type." })
|
|
689
693
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
690
694
|
__decorateClass([
|
|
691
|
-
(0,
|
|
695
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter account status." })
|
|
692
696
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
693
697
|
|
|
694
698
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -700,53 +704,53 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
700
704
|
};
|
|
701
705
|
|
|
702
706
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
703
|
-
var
|
|
707
|
+
var import_class_validator23 = require("class-validator");
|
|
704
708
|
var UpdateCompanyProfileDto = class {
|
|
705
709
|
};
|
|
706
710
|
__decorateClass([
|
|
707
|
-
(0,
|
|
708
|
-
(0,
|
|
709
|
-
(0,
|
|
711
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company name." }),
|
|
712
|
+
(0, import_class_validator23.IsString)({ message: "Company name must be a string." }),
|
|
713
|
+
(0, import_class_validator23.Length)(2, 255, {
|
|
710
714
|
message: "Company name must be between 2 and 255 characters"
|
|
711
715
|
})
|
|
712
716
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
713
717
|
__decorateClass([
|
|
714
|
-
(0,
|
|
715
|
-
(0,
|
|
718
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
719
|
+
(0, import_class_validator23.IsUrl)({}, { message: "Invalid website URL format" })
|
|
716
720
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
717
721
|
__decorateClass([
|
|
718
|
-
(0,
|
|
719
|
-
(0,
|
|
720
|
-
(0,
|
|
722
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter company address." }),
|
|
723
|
+
(0, import_class_validator23.IsString)({ message: "Company address must be a string" }),
|
|
724
|
+
(0, import_class_validator23.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
721
725
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
722
726
|
__decorateClass([
|
|
723
|
-
(0,
|
|
724
|
-
(0,
|
|
727
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
728
|
+
(0, import_class_validator23.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
725
729
|
message: "Please enter a valid US phone number"
|
|
726
730
|
})
|
|
727
731
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
728
732
|
__decorateClass([
|
|
729
|
-
(0,
|
|
730
|
-
(0,
|
|
733
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter email." }),
|
|
734
|
+
(0, import_class_validator23.IsEmail)()
|
|
731
735
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
732
736
|
__decorateClass([
|
|
733
|
-
(0,
|
|
734
|
-
(0,
|
|
737
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
738
|
+
(0, import_class_validator23.IsString)({ message: "About company must be a string." })
|
|
735
739
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
736
740
|
|
|
737
741
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
738
|
-
var
|
|
742
|
+
var import_class_validator24 = require("class-validator");
|
|
739
743
|
var ClientChangePasswordDto = class {
|
|
740
744
|
};
|
|
741
745
|
__decorateClass([
|
|
742
|
-
(0,
|
|
743
|
-
(0,
|
|
744
|
-
(0,
|
|
746
|
+
(0, import_class_validator24.IsString)(),
|
|
747
|
+
(0, import_class_validator24.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
748
|
+
(0, import_class_validator24.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
745
749
|
message: "Password must contain at least one uppercase letter and one number."
|
|
746
750
|
})
|
|
747
751
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
748
752
|
__decorateClass([
|
|
749
|
-
(0,
|
|
753
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
750
754
|
Match("newPassword", { message: "Passwords do not match" })
|
|
751
755
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
752
756
|
|
|
@@ -756,24 +760,24 @@ var QUESTION_PATTERN = {
|
|
|
756
760
|
};
|
|
757
761
|
|
|
758
762
|
// src/modules/question/dto/create-question.dto.ts
|
|
759
|
-
var
|
|
763
|
+
var import_class_validator25 = require("class-validator");
|
|
760
764
|
var CreateQuestionDto = class {
|
|
761
765
|
};
|
|
762
766
|
__decorateClass([
|
|
763
|
-
(0,
|
|
767
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter unique id." })
|
|
764
768
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
765
769
|
__decorateClass([
|
|
766
|
-
(0,
|
|
770
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter question." })
|
|
767
771
|
], CreateQuestionDto.prototype, "question", 2);
|
|
768
772
|
__decorateClass([
|
|
769
|
-
(0,
|
|
773
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
770
774
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
771
775
|
__decorateClass([
|
|
772
|
-
(0,
|
|
776
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter options." })
|
|
773
777
|
], CreateQuestionDto.prototype, "options", 2);
|
|
774
778
|
__decorateClass([
|
|
775
|
-
(0,
|
|
776
|
-
(0,
|
|
779
|
+
(0, import_class_validator25.IsOptional)(),
|
|
780
|
+
(0, import_class_validator25.IsBoolean)({ message: "Whether the question status active" })
|
|
777
781
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
778
782
|
|
|
779
783
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -798,7 +802,7 @@ var JOB_PATTERN = {
|
|
|
798
802
|
};
|
|
799
803
|
|
|
800
804
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
801
|
-
var
|
|
805
|
+
var import_class_validator26 = require("class-validator");
|
|
802
806
|
var import_class_transformer = require("class-transformer");
|
|
803
807
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
804
808
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -815,79 +819,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
815
819
|
var JobBasicInformationDto = class {
|
|
816
820
|
};
|
|
817
821
|
__decorateClass([
|
|
818
|
-
(0,
|
|
819
|
-
(0,
|
|
822
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter job role" }),
|
|
823
|
+
(0, import_class_validator26.IsString)({ message: "Job role must be a string" })
|
|
820
824
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
821
825
|
__decorateClass([
|
|
822
|
-
(0,
|
|
823
|
-
(0,
|
|
826
|
+
(0, import_class_validator26.IsOptional)(),
|
|
827
|
+
(0, import_class_validator26.IsString)({ message: "Note must be a string" })
|
|
824
828
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
825
829
|
__decorateClass([
|
|
826
|
-
(0,
|
|
827
|
-
(0,
|
|
828
|
-
(0,
|
|
830
|
+
(0, import_class_validator26.IsArray)({ message: "Skills must be an array" }),
|
|
831
|
+
(0, import_class_validator26.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
832
|
+
(0, import_class_validator26.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
829
833
|
(0, import_class_transformer.Type)(() => Number)
|
|
830
834
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
831
835
|
__decorateClass([
|
|
832
|
-
(0,
|
|
833
|
-
(0,
|
|
836
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Openings must be a number" }),
|
|
837
|
+
(0, import_class_validator26.Min)(1, { message: "There must be at least 1 opening" }),
|
|
834
838
|
(0, import_class_transformer.Type)(() => Number)
|
|
835
839
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
836
840
|
__decorateClass([
|
|
837
|
-
(0,
|
|
841
|
+
(0, import_class_validator26.IsEnum)(JobLocation, {
|
|
838
842
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
839
843
|
", "
|
|
840
844
|
)}`
|
|
841
845
|
})
|
|
842
846
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
843
847
|
__decorateClass([
|
|
844
|
-
(0,
|
|
848
|
+
(0, import_class_validator26.IsEnum)(EmploymentType, {
|
|
845
849
|
message: `Type of employment must be one of: ${Object.values(
|
|
846
850
|
EmploymentType
|
|
847
851
|
).join(", ")}`
|
|
848
852
|
})
|
|
849
853
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
850
854
|
__decorateClass([
|
|
851
|
-
(0,
|
|
852
|
-
(0,
|
|
855
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
856
|
+
(0, import_class_validator26.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
853
857
|
(0, import_class_transformer.Type)(() => Number)
|
|
854
858
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
855
859
|
__decorateClass([
|
|
856
|
-
(0,
|
|
857
|
-
(0,
|
|
860
|
+
(0, import_class_validator26.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
861
|
+
(0, import_class_validator26.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
858
862
|
(0, import_class_transformer.Type)(() => Number)
|
|
859
863
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
860
864
|
__decorateClass([
|
|
861
|
-
(0,
|
|
862
|
-
(0,
|
|
865
|
+
(0, import_class_validator26.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
866
|
+
(0, import_class_validator26.IsOptional)()
|
|
863
867
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
864
868
|
__decorateClass([
|
|
865
|
-
(0,
|
|
866
|
-
(0,
|
|
869
|
+
(0, import_class_validator26.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
870
|
+
(0, import_class_validator26.IsOptional)()
|
|
867
871
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
868
872
|
|
|
869
873
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
870
|
-
var
|
|
874
|
+
var import_class_validator27 = require("class-validator");
|
|
871
875
|
var JobAdditionalCommentDto = class {
|
|
872
876
|
};
|
|
873
877
|
__decorateClass([
|
|
874
|
-
(0,
|
|
875
|
-
(0,
|
|
876
|
-
(0,
|
|
878
|
+
(0, import_class_validator27.IsOptional)(),
|
|
879
|
+
(0, import_class_validator27.IsString)({ message: "Additional comment must be a string" }),
|
|
880
|
+
(0, import_class_validator27.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
877
881
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
878
882
|
|
|
879
883
|
// src/modules/job/dto/job-description.dto.ts
|
|
880
|
-
var
|
|
884
|
+
var import_class_validator28 = require("class-validator");
|
|
881
885
|
var JobDescriptionDto = class {
|
|
882
886
|
};
|
|
883
887
|
__decorateClass([
|
|
884
|
-
(0,
|
|
885
|
-
(0,
|
|
886
|
-
(0,
|
|
888
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter job description" }),
|
|
889
|
+
(0, import_class_validator28.IsString)({ message: "Description must be a string" }),
|
|
890
|
+
(0, import_class_validator28.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
887
891
|
], JobDescriptionDto.prototype, "description", 2);
|
|
888
892
|
|
|
889
893
|
// src/modules/job/dto/job-status.dto.ts
|
|
890
|
-
var
|
|
894
|
+
var import_class_validator29 = require("class-validator");
|
|
891
895
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
892
896
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
893
897
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -899,18 +903,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
899
903
|
var JobStatusDto = class {
|
|
900
904
|
};
|
|
901
905
|
__decorateClass([
|
|
902
|
-
(0,
|
|
903
|
-
(0,
|
|
906
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
907
|
+
(0, import_class_validator29.IsEnum)(JobStatus, {
|
|
904
908
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
905
909
|
})
|
|
906
910
|
], JobStatusDto.prototype, "status", 2);
|
|
907
911
|
|
|
908
912
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
909
|
-
var
|
|
913
|
+
var import_class_validator30 = require("class-validator");
|
|
910
914
|
var JobIdParamDto = class {
|
|
911
915
|
};
|
|
912
916
|
__decorateClass([
|
|
913
|
-
(0,
|
|
917
|
+
(0, import_class_validator30.IsUUID)("4", {
|
|
914
918
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
915
919
|
})
|
|
916
920
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -924,25 +928,25 @@ var PROFILE_PATTERN = {
|
|
|
924
928
|
};
|
|
925
929
|
|
|
926
930
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
927
|
-
var
|
|
931
|
+
var import_class_validator31 = require("class-validator");
|
|
928
932
|
var FreelancerChangePasswordDto = class {
|
|
929
933
|
};
|
|
930
934
|
__decorateClass([
|
|
931
|
-
(0,
|
|
932
|
-
(0,
|
|
935
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
936
|
+
(0, import_class_validator31.IsString)()
|
|
933
937
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
934
938
|
__decorateClass([
|
|
935
|
-
(0,
|
|
936
|
-
(0,
|
|
937
|
-
(0,
|
|
938
|
-
(0,
|
|
939
|
-
(0,
|
|
939
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
940
|
+
(0, import_class_validator31.IsString)(),
|
|
941
|
+
(0, import_class_validator31.MinLength)(6),
|
|
942
|
+
(0, import_class_validator31.MaxLength)(32),
|
|
943
|
+
(0, import_class_validator31.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
940
944
|
message: "New Password must include letters, numbers and symbols."
|
|
941
945
|
})
|
|
942
946
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
943
947
|
|
|
944
948
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
945
|
-
var
|
|
949
|
+
var import_class_validator32 = require("class-validator");
|
|
946
950
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
947
951
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
948
952
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -952,66 +956,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
952
956
|
var UpdateFreelancerProfileDto = class {
|
|
953
957
|
};
|
|
954
958
|
__decorateClass([
|
|
955
|
-
(0,
|
|
956
|
-
(0,
|
|
959
|
+
(0, import_class_validator32.IsOptional)(),
|
|
960
|
+
(0, import_class_validator32.IsString)()
|
|
957
961
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
958
962
|
__decorateClass([
|
|
959
|
-
(0,
|
|
960
|
-
(0,
|
|
963
|
+
(0, import_class_validator32.IsOptional)(),
|
|
964
|
+
(0, import_class_validator32.IsString)()
|
|
961
965
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
962
966
|
__decorateClass([
|
|
963
|
-
(0,
|
|
964
|
-
(0,
|
|
967
|
+
(0, import_class_validator32.IsOptional)(),
|
|
968
|
+
(0, import_class_validator32.IsEmail)()
|
|
965
969
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
966
970
|
__decorateClass([
|
|
967
|
-
(0,
|
|
968
|
-
(0,
|
|
971
|
+
(0, import_class_validator32.IsOptional)(),
|
|
972
|
+
(0, import_class_validator32.IsString)()
|
|
969
973
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
970
974
|
__decorateClass([
|
|
971
|
-
(0,
|
|
972
|
-
(0,
|
|
975
|
+
(0, import_class_validator32.IsOptional)(),
|
|
976
|
+
(0, import_class_validator32.IsNumber)()
|
|
973
977
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
974
978
|
__decorateClass([
|
|
975
|
-
(0,
|
|
976
|
-
(0,
|
|
979
|
+
(0, import_class_validator32.IsOptional)(),
|
|
980
|
+
(0, import_class_validator32.IsString)()
|
|
977
981
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
978
982
|
__decorateClass([
|
|
979
|
-
(0,
|
|
980
|
-
(0,
|
|
983
|
+
(0, import_class_validator32.IsOptional)(),
|
|
984
|
+
(0, import_class_validator32.IsString)()
|
|
981
985
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
982
986
|
__decorateClass([
|
|
983
|
-
(0,
|
|
984
|
-
(0,
|
|
987
|
+
(0, import_class_validator32.IsOptional)(),
|
|
988
|
+
(0, import_class_validator32.IsEnum)(NatureOfWorkDto, {
|
|
985
989
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
986
990
|
})
|
|
987
991
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
988
992
|
__decorateClass([
|
|
989
|
-
(0,
|
|
990
|
-
(0,
|
|
993
|
+
(0, import_class_validator32.IsOptional)(),
|
|
994
|
+
(0, import_class_validator32.IsString)()
|
|
991
995
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
992
996
|
__decorateClass([
|
|
993
|
-
(0,
|
|
994
|
-
(0,
|
|
997
|
+
(0, import_class_validator32.IsOptional)(),
|
|
998
|
+
(0, import_class_validator32.IsString)()
|
|
995
999
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
996
1000
|
__decorateClass([
|
|
997
|
-
(0,
|
|
998
|
-
(0,
|
|
1001
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1002
|
+
(0, import_class_validator32.IsString)()
|
|
999
1003
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1000
1004
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1002
|
-
(0,
|
|
1005
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1006
|
+
(0, import_class_validator32.IsString)()
|
|
1003
1007
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1004
1008
|
__decorateClass([
|
|
1005
|
-
(0,
|
|
1006
|
-
(0,
|
|
1009
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1010
|
+
(0, import_class_validator32.IsString)()
|
|
1007
1011
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1008
1012
|
__decorateClass([
|
|
1009
|
-
(0,
|
|
1010
|
-
(0,
|
|
1013
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1014
|
+
(0, import_class_validator32.IsString)()
|
|
1011
1015
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1012
1016
|
__decorateClass([
|
|
1013
|
-
(0,
|
|
1014
|
-
(0,
|
|
1017
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1018
|
+
(0, import_class_validator32.IsString)()
|
|
1015
1019
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1016
1020
|
|
|
1017
1021
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1022,7 +1026,7 @@ var BANK_PATTERN = {
|
|
|
1022
1026
|
};
|
|
1023
1027
|
|
|
1024
1028
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1025
|
-
var
|
|
1029
|
+
var import_class_validator33 = require("class-validator");
|
|
1026
1030
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1027
1031
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1028
1032
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1031,47 +1035,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1031
1035
|
var FreelancerBankDetailsDto = class {
|
|
1032
1036
|
};
|
|
1033
1037
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1038
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1035
1039
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1036
1040
|
__decorateClass([
|
|
1037
|
-
(0,
|
|
1041
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1038
1042
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1039
1043
|
__decorateClass([
|
|
1040
|
-
(0,
|
|
1044
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Email." })
|
|
1041
1045
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1042
1046
|
__decorateClass([
|
|
1043
|
-
(0,
|
|
1047
|
+
(0, import_class_validator33.IsOptional)()
|
|
1044
1048
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1045
1049
|
__decorateClass([
|
|
1046
|
-
(0,
|
|
1050
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1047
1051
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1048
1052
|
__decorateClass([
|
|
1049
|
-
(0,
|
|
1053
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1050
1054
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1051
1055
|
__decorateClass([
|
|
1052
|
-
(0,
|
|
1056
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1053
1057
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1054
1058
|
__decorateClass([
|
|
1055
|
-
(0,
|
|
1056
|
-
(0,
|
|
1059
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1060
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1057
1061
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1058
1062
|
__decorateClass([
|
|
1059
|
-
(0,
|
|
1060
|
-
(0,
|
|
1063
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1064
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1061
1065
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1062
1066
|
__decorateClass([
|
|
1063
|
-
(0,
|
|
1064
|
-
(0,
|
|
1067
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1068
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1065
1069
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1066
1070
|
__decorateClass([
|
|
1067
|
-
(0,
|
|
1068
|
-
(0,
|
|
1071
|
+
(0, import_class_validator33.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1072
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1069
1073
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1070
1074
|
__decorateClass([
|
|
1071
|
-
(0,
|
|
1075
|
+
(0, import_class_validator33.IsOptional)()
|
|
1072
1076
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1073
1077
|
__decorateClass([
|
|
1074
|
-
(0,
|
|
1078
|
+
(0, import_class_validator33.IsEnum)(BankAccountScope, {
|
|
1075
1079
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1076
1080
|
BankAccountScope
|
|
1077
1081
|
).join(", ")}`
|
|
@@ -1091,7 +1095,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1091
1095
|
};
|
|
1092
1096
|
|
|
1093
1097
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1094
|
-
var
|
|
1098
|
+
var import_class_validator34 = require("class-validator");
|
|
1095
1099
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1096
1100
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1097
1101
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1100,10 +1104,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1100
1104
|
var SystemPreferenceDto = class {
|
|
1101
1105
|
};
|
|
1102
1106
|
__decorateClass([
|
|
1103
|
-
(0,
|
|
1107
|
+
(0, import_class_validator34.IsBoolean)()
|
|
1104
1108
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1105
1109
|
__decorateClass([
|
|
1106
|
-
(0,
|
|
1110
|
+
(0, import_class_validator34.IsEnum)(SystemPreferenceKey, {
|
|
1107
1111
|
message: `key must be one of: ${Object.values(
|
|
1108
1112
|
SystemPreferenceKey
|
|
1109
1113
|
).join(", ")}`
|
|
@@ -1123,7 +1127,7 @@ var RATING_PATTERN = {
|
|
|
1123
1127
|
};
|
|
1124
1128
|
|
|
1125
1129
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1126
|
-
var
|
|
1130
|
+
var import_class_validator35 = require("class-validator");
|
|
1127
1131
|
|
|
1128
1132
|
// src/entities/rating.entity.ts
|
|
1129
1133
|
var import_typeorm26 = require("typeorm");
|
|
@@ -2577,22 +2581,22 @@ Rating = __decorateClass([
|
|
|
2577
2581
|
var CreateRatingDto = class {
|
|
2578
2582
|
};
|
|
2579
2583
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2581
|
-
(0,
|
|
2584
|
+
(0, import_class_validator35.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
2585
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
2582
2586
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2583
2587
|
__decorateClass([
|
|
2584
|
-
(0,
|
|
2588
|
+
(0, import_class_validator35.IsEnum)(RatingTypeEnum, {
|
|
2585
2589
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2586
2590
|
})
|
|
2587
2591
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
2588
2592
|
__decorateClass([
|
|
2589
|
-
(0,
|
|
2590
|
-
(0,
|
|
2591
|
-
(0,
|
|
2593
|
+
(0, import_class_validator35.IsInt)({ message: "Rating must be an integer value" }),
|
|
2594
|
+
(0, import_class_validator35.Min)(1, { message: "Rating must be at least 1" }),
|
|
2595
|
+
(0, import_class_validator35.Max)(5, { message: "Rating must be at most 5" })
|
|
2592
2596
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2593
2597
|
__decorateClass([
|
|
2594
|
-
(0,
|
|
2595
|
-
(0,
|
|
2598
|
+
(0, import_class_validator35.IsOptional)(),
|
|
2599
|
+
(0, import_class_validator35.IsString)({ message: "Review must be a string" })
|
|
2596
2600
|
], CreateRatingDto.prototype, "review", 2);
|
|
2597
2601
|
|
|
2598
2602
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -2608,47 +2612,47 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2608
2612
|
};
|
|
2609
2613
|
|
|
2610
2614
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2611
|
-
var
|
|
2615
|
+
var import_class_validator36 = require("class-validator");
|
|
2612
2616
|
var CreateCompanyRoleDto = class {
|
|
2613
2617
|
};
|
|
2614
2618
|
__decorateClass([
|
|
2615
|
-
(0,
|
|
2619
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter company role name." })
|
|
2616
2620
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2617
2621
|
__decorateClass([
|
|
2618
|
-
(0,
|
|
2622
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
2619
2623
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2620
2624
|
__decorateClass([
|
|
2621
|
-
(0,
|
|
2625
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter description" })
|
|
2622
2626
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2623
2627
|
__decorateClass([
|
|
2624
|
-
(0,
|
|
2625
|
-
(0,
|
|
2628
|
+
(0, import_class_validator36.IsOptional)(),
|
|
2629
|
+
(0, import_class_validator36.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2626
2630
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2627
2631
|
|
|
2628
2632
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2629
|
-
var
|
|
2633
|
+
var import_class_validator37 = require("class-validator");
|
|
2630
2634
|
var UpdateCompanyRoleDto = class {
|
|
2631
2635
|
};
|
|
2632
2636
|
__decorateClass([
|
|
2633
|
-
(0,
|
|
2637
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter company name." })
|
|
2634
2638
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2635
2639
|
__decorateClass([
|
|
2636
|
-
(0,
|
|
2640
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter slug" })
|
|
2637
2641
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2638
2642
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2643
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter description" })
|
|
2640
2644
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2641
2645
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2643
|
-
(0,
|
|
2646
|
+
(0, import_class_validator37.IsOptional)(),
|
|
2647
|
+
(0, import_class_validator37.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2644
2648
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2645
2649
|
|
|
2646
2650
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2647
|
-
var
|
|
2651
|
+
var import_class_validator38 = require("class-validator");
|
|
2648
2652
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
2649
2653
|
};
|
|
2650
2654
|
__decorateClass([
|
|
2651
|
-
(0,
|
|
2655
|
+
(0, import_class_validator38.IsBoolean)()
|
|
2652
2656
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2653
2657
|
|
|
2654
2658
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -2658,34 +2662,34 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2658
2662
|
};
|
|
2659
2663
|
|
|
2660
2664
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
2661
|
-
var
|
|
2665
|
+
var import_class_validator39 = require("class-validator");
|
|
2662
2666
|
var import_class_transformer2 = require("class-transformer");
|
|
2663
2667
|
var ExperienceDto = class {
|
|
2664
2668
|
};
|
|
2665
2669
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2670
|
+
(0, import_class_validator39.IsOptional)()
|
|
2667
2671
|
], ExperienceDto.prototype, "uuid", 2);
|
|
2668
2672
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2670
|
-
(0,
|
|
2673
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2674
|
+
(0, import_class_validator39.IsString)()
|
|
2671
2675
|
], ExperienceDto.prototype, "companyName", 2);
|
|
2672
2676
|
__decorateClass([
|
|
2673
|
-
(0,
|
|
2674
|
-
(0,
|
|
2677
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2678
|
+
(0, import_class_validator39.IsString)()
|
|
2675
2679
|
], ExperienceDto.prototype, "designation", 2);
|
|
2676
2680
|
__decorateClass([
|
|
2677
|
-
(0,
|
|
2678
|
-
(0,
|
|
2681
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2682
|
+
(0, import_class_validator39.IsString)()
|
|
2679
2683
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
2680
2684
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2682
|
-
(0,
|
|
2683
|
-
(0,
|
|
2685
|
+
(0, import_class_validator39.IsNotEmpty)(),
|
|
2686
|
+
(0, import_class_validator39.IsString)(),
|
|
2687
|
+
(0, import_class_validator39.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2684
2688
|
], ExperienceDto.prototype, "description", 2);
|
|
2685
2689
|
var FreelancerExperienceDto = class {
|
|
2686
2690
|
};
|
|
2687
2691
|
__decorateClass([
|
|
2688
|
-
(0,
|
|
2692
|
+
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2689
2693
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
2690
2694
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
2691
2695
|
|
|
@@ -2702,35 +2706,35 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2702
2706
|
};
|
|
2703
2707
|
|
|
2704
2708
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2705
|
-
var
|
|
2709
|
+
var import_class_validator40 = require("class-validator");
|
|
2706
2710
|
var CreateCompanyMemberDto = class {
|
|
2707
2711
|
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2708
2712
|
// companyRoleId: number;
|
|
2709
2713
|
};
|
|
2710
2714
|
__decorateClass([
|
|
2711
|
-
(0,
|
|
2715
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter name." })
|
|
2712
2716
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2713
2717
|
__decorateClass([
|
|
2714
|
-
(0,
|
|
2718
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter email" })
|
|
2715
2719
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2716
2720
|
|
|
2717
2721
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2718
|
-
var
|
|
2722
|
+
var import_class_validator41 = require("class-validator");
|
|
2719
2723
|
var UpdateCompanyMemberDto = class {
|
|
2720
2724
|
};
|
|
2721
2725
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2726
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter name." })
|
|
2723
2727
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2724
2728
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2729
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter email" })
|
|
2726
2730
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2727
2731
|
|
|
2728
2732
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2729
|
-
var
|
|
2733
|
+
var import_class_validator42 = require("class-validator");
|
|
2730
2734
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
2731
2735
|
};
|
|
2732
2736
|
__decorateClass([
|
|
2733
|
-
(0,
|
|
2737
|
+
(0, import_class_validator42.IsBoolean)()
|
|
2734
2738
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2735
2739
|
|
|
2736
2740
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -2740,30 +2744,30 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2740
2744
|
};
|
|
2741
2745
|
|
|
2742
2746
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2743
|
-
var
|
|
2747
|
+
var import_class_validator43 = require("class-validator");
|
|
2744
2748
|
var import_class_transformer3 = require("class-transformer");
|
|
2745
2749
|
var EducationDto = class {
|
|
2746
2750
|
};
|
|
2747
2751
|
__decorateClass([
|
|
2748
|
-
(0,
|
|
2752
|
+
(0, import_class_validator43.IsOptional)()
|
|
2749
2753
|
], EducationDto.prototype, "uuid", 2);
|
|
2750
2754
|
__decorateClass([
|
|
2751
|
-
(0,
|
|
2752
|
-
(0,
|
|
2755
|
+
(0, import_class_validator43.IsString)(),
|
|
2756
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
2753
2757
|
], EducationDto.prototype, "degree", 2);
|
|
2754
2758
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2756
|
-
(0,
|
|
2759
|
+
(0, import_class_validator43.IsString)(),
|
|
2760
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter University " })
|
|
2757
2761
|
], EducationDto.prototype, "university", 2);
|
|
2758
2762
|
__decorateClass([
|
|
2759
|
-
(0,
|
|
2760
|
-
(0,
|
|
2763
|
+
(0, import_class_validator43.IsString)(),
|
|
2764
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
2761
2765
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2762
2766
|
var FreelancerEducationDto = class {
|
|
2763
2767
|
};
|
|
2764
2768
|
__decorateClass([
|
|
2765
|
-
(0,
|
|
2766
|
-
(0,
|
|
2769
|
+
(0, import_class_validator43.IsArray)(),
|
|
2770
|
+
(0, import_class_validator43.ValidateNested)({ each: true }),
|
|
2767
2771
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
2768
2772
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
2769
2773
|
|
|
@@ -2774,66 +2778,66 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2774
2778
|
};
|
|
2775
2779
|
|
|
2776
2780
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2777
|
-
var
|
|
2781
|
+
var import_class_validator44 = require("class-validator");
|
|
2778
2782
|
var import_class_transformer4 = require("class-transformer");
|
|
2779
2783
|
var ProjectDto = class {
|
|
2780
2784
|
};
|
|
2781
2785
|
__decorateClass([
|
|
2782
|
-
(0,
|
|
2786
|
+
(0, import_class_validator44.IsOptional)()
|
|
2783
2787
|
], ProjectDto.prototype, "uuid", 2);
|
|
2784
2788
|
__decorateClass([
|
|
2785
|
-
(0,
|
|
2786
|
-
(0,
|
|
2789
|
+
(0, import_class_validator44.IsString)(),
|
|
2790
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2787
2791
|
], ProjectDto.prototype, "projectName", 2);
|
|
2788
2792
|
__decorateClass([
|
|
2789
|
-
(0,
|
|
2790
|
-
(0,
|
|
2793
|
+
(0, import_class_validator44.IsDateString)(),
|
|
2794
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
2791
2795
|
], ProjectDto.prototype, "startDate", 2);
|
|
2792
2796
|
__decorateClass([
|
|
2793
|
-
(0,
|
|
2794
|
-
(0,
|
|
2797
|
+
(0, import_class_validator44.IsDateString)(),
|
|
2798
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
2795
2799
|
], ProjectDto.prototype, "endDate", 2);
|
|
2796
2800
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2798
|
-
(0,
|
|
2801
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2802
|
+
(0, import_class_validator44.IsString)()
|
|
2799
2803
|
], ProjectDto.prototype, "clientName", 2);
|
|
2800
2804
|
__decorateClass([
|
|
2801
|
-
(0,
|
|
2802
|
-
(0,
|
|
2805
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2806
|
+
(0, import_class_validator44.IsString)()
|
|
2803
2807
|
], ProjectDto.prototype, "gitLink", 2);
|
|
2804
2808
|
__decorateClass([
|
|
2805
|
-
(0,
|
|
2806
|
-
(0,
|
|
2807
|
-
(0,
|
|
2809
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2810
|
+
(0, import_class_validator44.IsString)(),
|
|
2811
|
+
(0, import_class_validator44.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2808
2812
|
], ProjectDto.prototype, "description", 2);
|
|
2809
2813
|
var CaseStudyDto = class {
|
|
2810
2814
|
};
|
|
2811
2815
|
__decorateClass([
|
|
2812
|
-
(0,
|
|
2816
|
+
(0, import_class_validator44.IsOptional)()
|
|
2813
2817
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2814
2818
|
__decorateClass([
|
|
2815
|
-
(0,
|
|
2816
|
-
(0,
|
|
2819
|
+
(0, import_class_validator44.IsString)(),
|
|
2820
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2817
2821
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2818
2822
|
__decorateClass([
|
|
2819
|
-
(0,
|
|
2820
|
-
(0,
|
|
2823
|
+
(0, import_class_validator44.IsString)(),
|
|
2824
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
2821
2825
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2822
2826
|
__decorateClass([
|
|
2823
|
-
(0,
|
|
2824
|
-
(0,
|
|
2825
|
-
(0,
|
|
2827
|
+
(0, import_class_validator44.IsOptional)(),
|
|
2828
|
+
(0, import_class_validator44.IsString)(),
|
|
2829
|
+
(0, import_class_validator44.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2826
2830
|
], CaseStudyDto.prototype, "description", 2);
|
|
2827
2831
|
var FreelancerProjectDto = class {
|
|
2828
2832
|
};
|
|
2829
2833
|
__decorateClass([
|
|
2830
|
-
(0,
|
|
2831
|
-
(0,
|
|
2834
|
+
(0, import_class_validator44.IsArray)(),
|
|
2835
|
+
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
2832
2836
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
2833
2837
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2834
2838
|
__decorateClass([
|
|
2835
|
-
(0,
|
|
2836
|
-
(0,
|
|
2839
|
+
(0, import_class_validator44.IsArray)(),
|
|
2840
|
+
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
2837
2841
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
2838
2842
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
2839
2843
|
|
|
@@ -2849,7 +2853,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
2849
2853
|
};
|
|
2850
2854
|
|
|
2851
2855
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
2852
|
-
var
|
|
2856
|
+
var import_class_validator45 = require("class-validator");
|
|
2853
2857
|
var import_class_transformer5 = require("class-transformer");
|
|
2854
2858
|
var FreelancerSkillDto = class {
|
|
2855
2859
|
constructor() {
|
|
@@ -2859,22 +2863,22 @@ var FreelancerSkillDto = class {
|
|
|
2859
2863
|
}
|
|
2860
2864
|
};
|
|
2861
2865
|
__decorateClass([
|
|
2862
|
-
(0,
|
|
2863
|
-
(0,
|
|
2866
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2867
|
+
(0, import_class_validator45.IsArray)(),
|
|
2864
2868
|
(0, import_class_transformer5.Type)(() => String),
|
|
2865
|
-
(0,
|
|
2869
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2866
2870
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
2867
2871
|
__decorateClass([
|
|
2868
|
-
(0,
|
|
2869
|
-
(0,
|
|
2872
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2873
|
+
(0, import_class_validator45.IsArray)(),
|
|
2870
2874
|
(0, import_class_transformer5.Type)(() => String),
|
|
2871
|
-
(0,
|
|
2875
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2872
2876
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
2873
2877
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
2875
|
-
(0,
|
|
2878
|
+
(0, import_class_validator45.IsOptional)(),
|
|
2879
|
+
(0, import_class_validator45.IsArray)(),
|
|
2876
2880
|
(0, import_class_transformer5.Type)(() => String),
|
|
2877
|
-
(0,
|
|
2881
|
+
(0, import_class_validator45.IsString)({ each: true })
|
|
2878
2882
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
2879
2883
|
|
|
2880
2884
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -2896,7 +2900,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
2896
2900
|
};
|
|
2897
2901
|
|
|
2898
2902
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
2899
|
-
var
|
|
2903
|
+
var import_class_validator46 = require("class-validator");
|
|
2900
2904
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
2901
2905
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
2902
2906
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -2907,20 +2911,61 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
2907
2911
|
var FreelancerDeclarationDto = class {
|
|
2908
2912
|
};
|
|
2909
2913
|
__decorateClass([
|
|
2910
|
-
(0,
|
|
2911
|
-
(0,
|
|
2914
|
+
(0, import_class_validator46.IsOptional)(),
|
|
2915
|
+
(0, import_class_validator46.IsString)({ message: "UUID must be a string" })
|
|
2912
2916
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
2913
2917
|
__decorateClass([
|
|
2914
|
-
(0,
|
|
2918
|
+
(0, import_class_validator46.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
2915
2919
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
2916
2920
|
__decorateClass([
|
|
2917
|
-
(0,
|
|
2918
|
-
(0,
|
|
2919
|
-
(0,
|
|
2921
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
2922
|
+
(0, import_class_validator46.IsString)(),
|
|
2923
|
+
(0, import_class_validator46.IsIn)([
|
|
2920
2924
|
"true"
|
|
2921
2925
|
])
|
|
2922
2926
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
2923
2927
|
|
|
2928
|
+
// src/modules/cms/pattern/pattern.ts
|
|
2929
|
+
var CMS_PATTERNS = {
|
|
2930
|
+
fetchCms: "cms.fetch",
|
|
2931
|
+
createCms: "cms.create",
|
|
2932
|
+
updateCms: "cms.update",
|
|
2933
|
+
deleteCms: "cms.delete"
|
|
2934
|
+
};
|
|
2935
|
+
|
|
2936
|
+
// src/modules/cms/dto/create-cms.dto.ts
|
|
2937
|
+
var import_class_validator47 = require("class-validator");
|
|
2938
|
+
var CreateCmsDto = class {
|
|
2939
|
+
};
|
|
2940
|
+
__decorateClass([
|
|
2941
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter name." })
|
|
2942
|
+
], CreateCmsDto.prototype, "title", 2);
|
|
2943
|
+
__decorateClass([
|
|
2944
|
+
(0, import_class_validator47.IsOptional)()
|
|
2945
|
+
], CreateCmsDto.prototype, "content", 2);
|
|
2946
|
+
__decorateClass([
|
|
2947
|
+
(0, import_class_validator47.IsOptional)(),
|
|
2948
|
+
(0, import_class_validator47.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2949
|
+
], CreateCmsDto.prototype, "isActive", 2);
|
|
2950
|
+
|
|
2951
|
+
// src/modules/cms/dto/update-cms.dto.ts
|
|
2952
|
+
var import_class_validator48 = require("class-validator");
|
|
2953
|
+
var UpdateCmsDto = class {
|
|
2954
|
+
};
|
|
2955
|
+
__decorateClass([
|
|
2956
|
+
(0, import_class_validator48.IsOptional)()
|
|
2957
|
+
], UpdateCmsDto.prototype, "uuid", 2);
|
|
2958
|
+
__decorateClass([
|
|
2959
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter name." })
|
|
2960
|
+
], UpdateCmsDto.prototype, "title", 2);
|
|
2961
|
+
__decorateClass([
|
|
2962
|
+
(0, import_class_validator48.IsOptional)()
|
|
2963
|
+
], UpdateCmsDto.prototype, "content", 2);
|
|
2964
|
+
__decorateClass([
|
|
2965
|
+
(0, import_class_validator48.IsOptional)(),
|
|
2966
|
+
(0, import_class_validator48.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2967
|
+
], UpdateCmsDto.prototype, "isActive", 2);
|
|
2968
|
+
|
|
2924
2969
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2925
2970
|
var import_dotenv = require("dotenv");
|
|
2926
2971
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -3256,6 +3301,26 @@ __decorateClass([
|
|
|
3256
3301
|
Permission = __decorateClass([
|
|
3257
3302
|
(0, import_typeorm31.Entity)("permissions")
|
|
3258
3303
|
], Permission);
|
|
3304
|
+
|
|
3305
|
+
// src/entities/cms.entity.ts
|
|
3306
|
+
var import_typeorm32 = require("typeorm");
|
|
3307
|
+
var Cms = class extends BaseEntity {
|
|
3308
|
+
};
|
|
3309
|
+
__decorateClass([
|
|
3310
|
+
(0, import_typeorm32.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3311
|
+
], Cms.prototype, "title", 2);
|
|
3312
|
+
__decorateClass([
|
|
3313
|
+
(0, import_typeorm32.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3314
|
+
], Cms.prototype, "slug", 2);
|
|
3315
|
+
__decorateClass([
|
|
3316
|
+
(0, import_typeorm32.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3317
|
+
], Cms.prototype, "content", 2);
|
|
3318
|
+
__decorateClass([
|
|
3319
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3320
|
+
], Cms.prototype, "isActive", 2);
|
|
3321
|
+
Cms = __decorateClass([
|
|
3322
|
+
(0, import_typeorm32.Entity)("cms")
|
|
3323
|
+
], Cms);
|
|
3259
3324
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3260
3325
|
0 && (module.exports = {
|
|
3261
3326
|
AUTHENTICATION_PATTERN,
|
|
@@ -3271,14 +3336,17 @@ Permission = __decorateClass([
|
|
|
3271
3336
|
BaseEntity,
|
|
3272
3337
|
CLIENT_ADMIN_PATTERNS,
|
|
3273
3338
|
CLIENT_PROFILE_PATTERN,
|
|
3339
|
+
CMS_PATTERNS,
|
|
3274
3340
|
COMPANY_MEMBERS_PATTERNS,
|
|
3275
3341
|
COMPANY_ROLES_PATTERNS,
|
|
3276
3342
|
CaseStudyDto,
|
|
3277
3343
|
ClientChangePasswordDto,
|
|
3278
3344
|
ClientCreateAccountDto,
|
|
3279
3345
|
ClientProfileQuestionDto,
|
|
3346
|
+
Cms,
|
|
3280
3347
|
CompanyProfile,
|
|
3281
3348
|
CompanyRole,
|
|
3349
|
+
CreateCmsDto,
|
|
3282
3350
|
CreateCompanyMemberDto,
|
|
3283
3351
|
CreateCompanyRoleDto,
|
|
3284
3352
|
CreateQuestionDto,
|
|
@@ -3390,6 +3458,7 @@ Permission = __decorateClass([
|
|
|
3390
3458
|
ToggleCompanyMemberVisibilityDto,
|
|
3391
3459
|
ToggleCompanyRoleVisibilityDto,
|
|
3392
3460
|
TypeOfEmploymentEnum,
|
|
3461
|
+
UpdateCmsDto,
|
|
3393
3462
|
UpdateCompanyMemberDto,
|
|
3394
3463
|
UpdateCompanyProfileDto,
|
|
3395
3464
|
UpdateCompanyRoleDto,
|