@experts_hub/shared 1.0.324 → 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.
|
@@ -19,6 +19,8 @@ export declare class Interview extends BaseEntity {
|
|
|
19
19
|
jobId: number;
|
|
20
20
|
job: Job;
|
|
21
21
|
interviewType: string;
|
|
22
|
+
interviewLanguage: string;
|
|
23
|
+
allowProctoring: boolean;
|
|
22
24
|
status: InterviewStatusEnum;
|
|
23
25
|
interviewSkills: InterviewSkill[];
|
|
24
26
|
interviewQuestions: InterviewQuestion[];
|
package/dist/index.d.mts
CHANGED
|
@@ -222,7 +222,7 @@ declare class UpdateSubAdminDto {
|
|
|
222
222
|
email: string;
|
|
223
223
|
mobileCode: string;
|
|
224
224
|
mobile: string;
|
|
225
|
-
password
|
|
225
|
+
password?: string;
|
|
226
226
|
roleIds: string;
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -883,6 +883,8 @@ declare class Interview extends BaseEntity {
|
|
|
883
883
|
jobId: number;
|
|
884
884
|
job: Job;
|
|
885
885
|
interviewType: string;
|
|
886
|
+
interviewLanguage: string;
|
|
887
|
+
allowProctoring: boolean;
|
|
886
888
|
status: InterviewStatusEnum;
|
|
887
889
|
interviewSkills: InterviewSkill[];
|
|
888
890
|
interviewQuestions: InterviewQuestion[];
|
package/dist/index.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ declare class UpdateSubAdminDto {
|
|
|
222
222
|
email: string;
|
|
223
223
|
mobileCode: string;
|
|
224
224
|
mobile: string;
|
|
225
|
-
password
|
|
225
|
+
password?: string;
|
|
226
226
|
roleIds: string;
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -883,6 +883,8 @@ declare class Interview extends BaseEntity {
|
|
|
883
883
|
jobId: number;
|
|
884
884
|
job: Job;
|
|
885
885
|
interviewType: string;
|
|
886
|
+
interviewLanguage: string;
|
|
887
|
+
allowProctoring: boolean;
|
|
886
888
|
status: InterviewStatusEnum;
|
|
887
889
|
interviewSkills: InterviewSkill[];
|
|
888
890
|
interviewQuestions: InterviewQuestion[];
|
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." })
|
|
@@ -2506,6 +2513,12 @@ __decorateClass([
|
|
|
2506
2513
|
__decorateClass([
|
|
2507
2514
|
(0, import_typeorm15.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2508
2515
|
], Interview.prototype, "interviewType", 2);
|
|
2516
|
+
__decorateClass([
|
|
2517
|
+
(0, import_typeorm15.Column)({ name: "interview_language", type: "varchar", nullable: true })
|
|
2518
|
+
], Interview.prototype, "interviewLanguage", 2);
|
|
2519
|
+
__decorateClass([
|
|
2520
|
+
(0, import_typeorm15.Column)({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2521
|
+
], Interview.prototype, "allowProctoring", 2);
|
|
2509
2522
|
__decorateClass([
|
|
2510
2523
|
(0, import_typeorm15.Column)({
|
|
2511
2524
|
name: "status",
|
|
@@ -4301,6 +4314,7 @@ __decorateClass([
|
|
|
4301
4314
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4302
4315
|
__decorateClass([
|
|
4303
4316
|
(0, import_class_validator52.IsOptional)(),
|
|
4317
|
+
(0, import_class_transformer7.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4304
4318
|
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4305
4319
|
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4306
4320
|
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4456,6 +4470,7 @@ __decorateClass([
|
|
|
4456
4470
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4457
4471
|
|
|
4458
4472
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4473
|
+
var import_types2 = require("class-transformer/types");
|
|
4459
4474
|
var import_class_validator55 = require("class-validator");
|
|
4460
4475
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4461
4476
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4485,6 +4500,7 @@ __decorateClass([
|
|
|
4485
4500
|
], UpdateClientDto.prototype, "email", 2);
|
|
4486
4501
|
__decorateClass([
|
|
4487
4502
|
(0, import_class_validator55.IsOptional)(),
|
|
4503
|
+
(0, import_types2.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4488
4504
|
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4489
4505
|
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4490
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
|
|
@@ -2457,6 +2464,12 @@ __decorateClass([
|
|
|
2457
2464
|
__decorateClass([
|
|
2458
2465
|
Column15({ name: "interview_type", type: "varchar", nullable: true })
|
|
2459
2466
|
], Interview.prototype, "interviewType", 2);
|
|
2467
|
+
__decorateClass([
|
|
2468
|
+
Column15({ name: "interview_language", type: "varchar", nullable: true })
|
|
2469
|
+
], Interview.prototype, "interviewLanguage", 2);
|
|
2470
|
+
__decorateClass([
|
|
2471
|
+
Column15({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2472
|
+
], Interview.prototype, "allowProctoring", 2);
|
|
2460
2473
|
__decorateClass([
|
|
2461
2474
|
Column15({
|
|
2462
2475
|
name: "status",
|
|
@@ -3907,7 +3920,7 @@ __decorateClass([
|
|
|
3907
3920
|
Max(5, { message: "Rating must be at most 5" })
|
|
3908
3921
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3909
3922
|
__decorateClass([
|
|
3910
|
-
|
|
3923
|
+
IsOptional12(),
|
|
3911
3924
|
IsString16({ message: "Review must be a string" })
|
|
3912
3925
|
], CreateRatingDto.prototype, "review", 2);
|
|
3913
3926
|
|
|
@@ -3924,7 +3937,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3924
3937
|
};
|
|
3925
3938
|
|
|
3926
3939
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3927
|
-
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";
|
|
3928
3941
|
var CreateCompanyRoleDto = class {
|
|
3929
3942
|
};
|
|
3930
3943
|
__decorateClass([
|
|
@@ -3942,12 +3955,12 @@ __decorateClass([
|
|
|
3942
3955
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3943
3956
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3944
3957
|
__decorateClass([
|
|
3945
|
-
|
|
3958
|
+
IsOptional13(),
|
|
3946
3959
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3947
3960
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3948
3961
|
|
|
3949
3962
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3950
|
-
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";
|
|
3951
3964
|
var UpdateCompanyRoleDto = class {
|
|
3952
3965
|
};
|
|
3953
3966
|
__decorateClass([
|
|
@@ -3965,7 +3978,7 @@ __decorateClass([
|
|
|
3965
3978
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3966
3979
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3967
3980
|
__decorateClass([
|
|
3968
|
-
|
|
3981
|
+
IsOptional14(),
|
|
3969
3982
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3970
3983
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3971
3984
|
|
|
@@ -3987,16 +4000,16 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3987
4000
|
import {
|
|
3988
4001
|
ArrayMinSize,
|
|
3989
4002
|
IsNotEmpty as IsNotEmpty36,
|
|
3990
|
-
IsOptional as
|
|
4003
|
+
IsOptional as IsOptional15,
|
|
3991
4004
|
IsString as IsString19,
|
|
3992
|
-
MaxLength as
|
|
4005
|
+
MaxLength as MaxLength10,
|
|
3993
4006
|
ValidateNested
|
|
3994
4007
|
} from "class-validator";
|
|
3995
4008
|
import { Type as Type2 } from "class-transformer";
|
|
3996
4009
|
var ExperienceDto = class {
|
|
3997
4010
|
};
|
|
3998
4011
|
__decorateClass([
|
|
3999
|
-
|
|
4012
|
+
IsOptional15()
|
|
4000
4013
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4001
4014
|
__decorateClass([
|
|
4002
4015
|
IsNotEmpty36(),
|
|
@@ -4011,9 +4024,9 @@ __decorateClass([
|
|
|
4011
4024
|
IsString19()
|
|
4012
4025
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4013
4026
|
__decorateClass([
|
|
4014
|
-
|
|
4027
|
+
IsOptional15(),
|
|
4015
4028
|
IsString19(),
|
|
4016
|
-
|
|
4029
|
+
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4017
4030
|
], ExperienceDto.prototype, "description", 2);
|
|
4018
4031
|
var FreelancerExperienceDto = class {
|
|
4019
4032
|
};
|
|
@@ -4082,12 +4095,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4082
4095
|
};
|
|
4083
4096
|
|
|
4084
4097
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4085
|
-
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";
|
|
4086
4099
|
import { Type as Type3 } from "class-transformer";
|
|
4087
4100
|
var EducationDto = class {
|
|
4088
4101
|
};
|
|
4089
4102
|
__decorateClass([
|
|
4090
|
-
|
|
4103
|
+
IsOptional18()
|
|
4091
4104
|
], EducationDto.prototype, "uuid", 2);
|
|
4092
4105
|
__decorateClass([
|
|
4093
4106
|
IsString22(),
|
|
@@ -4117,12 +4130,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4117
4130
|
};
|
|
4118
4131
|
|
|
4119
4132
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4120
|
-
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";
|
|
4121
4134
|
import { Type as Type4 } from "class-transformer";
|
|
4122
4135
|
var ProjectDto = class {
|
|
4123
4136
|
};
|
|
4124
4137
|
__decorateClass([
|
|
4125
|
-
|
|
4138
|
+
IsOptional19()
|
|
4126
4139
|
], ProjectDto.prototype, "uuid", 2);
|
|
4127
4140
|
__decorateClass([
|
|
4128
4141
|
IsString23(),
|
|
@@ -4137,35 +4150,35 @@ __decorateClass([
|
|
|
4137
4150
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4138
4151
|
], ProjectDto.prototype, "endDate", 2);
|
|
4139
4152
|
__decorateClass([
|
|
4140
|
-
|
|
4153
|
+
IsOptional19(),
|
|
4141
4154
|
IsString23()
|
|
4142
4155
|
], ProjectDto.prototype, "clientName", 2);
|
|
4143
4156
|
__decorateClass([
|
|
4144
|
-
|
|
4157
|
+
IsOptional19(),
|
|
4145
4158
|
IsString23()
|
|
4146
4159
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4147
4160
|
__decorateClass([
|
|
4148
|
-
|
|
4161
|
+
IsOptional19(),
|
|
4149
4162
|
IsString23(),
|
|
4150
|
-
|
|
4163
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4151
4164
|
], ProjectDto.prototype, "description", 2);
|
|
4152
4165
|
var CaseStudyDto = class {
|
|
4153
4166
|
};
|
|
4154
4167
|
__decorateClass([
|
|
4155
|
-
|
|
4168
|
+
IsOptional19()
|
|
4156
4169
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4157
4170
|
__decorateClass([
|
|
4158
4171
|
IsString23(),
|
|
4159
4172
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4160
4173
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4161
4174
|
__decorateClass([
|
|
4162
|
-
|
|
4175
|
+
IsOptional19(),
|
|
4163
4176
|
IsString23()
|
|
4164
4177
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4165
4178
|
__decorateClass([
|
|
4166
|
-
|
|
4179
|
+
IsOptional19(),
|
|
4167
4180
|
IsString23(),
|
|
4168
|
-
|
|
4181
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4169
4182
|
], CaseStudyDto.prototype, "description", 2);
|
|
4170
4183
|
var FreelancerProjectDto = class {
|
|
4171
4184
|
};
|
|
@@ -4193,7 +4206,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4193
4206
|
};
|
|
4194
4207
|
|
|
4195
4208
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4196
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4209
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional20 } from "class-validator";
|
|
4197
4210
|
import { Type as Type5 } from "class-transformer";
|
|
4198
4211
|
var FreelancerSkillDto = class {
|
|
4199
4212
|
constructor() {
|
|
@@ -4203,19 +4216,19 @@ var FreelancerSkillDto = class {
|
|
|
4203
4216
|
}
|
|
4204
4217
|
};
|
|
4205
4218
|
__decorateClass([
|
|
4206
|
-
|
|
4219
|
+
IsOptional20(),
|
|
4207
4220
|
IsArray8(),
|
|
4208
4221
|
Type5(() => String),
|
|
4209
4222
|
IsString24({ each: true })
|
|
4210
4223
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4211
4224
|
__decorateClass([
|
|
4212
|
-
|
|
4225
|
+
IsOptional20(),
|
|
4213
4226
|
IsArray8(),
|
|
4214
4227
|
Type5(() => String),
|
|
4215
4228
|
IsString24({ each: true })
|
|
4216
4229
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4217
4230
|
__decorateClass([
|
|
4218
|
-
|
|
4231
|
+
IsOptional20(),
|
|
4219
4232
|
IsArray8(),
|
|
4220
4233
|
Type5(() => String),
|
|
4221
4234
|
IsString24({ each: true })
|
|
@@ -4238,15 +4251,15 @@ import {
|
|
|
4238
4251
|
IsString as IsString25,
|
|
4239
4252
|
IsEmail as IsEmail10,
|
|
4240
4253
|
IsBoolean as IsBoolean10,
|
|
4241
|
-
IsOptional as
|
|
4254
|
+
IsOptional as IsOptional21,
|
|
4242
4255
|
IsEnum as IsEnum14,
|
|
4243
4256
|
IsNumber as IsNumber3,
|
|
4244
4257
|
IsUrl as IsUrl3,
|
|
4245
4258
|
Min as Min3,
|
|
4246
|
-
MaxLength as
|
|
4259
|
+
MaxLength as MaxLength14,
|
|
4247
4260
|
IsNotEmpty as IsNotEmpty42,
|
|
4248
|
-
MinLength as
|
|
4249
|
-
Matches as
|
|
4261
|
+
MinLength as MinLength12,
|
|
4262
|
+
Matches as Matches9,
|
|
4250
4263
|
ValidateIf as ValidateIf5
|
|
4251
4264
|
} from "class-validator";
|
|
4252
4265
|
import { Type as Type6 } from "class-transformer";
|
|
@@ -4266,7 +4279,7 @@ var CreateFreelancerDto = class {
|
|
|
4266
4279
|
};
|
|
4267
4280
|
__decorateClass([
|
|
4268
4281
|
IsString25({ message: "Full name must be a string" }),
|
|
4269
|
-
|
|
4282
|
+
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4270
4283
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4271
4284
|
__decorateClass([
|
|
4272
4285
|
IsEmail10({}, { message: "Invalid email address" })
|
|
@@ -4279,9 +4292,9 @@ __decorateClass([
|
|
|
4279
4292
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4280
4293
|
__decorateClass([
|
|
4281
4294
|
IsNotEmpty42({ message: "Please enter password." }),
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4295
|
+
MinLength12(6),
|
|
4296
|
+
MaxLength14(32),
|
|
4297
|
+
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4285
4298
|
message: "Password must include letters, numbers and symbols."
|
|
4286
4299
|
})
|
|
4287
4300
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
@@ -4321,23 +4334,23 @@ __decorateClass([
|
|
|
4321
4334
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4322
4335
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4323
4336
|
__decorateClass([
|
|
4324
|
-
|
|
4337
|
+
IsOptional21(),
|
|
4325
4338
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4326
4339
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4327
4340
|
__decorateClass([
|
|
4328
|
-
|
|
4341
|
+
IsOptional21(),
|
|
4329
4342
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4330
4343
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4331
4344
|
__decorateClass([
|
|
4332
|
-
|
|
4345
|
+
IsOptional21(),
|
|
4333
4346
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4334
4347
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4335
4348
|
__decorateClass([
|
|
4336
|
-
|
|
4349
|
+
IsOptional21(),
|
|
4337
4350
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4338
4351
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4339
4352
|
__decorateClass([
|
|
4340
|
-
|
|
4353
|
+
IsOptional21(),
|
|
4341
4354
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4342
4355
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4343
4356
|
|
|
@@ -4346,18 +4359,18 @@ import {
|
|
|
4346
4359
|
IsString as IsString26,
|
|
4347
4360
|
IsEmail as IsEmail11,
|
|
4348
4361
|
IsBoolean as IsBoolean11,
|
|
4349
|
-
IsOptional as
|
|
4362
|
+
IsOptional as IsOptional22,
|
|
4350
4363
|
IsEnum as IsEnum15,
|
|
4351
4364
|
IsNumber as IsNumber4,
|
|
4352
4365
|
IsUrl as IsUrl4,
|
|
4353
4366
|
Min as Min4,
|
|
4354
|
-
MaxLength as
|
|
4355
|
-
MinLength as
|
|
4356
|
-
Matches as
|
|
4367
|
+
MaxLength as MaxLength15,
|
|
4368
|
+
MinLength as MinLength13,
|
|
4369
|
+
Matches as Matches10,
|
|
4357
4370
|
IsNotEmpty as IsNotEmpty43,
|
|
4358
4371
|
ValidateIf as ValidateIf6
|
|
4359
4372
|
} from "class-validator";
|
|
4360
|
-
import { Type as Type7 } from "class-transformer";
|
|
4373
|
+
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
4361
4374
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4362
4375
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4363
4376
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4373,37 +4386,38 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4373
4386
|
var UpdateFreelancerDto = class {
|
|
4374
4387
|
};
|
|
4375
4388
|
__decorateClass([
|
|
4376
|
-
|
|
4389
|
+
IsOptional22(),
|
|
4377
4390
|
IsString26({ message: "Full name must be a string" }),
|
|
4378
|
-
|
|
4391
|
+
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4379
4392
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4380
4393
|
__decorateClass([
|
|
4381
|
-
|
|
4394
|
+
IsOptional22(),
|
|
4382
4395
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4383
4396
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4384
4397
|
__decorateClass([
|
|
4385
|
-
|
|
4398
|
+
IsOptional22(),
|
|
4386
4399
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4387
4400
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4388
4401
|
__decorateClass([
|
|
4389
|
-
|
|
4402
|
+
IsOptional22(),
|
|
4390
4403
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4391
4404
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4392
4405
|
__decorateClass([
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
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)(?=.*[@$!%*?&])/, {
|
|
4397
4411
|
message: "Password must include letters, numbers and symbols."
|
|
4398
4412
|
})
|
|
4399
4413
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4400
4414
|
__decorateClass([
|
|
4401
|
-
|
|
4415
|
+
IsOptional22(),
|
|
4402
4416
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4403
4417
|
Type7(() => Boolean)
|
|
4404
4418
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4405
4419
|
__decorateClass([
|
|
4406
|
-
|
|
4420
|
+
IsOptional22(),
|
|
4407
4421
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4408
4422
|
message: `Nature of work must be one of: ${Object.values(
|
|
4409
4423
|
NatureOfWorkEnum2
|
|
@@ -4411,13 +4425,13 @@ __decorateClass([
|
|
|
4411
4425
|
})
|
|
4412
4426
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4413
4427
|
__decorateClass([
|
|
4414
|
-
|
|
4428
|
+
IsOptional22(),
|
|
4415
4429
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4416
4430
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4417
4431
|
Type7(() => Number)
|
|
4418
4432
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4419
4433
|
__decorateClass([
|
|
4420
|
-
|
|
4434
|
+
IsOptional22(),
|
|
4421
4435
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4422
4436
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4423
4437
|
", "
|
|
@@ -4425,7 +4439,7 @@ __decorateClass([
|
|
|
4425
4439
|
})
|
|
4426
4440
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4427
4441
|
__decorateClass([
|
|
4428
|
-
|
|
4442
|
+
IsOptional22(),
|
|
4429
4443
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4430
4444
|
Type7(() => Boolean)
|
|
4431
4445
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4434,23 +4448,23 @@ __decorateClass([
|
|
|
4434
4448
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4435
4449
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4436
4450
|
__decorateClass([
|
|
4437
|
-
|
|
4451
|
+
IsOptional22(),
|
|
4438
4452
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4439
4453
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4440
4454
|
__decorateClass([
|
|
4441
|
-
|
|
4455
|
+
IsOptional22(),
|
|
4442
4456
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4443
4457
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4444
4458
|
__decorateClass([
|
|
4445
|
-
|
|
4459
|
+
IsOptional22(),
|
|
4446
4460
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4447
4461
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4448
4462
|
__decorateClass([
|
|
4449
|
-
|
|
4463
|
+
IsOptional22(),
|
|
4450
4464
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4451
4465
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4452
4466
|
__decorateClass([
|
|
4453
|
-
|
|
4467
|
+
IsOptional22(),
|
|
4454
4468
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4455
4469
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4456
4470
|
|
|
@@ -4471,13 +4485,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4471
4485
|
import {
|
|
4472
4486
|
IsNotEmpty as IsNotEmpty44,
|
|
4473
4487
|
IsEmail as IsEmail12,
|
|
4474
|
-
IsOptional as
|
|
4488
|
+
IsOptional as IsOptional23,
|
|
4475
4489
|
IsString as IsString27,
|
|
4476
4490
|
IsArray as IsArray9,
|
|
4477
|
-
MinLength as
|
|
4478
|
-
MaxLength as
|
|
4491
|
+
MinLength as MinLength14,
|
|
4492
|
+
MaxLength as MaxLength16,
|
|
4479
4493
|
IsEnum as IsEnum16,
|
|
4480
|
-
Matches as
|
|
4494
|
+
Matches as Matches11
|
|
4481
4495
|
} from "class-validator";
|
|
4482
4496
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4483
4497
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4507,9 +4521,9 @@ __decorateClass([
|
|
|
4507
4521
|
], CreateClientDto.prototype, "email", 2);
|
|
4508
4522
|
__decorateClass([
|
|
4509
4523
|
IsNotEmpty44({ message: "Please enter password." }),
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4524
|
+
MinLength14(6),
|
|
4525
|
+
MaxLength16(32),
|
|
4526
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4513
4527
|
message: "Password must include letters, numbers and symbols."
|
|
4514
4528
|
})
|
|
4515
4529
|
], CreateClientDto.prototype, "password", 2);
|
|
@@ -4542,7 +4556,7 @@ __decorateClass([
|
|
|
4542
4556
|
IsString27()
|
|
4543
4557
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4544
4558
|
__decorateClass([
|
|
4545
|
-
|
|
4559
|
+
IsOptional23(),
|
|
4546
4560
|
IsString27()
|
|
4547
4561
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4548
4562
|
|
|
@@ -4556,16 +4570,17 @@ __decorateClass([
|
|
|
4556
4570
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4557
4571
|
|
|
4558
4572
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4573
|
+
import { Transform as Transform3 } from "class-transformer/types";
|
|
4559
4574
|
import {
|
|
4560
4575
|
IsNotEmpty as IsNotEmpty46,
|
|
4561
4576
|
IsEmail as IsEmail13,
|
|
4562
|
-
IsOptional as
|
|
4577
|
+
IsOptional as IsOptional24,
|
|
4563
4578
|
IsString as IsString29,
|
|
4564
4579
|
IsArray as IsArray10,
|
|
4565
|
-
MinLength as
|
|
4566
|
-
MaxLength as
|
|
4580
|
+
MinLength as MinLength15,
|
|
4581
|
+
MaxLength as MaxLength17,
|
|
4567
4582
|
IsEnum as IsEnum17,
|
|
4568
|
-
Matches as
|
|
4583
|
+
Matches as Matches12
|
|
4569
4584
|
} from "class-validator";
|
|
4570
4585
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4571
4586
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4594,10 +4609,11 @@ __decorateClass([
|
|
|
4594
4609
|
IsEmail13()
|
|
4595
4610
|
], UpdateClientDto.prototype, "email", 2);
|
|
4596
4611
|
__decorateClass([
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
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)(?=.*[@$!%*?&])/, {
|
|
4601
4617
|
message: "Password must include letters, numbers and symbols."
|
|
4602
4618
|
})
|
|
4603
4619
|
], UpdateClientDto.prototype, "password", 2);
|
|
@@ -4626,7 +4642,7 @@ __decorateClass([
|
|
|
4626
4642
|
IsString29()
|
|
4627
4643
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4628
4644
|
__decorateClass([
|
|
4629
|
-
|
|
4645
|
+
IsOptional24(),
|
|
4630
4646
|
IsString29()
|
|
4631
4647
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4632
4648
|
|
|
@@ -4637,7 +4653,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4637
4653
|
};
|
|
4638
4654
|
|
|
4639
4655
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4640
|
-
import { IsOptional as
|
|
4656
|
+
import { IsOptional as IsOptional25, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4641
4657
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4642
4658
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4643
4659
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4648,7 +4664,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4648
4664
|
var FreelancerDeclarationDto = class {
|
|
4649
4665
|
};
|
|
4650
4666
|
__decorateClass([
|
|
4651
|
-
|
|
4667
|
+
IsOptional25(),
|
|
4652
4668
|
IsString30({ message: "UUID must be a string" })
|
|
4653
4669
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4654
4670
|
__decorateClass([
|
|
@@ -4672,35 +4688,35 @@ var CMS_PATTERNS = {
|
|
|
4672
4688
|
};
|
|
4673
4689
|
|
|
4674
4690
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4675
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4691
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional26 } from "class-validator";
|
|
4676
4692
|
var CreateCmsDto = class {
|
|
4677
4693
|
};
|
|
4678
4694
|
__decorateClass([
|
|
4679
4695
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4680
4696
|
], CreateCmsDto.prototype, "title", 2);
|
|
4681
4697
|
__decorateClass([
|
|
4682
|
-
|
|
4698
|
+
IsOptional26()
|
|
4683
4699
|
], CreateCmsDto.prototype, "content", 2);
|
|
4684
4700
|
__decorateClass([
|
|
4685
|
-
|
|
4701
|
+
IsOptional26(),
|
|
4686
4702
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4687
4703
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4688
4704
|
|
|
4689
4705
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4690
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4706
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional27 } from "class-validator";
|
|
4691
4707
|
var UpdateCmsDto = class {
|
|
4692
4708
|
};
|
|
4693
4709
|
__decorateClass([
|
|
4694
|
-
|
|
4710
|
+
IsOptional27()
|
|
4695
4711
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4696
4712
|
__decorateClass([
|
|
4697
4713
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4698
4714
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4699
4715
|
__decorateClass([
|
|
4700
|
-
|
|
4716
|
+
IsOptional27()
|
|
4701
4717
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4702
4718
|
__decorateClass([
|
|
4703
|
-
|
|
4719
|
+
IsOptional27(),
|
|
4704
4720
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4705
4721
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4706
4722
|
|
|
@@ -4733,7 +4749,7 @@ import {
|
|
|
4733
4749
|
IsString as IsString31,
|
|
4734
4750
|
IsEnum as IsEnum19,
|
|
4735
4751
|
IsInt as IsInt6,
|
|
4736
|
-
IsOptional as
|
|
4752
|
+
IsOptional as IsOptional28,
|
|
4737
4753
|
IsArray as IsArray11,
|
|
4738
4754
|
IsDateString as IsDateString4,
|
|
4739
4755
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4760,7 +4776,7 @@ __decorateClass([
|
|
|
4760
4776
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4761
4777
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4762
4778
|
__decorateClass([
|
|
4763
|
-
|
|
4779
|
+
IsOptional28(),
|
|
4764
4780
|
IsString31({ message: "Note must be a string." })
|
|
4765
4781
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4766
4782
|
__decorateClass([
|
|
@@ -4810,7 +4826,7 @@ __decorateClass([
|
|
|
4810
4826
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4811
4827
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4812
4828
|
__decorateClass([
|
|
4813
|
-
|
|
4829
|
+
IsOptional28(),
|
|
4814
4830
|
IsString31({ message: "Additional comment must be a string." })
|
|
4815
4831
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4816
4832
|
__decorateClass([
|
|
@@ -4832,7 +4848,7 @@ import {
|
|
|
4832
4848
|
IsString as IsString32,
|
|
4833
4849
|
IsEnum as IsEnum20,
|
|
4834
4850
|
IsInt as IsInt7,
|
|
4835
|
-
IsOptional as
|
|
4851
|
+
IsOptional as IsOptional29,
|
|
4836
4852
|
IsArray as IsArray12,
|
|
4837
4853
|
IsDateString as IsDateString5,
|
|
4838
4854
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4859,7 +4875,7 @@ __decorateClass([
|
|
|
4859
4875
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4860
4876
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4861
4877
|
__decorateClass([
|
|
4862
|
-
|
|
4878
|
+
IsOptional29(),
|
|
4863
4879
|
IsString32({ message: "Note must be a string." })
|
|
4864
4880
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4865
4881
|
__decorateClass([
|
|
@@ -4909,7 +4925,7 @@ __decorateClass([
|
|
|
4909
4925
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4910
4926
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4911
4927
|
__decorateClass([
|
|
4912
|
-
|
|
4928
|
+
IsOptional29(),
|
|
4913
4929
|
IsString32({ message: "Additional comment must be a string." })
|
|
4914
4930
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4915
4931
|
__decorateClass([
|
|
@@ -4932,7 +4948,7 @@ var LEAD_PATTERN = {
|
|
|
4932
4948
|
};
|
|
4933
4949
|
|
|
4934
4950
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4935
|
-
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";
|
|
4936
4952
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4937
4953
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4938
4954
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4953,7 +4969,7 @@ __decorateClass([
|
|
|
4953
4969
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4954
4970
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4955
4971
|
__decorateClass([
|
|
4956
|
-
|
|
4972
|
+
IsOptional30(),
|
|
4957
4973
|
IsString33({ message: "Description must be a string" })
|
|
4958
4974
|
], CreateLeadDto.prototype, "description", 2);
|
|
4959
4975
|
__decorateClass([
|
|
@@ -4977,7 +4993,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4977
4993
|
};
|
|
4978
4994
|
|
|
4979
4995
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4980
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
4996
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional31, IsString as IsString34 } from "class-validator";
|
|
4981
4997
|
var CreateAdminRoleDto = class {
|
|
4982
4998
|
};
|
|
4983
4999
|
__decorateClass([
|
|
@@ -4985,12 +5001,12 @@ __decorateClass([
|
|
|
4985
5001
|
IsString34({ message: "Role name must be a string." })
|
|
4986
5002
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4987
5003
|
__decorateClass([
|
|
4988
|
-
|
|
5004
|
+
IsOptional31(),
|
|
4989
5005
|
IsString34({ message: "Role description must be a string." })
|
|
4990
5006
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4991
5007
|
|
|
4992
5008
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4993
|
-
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";
|
|
4994
5010
|
var UpdateAdminRoleDto = class {
|
|
4995
5011
|
};
|
|
4996
5012
|
__decorateClass([
|
|
@@ -4998,11 +5014,11 @@ __decorateClass([
|
|
|
4998
5014
|
IsString35({ message: "Role name must be a string." })
|
|
4999
5015
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5000
5016
|
__decorateClass([
|
|
5001
|
-
|
|
5017
|
+
IsOptional32(),
|
|
5002
5018
|
IsString35({ message: "Role description must be a string." })
|
|
5003
5019
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5004
5020
|
__decorateClass([
|
|
5005
|
-
|
|
5021
|
+
IsOptional32(),
|
|
5006
5022
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5007
5023
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5008
5024
|
|