@experts_hub/shared 1.0.412 → 1.0.413
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +121 -117
- package/dist/modules/onboarding/dto/client-profile-question.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -929,6 +929,9 @@ __decorateClass([
|
|
|
929
929
|
__decorateClass([
|
|
930
930
|
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter answer." })
|
|
931
931
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
932
|
+
__decorateClass([
|
|
933
|
+
(0, import_class_validator25.IsOptional)()
|
|
934
|
+
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
932
935
|
__decorateClass([
|
|
933
936
|
(0, import_class_validator25.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
934
937
|
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
package/dist/index.mjs
CHANGED
|
@@ -673,7 +673,8 @@ import {
|
|
|
673
673
|
IsString as IsString7,
|
|
674
674
|
IsNotEmpty as IsNotEmpty22,
|
|
675
675
|
IsIn as IsIn2,
|
|
676
|
-
ValidateIf
|
|
676
|
+
ValidateIf,
|
|
677
|
+
IsOptional as IsOptional7
|
|
677
678
|
} from "class-validator";
|
|
678
679
|
var ClientProfileQuestionDto = class {
|
|
679
680
|
};
|
|
@@ -695,6 +696,9 @@ __decorateClass([
|
|
|
695
696
|
__decorateClass([
|
|
696
697
|
IsNotEmpty22({ message: "Please enter answer." })
|
|
697
698
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
699
|
+
__decorateClass([
|
|
700
|
+
IsOptional7()
|
|
701
|
+
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
698
702
|
__decorateClass([
|
|
699
703
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
700
704
|
IsNotEmpty22({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
@@ -706,7 +710,7 @@ import {
|
|
|
706
710
|
IsNotEmpty as IsNotEmpty23,
|
|
707
711
|
IsEmail as IsEmail3,
|
|
708
712
|
IsString as IsString8,
|
|
709
|
-
IsOptional as
|
|
713
|
+
IsOptional as IsOptional8
|
|
710
714
|
} from "class-validator";
|
|
711
715
|
var ClientCreateAccountDto = class {
|
|
712
716
|
};
|
|
@@ -724,7 +728,7 @@ __decorateClass([
|
|
|
724
728
|
IsString8({ message: "Please enter valid company name." })
|
|
725
729
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
726
730
|
__decorateClass([
|
|
727
|
-
|
|
731
|
+
IsOptional8()
|
|
728
732
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
729
733
|
|
|
730
734
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
@@ -785,7 +789,7 @@ __decorateClass([
|
|
|
785
789
|
|
|
786
790
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
787
791
|
import { Transform } from "class-transformer";
|
|
788
|
-
import { IsNotEmpty as IsNotEmpty25, IsOptional as
|
|
792
|
+
import { IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional9, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
789
793
|
var UpdateSubAdminDto = class {
|
|
790
794
|
};
|
|
791
795
|
__decorateClass([
|
|
@@ -807,7 +811,7 @@ __decorateClass([
|
|
|
807
811
|
IsNotEmpty25({ message: "Please enter mobile number." })
|
|
808
812
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
809
813
|
__decorateClass([
|
|
810
|
-
|
|
814
|
+
IsOptional9(),
|
|
811
815
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
812
816
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
813
817
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -836,7 +840,7 @@ import {
|
|
|
836
840
|
IsEmail as IsEmail4,
|
|
837
841
|
Length as Length2,
|
|
838
842
|
IsUrl as IsUrl2,
|
|
839
|
-
IsOptional as
|
|
843
|
+
IsOptional as IsOptional10,
|
|
840
844
|
ValidateIf as ValidateIf2
|
|
841
845
|
} from "class-validator";
|
|
842
846
|
var UpdateCompanyProfileDto = class {
|
|
@@ -849,7 +853,7 @@ __decorateClass([
|
|
|
849
853
|
})
|
|
850
854
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
851
855
|
__decorateClass([
|
|
852
|
-
|
|
856
|
+
IsOptional10(),
|
|
853
857
|
ValidateIf2((o) => o.webSite !== ""),
|
|
854
858
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
855
859
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -874,7 +878,7 @@ __decorateClass([
|
|
|
874
878
|
IsEmail4()
|
|
875
879
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
876
880
|
__decorateClass([
|
|
877
|
-
|
|
881
|
+
IsOptional10(),
|
|
878
882
|
IsString10({ message: "About company must be a string." })
|
|
879
883
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
880
884
|
|
|
@@ -910,7 +914,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
910
914
|
// src/modules/question/dto/create-question.dto.ts
|
|
911
915
|
import {
|
|
912
916
|
IsNotEmpty as IsNotEmpty28,
|
|
913
|
-
IsOptional as
|
|
917
|
+
IsOptional as IsOptional11,
|
|
914
918
|
IsBoolean as IsBoolean2
|
|
915
919
|
} from "class-validator";
|
|
916
920
|
var CreateQuestionDto = class {
|
|
@@ -928,7 +932,7 @@ __decorateClass([
|
|
|
928
932
|
IsNotEmpty28({ message: "Please enter options." })
|
|
929
933
|
], CreateQuestionDto.prototype, "options", 2);
|
|
930
934
|
__decorateClass([
|
|
931
|
-
|
|
935
|
+
IsOptional11(),
|
|
932
936
|
IsBoolean2({ message: "Whether the question status active" })
|
|
933
937
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
934
938
|
|
|
@@ -964,7 +968,7 @@ import {
|
|
|
964
968
|
IsArray,
|
|
965
969
|
ArrayNotEmpty,
|
|
966
970
|
IsNumber,
|
|
967
|
-
IsOptional as
|
|
971
|
+
IsOptional as IsOptional12,
|
|
968
972
|
IsEnum as IsEnum10,
|
|
969
973
|
Min,
|
|
970
974
|
ValidateIf as ValidateIf3,
|
|
@@ -992,7 +996,7 @@ var JobBasicInformationDto = class {
|
|
|
992
996
|
}
|
|
993
997
|
};
|
|
994
998
|
__decorateClass([
|
|
995
|
-
|
|
999
|
+
IsOptional12(),
|
|
996
1000
|
Type(() => Boolean)
|
|
997
1001
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
998
1002
|
__decorateClass([
|
|
@@ -1000,11 +1004,11 @@ __decorateClass([
|
|
|
1000
1004
|
IsString12({ message: "Job role must be a string" })
|
|
1001
1005
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1002
1006
|
__decorateClass([
|
|
1003
|
-
|
|
1007
|
+
IsOptional12(),
|
|
1004
1008
|
IsString12({ message: "Project name must be a string" })
|
|
1005
1009
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
1006
1010
|
__decorateClass([
|
|
1007
|
-
|
|
1011
|
+
IsOptional12(),
|
|
1008
1012
|
IsString12({ message: "Note must be a string" })
|
|
1009
1013
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1010
1014
|
__decorateClass([
|
|
@@ -1062,7 +1066,7 @@ __decorateClass([
|
|
|
1062
1066
|
Type(() => Number)
|
|
1063
1067
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1064
1068
|
__decorateClass([
|
|
1065
|
-
|
|
1069
|
+
IsOptional12()
|
|
1066
1070
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1067
1071
|
__decorateClass([
|
|
1068
1072
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1071,7 +1075,7 @@ __decorateClass([
|
|
|
1071
1075
|
Type(() => Number)
|
|
1072
1076
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1073
1077
|
__decorateClass([
|
|
1074
|
-
|
|
1078
|
+
IsOptional12()
|
|
1075
1079
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
|
|
1076
1080
|
__decorateClass([
|
|
1077
1081
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1093,12 +1097,12 @@ __decorateClass([
|
|
|
1093
1097
|
__decorateClass([
|
|
1094
1098
|
ValidateIf3((o) => !o.isDraft),
|
|
1095
1099
|
IsString12({ message: "Onboarding TAT must be a string" }),
|
|
1096
|
-
|
|
1100
|
+
IsOptional12()
|
|
1097
1101
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1098
1102
|
__decorateClass([
|
|
1099
1103
|
ValidateIf3((o) => !o.isDraft),
|
|
1100
1104
|
IsString12({ message: "Candidate communication skills must be a string" }),
|
|
1101
|
-
|
|
1105
|
+
IsOptional12()
|
|
1102
1106
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1103
1107
|
__decorateClass([
|
|
1104
1108
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1111,21 +1115,21 @@ __decorateClass([
|
|
|
1111
1115
|
IsString12({ message: "Years of experience must be a string" })
|
|
1112
1116
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1113
1117
|
__decorateClass([
|
|
1114
|
-
|
|
1118
|
+
IsOptional12(),
|
|
1115
1119
|
IsString12({ message: "Business industry must be a string" })
|
|
1116
1120
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1117
1121
|
__decorateClass([
|
|
1118
|
-
|
|
1122
|
+
IsOptional12(),
|
|
1119
1123
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1120
1124
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1121
1125
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
1122
1126
|
|
|
1123
1127
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1124
|
-
import { IsOptional as
|
|
1128
|
+
import { IsOptional as IsOptional13, IsString as IsString13, MaxLength as MaxLength7 } from "class-validator";
|
|
1125
1129
|
var JobAdditionalCommentDto = class {
|
|
1126
1130
|
};
|
|
1127
1131
|
__decorateClass([
|
|
1128
|
-
|
|
1132
|
+
IsOptional13(),
|
|
1129
1133
|
IsString13({ message: "Additional comment must be a string" }),
|
|
1130
1134
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1131
1135
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1207,7 +1211,7 @@ __decorateClass([
|
|
|
1207
1211
|
|
|
1208
1212
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1209
1213
|
import {
|
|
1210
|
-
IsOptional as
|
|
1214
|
+
IsOptional as IsOptional14,
|
|
1211
1215
|
IsString as IsString16,
|
|
1212
1216
|
IsEmail as IsEmail5,
|
|
1213
1217
|
IsNumber as IsNumber2,
|
|
@@ -1257,7 +1261,7 @@ __decorateClass([
|
|
|
1257
1261
|
IsString16({ message: "Please enter valid mobile number." })
|
|
1258
1262
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1259
1263
|
__decorateClass([
|
|
1260
|
-
|
|
1264
|
+
IsOptional14(),
|
|
1261
1265
|
IsNumber2()
|
|
1262
1266
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1263
1267
|
__decorateClass([
|
|
@@ -1285,35 +1289,35 @@ __decorateClass([
|
|
|
1285
1289
|
})
|
|
1286
1290
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1287
1291
|
__decorateClass([
|
|
1288
|
-
|
|
1292
|
+
IsOptional14(),
|
|
1289
1293
|
IsString16()
|
|
1290
1294
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1291
1295
|
__decorateClass([
|
|
1292
|
-
|
|
1296
|
+
IsOptional14(),
|
|
1293
1297
|
IsString16()
|
|
1294
1298
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1295
1299
|
__decorateClass([
|
|
1296
|
-
|
|
1300
|
+
IsOptional14(),
|
|
1297
1301
|
IsString16()
|
|
1298
1302
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1299
1303
|
__decorateClass([
|
|
1300
|
-
|
|
1304
|
+
IsOptional14(),
|
|
1301
1305
|
IsString16()
|
|
1302
1306
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1303
1307
|
__decorateClass([
|
|
1304
|
-
|
|
1308
|
+
IsOptional14(),
|
|
1305
1309
|
IsString16()
|
|
1306
1310
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1307
1311
|
__decorateClass([
|
|
1308
|
-
|
|
1312
|
+
IsOptional14(),
|
|
1309
1313
|
IsString16()
|
|
1310
1314
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1311
1315
|
__decorateClass([
|
|
1312
|
-
|
|
1316
|
+
IsOptional14(),
|
|
1313
1317
|
IsString16()
|
|
1314
1318
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1315
1319
|
__decorateClass([
|
|
1316
|
-
|
|
1320
|
+
IsOptional14(),
|
|
1317
1321
|
IsString16()
|
|
1318
1322
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1319
1323
|
|
|
@@ -1328,7 +1332,7 @@ var BANK_PATTERN = {
|
|
|
1328
1332
|
import {
|
|
1329
1333
|
IsEnum as IsEnum13,
|
|
1330
1334
|
IsNotEmpty as IsNotEmpty34,
|
|
1331
|
-
IsOptional as
|
|
1335
|
+
IsOptional as IsOptional15,
|
|
1332
1336
|
ValidateIf as ValidateIf4
|
|
1333
1337
|
} from "class-validator";
|
|
1334
1338
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1348,7 +1352,7 @@ __decorateClass([
|
|
|
1348
1352
|
IsNotEmpty34({ message: "Please enter Email." })
|
|
1349
1353
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1350
1354
|
__decorateClass([
|
|
1351
|
-
|
|
1355
|
+
IsOptional15()
|
|
1352
1356
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1353
1357
|
__decorateClass([
|
|
1354
1358
|
IsNotEmpty34({ message: "Please enter Account Number." })
|
|
@@ -1376,7 +1380,7 @@ __decorateClass([
|
|
|
1376
1380
|
IsNotEmpty34({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1377
1381
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1378
1382
|
__decorateClass([
|
|
1379
|
-
|
|
1383
|
+
IsOptional15()
|
|
1380
1384
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1381
1385
|
__decorateClass([
|
|
1382
1386
|
IsEnum13(BankAccountScope, {
|
|
@@ -1438,7 +1442,7 @@ import {
|
|
|
1438
1442
|
IsEnum as IsEnum15,
|
|
1439
1443
|
IsInt,
|
|
1440
1444
|
IsNotEmpty as IsNotEmpty35,
|
|
1441
|
-
IsOptional as
|
|
1445
|
+
IsOptional as IsOptional16,
|
|
1442
1446
|
IsString as IsString17,
|
|
1443
1447
|
Max as Max2,
|
|
1444
1448
|
Min as Min2
|
|
@@ -5054,7 +5058,7 @@ __decorateClass([
|
|
|
5054
5058
|
Max2(5, { message: "Rating must be at most 5" })
|
|
5055
5059
|
], CreateRatingDto.prototype, "rating", 2);
|
|
5056
5060
|
__decorateClass([
|
|
5057
|
-
|
|
5061
|
+
IsOptional16(),
|
|
5058
5062
|
IsString17({ message: "Review must be a string" })
|
|
5059
5063
|
], CreateRatingDto.prototype, "review", 2);
|
|
5060
5064
|
|
|
@@ -5071,7 +5075,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
5071
5075
|
};
|
|
5072
5076
|
|
|
5073
5077
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
5074
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as
|
|
5078
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional17 } from "class-validator";
|
|
5075
5079
|
var CreateCompanyRoleDto = class {
|
|
5076
5080
|
};
|
|
5077
5081
|
__decorateClass([
|
|
@@ -5089,12 +5093,12 @@ __decorateClass([
|
|
|
5089
5093
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
5090
5094
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5091
5095
|
__decorateClass([
|
|
5092
|
-
|
|
5096
|
+
IsOptional17(),
|
|
5093
5097
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
5094
5098
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
5095
5099
|
|
|
5096
5100
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
5097
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as
|
|
5101
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional18 } from "class-validator";
|
|
5098
5102
|
var UpdateCompanyRoleDto = class {
|
|
5099
5103
|
};
|
|
5100
5104
|
__decorateClass([
|
|
@@ -5112,7 +5116,7 @@ __decorateClass([
|
|
|
5112
5116
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
5113
5117
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
5114
5118
|
__decorateClass([
|
|
5115
|
-
|
|
5119
|
+
IsOptional18(),
|
|
5116
5120
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
5117
5121
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
5118
5122
|
|
|
@@ -5134,7 +5138,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
5134
5138
|
import {
|
|
5135
5139
|
ArrayMinSize,
|
|
5136
5140
|
IsNotEmpty as IsNotEmpty38,
|
|
5137
|
-
IsOptional as
|
|
5141
|
+
IsOptional as IsOptional19,
|
|
5138
5142
|
IsString as IsString20,
|
|
5139
5143
|
MaxLength as MaxLength11,
|
|
5140
5144
|
ValidateNested
|
|
@@ -5143,7 +5147,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
5143
5147
|
var ExperienceDto = class {
|
|
5144
5148
|
};
|
|
5145
5149
|
__decorateClass([
|
|
5146
|
-
|
|
5150
|
+
IsOptional19()
|
|
5147
5151
|
], ExperienceDto.prototype, "uuid", 2);
|
|
5148
5152
|
__decorateClass([
|
|
5149
5153
|
IsNotEmpty38(),
|
|
@@ -5158,7 +5162,7 @@ __decorateClass([
|
|
|
5158
5162
|
IsString20()
|
|
5159
5163
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
5160
5164
|
__decorateClass([
|
|
5161
|
-
|
|
5165
|
+
IsOptional19(),
|
|
5162
5166
|
IsString20(),
|
|
5163
5167
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5164
5168
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -5229,12 +5233,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5229
5233
|
};
|
|
5230
5234
|
|
|
5231
5235
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5232
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as
|
|
5236
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional22, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
5233
5237
|
import { Type as Type3 } from "class-transformer";
|
|
5234
5238
|
var EducationDto = class {
|
|
5235
5239
|
};
|
|
5236
5240
|
__decorateClass([
|
|
5237
|
-
|
|
5241
|
+
IsOptional22()
|
|
5238
5242
|
], EducationDto.prototype, "uuid", 2);
|
|
5239
5243
|
__decorateClass([
|
|
5240
5244
|
IsString23(),
|
|
@@ -5264,12 +5268,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5264
5268
|
};
|
|
5265
5269
|
|
|
5266
5270
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5267
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as
|
|
5271
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional23, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
5268
5272
|
import { Type as Type4 } from "class-transformer";
|
|
5269
5273
|
var ProjectDto = class {
|
|
5270
5274
|
};
|
|
5271
5275
|
__decorateClass([
|
|
5272
|
-
|
|
5276
|
+
IsOptional23()
|
|
5273
5277
|
], ProjectDto.prototype, "uuid", 2);
|
|
5274
5278
|
__decorateClass([
|
|
5275
5279
|
IsString24(),
|
|
@@ -5284,33 +5288,33 @@ __decorateClass([
|
|
|
5284
5288
|
IsNotEmpty42({ message: "Please Enter End Date " })
|
|
5285
5289
|
], ProjectDto.prototype, "endDate", 2);
|
|
5286
5290
|
__decorateClass([
|
|
5287
|
-
|
|
5291
|
+
IsOptional23(),
|
|
5288
5292
|
IsString24()
|
|
5289
5293
|
], ProjectDto.prototype, "clientName", 2);
|
|
5290
5294
|
__decorateClass([
|
|
5291
|
-
|
|
5295
|
+
IsOptional23(),
|
|
5292
5296
|
IsString24()
|
|
5293
5297
|
], ProjectDto.prototype, "gitLink", 2);
|
|
5294
5298
|
__decorateClass([
|
|
5295
|
-
|
|
5299
|
+
IsOptional23(),
|
|
5296
5300
|
IsString24(),
|
|
5297
5301
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5298
5302
|
], ProjectDto.prototype, "description", 2);
|
|
5299
5303
|
var CaseStudyDto = class {
|
|
5300
5304
|
};
|
|
5301
5305
|
__decorateClass([
|
|
5302
|
-
|
|
5306
|
+
IsOptional23()
|
|
5303
5307
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
5304
5308
|
__decorateClass([
|
|
5305
5309
|
IsString24(),
|
|
5306
5310
|
IsNotEmpty42({ message: "Please Enter Project Name " })
|
|
5307
5311
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
5308
5312
|
__decorateClass([
|
|
5309
|
-
|
|
5313
|
+
IsOptional23(),
|
|
5310
5314
|
IsString24()
|
|
5311
5315
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
5312
5316
|
__decorateClass([
|
|
5313
|
-
|
|
5317
|
+
IsOptional23(),
|
|
5314
5318
|
IsString24(),
|
|
5315
5319
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
5316
5320
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -5340,7 +5344,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5340
5344
|
};
|
|
5341
5345
|
|
|
5342
5346
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5343
|
-
import { IsArray as IsArray8, IsString as IsString25, IsOptional as
|
|
5347
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional24 } from "class-validator";
|
|
5344
5348
|
import { Type as Type5 } from "class-transformer";
|
|
5345
5349
|
var FreelancerSkillDto = class {
|
|
5346
5350
|
constructor() {
|
|
@@ -5350,19 +5354,19 @@ var FreelancerSkillDto = class {
|
|
|
5350
5354
|
}
|
|
5351
5355
|
};
|
|
5352
5356
|
__decorateClass([
|
|
5353
|
-
|
|
5357
|
+
IsOptional24(),
|
|
5354
5358
|
IsArray8(),
|
|
5355
5359
|
Type5(() => String),
|
|
5356
5360
|
IsString25({ each: true })
|
|
5357
5361
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5358
5362
|
__decorateClass([
|
|
5359
|
-
|
|
5363
|
+
IsOptional24(),
|
|
5360
5364
|
IsArray8(),
|
|
5361
5365
|
Type5(() => String),
|
|
5362
5366
|
IsString25({ each: true })
|
|
5363
5367
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5364
5368
|
__decorateClass([
|
|
5365
|
-
|
|
5369
|
+
IsOptional24(),
|
|
5366
5370
|
IsArray8(),
|
|
5367
5371
|
Type5(() => String),
|
|
5368
5372
|
IsString25({ each: true })
|
|
@@ -5385,7 +5389,7 @@ import {
|
|
|
5385
5389
|
IsString as IsString26,
|
|
5386
5390
|
IsEmail as IsEmail10,
|
|
5387
5391
|
IsBoolean as IsBoolean10,
|
|
5388
|
-
IsOptional as
|
|
5392
|
+
IsOptional as IsOptional25,
|
|
5389
5393
|
IsEnum as IsEnum16,
|
|
5390
5394
|
IsNumber as IsNumber3,
|
|
5391
5395
|
IsUrl as IsUrl3,
|
|
@@ -5468,23 +5472,23 @@ __decorateClass([
|
|
|
5468
5472
|
IsNotEmpty44({ message: "Please enter availability to join." })
|
|
5469
5473
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5470
5474
|
__decorateClass([
|
|
5471
|
-
|
|
5475
|
+
IsOptional25(),
|
|
5472
5476
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5473
5477
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5474
5478
|
__decorateClass([
|
|
5475
|
-
|
|
5479
|
+
IsOptional25(),
|
|
5476
5480
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
5477
5481
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5478
5482
|
__decorateClass([
|
|
5479
|
-
|
|
5483
|
+
IsOptional25(),
|
|
5480
5484
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
5481
5485
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5482
5486
|
__decorateClass([
|
|
5483
|
-
|
|
5487
|
+
IsOptional25(),
|
|
5484
5488
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5485
5489
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5486
5490
|
__decorateClass([
|
|
5487
|
-
|
|
5491
|
+
IsOptional25(),
|
|
5488
5492
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
5489
5493
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5490
5494
|
|
|
@@ -5493,7 +5497,7 @@ import {
|
|
|
5493
5497
|
IsString as IsString27,
|
|
5494
5498
|
IsEmail as IsEmail11,
|
|
5495
5499
|
IsBoolean as IsBoolean11,
|
|
5496
|
-
IsOptional as
|
|
5500
|
+
IsOptional as IsOptional26,
|
|
5497
5501
|
IsEnum as IsEnum17,
|
|
5498
5502
|
IsNumber as IsNumber4,
|
|
5499
5503
|
IsUrl as IsUrl4,
|
|
@@ -5520,24 +5524,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
5520
5524
|
var UpdateFreelancerDto = class {
|
|
5521
5525
|
};
|
|
5522
5526
|
__decorateClass([
|
|
5523
|
-
|
|
5527
|
+
IsOptional26(),
|
|
5524
5528
|
IsString27({ message: "Full name must be a string" }),
|
|
5525
5529
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
5526
5530
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
5527
5531
|
__decorateClass([
|
|
5528
|
-
|
|
5532
|
+
IsOptional26(),
|
|
5529
5533
|
IsEmail11({}, { message: "Invalid email address" })
|
|
5530
5534
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
5531
5535
|
__decorateClass([
|
|
5532
|
-
|
|
5536
|
+
IsOptional26(),
|
|
5533
5537
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5534
5538
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
5535
5539
|
__decorateClass([
|
|
5536
|
-
|
|
5540
|
+
IsOptional26(),
|
|
5537
5541
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5538
5542
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
5539
5543
|
__decorateClass([
|
|
5540
|
-
|
|
5544
|
+
IsOptional26(),
|
|
5541
5545
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5542
5546
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
5543
5547
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5546,12 +5550,12 @@ __decorateClass([
|
|
|
5546
5550
|
})
|
|
5547
5551
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
5548
5552
|
__decorateClass([
|
|
5549
|
-
|
|
5553
|
+
IsOptional26(),
|
|
5550
5554
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
5551
5555
|
Type7(() => Boolean)
|
|
5552
5556
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5553
5557
|
__decorateClass([
|
|
5554
|
-
|
|
5558
|
+
IsOptional26(),
|
|
5555
5559
|
IsEnum17(NatureOfWorkEnum2, {
|
|
5556
5560
|
message: `Nature of work must be one of: ${Object.values(
|
|
5557
5561
|
NatureOfWorkEnum2
|
|
@@ -5559,13 +5563,13 @@ __decorateClass([
|
|
|
5559
5563
|
})
|
|
5560
5564
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
5561
5565
|
__decorateClass([
|
|
5562
|
-
|
|
5566
|
+
IsOptional26(),
|
|
5563
5567
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
5564
5568
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5565
5569
|
Type7(() => Number)
|
|
5566
5570
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5567
5571
|
__decorateClass([
|
|
5568
|
-
|
|
5572
|
+
IsOptional26(),
|
|
5569
5573
|
IsEnum17(ModeOfWorkEnum2, {
|
|
5570
5574
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
5571
5575
|
", "
|
|
@@ -5573,7 +5577,7 @@ __decorateClass([
|
|
|
5573
5577
|
})
|
|
5574
5578
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5575
5579
|
__decorateClass([
|
|
5576
|
-
|
|
5580
|
+
IsOptional26(),
|
|
5577
5581
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
5578
5582
|
Type7(() => Boolean)
|
|
5579
5583
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -5582,23 +5586,23 @@ __decorateClass([
|
|
|
5582
5586
|
IsNotEmpty45({ message: "Please enter availability to join." })
|
|
5583
5587
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
5584
5588
|
__decorateClass([
|
|
5585
|
-
|
|
5589
|
+
IsOptional26(),
|
|
5586
5590
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
5587
5591
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
5588
5592
|
__decorateClass([
|
|
5589
|
-
|
|
5593
|
+
IsOptional26(),
|
|
5590
5594
|
IsString27({ message: "Kaggle profile link must be a string" })
|
|
5591
5595
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
5592
5596
|
__decorateClass([
|
|
5593
|
-
|
|
5597
|
+
IsOptional26(),
|
|
5594
5598
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
5595
5599
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
5596
5600
|
__decorateClass([
|
|
5597
|
-
|
|
5601
|
+
IsOptional26(),
|
|
5598
5602
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
5599
5603
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
5600
5604
|
__decorateClass([
|
|
5601
|
-
|
|
5605
|
+
IsOptional26(),
|
|
5602
5606
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
5603
5607
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
5604
5608
|
|
|
@@ -5619,7 +5623,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
5619
5623
|
import {
|
|
5620
5624
|
IsNotEmpty as IsNotEmpty46,
|
|
5621
5625
|
IsEmail as IsEmail12,
|
|
5622
|
-
IsOptional as
|
|
5626
|
+
IsOptional as IsOptional27,
|
|
5623
5627
|
IsString as IsString28,
|
|
5624
5628
|
IsArray as IsArray9,
|
|
5625
5629
|
MinLength as MinLength14,
|
|
@@ -5690,7 +5694,7 @@ __decorateClass([
|
|
|
5690
5694
|
IsString28()
|
|
5691
5695
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
5692
5696
|
__decorateClass([
|
|
5693
|
-
|
|
5697
|
+
IsOptional27(),
|
|
5694
5698
|
IsString28()
|
|
5695
5699
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5696
5700
|
|
|
@@ -5708,7 +5712,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
5708
5712
|
import {
|
|
5709
5713
|
IsNotEmpty as IsNotEmpty48,
|
|
5710
5714
|
IsEmail as IsEmail13,
|
|
5711
|
-
IsOptional as
|
|
5715
|
+
IsOptional as IsOptional28,
|
|
5712
5716
|
IsString as IsString30,
|
|
5713
5717
|
IsArray as IsArray10,
|
|
5714
5718
|
MinLength as MinLength15,
|
|
@@ -5743,7 +5747,7 @@ __decorateClass([
|
|
|
5743
5747
|
IsEmail13()
|
|
5744
5748
|
], UpdateClientDto.prototype, "email", 2);
|
|
5745
5749
|
__decorateClass([
|
|
5746
|
-
|
|
5750
|
+
IsOptional28(),
|
|
5747
5751
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5748
5752
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
5749
5753
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -5776,7 +5780,7 @@ __decorateClass([
|
|
|
5776
5780
|
IsString30()
|
|
5777
5781
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
5778
5782
|
__decorateClass([
|
|
5779
|
-
|
|
5783
|
+
IsOptional28(),
|
|
5780
5784
|
IsString30()
|
|
5781
5785
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
5782
5786
|
|
|
@@ -5787,7 +5791,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
5787
5791
|
};
|
|
5788
5792
|
|
|
5789
5793
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
5790
|
-
import { IsOptional as
|
|
5794
|
+
import { IsOptional as IsOptional29, IsEnum as IsEnum20, IsString as IsString31, IsNotEmpty as IsNotEmpty49, IsIn as IsIn3 } from "class-validator";
|
|
5791
5795
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
5792
5796
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
5793
5797
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -5798,7 +5802,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
5798
5802
|
var FreelancerDeclarationDto = class {
|
|
5799
5803
|
};
|
|
5800
5804
|
__decorateClass([
|
|
5801
|
-
|
|
5805
|
+
IsOptional29(),
|
|
5802
5806
|
IsString31({ message: "UUID must be a string" })
|
|
5803
5807
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
5804
5808
|
__decorateClass([
|
|
@@ -5822,35 +5826,35 @@ var CMS_PATTERNS = {
|
|
|
5822
5826
|
};
|
|
5823
5827
|
|
|
5824
5828
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
5825
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as
|
|
5829
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as IsOptional30 } from "class-validator";
|
|
5826
5830
|
var CreateCmsDto = class {
|
|
5827
5831
|
};
|
|
5828
5832
|
__decorateClass([
|
|
5829
5833
|
IsNotEmpty50({ message: "Please enter name." })
|
|
5830
5834
|
], CreateCmsDto.prototype, "title", 2);
|
|
5831
5835
|
__decorateClass([
|
|
5832
|
-
|
|
5836
|
+
IsOptional30()
|
|
5833
5837
|
], CreateCmsDto.prototype, "content", 2);
|
|
5834
5838
|
__decorateClass([
|
|
5835
|
-
|
|
5839
|
+
IsOptional30(),
|
|
5836
5840
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
5837
5841
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
5838
5842
|
|
|
5839
5843
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
5840
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as
|
|
5844
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional31 } from "class-validator";
|
|
5841
5845
|
var UpdateCmsDto = class {
|
|
5842
5846
|
};
|
|
5843
5847
|
__decorateClass([
|
|
5844
|
-
|
|
5848
|
+
IsOptional31()
|
|
5845
5849
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
5846
5850
|
__decorateClass([
|
|
5847
5851
|
IsNotEmpty51({ message: "Please enter name." })
|
|
5848
5852
|
], UpdateCmsDto.prototype, "title", 2);
|
|
5849
5853
|
__decorateClass([
|
|
5850
|
-
|
|
5854
|
+
IsOptional31()
|
|
5851
5855
|
], UpdateCmsDto.prototype, "content", 2);
|
|
5852
5856
|
__decorateClass([
|
|
5853
|
-
|
|
5857
|
+
IsOptional31(),
|
|
5854
5858
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
5855
5859
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
5856
5860
|
|
|
@@ -5883,7 +5887,7 @@ import {
|
|
|
5883
5887
|
IsString as IsString32,
|
|
5884
5888
|
IsEnum as IsEnum21,
|
|
5885
5889
|
IsInt as IsInt6,
|
|
5886
|
-
IsOptional as
|
|
5890
|
+
IsOptional as IsOptional32,
|
|
5887
5891
|
IsArray as IsArray11,
|
|
5888
5892
|
IsDateString as IsDateString4,
|
|
5889
5893
|
IsNotEmpty as IsNotEmpty52,
|
|
@@ -5910,7 +5914,7 @@ __decorateClass([
|
|
|
5910
5914
|
IsNotEmpty52({ message: "Job role is required." })
|
|
5911
5915
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5912
5916
|
__decorateClass([
|
|
5913
|
-
|
|
5917
|
+
IsOptional32(),
|
|
5914
5918
|
IsString32({ message: "Note must be a string." })
|
|
5915
5919
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5916
5920
|
__decorateClass([
|
|
@@ -5969,7 +5973,7 @@ __decorateClass([
|
|
|
5969
5973
|
)
|
|
5970
5974
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5971
5975
|
__decorateClass([
|
|
5972
|
-
|
|
5976
|
+
IsOptional32(),
|
|
5973
5977
|
IsString32({ message: "Additional comment must be a string." })
|
|
5974
5978
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5975
5979
|
__decorateClass([
|
|
@@ -5991,7 +5995,7 @@ import {
|
|
|
5991
5995
|
IsString as IsString33,
|
|
5992
5996
|
IsEnum as IsEnum22,
|
|
5993
5997
|
IsInt as IsInt7,
|
|
5994
|
-
IsOptional as
|
|
5998
|
+
IsOptional as IsOptional33,
|
|
5995
5999
|
IsArray as IsArray12,
|
|
5996
6000
|
IsDateString as IsDateString5,
|
|
5997
6001
|
IsNotEmpty as IsNotEmpty53,
|
|
@@ -6018,7 +6022,7 @@ __decorateClass([
|
|
|
6018
6022
|
IsNotEmpty53({ message: "Job role is required." })
|
|
6019
6023
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
6020
6024
|
__decorateClass([
|
|
6021
|
-
|
|
6025
|
+
IsOptional33(),
|
|
6022
6026
|
IsString33({ message: "Note must be a string." })
|
|
6023
6027
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
6024
6028
|
__decorateClass([
|
|
@@ -6077,7 +6081,7 @@ __decorateClass([
|
|
|
6077
6081
|
)
|
|
6078
6082
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6079
6083
|
__decorateClass([
|
|
6080
|
-
|
|
6084
|
+
IsOptional33(),
|
|
6081
6085
|
IsString33({ message: "Additional comment must be a string." })
|
|
6082
6086
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
6083
6087
|
__decorateClass([
|
|
@@ -6100,7 +6104,7 @@ var LEAD_PATTERN = {
|
|
|
6100
6104
|
};
|
|
6101
6105
|
|
|
6102
6106
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
6103
|
-
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as
|
|
6107
|
+
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as IsOptional34, IsEnum as IsEnum23 } from "class-validator";
|
|
6104
6108
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
6105
6109
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
6106
6110
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -6121,7 +6125,7 @@ __decorateClass([
|
|
|
6121
6125
|
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6122
6126
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
6123
6127
|
__decorateClass([
|
|
6124
|
-
|
|
6128
|
+
IsOptional34(),
|
|
6125
6129
|
IsString34({ message: "Description must be a string" })
|
|
6126
6130
|
], CreateLeadDto.prototype, "description", 2);
|
|
6127
6131
|
__decorateClass([
|
|
@@ -6145,7 +6149,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
6145
6149
|
};
|
|
6146
6150
|
|
|
6147
6151
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
6148
|
-
import { IsNotEmpty as IsNotEmpty54, IsOptional as
|
|
6152
|
+
import { IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional35, IsString as IsString35 } from "class-validator";
|
|
6149
6153
|
var CreateAdminRoleDto = class {
|
|
6150
6154
|
};
|
|
6151
6155
|
__decorateClass([
|
|
@@ -6153,12 +6157,12 @@ __decorateClass([
|
|
|
6153
6157
|
IsString35({ message: "Role name must be a string." })
|
|
6154
6158
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
6155
6159
|
__decorateClass([
|
|
6156
|
-
|
|
6160
|
+
IsOptional35(),
|
|
6157
6161
|
IsString35({ message: "Role description must be a string." })
|
|
6158
6162
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6159
6163
|
|
|
6160
6164
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
6161
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as
|
|
6165
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional36, IsString as IsString36 } from "class-validator";
|
|
6162
6166
|
var UpdateAdminRoleDto = class {
|
|
6163
6167
|
};
|
|
6164
6168
|
__decorateClass([
|
|
@@ -6166,11 +6170,11 @@ __decorateClass([
|
|
|
6166
6170
|
IsString36({ message: "Role name must be a string." })
|
|
6167
6171
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
6168
6172
|
__decorateClass([
|
|
6169
|
-
|
|
6173
|
+
IsOptional36(),
|
|
6170
6174
|
IsString36({ message: "Role description must be a string." })
|
|
6171
6175
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
6172
6176
|
__decorateClass([
|
|
6173
|
-
|
|
6177
|
+
IsOptional36(),
|
|
6174
6178
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
6175
6179
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
6176
6180
|
|
|
@@ -6429,7 +6433,7 @@ import {
|
|
|
6429
6433
|
IsDateString as IsDateString6,
|
|
6430
6434
|
IsInt as IsInt8,
|
|
6431
6435
|
IsNotEmpty as IsNotEmpty63,
|
|
6432
|
-
IsOptional as
|
|
6436
|
+
IsOptional as IsOptional39,
|
|
6433
6437
|
IsString as IsString41,
|
|
6434
6438
|
Matches as Matches13,
|
|
6435
6439
|
IsNumber as IsNumber10
|
|
@@ -6461,19 +6465,19 @@ __decorateClass([
|
|
|
6461
6465
|
})
|
|
6462
6466
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6463
6467
|
__decorateClass([
|
|
6464
|
-
|
|
6468
|
+
IsOptional39(),
|
|
6465
6469
|
IsInt8()
|
|
6466
6470
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6467
6471
|
__decorateClass([
|
|
6468
|
-
|
|
6472
|
+
IsOptional39(),
|
|
6469
6473
|
IsString41()
|
|
6470
6474
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6471
6475
|
__decorateClass([
|
|
6472
|
-
|
|
6476
|
+
IsOptional39(),
|
|
6473
6477
|
IsString41()
|
|
6474
6478
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6475
6479
|
__decorateClass([
|
|
6476
|
-
|
|
6480
|
+
IsOptional39(),
|
|
6477
6481
|
IsString41()
|
|
6478
6482
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6479
6483
|
__decorateClass([
|
|
@@ -6485,7 +6489,7 @@ import {
|
|
|
6485
6489
|
IsDateString as IsDateString7,
|
|
6486
6490
|
IsInt as IsInt9,
|
|
6487
6491
|
IsNotEmpty as IsNotEmpty64,
|
|
6488
|
-
IsOptional as
|
|
6492
|
+
IsOptional as IsOptional40,
|
|
6489
6493
|
IsString as IsString42,
|
|
6490
6494
|
Matches as Matches14,
|
|
6491
6495
|
IsNumber as IsNumber11
|
|
@@ -6517,19 +6521,19 @@ __decorateClass([
|
|
|
6517
6521
|
})
|
|
6518
6522
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6519
6523
|
__decorateClass([
|
|
6520
|
-
|
|
6524
|
+
IsOptional40(),
|
|
6521
6525
|
IsInt9()
|
|
6522
6526
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6523
6527
|
__decorateClass([
|
|
6524
|
-
|
|
6528
|
+
IsOptional40(),
|
|
6525
6529
|
IsString42()
|
|
6526
6530
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6527
6531
|
__decorateClass([
|
|
6528
|
-
|
|
6532
|
+
IsOptional40(),
|
|
6529
6533
|
IsString42()
|
|
6530
6534
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6531
6535
|
__decorateClass([
|
|
6532
|
-
|
|
6536
|
+
IsOptional40(),
|
|
6533
6537
|
IsString42()
|
|
6534
6538
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6535
6539
|
__decorateClass([
|