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