@experts_hub/shared 1.0.136 → 1.0.137
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 +3 -2
- package/dist/index.mjs +71 -71
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -569,7 +569,9 @@ var UpdateCompanyProfileDto = class {
|
|
|
569
569
|
__decorateClass([
|
|
570
570
|
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter company name." }),
|
|
571
571
|
(0, import_class_validator17.IsString)({ message: "Company name must be a string." }),
|
|
572
|
-
(0, import_class_validator17.Length)(2, 255, {
|
|
572
|
+
(0, import_class_validator17.Length)(2, 255, {
|
|
573
|
+
message: "Company name must be between 2 and 255 characters"
|
|
574
|
+
})
|
|
573
575
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
574
576
|
__decorateClass([
|
|
575
577
|
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
@@ -591,7 +593,6 @@ __decorateClass([
|
|
|
591
593
|
(0, import_class_validator17.IsEmail)()
|
|
592
594
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
593
595
|
__decorateClass([
|
|
594
|
-
(0, import_class_validator17.IsOptional)(),
|
|
595
596
|
(0, import_class_validator17.IsString)({ message: "About company must be a string." })
|
|
596
597
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
597
598
|
|
package/dist/index.mjs
CHANGED
|
@@ -480,7 +480,6 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
480
480
|
|
|
481
481
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
482
482
|
import {
|
|
483
|
-
IsOptional as IsOptional4,
|
|
484
483
|
IsString as IsString8,
|
|
485
484
|
IsNotEmpty as IsNotEmpty15,
|
|
486
485
|
IsEmail as IsEmail5,
|
|
@@ -493,7 +492,9 @@ var UpdateCompanyProfileDto = class {
|
|
|
493
492
|
__decorateClass([
|
|
494
493
|
IsNotEmpty15({ message: "Please enter company name." }),
|
|
495
494
|
IsString8({ message: "Company name must be a string." }),
|
|
496
|
-
Length(2, 255, {
|
|
495
|
+
Length(2, 255, {
|
|
496
|
+
message: "Company name must be between 2 and 255 characters"
|
|
497
|
+
})
|
|
497
498
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
498
499
|
__decorateClass([
|
|
499
500
|
IsNotEmpty15({ message: "Please enter company website url." }),
|
|
@@ -515,7 +516,6 @@ __decorateClass([
|
|
|
515
516
|
IsEmail5()
|
|
516
517
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
517
518
|
__decorateClass([
|
|
518
|
-
IsOptional4(),
|
|
519
519
|
IsString8({ message: "About company must be a string." })
|
|
520
520
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
521
521
|
|
|
@@ -551,8 +551,8 @@ var QUESTION_PATTERN = {
|
|
|
551
551
|
// src/modules/question/dto/create-question.dto.ts
|
|
552
552
|
import {
|
|
553
553
|
IsNotEmpty as IsNotEmpty17,
|
|
554
|
-
IsOptional as
|
|
555
|
-
IsBoolean as
|
|
554
|
+
IsOptional as IsOptional4,
|
|
555
|
+
IsBoolean as IsBoolean4
|
|
556
556
|
} from "class-validator";
|
|
557
557
|
var CreateQuestionDto = class {
|
|
558
558
|
};
|
|
@@ -569,8 +569,8 @@ __decorateClass([
|
|
|
569
569
|
IsNotEmpty17({ message: "Please enter options." })
|
|
570
570
|
], CreateQuestionDto.prototype, "options", 2);
|
|
571
571
|
__decorateClass([
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
IsOptional4(),
|
|
573
|
+
IsBoolean4({ message: "Whether the question status active" })
|
|
574
574
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
575
575
|
|
|
576
576
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -598,11 +598,11 @@ var JOB_PATTERN = {
|
|
|
598
598
|
import {
|
|
599
599
|
IsString as IsString10,
|
|
600
600
|
IsNotEmpty as IsNotEmpty18,
|
|
601
|
-
IsArray
|
|
601
|
+
IsArray,
|
|
602
602
|
ArrayNotEmpty,
|
|
603
|
-
IsNumber
|
|
604
|
-
IsOptional as
|
|
605
|
-
IsEnum as
|
|
603
|
+
IsNumber,
|
|
604
|
+
IsOptional as IsOptional5,
|
|
605
|
+
IsEnum as IsEnum4,
|
|
606
606
|
Min
|
|
607
607
|
} from "class-validator";
|
|
608
608
|
import { Type } from "class-transformer";
|
|
@@ -625,59 +625,59 @@ __decorateClass([
|
|
|
625
625
|
IsString10({ message: "Job role must be a string" })
|
|
626
626
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
627
627
|
__decorateClass([
|
|
628
|
-
|
|
628
|
+
IsOptional5(),
|
|
629
629
|
IsString10({ message: "Note must be a string" })
|
|
630
630
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
631
631
|
__decorateClass([
|
|
632
|
-
|
|
632
|
+
IsArray({ message: "Skills must be an array" }),
|
|
633
633
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
634
|
-
|
|
634
|
+
IsNumber({}, { each: true, message: "Each skill must be a number" }),
|
|
635
635
|
Type(() => Number)
|
|
636
636
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
637
637
|
__decorateClass([
|
|
638
|
-
|
|
638
|
+
IsNumber({}, { message: "Openings must be a number" }),
|
|
639
639
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
640
640
|
Type(() => Number)
|
|
641
641
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
642
642
|
__decorateClass([
|
|
643
|
-
|
|
643
|
+
IsEnum4(JobLocation, {
|
|
644
644
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
645
645
|
", "
|
|
646
646
|
)}`
|
|
647
647
|
})
|
|
648
648
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
649
649
|
__decorateClass([
|
|
650
|
-
|
|
650
|
+
IsEnum4(EmploymentType, {
|
|
651
651
|
message: `Type of employment must be one of: ${Object.values(
|
|
652
652
|
EmploymentType
|
|
653
653
|
).join(", ")}`
|
|
654
654
|
})
|
|
655
655
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
656
656
|
__decorateClass([
|
|
657
|
-
|
|
657
|
+
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
658
658
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
659
659
|
Type(() => Number)
|
|
660
660
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
661
661
|
__decorateClass([
|
|
662
|
-
|
|
662
|
+
IsNumber({}, { message: "Expected salary (to) must be a number" }),
|
|
663
663
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
664
664
|
Type(() => Number)
|
|
665
665
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
666
666
|
__decorateClass([
|
|
667
667
|
IsString10({ message: "Onboarding TAT must be a string" }),
|
|
668
|
-
|
|
668
|
+
IsOptional5()
|
|
669
669
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
670
670
|
__decorateClass([
|
|
671
671
|
IsString10({ message: "Candidate communication skills must be a string" }),
|
|
672
|
-
|
|
672
|
+
IsOptional5()
|
|
673
673
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
674
674
|
|
|
675
675
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
676
|
-
import { IsOptional as
|
|
676
|
+
import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as MaxLength6 } from "class-validator";
|
|
677
677
|
var JobAdditionalCommentDto = class {
|
|
678
678
|
};
|
|
679
679
|
__decorateClass([
|
|
680
|
-
|
|
680
|
+
IsOptional6(),
|
|
681
681
|
IsString11({ message: "Additional comment must be a string" }),
|
|
682
682
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
683
683
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -693,7 +693,7 @@ __decorateClass([
|
|
|
693
693
|
], JobDescriptionDto.prototype, "description", 2);
|
|
694
694
|
|
|
695
695
|
// src/modules/job/dto/job-status.dto.ts
|
|
696
|
-
import { IsEnum as
|
|
696
|
+
import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty20 } from "class-validator";
|
|
697
697
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
698
698
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
699
699
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -706,7 +706,7 @@ var JobStatusDto = class {
|
|
|
706
706
|
};
|
|
707
707
|
__decorateClass([
|
|
708
708
|
IsNotEmpty20({ message: "Please provide a job status" }),
|
|
709
|
-
|
|
709
|
+
IsEnum5(JobStatus, {
|
|
710
710
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
711
711
|
})
|
|
712
712
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -754,7 +754,7 @@ __decorateClass([
|
|
|
754
754
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
755
755
|
|
|
756
756
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
757
|
-
import { IsOptional as
|
|
757
|
+
import { IsOptional as IsOptional7, IsString as IsString14, IsEmail as IsEmail6, IsNumber as IsNumber2, IsEnum as IsEnum6 } from "class-validator";
|
|
758
758
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
759
759
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
760
760
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -764,65 +764,65 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
764
764
|
var UpdateFreelancerProfileDto = class {
|
|
765
765
|
};
|
|
766
766
|
__decorateClass([
|
|
767
|
-
|
|
767
|
+
IsOptional7(),
|
|
768
768
|
IsString14()
|
|
769
769
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
770
770
|
__decorateClass([
|
|
771
|
-
|
|
771
|
+
IsOptional7(),
|
|
772
772
|
IsString14()
|
|
773
773
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
774
774
|
__decorateClass([
|
|
775
|
-
|
|
775
|
+
IsOptional7(),
|
|
776
776
|
IsEmail6()
|
|
777
777
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
778
778
|
__decorateClass([
|
|
779
|
-
|
|
779
|
+
IsOptional7(),
|
|
780
780
|
IsString14()
|
|
781
781
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
782
782
|
__decorateClass([
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
IsOptional7(),
|
|
784
|
+
IsNumber2()
|
|
785
785
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
786
786
|
__decorateClass([
|
|
787
|
-
|
|
787
|
+
IsOptional7(),
|
|
788
788
|
IsString14()
|
|
789
789
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
790
790
|
__decorateClass([
|
|
791
|
-
|
|
791
|
+
IsOptional7(),
|
|
792
792
|
IsString14()
|
|
793
793
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
794
794
|
__decorateClass([
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
IsOptional7(),
|
|
796
|
+
IsEnum6(NatureOfWorkDto, {
|
|
797
797
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
798
798
|
})
|
|
799
799
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
800
800
|
__decorateClass([
|
|
801
|
-
|
|
801
|
+
IsOptional7(),
|
|
802
802
|
IsString14()
|
|
803
803
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
804
804
|
__decorateClass([
|
|
805
|
-
|
|
805
|
+
IsOptional7(),
|
|
806
806
|
IsString14()
|
|
807
807
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
808
808
|
__decorateClass([
|
|
809
|
-
|
|
809
|
+
IsOptional7(),
|
|
810
810
|
IsString14()
|
|
811
811
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
812
812
|
__decorateClass([
|
|
813
|
-
|
|
813
|
+
IsOptional7(),
|
|
814
814
|
IsString14()
|
|
815
815
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
816
816
|
__decorateClass([
|
|
817
|
-
|
|
817
|
+
IsOptional7(),
|
|
818
818
|
IsString14()
|
|
819
819
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
820
820
|
__decorateClass([
|
|
821
|
-
|
|
821
|
+
IsOptional7(),
|
|
822
822
|
IsString14()
|
|
823
823
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
824
824
|
__decorateClass([
|
|
825
|
-
|
|
825
|
+
IsOptional7(),
|
|
826
826
|
IsString14()
|
|
827
827
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
828
828
|
|
|
@@ -835,9 +835,9 @@ var BANK_PATTERN = {
|
|
|
835
835
|
|
|
836
836
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
837
837
|
import {
|
|
838
|
-
IsEnum as
|
|
838
|
+
IsEnum as IsEnum7,
|
|
839
839
|
IsNotEmpty as IsNotEmpty22,
|
|
840
|
-
IsOptional as
|
|
840
|
+
IsOptional as IsOptional8,
|
|
841
841
|
ValidateIf
|
|
842
842
|
} from "class-validator";
|
|
843
843
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -857,7 +857,7 @@ __decorateClass([
|
|
|
857
857
|
IsNotEmpty22({ message: "Please enter Email." })
|
|
858
858
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
859
859
|
__decorateClass([
|
|
860
|
-
|
|
860
|
+
IsOptional8()
|
|
861
861
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
862
862
|
__decorateClass([
|
|
863
863
|
IsNotEmpty22({ message: "Please enter Account Number." })
|
|
@@ -885,10 +885,10 @@ __decorateClass([
|
|
|
885
885
|
IsNotEmpty22({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
886
886
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
887
887
|
__decorateClass([
|
|
888
|
-
|
|
888
|
+
IsOptional8()
|
|
889
889
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
890
890
|
__decorateClass([
|
|
891
|
-
|
|
891
|
+
IsEnum7(BankAccountScope, {
|
|
892
892
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
893
893
|
BankAccountScope
|
|
894
894
|
).join(", ")}`
|
|
@@ -909,8 +909,8 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
909
909
|
|
|
910
910
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
911
911
|
import {
|
|
912
|
-
IsBoolean as
|
|
913
|
-
IsEnum as
|
|
912
|
+
IsBoolean as IsBoolean5,
|
|
913
|
+
IsEnum as IsEnum8
|
|
914
914
|
} from "class-validator";
|
|
915
915
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
916
916
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -920,10 +920,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
920
920
|
var SystemPreferenceDto = class {
|
|
921
921
|
};
|
|
922
922
|
__decorateClass([
|
|
923
|
-
|
|
923
|
+
IsBoolean5()
|
|
924
924
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
925
925
|
__decorateClass([
|
|
926
|
-
|
|
926
|
+
IsEnum8(SystemPreferenceKey, {
|
|
927
927
|
message: `key must be one of: ${Object.values(
|
|
928
928
|
SystemPreferenceKey
|
|
929
929
|
).join(", ")}`
|
|
@@ -944,10 +944,10 @@ var RATING_PATTERN = {
|
|
|
944
944
|
|
|
945
945
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
946
946
|
import {
|
|
947
|
-
IsEnum as
|
|
947
|
+
IsEnum as IsEnum9,
|
|
948
948
|
IsInt,
|
|
949
949
|
IsNotEmpty as IsNotEmpty23,
|
|
950
|
-
IsOptional as
|
|
950
|
+
IsOptional as IsOptional9,
|
|
951
951
|
IsString as IsString15,
|
|
952
952
|
Max,
|
|
953
953
|
Min as Min2
|
|
@@ -2106,7 +2106,7 @@ __decorateClass([
|
|
|
2106
2106
|
IsNotEmpty23({ message: "Reviewee ID is required" })
|
|
2107
2107
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2108
2108
|
__decorateClass([
|
|
2109
|
-
|
|
2109
|
+
IsEnum9(RatingTypeEnum, {
|
|
2110
2110
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2111
2111
|
})
|
|
2112
2112
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -2116,7 +2116,7 @@ __decorateClass([
|
|
|
2116
2116
|
Max(5, { message: "Rating must be at most 5" })
|
|
2117
2117
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2118
2118
|
__decorateClass([
|
|
2119
|
-
|
|
2119
|
+
IsOptional9(),
|
|
2120
2120
|
IsString15({ message: "Review must be a string" })
|
|
2121
2121
|
], CreateRatingDto.prototype, "review", 2);
|
|
2122
2122
|
|
|
@@ -2133,7 +2133,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2133
2133
|
};
|
|
2134
2134
|
|
|
2135
2135
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2136
|
-
import { IsBoolean as
|
|
2136
|
+
import { IsBoolean as IsBoolean6, IsNotEmpty as IsNotEmpty24, IsOptional as IsOptional10 } from "class-validator";
|
|
2137
2137
|
var CreateCompanyRoleDto = class {
|
|
2138
2138
|
};
|
|
2139
2139
|
__decorateClass([
|
|
@@ -2146,12 +2146,12 @@ __decorateClass([
|
|
|
2146
2146
|
IsNotEmpty24({ message: "Please enter description" })
|
|
2147
2147
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2148
2148
|
__decorateClass([
|
|
2149
|
-
|
|
2150
|
-
|
|
2149
|
+
IsOptional10(),
|
|
2150
|
+
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
2151
2151
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2152
2152
|
|
|
2153
2153
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2154
|
-
import { IsBoolean as
|
|
2154
|
+
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional11 } from "class-validator";
|
|
2155
2155
|
var UpdateCompanyRoleDto = class {
|
|
2156
2156
|
};
|
|
2157
2157
|
__decorateClass([
|
|
@@ -2164,16 +2164,16 @@ __decorateClass([
|
|
|
2164
2164
|
IsNotEmpty25({ message: "Please enter description" })
|
|
2165
2165
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2166
2166
|
__decorateClass([
|
|
2167
|
-
|
|
2168
|
-
|
|
2167
|
+
IsOptional11(),
|
|
2168
|
+
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
2169
2169
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2170
2170
|
|
|
2171
2171
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2172
|
-
import { IsBoolean as
|
|
2172
|
+
import { IsBoolean as IsBoolean8 } from "class-validator";
|
|
2173
2173
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
2174
2174
|
};
|
|
2175
2175
|
__decorateClass([
|
|
2176
|
-
|
|
2176
|
+
IsBoolean8()
|
|
2177
2177
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2178
2178
|
|
|
2179
2179
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -2184,7 +2184,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2184
2184
|
};
|
|
2185
2185
|
|
|
2186
2186
|
// src/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.ts
|
|
2187
|
-
import { IsArray as
|
|
2187
|
+
import { IsArray as IsArray2, ValidateNested, IsString as IsString18, IsNotEmpty as IsNotEmpty26 } from "class-validator";
|
|
2188
2188
|
import { Type as Type2 } from "class-transformer";
|
|
2189
2189
|
var CreateExperienceDto = class {
|
|
2190
2190
|
};
|
|
@@ -2206,18 +2206,18 @@ __decorateClass([
|
|
|
2206
2206
|
var CreateFreelancerExperienceDto = class {
|
|
2207
2207
|
};
|
|
2208
2208
|
__decorateClass([
|
|
2209
|
-
|
|
2209
|
+
IsArray2(),
|
|
2210
2210
|
ValidateNested({ each: true }),
|
|
2211
2211
|
Type2(() => CreateExperienceDto)
|
|
2212
2212
|
], CreateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2213
2213
|
|
|
2214
2214
|
// src/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.ts
|
|
2215
|
-
import { IsArray as
|
|
2215
|
+
import { IsArray as IsArray3, ValidateNested as ValidateNested2, IsString as IsString19, IsNotEmpty as IsNotEmpty27, IsOptional as IsOptional12 } from "class-validator";
|
|
2216
2216
|
import { Type as Type3 } from "class-transformer";
|
|
2217
2217
|
var UpdateExperienceDto = class {
|
|
2218
2218
|
};
|
|
2219
2219
|
__decorateClass([
|
|
2220
|
-
|
|
2220
|
+
IsOptional12()
|
|
2221
2221
|
], UpdateExperienceDto.prototype, "uuid", 2);
|
|
2222
2222
|
__decorateClass([
|
|
2223
2223
|
IsNotEmpty27(),
|
|
@@ -2237,7 +2237,7 @@ __decorateClass([
|
|
|
2237
2237
|
var UpdateFreelancerExperienceDto = class {
|
|
2238
2238
|
};
|
|
2239
2239
|
__decorateClass([
|
|
2240
|
-
|
|
2240
|
+
IsArray3(),
|
|
2241
2241
|
ValidateNested2({ each: true }),
|
|
2242
2242
|
Type3(() => UpdateExperienceDto)
|
|
2243
2243
|
], UpdateFreelancerExperienceDto.prototype, "experience", 2);
|
|
@@ -2277,11 +2277,11 @@ __decorateClass([
|
|
|
2277
2277
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2278
2278
|
|
|
2279
2279
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2280
|
-
import { IsBoolean as
|
|
2280
|
+
import { IsBoolean as IsBoolean11 } from "class-validator";
|
|
2281
2281
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
2282
2282
|
};
|
|
2283
2283
|
__decorateClass([
|
|
2284
|
-
|
|
2284
|
+
IsBoolean11()
|
|
2285
2285
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2286
2286
|
|
|
2287
2287
|
// src/adapters/tcp/user.tcp.adapter.ts
|