@experts_hub/shared 1.0.514 → 1.0.516
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/entities/ai-interview.entity.d.ts +1 -0
- package/dist/index.d.mts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +765 -567
- package/dist/index.mjs +767 -561
- package/dist/modules/job/dto/index.d.ts +1 -0
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +52 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1215,6 +1215,204 @@ __decorateClass([
|
|
|
1215
1215
|
})
|
|
1216
1216
|
], JobIdParamDto.prototype, "id", 2);
|
|
1217
1217
|
|
|
1218
|
+
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
1219
|
+
import {
|
|
1220
|
+
IsString as IsString15,
|
|
1221
|
+
IsNotEmpty as IsNotEmpty32,
|
|
1222
|
+
IsArray as IsArray2,
|
|
1223
|
+
ArrayNotEmpty as ArrayNotEmpty2,
|
|
1224
|
+
IsNumber as IsNumber3,
|
|
1225
|
+
IsOptional as IsOptional15,
|
|
1226
|
+
IsEnum as IsEnum12,
|
|
1227
|
+
Min as Min2,
|
|
1228
|
+
ValidateIf as ValidateIf4,
|
|
1229
|
+
MaxLength as MaxLength9,
|
|
1230
|
+
Max as Max2,
|
|
1231
|
+
ValidateNested
|
|
1232
|
+
} from "class-validator";
|
|
1233
|
+
import { Type as Type3 } from "class-transformer";
|
|
1234
|
+
var JobLocationEnumV2 = /* @__PURE__ */ ((JobLocationEnumV22) => {
|
|
1235
|
+
JobLocationEnumV22["ONSITE"] = "ONSITE";
|
|
1236
|
+
JobLocationEnumV22["REMOTE"] = "REMOTE";
|
|
1237
|
+
JobLocationEnumV22["HYBRID"] = "HYBRID";
|
|
1238
|
+
return JobLocationEnumV22;
|
|
1239
|
+
})(JobLocationEnumV2 || {});
|
|
1240
|
+
var EmploymentTypeV2 = /* @__PURE__ */ ((EmploymentTypeV22) => {
|
|
1241
|
+
EmploymentTypeV22["FULLTIME"] = "FULLTIME";
|
|
1242
|
+
EmploymentTypeV22["PARTTIME"] = "PARTTIME";
|
|
1243
|
+
EmploymentTypeV22["BOTH"] = "BOTH";
|
|
1244
|
+
EmploymentTypeV22["HOURLY"] = "HOURLY";
|
|
1245
|
+
EmploymentTypeV22["FREELANCE"] = "FREELANCE";
|
|
1246
|
+
EmploymentTypeV22["FTE"] = "FTE";
|
|
1247
|
+
return EmploymentTypeV22;
|
|
1248
|
+
})(EmploymentTypeV2 || {});
|
|
1249
|
+
var typeOfExperienceDtoEnumV2 = /* @__PURE__ */ ((typeOfExperienceDtoEnumV22) => {
|
|
1250
|
+
typeOfExperienceDtoEnumV22["SINGLE"] = "SINGLE";
|
|
1251
|
+
typeOfExperienceDtoEnumV22["RANGE"] = "RANGE";
|
|
1252
|
+
return typeOfExperienceDtoEnumV22;
|
|
1253
|
+
})(typeOfExperienceDtoEnumV2 || {});
|
|
1254
|
+
var JobLocationDto = class {
|
|
1255
|
+
};
|
|
1256
|
+
__decorateClass([
|
|
1257
|
+
IsOptional15(),
|
|
1258
|
+
IsNumber3()
|
|
1259
|
+
], JobLocationDto.prototype, "countryId", 2);
|
|
1260
|
+
__decorateClass([
|
|
1261
|
+
IsOptional15(),
|
|
1262
|
+
IsNumber3()
|
|
1263
|
+
], JobLocationDto.prototype, "stateId", 2);
|
|
1264
|
+
__decorateClass([
|
|
1265
|
+
IsOptional15(),
|
|
1266
|
+
IsNumber3()
|
|
1267
|
+
], JobLocationDto.prototype, "cityId", 2);
|
|
1268
|
+
var JobBasicInformationV2Dto = class {
|
|
1269
|
+
constructor() {
|
|
1270
|
+
this.isDraft = false;
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
__decorateClass([
|
|
1274
|
+
IsOptional15(),
|
|
1275
|
+
Type3(() => Boolean)
|
|
1276
|
+
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
1277
|
+
__decorateClass([
|
|
1278
|
+
IsNotEmpty32({ message: "Please enter job role" }),
|
|
1279
|
+
IsString15({ message: "Job role must be a string" })
|
|
1280
|
+
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
1281
|
+
__decorateClass([
|
|
1282
|
+
IsOptional15()
|
|
1283
|
+
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
1284
|
+
__decorateClass([
|
|
1285
|
+
IsOptional15(),
|
|
1286
|
+
IsString15({ message: "Project name must be a string" })
|
|
1287
|
+
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
1288
|
+
__decorateClass([
|
|
1289
|
+
IsOptional15(),
|
|
1290
|
+
IsString15({ message: "Note must be a string" })
|
|
1291
|
+
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
1292
|
+
__decorateClass([
|
|
1293
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1294
|
+
IsOptional15(),
|
|
1295
|
+
IsArray2({ message: "Skills must be an array" }),
|
|
1296
|
+
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
1297
|
+
IsString15({ each: true, message: "Each skill must be a string" }),
|
|
1298
|
+
Type3(() => String)
|
|
1299
|
+
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
1300
|
+
__decorateClass([
|
|
1301
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1302
|
+
IsArray2({ message: "Good to have skills must be an array" }),
|
|
1303
|
+
IsString15({ each: true, message: "Each skill must be a string" }),
|
|
1304
|
+
IsOptional15(),
|
|
1305
|
+
Type3(() => String)
|
|
1306
|
+
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1307
|
+
__decorateClass([
|
|
1308
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1309
|
+
IsArray2({ message: "locations must be an array" }),
|
|
1310
|
+
ArrayNotEmpty2({ message: "Please select at least one location" }),
|
|
1311
|
+
ValidateNested({ each: true }),
|
|
1312
|
+
Type3(() => JobLocationDto),
|
|
1313
|
+
IsOptional15()
|
|
1314
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1315
|
+
__decorateClass([
|
|
1316
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1317
|
+
IsNumber3({}, { message: "Openings must be a number" }),
|
|
1318
|
+
Min2(1, { message: "There must be at least 1 opening" }),
|
|
1319
|
+
Type3(() => Number)
|
|
1320
|
+
], JobBasicInformationV2Dto.prototype, "openings", 2);
|
|
1321
|
+
__decorateClass([
|
|
1322
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1323
|
+
IsEnum12(JobLocationEnumV2, {
|
|
1324
|
+
message: `Location must be one of: ${Object.values(JobLocationEnumV2).join(
|
|
1325
|
+
", "
|
|
1326
|
+
)}`
|
|
1327
|
+
})
|
|
1328
|
+
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1329
|
+
__decorateClass([
|
|
1330
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1331
|
+
IsEnum12(EmploymentTypeV2, {
|
|
1332
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1333
|
+
EmploymentTypeV2
|
|
1334
|
+
).join(", ")}`
|
|
1335
|
+
})
|
|
1336
|
+
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
1337
|
+
__decorateClass([
|
|
1338
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1339
|
+
IsString15({ message: "Currency must be a string" })
|
|
1340
|
+
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1343
|
+
IsNumber3({}, { message: "Expected salary (from) must be a number" }),
|
|
1344
|
+
Min2(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1345
|
+
Type3(() => Number)
|
|
1346
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
1347
|
+
__decorateClass([
|
|
1348
|
+
IsOptional15()
|
|
1349
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1350
|
+
__decorateClass([
|
|
1351
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1352
|
+
IsNumber3({}, { message: "Expected salary (to) must be a number" }),
|
|
1353
|
+
Min2(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1354
|
+
Type3(() => Number)
|
|
1355
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
1356
|
+
__decorateClass([
|
|
1357
|
+
IsOptional15()
|
|
1358
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
1359
|
+
__decorateClass([
|
|
1360
|
+
IsOptional15()
|
|
1361
|
+
], JobBasicInformationV2Dto.prototype, "years", 2);
|
|
1362
|
+
__decorateClass([
|
|
1363
|
+
IsOptional15()
|
|
1364
|
+
], JobBasicInformationV2Dto.prototype, "months", 2);
|
|
1365
|
+
__decorateClass([
|
|
1366
|
+
IsOptional15()
|
|
1367
|
+
], JobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
1368
|
+
__decorateClass([
|
|
1369
|
+
IsOptional15()
|
|
1370
|
+
], JobBasicInformationV2Dto.prototype, "days", 2);
|
|
1371
|
+
__decorateClass([
|
|
1372
|
+
IsOptional15(),
|
|
1373
|
+
IsNumber3({}, { message: "Number of hours must be a number" }),
|
|
1374
|
+
Min2(0, { message: "Number of hours cannot be negative" }),
|
|
1375
|
+
Max2(40, { message: "Number of hours cannot exceed 40" }),
|
|
1376
|
+
Type3(() => Number)
|
|
1377
|
+
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
1378
|
+
__decorateClass([
|
|
1379
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1380
|
+
IsString15({ message: "Candidate communication skills must be a string" }),
|
|
1381
|
+
IsOptional15()
|
|
1382
|
+
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
1383
|
+
__decorateClass([
|
|
1384
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1385
|
+
IsNotEmpty32({ message: "Please enter the academic qualification" }),
|
|
1386
|
+
IsString15({ message: "Academic qualification must be a string" })
|
|
1387
|
+
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
1388
|
+
__decorateClass([
|
|
1389
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1390
|
+
IsEnum12(typeOfExperienceDtoEnumV2, {
|
|
1391
|
+
message: `Type of experience must be one of: ${Object.values(
|
|
1392
|
+
typeOfExperienceDtoEnumV2
|
|
1393
|
+
).join(", ")}`
|
|
1394
|
+
})
|
|
1395
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
1396
|
+
__decorateClass([
|
|
1397
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1398
|
+
IsNotEmpty32({ message: "Please enter the years of experience" }),
|
|
1399
|
+
IsString15({ message: "Years of experience must be a string" })
|
|
1400
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
1401
|
+
__decorateClass([
|
|
1402
|
+
ValidateIf4((o) => !o.isDraft),
|
|
1403
|
+
IsNotEmpty32({ message: "Please enter the years of experience upto" }),
|
|
1404
|
+
IsString15({ message: "Years of experience must be a string" })
|
|
1405
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
1406
|
+
__decorateClass([
|
|
1407
|
+
IsOptional15(),
|
|
1408
|
+
IsString15({ message: "Business industry must be a string" })
|
|
1409
|
+
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
1410
|
+
__decorateClass([
|
|
1411
|
+
IsOptional15(),
|
|
1412
|
+
IsString15({ message: "Additional comment must be a string" }),
|
|
1413
|
+
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1414
|
+
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1415
|
+
|
|
1218
1416
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1219
1417
|
var PROFILE_PATTERN = {
|
|
1220
1418
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1229,23 +1427,23 @@ var PROFILE_PATTERN = {
|
|
|
1229
1427
|
|
|
1230
1428
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1231
1429
|
import {
|
|
1232
|
-
IsString as
|
|
1233
|
-
IsNotEmpty as
|
|
1234
|
-
MaxLength as
|
|
1430
|
+
IsString as IsString16,
|
|
1431
|
+
IsNotEmpty as IsNotEmpty33,
|
|
1432
|
+
MaxLength as MaxLength10,
|
|
1235
1433
|
MinLength as MinLength7,
|
|
1236
1434
|
Matches as Matches8
|
|
1237
1435
|
} from "class-validator";
|
|
1238
1436
|
var FreelancerChangePasswordDto = class {
|
|
1239
1437
|
};
|
|
1240
1438
|
__decorateClass([
|
|
1241
|
-
|
|
1242
|
-
|
|
1439
|
+
IsNotEmpty33({ message: "Please enter Old Password." }),
|
|
1440
|
+
IsString16()
|
|
1243
1441
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1244
1442
|
__decorateClass([
|
|
1245
|
-
|
|
1246
|
-
|
|
1443
|
+
IsNotEmpty33({ message: "Please enter New Password." }),
|
|
1444
|
+
IsString16(),
|
|
1247
1445
|
MinLength7(6),
|
|
1248
|
-
|
|
1446
|
+
MaxLength10(32),
|
|
1249
1447
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1250
1448
|
message: "New Password must include letters, numbers and symbols."
|
|
1251
1449
|
})
|
|
@@ -1253,13 +1451,13 @@ __decorateClass([
|
|
|
1253
1451
|
|
|
1254
1452
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1255
1453
|
import {
|
|
1256
|
-
IsOptional as
|
|
1257
|
-
IsString as
|
|
1454
|
+
IsOptional as IsOptional16,
|
|
1455
|
+
IsString as IsString17,
|
|
1258
1456
|
IsEmail as IsEmail5,
|
|
1259
|
-
IsNumber as
|
|
1260
|
-
IsEnum as
|
|
1261
|
-
IsNotEmpty as
|
|
1262
|
-
ValidateIf as
|
|
1457
|
+
IsNumber as IsNumber4,
|
|
1458
|
+
IsEnum as IsEnum13,
|
|
1459
|
+
IsNotEmpty as IsNotEmpty34,
|
|
1460
|
+
ValidateIf as ValidateIf5,
|
|
1263
1461
|
IsInt
|
|
1264
1462
|
} from "class-validator";
|
|
1265
1463
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
@@ -1277,109 +1475,109 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1277
1475
|
var UpdateFreelancerProfileDto = class {
|
|
1278
1476
|
};
|
|
1279
1477
|
__decorateClass([
|
|
1280
|
-
|
|
1281
|
-
|
|
1478
|
+
IsNotEmpty34({ message: "Please enter first name." }),
|
|
1479
|
+
IsString17({ message: "Please enter valid first name." })
|
|
1282
1480
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1283
1481
|
__decorateClass([
|
|
1284
|
-
|
|
1285
|
-
|
|
1482
|
+
IsNotEmpty34({ message: "Please enter last name." }),
|
|
1483
|
+
IsString17({ message: "Please enter valid last name." })
|
|
1286
1484
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1287
1485
|
__decorateClass([
|
|
1288
|
-
|
|
1289
|
-
|
|
1486
|
+
IsNotEmpty34({ message: "Please enter designation." }),
|
|
1487
|
+
IsString17({ message: "Please enter valid designation." })
|
|
1290
1488
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1291
1489
|
__decorateClass([
|
|
1292
|
-
|
|
1293
|
-
|
|
1490
|
+
IsNotEmpty34({ message: "Please enter experience." }),
|
|
1491
|
+
IsString17({ message: "Please enter valid experience." })
|
|
1294
1492
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1295
1493
|
__decorateClass([
|
|
1296
|
-
|
|
1494
|
+
IsNotEmpty34({ message: "Please enter email id." }),
|
|
1297
1495
|
IsEmail5()
|
|
1298
1496
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1299
1497
|
__decorateClass([
|
|
1300
|
-
|
|
1301
|
-
|
|
1498
|
+
IsNotEmpty34({ message: "Please enter mobile code." }),
|
|
1499
|
+
IsString17({ message: "Please enter valid mobile code." })
|
|
1302
1500
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1303
1501
|
__decorateClass([
|
|
1304
|
-
|
|
1305
|
-
|
|
1502
|
+
IsNotEmpty34({ message: "Please enter mobile number." }),
|
|
1503
|
+
IsString17({ message: "Please enter valid mobile number." })
|
|
1306
1504
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1307
1505
|
__decorateClass([
|
|
1308
|
-
|
|
1309
|
-
|
|
1506
|
+
IsOptional16(),
|
|
1507
|
+
IsNumber4()
|
|
1310
1508
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1311
1509
|
__decorateClass([
|
|
1312
|
-
|
|
1313
|
-
|
|
1510
|
+
IsOptional16(),
|
|
1511
|
+
IsNumber4()
|
|
1314
1512
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1315
1513
|
__decorateClass([
|
|
1316
|
-
|
|
1317
|
-
|
|
1514
|
+
IsOptional16(),
|
|
1515
|
+
IsNumber4()
|
|
1318
1516
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1319
1517
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1320
1518
|
__decorateClass([
|
|
1321
|
-
|
|
1519
|
+
IsNotEmpty34({ message: "Please enter expected hourly compensation." })
|
|
1322
1520
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1323
1521
|
__decorateClass([
|
|
1324
|
-
|
|
1522
|
+
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1325
1523
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1326
|
-
|
|
1524
|
+
IsNotEmpty34({ message: "Please enter weekly availability hours" })
|
|
1327
1525
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1328
1526
|
__decorateClass([
|
|
1329
|
-
|
|
1330
|
-
|
|
1527
|
+
IsNotEmpty34({ message: "Please select engagement type." }),
|
|
1528
|
+
IsEnum13(NatureOfWorkDto, {
|
|
1331
1529
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1332
1530
|
NatureOfWorkDto
|
|
1333
1531
|
).join(", ")}`
|
|
1334
1532
|
})
|
|
1335
1533
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1336
1534
|
__decorateClass([
|
|
1337
|
-
|
|
1338
|
-
|
|
1535
|
+
IsNotEmpty34({ message: "Please select mode of work." }),
|
|
1536
|
+
IsEnum13(ModeOfWorkDto, {
|
|
1339
1537
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1340
1538
|
", "
|
|
1341
1539
|
)}`
|
|
1342
1540
|
})
|
|
1343
1541
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1344
1542
|
__decorateClass([
|
|
1345
|
-
|
|
1346
|
-
|
|
1543
|
+
IsOptional16(),
|
|
1544
|
+
IsString17()
|
|
1347
1545
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1348
1546
|
__decorateClass([
|
|
1349
|
-
|
|
1350
|
-
|
|
1547
|
+
IsNotEmpty34({ message: "Please enter address." }),
|
|
1548
|
+
IsString17()
|
|
1351
1549
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1352
1550
|
__decorateClass([
|
|
1353
|
-
|
|
1354
|
-
|
|
1551
|
+
IsOptional16(),
|
|
1552
|
+
IsString17()
|
|
1355
1553
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1356
1554
|
__decorateClass([
|
|
1357
|
-
|
|
1358
|
-
|
|
1555
|
+
IsNotEmpty34({ message: "Please enter postalCode." }),
|
|
1556
|
+
IsString17()
|
|
1359
1557
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1360
1558
|
__decorateClass([
|
|
1361
|
-
|
|
1362
|
-
|
|
1559
|
+
IsOptional16(),
|
|
1560
|
+
IsString17()
|
|
1363
1561
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1364
1562
|
__decorateClass([
|
|
1365
|
-
|
|
1366
|
-
|
|
1563
|
+
IsOptional16(),
|
|
1564
|
+
IsString17()
|
|
1367
1565
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1368
1566
|
__decorateClass([
|
|
1369
|
-
|
|
1370
|
-
|
|
1567
|
+
IsOptional16(),
|
|
1568
|
+
IsString17()
|
|
1371
1569
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1372
1570
|
__decorateClass([
|
|
1373
|
-
|
|
1374
|
-
|
|
1571
|
+
IsOptional16(),
|
|
1572
|
+
IsString17()
|
|
1375
1573
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1376
1574
|
__decorateClass([
|
|
1377
|
-
|
|
1378
|
-
|
|
1575
|
+
IsOptional16(),
|
|
1576
|
+
IsString17()
|
|
1379
1577
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1380
1578
|
__decorateClass([
|
|
1381
|
-
|
|
1382
|
-
|
|
1579
|
+
IsOptional16(),
|
|
1580
|
+
IsString17()
|
|
1383
1581
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1384
1582
|
|
|
1385
1583
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1391,11 +1589,11 @@ var BANK_PATTERN = {
|
|
|
1391
1589
|
|
|
1392
1590
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1393
1591
|
import {
|
|
1394
|
-
IsEnum as
|
|
1395
|
-
IsNotEmpty as
|
|
1396
|
-
IsOptional as
|
|
1397
|
-
IsString as
|
|
1398
|
-
ValidateIf as
|
|
1592
|
+
IsEnum as IsEnum14,
|
|
1593
|
+
IsNotEmpty as IsNotEmpty35,
|
|
1594
|
+
IsOptional as IsOptional17,
|
|
1595
|
+
IsString as IsString18,
|
|
1596
|
+
ValidateIf as ValidateIf6
|
|
1399
1597
|
} from "class-validator";
|
|
1400
1598
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1401
1599
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
@@ -1405,51 +1603,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1405
1603
|
var FreelancerBankDetailsDto = class {
|
|
1406
1604
|
};
|
|
1407
1605
|
__decorateClass([
|
|
1408
|
-
|
|
1606
|
+
IsNotEmpty35({ message: "Please enter Account Holder Name." })
|
|
1409
1607
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1410
1608
|
__decorateClass([
|
|
1411
|
-
|
|
1609
|
+
IsNotEmpty35({ message: "Please enter Mobile Code." })
|
|
1412
1610
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
1413
1611
|
__decorateClass([
|
|
1414
|
-
|
|
1612
|
+
IsNotEmpty35({ message: "Please enter Mobile Number." })
|
|
1415
1613
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1416
1614
|
__decorateClass([
|
|
1417
|
-
|
|
1615
|
+
IsNotEmpty35({ message: "Please enter Email." })
|
|
1418
1616
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1419
1617
|
__decorateClass([
|
|
1420
|
-
|
|
1618
|
+
IsOptional17()
|
|
1421
1619
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1422
1620
|
__decorateClass([
|
|
1423
|
-
|
|
1621
|
+
IsNotEmpty35({ message: "Please enter Account Number." })
|
|
1424
1622
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1425
1623
|
__decorateClass([
|
|
1426
|
-
|
|
1624
|
+
IsNotEmpty35({ message: "Please enter Bank Name." })
|
|
1427
1625
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1428
1626
|
__decorateClass([
|
|
1429
|
-
|
|
1430
|
-
|
|
1627
|
+
IsOptional17(),
|
|
1628
|
+
IsString18()
|
|
1431
1629
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1432
1630
|
__decorateClass([
|
|
1433
|
-
|
|
1434
|
-
|
|
1631
|
+
ValidateIf6((dto) => dto.accountScope === "DOMESTIC"),
|
|
1632
|
+
IsNotEmpty35({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1435
1633
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1436
1634
|
__decorateClass([
|
|
1437
|
-
|
|
1438
|
-
|
|
1635
|
+
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1636
|
+
IsNotEmpty35({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1439
1637
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1440
1638
|
__decorateClass([
|
|
1441
|
-
|
|
1442
|
-
|
|
1639
|
+
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1640
|
+
IsNotEmpty35({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1443
1641
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1444
1642
|
__decorateClass([
|
|
1445
|
-
|
|
1446
|
-
|
|
1643
|
+
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1644
|
+
IsNotEmpty35({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1447
1645
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1448
1646
|
__decorateClass([
|
|
1449
|
-
|
|
1647
|
+
IsOptional17()
|
|
1450
1648
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1451
1649
|
__decorateClass([
|
|
1452
|
-
|
|
1650
|
+
IsEnum14(BankAccountScope, {
|
|
1453
1651
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1454
1652
|
BankAccountScope
|
|
1455
1653
|
).join(", ")}`
|
|
@@ -1471,7 +1669,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1471
1669
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1472
1670
|
import {
|
|
1473
1671
|
IsBoolean as IsBoolean3,
|
|
1474
|
-
IsEnum as
|
|
1672
|
+
IsEnum as IsEnum15
|
|
1475
1673
|
} from "class-validator";
|
|
1476
1674
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1477
1675
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1484,7 +1682,7 @@ __decorateClass([
|
|
|
1484
1682
|
IsBoolean3()
|
|
1485
1683
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1486
1684
|
__decorateClass([
|
|
1487
|
-
|
|
1685
|
+
IsEnum15(SystemPreferenceKey, {
|
|
1488
1686
|
message: `key must be one of: ${Object.values(
|
|
1489
1687
|
SystemPreferenceKey
|
|
1490
1688
|
).join(", ")}`
|
|
@@ -1505,13 +1703,13 @@ var RATING_PATTERN = {
|
|
|
1505
1703
|
|
|
1506
1704
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1507
1705
|
import {
|
|
1508
|
-
IsEnum as
|
|
1706
|
+
IsEnum as IsEnum16,
|
|
1509
1707
|
IsInt as IsInt2,
|
|
1510
|
-
IsNotEmpty as
|
|
1511
|
-
IsOptional as
|
|
1512
|
-
IsString as
|
|
1513
|
-
Max as
|
|
1514
|
-
Min as
|
|
1708
|
+
IsNotEmpty as IsNotEmpty36,
|
|
1709
|
+
IsOptional as IsOptional18,
|
|
1710
|
+
IsString as IsString19,
|
|
1711
|
+
Max as Max3,
|
|
1712
|
+
Min as Min3
|
|
1515
1713
|
} from "class-validator";
|
|
1516
1714
|
|
|
1517
1715
|
// src/entities/rating.entity.ts
|
|
@@ -2734,6 +2932,9 @@ var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
|
2734
2932
|
})(AiInterviewStatusEnum || {});
|
|
2735
2933
|
var AiInterview = class extends BaseEntity {
|
|
2736
2934
|
};
|
|
2935
|
+
__decorateClass([
|
|
2936
|
+
Column15({ name: "ai_interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2937
|
+
], AiInterview.prototype, "aiInterviewUniqueId", 2);
|
|
2737
2938
|
__decorateClass([
|
|
2738
2939
|
Column15({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2739
2940
|
Index10()
|
|
@@ -5993,21 +6194,21 @@ var CreateRatingDto = class {
|
|
|
5993
6194
|
};
|
|
5994
6195
|
__decorateClass([
|
|
5995
6196
|
IsInt2({ message: "Reviewee ID must be a valid integer" }),
|
|
5996
|
-
|
|
6197
|
+
IsNotEmpty36({ message: "Reviewee ID is required" })
|
|
5997
6198
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
5998
6199
|
__decorateClass([
|
|
5999
|
-
|
|
6200
|
+
IsEnum16(RatingTypeEnum, {
|
|
6000
6201
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
6001
6202
|
})
|
|
6002
6203
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
6003
6204
|
__decorateClass([
|
|
6004
6205
|
IsInt2({ message: "Rating must be an integer value" }),
|
|
6005
|
-
|
|
6006
|
-
|
|
6206
|
+
Min3(1, { message: "Rating must be at least 1" }),
|
|
6207
|
+
Max3(5, { message: "Rating must be at most 5" })
|
|
6007
6208
|
], CreateRatingDto.prototype, "rating", 2);
|
|
6008
6209
|
__decorateClass([
|
|
6009
|
-
|
|
6010
|
-
|
|
6210
|
+
IsOptional18(),
|
|
6211
|
+
IsString19({ message: "Review must be a string" })
|
|
6011
6212
|
], CreateRatingDto.prototype, "review", 2);
|
|
6012
6213
|
|
|
6013
6214
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6023,48 +6224,48 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6023
6224
|
};
|
|
6024
6225
|
|
|
6025
6226
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6026
|
-
import { ArrayNotEmpty as
|
|
6227
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean4, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional19 } from "class-validator";
|
|
6027
6228
|
var CreateCompanyRoleDto = class {
|
|
6028
6229
|
};
|
|
6029
6230
|
__decorateClass([
|
|
6030
|
-
|
|
6231
|
+
IsNotEmpty37({ message: "Please enter company role name." })
|
|
6031
6232
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6032
6233
|
__decorateClass([
|
|
6033
|
-
|
|
6234
|
+
IsNotEmpty37({ message: "Please enter company role slug" })
|
|
6034
6235
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6035
6236
|
__decorateClass([
|
|
6036
|
-
|
|
6237
|
+
IsNotEmpty37({ message: "Please enter description" })
|
|
6037
6238
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6038
6239
|
__decorateClass([
|
|
6039
|
-
|
|
6040
|
-
|
|
6240
|
+
IsArray3({ message: "Permission IDs must be an array." }),
|
|
6241
|
+
ArrayNotEmpty3({ message: "Please select at least one permission." }),
|
|
6041
6242
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
6042
6243
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6043
6244
|
__decorateClass([
|
|
6044
|
-
|
|
6245
|
+
IsOptional19(),
|
|
6045
6246
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
6046
6247
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6047
6248
|
|
|
6048
6249
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6049
|
-
import { ArrayNotEmpty as
|
|
6250
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsBoolean as IsBoolean5, IsInt as IsInt4, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional20 } from "class-validator";
|
|
6050
6251
|
var UpdateCompanyRoleDto = class {
|
|
6051
6252
|
};
|
|
6052
6253
|
__decorateClass([
|
|
6053
|
-
|
|
6254
|
+
IsNotEmpty38({ message: "Please enter company name." })
|
|
6054
6255
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6055
6256
|
__decorateClass([
|
|
6056
|
-
|
|
6257
|
+
IsNotEmpty38({ message: "Please enter slug" })
|
|
6057
6258
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6058
6259
|
__decorateClass([
|
|
6059
|
-
|
|
6260
|
+
IsNotEmpty38({ message: "Please enter description" })
|
|
6060
6261
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6061
6262
|
__decorateClass([
|
|
6062
|
-
|
|
6063
|
-
|
|
6263
|
+
IsArray4({ message: "Permission IDs must be an array." }),
|
|
6264
|
+
ArrayNotEmpty4({ message: "Please select at least one permission." }),
|
|
6064
6265
|
IsInt4({ each: true, message: "Each permission ID must be an integer." })
|
|
6065
6266
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6066
6267
|
__decorateClass([
|
|
6067
|
-
|
|
6268
|
+
IsOptional20(),
|
|
6068
6269
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
6069
6270
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6070
6271
|
|
|
@@ -6085,41 +6286,41 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6085
6286
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6086
6287
|
import {
|
|
6087
6288
|
ArrayMinSize,
|
|
6088
|
-
IsNotEmpty as
|
|
6089
|
-
IsOptional as
|
|
6090
|
-
IsString as
|
|
6091
|
-
MaxLength as
|
|
6092
|
-
ValidateNested
|
|
6289
|
+
IsNotEmpty as IsNotEmpty39,
|
|
6290
|
+
IsOptional as IsOptional21,
|
|
6291
|
+
IsString as IsString22,
|
|
6292
|
+
MaxLength as MaxLength12,
|
|
6293
|
+
ValidateNested as ValidateNested2
|
|
6093
6294
|
} from "class-validator";
|
|
6094
|
-
import { Type as
|
|
6295
|
+
import { Type as Type4 } from "class-transformer";
|
|
6095
6296
|
var ExperienceDto = class {
|
|
6096
6297
|
};
|
|
6097
6298
|
__decorateClass([
|
|
6098
|
-
|
|
6299
|
+
IsOptional21()
|
|
6099
6300
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6100
6301
|
__decorateClass([
|
|
6101
|
-
|
|
6102
|
-
|
|
6302
|
+
IsNotEmpty39(),
|
|
6303
|
+
IsString22()
|
|
6103
6304
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6104
6305
|
__decorateClass([
|
|
6105
|
-
|
|
6106
|
-
|
|
6306
|
+
IsNotEmpty39(),
|
|
6307
|
+
IsString22()
|
|
6107
6308
|
], ExperienceDto.prototype, "designation", 2);
|
|
6108
6309
|
__decorateClass([
|
|
6109
|
-
|
|
6110
|
-
|
|
6310
|
+
IsNotEmpty39(),
|
|
6311
|
+
IsString22()
|
|
6111
6312
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6112
6313
|
__decorateClass([
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6314
|
+
IsOptional21(),
|
|
6315
|
+
IsString22(),
|
|
6316
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6116
6317
|
], ExperienceDto.prototype, "description", 2);
|
|
6117
6318
|
var FreelancerExperienceDto = class {
|
|
6118
6319
|
};
|
|
6119
6320
|
__decorateClass([
|
|
6120
|
-
|
|
6321
|
+
ValidateNested2({ each: true }),
|
|
6121
6322
|
ArrayMinSize(1, { message: "At least one experience is required." }),
|
|
6122
|
-
|
|
6323
|
+
Type4(() => ExperienceDto)
|
|
6123
6324
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
6124
6325
|
|
|
6125
6326
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -6135,34 +6336,34 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6135
6336
|
};
|
|
6136
6337
|
|
|
6137
6338
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6138
|
-
import { ArrayNotEmpty as
|
|
6339
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty40 } from "class-validator";
|
|
6139
6340
|
var CreateCompanyMemberDto = class {
|
|
6140
6341
|
};
|
|
6141
6342
|
__decorateClass([
|
|
6142
|
-
|
|
6343
|
+
IsNotEmpty40({ message: "Please enter name." })
|
|
6143
6344
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6144
6345
|
__decorateClass([
|
|
6145
|
-
|
|
6346
|
+
IsNotEmpty40({ message: "Please enter email" })
|
|
6146
6347
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6147
6348
|
__decorateClass([
|
|
6148
|
-
|
|
6149
|
-
|
|
6349
|
+
IsArray5({ message: "Role IDs must be an array." }),
|
|
6350
|
+
ArrayNotEmpty5({ message: "Please select at least one role." }),
|
|
6150
6351
|
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
6151
6352
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6152
6353
|
|
|
6153
6354
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6154
|
-
import { ArrayNotEmpty as
|
|
6355
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray6, IsInt as IsInt6, IsNotEmpty as IsNotEmpty41 } from "class-validator";
|
|
6155
6356
|
var UpdateCompanyMemberDto = class {
|
|
6156
6357
|
};
|
|
6157
6358
|
__decorateClass([
|
|
6158
|
-
|
|
6359
|
+
IsNotEmpty41({ message: "Please enter name." })
|
|
6159
6360
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6160
6361
|
__decorateClass([
|
|
6161
|
-
|
|
6362
|
+
IsNotEmpty41({ message: "Please enter email" })
|
|
6162
6363
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6163
6364
|
__decorateClass([
|
|
6164
|
-
|
|
6165
|
-
|
|
6365
|
+
IsArray6({ message: "Role IDs must be an array." }),
|
|
6366
|
+
ArrayNotEmpty6({ message: "Please select at least one role." }),
|
|
6166
6367
|
IsInt6({ each: true, message: "Each role ID must be an integer." })
|
|
6167
6368
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6168
6369
|
|
|
@@ -6181,32 +6382,32 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6181
6382
|
};
|
|
6182
6383
|
|
|
6183
6384
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6184
|
-
import { IsArray as
|
|
6185
|
-
import { Type as
|
|
6385
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString25, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional24, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
6386
|
+
import { Type as Type5 } from "class-transformer";
|
|
6186
6387
|
var EducationDto = class {
|
|
6187
6388
|
};
|
|
6188
6389
|
__decorateClass([
|
|
6189
|
-
|
|
6390
|
+
IsOptional24()
|
|
6190
6391
|
], EducationDto.prototype, "uuid", 2);
|
|
6191
6392
|
__decorateClass([
|
|
6192
|
-
|
|
6193
|
-
|
|
6393
|
+
IsString25(),
|
|
6394
|
+
IsNotEmpty42({ message: "Please Enter Degree " })
|
|
6194
6395
|
], EducationDto.prototype, "degree", 2);
|
|
6195
6396
|
__decorateClass([
|
|
6196
|
-
|
|
6197
|
-
|
|
6397
|
+
IsString25(),
|
|
6398
|
+
IsNotEmpty42({ message: "Please Enter University " })
|
|
6198
6399
|
], EducationDto.prototype, "university", 2);
|
|
6199
6400
|
__decorateClass([
|
|
6200
|
-
|
|
6201
|
-
|
|
6401
|
+
IsString25(),
|
|
6402
|
+
IsNotEmpty42({ message: "Please Enter Year of Graduation " })
|
|
6202
6403
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6203
6404
|
var FreelancerEducationDto = class {
|
|
6204
6405
|
};
|
|
6205
6406
|
__decorateClass([
|
|
6206
|
-
|
|
6407
|
+
IsArray7(),
|
|
6207
6408
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
6208
|
-
|
|
6209
|
-
|
|
6409
|
+
ValidateNested3({ each: true }),
|
|
6410
|
+
Type5(() => EducationDto)
|
|
6210
6411
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
6211
6412
|
|
|
6212
6413
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -6216,68 +6417,68 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6216
6417
|
};
|
|
6217
6418
|
|
|
6218
6419
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6219
|
-
import { IsArray as
|
|
6220
|
-
import { Type as
|
|
6420
|
+
import { IsArray as IsArray8, ValidateNested as ValidateNested4, IsString as IsString26, IsNotEmpty as IsNotEmpty43, IsOptional as IsOptional25, IsDateString, MaxLength as MaxLength14, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
6421
|
+
import { Type as Type6 } from "class-transformer";
|
|
6221
6422
|
var ProjectDto = class {
|
|
6222
6423
|
};
|
|
6223
6424
|
__decorateClass([
|
|
6224
|
-
|
|
6425
|
+
IsOptional25()
|
|
6225
6426
|
], ProjectDto.prototype, "uuid", 2);
|
|
6226
6427
|
__decorateClass([
|
|
6227
|
-
|
|
6228
|
-
|
|
6428
|
+
IsString26(),
|
|
6429
|
+
IsNotEmpty43({ message: "Please Enter Project Name " })
|
|
6229
6430
|
], ProjectDto.prototype, "projectName", 2);
|
|
6230
6431
|
__decorateClass([
|
|
6231
6432
|
IsDateString(),
|
|
6232
|
-
|
|
6433
|
+
IsNotEmpty43({ message: "Please Enter Start Date " })
|
|
6233
6434
|
], ProjectDto.prototype, "startDate", 2);
|
|
6234
6435
|
__decorateClass([
|
|
6235
6436
|
IsDateString(),
|
|
6236
|
-
|
|
6437
|
+
IsNotEmpty43({ message: "Please Enter End Date " })
|
|
6237
6438
|
], ProjectDto.prototype, "endDate", 2);
|
|
6238
6439
|
__decorateClass([
|
|
6239
|
-
|
|
6240
|
-
|
|
6440
|
+
IsOptional25(),
|
|
6441
|
+
IsString26()
|
|
6241
6442
|
], ProjectDto.prototype, "clientName", 2);
|
|
6242
6443
|
__decorateClass([
|
|
6243
|
-
|
|
6244
|
-
|
|
6444
|
+
IsOptional25(),
|
|
6445
|
+
IsString26()
|
|
6245
6446
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6246
6447
|
__decorateClass([
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6448
|
+
IsOptional25(),
|
|
6449
|
+
IsString26(),
|
|
6450
|
+
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6250
6451
|
], ProjectDto.prototype, "description", 2);
|
|
6251
6452
|
var CaseStudyDto = class {
|
|
6252
6453
|
};
|
|
6253
6454
|
__decorateClass([
|
|
6254
|
-
|
|
6455
|
+
IsOptional25()
|
|
6255
6456
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6256
6457
|
__decorateClass([
|
|
6257
|
-
|
|
6258
|
-
|
|
6458
|
+
IsString26(),
|
|
6459
|
+
IsNotEmpty43({ message: "Please Enter Project Name " })
|
|
6259
6460
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6260
6461
|
__decorateClass([
|
|
6261
|
-
|
|
6262
|
-
|
|
6462
|
+
IsOptional25(),
|
|
6463
|
+
IsString26()
|
|
6263
6464
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6264
6465
|
__decorateClass([
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6466
|
+
IsOptional25(),
|
|
6467
|
+
IsString26(),
|
|
6468
|
+
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6268
6469
|
], CaseStudyDto.prototype, "description", 2);
|
|
6269
6470
|
var FreelancerProjectDto = class {
|
|
6270
6471
|
};
|
|
6271
6472
|
__decorateClass([
|
|
6272
|
-
|
|
6473
|
+
IsArray8(),
|
|
6273
6474
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
6274
|
-
|
|
6275
|
-
|
|
6475
|
+
ValidateNested4({ each: true }),
|
|
6476
|
+
Type6(() => ProjectDto)
|
|
6276
6477
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
6277
6478
|
__decorateClass([
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6479
|
+
IsArray8(),
|
|
6480
|
+
ValidateNested4({ each: true }),
|
|
6481
|
+
Type6(() => CaseStudyDto)
|
|
6281
6482
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
6282
6483
|
|
|
6283
6484
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -6292,8 +6493,8 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
6292
6493
|
};
|
|
6293
6494
|
|
|
6294
6495
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
6295
|
-
import { IsArray as
|
|
6296
|
-
import { Type as
|
|
6496
|
+
import { IsArray as IsArray9, IsString as IsString27, IsOptional as IsOptional26 } from "class-validator";
|
|
6497
|
+
import { Type as Type7 } from "class-transformer";
|
|
6297
6498
|
var FreelancerSkillDto = class {
|
|
6298
6499
|
constructor() {
|
|
6299
6500
|
this.coreSkills = [];
|
|
@@ -6303,28 +6504,28 @@ var FreelancerSkillDto = class {
|
|
|
6303
6504
|
}
|
|
6304
6505
|
};
|
|
6305
6506
|
__decorateClass([
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6507
|
+
IsOptional26(),
|
|
6508
|
+
IsArray9(),
|
|
6509
|
+
Type7(() => String),
|
|
6510
|
+
IsString27({ each: true })
|
|
6310
6511
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
6311
6512
|
__decorateClass([
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6513
|
+
IsOptional26(),
|
|
6514
|
+
IsArray9(),
|
|
6515
|
+
Type7(() => String),
|
|
6516
|
+
IsString27({ each: true })
|
|
6316
6517
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
6317
6518
|
__decorateClass([
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6519
|
+
IsOptional26(),
|
|
6520
|
+
IsArray9(),
|
|
6521
|
+
Type7(() => String),
|
|
6522
|
+
IsString27({ each: true })
|
|
6322
6523
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
6323
6524
|
__decorateClass([
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6525
|
+
IsOptional26(),
|
|
6526
|
+
IsArray9(),
|
|
6527
|
+
Type7(() => String),
|
|
6528
|
+
IsString27({ each: true })
|
|
6328
6529
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
6329
6530
|
|
|
6330
6531
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -6341,21 +6542,21 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
6341
6542
|
|
|
6342
6543
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
6343
6544
|
import {
|
|
6344
|
-
IsString as
|
|
6545
|
+
IsString as IsString28,
|
|
6345
6546
|
IsEmail as IsEmail10,
|
|
6346
6547
|
IsBoolean as IsBoolean10,
|
|
6347
|
-
IsOptional as
|
|
6348
|
-
IsEnum as
|
|
6349
|
-
IsNumber as
|
|
6548
|
+
IsOptional as IsOptional27,
|
|
6549
|
+
IsEnum as IsEnum17,
|
|
6550
|
+
IsNumber as IsNumber5,
|
|
6350
6551
|
IsUrl as IsUrl3,
|
|
6351
|
-
Min as
|
|
6352
|
-
MaxLength as
|
|
6353
|
-
IsNotEmpty as
|
|
6552
|
+
Min as Min4,
|
|
6553
|
+
MaxLength as MaxLength16,
|
|
6554
|
+
IsNotEmpty as IsNotEmpty45,
|
|
6354
6555
|
MinLength as MinLength12,
|
|
6355
6556
|
Matches as Matches9,
|
|
6356
|
-
ValidateIf as
|
|
6557
|
+
ValidateIf as ValidateIf7
|
|
6357
6558
|
} from "class-validator";
|
|
6358
|
-
import { Type as
|
|
6559
|
+
import { Type as Type8 } from "class-transformer";
|
|
6359
6560
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6360
6561
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6361
6562
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6371,48 +6572,48 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6371
6572
|
var CreateFreelancerDto = class {
|
|
6372
6573
|
};
|
|
6373
6574
|
__decorateClass([
|
|
6374
|
-
|
|
6375
|
-
|
|
6575
|
+
IsString28({ message: "Full name must be a string" }),
|
|
6576
|
+
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
6376
6577
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
6377
6578
|
__decorateClass([
|
|
6378
6579
|
IsEmail10({}, { message: "Invalid email address" })
|
|
6379
6580
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
6380
6581
|
__decorateClass([
|
|
6381
|
-
|
|
6582
|
+
IsString28({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6382
6583
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
6383
6584
|
__decorateClass([
|
|
6384
|
-
|
|
6585
|
+
IsString28({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6385
6586
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
6386
6587
|
__decorateClass([
|
|
6387
|
-
|
|
6588
|
+
IsNotEmpty45({ message: "Please enter password." }),
|
|
6388
6589
|
MinLength12(6),
|
|
6389
|
-
|
|
6590
|
+
MaxLength16(32),
|
|
6390
6591
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6391
6592
|
message: "Password must include letters, numbers and symbols."
|
|
6392
6593
|
})
|
|
6393
6594
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
6394
6595
|
__decorateClass([
|
|
6395
|
-
|
|
6596
|
+
IsNotEmpty45({ message: "Please enter confirm password." }),
|
|
6396
6597
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6397
6598
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
6398
6599
|
__decorateClass([
|
|
6399
6600
|
IsBoolean10({ message: "Developer flag must be true or false" }),
|
|
6400
|
-
|
|
6601
|
+
Type8(() => Boolean)
|
|
6401
6602
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
6402
6603
|
__decorateClass([
|
|
6403
|
-
|
|
6604
|
+
IsEnum17(NatureOfWorkEnum, {
|
|
6404
6605
|
message: `Nature of work must be one of: ${Object.values(
|
|
6405
6606
|
NatureOfWorkEnum
|
|
6406
6607
|
).join(", ")}`
|
|
6407
6608
|
})
|
|
6408
6609
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6409
6610
|
__decorateClass([
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6611
|
+
IsNumber5({}, { message: "Expected hourly compensation must be a number" }),
|
|
6612
|
+
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6613
|
+
Type8(() => Number)
|
|
6413
6614
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6414
6615
|
__decorateClass([
|
|
6415
|
-
|
|
6616
|
+
IsEnum17(ModeOfWorkEnum, {
|
|
6416
6617
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
6417
6618
|
", "
|
|
6418
6619
|
)}`
|
|
@@ -6420,50 +6621,50 @@ __decorateClass([
|
|
|
6420
6621
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6421
6622
|
__decorateClass([
|
|
6422
6623
|
IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
|
|
6423
|
-
|
|
6624
|
+
Type8(() => Boolean)
|
|
6424
6625
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6425
6626
|
__decorateClass([
|
|
6426
|
-
|
|
6427
|
-
|
|
6627
|
+
ValidateIf7((o) => o.isImmediateJoiner === false),
|
|
6628
|
+
IsNotEmpty45({ message: "Please enter availability to join." })
|
|
6428
6629
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6429
6630
|
__decorateClass([
|
|
6430
|
-
|
|
6631
|
+
IsOptional27(),
|
|
6431
6632
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6432
6633
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6433
6634
|
__decorateClass([
|
|
6434
|
-
|
|
6435
|
-
|
|
6635
|
+
IsOptional27(),
|
|
6636
|
+
IsString28({ message: "Kaggle profile link must be a string" })
|
|
6436
6637
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6437
6638
|
__decorateClass([
|
|
6438
|
-
|
|
6639
|
+
IsOptional27(),
|
|
6439
6640
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
6440
6641
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6441
6642
|
__decorateClass([
|
|
6442
|
-
|
|
6643
|
+
IsOptional27(),
|
|
6443
6644
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6444
6645
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6445
6646
|
__decorateClass([
|
|
6446
|
-
|
|
6647
|
+
IsOptional27(),
|
|
6447
6648
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
6448
6649
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6449
6650
|
|
|
6450
6651
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
6451
6652
|
import {
|
|
6452
|
-
IsString as
|
|
6653
|
+
IsString as IsString29,
|
|
6453
6654
|
IsEmail as IsEmail11,
|
|
6454
6655
|
IsBoolean as IsBoolean11,
|
|
6455
|
-
IsOptional as
|
|
6456
|
-
IsEnum as
|
|
6457
|
-
IsNumber as
|
|
6656
|
+
IsOptional as IsOptional28,
|
|
6657
|
+
IsEnum as IsEnum18,
|
|
6658
|
+
IsNumber as IsNumber6,
|
|
6458
6659
|
IsUrl as IsUrl4,
|
|
6459
|
-
Min as
|
|
6460
|
-
MaxLength as
|
|
6660
|
+
Min as Min5,
|
|
6661
|
+
MaxLength as MaxLength17,
|
|
6461
6662
|
MinLength as MinLength13,
|
|
6462
6663
|
Matches as Matches10,
|
|
6463
|
-
IsNotEmpty as
|
|
6464
|
-
ValidateIf as
|
|
6664
|
+
IsNotEmpty as IsNotEmpty46,
|
|
6665
|
+
ValidateIf as ValidateIf8
|
|
6465
6666
|
} from "class-validator";
|
|
6466
|
-
import { Transform as Transform2, Type as
|
|
6667
|
+
import { Transform as Transform2, Type as Type9 } from "class-transformer";
|
|
6467
6668
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6468
6669
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6469
6670
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6479,85 +6680,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6479
6680
|
var UpdateFreelancerDto = class {
|
|
6480
6681
|
};
|
|
6481
6682
|
__decorateClass([
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6683
|
+
IsOptional28(),
|
|
6684
|
+
IsString29({ message: "Full name must be a string" }),
|
|
6685
|
+
MaxLength17(100, { message: "Full name must not exceed 100 characters" })
|
|
6485
6686
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
6486
6687
|
__decorateClass([
|
|
6487
|
-
|
|
6688
|
+
IsOptional28(),
|
|
6488
6689
|
IsEmail11({}, { message: "Invalid email address" })
|
|
6489
6690
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
6490
6691
|
__decorateClass([
|
|
6491
|
-
|
|
6492
|
-
|
|
6692
|
+
IsOptional28(),
|
|
6693
|
+
IsString29({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6493
6694
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
6494
6695
|
__decorateClass([
|
|
6495
|
-
|
|
6496
|
-
|
|
6696
|
+
IsOptional28(),
|
|
6697
|
+
IsString29({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6497
6698
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
6498
6699
|
__decorateClass([
|
|
6499
|
-
|
|
6700
|
+
IsOptional28(),
|
|
6500
6701
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6501
6702
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
6502
|
-
|
|
6703
|
+
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
6503
6704
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6504
6705
|
message: "Password must include letters, numbers and symbols."
|
|
6505
6706
|
})
|
|
6506
6707
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
6507
6708
|
__decorateClass([
|
|
6508
|
-
|
|
6709
|
+
IsOptional28(),
|
|
6509
6710
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
6510
|
-
|
|
6711
|
+
Type9(() => Boolean)
|
|
6511
6712
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
6512
6713
|
__decorateClass([
|
|
6513
|
-
|
|
6514
|
-
|
|
6714
|
+
IsOptional28(),
|
|
6715
|
+
IsEnum18(NatureOfWorkEnum2, {
|
|
6515
6716
|
message: `Nature of work must be one of: ${Object.values(
|
|
6516
6717
|
NatureOfWorkEnum2
|
|
6517
6718
|
).join(", ")}`
|
|
6518
6719
|
})
|
|
6519
6720
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6520
6721
|
__decorateClass([
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6722
|
+
IsOptional28(),
|
|
6723
|
+
IsNumber6({}, { message: "Expected hourly compensation must be a number" }),
|
|
6724
|
+
Min5(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6725
|
+
Type9(() => Number)
|
|
6525
6726
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6526
6727
|
__decorateClass([
|
|
6527
|
-
|
|
6528
|
-
|
|
6728
|
+
IsOptional28(),
|
|
6729
|
+
IsEnum18(ModeOfWorkEnum2, {
|
|
6529
6730
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
6530
6731
|
", "
|
|
6531
6732
|
)}`
|
|
6532
6733
|
})
|
|
6533
6734
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6534
6735
|
__decorateClass([
|
|
6535
|
-
|
|
6736
|
+
IsOptional28(),
|
|
6536
6737
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
6537
|
-
|
|
6738
|
+
Type9(() => Boolean)
|
|
6538
6739
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6539
6740
|
__decorateClass([
|
|
6540
|
-
|
|
6541
|
-
|
|
6741
|
+
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
6742
|
+
IsNotEmpty46({ message: "Please enter availability to join." })
|
|
6542
6743
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6543
6744
|
__decorateClass([
|
|
6544
|
-
|
|
6745
|
+
IsOptional28(),
|
|
6545
6746
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6546
6747
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6547
6748
|
__decorateClass([
|
|
6548
|
-
|
|
6549
|
-
|
|
6749
|
+
IsOptional28(),
|
|
6750
|
+
IsString29({ message: "Kaggle profile link must be a string" })
|
|
6550
6751
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6551
6752
|
__decorateClass([
|
|
6552
|
-
|
|
6753
|
+
IsOptional28(),
|
|
6553
6754
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
6554
6755
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6555
6756
|
__decorateClass([
|
|
6556
|
-
|
|
6757
|
+
IsOptional28(),
|
|
6557
6758
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6558
6759
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6559
6760
|
__decorateClass([
|
|
6560
|
-
|
|
6761
|
+
IsOptional28(),
|
|
6561
6762
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
6562
6763
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6563
6764
|
|
|
@@ -6576,14 +6777,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
6576
6777
|
|
|
6577
6778
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
6578
6779
|
import {
|
|
6579
|
-
IsNotEmpty as
|
|
6780
|
+
IsNotEmpty as IsNotEmpty47,
|
|
6580
6781
|
IsEmail as IsEmail12,
|
|
6581
|
-
IsOptional as
|
|
6582
|
-
IsString as
|
|
6583
|
-
IsArray as
|
|
6782
|
+
IsOptional as IsOptional29,
|
|
6783
|
+
IsString as IsString30,
|
|
6784
|
+
IsArray as IsArray10,
|
|
6584
6785
|
MinLength as MinLength14,
|
|
6585
|
-
MaxLength as
|
|
6586
|
-
IsEnum as
|
|
6786
|
+
MaxLength as MaxLength18,
|
|
6787
|
+
IsEnum as IsEnum19,
|
|
6587
6788
|
Matches as Matches11
|
|
6588
6789
|
} from "class-validator";
|
|
6589
6790
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -6601,78 +6802,78 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
6601
6802
|
var CreateClientDto = class {
|
|
6602
6803
|
};
|
|
6603
6804
|
__decorateClass([
|
|
6604
|
-
|
|
6605
|
-
|
|
6805
|
+
IsNotEmpty47({ message: "Please enter first name." }),
|
|
6806
|
+
IsString30()
|
|
6606
6807
|
], CreateClientDto.prototype, "firstName", 2);
|
|
6607
6808
|
__decorateClass([
|
|
6608
|
-
|
|
6609
|
-
|
|
6809
|
+
IsNotEmpty47({ message: "Please enter last name." }),
|
|
6810
|
+
IsString30()
|
|
6610
6811
|
], CreateClientDto.prototype, "lastName", 2);
|
|
6611
6812
|
__decorateClass([
|
|
6612
|
-
|
|
6813
|
+
IsNotEmpty47({ message: "Please enter email." }),
|
|
6613
6814
|
IsEmail12()
|
|
6614
6815
|
], CreateClientDto.prototype, "email", 2);
|
|
6615
6816
|
__decorateClass([
|
|
6616
|
-
|
|
6817
|
+
IsNotEmpty47({ message: "Please enter password." }),
|
|
6617
6818
|
MinLength14(6),
|
|
6618
|
-
|
|
6819
|
+
MaxLength18(32),
|
|
6619
6820
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6620
6821
|
message: "Password must include letters, numbers and symbols."
|
|
6621
6822
|
})
|
|
6622
6823
|
], CreateClientDto.prototype, "password", 2);
|
|
6623
6824
|
__decorateClass([
|
|
6624
|
-
|
|
6825
|
+
IsNotEmpty47({ message: "Please enter confirm password." }),
|
|
6625
6826
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6626
6827
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
6627
6828
|
__decorateClass([
|
|
6628
|
-
|
|
6629
|
-
|
|
6829
|
+
IsNotEmpty47({ message: "Please enter company name." }),
|
|
6830
|
+
IsString30()
|
|
6630
6831
|
], CreateClientDto.prototype, "companyName", 2);
|
|
6631
6832
|
__decorateClass([
|
|
6632
|
-
|
|
6633
|
-
|
|
6833
|
+
IsArray10({ message: "Skills should be an array." }),
|
|
6834
|
+
IsNotEmpty47({ message: "Please enter skills." })
|
|
6634
6835
|
], CreateClientDto.prototype, "skills", 2);
|
|
6635
6836
|
__decorateClass([
|
|
6636
|
-
|
|
6637
|
-
|
|
6837
|
+
IsNotEmpty47({ message: "Please specify required freelancer count." }),
|
|
6838
|
+
IsString30()
|
|
6638
6839
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
6639
6840
|
__decorateClass([
|
|
6640
|
-
|
|
6641
|
-
|
|
6841
|
+
IsNotEmpty47({ message: "Please specify the kind of hiring." }),
|
|
6842
|
+
IsEnum19(CreateClientHiringTypeEnum)
|
|
6642
6843
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
6643
6844
|
__decorateClass([
|
|
6644
|
-
|
|
6645
|
-
|
|
6845
|
+
IsNotEmpty47({ message: "Please specify the mode of hire." }),
|
|
6846
|
+
IsEnum19(CreateClientHiringModeEnum)
|
|
6646
6847
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
6647
6848
|
__decorateClass([
|
|
6648
|
-
|
|
6649
|
-
|
|
6849
|
+
IsNotEmpty47({ message: "Please let us know how you found us." }),
|
|
6850
|
+
IsString30()
|
|
6650
6851
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
6651
6852
|
__decorateClass([
|
|
6652
|
-
|
|
6653
|
-
|
|
6853
|
+
IsOptional29(),
|
|
6854
|
+
IsString30()
|
|
6654
6855
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6655
6856
|
|
|
6656
6857
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
6657
|
-
import { IsString as
|
|
6858
|
+
import { IsString as IsString31, IsNotEmpty as IsNotEmpty48 } from "class-validator";
|
|
6658
6859
|
var UpdateClientAccountStatusDto = class {
|
|
6659
6860
|
};
|
|
6660
6861
|
__decorateClass([
|
|
6661
|
-
|
|
6662
|
-
|
|
6862
|
+
IsNotEmpty48({ message: "Please enter account status." }),
|
|
6863
|
+
IsString31()
|
|
6663
6864
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
6664
6865
|
|
|
6665
6866
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
6666
6867
|
import { Transform as Transform3 } from "class-transformer";
|
|
6667
6868
|
import {
|
|
6668
|
-
IsNotEmpty as
|
|
6869
|
+
IsNotEmpty as IsNotEmpty49,
|
|
6669
6870
|
IsEmail as IsEmail13,
|
|
6670
|
-
IsOptional as
|
|
6671
|
-
IsString as
|
|
6672
|
-
IsArray as
|
|
6871
|
+
IsOptional as IsOptional30,
|
|
6872
|
+
IsString as IsString32,
|
|
6873
|
+
IsArray as IsArray11,
|
|
6673
6874
|
MinLength as MinLength15,
|
|
6674
|
-
MaxLength as
|
|
6675
|
-
IsEnum as
|
|
6875
|
+
MaxLength as MaxLength19,
|
|
6876
|
+
IsEnum as IsEnum20,
|
|
6676
6877
|
Matches as Matches12
|
|
6677
6878
|
} from "class-validator";
|
|
6678
6879
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -6690,53 +6891,53 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
6690
6891
|
var UpdateClientDto = class {
|
|
6691
6892
|
};
|
|
6692
6893
|
__decorateClass([
|
|
6693
|
-
|
|
6694
|
-
|
|
6894
|
+
IsNotEmpty49({ message: "Please enter first name." }),
|
|
6895
|
+
IsString32()
|
|
6695
6896
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
6696
6897
|
__decorateClass([
|
|
6697
|
-
|
|
6698
|
-
|
|
6898
|
+
IsNotEmpty49({ message: "Please enter last name." }),
|
|
6899
|
+
IsString32()
|
|
6699
6900
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
6700
6901
|
__decorateClass([
|
|
6701
|
-
|
|
6902
|
+
IsNotEmpty49({ message: "Please enter email." }),
|
|
6702
6903
|
IsEmail13()
|
|
6703
6904
|
], UpdateClientDto.prototype, "email", 2);
|
|
6704
6905
|
__decorateClass([
|
|
6705
|
-
|
|
6906
|
+
IsOptional30(),
|
|
6706
6907
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6707
6908
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
6708
|
-
|
|
6909
|
+
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
6709
6910
|
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6710
6911
|
message: "Password must include letters, numbers and symbols."
|
|
6711
6912
|
})
|
|
6712
6913
|
], UpdateClientDto.prototype, "password", 2);
|
|
6713
6914
|
__decorateClass([
|
|
6714
|
-
|
|
6715
|
-
|
|
6915
|
+
IsNotEmpty49({ message: "Please enter company name." }),
|
|
6916
|
+
IsString32()
|
|
6716
6917
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
6717
6918
|
__decorateClass([
|
|
6718
|
-
|
|
6719
|
-
|
|
6919
|
+
IsArray11({ message: "Skills should be an array." }),
|
|
6920
|
+
IsNotEmpty49({ message: "Please enter skills." })
|
|
6720
6921
|
], UpdateClientDto.prototype, "skills", 2);
|
|
6721
6922
|
__decorateClass([
|
|
6722
|
-
|
|
6723
|
-
|
|
6923
|
+
IsNotEmpty49({ message: "Please specify required freelancer count." }),
|
|
6924
|
+
IsString32()
|
|
6724
6925
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
6725
6926
|
__decorateClass([
|
|
6726
|
-
|
|
6727
|
-
|
|
6927
|
+
IsNotEmpty49({ message: "Please specify the kind of hiring." }),
|
|
6928
|
+
IsEnum20(UpdateClientHiringTypeEnum)
|
|
6728
6929
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
6729
6930
|
__decorateClass([
|
|
6730
|
-
|
|
6731
|
-
|
|
6931
|
+
IsNotEmpty49({ message: "Please specify the mode of hire." }),
|
|
6932
|
+
IsEnum20(UpdateClientHiringModeEnum)
|
|
6732
6933
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
6733
6934
|
__decorateClass([
|
|
6734
|
-
|
|
6735
|
-
|
|
6935
|
+
IsNotEmpty49({ message: "Please let us know how you found us." }),
|
|
6936
|
+
IsString32()
|
|
6736
6937
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
6737
6938
|
__decorateClass([
|
|
6738
|
-
|
|
6739
|
-
|
|
6939
|
+
IsOptional30(),
|
|
6940
|
+
IsString32()
|
|
6740
6941
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6741
6942
|
|
|
6742
6943
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -6746,7 +6947,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
6746
6947
|
};
|
|
6747
6948
|
|
|
6748
6949
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
6749
|
-
import { IsOptional as
|
|
6950
|
+
import { IsOptional as IsOptional31, IsEnum as IsEnum21, IsString as IsString33, IsNotEmpty as IsNotEmpty50, IsIn as IsIn3 } from "class-validator";
|
|
6750
6951
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
6751
6952
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
6752
6953
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -6757,15 +6958,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
6757
6958
|
var FreelancerDeclarationDto = class {
|
|
6758
6959
|
};
|
|
6759
6960
|
__decorateClass([
|
|
6760
|
-
|
|
6761
|
-
|
|
6961
|
+
IsOptional31(),
|
|
6962
|
+
IsString33({ message: "UUID must be a string" })
|
|
6762
6963
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
6763
6964
|
__decorateClass([
|
|
6764
|
-
|
|
6965
|
+
IsEnum21(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
6765
6966
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
6766
6967
|
__decorateClass([
|
|
6767
|
-
|
|
6768
|
-
|
|
6968
|
+
IsNotEmpty50({ message: "Please accept the declaration " }),
|
|
6969
|
+
IsString33(),
|
|
6769
6970
|
IsIn3([
|
|
6770
6971
|
"true"
|
|
6771
6972
|
])
|
|
@@ -6781,35 +6982,35 @@ var CMS_PATTERNS = {
|
|
|
6781
6982
|
};
|
|
6782
6983
|
|
|
6783
6984
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
6784
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as
|
|
6985
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional32 } from "class-validator";
|
|
6785
6986
|
var CreateCmsDto = class {
|
|
6786
6987
|
};
|
|
6787
6988
|
__decorateClass([
|
|
6788
|
-
|
|
6989
|
+
IsNotEmpty51({ message: "Please enter name." })
|
|
6789
6990
|
], CreateCmsDto.prototype, "title", 2);
|
|
6790
6991
|
__decorateClass([
|
|
6791
|
-
|
|
6992
|
+
IsOptional32()
|
|
6792
6993
|
], CreateCmsDto.prototype, "content", 2);
|
|
6793
6994
|
__decorateClass([
|
|
6794
|
-
|
|
6995
|
+
IsOptional32(),
|
|
6795
6996
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
6796
6997
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
6797
6998
|
|
|
6798
6999
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
6799
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
7000
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional33 } from "class-validator";
|
|
6800
7001
|
var UpdateCmsDto = class {
|
|
6801
7002
|
};
|
|
6802
7003
|
__decorateClass([
|
|
6803
|
-
|
|
7004
|
+
IsOptional33()
|
|
6804
7005
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
6805
7006
|
__decorateClass([
|
|
6806
|
-
|
|
7007
|
+
IsNotEmpty52({ message: "Please enter name." })
|
|
6807
7008
|
], UpdateCmsDto.prototype, "title", 2);
|
|
6808
7009
|
__decorateClass([
|
|
6809
|
-
|
|
7010
|
+
IsOptional33()
|
|
6810
7011
|
], UpdateCmsDto.prototype, "content", 2);
|
|
6811
7012
|
__decorateClass([
|
|
6812
|
-
|
|
7013
|
+
IsOptional33(),
|
|
6813
7014
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
6814
7015
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
6815
7016
|
|
|
@@ -6837,18 +7038,18 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6837
7038
|
};
|
|
6838
7039
|
|
|
6839
7040
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
6840
|
-
import { Type as
|
|
7041
|
+
import { Type as Type10 } from "class-transformer";
|
|
6841
7042
|
import {
|
|
6842
|
-
IsString as
|
|
6843
|
-
IsEnum as
|
|
7043
|
+
IsString as IsString34,
|
|
7044
|
+
IsEnum as IsEnum22,
|
|
6844
7045
|
IsInt as IsInt7,
|
|
6845
|
-
IsOptional as
|
|
6846
|
-
IsArray as
|
|
7046
|
+
IsOptional as IsOptional34,
|
|
7047
|
+
IsArray as IsArray12,
|
|
6847
7048
|
IsDateString as IsDateString4,
|
|
6848
|
-
IsNotEmpty as
|
|
6849
|
-
ArrayNotEmpty as
|
|
6850
|
-
Min as
|
|
6851
|
-
IsNumber as
|
|
7049
|
+
IsNotEmpty as IsNotEmpty53,
|
|
7050
|
+
ArrayNotEmpty as ArrayNotEmpty7,
|
|
7051
|
+
Min as Min6,
|
|
7052
|
+
IsNumber as IsNumber7
|
|
6852
7053
|
} from "class-validator";
|
|
6853
7054
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
6854
7055
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -6865,55 +7066,55 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
6865
7066
|
var AdminCreateJobInformationDto = class {
|
|
6866
7067
|
};
|
|
6867
7068
|
__decorateClass([
|
|
6868
|
-
|
|
6869
|
-
|
|
7069
|
+
IsString34({ message: "Job role must be a string." }),
|
|
7070
|
+
IsNotEmpty53({ message: "Job role is required." })
|
|
6870
7071
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
6871
7072
|
__decorateClass([
|
|
6872
|
-
|
|
6873
|
-
|
|
7073
|
+
IsOptional34(),
|
|
7074
|
+
IsString34({ message: "Note must be a string." })
|
|
6874
7075
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
6875
7076
|
__decorateClass([
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
7077
|
+
IsArray12({ message: "Skills must be an array of skill names." }),
|
|
7078
|
+
ArrayNotEmpty7({ message: "At least one skill must be provided." }),
|
|
7079
|
+
IsString34({ each: true, message: "Each skill must be a valid string." })
|
|
6879
7080
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
6880
7081
|
__decorateClass([
|
|
6881
7082
|
IsInt7({ message: "Openings must be a valid integer." }),
|
|
6882
|
-
|
|
7083
|
+
Min6(1, { message: "There must be at least one opening." })
|
|
6883
7084
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
6884
7085
|
__decorateClass([
|
|
6885
|
-
|
|
7086
|
+
IsEnum22(JobLocationEnumDto, {
|
|
6886
7087
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
6887
7088
|
", "
|
|
6888
7089
|
)}.`
|
|
6889
7090
|
})
|
|
6890
7091
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
6891
7092
|
__decorateClass([
|
|
6892
|
-
|
|
7093
|
+
IsEnum22(TypeOfEmploymentEnumDto, {
|
|
6893
7094
|
message: `Type of employment must be one of: ${Object.values(
|
|
6894
7095
|
TypeOfEmploymentEnumDto
|
|
6895
7096
|
).join(", ")}.`
|
|
6896
7097
|
})
|
|
6897
7098
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
6898
7099
|
__decorateClass([
|
|
6899
|
-
|
|
6900
|
-
|
|
7100
|
+
IsString34({ message: "Onboarding Days must be a string." }),
|
|
7101
|
+
IsNotEmpty53({ message: "Onboarding Days is required." })
|
|
6901
7102
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
6902
7103
|
__decorateClass([
|
|
6903
|
-
|
|
6904
|
-
|
|
7104
|
+
IsString34({ message: "Communication skills must be a string." }),
|
|
7105
|
+
IsNotEmpty53({ message: "Communication skills are required." })
|
|
6905
7106
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6906
7107
|
__decorateClass([
|
|
6907
|
-
|
|
6908
|
-
|
|
7108
|
+
IsString34({ message: "Currency must be a string." }),
|
|
7109
|
+
IsNotEmpty53({ message: "Currency is required." })
|
|
6909
7110
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6910
7111
|
__decorateClass([
|
|
6911
|
-
|
|
6912
|
-
|
|
7112
|
+
Type10(() => Number),
|
|
7113
|
+
IsNumber7({}, { message: "Expected salary from must be a number." })
|
|
6913
7114
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6914
7115
|
__decorateClass([
|
|
6915
|
-
|
|
6916
|
-
|
|
7116
|
+
Type10(() => Number),
|
|
7117
|
+
IsNumber7({}, { message: "Expected salary to must be a number." })
|
|
6917
7118
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6918
7119
|
__decorateClass([
|
|
6919
7120
|
IsDateString4(
|
|
@@ -6928,8 +7129,8 @@ __decorateClass([
|
|
|
6928
7129
|
)
|
|
6929
7130
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6930
7131
|
__decorateClass([
|
|
6931
|
-
|
|
6932
|
-
|
|
7132
|
+
IsOptional34(),
|
|
7133
|
+
IsString34({ message: "Additional comment must be a string." })
|
|
6933
7134
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
6934
7135
|
__decorateClass([
|
|
6935
7136
|
IsInt7({ message: "Country ID must be a valid integer." })
|
|
@@ -6945,18 +7146,18 @@ __decorateClass([
|
|
|
6945
7146
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6946
7147
|
|
|
6947
7148
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6948
|
-
import { Type as
|
|
7149
|
+
import { Type as Type11 } from "class-transformer";
|
|
6949
7150
|
import {
|
|
6950
|
-
IsString as
|
|
6951
|
-
IsEnum as
|
|
7151
|
+
IsString as IsString35,
|
|
7152
|
+
IsEnum as IsEnum23,
|
|
6952
7153
|
IsInt as IsInt8,
|
|
6953
|
-
IsOptional as
|
|
6954
|
-
IsArray as
|
|
7154
|
+
IsOptional as IsOptional35,
|
|
7155
|
+
IsArray as IsArray13,
|
|
6955
7156
|
IsDateString as IsDateString5,
|
|
6956
|
-
IsNotEmpty as
|
|
6957
|
-
ArrayNotEmpty as
|
|
6958
|
-
Min as
|
|
6959
|
-
IsNumber as
|
|
7157
|
+
IsNotEmpty as IsNotEmpty54,
|
|
7158
|
+
ArrayNotEmpty as ArrayNotEmpty8,
|
|
7159
|
+
Min as Min7,
|
|
7160
|
+
IsNumber as IsNumber8
|
|
6960
7161
|
} from "class-validator";
|
|
6961
7162
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6962
7163
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -6973,55 +7174,55 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
6973
7174
|
var AdminUpdateJobInformationDto = class {
|
|
6974
7175
|
};
|
|
6975
7176
|
__decorateClass([
|
|
6976
|
-
|
|
6977
|
-
|
|
7177
|
+
IsString35({ message: "Job role must be a string." }),
|
|
7178
|
+
IsNotEmpty54({ message: "Job role is required." })
|
|
6978
7179
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
6979
7180
|
__decorateClass([
|
|
6980
|
-
|
|
6981
|
-
|
|
7181
|
+
IsOptional35(),
|
|
7182
|
+
IsString35({ message: "Note must be a string." })
|
|
6982
7183
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
6983
7184
|
__decorateClass([
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
7185
|
+
IsArray13({ message: "Skills must be an array of skill names." }),
|
|
7186
|
+
ArrayNotEmpty8({ message: "At least one skill must be provided." }),
|
|
7187
|
+
IsString35({ each: true, message: "Each skill must be a valid string." })
|
|
6987
7188
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
6988
7189
|
__decorateClass([
|
|
6989
7190
|
IsInt8({ message: "Openings must be a valid integer." }),
|
|
6990
|
-
|
|
7191
|
+
Min7(1, { message: "There must be at least one opening." })
|
|
6991
7192
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
6992
7193
|
__decorateClass([
|
|
6993
|
-
|
|
7194
|
+
IsEnum23(JobLocationEnums, {
|
|
6994
7195
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
6995
7196
|
", "
|
|
6996
7197
|
)}.`
|
|
6997
7198
|
})
|
|
6998
7199
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
6999
7200
|
__decorateClass([
|
|
7000
|
-
|
|
7201
|
+
IsEnum23(TypeOfEmploymentEnums, {
|
|
7001
7202
|
message: `Type of employment must be one of: ${Object.values(
|
|
7002
7203
|
TypeOfEmploymentEnums
|
|
7003
7204
|
).join(", ")}.`
|
|
7004
7205
|
})
|
|
7005
7206
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7006
7207
|
__decorateClass([
|
|
7007
|
-
|
|
7008
|
-
|
|
7208
|
+
IsString35({ message: "Onboarding Days must be a string." }),
|
|
7209
|
+
IsNotEmpty54({ message: "Onboarding Days is required." })
|
|
7009
7210
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7010
7211
|
__decorateClass([
|
|
7011
|
-
|
|
7012
|
-
|
|
7212
|
+
IsString35({ message: "Communication skills must be a string." }),
|
|
7213
|
+
IsNotEmpty54({ message: "Communication skills are required." })
|
|
7013
7214
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7014
7215
|
__decorateClass([
|
|
7015
|
-
|
|
7016
|
-
|
|
7216
|
+
IsString35({ message: "Currency must be a string." }),
|
|
7217
|
+
IsNotEmpty54({ message: "Currency is required." })
|
|
7017
7218
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
7018
7219
|
__decorateClass([
|
|
7019
|
-
|
|
7020
|
-
|
|
7220
|
+
Type11(() => Number),
|
|
7221
|
+
IsNumber8({}, { message: "Expected salary from must be a number." })
|
|
7021
7222
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7022
7223
|
__decorateClass([
|
|
7023
|
-
|
|
7024
|
-
|
|
7224
|
+
Type11(() => Number),
|
|
7225
|
+
IsNumber8({}, { message: "Expected salary to must be a number." })
|
|
7025
7226
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7026
7227
|
__decorateClass([
|
|
7027
7228
|
IsDateString5(
|
|
@@ -7036,8 +7237,8 @@ __decorateClass([
|
|
|
7036
7237
|
)
|
|
7037
7238
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7038
7239
|
__decorateClass([
|
|
7039
|
-
|
|
7040
|
-
|
|
7240
|
+
IsOptional35(),
|
|
7241
|
+
IsString35({ message: "Additional comment must be a string." })
|
|
7041
7242
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
7042
7243
|
__decorateClass([
|
|
7043
7244
|
IsInt8({ message: "Country ID must be a valid integer." })
|
|
@@ -7059,7 +7260,7 @@ var LEAD_PATTERN = {
|
|
|
7059
7260
|
};
|
|
7060
7261
|
|
|
7061
7262
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
7062
|
-
import { IsString as
|
|
7263
|
+
import { IsString as IsString36, IsEmail as IsEmail14, IsOptional as IsOptional36, IsEnum as IsEnum24 } from "class-validator";
|
|
7063
7264
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
7064
7265
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
7065
7266
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -7068,23 +7269,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
7068
7269
|
var CreateLeadDto = class {
|
|
7069
7270
|
};
|
|
7070
7271
|
__decorateClass([
|
|
7071
|
-
|
|
7272
|
+
IsString36({ message: "Name must be a string" })
|
|
7072
7273
|
], CreateLeadDto.prototype, "name", 2);
|
|
7073
7274
|
__decorateClass([
|
|
7074
7275
|
IsEmail14({}, { message: "Invalid email address" })
|
|
7075
7276
|
], CreateLeadDto.prototype, "email", 2);
|
|
7076
7277
|
__decorateClass([
|
|
7077
|
-
|
|
7278
|
+
IsString36({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7078
7279
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
7079
7280
|
__decorateClass([
|
|
7080
|
-
|
|
7281
|
+
IsString36({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7081
7282
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
7082
7283
|
__decorateClass([
|
|
7083
|
-
|
|
7084
|
-
|
|
7284
|
+
IsOptional36(),
|
|
7285
|
+
IsString36({ message: "Description must be a string" })
|
|
7085
7286
|
], CreateLeadDto.prototype, "description", 2);
|
|
7086
7287
|
__decorateClass([
|
|
7087
|
-
|
|
7288
|
+
IsEnum24(CategoryEmumDto, {
|
|
7088
7289
|
message: `Type of category must be one of: ${Object.values(
|
|
7089
7290
|
CategoryEmumDto
|
|
7090
7291
|
).join(", ")}`
|
|
@@ -7104,46 +7305,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7104
7305
|
};
|
|
7105
7306
|
|
|
7106
7307
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7107
|
-
import { IsNotEmpty as
|
|
7308
|
+
import { IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional37, IsString as IsString37 } from "class-validator";
|
|
7108
7309
|
var CreateAdminRoleDto = class {
|
|
7109
7310
|
};
|
|
7110
7311
|
__decorateClass([
|
|
7111
|
-
|
|
7112
|
-
|
|
7312
|
+
IsNotEmpty55({ message: "Please enter admin role name." }),
|
|
7313
|
+
IsString37({ message: "Role name must be a string." })
|
|
7113
7314
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7114
7315
|
__decorateClass([
|
|
7115
|
-
|
|
7116
|
-
|
|
7316
|
+
IsOptional37(),
|
|
7317
|
+
IsString37({ message: "Role description must be a string." })
|
|
7117
7318
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7118
7319
|
|
|
7119
7320
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7120
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
7321
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty56, IsOptional as IsOptional38, IsString as IsString38 } from "class-validator";
|
|
7121
7322
|
var UpdateAdminRoleDto = class {
|
|
7122
7323
|
};
|
|
7123
7324
|
__decorateClass([
|
|
7124
|
-
|
|
7125
|
-
|
|
7325
|
+
IsNotEmpty56({ message: "Please enter admin role name." }),
|
|
7326
|
+
IsString38({ message: "Role name must be a string." })
|
|
7126
7327
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7127
7328
|
__decorateClass([
|
|
7128
|
-
|
|
7129
|
-
|
|
7329
|
+
IsOptional38(),
|
|
7330
|
+
IsString38({ message: "Role description must be a string." })
|
|
7130
7331
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7131
7332
|
__decorateClass([
|
|
7132
|
-
|
|
7333
|
+
IsOptional38(),
|
|
7133
7334
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
7134
7335
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7135
7336
|
|
|
7136
7337
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7137
|
-
import { IsNotEmpty as
|
|
7338
|
+
import { IsNotEmpty as IsNotEmpty57, IsString as IsString39 } from "class-validator";
|
|
7138
7339
|
var AttachPermissionsToRoleDto = class {
|
|
7139
7340
|
};
|
|
7140
7341
|
__decorateClass([
|
|
7141
|
-
|
|
7142
|
-
|
|
7342
|
+
IsNotEmpty57({ message: "Please enter admin role ID." }),
|
|
7343
|
+
IsString39({ message: "Role ID must be a string." })
|
|
7143
7344
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7144
7345
|
__decorateClass([
|
|
7145
|
-
|
|
7146
|
-
|
|
7346
|
+
IsNotEmpty57({ message: "Please enter permission IDs." }),
|
|
7347
|
+
IsString39({ message: "Permission IDs must be a comma-separated string." })
|
|
7147
7348
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7148
7349
|
|
|
7149
7350
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7170,17 +7371,17 @@ var CALENDLY_PATTERN = {
|
|
|
7170
7371
|
|
|
7171
7372
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7172
7373
|
import {
|
|
7173
|
-
IsString as
|
|
7174
|
-
IsNotEmpty as
|
|
7175
|
-
IsArray as
|
|
7176
|
-
ArrayNotEmpty as
|
|
7374
|
+
IsString as IsString40,
|
|
7375
|
+
IsNotEmpty as IsNotEmpty58,
|
|
7376
|
+
IsArray as IsArray14,
|
|
7377
|
+
ArrayNotEmpty as ArrayNotEmpty9,
|
|
7177
7378
|
IsEmail as IsEmail15,
|
|
7178
7379
|
IsUUID as IsUUID12,
|
|
7179
|
-
IsEnum as
|
|
7180
|
-
ValidateIf as
|
|
7181
|
-
ValidateNested as
|
|
7380
|
+
IsEnum as IsEnum25,
|
|
7381
|
+
ValidateIf as ValidateIf9,
|
|
7382
|
+
ValidateNested as ValidateNested6
|
|
7182
7383
|
} from "class-validator";
|
|
7183
|
-
import { Type as
|
|
7384
|
+
import { Type as Type12 } from "class-transformer";
|
|
7184
7385
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7185
7386
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7186
7387
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7194,39 +7395,39 @@ __decorateClass([
|
|
|
7194
7395
|
IsUUID12()
|
|
7195
7396
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7196
7397
|
__decorateClass([
|
|
7197
|
-
|
|
7398
|
+
IsEnum25(CandidateType, {
|
|
7198
7399
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7199
7400
|
})
|
|
7200
7401
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7201
7402
|
var NewCandidateDto = class {
|
|
7202
7403
|
};
|
|
7203
7404
|
__decorateClass([
|
|
7204
|
-
|
|
7205
|
-
|
|
7405
|
+
IsNotEmpty58({ message: "Please enter the candidate name" }),
|
|
7406
|
+
IsString40({ message: "Name must be a string" })
|
|
7206
7407
|
], NewCandidateDto.prototype, "name", 2);
|
|
7207
7408
|
__decorateClass([
|
|
7208
7409
|
IsEmail15({}, { message: "Please enter a valid email." })
|
|
7209
7410
|
], NewCandidateDto.prototype, "email", 2);
|
|
7210
7411
|
__decorateClass([
|
|
7211
|
-
|
|
7412
|
+
IsEnum25(CandidateType, {
|
|
7212
7413
|
message: "type must be NEW"
|
|
7213
7414
|
})
|
|
7214
7415
|
], NewCandidateDto.prototype, "type", 2);
|
|
7215
7416
|
var CandidatesDto = class {
|
|
7216
7417
|
};
|
|
7217
7418
|
__decorateClass([
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7419
|
+
ValidateIf9((o) => o.exixtingCandidates?.length > 0),
|
|
7420
|
+
IsArray14({ message: "Existing candidates should be an array." }),
|
|
7421
|
+
ArrayNotEmpty9({ message: "Please select at least one candidate." }),
|
|
7422
|
+
ValidateNested6({ each: true }),
|
|
7423
|
+
Type12(() => ExistingCandidateDto)
|
|
7223
7424
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7224
7425
|
__decorateClass([
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7426
|
+
ValidateIf9((o) => o.newCandidates?.length > 0),
|
|
7427
|
+
IsArray14({ message: "New candidates should be an array." }),
|
|
7428
|
+
ArrayNotEmpty9({ message: "Please add at least one candidate." }),
|
|
7429
|
+
ValidateNested6({ each: true }),
|
|
7430
|
+
Type12(() => NewCandidateDto)
|
|
7230
7431
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7231
7432
|
var InterviewInviteDto = class {
|
|
7232
7433
|
};
|
|
@@ -7234,77 +7435,77 @@ __decorateClass([
|
|
|
7234
7435
|
IsUUID12()
|
|
7235
7436
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7236
7437
|
__decorateClass([
|
|
7237
|
-
|
|
7238
|
-
|
|
7438
|
+
ValidateNested6({ each: true }),
|
|
7439
|
+
Type12(() => CandidatesDto)
|
|
7239
7440
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7240
7441
|
|
|
7241
7442
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7242
7443
|
import {
|
|
7243
|
-
IsString as
|
|
7244
|
-
IsNotEmpty as
|
|
7444
|
+
IsString as IsString41,
|
|
7445
|
+
IsNotEmpty as IsNotEmpty59,
|
|
7245
7446
|
IsEmail as IsEmail16,
|
|
7246
|
-
IsNumber as
|
|
7447
|
+
IsNumber as IsNumber9
|
|
7247
7448
|
} from "class-validator";
|
|
7248
7449
|
var CreateF2FInterviewDto = class {
|
|
7249
7450
|
};
|
|
7250
7451
|
__decorateClass([
|
|
7251
7452
|
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
7252
|
-
|
|
7453
|
+
IsNotEmpty59({ message: "Invitee email is required." })
|
|
7253
7454
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7254
7455
|
__decorateClass([
|
|
7255
|
-
|
|
7256
|
-
|
|
7456
|
+
IsString41({ message: "Invitee name must be a string." }),
|
|
7457
|
+
IsNotEmpty59({ message: "Invitee name is required." })
|
|
7257
7458
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7258
7459
|
__decorateClass([
|
|
7259
|
-
|
|
7460
|
+
IsNumber9({}, { message: "Interview ID must be a number." })
|
|
7260
7461
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7261
7462
|
__decorateClass([
|
|
7262
|
-
|
|
7463
|
+
IsNumber9({}, { message: "Candidate ID must be a number." })
|
|
7263
7464
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7264
7465
|
|
|
7265
7466
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7266
7467
|
import {
|
|
7267
|
-
IsString as
|
|
7268
|
-
IsNotEmpty as
|
|
7468
|
+
IsString as IsString42,
|
|
7469
|
+
IsNotEmpty as IsNotEmpty60,
|
|
7269
7470
|
IsEmail as IsEmail17,
|
|
7270
|
-
IsNumber as
|
|
7471
|
+
IsNumber as IsNumber10
|
|
7271
7472
|
} from "class-validator";
|
|
7272
7473
|
var CreateF2FInterviewDirectDto = class {
|
|
7273
7474
|
};
|
|
7274
7475
|
__decorateClass([
|
|
7275
7476
|
IsEmail17({}, { message: "Please enter a valid email address." }),
|
|
7276
|
-
|
|
7477
|
+
IsNotEmpty60({ message: "Invitee email is required." })
|
|
7277
7478
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7278
7479
|
__decorateClass([
|
|
7279
|
-
|
|
7280
|
-
|
|
7480
|
+
IsString42({ message: "Invitee name must be a string." }),
|
|
7481
|
+
IsNotEmpty60({ message: "Invitee name is required." })
|
|
7281
7482
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7282
7483
|
__decorateClass([
|
|
7283
|
-
|
|
7484
|
+
IsNumber10({}, { message: "Job ID must be a number." })
|
|
7284
7485
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7285
7486
|
__decorateClass([
|
|
7286
|
-
|
|
7487
|
+
IsNumber10({}, { message: "Candidate ID must be a number." })
|
|
7287
7488
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7288
7489
|
|
|
7289
7490
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7290
7491
|
import {
|
|
7291
|
-
IsString as
|
|
7292
|
-
IsNotEmpty as
|
|
7492
|
+
IsString as IsString43,
|
|
7493
|
+
IsNotEmpty as IsNotEmpty61
|
|
7293
7494
|
} from "class-validator";
|
|
7294
7495
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7295
7496
|
};
|
|
7296
7497
|
__decorateClass([
|
|
7297
|
-
|
|
7498
|
+
IsNotEmpty61({ message: "F2F Interview ID is required." })
|
|
7298
7499
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7299
7500
|
__decorateClass([
|
|
7300
|
-
|
|
7501
|
+
IsNotEmpty61({ message: "Rescheduled date is required." })
|
|
7301
7502
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7302
7503
|
__decorateClass([
|
|
7303
|
-
|
|
7304
|
-
|
|
7504
|
+
IsString43({ message: "Rescheduled slot must be a string." }),
|
|
7505
|
+
IsNotEmpty61({ message: "Rescheduled slot is required." })
|
|
7305
7506
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7306
7507
|
__decorateClass([
|
|
7307
|
-
|
|
7508
|
+
IsString43({ message: "Freelancer reason must be a string." })
|
|
7308
7509
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7309
7510
|
|
|
7310
7511
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7328,43 +7529,43 @@ var CONTRACT_PATTERN = {
|
|
|
7328
7529
|
};
|
|
7329
7530
|
|
|
7330
7531
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7331
|
-
import { IsEnum as
|
|
7332
|
-
import { Type as
|
|
7532
|
+
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber11 } from "class-validator";
|
|
7533
|
+
import { Type as Type13 } from "class-transformer";
|
|
7333
7534
|
var SignContractForClientDto = class {
|
|
7334
7535
|
};
|
|
7335
7536
|
__decorateClass([
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7537
|
+
IsNotEmpty62({ message: "Job Id is required." }),
|
|
7538
|
+
Type13(() => Number),
|
|
7539
|
+
IsNumber11({}, { message: "Job ID must be a number." })
|
|
7339
7540
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7340
7541
|
__decorateClass([
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7542
|
+
IsNotEmpty62({ message: "Freelancer ID is required." }),
|
|
7543
|
+
Type13(() => Number),
|
|
7544
|
+
IsNumber11({}, { message: "Freelancer ID must be a number." })
|
|
7344
7545
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7345
7546
|
__decorateClass([
|
|
7346
|
-
|
|
7347
|
-
|
|
7547
|
+
IsNotEmpty62({ message: "Contract type is required." }),
|
|
7548
|
+
IsEnum26(ContractTypeEnum)
|
|
7348
7549
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7349
7550
|
|
|
7350
7551
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7351
|
-
import { IsEnum as
|
|
7352
|
-
import { Type as
|
|
7552
|
+
import { IsEnum as IsEnum27, IsNotEmpty as IsNotEmpty63, IsNumber as IsNumber12 } from "class-validator";
|
|
7553
|
+
import { Type as Type14 } from "class-transformer";
|
|
7353
7554
|
var SignContractForFreelancerDto = class {
|
|
7354
7555
|
};
|
|
7355
7556
|
__decorateClass([
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7557
|
+
IsNotEmpty63({ message: "Job Id is required." }),
|
|
7558
|
+
Type14(() => Number),
|
|
7559
|
+
IsNumber12({}, { message: "Job ID must be a number." })
|
|
7359
7560
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7360
7561
|
__decorateClass([
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7562
|
+
IsNotEmpty63({ message: "Client ID is required." }),
|
|
7563
|
+
Type14(() => Number),
|
|
7564
|
+
IsNumber12({}, { message: "Client ID must be a number." })
|
|
7364
7565
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7365
7566
|
__decorateClass([
|
|
7366
|
-
|
|
7367
|
-
|
|
7567
|
+
IsNotEmpty63({ message: "Contract type is required." }),
|
|
7568
|
+
IsEnum27(ContractTypeEnum)
|
|
7368
7569
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7369
7570
|
|
|
7370
7571
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7383,12 +7584,12 @@ var STRIPE_PATTERN = {
|
|
|
7383
7584
|
|
|
7384
7585
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7385
7586
|
import {
|
|
7386
|
-
IsNotEmpty as
|
|
7587
|
+
IsNotEmpty as IsNotEmpty64
|
|
7387
7588
|
} from "class-validator";
|
|
7388
7589
|
var CreateCheckoutSessionDto = class {
|
|
7389
7590
|
};
|
|
7390
7591
|
__decorateClass([
|
|
7391
|
-
|
|
7592
|
+
IsNotEmpty64({ message: "Amount is required" })
|
|
7392
7593
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7393
7594
|
|
|
7394
7595
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7412,112 +7613,112 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7412
7613
|
import {
|
|
7413
7614
|
IsDateString as IsDateString6,
|
|
7414
7615
|
IsInt as IsInt9,
|
|
7415
|
-
IsNotEmpty as
|
|
7416
|
-
IsOptional as
|
|
7417
|
-
IsString as
|
|
7616
|
+
IsNotEmpty as IsNotEmpty65,
|
|
7617
|
+
IsOptional as IsOptional41,
|
|
7618
|
+
IsString as IsString44,
|
|
7418
7619
|
Matches as Matches13,
|
|
7419
|
-
IsNumber as
|
|
7620
|
+
IsNumber as IsNumber13
|
|
7420
7621
|
} from "class-validator";
|
|
7421
7622
|
var CreateFreelancerTimesheetDto = class {
|
|
7422
7623
|
};
|
|
7423
7624
|
__decorateClass([
|
|
7424
|
-
|
|
7425
|
-
|
|
7625
|
+
IsNotEmpty65({ message: "Job id is required" }),
|
|
7626
|
+
IsNumber13({}, { message: "Job id must be a number" })
|
|
7426
7627
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7427
7628
|
__decorateClass([
|
|
7428
|
-
|
|
7629
|
+
IsNotEmpty65({ message: "start date is required" }),
|
|
7429
7630
|
IsDateString6()
|
|
7430
7631
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7431
7632
|
__decorateClass([
|
|
7432
|
-
|
|
7633
|
+
IsNotEmpty65({ message: "end date is required" }),
|
|
7433
7634
|
IsDateString6()
|
|
7434
7635
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7435
7636
|
__decorateClass([
|
|
7436
|
-
|
|
7637
|
+
IsNotEmpty65({ message: "start time is required" }),
|
|
7437
7638
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7438
7639
|
message: "startTime must be in HH:mm:ss format"
|
|
7439
7640
|
})
|
|
7440
7641
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7441
7642
|
__decorateClass([
|
|
7442
|
-
|
|
7643
|
+
IsNotEmpty65({ message: "end time is required" }),
|
|
7443
7644
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7444
7645
|
message: "endTime must be in HH:mm:ss format"
|
|
7445
7646
|
})
|
|
7446
7647
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7447
7648
|
__decorateClass([
|
|
7448
|
-
|
|
7649
|
+
IsOptional41(),
|
|
7449
7650
|
IsInt9()
|
|
7450
7651
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7451
7652
|
__decorateClass([
|
|
7452
|
-
|
|
7453
|
-
|
|
7653
|
+
IsOptional41(),
|
|
7654
|
+
IsString44()
|
|
7454
7655
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7455
7656
|
__decorateClass([
|
|
7456
|
-
|
|
7457
|
-
|
|
7657
|
+
IsOptional41(),
|
|
7658
|
+
IsString44()
|
|
7458
7659
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7459
7660
|
__decorateClass([
|
|
7460
|
-
|
|
7461
|
-
|
|
7661
|
+
IsOptional41(),
|
|
7662
|
+
IsString44()
|
|
7462
7663
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7463
7664
|
__decorateClass([
|
|
7464
|
-
|
|
7665
|
+
IsNotEmpty65({ message: "Description is required" })
|
|
7465
7666
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7466
7667
|
|
|
7467
7668
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7468
7669
|
import {
|
|
7469
7670
|
IsDateString as IsDateString7,
|
|
7470
7671
|
IsInt as IsInt10,
|
|
7471
|
-
IsNotEmpty as
|
|
7472
|
-
IsOptional as
|
|
7473
|
-
IsString as
|
|
7672
|
+
IsNotEmpty as IsNotEmpty66,
|
|
7673
|
+
IsOptional as IsOptional42,
|
|
7674
|
+
IsString as IsString45,
|
|
7474
7675
|
Matches as Matches14,
|
|
7475
|
-
IsNumber as
|
|
7676
|
+
IsNumber as IsNumber14
|
|
7476
7677
|
} from "class-validator";
|
|
7477
7678
|
var UpdateFreelancerTimesheetDto = class {
|
|
7478
7679
|
};
|
|
7479
7680
|
__decorateClass([
|
|
7480
|
-
|
|
7481
|
-
|
|
7681
|
+
IsNotEmpty66({ message: "Job id is required" }),
|
|
7682
|
+
IsNumber14({}, { message: "Job id must be a number" })
|
|
7482
7683
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7483
7684
|
__decorateClass([
|
|
7484
|
-
|
|
7685
|
+
IsNotEmpty66({ message: "start date is required" }),
|
|
7485
7686
|
IsDateString7()
|
|
7486
7687
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7487
7688
|
__decorateClass([
|
|
7488
|
-
|
|
7689
|
+
IsNotEmpty66({ message: "end date is required" }),
|
|
7489
7690
|
IsDateString7()
|
|
7490
7691
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7491
7692
|
__decorateClass([
|
|
7492
|
-
|
|
7693
|
+
IsNotEmpty66({ message: "start time is required" }),
|
|
7493
7694
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7494
7695
|
message: "startTime must be in HH:mm:ss format"
|
|
7495
7696
|
})
|
|
7496
7697
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7497
7698
|
__decorateClass([
|
|
7498
|
-
|
|
7699
|
+
IsNotEmpty66({ message: "end time is required" }),
|
|
7499
7700
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7500
7701
|
message: "endTime must be in HH:mm:ss format"
|
|
7501
7702
|
})
|
|
7502
7703
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7503
7704
|
__decorateClass([
|
|
7504
|
-
|
|
7705
|
+
IsOptional42(),
|
|
7505
7706
|
IsInt10()
|
|
7506
7707
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7507
7708
|
__decorateClass([
|
|
7508
|
-
|
|
7509
|
-
|
|
7709
|
+
IsOptional42(),
|
|
7710
|
+
IsString45()
|
|
7510
7711
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7511
7712
|
__decorateClass([
|
|
7512
|
-
|
|
7513
|
-
|
|
7713
|
+
IsOptional42(),
|
|
7714
|
+
IsString45()
|
|
7514
7715
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7515
7716
|
__decorateClass([
|
|
7516
|
-
|
|
7517
|
-
|
|
7717
|
+
IsOptional42(),
|
|
7718
|
+
IsString45()
|
|
7518
7719
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7519
7720
|
__decorateClass([
|
|
7520
|
-
|
|
7721
|
+
IsNotEmpty66({ message: "Description is required" })
|
|
7521
7722
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7522
7723
|
|
|
7523
7724
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7532,61 +7733,61 @@ var INVOICE_PATTERN = {
|
|
|
7532
7733
|
};
|
|
7533
7734
|
|
|
7534
7735
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7535
|
-
import { IsEnum as
|
|
7736
|
+
import { IsEnum as IsEnum30, IsNotEmpty as IsNotEmpty67 } from "class-validator";
|
|
7536
7737
|
var UpdateInvoiceStatusDto = class {
|
|
7537
7738
|
};
|
|
7538
7739
|
__decorateClass([
|
|
7539
|
-
|
|
7540
|
-
|
|
7740
|
+
IsNotEmpty67({ message: "Please provide invoice status." }),
|
|
7741
|
+
IsEnum30(InvoiceStatusEnum, {
|
|
7541
7742
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7542
7743
|
})
|
|
7543
7744
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7544
7745
|
|
|
7545
7746
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7546
7747
|
import {
|
|
7547
|
-
IsString as
|
|
7548
|
-
IsNotEmpty as
|
|
7748
|
+
IsString as IsString46,
|
|
7749
|
+
IsNotEmpty as IsNotEmpty68,
|
|
7549
7750
|
IsIn as IsIn4,
|
|
7550
|
-
IsOptional as
|
|
7551
|
-
MaxLength as
|
|
7751
|
+
IsOptional as IsOptional43,
|
|
7752
|
+
MaxLength as MaxLength20,
|
|
7552
7753
|
IsObject,
|
|
7553
|
-
IsNumber as
|
|
7554
|
-
ValidateIf as
|
|
7754
|
+
IsNumber as IsNumber15,
|
|
7755
|
+
ValidateIf as ValidateIf10
|
|
7555
7756
|
} from "class-validator";
|
|
7556
|
-
import { Transform as Transform4, Type as
|
|
7757
|
+
import { Transform as Transform4, Type as Type15 } from "class-transformer";
|
|
7557
7758
|
var CreateDisputeDto = class {
|
|
7558
7759
|
};
|
|
7559
7760
|
__decorateClass([
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7761
|
+
ValidateIf10((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7762
|
+
IsNumber15({}, { message: "Client id must be a number" }),
|
|
7763
|
+
Type15(() => Number)
|
|
7563
7764
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7564
7765
|
__decorateClass([
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7766
|
+
ValidateIf10((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7767
|
+
IsNumber15({}, { message: "Freelancer id must be a number" }),
|
|
7768
|
+
Type15(() => Number)
|
|
7568
7769
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7569
7770
|
__decorateClass([
|
|
7570
|
-
|
|
7571
|
-
|
|
7771
|
+
IsNotEmpty68({ message: "Please select dispute type." }),
|
|
7772
|
+
IsString46(),
|
|
7572
7773
|
IsIn4(["JOB", "INVOICE"])
|
|
7573
7774
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7574
7775
|
__decorateClass([
|
|
7575
|
-
|
|
7576
|
-
|
|
7776
|
+
IsNotEmpty68({ message: "Please provide initiator type." }),
|
|
7777
|
+
IsString46()
|
|
7577
7778
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7578
7779
|
__decorateClass([
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7780
|
+
IsNotEmpty68({ message: "Please enter description." }),
|
|
7781
|
+
IsString46({ message: "Description must be a string" }),
|
|
7782
|
+
MaxLength20(500, { message: "Description must not exceed 500 characters" })
|
|
7582
7783
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7583
7784
|
__decorateClass([
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7785
|
+
IsOptional43(),
|
|
7786
|
+
IsString46({ message: "Comment must be a string" }),
|
|
7787
|
+
MaxLength20(500, { message: "Comment must not exceed 500 characters" })
|
|
7587
7788
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7588
7789
|
__decorateClass([
|
|
7589
|
-
|
|
7790
|
+
IsOptional43(),
|
|
7590
7791
|
IsObject({ message: "Dynamic fields must be a valid object" }),
|
|
7591
7792
|
Transform4(({ value }) => {
|
|
7592
7793
|
if (typeof value === "string") {
|
|
@@ -7602,15 +7803,15 @@ __decorateClass([
|
|
|
7602
7803
|
|
|
7603
7804
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7604
7805
|
import {
|
|
7605
|
-
IsNotEmpty as
|
|
7806
|
+
IsNotEmpty as IsNotEmpty69
|
|
7606
7807
|
} from "class-validator";
|
|
7607
7808
|
var AiInterviewQuestionGenerateDto = class {
|
|
7608
7809
|
};
|
|
7609
7810
|
__decorateClass([
|
|
7610
|
-
|
|
7811
|
+
IsNotEmpty69({ message: "Please enter job description." })
|
|
7611
7812
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7612
7813
|
__decorateClass([
|
|
7613
|
-
|
|
7814
|
+
IsNotEmpty69({ message: "Please enter number of questions." })
|
|
7614
7815
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7615
7816
|
|
|
7616
7817
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8716,6 +8917,7 @@ export {
|
|
|
8716
8917
|
DurationTypeEnum,
|
|
8717
8918
|
EducationDto,
|
|
8718
8919
|
EmploymentType,
|
|
8920
|
+
EmploymentTypeV2,
|
|
8719
8921
|
EscrowWallet,
|
|
8720
8922
|
EscrowWalletTransaction,
|
|
8721
8923
|
EscrowWalletTransactionForEnum,
|
|
@@ -8786,13 +8988,16 @@ export {
|
|
|
8786
8988
|
JobAdditionalCommentDto,
|
|
8787
8989
|
JobApplication,
|
|
8788
8990
|
JobBasicInformationDto,
|
|
8991
|
+
JobBasicInformationV2Dto,
|
|
8789
8992
|
JobDescriptionDto,
|
|
8790
8993
|
JobFreelancerRecommendation,
|
|
8791
8994
|
JobFreelancerRecommendationV2,
|
|
8792
8995
|
JobIdParamDto,
|
|
8793
8996
|
JobLocation,
|
|
8997
|
+
JobLocationDto,
|
|
8794
8998
|
JobLocationEnum2 as JobLocationEnum,
|
|
8795
8999
|
JobLocationEnumDto,
|
|
9000
|
+
JobLocationEnumV2,
|
|
8796
9001
|
JobLocationEnums,
|
|
8797
9002
|
JobRMQAdapter,
|
|
8798
9003
|
JobRecommendation,
|
|
@@ -8914,5 +9119,6 @@ export {
|
|
|
8914
9119
|
WalletTransactionStatusEnum,
|
|
8915
9120
|
WalletTransactionTypeEnum,
|
|
8916
9121
|
ZoomMeetingLog,
|
|
9122
|
+
typeOfExperienceDtoEnumV2,
|
|
8917
9123
|
typeOfExperienceEnum
|
|
8918
9124
|
};
|