@experts_hub/shared 1.0.301 → 1.0.302
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 -1
- package/dist/index.mjs +97 -96
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -969,7 +969,7 @@ __decorateClass([
|
|
|
969
969
|
})
|
|
970
970
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
971
971
|
__decorateClass([
|
|
972
|
-
(0, import_class_validator28.
|
|
972
|
+
(0, import_class_validator28.IsOptional)(),
|
|
973
973
|
(0, import_class_validator28.IsUrl)({}, { message: "Invalid website URL format" })
|
|
974
974
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
975
975
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -795,7 +795,8 @@ import {
|
|
|
795
795
|
IsNotEmpty as IsNotEmpty24,
|
|
796
796
|
IsEmail as IsEmail4,
|
|
797
797
|
Length as Length2,
|
|
798
|
-
IsUrl as IsUrl2
|
|
798
|
+
IsUrl as IsUrl2,
|
|
799
|
+
IsOptional as IsOptional4
|
|
799
800
|
} from "class-validator";
|
|
800
801
|
var UpdateCompanyProfileDto = class {
|
|
801
802
|
};
|
|
@@ -807,7 +808,7 @@ __decorateClass([
|
|
|
807
808
|
})
|
|
808
809
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
809
810
|
__decorateClass([
|
|
810
|
-
|
|
811
|
+
IsOptional4(),
|
|
811
812
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
812
813
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
813
814
|
__decorateClass([
|
|
@@ -867,7 +868,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
867
868
|
// src/modules/question/dto/create-question.dto.ts
|
|
868
869
|
import {
|
|
869
870
|
IsNotEmpty as IsNotEmpty26,
|
|
870
|
-
IsOptional as
|
|
871
|
+
IsOptional as IsOptional5,
|
|
871
872
|
IsBoolean as IsBoolean2
|
|
872
873
|
} from "class-validator";
|
|
873
874
|
var CreateQuestionDto = class {
|
|
@@ -885,7 +886,7 @@ __decorateClass([
|
|
|
885
886
|
IsNotEmpty26({ message: "Please enter options." })
|
|
886
887
|
], CreateQuestionDto.prototype, "options", 2);
|
|
887
888
|
__decorateClass([
|
|
888
|
-
|
|
889
|
+
IsOptional5(),
|
|
889
890
|
IsBoolean2({ message: "Whether the question status active" })
|
|
890
891
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
891
892
|
|
|
@@ -921,7 +922,7 @@ import {
|
|
|
921
922
|
IsArray,
|
|
922
923
|
ArrayNotEmpty,
|
|
923
924
|
IsNumber,
|
|
924
|
-
IsOptional as
|
|
925
|
+
IsOptional as IsOptional6,
|
|
925
926
|
IsEnum as IsEnum8,
|
|
926
927
|
Min,
|
|
927
928
|
ValidateIf as ValidateIf2
|
|
@@ -945,7 +946,7 @@ var JobBasicInformationDto = class {
|
|
|
945
946
|
}
|
|
946
947
|
};
|
|
947
948
|
__decorateClass([
|
|
948
|
-
|
|
949
|
+
IsOptional6(),
|
|
949
950
|
Type(() => Boolean)
|
|
950
951
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
951
952
|
__decorateClass([
|
|
@@ -953,7 +954,7 @@ __decorateClass([
|
|
|
953
954
|
IsString11({ message: "Job role must be a string" })
|
|
954
955
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
955
956
|
__decorateClass([
|
|
956
|
-
|
|
957
|
+
IsOptional6(),
|
|
957
958
|
IsString11({ message: "Note must be a string" })
|
|
958
959
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
959
960
|
__decorateClass([
|
|
@@ -1029,12 +1030,12 @@ __decorateClass([
|
|
|
1029
1030
|
__decorateClass([
|
|
1030
1031
|
ValidateIf2((o) => !o.isDraft),
|
|
1031
1032
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1032
|
-
|
|
1033
|
+
IsOptional6()
|
|
1033
1034
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1034
1035
|
__decorateClass([
|
|
1035
1036
|
ValidateIf2((o) => !o.isDraft),
|
|
1036
1037
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1037
|
-
|
|
1038
|
+
IsOptional6()
|
|
1038
1039
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1039
1040
|
__decorateClass([
|
|
1040
1041
|
ValidateIf2((o) => !o.isDraft),
|
|
@@ -1053,11 +1054,11 @@ __decorateClass([
|
|
|
1053
1054
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1054
1055
|
|
|
1055
1056
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1056
|
-
import { IsOptional as
|
|
1057
|
+
import { IsOptional as IsOptional7, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
|
|
1057
1058
|
var JobAdditionalCommentDto = class {
|
|
1058
1059
|
};
|
|
1059
1060
|
__decorateClass([
|
|
1060
|
-
|
|
1061
|
+
IsOptional7(),
|
|
1061
1062
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1062
1063
|
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1063
1064
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1139,7 +1140,7 @@ __decorateClass([
|
|
|
1139
1140
|
|
|
1140
1141
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1141
1142
|
import {
|
|
1142
|
-
IsOptional as
|
|
1143
|
+
IsOptional as IsOptional8,
|
|
1143
1144
|
IsString as IsString15,
|
|
1144
1145
|
IsEmail as IsEmail5,
|
|
1145
1146
|
IsNumber as IsNumber2,
|
|
@@ -1189,7 +1190,7 @@ __decorateClass([
|
|
|
1189
1190
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1190
1191
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1191
1192
|
__decorateClass([
|
|
1192
|
-
|
|
1193
|
+
IsOptional8(),
|
|
1193
1194
|
IsNumber2()
|
|
1194
1195
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1195
1196
|
__decorateClass([
|
|
@@ -1217,35 +1218,35 @@ __decorateClass([
|
|
|
1217
1218
|
})
|
|
1218
1219
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1219
1220
|
__decorateClass([
|
|
1220
|
-
|
|
1221
|
+
IsOptional8(),
|
|
1221
1222
|
IsString15()
|
|
1222
1223
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1223
1224
|
__decorateClass([
|
|
1224
|
-
|
|
1225
|
+
IsOptional8(),
|
|
1225
1226
|
IsString15()
|
|
1226
1227
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1227
1228
|
__decorateClass([
|
|
1228
|
-
|
|
1229
|
+
IsOptional8(),
|
|
1229
1230
|
IsString15()
|
|
1230
1231
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1231
1232
|
__decorateClass([
|
|
1232
|
-
|
|
1233
|
+
IsOptional8(),
|
|
1233
1234
|
IsString15()
|
|
1234
1235
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1235
1236
|
__decorateClass([
|
|
1236
|
-
|
|
1237
|
+
IsOptional8(),
|
|
1237
1238
|
IsString15()
|
|
1238
1239
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1239
1240
|
__decorateClass([
|
|
1240
|
-
|
|
1241
|
+
IsOptional8(),
|
|
1241
1242
|
IsString15()
|
|
1242
1243
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1243
1244
|
__decorateClass([
|
|
1244
|
-
|
|
1245
|
+
IsOptional8(),
|
|
1245
1246
|
IsString15()
|
|
1246
1247
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1247
1248
|
__decorateClass([
|
|
1248
|
-
|
|
1249
|
+
IsOptional8(),
|
|
1249
1250
|
IsString15()
|
|
1250
1251
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1251
1252
|
|
|
@@ -1260,7 +1261,7 @@ var BANK_PATTERN = {
|
|
|
1260
1261
|
import {
|
|
1261
1262
|
IsEnum as IsEnum11,
|
|
1262
1263
|
IsNotEmpty as IsNotEmpty32,
|
|
1263
|
-
IsOptional as
|
|
1264
|
+
IsOptional as IsOptional9,
|
|
1264
1265
|
ValidateIf as ValidateIf3
|
|
1265
1266
|
} from "class-validator";
|
|
1266
1267
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1280,7 +1281,7 @@ __decorateClass([
|
|
|
1280
1281
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1281
1282
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1282
1283
|
__decorateClass([
|
|
1283
|
-
|
|
1284
|
+
IsOptional9()
|
|
1284
1285
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1285
1286
|
__decorateClass([
|
|
1286
1287
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1308,7 +1309,7 @@ __decorateClass([
|
|
|
1308
1309
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1309
1310
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1310
1311
|
__decorateClass([
|
|
1311
|
-
|
|
1312
|
+
IsOptional9()
|
|
1312
1313
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1313
1314
|
__decorateClass([
|
|
1314
1315
|
IsEnum11(BankAccountScope, {
|
|
@@ -1370,7 +1371,7 @@ import {
|
|
|
1370
1371
|
IsEnum as IsEnum13,
|
|
1371
1372
|
IsInt,
|
|
1372
1373
|
IsNotEmpty as IsNotEmpty33,
|
|
1373
|
-
IsOptional as
|
|
1374
|
+
IsOptional as IsOptional10,
|
|
1374
1375
|
IsString as IsString16,
|
|
1375
1376
|
Max,
|
|
1376
1377
|
Min as Min2
|
|
@@ -3780,7 +3781,7 @@ __decorateClass([
|
|
|
3780
3781
|
Max(5, { message: "Rating must be at most 5" })
|
|
3781
3782
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3782
3783
|
__decorateClass([
|
|
3783
|
-
|
|
3784
|
+
IsOptional10(),
|
|
3784
3785
|
IsString16({ message: "Review must be a string" })
|
|
3785
3786
|
], CreateRatingDto.prototype, "review", 2);
|
|
3786
3787
|
|
|
@@ -3797,7 +3798,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3797
3798
|
};
|
|
3798
3799
|
|
|
3799
3800
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3800
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
3801
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional11 } from "class-validator";
|
|
3801
3802
|
var CreateCompanyRoleDto = class {
|
|
3802
3803
|
};
|
|
3803
3804
|
__decorateClass([
|
|
@@ -3815,12 +3816,12 @@ __decorateClass([
|
|
|
3815
3816
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3816
3817
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3817
3818
|
__decorateClass([
|
|
3818
|
-
|
|
3819
|
+
IsOptional11(),
|
|
3819
3820
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3820
3821
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3821
3822
|
|
|
3822
3823
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3823
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
3824
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional12 } from "class-validator";
|
|
3824
3825
|
var UpdateCompanyRoleDto = class {
|
|
3825
3826
|
};
|
|
3826
3827
|
__decorateClass([
|
|
@@ -3838,7 +3839,7 @@ __decorateClass([
|
|
|
3838
3839
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3839
3840
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3840
3841
|
__decorateClass([
|
|
3841
|
-
|
|
3842
|
+
IsOptional12(),
|
|
3842
3843
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3843
3844
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3844
3845
|
|
|
@@ -3860,7 +3861,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3860
3861
|
import {
|
|
3861
3862
|
ArrayMinSize,
|
|
3862
3863
|
IsNotEmpty as IsNotEmpty36,
|
|
3863
|
-
IsOptional as
|
|
3864
|
+
IsOptional as IsOptional13,
|
|
3864
3865
|
IsString as IsString19,
|
|
3865
3866
|
MaxLength as MaxLength9,
|
|
3866
3867
|
ValidateNested
|
|
@@ -3869,7 +3870,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
3869
3870
|
var ExperienceDto = class {
|
|
3870
3871
|
};
|
|
3871
3872
|
__decorateClass([
|
|
3872
|
-
|
|
3873
|
+
IsOptional13()
|
|
3873
3874
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3874
3875
|
__decorateClass([
|
|
3875
3876
|
IsNotEmpty36(),
|
|
@@ -3884,7 +3885,7 @@ __decorateClass([
|
|
|
3884
3885
|
IsString19()
|
|
3885
3886
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3886
3887
|
__decorateClass([
|
|
3887
|
-
|
|
3888
|
+
IsOptional13(),
|
|
3888
3889
|
IsString19(),
|
|
3889
3890
|
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3890
3891
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3955,12 +3956,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3955
3956
|
};
|
|
3956
3957
|
|
|
3957
3958
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3958
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
3959
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3959
3960
|
import { Type as Type3 } from "class-transformer";
|
|
3960
3961
|
var EducationDto = class {
|
|
3961
3962
|
};
|
|
3962
3963
|
__decorateClass([
|
|
3963
|
-
|
|
3964
|
+
IsOptional16()
|
|
3964
3965
|
], EducationDto.prototype, "uuid", 2);
|
|
3965
3966
|
__decorateClass([
|
|
3966
3967
|
IsString22(),
|
|
@@ -3990,12 +3991,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3990
3991
|
};
|
|
3991
3992
|
|
|
3992
3993
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3993
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
3994
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional17, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3994
3995
|
import { Type as Type4 } from "class-transformer";
|
|
3995
3996
|
var ProjectDto = class {
|
|
3996
3997
|
};
|
|
3997
3998
|
__decorateClass([
|
|
3998
|
-
|
|
3999
|
+
IsOptional17()
|
|
3999
4000
|
], ProjectDto.prototype, "uuid", 2);
|
|
4000
4001
|
__decorateClass([
|
|
4001
4002
|
IsString23(),
|
|
@@ -4010,33 +4011,33 @@ __decorateClass([
|
|
|
4010
4011
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4011
4012
|
], ProjectDto.prototype, "endDate", 2);
|
|
4012
4013
|
__decorateClass([
|
|
4013
|
-
|
|
4014
|
+
IsOptional17(),
|
|
4014
4015
|
IsString23()
|
|
4015
4016
|
], ProjectDto.prototype, "clientName", 2);
|
|
4016
4017
|
__decorateClass([
|
|
4017
|
-
|
|
4018
|
+
IsOptional17(),
|
|
4018
4019
|
IsString23()
|
|
4019
4020
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4020
4021
|
__decorateClass([
|
|
4021
|
-
|
|
4022
|
+
IsOptional17(),
|
|
4022
4023
|
IsString23(),
|
|
4023
4024
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4024
4025
|
], ProjectDto.prototype, "description", 2);
|
|
4025
4026
|
var CaseStudyDto = class {
|
|
4026
4027
|
};
|
|
4027
4028
|
__decorateClass([
|
|
4028
|
-
|
|
4029
|
+
IsOptional17()
|
|
4029
4030
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4030
4031
|
__decorateClass([
|
|
4031
4032
|
IsString23(),
|
|
4032
4033
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4033
4034
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4034
4035
|
__decorateClass([
|
|
4035
|
-
|
|
4036
|
+
IsOptional17(),
|
|
4036
4037
|
IsString23()
|
|
4037
4038
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4038
4039
|
__decorateClass([
|
|
4039
|
-
|
|
4040
|
+
IsOptional17(),
|
|
4040
4041
|
IsString23(),
|
|
4041
4042
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4042
4043
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4066,7 +4067,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4066
4067
|
};
|
|
4067
4068
|
|
|
4068
4069
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4069
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4070
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional18 } from "class-validator";
|
|
4070
4071
|
import { Type as Type5 } from "class-transformer";
|
|
4071
4072
|
var FreelancerSkillDto = class {
|
|
4072
4073
|
constructor() {
|
|
@@ -4076,19 +4077,19 @@ var FreelancerSkillDto = class {
|
|
|
4076
4077
|
}
|
|
4077
4078
|
};
|
|
4078
4079
|
__decorateClass([
|
|
4079
|
-
|
|
4080
|
+
IsOptional18(),
|
|
4080
4081
|
IsArray8(),
|
|
4081
4082
|
Type5(() => String),
|
|
4082
4083
|
IsString24({ each: true })
|
|
4083
4084
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4084
4085
|
__decorateClass([
|
|
4085
|
-
|
|
4086
|
+
IsOptional18(),
|
|
4086
4087
|
IsArray8(),
|
|
4087
4088
|
Type5(() => String),
|
|
4088
4089
|
IsString24({ each: true })
|
|
4089
4090
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4090
4091
|
__decorateClass([
|
|
4091
|
-
|
|
4092
|
+
IsOptional18(),
|
|
4092
4093
|
IsArray8(),
|
|
4093
4094
|
Type5(() => String),
|
|
4094
4095
|
IsString24({ each: true })
|
|
@@ -4111,7 +4112,7 @@ import {
|
|
|
4111
4112
|
IsString as IsString25,
|
|
4112
4113
|
IsEmail as IsEmail10,
|
|
4113
4114
|
IsBoolean as IsBoolean10,
|
|
4114
|
-
IsOptional as
|
|
4115
|
+
IsOptional as IsOptional19,
|
|
4115
4116
|
IsEnum as IsEnum14,
|
|
4116
4117
|
IsNumber as IsNumber3,
|
|
4117
4118
|
IsUrl as IsUrl3,
|
|
@@ -4194,23 +4195,23 @@ __decorateClass([
|
|
|
4194
4195
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4195
4196
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4196
4197
|
__decorateClass([
|
|
4197
|
-
|
|
4198
|
+
IsOptional19(),
|
|
4198
4199
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4199
4200
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4200
4201
|
__decorateClass([
|
|
4201
|
-
|
|
4202
|
+
IsOptional19(),
|
|
4202
4203
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4203
4204
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4204
4205
|
__decorateClass([
|
|
4205
|
-
|
|
4206
|
+
IsOptional19(),
|
|
4206
4207
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4207
4208
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4208
4209
|
__decorateClass([
|
|
4209
|
-
|
|
4210
|
+
IsOptional19(),
|
|
4210
4211
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4211
4212
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4212
4213
|
__decorateClass([
|
|
4213
|
-
|
|
4214
|
+
IsOptional19(),
|
|
4214
4215
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4215
4216
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4216
4217
|
|
|
@@ -4219,7 +4220,7 @@ import {
|
|
|
4219
4220
|
IsString as IsString26,
|
|
4220
4221
|
IsEmail as IsEmail11,
|
|
4221
4222
|
IsBoolean as IsBoolean11,
|
|
4222
|
-
IsOptional as
|
|
4223
|
+
IsOptional as IsOptional20,
|
|
4223
4224
|
IsEnum as IsEnum15,
|
|
4224
4225
|
IsNumber as IsNumber4,
|
|
4225
4226
|
IsUrl as IsUrl4,
|
|
@@ -4246,24 +4247,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4246
4247
|
var UpdateFreelancerDto = class {
|
|
4247
4248
|
};
|
|
4248
4249
|
__decorateClass([
|
|
4249
|
-
|
|
4250
|
+
IsOptional20(),
|
|
4250
4251
|
IsString26({ message: "Full name must be a string" }),
|
|
4251
4252
|
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4252
4253
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4253
4254
|
__decorateClass([
|
|
4254
|
-
|
|
4255
|
+
IsOptional20(),
|
|
4255
4256
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4256
4257
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4257
4258
|
__decorateClass([
|
|
4258
|
-
|
|
4259
|
+
IsOptional20(),
|
|
4259
4260
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4260
4261
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4261
4262
|
__decorateClass([
|
|
4262
|
-
|
|
4263
|
+
IsOptional20(),
|
|
4263
4264
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4264
4265
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4265
4266
|
__decorateClass([
|
|
4266
|
-
|
|
4267
|
+
IsOptional20(),
|
|
4267
4268
|
MinLength12(6, { message: "Password must be at least 6 characters." }),
|
|
4268
4269
|
MaxLength14(32, { message: "Password must not exceed 32 characters." }),
|
|
4269
4270
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4271,12 +4272,12 @@ __decorateClass([
|
|
|
4271
4272
|
})
|
|
4272
4273
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4273
4274
|
__decorateClass([
|
|
4274
|
-
|
|
4275
|
+
IsOptional20(),
|
|
4275
4276
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4276
4277
|
Type7(() => Boolean)
|
|
4277
4278
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4278
4279
|
__decorateClass([
|
|
4279
|
-
|
|
4280
|
+
IsOptional20(),
|
|
4280
4281
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4281
4282
|
message: `Nature of work must be one of: ${Object.values(
|
|
4282
4283
|
NatureOfWorkEnum2
|
|
@@ -4284,13 +4285,13 @@ __decorateClass([
|
|
|
4284
4285
|
})
|
|
4285
4286
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4286
4287
|
__decorateClass([
|
|
4287
|
-
|
|
4288
|
+
IsOptional20(),
|
|
4288
4289
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4289
4290
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4290
4291
|
Type7(() => Number)
|
|
4291
4292
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4292
4293
|
__decorateClass([
|
|
4293
|
-
|
|
4294
|
+
IsOptional20(),
|
|
4294
4295
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4295
4296
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4296
4297
|
", "
|
|
@@ -4298,7 +4299,7 @@ __decorateClass([
|
|
|
4298
4299
|
})
|
|
4299
4300
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4300
4301
|
__decorateClass([
|
|
4301
|
-
|
|
4302
|
+
IsOptional20(),
|
|
4302
4303
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4303
4304
|
Type7(() => Boolean)
|
|
4304
4305
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4307,23 +4308,23 @@ __decorateClass([
|
|
|
4307
4308
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4308
4309
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4309
4310
|
__decorateClass([
|
|
4310
|
-
|
|
4311
|
+
IsOptional20(),
|
|
4311
4312
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4312
4313
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4313
4314
|
__decorateClass([
|
|
4314
|
-
|
|
4315
|
+
IsOptional20(),
|
|
4315
4316
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4316
4317
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4317
4318
|
__decorateClass([
|
|
4318
|
-
|
|
4319
|
+
IsOptional20(),
|
|
4319
4320
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4320
4321
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4321
4322
|
__decorateClass([
|
|
4322
|
-
|
|
4323
|
+
IsOptional20(),
|
|
4323
4324
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4324
4325
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4325
4326
|
__decorateClass([
|
|
4326
|
-
|
|
4327
|
+
IsOptional20(),
|
|
4327
4328
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4328
4329
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4329
4330
|
|
|
@@ -4344,7 +4345,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4344
4345
|
import {
|
|
4345
4346
|
IsNotEmpty as IsNotEmpty44,
|
|
4346
4347
|
IsEmail as IsEmail12,
|
|
4347
|
-
IsOptional as
|
|
4348
|
+
IsOptional as IsOptional21,
|
|
4348
4349
|
IsString as IsString27,
|
|
4349
4350
|
IsArray as IsArray9,
|
|
4350
4351
|
MinLength as MinLength13,
|
|
@@ -4415,7 +4416,7 @@ __decorateClass([
|
|
|
4415
4416
|
IsString27()
|
|
4416
4417
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4417
4418
|
__decorateClass([
|
|
4418
|
-
|
|
4419
|
+
IsOptional21(),
|
|
4419
4420
|
IsString27()
|
|
4420
4421
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4421
4422
|
|
|
@@ -4432,7 +4433,7 @@ __decorateClass([
|
|
|
4432
4433
|
import {
|
|
4433
4434
|
IsNotEmpty as IsNotEmpty46,
|
|
4434
4435
|
IsEmail as IsEmail13,
|
|
4435
|
-
IsOptional as
|
|
4436
|
+
IsOptional as IsOptional22,
|
|
4436
4437
|
IsString as IsString29,
|
|
4437
4438
|
IsArray as IsArray10,
|
|
4438
4439
|
MinLength as MinLength14,
|
|
@@ -4467,7 +4468,7 @@ __decorateClass([
|
|
|
4467
4468
|
IsEmail13()
|
|
4468
4469
|
], UpdateClientDto.prototype, "email", 2);
|
|
4469
4470
|
__decorateClass([
|
|
4470
|
-
|
|
4471
|
+
IsOptional22(),
|
|
4471
4472
|
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
4472
4473
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
4473
4474
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4499,7 +4500,7 @@ __decorateClass([
|
|
|
4499
4500
|
IsString29()
|
|
4500
4501
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4501
4502
|
__decorateClass([
|
|
4502
|
-
|
|
4503
|
+
IsOptional22(),
|
|
4503
4504
|
IsString29()
|
|
4504
4505
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4505
4506
|
|
|
@@ -4510,7 +4511,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4510
4511
|
};
|
|
4511
4512
|
|
|
4512
4513
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4513
|
-
import { IsOptional as
|
|
4514
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4514
4515
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4515
4516
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4516
4517
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4521,7 +4522,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4521
4522
|
var FreelancerDeclarationDto = class {
|
|
4522
4523
|
};
|
|
4523
4524
|
__decorateClass([
|
|
4524
|
-
|
|
4525
|
+
IsOptional23(),
|
|
4525
4526
|
IsString30({ message: "UUID must be a string" })
|
|
4526
4527
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4527
4528
|
__decorateClass([
|
|
@@ -4545,35 +4546,35 @@ var CMS_PATTERNS = {
|
|
|
4545
4546
|
};
|
|
4546
4547
|
|
|
4547
4548
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4548
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4549
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional24 } from "class-validator";
|
|
4549
4550
|
var CreateCmsDto = class {
|
|
4550
4551
|
};
|
|
4551
4552
|
__decorateClass([
|
|
4552
4553
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4553
4554
|
], CreateCmsDto.prototype, "title", 2);
|
|
4554
4555
|
__decorateClass([
|
|
4555
|
-
|
|
4556
|
+
IsOptional24()
|
|
4556
4557
|
], CreateCmsDto.prototype, "content", 2);
|
|
4557
4558
|
__decorateClass([
|
|
4558
|
-
|
|
4559
|
+
IsOptional24(),
|
|
4559
4560
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4560
4561
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4561
4562
|
|
|
4562
4563
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4563
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4564
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional25 } from "class-validator";
|
|
4564
4565
|
var UpdateCmsDto = class {
|
|
4565
4566
|
};
|
|
4566
4567
|
__decorateClass([
|
|
4567
|
-
|
|
4568
|
+
IsOptional25()
|
|
4568
4569
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4569
4570
|
__decorateClass([
|
|
4570
4571
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4571
4572
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4572
4573
|
__decorateClass([
|
|
4573
|
-
|
|
4574
|
+
IsOptional25()
|
|
4574
4575
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4575
4576
|
__decorateClass([
|
|
4576
|
-
|
|
4577
|
+
IsOptional25(),
|
|
4577
4578
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4578
4579
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4579
4580
|
|
|
@@ -4606,7 +4607,7 @@ import {
|
|
|
4606
4607
|
IsString as IsString31,
|
|
4607
4608
|
IsEnum as IsEnum19,
|
|
4608
4609
|
IsInt as IsInt6,
|
|
4609
|
-
IsOptional as
|
|
4610
|
+
IsOptional as IsOptional26,
|
|
4610
4611
|
IsArray as IsArray11,
|
|
4611
4612
|
IsDateString as IsDateString4,
|
|
4612
4613
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4633,7 +4634,7 @@ __decorateClass([
|
|
|
4633
4634
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4634
4635
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4635
4636
|
__decorateClass([
|
|
4636
|
-
|
|
4637
|
+
IsOptional26(),
|
|
4637
4638
|
IsString31({ message: "Note must be a string." })
|
|
4638
4639
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4639
4640
|
__decorateClass([
|
|
@@ -4683,7 +4684,7 @@ __decorateClass([
|
|
|
4683
4684
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4684
4685
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4685
4686
|
__decorateClass([
|
|
4686
|
-
|
|
4687
|
+
IsOptional26(),
|
|
4687
4688
|
IsString31({ message: "Additional comment must be a string." })
|
|
4688
4689
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4689
4690
|
__decorateClass([
|
|
@@ -4705,7 +4706,7 @@ import {
|
|
|
4705
4706
|
IsString as IsString32,
|
|
4706
4707
|
IsEnum as IsEnum20,
|
|
4707
4708
|
IsInt as IsInt7,
|
|
4708
|
-
IsOptional as
|
|
4709
|
+
IsOptional as IsOptional27,
|
|
4709
4710
|
IsArray as IsArray12,
|
|
4710
4711
|
IsDateString as IsDateString5,
|
|
4711
4712
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4732,7 +4733,7 @@ __decorateClass([
|
|
|
4732
4733
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4733
4734
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4734
4735
|
__decorateClass([
|
|
4735
|
-
|
|
4736
|
+
IsOptional27(),
|
|
4736
4737
|
IsString32({ message: "Note must be a string." })
|
|
4737
4738
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4738
4739
|
__decorateClass([
|
|
@@ -4782,7 +4783,7 @@ __decorateClass([
|
|
|
4782
4783
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4783
4784
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4784
4785
|
__decorateClass([
|
|
4785
|
-
|
|
4786
|
+
IsOptional27(),
|
|
4786
4787
|
IsString32({ message: "Additional comment must be a string." })
|
|
4787
4788
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4788
4789
|
__decorateClass([
|
|
@@ -4805,7 +4806,7 @@ var LEAD_PATTERN = {
|
|
|
4805
4806
|
};
|
|
4806
4807
|
|
|
4807
4808
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4808
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
4809
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional28, IsEnum as IsEnum21 } from "class-validator";
|
|
4809
4810
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4810
4811
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4811
4812
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4826,7 +4827,7 @@ __decorateClass([
|
|
|
4826
4827
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4827
4828
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4828
4829
|
__decorateClass([
|
|
4829
|
-
|
|
4830
|
+
IsOptional28(),
|
|
4830
4831
|
IsString33({ message: "Description must be a string" })
|
|
4831
4832
|
], CreateLeadDto.prototype, "description", 2);
|
|
4832
4833
|
__decorateClass([
|
|
@@ -4850,7 +4851,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4850
4851
|
};
|
|
4851
4852
|
|
|
4852
4853
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4853
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
4854
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29, IsString as IsString34 } from "class-validator";
|
|
4854
4855
|
var CreateAdminRoleDto = class {
|
|
4855
4856
|
};
|
|
4856
4857
|
__decorateClass([
|
|
@@ -4858,12 +4859,12 @@ __decorateClass([
|
|
|
4858
4859
|
IsString34({ message: "Role name must be a string." })
|
|
4859
4860
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4860
4861
|
__decorateClass([
|
|
4861
|
-
|
|
4862
|
+
IsOptional29(),
|
|
4862
4863
|
IsString34({ message: "Role description must be a string." })
|
|
4863
4864
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4864
4865
|
|
|
4865
4866
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4866
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
4867
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional30, IsString as IsString35 } from "class-validator";
|
|
4867
4868
|
var UpdateAdminRoleDto = class {
|
|
4868
4869
|
};
|
|
4869
4870
|
__decorateClass([
|
|
@@ -4871,11 +4872,11 @@ __decorateClass([
|
|
|
4871
4872
|
IsString35({ message: "Role name must be a string." })
|
|
4872
4873
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4873
4874
|
__decorateClass([
|
|
4874
|
-
|
|
4875
|
+
IsOptional30(),
|
|
4875
4876
|
IsString35({ message: "Role description must be a string." })
|
|
4876
4877
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4877
4878
|
__decorateClass([
|
|
4878
|
-
|
|
4879
|
+
IsOptional30(),
|
|
4879
4880
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
4880
4881
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4881
4882
|
|