@experts_hub/shared 1.0.325 → 1.0.326
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/index.mjs +153 -143
- package/dist/modules/user/subadmin/dto/update-subadmin.dto.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -934,6 +934,7 @@ __decorateClass([
|
|
|
934
934
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
935
935
|
|
|
936
936
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
937
|
+
var import_types = require("class-transformer/types");
|
|
937
938
|
var import_class_validator27 = require("class-validator");
|
|
938
939
|
var UpdateSubAdminDto = class {
|
|
939
940
|
};
|
|
@@ -956,7 +957,13 @@ __decorateClass([
|
|
|
956
957
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
957
958
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
958
959
|
__decorateClass([
|
|
959
|
-
(0, import_class_validator27.
|
|
960
|
+
(0, import_class_validator27.IsOptional)(),
|
|
961
|
+
(0, import_types.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
962
|
+
(0, import_class_validator27.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
963
|
+
(0, import_class_validator27.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
964
|
+
(0, import_class_validator27.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
965
|
+
message: "Password must include letters, numbers and symbols."
|
|
966
|
+
})
|
|
960
967
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
961
968
|
__decorateClass([
|
|
962
969
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please Select Roles." })
|
|
@@ -4307,6 +4314,7 @@ __decorateClass([
|
|
|
4307
4314
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4308
4315
|
__decorateClass([
|
|
4309
4316
|
(0, import_class_validator52.IsOptional)(),
|
|
4317
|
+
(0, import_class_transformer7.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4310
4318
|
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4311
4319
|
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4312
4320
|
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4462,6 +4470,7 @@ __decorateClass([
|
|
|
4462
4470
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4463
4471
|
|
|
4464
4472
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4473
|
+
var import_types2 = require("class-transformer/types");
|
|
4465
4474
|
var import_class_validator55 = require("class-validator");
|
|
4466
4475
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4467
4476
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4491,6 +4500,7 @@ __decorateClass([
|
|
|
4491
4500
|
], UpdateClientDto.prototype, "email", 2);
|
|
4492
4501
|
__decorateClass([
|
|
4493
4502
|
(0, import_class_validator55.IsOptional)(),
|
|
4503
|
+
(0, import_types2.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4494
4504
|
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4495
4505
|
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4496
4506
|
(0, import_class_validator55.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
package/dist/index.mjs
CHANGED
|
@@ -755,7 +755,8 @@ __decorateClass([
|
|
|
755
755
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
756
756
|
|
|
757
757
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
758
|
-
import {
|
|
758
|
+
import { Transform } from "class-transformer/types";
|
|
759
|
+
import { IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional5, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
759
760
|
var UpdateSubAdminDto = class {
|
|
760
761
|
};
|
|
761
762
|
__decorateClass([
|
|
@@ -777,7 +778,13 @@ __decorateClass([
|
|
|
777
778
|
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
778
779
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
779
780
|
__decorateClass([
|
|
780
|
-
|
|
781
|
+
IsOptional5(),
|
|
782
|
+
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
783
|
+
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
784
|
+
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
785
|
+
Matches5(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
786
|
+
message: "Password must include letters, numbers and symbols."
|
|
787
|
+
})
|
|
781
788
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
782
789
|
__decorateClass([
|
|
783
790
|
IsNotEmpty23({ message: "Please Select Roles." })
|
|
@@ -800,7 +807,7 @@ import {
|
|
|
800
807
|
IsEmail as IsEmail4,
|
|
801
808
|
Length as Length2,
|
|
802
809
|
IsUrl as IsUrl2,
|
|
803
|
-
IsOptional as
|
|
810
|
+
IsOptional as IsOptional6,
|
|
804
811
|
ValidateIf as ValidateIf2
|
|
805
812
|
} from "class-validator";
|
|
806
813
|
var UpdateCompanyProfileDto = class {
|
|
@@ -813,7 +820,7 @@ __decorateClass([
|
|
|
813
820
|
})
|
|
814
821
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
815
822
|
__decorateClass([
|
|
816
|
-
|
|
823
|
+
IsOptional6(),
|
|
817
824
|
ValidateIf2((o) => o.webSite !== ""),
|
|
818
825
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
819
826
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -838,23 +845,23 @@ __decorateClass([
|
|
|
838
845
|
IsEmail4()
|
|
839
846
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
840
847
|
__decorateClass([
|
|
841
|
-
|
|
848
|
+
IsOptional6(),
|
|
842
849
|
IsString9({ message: "About company must be a string." })
|
|
843
850
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
844
851
|
|
|
845
852
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
846
853
|
import {
|
|
847
854
|
IsString as IsString10,
|
|
848
|
-
MinLength as
|
|
849
|
-
Matches as
|
|
855
|
+
MinLength as MinLength6,
|
|
856
|
+
Matches as Matches7,
|
|
850
857
|
IsNotEmpty as IsNotEmpty25
|
|
851
858
|
} from "class-validator";
|
|
852
859
|
var ClientChangePasswordDto = class {
|
|
853
860
|
};
|
|
854
861
|
__decorateClass([
|
|
855
862
|
IsString10(),
|
|
856
|
-
|
|
857
|
-
|
|
863
|
+
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
864
|
+
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
858
865
|
message: "Password must contain at least one uppercase letter and one number."
|
|
859
866
|
})
|
|
860
867
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -874,7 +881,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
874
881
|
// src/modules/question/dto/create-question.dto.ts
|
|
875
882
|
import {
|
|
876
883
|
IsNotEmpty as IsNotEmpty26,
|
|
877
|
-
IsOptional as
|
|
884
|
+
IsOptional as IsOptional7,
|
|
878
885
|
IsBoolean as IsBoolean2
|
|
879
886
|
} from "class-validator";
|
|
880
887
|
var CreateQuestionDto = class {
|
|
@@ -892,7 +899,7 @@ __decorateClass([
|
|
|
892
899
|
IsNotEmpty26({ message: "Please enter options." })
|
|
893
900
|
], CreateQuestionDto.prototype, "options", 2);
|
|
894
901
|
__decorateClass([
|
|
895
|
-
|
|
902
|
+
IsOptional7(),
|
|
896
903
|
IsBoolean2({ message: "Whether the question status active" })
|
|
897
904
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
898
905
|
|
|
@@ -928,7 +935,7 @@ import {
|
|
|
928
935
|
IsArray,
|
|
929
936
|
ArrayNotEmpty,
|
|
930
937
|
IsNumber,
|
|
931
|
-
IsOptional as
|
|
938
|
+
IsOptional as IsOptional8,
|
|
932
939
|
IsEnum as IsEnum8,
|
|
933
940
|
Min,
|
|
934
941
|
ValidateIf as ValidateIf3
|
|
@@ -952,7 +959,7 @@ var JobBasicInformationDto = class {
|
|
|
952
959
|
}
|
|
953
960
|
};
|
|
954
961
|
__decorateClass([
|
|
955
|
-
|
|
962
|
+
IsOptional8(),
|
|
956
963
|
Type(() => Boolean)
|
|
957
964
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
958
965
|
__decorateClass([
|
|
@@ -960,7 +967,7 @@ __decorateClass([
|
|
|
960
967
|
IsString11({ message: "Job role must be a string" })
|
|
961
968
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
962
969
|
__decorateClass([
|
|
963
|
-
|
|
970
|
+
IsOptional8(),
|
|
964
971
|
IsString11({ message: "Note must be a string" })
|
|
965
972
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
966
973
|
__decorateClass([
|
|
@@ -1036,12 +1043,12 @@ __decorateClass([
|
|
|
1036
1043
|
__decorateClass([
|
|
1037
1044
|
ValidateIf3((o) => !o.isDraft),
|
|
1038
1045
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1039
|
-
|
|
1046
|
+
IsOptional8()
|
|
1040
1047
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1041
1048
|
__decorateClass([
|
|
1042
1049
|
ValidateIf3((o) => !o.isDraft),
|
|
1043
1050
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1044
|
-
|
|
1051
|
+
IsOptional8()
|
|
1045
1052
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1046
1053
|
__decorateClass([
|
|
1047
1054
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1060,23 +1067,23 @@ __decorateClass([
|
|
|
1060
1067
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1061
1068
|
|
|
1062
1069
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1063
|
-
import { IsOptional as
|
|
1070
|
+
import { IsOptional as IsOptional9, IsString as IsString12, MaxLength as MaxLength6 } from "class-validator";
|
|
1064
1071
|
var JobAdditionalCommentDto = class {
|
|
1065
1072
|
};
|
|
1066
1073
|
__decorateClass([
|
|
1067
|
-
|
|
1074
|
+
IsOptional9(),
|
|
1068
1075
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1069
|
-
|
|
1076
|
+
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1070
1077
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1071
1078
|
|
|
1072
1079
|
// src/modules/job/dto/job-description.dto.ts
|
|
1073
|
-
import { IsString as IsString13, IsNotEmpty as IsNotEmpty28, MaxLength as
|
|
1080
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty28, MaxLength as MaxLength7 } from "class-validator";
|
|
1074
1081
|
var JobDescriptionDto = class {
|
|
1075
1082
|
};
|
|
1076
1083
|
__decorateClass([
|
|
1077
1084
|
IsNotEmpty28({ message: "Please enter job description" }),
|
|
1078
1085
|
IsString13({ message: "Description must be a string" }),
|
|
1079
|
-
|
|
1086
|
+
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1080
1087
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1081
1088
|
|
|
1082
1089
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -1124,9 +1131,9 @@ var PROFILE_PATTERN = {
|
|
|
1124
1131
|
import {
|
|
1125
1132
|
IsString as IsString14,
|
|
1126
1133
|
IsNotEmpty as IsNotEmpty30,
|
|
1127
|
-
MaxLength as
|
|
1128
|
-
MinLength as
|
|
1129
|
-
Matches as
|
|
1134
|
+
MaxLength as MaxLength8,
|
|
1135
|
+
MinLength as MinLength7,
|
|
1136
|
+
Matches as Matches8
|
|
1130
1137
|
} from "class-validator";
|
|
1131
1138
|
var FreelancerChangePasswordDto = class {
|
|
1132
1139
|
};
|
|
@@ -1137,16 +1144,16 @@ __decorateClass([
|
|
|
1137
1144
|
__decorateClass([
|
|
1138
1145
|
IsNotEmpty30({ message: "Please enter New Password." }),
|
|
1139
1146
|
IsString14(),
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1147
|
+
MinLength7(6),
|
|
1148
|
+
MaxLength8(32),
|
|
1149
|
+
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1143
1150
|
message: "New Password must include letters, numbers and symbols."
|
|
1144
1151
|
})
|
|
1145
1152
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1146
1153
|
|
|
1147
1154
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1148
1155
|
import {
|
|
1149
|
-
IsOptional as
|
|
1156
|
+
IsOptional as IsOptional10,
|
|
1150
1157
|
IsString as IsString15,
|
|
1151
1158
|
IsEmail as IsEmail5,
|
|
1152
1159
|
IsNumber as IsNumber2,
|
|
@@ -1196,7 +1203,7 @@ __decorateClass([
|
|
|
1196
1203
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1197
1204
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1198
1205
|
__decorateClass([
|
|
1199
|
-
|
|
1206
|
+
IsOptional10(),
|
|
1200
1207
|
IsNumber2()
|
|
1201
1208
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1202
1209
|
__decorateClass([
|
|
@@ -1224,35 +1231,35 @@ __decorateClass([
|
|
|
1224
1231
|
})
|
|
1225
1232
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1226
1233
|
__decorateClass([
|
|
1227
|
-
|
|
1234
|
+
IsOptional10(),
|
|
1228
1235
|
IsString15()
|
|
1229
1236
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1230
1237
|
__decorateClass([
|
|
1231
|
-
|
|
1238
|
+
IsOptional10(),
|
|
1232
1239
|
IsString15()
|
|
1233
1240
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1234
1241
|
__decorateClass([
|
|
1235
|
-
|
|
1242
|
+
IsOptional10(),
|
|
1236
1243
|
IsString15()
|
|
1237
1244
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1238
1245
|
__decorateClass([
|
|
1239
|
-
|
|
1246
|
+
IsOptional10(),
|
|
1240
1247
|
IsString15()
|
|
1241
1248
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1242
1249
|
__decorateClass([
|
|
1243
|
-
|
|
1250
|
+
IsOptional10(),
|
|
1244
1251
|
IsString15()
|
|
1245
1252
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1246
1253
|
__decorateClass([
|
|
1247
|
-
|
|
1254
|
+
IsOptional10(),
|
|
1248
1255
|
IsString15()
|
|
1249
1256
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1250
1257
|
__decorateClass([
|
|
1251
|
-
|
|
1258
|
+
IsOptional10(),
|
|
1252
1259
|
IsString15()
|
|
1253
1260
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1254
1261
|
__decorateClass([
|
|
1255
|
-
|
|
1262
|
+
IsOptional10(),
|
|
1256
1263
|
IsString15()
|
|
1257
1264
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1258
1265
|
|
|
@@ -1267,7 +1274,7 @@ var BANK_PATTERN = {
|
|
|
1267
1274
|
import {
|
|
1268
1275
|
IsEnum as IsEnum11,
|
|
1269
1276
|
IsNotEmpty as IsNotEmpty32,
|
|
1270
|
-
IsOptional as
|
|
1277
|
+
IsOptional as IsOptional11,
|
|
1271
1278
|
ValidateIf as ValidateIf4
|
|
1272
1279
|
} from "class-validator";
|
|
1273
1280
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1287,7 +1294,7 @@ __decorateClass([
|
|
|
1287
1294
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1288
1295
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1289
1296
|
__decorateClass([
|
|
1290
|
-
|
|
1297
|
+
IsOptional11()
|
|
1291
1298
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1292
1299
|
__decorateClass([
|
|
1293
1300
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1315,7 +1322,7 @@ __decorateClass([
|
|
|
1315
1322
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1316
1323
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1317
1324
|
__decorateClass([
|
|
1318
|
-
|
|
1325
|
+
IsOptional11()
|
|
1319
1326
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1320
1327
|
__decorateClass([
|
|
1321
1328
|
IsEnum11(BankAccountScope, {
|
|
@@ -1377,7 +1384,7 @@ import {
|
|
|
1377
1384
|
IsEnum as IsEnum13,
|
|
1378
1385
|
IsInt,
|
|
1379
1386
|
IsNotEmpty as IsNotEmpty33,
|
|
1380
|
-
IsOptional as
|
|
1387
|
+
IsOptional as IsOptional12,
|
|
1381
1388
|
IsString as IsString16,
|
|
1382
1389
|
Max,
|
|
1383
1390
|
Min as Min2
|
|
@@ -3913,7 +3920,7 @@ __decorateClass([
|
|
|
3913
3920
|
Max(5, { message: "Rating must be at most 5" })
|
|
3914
3921
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3915
3922
|
__decorateClass([
|
|
3916
|
-
|
|
3923
|
+
IsOptional12(),
|
|
3917
3924
|
IsString16({ message: "Review must be a string" })
|
|
3918
3925
|
], CreateRatingDto.prototype, "review", 2);
|
|
3919
3926
|
|
|
@@ -3930,7 +3937,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3930
3937
|
};
|
|
3931
3938
|
|
|
3932
3939
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3933
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
3940
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional13 } from "class-validator";
|
|
3934
3941
|
var CreateCompanyRoleDto = class {
|
|
3935
3942
|
};
|
|
3936
3943
|
__decorateClass([
|
|
@@ -3948,12 +3955,12 @@ __decorateClass([
|
|
|
3948
3955
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3949
3956
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3950
3957
|
__decorateClass([
|
|
3951
|
-
|
|
3958
|
+
IsOptional13(),
|
|
3952
3959
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3953
3960
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3954
3961
|
|
|
3955
3962
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3956
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
3963
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional14 } from "class-validator";
|
|
3957
3964
|
var UpdateCompanyRoleDto = class {
|
|
3958
3965
|
};
|
|
3959
3966
|
__decorateClass([
|
|
@@ -3971,7 +3978,7 @@ __decorateClass([
|
|
|
3971
3978
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3972
3979
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3973
3980
|
__decorateClass([
|
|
3974
|
-
|
|
3981
|
+
IsOptional14(),
|
|
3975
3982
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3976
3983
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3977
3984
|
|
|
@@ -3993,16 +4000,16 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3993
4000
|
import {
|
|
3994
4001
|
ArrayMinSize,
|
|
3995
4002
|
IsNotEmpty as IsNotEmpty36,
|
|
3996
|
-
IsOptional as
|
|
4003
|
+
IsOptional as IsOptional15,
|
|
3997
4004
|
IsString as IsString19,
|
|
3998
|
-
MaxLength as
|
|
4005
|
+
MaxLength as MaxLength10,
|
|
3999
4006
|
ValidateNested
|
|
4000
4007
|
} from "class-validator";
|
|
4001
4008
|
import { Type as Type2 } from "class-transformer";
|
|
4002
4009
|
var ExperienceDto = class {
|
|
4003
4010
|
};
|
|
4004
4011
|
__decorateClass([
|
|
4005
|
-
|
|
4012
|
+
IsOptional15()
|
|
4006
4013
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4007
4014
|
__decorateClass([
|
|
4008
4015
|
IsNotEmpty36(),
|
|
@@ -4017,9 +4024,9 @@ __decorateClass([
|
|
|
4017
4024
|
IsString19()
|
|
4018
4025
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4019
4026
|
__decorateClass([
|
|
4020
|
-
|
|
4027
|
+
IsOptional15(),
|
|
4021
4028
|
IsString19(),
|
|
4022
|
-
|
|
4029
|
+
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4023
4030
|
], ExperienceDto.prototype, "description", 2);
|
|
4024
4031
|
var FreelancerExperienceDto = class {
|
|
4025
4032
|
};
|
|
@@ -4088,12 +4095,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4088
4095
|
};
|
|
4089
4096
|
|
|
4090
4097
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4091
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
4098
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional18, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4092
4099
|
import { Type as Type3 } from "class-transformer";
|
|
4093
4100
|
var EducationDto = class {
|
|
4094
4101
|
};
|
|
4095
4102
|
__decorateClass([
|
|
4096
|
-
|
|
4103
|
+
IsOptional18()
|
|
4097
4104
|
], EducationDto.prototype, "uuid", 2);
|
|
4098
4105
|
__decorateClass([
|
|
4099
4106
|
IsString22(),
|
|
@@ -4123,12 +4130,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4123
4130
|
};
|
|
4124
4131
|
|
|
4125
4132
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4126
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
4133
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional19, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4127
4134
|
import { Type as Type4 } from "class-transformer";
|
|
4128
4135
|
var ProjectDto = class {
|
|
4129
4136
|
};
|
|
4130
4137
|
__decorateClass([
|
|
4131
|
-
|
|
4138
|
+
IsOptional19()
|
|
4132
4139
|
], ProjectDto.prototype, "uuid", 2);
|
|
4133
4140
|
__decorateClass([
|
|
4134
4141
|
IsString23(),
|
|
@@ -4143,35 +4150,35 @@ __decorateClass([
|
|
|
4143
4150
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4144
4151
|
], ProjectDto.prototype, "endDate", 2);
|
|
4145
4152
|
__decorateClass([
|
|
4146
|
-
|
|
4153
|
+
IsOptional19(),
|
|
4147
4154
|
IsString23()
|
|
4148
4155
|
], ProjectDto.prototype, "clientName", 2);
|
|
4149
4156
|
__decorateClass([
|
|
4150
|
-
|
|
4157
|
+
IsOptional19(),
|
|
4151
4158
|
IsString23()
|
|
4152
4159
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4153
4160
|
__decorateClass([
|
|
4154
|
-
|
|
4161
|
+
IsOptional19(),
|
|
4155
4162
|
IsString23(),
|
|
4156
|
-
|
|
4163
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4157
4164
|
], ProjectDto.prototype, "description", 2);
|
|
4158
4165
|
var CaseStudyDto = class {
|
|
4159
4166
|
};
|
|
4160
4167
|
__decorateClass([
|
|
4161
|
-
|
|
4168
|
+
IsOptional19()
|
|
4162
4169
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4163
4170
|
__decorateClass([
|
|
4164
4171
|
IsString23(),
|
|
4165
4172
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4166
4173
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4167
4174
|
__decorateClass([
|
|
4168
|
-
|
|
4175
|
+
IsOptional19(),
|
|
4169
4176
|
IsString23()
|
|
4170
4177
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4171
4178
|
__decorateClass([
|
|
4172
|
-
|
|
4179
|
+
IsOptional19(),
|
|
4173
4180
|
IsString23(),
|
|
4174
|
-
|
|
4181
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4175
4182
|
], CaseStudyDto.prototype, "description", 2);
|
|
4176
4183
|
var FreelancerProjectDto = class {
|
|
4177
4184
|
};
|
|
@@ -4199,7 +4206,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4199
4206
|
};
|
|
4200
4207
|
|
|
4201
4208
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4202
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4209
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional20 } from "class-validator";
|
|
4203
4210
|
import { Type as Type5 } from "class-transformer";
|
|
4204
4211
|
var FreelancerSkillDto = class {
|
|
4205
4212
|
constructor() {
|
|
@@ -4209,19 +4216,19 @@ var FreelancerSkillDto = class {
|
|
|
4209
4216
|
}
|
|
4210
4217
|
};
|
|
4211
4218
|
__decorateClass([
|
|
4212
|
-
|
|
4219
|
+
IsOptional20(),
|
|
4213
4220
|
IsArray8(),
|
|
4214
4221
|
Type5(() => String),
|
|
4215
4222
|
IsString24({ each: true })
|
|
4216
4223
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4217
4224
|
__decorateClass([
|
|
4218
|
-
|
|
4225
|
+
IsOptional20(),
|
|
4219
4226
|
IsArray8(),
|
|
4220
4227
|
Type5(() => String),
|
|
4221
4228
|
IsString24({ each: true })
|
|
4222
4229
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4223
4230
|
__decorateClass([
|
|
4224
|
-
|
|
4231
|
+
IsOptional20(),
|
|
4225
4232
|
IsArray8(),
|
|
4226
4233
|
Type5(() => String),
|
|
4227
4234
|
IsString24({ each: true })
|
|
@@ -4244,15 +4251,15 @@ import {
|
|
|
4244
4251
|
IsString as IsString25,
|
|
4245
4252
|
IsEmail as IsEmail10,
|
|
4246
4253
|
IsBoolean as IsBoolean10,
|
|
4247
|
-
IsOptional as
|
|
4254
|
+
IsOptional as IsOptional21,
|
|
4248
4255
|
IsEnum as IsEnum14,
|
|
4249
4256
|
IsNumber as IsNumber3,
|
|
4250
4257
|
IsUrl as IsUrl3,
|
|
4251
4258
|
Min as Min3,
|
|
4252
|
-
MaxLength as
|
|
4259
|
+
MaxLength as MaxLength14,
|
|
4253
4260
|
IsNotEmpty as IsNotEmpty42,
|
|
4254
|
-
MinLength as
|
|
4255
|
-
Matches as
|
|
4261
|
+
MinLength as MinLength12,
|
|
4262
|
+
Matches as Matches9,
|
|
4256
4263
|
ValidateIf as ValidateIf5
|
|
4257
4264
|
} from "class-validator";
|
|
4258
4265
|
import { Type as Type6 } from "class-transformer";
|
|
@@ -4272,7 +4279,7 @@ var CreateFreelancerDto = class {
|
|
|
4272
4279
|
};
|
|
4273
4280
|
__decorateClass([
|
|
4274
4281
|
IsString25({ message: "Full name must be a string" }),
|
|
4275
|
-
|
|
4282
|
+
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4276
4283
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4277
4284
|
__decorateClass([
|
|
4278
4285
|
IsEmail10({}, { message: "Invalid email address" })
|
|
@@ -4285,9 +4292,9 @@ __decorateClass([
|
|
|
4285
4292
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4286
4293
|
__decorateClass([
|
|
4287
4294
|
IsNotEmpty42({ message: "Please enter password." }),
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4295
|
+
MinLength12(6),
|
|
4296
|
+
MaxLength14(32),
|
|
4297
|
+
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4291
4298
|
message: "Password must include letters, numbers and symbols."
|
|
4292
4299
|
})
|
|
4293
4300
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
@@ -4327,23 +4334,23 @@ __decorateClass([
|
|
|
4327
4334
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4328
4335
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4329
4336
|
__decorateClass([
|
|
4330
|
-
|
|
4337
|
+
IsOptional21(),
|
|
4331
4338
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4332
4339
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4333
4340
|
__decorateClass([
|
|
4334
|
-
|
|
4341
|
+
IsOptional21(),
|
|
4335
4342
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4336
4343
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4337
4344
|
__decorateClass([
|
|
4338
|
-
|
|
4345
|
+
IsOptional21(),
|
|
4339
4346
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4340
4347
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4341
4348
|
__decorateClass([
|
|
4342
|
-
|
|
4349
|
+
IsOptional21(),
|
|
4343
4350
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4344
4351
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4345
4352
|
__decorateClass([
|
|
4346
|
-
|
|
4353
|
+
IsOptional21(),
|
|
4347
4354
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4348
4355
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4349
4356
|
|
|
@@ -4352,18 +4359,18 @@ import {
|
|
|
4352
4359
|
IsString as IsString26,
|
|
4353
4360
|
IsEmail as IsEmail11,
|
|
4354
4361
|
IsBoolean as IsBoolean11,
|
|
4355
|
-
IsOptional as
|
|
4362
|
+
IsOptional as IsOptional22,
|
|
4356
4363
|
IsEnum as IsEnum15,
|
|
4357
4364
|
IsNumber as IsNumber4,
|
|
4358
4365
|
IsUrl as IsUrl4,
|
|
4359
4366
|
Min as Min4,
|
|
4360
|
-
MaxLength as
|
|
4361
|
-
MinLength as
|
|
4362
|
-
Matches as
|
|
4367
|
+
MaxLength as MaxLength15,
|
|
4368
|
+
MinLength as MinLength13,
|
|
4369
|
+
Matches as Matches10,
|
|
4363
4370
|
IsNotEmpty as IsNotEmpty43,
|
|
4364
4371
|
ValidateIf as ValidateIf6
|
|
4365
4372
|
} from "class-validator";
|
|
4366
|
-
import { Type as Type7 } from "class-transformer";
|
|
4373
|
+
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
4367
4374
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4368
4375
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4369
4376
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4379,37 +4386,38 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4379
4386
|
var UpdateFreelancerDto = class {
|
|
4380
4387
|
};
|
|
4381
4388
|
__decorateClass([
|
|
4382
|
-
|
|
4389
|
+
IsOptional22(),
|
|
4383
4390
|
IsString26({ message: "Full name must be a string" }),
|
|
4384
|
-
|
|
4391
|
+
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4385
4392
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4386
4393
|
__decorateClass([
|
|
4387
|
-
|
|
4394
|
+
IsOptional22(),
|
|
4388
4395
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4389
4396
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4390
4397
|
__decorateClass([
|
|
4391
|
-
|
|
4398
|
+
IsOptional22(),
|
|
4392
4399
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4393
4400
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4394
4401
|
__decorateClass([
|
|
4395
|
-
|
|
4402
|
+
IsOptional22(),
|
|
4396
4403
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4397
4404
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4398
4405
|
__decorateClass([
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4406
|
+
IsOptional22(),
|
|
4407
|
+
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4408
|
+
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4409
|
+
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
4410
|
+
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4403
4411
|
message: "Password must include letters, numbers and symbols."
|
|
4404
4412
|
})
|
|
4405
4413
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4406
4414
|
__decorateClass([
|
|
4407
|
-
|
|
4415
|
+
IsOptional22(),
|
|
4408
4416
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4409
4417
|
Type7(() => Boolean)
|
|
4410
4418
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4411
4419
|
__decorateClass([
|
|
4412
|
-
|
|
4420
|
+
IsOptional22(),
|
|
4413
4421
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4414
4422
|
message: `Nature of work must be one of: ${Object.values(
|
|
4415
4423
|
NatureOfWorkEnum2
|
|
@@ -4417,13 +4425,13 @@ __decorateClass([
|
|
|
4417
4425
|
})
|
|
4418
4426
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4419
4427
|
__decorateClass([
|
|
4420
|
-
|
|
4428
|
+
IsOptional22(),
|
|
4421
4429
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4422
4430
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4423
4431
|
Type7(() => Number)
|
|
4424
4432
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4425
4433
|
__decorateClass([
|
|
4426
|
-
|
|
4434
|
+
IsOptional22(),
|
|
4427
4435
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4428
4436
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4429
4437
|
", "
|
|
@@ -4431,7 +4439,7 @@ __decorateClass([
|
|
|
4431
4439
|
})
|
|
4432
4440
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4433
4441
|
__decorateClass([
|
|
4434
|
-
|
|
4442
|
+
IsOptional22(),
|
|
4435
4443
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4436
4444
|
Type7(() => Boolean)
|
|
4437
4445
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4440,23 +4448,23 @@ __decorateClass([
|
|
|
4440
4448
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4441
4449
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4442
4450
|
__decorateClass([
|
|
4443
|
-
|
|
4451
|
+
IsOptional22(),
|
|
4444
4452
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4445
4453
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4446
4454
|
__decorateClass([
|
|
4447
|
-
|
|
4455
|
+
IsOptional22(),
|
|
4448
4456
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4449
4457
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4450
4458
|
__decorateClass([
|
|
4451
|
-
|
|
4459
|
+
IsOptional22(),
|
|
4452
4460
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4453
4461
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4454
4462
|
__decorateClass([
|
|
4455
|
-
|
|
4463
|
+
IsOptional22(),
|
|
4456
4464
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4457
4465
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4458
4466
|
__decorateClass([
|
|
4459
|
-
|
|
4467
|
+
IsOptional22(),
|
|
4460
4468
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4461
4469
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4462
4470
|
|
|
@@ -4477,13 +4485,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4477
4485
|
import {
|
|
4478
4486
|
IsNotEmpty as IsNotEmpty44,
|
|
4479
4487
|
IsEmail as IsEmail12,
|
|
4480
|
-
IsOptional as
|
|
4488
|
+
IsOptional as IsOptional23,
|
|
4481
4489
|
IsString as IsString27,
|
|
4482
4490
|
IsArray as IsArray9,
|
|
4483
|
-
MinLength as
|
|
4484
|
-
MaxLength as
|
|
4491
|
+
MinLength as MinLength14,
|
|
4492
|
+
MaxLength as MaxLength16,
|
|
4485
4493
|
IsEnum as IsEnum16,
|
|
4486
|
-
Matches as
|
|
4494
|
+
Matches as Matches11
|
|
4487
4495
|
} from "class-validator";
|
|
4488
4496
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4489
4497
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4513,9 +4521,9 @@ __decorateClass([
|
|
|
4513
4521
|
], CreateClientDto.prototype, "email", 2);
|
|
4514
4522
|
__decorateClass([
|
|
4515
4523
|
IsNotEmpty44({ message: "Please enter password." }),
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4524
|
+
MinLength14(6),
|
|
4525
|
+
MaxLength16(32),
|
|
4526
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4519
4527
|
message: "Password must include letters, numbers and symbols."
|
|
4520
4528
|
})
|
|
4521
4529
|
], CreateClientDto.prototype, "password", 2);
|
|
@@ -4548,7 +4556,7 @@ __decorateClass([
|
|
|
4548
4556
|
IsString27()
|
|
4549
4557
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4550
4558
|
__decorateClass([
|
|
4551
|
-
|
|
4559
|
+
IsOptional23(),
|
|
4552
4560
|
IsString27()
|
|
4553
4561
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4554
4562
|
|
|
@@ -4562,16 +4570,17 @@ __decorateClass([
|
|
|
4562
4570
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4563
4571
|
|
|
4564
4572
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4573
|
+
import { Transform as Transform3 } from "class-transformer/types";
|
|
4565
4574
|
import {
|
|
4566
4575
|
IsNotEmpty as IsNotEmpty46,
|
|
4567
4576
|
IsEmail as IsEmail13,
|
|
4568
|
-
IsOptional as
|
|
4577
|
+
IsOptional as IsOptional24,
|
|
4569
4578
|
IsString as IsString29,
|
|
4570
4579
|
IsArray as IsArray10,
|
|
4571
|
-
MinLength as
|
|
4572
|
-
MaxLength as
|
|
4580
|
+
MinLength as MinLength15,
|
|
4581
|
+
MaxLength as MaxLength17,
|
|
4573
4582
|
IsEnum as IsEnum17,
|
|
4574
|
-
Matches as
|
|
4583
|
+
Matches as Matches12
|
|
4575
4584
|
} from "class-validator";
|
|
4576
4585
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4577
4586
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4600,10 +4609,11 @@ __decorateClass([
|
|
|
4600
4609
|
IsEmail13()
|
|
4601
4610
|
], UpdateClientDto.prototype, "email", 2);
|
|
4602
4611
|
__decorateClass([
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4612
|
+
IsOptional24(),
|
|
4613
|
+
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4614
|
+
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4615
|
+
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
4616
|
+
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4607
4617
|
message: "Password must include letters, numbers and symbols."
|
|
4608
4618
|
})
|
|
4609
4619
|
], UpdateClientDto.prototype, "password", 2);
|
|
@@ -4632,7 +4642,7 @@ __decorateClass([
|
|
|
4632
4642
|
IsString29()
|
|
4633
4643
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4634
4644
|
__decorateClass([
|
|
4635
|
-
|
|
4645
|
+
IsOptional24(),
|
|
4636
4646
|
IsString29()
|
|
4637
4647
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4638
4648
|
|
|
@@ -4643,7 +4653,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4643
4653
|
};
|
|
4644
4654
|
|
|
4645
4655
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4646
|
-
import { IsOptional as
|
|
4656
|
+
import { IsOptional as IsOptional25, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4647
4657
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4648
4658
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4649
4659
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4654,7 +4664,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4654
4664
|
var FreelancerDeclarationDto = class {
|
|
4655
4665
|
};
|
|
4656
4666
|
__decorateClass([
|
|
4657
|
-
|
|
4667
|
+
IsOptional25(),
|
|
4658
4668
|
IsString30({ message: "UUID must be a string" })
|
|
4659
4669
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4660
4670
|
__decorateClass([
|
|
@@ -4678,35 +4688,35 @@ var CMS_PATTERNS = {
|
|
|
4678
4688
|
};
|
|
4679
4689
|
|
|
4680
4690
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4681
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4691
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional26 } from "class-validator";
|
|
4682
4692
|
var CreateCmsDto = class {
|
|
4683
4693
|
};
|
|
4684
4694
|
__decorateClass([
|
|
4685
4695
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4686
4696
|
], CreateCmsDto.prototype, "title", 2);
|
|
4687
4697
|
__decorateClass([
|
|
4688
|
-
|
|
4698
|
+
IsOptional26()
|
|
4689
4699
|
], CreateCmsDto.prototype, "content", 2);
|
|
4690
4700
|
__decorateClass([
|
|
4691
|
-
|
|
4701
|
+
IsOptional26(),
|
|
4692
4702
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4693
4703
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4694
4704
|
|
|
4695
4705
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4696
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4706
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional27 } from "class-validator";
|
|
4697
4707
|
var UpdateCmsDto = class {
|
|
4698
4708
|
};
|
|
4699
4709
|
__decorateClass([
|
|
4700
|
-
|
|
4710
|
+
IsOptional27()
|
|
4701
4711
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4702
4712
|
__decorateClass([
|
|
4703
4713
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4704
4714
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4705
4715
|
__decorateClass([
|
|
4706
|
-
|
|
4716
|
+
IsOptional27()
|
|
4707
4717
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4708
4718
|
__decorateClass([
|
|
4709
|
-
|
|
4719
|
+
IsOptional27(),
|
|
4710
4720
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4711
4721
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4712
4722
|
|
|
@@ -4739,7 +4749,7 @@ import {
|
|
|
4739
4749
|
IsString as IsString31,
|
|
4740
4750
|
IsEnum as IsEnum19,
|
|
4741
4751
|
IsInt as IsInt6,
|
|
4742
|
-
IsOptional as
|
|
4752
|
+
IsOptional as IsOptional28,
|
|
4743
4753
|
IsArray as IsArray11,
|
|
4744
4754
|
IsDateString as IsDateString4,
|
|
4745
4755
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4766,7 +4776,7 @@ __decorateClass([
|
|
|
4766
4776
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4767
4777
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4768
4778
|
__decorateClass([
|
|
4769
|
-
|
|
4779
|
+
IsOptional28(),
|
|
4770
4780
|
IsString31({ message: "Note must be a string." })
|
|
4771
4781
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4772
4782
|
__decorateClass([
|
|
@@ -4816,7 +4826,7 @@ __decorateClass([
|
|
|
4816
4826
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4817
4827
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4818
4828
|
__decorateClass([
|
|
4819
|
-
|
|
4829
|
+
IsOptional28(),
|
|
4820
4830
|
IsString31({ message: "Additional comment must be a string." })
|
|
4821
4831
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4822
4832
|
__decorateClass([
|
|
@@ -4838,7 +4848,7 @@ import {
|
|
|
4838
4848
|
IsString as IsString32,
|
|
4839
4849
|
IsEnum as IsEnum20,
|
|
4840
4850
|
IsInt as IsInt7,
|
|
4841
|
-
IsOptional as
|
|
4851
|
+
IsOptional as IsOptional29,
|
|
4842
4852
|
IsArray as IsArray12,
|
|
4843
4853
|
IsDateString as IsDateString5,
|
|
4844
4854
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4865,7 +4875,7 @@ __decorateClass([
|
|
|
4865
4875
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4866
4876
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4867
4877
|
__decorateClass([
|
|
4868
|
-
|
|
4878
|
+
IsOptional29(),
|
|
4869
4879
|
IsString32({ message: "Note must be a string." })
|
|
4870
4880
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4871
4881
|
__decorateClass([
|
|
@@ -4915,7 +4925,7 @@ __decorateClass([
|
|
|
4915
4925
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4916
4926
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4917
4927
|
__decorateClass([
|
|
4918
|
-
|
|
4928
|
+
IsOptional29(),
|
|
4919
4929
|
IsString32({ message: "Additional comment must be a string." })
|
|
4920
4930
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4921
4931
|
__decorateClass([
|
|
@@ -4938,7 +4948,7 @@ var LEAD_PATTERN = {
|
|
|
4938
4948
|
};
|
|
4939
4949
|
|
|
4940
4950
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4941
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
4951
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional30, IsEnum as IsEnum21 } from "class-validator";
|
|
4942
4952
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4943
4953
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4944
4954
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4959,7 +4969,7 @@ __decorateClass([
|
|
|
4959
4969
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4960
4970
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4961
4971
|
__decorateClass([
|
|
4962
|
-
|
|
4972
|
+
IsOptional30(),
|
|
4963
4973
|
IsString33({ message: "Description must be a string" })
|
|
4964
4974
|
], CreateLeadDto.prototype, "description", 2);
|
|
4965
4975
|
__decorateClass([
|
|
@@ -4983,7 +4993,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4983
4993
|
};
|
|
4984
4994
|
|
|
4985
4995
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4986
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
4996
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional31, IsString as IsString34 } from "class-validator";
|
|
4987
4997
|
var CreateAdminRoleDto = class {
|
|
4988
4998
|
};
|
|
4989
4999
|
__decorateClass([
|
|
@@ -4991,12 +5001,12 @@ __decorateClass([
|
|
|
4991
5001
|
IsString34({ message: "Role name must be a string." })
|
|
4992
5002
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4993
5003
|
__decorateClass([
|
|
4994
|
-
|
|
5004
|
+
IsOptional31(),
|
|
4995
5005
|
IsString34({ message: "Role description must be a string." })
|
|
4996
5006
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4997
5007
|
|
|
4998
5008
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4999
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
5009
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional32, IsString as IsString35 } from "class-validator";
|
|
5000
5010
|
var UpdateAdminRoleDto = class {
|
|
5001
5011
|
};
|
|
5002
5012
|
__decorateClass([
|
|
@@ -5004,11 +5014,11 @@ __decorateClass([
|
|
|
5004
5014
|
IsString35({ message: "Role name must be a string." })
|
|
5005
5015
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5006
5016
|
__decorateClass([
|
|
5007
|
-
|
|
5017
|
+
IsOptional32(),
|
|
5008
5018
|
IsString35({ message: "Role description must be a string." })
|
|
5009
5019
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5010
5020
|
__decorateClass([
|
|
5011
|
-
|
|
5021
|
+
IsOptional32(),
|
|
5012
5022
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5013
5023
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5014
5024
|
|