@experts_hub/shared 1.0.308 → 1.0.309
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 +1 -2
- package/dist/index.mjs +104 -104
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -727,7 +727,6 @@ __decorateClass([
|
|
|
727
727
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
728
728
|
|
|
729
729
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
730
|
-
var import_common = require("@nestjs/common");
|
|
731
730
|
var import_class_validator21 = require("class-validator");
|
|
732
731
|
var FreelancerProfileQuestionDto = class {
|
|
733
732
|
};
|
|
@@ -750,7 +749,7 @@ __decorateClass([
|
|
|
750
749
|
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter answer." })
|
|
751
750
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
752
751
|
__decorateClass([
|
|
753
|
-
(0,
|
|
752
|
+
(0, import_class_validator21.IsOptional)()
|
|
754
753
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
755
754
|
|
|
756
755
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
package/dist/index.mjs
CHANGED
|
@@ -531,12 +531,12 @@ __decorateClass([
|
|
|
531
531
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
532
532
|
|
|
533
533
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
534
|
-
import { Optional } from "@nestjs/common";
|
|
535
534
|
import {
|
|
536
535
|
IsUUID as IsUUID8,
|
|
537
536
|
IsString as IsString4,
|
|
538
537
|
IsNotEmpty as IsNotEmpty18,
|
|
539
|
-
IsIn
|
|
538
|
+
IsIn,
|
|
539
|
+
IsOptional as IsOptional3
|
|
540
540
|
} from "class-validator";
|
|
541
541
|
var FreelancerProfileQuestionDto = class {
|
|
542
542
|
};
|
|
@@ -559,13 +559,13 @@ __decorateClass([
|
|
|
559
559
|
IsNotEmpty18({ message: "Please enter answer." })
|
|
560
560
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
561
561
|
__decorateClass([
|
|
562
|
-
|
|
562
|
+
IsOptional3()
|
|
563
563
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
564
564
|
|
|
565
565
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
566
566
|
import {
|
|
567
567
|
IsNotEmpty as IsNotEmpty19,
|
|
568
|
-
IsOptional as
|
|
568
|
+
IsOptional as IsOptional4,
|
|
569
569
|
IsUrl,
|
|
570
570
|
IsString as IsString5,
|
|
571
571
|
IsUUID as IsUUID9
|
|
@@ -587,7 +587,7 @@ __decorateClass([
|
|
|
587
587
|
)
|
|
588
588
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
589
589
|
__decorateClass([
|
|
590
|
-
|
|
590
|
+
IsOptional4(),
|
|
591
591
|
IsUrl(
|
|
592
592
|
{ require_protocol: false },
|
|
593
593
|
{
|
|
@@ -596,7 +596,7 @@ __decorateClass([
|
|
|
596
596
|
)
|
|
597
597
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
598
598
|
__decorateClass([
|
|
599
|
-
|
|
599
|
+
IsOptional4(),
|
|
600
600
|
IsUrl(
|
|
601
601
|
{ require_protocol: false },
|
|
602
602
|
{
|
|
@@ -605,7 +605,7 @@ __decorateClass([
|
|
|
605
605
|
)
|
|
606
606
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
607
607
|
__decorateClass([
|
|
608
|
-
|
|
608
|
+
IsOptional4(),
|
|
609
609
|
IsUrl(
|
|
610
610
|
{ require_protocol: false },
|
|
611
611
|
{
|
|
@@ -614,7 +614,7 @@ __decorateClass([
|
|
|
614
614
|
)
|
|
615
615
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
616
616
|
__decorateClass([
|
|
617
|
-
|
|
617
|
+
IsOptional4(),
|
|
618
618
|
IsUrl(
|
|
619
619
|
{ require_protocol: false },
|
|
620
620
|
{
|
|
@@ -800,7 +800,7 @@ import {
|
|
|
800
800
|
IsEmail as IsEmail4,
|
|
801
801
|
Length as Length2,
|
|
802
802
|
IsUrl as IsUrl2,
|
|
803
|
-
IsOptional as
|
|
803
|
+
IsOptional as IsOptional5,
|
|
804
804
|
ValidateIf as ValidateIf2
|
|
805
805
|
} from "class-validator";
|
|
806
806
|
var UpdateCompanyProfileDto = class {
|
|
@@ -813,7 +813,7 @@ __decorateClass([
|
|
|
813
813
|
})
|
|
814
814
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
815
815
|
__decorateClass([
|
|
816
|
-
|
|
816
|
+
IsOptional5(),
|
|
817
817
|
ValidateIf2((o) => o.webSite !== ""),
|
|
818
818
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
819
819
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -874,7 +874,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
874
874
|
// src/modules/question/dto/create-question.dto.ts
|
|
875
875
|
import {
|
|
876
876
|
IsNotEmpty as IsNotEmpty26,
|
|
877
|
-
IsOptional as
|
|
877
|
+
IsOptional as IsOptional6,
|
|
878
878
|
IsBoolean as IsBoolean2
|
|
879
879
|
} from "class-validator";
|
|
880
880
|
var CreateQuestionDto = class {
|
|
@@ -892,7 +892,7 @@ __decorateClass([
|
|
|
892
892
|
IsNotEmpty26({ message: "Please enter options." })
|
|
893
893
|
], CreateQuestionDto.prototype, "options", 2);
|
|
894
894
|
__decorateClass([
|
|
895
|
-
|
|
895
|
+
IsOptional6(),
|
|
896
896
|
IsBoolean2({ message: "Whether the question status active" })
|
|
897
897
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
898
898
|
|
|
@@ -928,7 +928,7 @@ import {
|
|
|
928
928
|
IsArray,
|
|
929
929
|
ArrayNotEmpty,
|
|
930
930
|
IsNumber,
|
|
931
|
-
IsOptional as
|
|
931
|
+
IsOptional as IsOptional7,
|
|
932
932
|
IsEnum as IsEnum8,
|
|
933
933
|
Min,
|
|
934
934
|
ValidateIf as ValidateIf3
|
|
@@ -952,7 +952,7 @@ var JobBasicInformationDto = class {
|
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
954
|
__decorateClass([
|
|
955
|
-
|
|
955
|
+
IsOptional7(),
|
|
956
956
|
Type(() => Boolean)
|
|
957
957
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
958
958
|
__decorateClass([
|
|
@@ -960,7 +960,7 @@ __decorateClass([
|
|
|
960
960
|
IsString11({ message: "Job role must be a string" })
|
|
961
961
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
962
962
|
__decorateClass([
|
|
963
|
-
|
|
963
|
+
IsOptional7(),
|
|
964
964
|
IsString11({ message: "Note must be a string" })
|
|
965
965
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
966
966
|
__decorateClass([
|
|
@@ -1036,12 +1036,12 @@ __decorateClass([
|
|
|
1036
1036
|
__decorateClass([
|
|
1037
1037
|
ValidateIf3((o) => !o.isDraft),
|
|
1038
1038
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1039
|
-
|
|
1039
|
+
IsOptional7()
|
|
1040
1040
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1041
1041
|
__decorateClass([
|
|
1042
1042
|
ValidateIf3((o) => !o.isDraft),
|
|
1043
1043
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1044
|
-
|
|
1044
|
+
IsOptional7()
|
|
1045
1045
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1046
1046
|
__decorateClass([
|
|
1047
1047
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1060,11 +1060,11 @@ __decorateClass([
|
|
|
1060
1060
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1061
1061
|
|
|
1062
1062
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1063
|
-
import { IsOptional as
|
|
1063
|
+
import { IsOptional as IsOptional8, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
|
|
1064
1064
|
var JobAdditionalCommentDto = class {
|
|
1065
1065
|
};
|
|
1066
1066
|
__decorateClass([
|
|
1067
|
-
|
|
1067
|
+
IsOptional8(),
|
|
1068
1068
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1069
1069
|
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1070
1070
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1146,7 +1146,7 @@ __decorateClass([
|
|
|
1146
1146
|
|
|
1147
1147
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1148
1148
|
import {
|
|
1149
|
-
IsOptional as
|
|
1149
|
+
IsOptional as IsOptional9,
|
|
1150
1150
|
IsString as IsString15,
|
|
1151
1151
|
IsEmail as IsEmail5,
|
|
1152
1152
|
IsNumber as IsNumber2,
|
|
@@ -1196,7 +1196,7 @@ __decorateClass([
|
|
|
1196
1196
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1197
1197
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1198
1198
|
__decorateClass([
|
|
1199
|
-
|
|
1199
|
+
IsOptional9(),
|
|
1200
1200
|
IsNumber2()
|
|
1201
1201
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1202
1202
|
__decorateClass([
|
|
@@ -1224,35 +1224,35 @@ __decorateClass([
|
|
|
1224
1224
|
})
|
|
1225
1225
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1226
1226
|
__decorateClass([
|
|
1227
|
-
|
|
1227
|
+
IsOptional9(),
|
|
1228
1228
|
IsString15()
|
|
1229
1229
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1230
1230
|
__decorateClass([
|
|
1231
|
-
|
|
1231
|
+
IsOptional9(),
|
|
1232
1232
|
IsString15()
|
|
1233
1233
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1234
1234
|
__decorateClass([
|
|
1235
|
-
|
|
1235
|
+
IsOptional9(),
|
|
1236
1236
|
IsString15()
|
|
1237
1237
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1238
1238
|
__decorateClass([
|
|
1239
|
-
|
|
1239
|
+
IsOptional9(),
|
|
1240
1240
|
IsString15()
|
|
1241
1241
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1242
1242
|
__decorateClass([
|
|
1243
|
-
|
|
1243
|
+
IsOptional9(),
|
|
1244
1244
|
IsString15()
|
|
1245
1245
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1246
1246
|
__decorateClass([
|
|
1247
|
-
|
|
1247
|
+
IsOptional9(),
|
|
1248
1248
|
IsString15()
|
|
1249
1249
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1250
1250
|
__decorateClass([
|
|
1251
|
-
|
|
1251
|
+
IsOptional9(),
|
|
1252
1252
|
IsString15()
|
|
1253
1253
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1254
1254
|
__decorateClass([
|
|
1255
|
-
|
|
1255
|
+
IsOptional9(),
|
|
1256
1256
|
IsString15()
|
|
1257
1257
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1258
1258
|
|
|
@@ -1267,7 +1267,7 @@ var BANK_PATTERN = {
|
|
|
1267
1267
|
import {
|
|
1268
1268
|
IsEnum as IsEnum11,
|
|
1269
1269
|
IsNotEmpty as IsNotEmpty32,
|
|
1270
|
-
IsOptional as
|
|
1270
|
+
IsOptional as IsOptional10,
|
|
1271
1271
|
ValidateIf as ValidateIf4
|
|
1272
1272
|
} from "class-validator";
|
|
1273
1273
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1287,7 +1287,7 @@ __decorateClass([
|
|
|
1287
1287
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1288
1288
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1289
1289
|
__decorateClass([
|
|
1290
|
-
|
|
1290
|
+
IsOptional10()
|
|
1291
1291
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1292
1292
|
__decorateClass([
|
|
1293
1293
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1315,7 +1315,7 @@ __decorateClass([
|
|
|
1315
1315
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1316
1316
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1317
1317
|
__decorateClass([
|
|
1318
|
-
|
|
1318
|
+
IsOptional10()
|
|
1319
1319
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1320
1320
|
__decorateClass([
|
|
1321
1321
|
IsEnum11(BankAccountScope, {
|
|
@@ -1377,7 +1377,7 @@ import {
|
|
|
1377
1377
|
IsEnum as IsEnum13,
|
|
1378
1378
|
IsInt,
|
|
1379
1379
|
IsNotEmpty as IsNotEmpty33,
|
|
1380
|
-
IsOptional as
|
|
1380
|
+
IsOptional as IsOptional11,
|
|
1381
1381
|
IsString as IsString16,
|
|
1382
1382
|
Max,
|
|
1383
1383
|
Min as Min2
|
|
@@ -3787,7 +3787,7 @@ __decorateClass([
|
|
|
3787
3787
|
Max(5, { message: "Rating must be at most 5" })
|
|
3788
3788
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3789
3789
|
__decorateClass([
|
|
3790
|
-
|
|
3790
|
+
IsOptional11(),
|
|
3791
3791
|
IsString16({ message: "Review must be a string" })
|
|
3792
3792
|
], CreateRatingDto.prototype, "review", 2);
|
|
3793
3793
|
|
|
@@ -3804,7 +3804,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3804
3804
|
};
|
|
3805
3805
|
|
|
3806
3806
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3807
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
3807
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional12 } from "class-validator";
|
|
3808
3808
|
var CreateCompanyRoleDto = class {
|
|
3809
3809
|
};
|
|
3810
3810
|
__decorateClass([
|
|
@@ -3822,12 +3822,12 @@ __decorateClass([
|
|
|
3822
3822
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3823
3823
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3824
3824
|
__decorateClass([
|
|
3825
|
-
|
|
3825
|
+
IsOptional12(),
|
|
3826
3826
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3827
3827
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3828
3828
|
|
|
3829
3829
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3830
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
3830
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional13 } from "class-validator";
|
|
3831
3831
|
var UpdateCompanyRoleDto = class {
|
|
3832
3832
|
};
|
|
3833
3833
|
__decorateClass([
|
|
@@ -3845,7 +3845,7 @@ __decorateClass([
|
|
|
3845
3845
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3846
3846
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3847
3847
|
__decorateClass([
|
|
3848
|
-
|
|
3848
|
+
IsOptional13(),
|
|
3849
3849
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3850
3850
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3851
3851
|
|
|
@@ -3867,7 +3867,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3867
3867
|
import {
|
|
3868
3868
|
ArrayMinSize,
|
|
3869
3869
|
IsNotEmpty as IsNotEmpty36,
|
|
3870
|
-
IsOptional as
|
|
3870
|
+
IsOptional as IsOptional14,
|
|
3871
3871
|
IsString as IsString19,
|
|
3872
3872
|
MaxLength as MaxLength9,
|
|
3873
3873
|
ValidateNested
|
|
@@ -3876,7 +3876,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
3876
3876
|
var ExperienceDto = class {
|
|
3877
3877
|
};
|
|
3878
3878
|
__decorateClass([
|
|
3879
|
-
|
|
3879
|
+
IsOptional14()
|
|
3880
3880
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3881
3881
|
__decorateClass([
|
|
3882
3882
|
IsNotEmpty36(),
|
|
@@ -3891,7 +3891,7 @@ __decorateClass([
|
|
|
3891
3891
|
IsString19()
|
|
3892
3892
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3893
3893
|
__decorateClass([
|
|
3894
|
-
|
|
3894
|
+
IsOptional14(),
|
|
3895
3895
|
IsString19(),
|
|
3896
3896
|
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3897
3897
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3962,12 +3962,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3962
3962
|
};
|
|
3963
3963
|
|
|
3964
3964
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3965
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
3965
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional17, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3966
3966
|
import { Type as Type3 } from "class-transformer";
|
|
3967
3967
|
var EducationDto = class {
|
|
3968
3968
|
};
|
|
3969
3969
|
__decorateClass([
|
|
3970
|
-
|
|
3970
|
+
IsOptional17()
|
|
3971
3971
|
], EducationDto.prototype, "uuid", 2);
|
|
3972
3972
|
__decorateClass([
|
|
3973
3973
|
IsString22(),
|
|
@@ -3997,12 +3997,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3997
3997
|
};
|
|
3998
3998
|
|
|
3999
3999
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4000
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
4000
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional18, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4001
4001
|
import { Type as Type4 } from "class-transformer";
|
|
4002
4002
|
var ProjectDto = class {
|
|
4003
4003
|
};
|
|
4004
4004
|
__decorateClass([
|
|
4005
|
-
|
|
4005
|
+
IsOptional18()
|
|
4006
4006
|
], ProjectDto.prototype, "uuid", 2);
|
|
4007
4007
|
__decorateClass([
|
|
4008
4008
|
IsString23(),
|
|
@@ -4017,33 +4017,33 @@ __decorateClass([
|
|
|
4017
4017
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4018
4018
|
], ProjectDto.prototype, "endDate", 2);
|
|
4019
4019
|
__decorateClass([
|
|
4020
|
-
|
|
4020
|
+
IsOptional18(),
|
|
4021
4021
|
IsString23()
|
|
4022
4022
|
], ProjectDto.prototype, "clientName", 2);
|
|
4023
4023
|
__decorateClass([
|
|
4024
|
-
|
|
4024
|
+
IsOptional18(),
|
|
4025
4025
|
IsString23()
|
|
4026
4026
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4027
4027
|
__decorateClass([
|
|
4028
|
-
|
|
4028
|
+
IsOptional18(),
|
|
4029
4029
|
IsString23(),
|
|
4030
4030
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4031
4031
|
], ProjectDto.prototype, "description", 2);
|
|
4032
4032
|
var CaseStudyDto = class {
|
|
4033
4033
|
};
|
|
4034
4034
|
__decorateClass([
|
|
4035
|
-
|
|
4035
|
+
IsOptional18()
|
|
4036
4036
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4037
4037
|
__decorateClass([
|
|
4038
4038
|
IsString23(),
|
|
4039
4039
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4040
4040
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4041
4041
|
__decorateClass([
|
|
4042
|
-
|
|
4042
|
+
IsOptional18(),
|
|
4043
4043
|
IsString23()
|
|
4044
4044
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4045
4045
|
__decorateClass([
|
|
4046
|
-
|
|
4046
|
+
IsOptional18(),
|
|
4047
4047
|
IsString23(),
|
|
4048
4048
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4049
4049
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4073,7 +4073,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4073
4073
|
};
|
|
4074
4074
|
|
|
4075
4075
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4076
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4076
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional19 } from "class-validator";
|
|
4077
4077
|
import { Type as Type5 } from "class-transformer";
|
|
4078
4078
|
var FreelancerSkillDto = class {
|
|
4079
4079
|
constructor() {
|
|
@@ -4083,19 +4083,19 @@ var FreelancerSkillDto = class {
|
|
|
4083
4083
|
}
|
|
4084
4084
|
};
|
|
4085
4085
|
__decorateClass([
|
|
4086
|
-
|
|
4086
|
+
IsOptional19(),
|
|
4087
4087
|
IsArray8(),
|
|
4088
4088
|
Type5(() => String),
|
|
4089
4089
|
IsString24({ each: true })
|
|
4090
4090
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4091
4091
|
__decorateClass([
|
|
4092
|
-
|
|
4092
|
+
IsOptional19(),
|
|
4093
4093
|
IsArray8(),
|
|
4094
4094
|
Type5(() => String),
|
|
4095
4095
|
IsString24({ each: true })
|
|
4096
4096
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4097
4097
|
__decorateClass([
|
|
4098
|
-
|
|
4098
|
+
IsOptional19(),
|
|
4099
4099
|
IsArray8(),
|
|
4100
4100
|
Type5(() => String),
|
|
4101
4101
|
IsString24({ each: true })
|
|
@@ -4118,7 +4118,7 @@ import {
|
|
|
4118
4118
|
IsString as IsString25,
|
|
4119
4119
|
IsEmail as IsEmail10,
|
|
4120
4120
|
IsBoolean as IsBoolean10,
|
|
4121
|
-
IsOptional as
|
|
4121
|
+
IsOptional as IsOptional20,
|
|
4122
4122
|
IsEnum as IsEnum14,
|
|
4123
4123
|
IsNumber as IsNumber3,
|
|
4124
4124
|
IsUrl as IsUrl3,
|
|
@@ -4201,23 +4201,23 @@ __decorateClass([
|
|
|
4201
4201
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4202
4202
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4203
4203
|
__decorateClass([
|
|
4204
|
-
|
|
4204
|
+
IsOptional20(),
|
|
4205
4205
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4206
4206
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4207
4207
|
__decorateClass([
|
|
4208
|
-
|
|
4208
|
+
IsOptional20(),
|
|
4209
4209
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4210
4210
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4211
4211
|
__decorateClass([
|
|
4212
|
-
|
|
4212
|
+
IsOptional20(),
|
|
4213
4213
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4214
4214
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4215
4215
|
__decorateClass([
|
|
4216
|
-
|
|
4216
|
+
IsOptional20(),
|
|
4217
4217
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4218
4218
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4219
4219
|
__decorateClass([
|
|
4220
|
-
|
|
4220
|
+
IsOptional20(),
|
|
4221
4221
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4222
4222
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4223
4223
|
|
|
@@ -4226,7 +4226,7 @@ import {
|
|
|
4226
4226
|
IsString as IsString26,
|
|
4227
4227
|
IsEmail as IsEmail11,
|
|
4228
4228
|
IsBoolean as IsBoolean11,
|
|
4229
|
-
IsOptional as
|
|
4229
|
+
IsOptional as IsOptional21,
|
|
4230
4230
|
IsEnum as IsEnum15,
|
|
4231
4231
|
IsNumber as IsNumber4,
|
|
4232
4232
|
IsUrl as IsUrl4,
|
|
@@ -4253,24 +4253,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4253
4253
|
var UpdateFreelancerDto = class {
|
|
4254
4254
|
};
|
|
4255
4255
|
__decorateClass([
|
|
4256
|
-
|
|
4256
|
+
IsOptional21(),
|
|
4257
4257
|
IsString26({ message: "Full name must be a string" }),
|
|
4258
4258
|
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4259
4259
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4260
4260
|
__decorateClass([
|
|
4261
|
-
|
|
4261
|
+
IsOptional21(),
|
|
4262
4262
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4263
4263
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4264
4264
|
__decorateClass([
|
|
4265
|
-
|
|
4265
|
+
IsOptional21(),
|
|
4266
4266
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4267
4267
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4268
4268
|
__decorateClass([
|
|
4269
|
-
|
|
4269
|
+
IsOptional21(),
|
|
4270
4270
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4271
4271
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4272
4272
|
__decorateClass([
|
|
4273
|
-
|
|
4273
|
+
IsOptional21(),
|
|
4274
4274
|
MinLength12(6, { message: "Password must be at least 6 characters." }),
|
|
4275
4275
|
MaxLength14(32, { message: "Password must not exceed 32 characters." }),
|
|
4276
4276
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4278,12 +4278,12 @@ __decorateClass([
|
|
|
4278
4278
|
})
|
|
4279
4279
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4280
4280
|
__decorateClass([
|
|
4281
|
-
|
|
4281
|
+
IsOptional21(),
|
|
4282
4282
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4283
4283
|
Type7(() => Boolean)
|
|
4284
4284
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4285
4285
|
__decorateClass([
|
|
4286
|
-
|
|
4286
|
+
IsOptional21(),
|
|
4287
4287
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4288
4288
|
message: `Nature of work must be one of: ${Object.values(
|
|
4289
4289
|
NatureOfWorkEnum2
|
|
@@ -4291,13 +4291,13 @@ __decorateClass([
|
|
|
4291
4291
|
})
|
|
4292
4292
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4293
4293
|
__decorateClass([
|
|
4294
|
-
|
|
4294
|
+
IsOptional21(),
|
|
4295
4295
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4296
4296
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4297
4297
|
Type7(() => Number)
|
|
4298
4298
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4299
4299
|
__decorateClass([
|
|
4300
|
-
|
|
4300
|
+
IsOptional21(),
|
|
4301
4301
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4302
4302
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4303
4303
|
", "
|
|
@@ -4305,7 +4305,7 @@ __decorateClass([
|
|
|
4305
4305
|
})
|
|
4306
4306
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4307
4307
|
__decorateClass([
|
|
4308
|
-
|
|
4308
|
+
IsOptional21(),
|
|
4309
4309
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4310
4310
|
Type7(() => Boolean)
|
|
4311
4311
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4314,23 +4314,23 @@ __decorateClass([
|
|
|
4314
4314
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4315
4315
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4316
4316
|
__decorateClass([
|
|
4317
|
-
|
|
4317
|
+
IsOptional21(),
|
|
4318
4318
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4319
4319
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4320
4320
|
__decorateClass([
|
|
4321
|
-
|
|
4321
|
+
IsOptional21(),
|
|
4322
4322
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4323
4323
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4324
4324
|
__decorateClass([
|
|
4325
|
-
|
|
4325
|
+
IsOptional21(),
|
|
4326
4326
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4327
4327
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4328
4328
|
__decorateClass([
|
|
4329
|
-
|
|
4329
|
+
IsOptional21(),
|
|
4330
4330
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4331
4331
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4332
4332
|
__decorateClass([
|
|
4333
|
-
|
|
4333
|
+
IsOptional21(),
|
|
4334
4334
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4335
4335
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4336
4336
|
|
|
@@ -4351,7 +4351,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4351
4351
|
import {
|
|
4352
4352
|
IsNotEmpty as IsNotEmpty44,
|
|
4353
4353
|
IsEmail as IsEmail12,
|
|
4354
|
-
IsOptional as
|
|
4354
|
+
IsOptional as IsOptional22,
|
|
4355
4355
|
IsString as IsString27,
|
|
4356
4356
|
IsArray as IsArray9,
|
|
4357
4357
|
MinLength as MinLength13,
|
|
@@ -4422,7 +4422,7 @@ __decorateClass([
|
|
|
4422
4422
|
IsString27()
|
|
4423
4423
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4424
4424
|
__decorateClass([
|
|
4425
|
-
|
|
4425
|
+
IsOptional22(),
|
|
4426
4426
|
IsString27()
|
|
4427
4427
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4428
4428
|
|
|
@@ -4439,7 +4439,7 @@ __decorateClass([
|
|
|
4439
4439
|
import {
|
|
4440
4440
|
IsNotEmpty as IsNotEmpty46,
|
|
4441
4441
|
IsEmail as IsEmail13,
|
|
4442
|
-
IsOptional as
|
|
4442
|
+
IsOptional as IsOptional23,
|
|
4443
4443
|
IsString as IsString29,
|
|
4444
4444
|
IsArray as IsArray10,
|
|
4445
4445
|
MinLength as MinLength14,
|
|
@@ -4474,7 +4474,7 @@ __decorateClass([
|
|
|
4474
4474
|
IsEmail13()
|
|
4475
4475
|
], UpdateClientDto.prototype, "email", 2);
|
|
4476
4476
|
__decorateClass([
|
|
4477
|
-
|
|
4477
|
+
IsOptional23(),
|
|
4478
4478
|
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
4479
4479
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
4480
4480
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4506,7 +4506,7 @@ __decorateClass([
|
|
|
4506
4506
|
IsString29()
|
|
4507
4507
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4508
4508
|
__decorateClass([
|
|
4509
|
-
|
|
4509
|
+
IsOptional23(),
|
|
4510
4510
|
IsString29()
|
|
4511
4511
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4512
4512
|
|
|
@@ -4517,7 +4517,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4517
4517
|
};
|
|
4518
4518
|
|
|
4519
4519
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4520
|
-
import { IsOptional as
|
|
4520
|
+
import { IsOptional as IsOptional24, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4521
4521
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4522
4522
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4523
4523
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4528,7 +4528,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4528
4528
|
var FreelancerDeclarationDto = class {
|
|
4529
4529
|
};
|
|
4530
4530
|
__decorateClass([
|
|
4531
|
-
|
|
4531
|
+
IsOptional24(),
|
|
4532
4532
|
IsString30({ message: "UUID must be a string" })
|
|
4533
4533
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4534
4534
|
__decorateClass([
|
|
@@ -4552,35 +4552,35 @@ var CMS_PATTERNS = {
|
|
|
4552
4552
|
};
|
|
4553
4553
|
|
|
4554
4554
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4555
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4555
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional25 } from "class-validator";
|
|
4556
4556
|
var CreateCmsDto = class {
|
|
4557
4557
|
};
|
|
4558
4558
|
__decorateClass([
|
|
4559
4559
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4560
4560
|
], CreateCmsDto.prototype, "title", 2);
|
|
4561
4561
|
__decorateClass([
|
|
4562
|
-
|
|
4562
|
+
IsOptional25()
|
|
4563
4563
|
], CreateCmsDto.prototype, "content", 2);
|
|
4564
4564
|
__decorateClass([
|
|
4565
|
-
|
|
4565
|
+
IsOptional25(),
|
|
4566
4566
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4567
4567
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4568
4568
|
|
|
4569
4569
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4570
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4570
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional26 } from "class-validator";
|
|
4571
4571
|
var UpdateCmsDto = class {
|
|
4572
4572
|
};
|
|
4573
4573
|
__decorateClass([
|
|
4574
|
-
|
|
4574
|
+
IsOptional26()
|
|
4575
4575
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4576
4576
|
__decorateClass([
|
|
4577
4577
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4578
4578
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4579
4579
|
__decorateClass([
|
|
4580
|
-
|
|
4580
|
+
IsOptional26()
|
|
4581
4581
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4582
4582
|
__decorateClass([
|
|
4583
|
-
|
|
4583
|
+
IsOptional26(),
|
|
4584
4584
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4585
4585
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4586
4586
|
|
|
@@ -4613,7 +4613,7 @@ import {
|
|
|
4613
4613
|
IsString as IsString31,
|
|
4614
4614
|
IsEnum as IsEnum19,
|
|
4615
4615
|
IsInt as IsInt6,
|
|
4616
|
-
IsOptional as
|
|
4616
|
+
IsOptional as IsOptional27,
|
|
4617
4617
|
IsArray as IsArray11,
|
|
4618
4618
|
IsDateString as IsDateString4,
|
|
4619
4619
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4640,7 +4640,7 @@ __decorateClass([
|
|
|
4640
4640
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4641
4641
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4642
4642
|
__decorateClass([
|
|
4643
|
-
|
|
4643
|
+
IsOptional27(),
|
|
4644
4644
|
IsString31({ message: "Note must be a string." })
|
|
4645
4645
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4646
4646
|
__decorateClass([
|
|
@@ -4690,7 +4690,7 @@ __decorateClass([
|
|
|
4690
4690
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4691
4691
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4692
4692
|
__decorateClass([
|
|
4693
|
-
|
|
4693
|
+
IsOptional27(),
|
|
4694
4694
|
IsString31({ message: "Additional comment must be a string." })
|
|
4695
4695
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4696
4696
|
__decorateClass([
|
|
@@ -4712,7 +4712,7 @@ import {
|
|
|
4712
4712
|
IsString as IsString32,
|
|
4713
4713
|
IsEnum as IsEnum20,
|
|
4714
4714
|
IsInt as IsInt7,
|
|
4715
|
-
IsOptional as
|
|
4715
|
+
IsOptional as IsOptional28,
|
|
4716
4716
|
IsArray as IsArray12,
|
|
4717
4717
|
IsDateString as IsDateString5,
|
|
4718
4718
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4739,7 +4739,7 @@ __decorateClass([
|
|
|
4739
4739
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4740
4740
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4741
4741
|
__decorateClass([
|
|
4742
|
-
|
|
4742
|
+
IsOptional28(),
|
|
4743
4743
|
IsString32({ message: "Note must be a string." })
|
|
4744
4744
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4745
4745
|
__decorateClass([
|
|
@@ -4789,7 +4789,7 @@ __decorateClass([
|
|
|
4789
4789
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4790
4790
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4791
4791
|
__decorateClass([
|
|
4792
|
-
|
|
4792
|
+
IsOptional28(),
|
|
4793
4793
|
IsString32({ message: "Additional comment must be a string." })
|
|
4794
4794
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4795
4795
|
__decorateClass([
|
|
@@ -4812,7 +4812,7 @@ var LEAD_PATTERN = {
|
|
|
4812
4812
|
};
|
|
4813
4813
|
|
|
4814
4814
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4815
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
4815
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional29, IsEnum as IsEnum21 } from "class-validator";
|
|
4816
4816
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4817
4817
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4818
4818
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4833,7 +4833,7 @@ __decorateClass([
|
|
|
4833
4833
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4834
4834
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4835
4835
|
__decorateClass([
|
|
4836
|
-
|
|
4836
|
+
IsOptional29(),
|
|
4837
4837
|
IsString33({ message: "Description must be a string" })
|
|
4838
4838
|
], CreateLeadDto.prototype, "description", 2);
|
|
4839
4839
|
__decorateClass([
|
|
@@ -4857,7 +4857,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4857
4857
|
};
|
|
4858
4858
|
|
|
4859
4859
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4860
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
4860
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional30, IsString as IsString34 } from "class-validator";
|
|
4861
4861
|
var CreateAdminRoleDto = class {
|
|
4862
4862
|
};
|
|
4863
4863
|
__decorateClass([
|
|
@@ -4865,12 +4865,12 @@ __decorateClass([
|
|
|
4865
4865
|
IsString34({ message: "Role name must be a string." })
|
|
4866
4866
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4867
4867
|
__decorateClass([
|
|
4868
|
-
|
|
4868
|
+
IsOptional30(),
|
|
4869
4869
|
IsString34({ message: "Role description must be a string." })
|
|
4870
4870
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4871
4871
|
|
|
4872
4872
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4873
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
4873
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional31, IsString as IsString35 } from "class-validator";
|
|
4874
4874
|
var UpdateAdminRoleDto = class {
|
|
4875
4875
|
};
|
|
4876
4876
|
__decorateClass([
|
|
@@ -4878,11 +4878,11 @@ __decorateClass([
|
|
|
4878
4878
|
IsString35({ message: "Role name must be a string." })
|
|
4879
4879
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4880
4880
|
__decorateClass([
|
|
4881
|
-
|
|
4881
|
+
IsOptional31(),
|
|
4882
4882
|
IsString35({ message: "Role description must be a string." })
|
|
4883
4883
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4884
4884
|
__decorateClass([
|
|
4885
|
-
|
|
4885
|
+
IsOptional31(),
|
|
4886
4886
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
4887
4887
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4888
4888
|
|