@experts_hub/shared 1.0.301 → 1.0.303
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 +2 -1
- package/dist/index.mjs +126 -123
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -969,7 +969,8 @@ __decorateClass([
|
|
|
969
969
|
})
|
|
970
970
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
971
971
|
__decorateClass([
|
|
972
|
-
(0, import_class_validator28.
|
|
972
|
+
(0, import_class_validator28.IsOptional)(),
|
|
973
|
+
(0, import_class_validator28.ValidateIf)((o) => o.webSite !== ""),
|
|
973
974
|
(0, import_class_validator28.IsUrl)({}, { message: "Invalid website URL format" })
|
|
974
975
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
975
976
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -795,7 +795,9 @@ 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,
|
|
800
|
+
ValidateIf as ValidateIf2
|
|
799
801
|
} from "class-validator";
|
|
800
802
|
var UpdateCompanyProfileDto = class {
|
|
801
803
|
};
|
|
@@ -807,7 +809,8 @@ __decorateClass([
|
|
|
807
809
|
})
|
|
808
810
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
809
811
|
__decorateClass([
|
|
810
|
-
|
|
812
|
+
IsOptional4(),
|
|
813
|
+
ValidateIf2((o) => o.webSite !== ""),
|
|
811
814
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
812
815
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
813
816
|
__decorateClass([
|
|
@@ -867,7 +870,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
867
870
|
// src/modules/question/dto/create-question.dto.ts
|
|
868
871
|
import {
|
|
869
872
|
IsNotEmpty as IsNotEmpty26,
|
|
870
|
-
IsOptional as
|
|
873
|
+
IsOptional as IsOptional5,
|
|
871
874
|
IsBoolean as IsBoolean2
|
|
872
875
|
} from "class-validator";
|
|
873
876
|
var CreateQuestionDto = class {
|
|
@@ -885,7 +888,7 @@ __decorateClass([
|
|
|
885
888
|
IsNotEmpty26({ message: "Please enter options." })
|
|
886
889
|
], CreateQuestionDto.prototype, "options", 2);
|
|
887
890
|
__decorateClass([
|
|
888
|
-
|
|
891
|
+
IsOptional5(),
|
|
889
892
|
IsBoolean2({ message: "Whether the question status active" })
|
|
890
893
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
891
894
|
|
|
@@ -921,10 +924,10 @@ import {
|
|
|
921
924
|
IsArray,
|
|
922
925
|
ArrayNotEmpty,
|
|
923
926
|
IsNumber,
|
|
924
|
-
IsOptional as
|
|
927
|
+
IsOptional as IsOptional6,
|
|
925
928
|
IsEnum as IsEnum8,
|
|
926
929
|
Min,
|
|
927
|
-
ValidateIf as
|
|
930
|
+
ValidateIf as ValidateIf3
|
|
928
931
|
} from "class-validator";
|
|
929
932
|
import { Type } from "class-transformer";
|
|
930
933
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
@@ -945,7 +948,7 @@ var JobBasicInformationDto = class {
|
|
|
945
948
|
}
|
|
946
949
|
};
|
|
947
950
|
__decorateClass([
|
|
948
|
-
|
|
951
|
+
IsOptional6(),
|
|
949
952
|
Type(() => Boolean)
|
|
950
953
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
951
954
|
__decorateClass([
|
|
@@ -953,24 +956,24 @@ __decorateClass([
|
|
|
953
956
|
IsString11({ message: "Job role must be a string" })
|
|
954
957
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
955
958
|
__decorateClass([
|
|
956
|
-
|
|
959
|
+
IsOptional6(),
|
|
957
960
|
IsString11({ message: "Note must be a string" })
|
|
958
961
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
959
962
|
__decorateClass([
|
|
960
|
-
|
|
963
|
+
ValidateIf3((o) => !o.isDraft),
|
|
961
964
|
IsArray({ message: "Skills must be an array" }),
|
|
962
965
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
963
966
|
IsNumber({}, { each: true, message: "Each skill must be a number" }),
|
|
964
967
|
Type(() => Number)
|
|
965
968
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
966
969
|
__decorateClass([
|
|
967
|
-
|
|
970
|
+
ValidateIf3((o) => !o.isDraft),
|
|
968
971
|
IsNumber({}, { message: "Openings must be a number" }),
|
|
969
972
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
970
973
|
Type(() => Number)
|
|
971
974
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
972
975
|
__decorateClass([
|
|
973
|
-
|
|
976
|
+
ValidateIf3((o) => !o.isDraft),
|
|
974
977
|
IsEnum8(JobLocation, {
|
|
975
978
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
976
979
|
", "
|
|
@@ -978,22 +981,22 @@ __decorateClass([
|
|
|
978
981
|
})
|
|
979
982
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
980
983
|
__decorateClass([
|
|
981
|
-
|
|
984
|
+
ValidateIf3((o) => !o.isDraft),
|
|
982
985
|
IsNumber({}, { message: "Country id must be a number" }),
|
|
983
986
|
Type(() => Number)
|
|
984
987
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
985
988
|
__decorateClass([
|
|
986
|
-
|
|
989
|
+
ValidateIf3((o) => !o.isDraft),
|
|
987
990
|
IsNumber({}, { message: "State id must be a number" }),
|
|
988
991
|
Type(() => Number)
|
|
989
992
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
990
993
|
__decorateClass([
|
|
991
|
-
|
|
994
|
+
ValidateIf3((o) => !o.isDraft),
|
|
992
995
|
IsNumber({}, { message: "City id must be a number" }),
|
|
993
996
|
Type(() => Number)
|
|
994
997
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
995
998
|
__decorateClass([
|
|
996
|
-
|
|
999
|
+
ValidateIf3((o) => !o.isDraft),
|
|
997
1000
|
IsEnum8(EmploymentType, {
|
|
998
1001
|
message: `Type of employment must be one of: ${Object.values(
|
|
999
1002
|
EmploymentType
|
|
@@ -1001,63 +1004,63 @@ __decorateClass([
|
|
|
1001
1004
|
})
|
|
1002
1005
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1003
1006
|
__decorateClass([
|
|
1004
|
-
|
|
1007
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1005
1008
|
IsString11({ message: "Currency must be a string" })
|
|
1006
1009
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1007
1010
|
__decorateClass([
|
|
1008
|
-
|
|
1011
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1009
1012
|
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
1010
1013
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1011
1014
|
Type(() => Number)
|
|
1012
1015
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1013
1016
|
__decorateClass([
|
|
1014
|
-
|
|
1017
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1015
1018
|
IsNumber({}, { message: "Expected salary (to) must be a number" }),
|
|
1016
1019
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1017
1020
|
Type(() => Number)
|
|
1018
1021
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1019
1022
|
__decorateClass([
|
|
1020
|
-
|
|
1023
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1021
1024
|
IsNotEmpty27({ message: "Please enter start date" }),
|
|
1022
1025
|
IsString11({ message: "Start date must be valid" })
|
|
1023
1026
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1024
1027
|
__decorateClass([
|
|
1025
|
-
|
|
1028
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1026
1029
|
IsNotEmpty27({ message: "Please enter end date" }),
|
|
1027
1030
|
IsString11({ message: "End date must be valid" })
|
|
1028
1031
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1029
1032
|
__decorateClass([
|
|
1030
|
-
|
|
1033
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1031
1034
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1032
|
-
|
|
1035
|
+
IsOptional6()
|
|
1033
1036
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1034
1037
|
__decorateClass([
|
|
1035
|
-
|
|
1038
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1036
1039
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1037
|
-
|
|
1040
|
+
IsOptional6()
|
|
1038
1041
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1039
1042
|
__decorateClass([
|
|
1040
|
-
|
|
1043
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1041
1044
|
IsNotEmpty27({ message: "Please enter the academic qualification" }),
|
|
1042
1045
|
IsString11({ message: "Academic qualification must be a string" })
|
|
1043
1046
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1044
1047
|
__decorateClass([
|
|
1045
|
-
|
|
1048
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1046
1049
|
IsNotEmpty27({ message: "Please enter the years of experience" }),
|
|
1047
1050
|
IsString11({ message: "Years of experience must be a string" })
|
|
1048
1051
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1049
1052
|
__decorateClass([
|
|
1050
|
-
|
|
1053
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1051
1054
|
IsNotEmpty27({ message: "Please enter the business industry" }),
|
|
1052
1055
|
IsString11({ message: "Business industry must be a string" })
|
|
1053
1056
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1054
1057
|
|
|
1055
1058
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1056
|
-
import { IsOptional as
|
|
1059
|
+
import { IsOptional as IsOptional7, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
|
|
1057
1060
|
var JobAdditionalCommentDto = class {
|
|
1058
1061
|
};
|
|
1059
1062
|
__decorateClass([
|
|
1060
|
-
|
|
1063
|
+
IsOptional7(),
|
|
1061
1064
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1062
1065
|
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1063
1066
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1139,7 +1142,7 @@ __decorateClass([
|
|
|
1139
1142
|
|
|
1140
1143
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1141
1144
|
import {
|
|
1142
|
-
IsOptional as
|
|
1145
|
+
IsOptional as IsOptional8,
|
|
1143
1146
|
IsString as IsString15,
|
|
1144
1147
|
IsEmail as IsEmail5,
|
|
1145
1148
|
IsNumber as IsNumber2,
|
|
@@ -1189,7 +1192,7 @@ __decorateClass([
|
|
|
1189
1192
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1190
1193
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1191
1194
|
__decorateClass([
|
|
1192
|
-
|
|
1195
|
+
IsOptional8(),
|
|
1193
1196
|
IsNumber2()
|
|
1194
1197
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1195
1198
|
__decorateClass([
|
|
@@ -1217,35 +1220,35 @@ __decorateClass([
|
|
|
1217
1220
|
})
|
|
1218
1221
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1219
1222
|
__decorateClass([
|
|
1220
|
-
|
|
1223
|
+
IsOptional8(),
|
|
1221
1224
|
IsString15()
|
|
1222
1225
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1223
1226
|
__decorateClass([
|
|
1224
|
-
|
|
1227
|
+
IsOptional8(),
|
|
1225
1228
|
IsString15()
|
|
1226
1229
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1227
1230
|
__decorateClass([
|
|
1228
|
-
|
|
1231
|
+
IsOptional8(),
|
|
1229
1232
|
IsString15()
|
|
1230
1233
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1231
1234
|
__decorateClass([
|
|
1232
|
-
|
|
1235
|
+
IsOptional8(),
|
|
1233
1236
|
IsString15()
|
|
1234
1237
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1235
1238
|
__decorateClass([
|
|
1236
|
-
|
|
1239
|
+
IsOptional8(),
|
|
1237
1240
|
IsString15()
|
|
1238
1241
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1239
1242
|
__decorateClass([
|
|
1240
|
-
|
|
1243
|
+
IsOptional8(),
|
|
1241
1244
|
IsString15()
|
|
1242
1245
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1243
1246
|
__decorateClass([
|
|
1244
|
-
|
|
1247
|
+
IsOptional8(),
|
|
1245
1248
|
IsString15()
|
|
1246
1249
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1247
1250
|
__decorateClass([
|
|
1248
|
-
|
|
1251
|
+
IsOptional8(),
|
|
1249
1252
|
IsString15()
|
|
1250
1253
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1251
1254
|
|
|
@@ -1260,8 +1263,8 @@ var BANK_PATTERN = {
|
|
|
1260
1263
|
import {
|
|
1261
1264
|
IsEnum as IsEnum11,
|
|
1262
1265
|
IsNotEmpty as IsNotEmpty32,
|
|
1263
|
-
IsOptional as
|
|
1264
|
-
ValidateIf as
|
|
1266
|
+
IsOptional as IsOptional9,
|
|
1267
|
+
ValidateIf as ValidateIf4
|
|
1265
1268
|
} from "class-validator";
|
|
1266
1269
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1267
1270
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
@@ -1280,7 +1283,7 @@ __decorateClass([
|
|
|
1280
1283
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1281
1284
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1282
1285
|
__decorateClass([
|
|
1283
|
-
|
|
1286
|
+
IsOptional9()
|
|
1284
1287
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1285
1288
|
__decorateClass([
|
|
1286
1289
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1292,23 +1295,23 @@ __decorateClass([
|
|
|
1292
1295
|
IsNotEmpty32({ message: "Please enter Branch Name." })
|
|
1293
1296
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1294
1297
|
__decorateClass([
|
|
1295
|
-
|
|
1298
|
+
ValidateIf4((dto) => dto.accountScope === "DOMESTIC"),
|
|
1296
1299
|
IsNotEmpty32({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1297
1300
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1298
1301
|
__decorateClass([
|
|
1299
|
-
|
|
1302
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1300
1303
|
IsNotEmpty32({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1301
1304
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1302
1305
|
__decorateClass([
|
|
1303
|
-
|
|
1306
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1304
1307
|
IsNotEmpty32({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1305
1308
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1306
1309
|
__decorateClass([
|
|
1307
|
-
|
|
1310
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1308
1311
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1309
1312
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1310
1313
|
__decorateClass([
|
|
1311
|
-
|
|
1314
|
+
IsOptional9()
|
|
1312
1315
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1313
1316
|
__decorateClass([
|
|
1314
1317
|
IsEnum11(BankAccountScope, {
|
|
@@ -1370,7 +1373,7 @@ import {
|
|
|
1370
1373
|
IsEnum as IsEnum13,
|
|
1371
1374
|
IsInt,
|
|
1372
1375
|
IsNotEmpty as IsNotEmpty33,
|
|
1373
|
-
IsOptional as
|
|
1376
|
+
IsOptional as IsOptional10,
|
|
1374
1377
|
IsString as IsString16,
|
|
1375
1378
|
Max,
|
|
1376
1379
|
Min as Min2
|
|
@@ -3780,7 +3783,7 @@ __decorateClass([
|
|
|
3780
3783
|
Max(5, { message: "Rating must be at most 5" })
|
|
3781
3784
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3782
3785
|
__decorateClass([
|
|
3783
|
-
|
|
3786
|
+
IsOptional10(),
|
|
3784
3787
|
IsString16({ message: "Review must be a string" })
|
|
3785
3788
|
], CreateRatingDto.prototype, "review", 2);
|
|
3786
3789
|
|
|
@@ -3797,7 +3800,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3797
3800
|
};
|
|
3798
3801
|
|
|
3799
3802
|
// 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
|
|
3803
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional11 } from "class-validator";
|
|
3801
3804
|
var CreateCompanyRoleDto = class {
|
|
3802
3805
|
};
|
|
3803
3806
|
__decorateClass([
|
|
@@ -3815,12 +3818,12 @@ __decorateClass([
|
|
|
3815
3818
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3816
3819
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3817
3820
|
__decorateClass([
|
|
3818
|
-
|
|
3821
|
+
IsOptional11(),
|
|
3819
3822
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3820
3823
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3821
3824
|
|
|
3822
3825
|
// 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
|
|
3826
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional12 } from "class-validator";
|
|
3824
3827
|
var UpdateCompanyRoleDto = class {
|
|
3825
3828
|
};
|
|
3826
3829
|
__decorateClass([
|
|
@@ -3838,7 +3841,7 @@ __decorateClass([
|
|
|
3838
3841
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3839
3842
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3840
3843
|
__decorateClass([
|
|
3841
|
-
|
|
3844
|
+
IsOptional12(),
|
|
3842
3845
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3843
3846
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3844
3847
|
|
|
@@ -3860,7 +3863,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3860
3863
|
import {
|
|
3861
3864
|
ArrayMinSize,
|
|
3862
3865
|
IsNotEmpty as IsNotEmpty36,
|
|
3863
|
-
IsOptional as
|
|
3866
|
+
IsOptional as IsOptional13,
|
|
3864
3867
|
IsString as IsString19,
|
|
3865
3868
|
MaxLength as MaxLength9,
|
|
3866
3869
|
ValidateNested
|
|
@@ -3869,7 +3872,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
3869
3872
|
var ExperienceDto = class {
|
|
3870
3873
|
};
|
|
3871
3874
|
__decorateClass([
|
|
3872
|
-
|
|
3875
|
+
IsOptional13()
|
|
3873
3876
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3874
3877
|
__decorateClass([
|
|
3875
3878
|
IsNotEmpty36(),
|
|
@@ -3884,7 +3887,7 @@ __decorateClass([
|
|
|
3884
3887
|
IsString19()
|
|
3885
3888
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3886
3889
|
__decorateClass([
|
|
3887
|
-
|
|
3890
|
+
IsOptional13(),
|
|
3888
3891
|
IsString19(),
|
|
3889
3892
|
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3890
3893
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3955,12 +3958,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3955
3958
|
};
|
|
3956
3959
|
|
|
3957
3960
|
// 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
|
|
3961
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3959
3962
|
import { Type as Type3 } from "class-transformer";
|
|
3960
3963
|
var EducationDto = class {
|
|
3961
3964
|
};
|
|
3962
3965
|
__decorateClass([
|
|
3963
|
-
|
|
3966
|
+
IsOptional16()
|
|
3964
3967
|
], EducationDto.prototype, "uuid", 2);
|
|
3965
3968
|
__decorateClass([
|
|
3966
3969
|
IsString22(),
|
|
@@ -3990,12 +3993,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3990
3993
|
};
|
|
3991
3994
|
|
|
3992
3995
|
// 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
|
|
3996
|
+
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
3997
|
import { Type as Type4 } from "class-transformer";
|
|
3995
3998
|
var ProjectDto = class {
|
|
3996
3999
|
};
|
|
3997
4000
|
__decorateClass([
|
|
3998
|
-
|
|
4001
|
+
IsOptional17()
|
|
3999
4002
|
], ProjectDto.prototype, "uuid", 2);
|
|
4000
4003
|
__decorateClass([
|
|
4001
4004
|
IsString23(),
|
|
@@ -4010,33 +4013,33 @@ __decorateClass([
|
|
|
4010
4013
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4011
4014
|
], ProjectDto.prototype, "endDate", 2);
|
|
4012
4015
|
__decorateClass([
|
|
4013
|
-
|
|
4016
|
+
IsOptional17(),
|
|
4014
4017
|
IsString23()
|
|
4015
4018
|
], ProjectDto.prototype, "clientName", 2);
|
|
4016
4019
|
__decorateClass([
|
|
4017
|
-
|
|
4020
|
+
IsOptional17(),
|
|
4018
4021
|
IsString23()
|
|
4019
4022
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4020
4023
|
__decorateClass([
|
|
4021
|
-
|
|
4024
|
+
IsOptional17(),
|
|
4022
4025
|
IsString23(),
|
|
4023
4026
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4024
4027
|
], ProjectDto.prototype, "description", 2);
|
|
4025
4028
|
var CaseStudyDto = class {
|
|
4026
4029
|
};
|
|
4027
4030
|
__decorateClass([
|
|
4028
|
-
|
|
4031
|
+
IsOptional17()
|
|
4029
4032
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4030
4033
|
__decorateClass([
|
|
4031
4034
|
IsString23(),
|
|
4032
4035
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4033
4036
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4034
4037
|
__decorateClass([
|
|
4035
|
-
|
|
4038
|
+
IsOptional17(),
|
|
4036
4039
|
IsString23()
|
|
4037
4040
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4038
4041
|
__decorateClass([
|
|
4039
|
-
|
|
4042
|
+
IsOptional17(),
|
|
4040
4043
|
IsString23(),
|
|
4041
4044
|
MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4042
4045
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4066,7 +4069,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4066
4069
|
};
|
|
4067
4070
|
|
|
4068
4071
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4069
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4072
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional18 } from "class-validator";
|
|
4070
4073
|
import { Type as Type5 } from "class-transformer";
|
|
4071
4074
|
var FreelancerSkillDto = class {
|
|
4072
4075
|
constructor() {
|
|
@@ -4076,19 +4079,19 @@ var FreelancerSkillDto = class {
|
|
|
4076
4079
|
}
|
|
4077
4080
|
};
|
|
4078
4081
|
__decorateClass([
|
|
4079
|
-
|
|
4082
|
+
IsOptional18(),
|
|
4080
4083
|
IsArray8(),
|
|
4081
4084
|
Type5(() => String),
|
|
4082
4085
|
IsString24({ each: true })
|
|
4083
4086
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4084
4087
|
__decorateClass([
|
|
4085
|
-
|
|
4088
|
+
IsOptional18(),
|
|
4086
4089
|
IsArray8(),
|
|
4087
4090
|
Type5(() => String),
|
|
4088
4091
|
IsString24({ each: true })
|
|
4089
4092
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4090
4093
|
__decorateClass([
|
|
4091
|
-
|
|
4094
|
+
IsOptional18(),
|
|
4092
4095
|
IsArray8(),
|
|
4093
4096
|
Type5(() => String),
|
|
4094
4097
|
IsString24({ each: true })
|
|
@@ -4111,7 +4114,7 @@ import {
|
|
|
4111
4114
|
IsString as IsString25,
|
|
4112
4115
|
IsEmail as IsEmail10,
|
|
4113
4116
|
IsBoolean as IsBoolean10,
|
|
4114
|
-
IsOptional as
|
|
4117
|
+
IsOptional as IsOptional19,
|
|
4115
4118
|
IsEnum as IsEnum14,
|
|
4116
4119
|
IsNumber as IsNumber3,
|
|
4117
4120
|
IsUrl as IsUrl3,
|
|
@@ -4120,7 +4123,7 @@ import {
|
|
|
4120
4123
|
IsNotEmpty as IsNotEmpty42,
|
|
4121
4124
|
MinLength as MinLength11,
|
|
4122
4125
|
Matches as Matches8,
|
|
4123
|
-
ValidateIf as
|
|
4126
|
+
ValidateIf as ValidateIf5
|
|
4124
4127
|
} from "class-validator";
|
|
4125
4128
|
import { Type as Type6 } from "class-transformer";
|
|
4126
4129
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -4190,27 +4193,27 @@ __decorateClass([
|
|
|
4190
4193
|
Type6(() => Boolean)
|
|
4191
4194
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4192
4195
|
__decorateClass([
|
|
4193
|
-
|
|
4196
|
+
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
4194
4197
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4195
4198
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4196
4199
|
__decorateClass([
|
|
4197
|
-
|
|
4200
|
+
IsOptional19(),
|
|
4198
4201
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4199
4202
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4200
4203
|
__decorateClass([
|
|
4201
|
-
|
|
4204
|
+
IsOptional19(),
|
|
4202
4205
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4203
4206
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4204
4207
|
__decorateClass([
|
|
4205
|
-
|
|
4208
|
+
IsOptional19(),
|
|
4206
4209
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4207
4210
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4208
4211
|
__decorateClass([
|
|
4209
|
-
|
|
4212
|
+
IsOptional19(),
|
|
4210
4213
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4211
4214
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4212
4215
|
__decorateClass([
|
|
4213
|
-
|
|
4216
|
+
IsOptional19(),
|
|
4214
4217
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4215
4218
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4216
4219
|
|
|
@@ -4219,7 +4222,7 @@ import {
|
|
|
4219
4222
|
IsString as IsString26,
|
|
4220
4223
|
IsEmail as IsEmail11,
|
|
4221
4224
|
IsBoolean as IsBoolean11,
|
|
4222
|
-
IsOptional as
|
|
4225
|
+
IsOptional as IsOptional20,
|
|
4223
4226
|
IsEnum as IsEnum15,
|
|
4224
4227
|
IsNumber as IsNumber4,
|
|
4225
4228
|
IsUrl as IsUrl4,
|
|
@@ -4228,7 +4231,7 @@ import {
|
|
|
4228
4231
|
MinLength as MinLength12,
|
|
4229
4232
|
Matches as Matches9,
|
|
4230
4233
|
IsNotEmpty as IsNotEmpty43,
|
|
4231
|
-
ValidateIf as
|
|
4234
|
+
ValidateIf as ValidateIf6
|
|
4232
4235
|
} from "class-validator";
|
|
4233
4236
|
import { Type as Type7 } from "class-transformer";
|
|
4234
4237
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -4246,24 +4249,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4246
4249
|
var UpdateFreelancerDto = class {
|
|
4247
4250
|
};
|
|
4248
4251
|
__decorateClass([
|
|
4249
|
-
|
|
4252
|
+
IsOptional20(),
|
|
4250
4253
|
IsString26({ message: "Full name must be a string" }),
|
|
4251
4254
|
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4252
4255
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4253
4256
|
__decorateClass([
|
|
4254
|
-
|
|
4257
|
+
IsOptional20(),
|
|
4255
4258
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4256
4259
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4257
4260
|
__decorateClass([
|
|
4258
|
-
|
|
4261
|
+
IsOptional20(),
|
|
4259
4262
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4260
4263
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4261
4264
|
__decorateClass([
|
|
4262
|
-
|
|
4265
|
+
IsOptional20(),
|
|
4263
4266
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4264
4267
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4265
4268
|
__decorateClass([
|
|
4266
|
-
|
|
4269
|
+
IsOptional20(),
|
|
4267
4270
|
MinLength12(6, { message: "Password must be at least 6 characters." }),
|
|
4268
4271
|
MaxLength14(32, { message: "Password must not exceed 32 characters." }),
|
|
4269
4272
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4271,12 +4274,12 @@ __decorateClass([
|
|
|
4271
4274
|
})
|
|
4272
4275
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4273
4276
|
__decorateClass([
|
|
4274
|
-
|
|
4277
|
+
IsOptional20(),
|
|
4275
4278
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4276
4279
|
Type7(() => Boolean)
|
|
4277
4280
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4278
4281
|
__decorateClass([
|
|
4279
|
-
|
|
4282
|
+
IsOptional20(),
|
|
4280
4283
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4281
4284
|
message: `Nature of work must be one of: ${Object.values(
|
|
4282
4285
|
NatureOfWorkEnum2
|
|
@@ -4284,13 +4287,13 @@ __decorateClass([
|
|
|
4284
4287
|
})
|
|
4285
4288
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4286
4289
|
__decorateClass([
|
|
4287
|
-
|
|
4290
|
+
IsOptional20(),
|
|
4288
4291
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4289
4292
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4290
4293
|
Type7(() => Number)
|
|
4291
4294
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4292
4295
|
__decorateClass([
|
|
4293
|
-
|
|
4296
|
+
IsOptional20(),
|
|
4294
4297
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4295
4298
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4296
4299
|
", "
|
|
@@ -4298,32 +4301,32 @@ __decorateClass([
|
|
|
4298
4301
|
})
|
|
4299
4302
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4300
4303
|
__decorateClass([
|
|
4301
|
-
|
|
4304
|
+
IsOptional20(),
|
|
4302
4305
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4303
4306
|
Type7(() => Boolean)
|
|
4304
4307
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4305
4308
|
__decorateClass([
|
|
4306
|
-
|
|
4309
|
+
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
4307
4310
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4308
4311
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4309
4312
|
__decorateClass([
|
|
4310
|
-
|
|
4313
|
+
IsOptional20(),
|
|
4311
4314
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4312
4315
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4313
4316
|
__decorateClass([
|
|
4314
|
-
|
|
4317
|
+
IsOptional20(),
|
|
4315
4318
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4316
4319
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4317
4320
|
__decorateClass([
|
|
4318
|
-
|
|
4321
|
+
IsOptional20(),
|
|
4319
4322
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4320
4323
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4321
4324
|
__decorateClass([
|
|
4322
|
-
|
|
4325
|
+
IsOptional20(),
|
|
4323
4326
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4324
4327
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4325
4328
|
__decorateClass([
|
|
4326
|
-
|
|
4329
|
+
IsOptional20(),
|
|
4327
4330
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4328
4331
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4329
4332
|
|
|
@@ -4344,7 +4347,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4344
4347
|
import {
|
|
4345
4348
|
IsNotEmpty as IsNotEmpty44,
|
|
4346
4349
|
IsEmail as IsEmail12,
|
|
4347
|
-
IsOptional as
|
|
4350
|
+
IsOptional as IsOptional21,
|
|
4348
4351
|
IsString as IsString27,
|
|
4349
4352
|
IsArray as IsArray9,
|
|
4350
4353
|
MinLength as MinLength13,
|
|
@@ -4415,7 +4418,7 @@ __decorateClass([
|
|
|
4415
4418
|
IsString27()
|
|
4416
4419
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4417
4420
|
__decorateClass([
|
|
4418
|
-
|
|
4421
|
+
IsOptional21(),
|
|
4419
4422
|
IsString27()
|
|
4420
4423
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4421
4424
|
|
|
@@ -4432,7 +4435,7 @@ __decorateClass([
|
|
|
4432
4435
|
import {
|
|
4433
4436
|
IsNotEmpty as IsNotEmpty46,
|
|
4434
4437
|
IsEmail as IsEmail13,
|
|
4435
|
-
IsOptional as
|
|
4438
|
+
IsOptional as IsOptional22,
|
|
4436
4439
|
IsString as IsString29,
|
|
4437
4440
|
IsArray as IsArray10,
|
|
4438
4441
|
MinLength as MinLength14,
|
|
@@ -4467,7 +4470,7 @@ __decorateClass([
|
|
|
4467
4470
|
IsEmail13()
|
|
4468
4471
|
], UpdateClientDto.prototype, "email", 2);
|
|
4469
4472
|
__decorateClass([
|
|
4470
|
-
|
|
4473
|
+
IsOptional22(),
|
|
4471
4474
|
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
4472
4475
|
MaxLength16(32, { message: "Password must not exceed 32 characters." }),
|
|
4473
4476
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4499,7 +4502,7 @@ __decorateClass([
|
|
|
4499
4502
|
IsString29()
|
|
4500
4503
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4501
4504
|
__decorateClass([
|
|
4502
|
-
|
|
4505
|
+
IsOptional22(),
|
|
4503
4506
|
IsString29()
|
|
4504
4507
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4505
4508
|
|
|
@@ -4510,7 +4513,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4510
4513
|
};
|
|
4511
4514
|
|
|
4512
4515
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4513
|
-
import { IsOptional as
|
|
4516
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4514
4517
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4515
4518
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4516
4519
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4521,7 +4524,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4521
4524
|
var FreelancerDeclarationDto = class {
|
|
4522
4525
|
};
|
|
4523
4526
|
__decorateClass([
|
|
4524
|
-
|
|
4527
|
+
IsOptional23(),
|
|
4525
4528
|
IsString30({ message: "UUID must be a string" })
|
|
4526
4529
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4527
4530
|
__decorateClass([
|
|
@@ -4545,35 +4548,35 @@ var CMS_PATTERNS = {
|
|
|
4545
4548
|
};
|
|
4546
4549
|
|
|
4547
4550
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4548
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4551
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional24 } from "class-validator";
|
|
4549
4552
|
var CreateCmsDto = class {
|
|
4550
4553
|
};
|
|
4551
4554
|
__decorateClass([
|
|
4552
4555
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4553
4556
|
], CreateCmsDto.prototype, "title", 2);
|
|
4554
4557
|
__decorateClass([
|
|
4555
|
-
|
|
4558
|
+
IsOptional24()
|
|
4556
4559
|
], CreateCmsDto.prototype, "content", 2);
|
|
4557
4560
|
__decorateClass([
|
|
4558
|
-
|
|
4561
|
+
IsOptional24(),
|
|
4559
4562
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4560
4563
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4561
4564
|
|
|
4562
4565
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4563
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4566
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional25 } from "class-validator";
|
|
4564
4567
|
var UpdateCmsDto = class {
|
|
4565
4568
|
};
|
|
4566
4569
|
__decorateClass([
|
|
4567
|
-
|
|
4570
|
+
IsOptional25()
|
|
4568
4571
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4569
4572
|
__decorateClass([
|
|
4570
4573
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4571
4574
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4572
4575
|
__decorateClass([
|
|
4573
|
-
|
|
4576
|
+
IsOptional25()
|
|
4574
4577
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4575
4578
|
__decorateClass([
|
|
4576
|
-
|
|
4579
|
+
IsOptional25(),
|
|
4577
4580
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4578
4581
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4579
4582
|
|
|
@@ -4606,7 +4609,7 @@ import {
|
|
|
4606
4609
|
IsString as IsString31,
|
|
4607
4610
|
IsEnum as IsEnum19,
|
|
4608
4611
|
IsInt as IsInt6,
|
|
4609
|
-
IsOptional as
|
|
4612
|
+
IsOptional as IsOptional26,
|
|
4610
4613
|
IsArray as IsArray11,
|
|
4611
4614
|
IsDateString as IsDateString4,
|
|
4612
4615
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4633,7 +4636,7 @@ __decorateClass([
|
|
|
4633
4636
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4634
4637
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4635
4638
|
__decorateClass([
|
|
4636
|
-
|
|
4639
|
+
IsOptional26(),
|
|
4637
4640
|
IsString31({ message: "Note must be a string." })
|
|
4638
4641
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4639
4642
|
__decorateClass([
|
|
@@ -4683,7 +4686,7 @@ __decorateClass([
|
|
|
4683
4686
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4684
4687
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4685
4688
|
__decorateClass([
|
|
4686
|
-
|
|
4689
|
+
IsOptional26(),
|
|
4687
4690
|
IsString31({ message: "Additional comment must be a string." })
|
|
4688
4691
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4689
4692
|
__decorateClass([
|
|
@@ -4705,7 +4708,7 @@ import {
|
|
|
4705
4708
|
IsString as IsString32,
|
|
4706
4709
|
IsEnum as IsEnum20,
|
|
4707
4710
|
IsInt as IsInt7,
|
|
4708
|
-
IsOptional as
|
|
4711
|
+
IsOptional as IsOptional27,
|
|
4709
4712
|
IsArray as IsArray12,
|
|
4710
4713
|
IsDateString as IsDateString5,
|
|
4711
4714
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4732,7 +4735,7 @@ __decorateClass([
|
|
|
4732
4735
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4733
4736
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4734
4737
|
__decorateClass([
|
|
4735
|
-
|
|
4738
|
+
IsOptional27(),
|
|
4736
4739
|
IsString32({ message: "Note must be a string." })
|
|
4737
4740
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4738
4741
|
__decorateClass([
|
|
@@ -4782,7 +4785,7 @@ __decorateClass([
|
|
|
4782
4785
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4783
4786
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4784
4787
|
__decorateClass([
|
|
4785
|
-
|
|
4788
|
+
IsOptional27(),
|
|
4786
4789
|
IsString32({ message: "Additional comment must be a string." })
|
|
4787
4790
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4788
4791
|
__decorateClass([
|
|
@@ -4805,7 +4808,7 @@ var LEAD_PATTERN = {
|
|
|
4805
4808
|
};
|
|
4806
4809
|
|
|
4807
4810
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4808
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
4811
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional28, IsEnum as IsEnum21 } from "class-validator";
|
|
4809
4812
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4810
4813
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4811
4814
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4826,7 +4829,7 @@ __decorateClass([
|
|
|
4826
4829
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4827
4830
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4828
4831
|
__decorateClass([
|
|
4829
|
-
|
|
4832
|
+
IsOptional28(),
|
|
4830
4833
|
IsString33({ message: "Description must be a string" })
|
|
4831
4834
|
], CreateLeadDto.prototype, "description", 2);
|
|
4832
4835
|
__decorateClass([
|
|
@@ -4850,7 +4853,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4850
4853
|
};
|
|
4851
4854
|
|
|
4852
4855
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4853
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
4856
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29, IsString as IsString34 } from "class-validator";
|
|
4854
4857
|
var CreateAdminRoleDto = class {
|
|
4855
4858
|
};
|
|
4856
4859
|
__decorateClass([
|
|
@@ -4858,12 +4861,12 @@ __decorateClass([
|
|
|
4858
4861
|
IsString34({ message: "Role name must be a string." })
|
|
4859
4862
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4860
4863
|
__decorateClass([
|
|
4861
|
-
|
|
4864
|
+
IsOptional29(),
|
|
4862
4865
|
IsString34({ message: "Role description must be a string." })
|
|
4863
4866
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4864
4867
|
|
|
4865
4868
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4866
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
4869
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional30, IsString as IsString35 } from "class-validator";
|
|
4867
4870
|
var UpdateAdminRoleDto = class {
|
|
4868
4871
|
};
|
|
4869
4872
|
__decorateClass([
|
|
@@ -4871,11 +4874,11 @@ __decorateClass([
|
|
|
4871
4874
|
IsString35({ message: "Role name must be a string." })
|
|
4872
4875
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4873
4876
|
__decorateClass([
|
|
4874
|
-
|
|
4877
|
+
IsOptional30(),
|
|
4875
4878
|
IsString35({ message: "Role description must be a string." })
|
|
4876
4879
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4877
4880
|
__decorateClass([
|
|
4878
|
-
|
|
4881
|
+
IsOptional30(),
|
|
4879
4882
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
4880
4883
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4881
4884
|
|