@experts_hub/shared 1.0.293 → 1.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -734,23 +734,48 @@ __decorateClass([
734
734
  __decorateClass([
735
735
  (0, import_class_validator21.IsNotEmpty)({ message: "Please enter likedin profile url." }),
736
736
  (0, import_class_validator21.IsString)(),
737
- (0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
737
+ (0, import_class_validator21.IsUrl)(
738
+ { require_protocol: false },
739
+ {
740
+ message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
741
+ }
742
+ )
738
743
  ], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
739
744
  __decorateClass([
740
745
  (0, import_class_validator21.IsOptional)(),
741
- (0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
746
+ (0, import_class_validator21.IsUrl)(
747
+ { require_protocol: false },
748
+ {
749
+ message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
750
+ }
751
+ )
742
752
  ], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
743
753
  __decorateClass([
744
754
  (0, import_class_validator21.IsOptional)(),
745
- (0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
755
+ (0, import_class_validator21.IsUrl)(
756
+ { require_protocol: false },
757
+ {
758
+ message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
759
+ }
760
+ )
746
761
  ], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
747
762
  __decorateClass([
748
763
  (0, import_class_validator21.IsOptional)(),
749
- (0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
764
+ (0, import_class_validator21.IsUrl)(
765
+ { require_protocol: false },
766
+ {
767
+ message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
768
+ }
769
+ )
750
770
  ], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
751
771
  __decorateClass([
752
772
  (0, import_class_validator21.IsOptional)(),
753
- (0, import_class_validator21.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
773
+ (0, import_class_validator21.IsUrl)(
774
+ { require_protocol: false },
775
+ {
776
+ message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
777
+ }
778
+ )
754
779
  ], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
755
780
 
756
781
  // src/modules/onboarding/dto/client-profile-question.dto.ts
@@ -1246,6 +1271,7 @@ __decorateClass([
1246
1271
  (0, import_class_validator36.IsString)({ message: "Please enter valid mobile number." })
1247
1272
  ], UpdateFreelancerProfileDto.prototype, "mobile", 2);
1248
1273
  __decorateClass([
1274
+ (0, import_class_validator36.IsOptional)(),
1249
1275
  (0, import_class_validator36.IsNotEmpty)({ message: "Please select country." }),
1250
1276
  (0, import_class_validator36.IsNumber)()
1251
1277
  ], UpdateFreelancerProfileDto.prototype, "countryId", 2);
@@ -3740,9 +3766,10 @@ __decorateClass([
3740
3766
  (0, import_class_validator43.IsString)()
3741
3767
  ], ExperienceDto.prototype, "jobDuration", 2);
3742
3768
  __decorateClass([
3769
+ (0, import_class_validator43.IsOptional)(),
3743
3770
  (0, import_class_validator43.IsNotEmpty)(),
3744
3771
  (0, import_class_validator43.IsString)(),
3745
- (0, import_class_validator43.MaxLength)(500, { message: "Description must not exceed 500 characters" })
3772
+ (0, import_class_validator43.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
3746
3773
  ], ExperienceDto.prototype, "description", 2);
3747
3774
  var FreelancerExperienceDto = class {
3748
3775
  };
@@ -3876,7 +3903,7 @@ __decorateClass([
3876
3903
  __decorateClass([
3877
3904
  (0, import_class_validator48.IsOptional)(),
3878
3905
  (0, import_class_validator48.IsString)(),
3879
- (0, import_class_validator48.MaxLength)(500, { message: "Description must not exceed 500 characters" })
3906
+ (0, import_class_validator48.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
3880
3907
  ], ProjectDto.prototype, "description", 2);
3881
3908
  var CaseStudyDto = class {
3882
3909
  };
@@ -3888,13 +3915,14 @@ __decorateClass([
3888
3915
  (0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Project Name " })
3889
3916
  ], CaseStudyDto.prototype, "projectName", 2);
3890
3917
  __decorateClass([
3918
+ (0, import_class_validator48.IsOptional)(),
3891
3919
  (0, import_class_validator48.IsString)(),
3892
3920
  (0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Case Study Link " })
3893
3921
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
3894
3922
  __decorateClass([
3895
3923
  (0, import_class_validator48.IsOptional)(),
3896
3924
  (0, import_class_validator48.IsString)(),
3897
- (0, import_class_validator48.MaxLength)(500, { message: "Description must not exceed 500 characters" })
3925
+ (0, import_class_validator48.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
3898
3926
  ], CaseStudyDto.prototype, "description", 2);
3899
3927
  var FreelancerProjectDto = class {
3900
3928
  };
package/dist/index.mjs CHANGED
@@ -551,23 +551,48 @@ __decorateClass([
551
551
  __decorateClass([
552
552
  IsNotEmpty18({ message: "Please enter likedin profile url." }),
553
553
  IsString5(),
554
- IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
554
+ IsUrl(
555
+ { require_protocol: false },
556
+ {
557
+ message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
558
+ }
559
+ )
555
560
  ], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
556
561
  __decorateClass([
557
562
  IsOptional3(),
558
- IsUrl({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
563
+ IsUrl(
564
+ { require_protocol: false },
565
+ {
566
+ message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
567
+ }
568
+ )
559
569
  ], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
560
570
  __decorateClass([
561
571
  IsOptional3(),
562
- IsUrl({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
572
+ IsUrl(
573
+ { require_protocol: false },
574
+ {
575
+ message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
576
+ }
577
+ )
563
578
  ], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
564
579
  __decorateClass([
565
580
  IsOptional3(),
566
- IsUrl({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
581
+ IsUrl(
582
+ { require_protocol: false },
583
+ {
584
+ message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
585
+ }
586
+ )
567
587
  ], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
568
588
  __decorateClass([
569
589
  IsOptional3(),
570
- IsUrl({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
590
+ IsUrl(
591
+ { require_protocol: false },
592
+ {
593
+ message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
594
+ }
595
+ )
571
596
  ], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
572
597
 
573
598
  // src/modules/onboarding/dto/client-profile-question.dto.ts
@@ -1115,6 +1140,7 @@ __decorateClass([
1115
1140
  IsString15({ message: "Please enter valid mobile number." })
1116
1141
  ], UpdateFreelancerProfileDto.prototype, "mobile", 2);
1117
1142
  __decorateClass([
1143
+ IsOptional7(),
1118
1144
  IsNotEmpty30({ message: "Please select country." }),
1119
1145
  IsNumber2()
1120
1146
  ], UpdateFreelancerProfileDto.prototype, "countryId", 2);
@@ -3810,9 +3836,10 @@ __decorateClass([
3810
3836
  IsString19()
3811
3837
  ], ExperienceDto.prototype, "jobDuration", 2);
3812
3838
  __decorateClass([
3839
+ IsOptional12(),
3813
3840
  IsNotEmpty35(),
3814
3841
  IsString19(),
3815
- MaxLength9(500, { message: "Description must not exceed 500 characters" })
3842
+ MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
3816
3843
  ], ExperienceDto.prototype, "description", 2);
3817
3844
  var FreelancerExperienceDto = class {
3818
3845
  };
@@ -3946,7 +3973,7 @@ __decorateClass([
3946
3973
  __decorateClass([
3947
3974
  IsOptional16(),
3948
3975
  IsString23(),
3949
- MaxLength11(500, { message: "Description must not exceed 500 characters" })
3976
+ MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
3950
3977
  ], ProjectDto.prototype, "description", 2);
3951
3978
  var CaseStudyDto = class {
3952
3979
  };
@@ -3958,13 +3985,14 @@ __decorateClass([
3958
3985
  IsNotEmpty39({ message: "Please Enter Project Name " })
3959
3986
  ], CaseStudyDto.prototype, "projectName", 2);
3960
3987
  __decorateClass([
3988
+ IsOptional16(),
3961
3989
  IsString23(),
3962
3990
  IsNotEmpty39({ message: "Please Enter Case Study Link " })
3963
3991
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
3964
3992
  __decorateClass([
3965
3993
  IsOptional16(),
3966
3994
  IsString23(),
3967
- MaxLength11(500, { message: "Description must not exceed 500 characters" })
3995
+ MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
3968
3996
  ], CaseStudyDto.prototype, "description", 2);
3969
3997
  var FreelancerProjectDto = class {
3970
3998
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.293",
3
+ "version": "1.0.295",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",