@experts_hub/shared 1.0.514 → 1.0.516
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/ai-interview.entity.d.ts +1 -0
- package/dist/index.d.mts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +765 -567
- package/dist/index.mjs +767 -561
- package/dist/modules/job/dto/index.d.ts +1 -0
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +52 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -121,6 +121,7 @@ __export(index_exports, {
|
|
|
121
121
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
122
122
|
EducationDto: () => EducationDto,
|
|
123
123
|
EmploymentType: () => EmploymentType,
|
|
124
|
+
EmploymentTypeV2: () => EmploymentTypeV2,
|
|
124
125
|
EscrowWallet: () => EscrowWallet,
|
|
125
126
|
EscrowWalletTransaction: () => EscrowWalletTransaction,
|
|
126
127
|
EscrowWalletTransactionForEnum: () => EscrowWalletTransactionForEnum,
|
|
@@ -191,13 +192,16 @@ __export(index_exports, {
|
|
|
191
192
|
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
192
193
|
JobApplication: () => JobApplication,
|
|
193
194
|
JobBasicInformationDto: () => JobBasicInformationDto,
|
|
195
|
+
JobBasicInformationV2Dto: () => JobBasicInformationV2Dto,
|
|
194
196
|
JobDescriptionDto: () => JobDescriptionDto,
|
|
195
197
|
JobFreelancerRecommendation: () => JobFreelancerRecommendation,
|
|
196
198
|
JobFreelancerRecommendationV2: () => JobFreelancerRecommendationV2,
|
|
197
199
|
JobIdParamDto: () => JobIdParamDto,
|
|
198
200
|
JobLocation: () => JobLocation,
|
|
201
|
+
JobLocationDto: () => JobLocationDto,
|
|
199
202
|
JobLocationEnum: () => JobLocationEnum2,
|
|
200
203
|
JobLocationEnumDto: () => JobLocationEnumDto,
|
|
204
|
+
JobLocationEnumV2: () => JobLocationEnumV2,
|
|
201
205
|
JobLocationEnums: () => JobLocationEnums,
|
|
202
206
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
203
207
|
JobRecommendation: () => JobRecommendation,
|
|
@@ -319,6 +323,7 @@ __export(index_exports, {
|
|
|
319
323
|
WalletTransactionStatusEnum: () => WalletTransactionStatusEnum,
|
|
320
324
|
WalletTransactionTypeEnum: () => WalletTransactionTypeEnum,
|
|
321
325
|
ZoomMeetingLog: () => ZoomMeetingLog,
|
|
326
|
+
typeOfExperienceDtoEnumV2: () => typeOfExperienceDtoEnumV2,
|
|
322
327
|
typeOfExperienceEnum: () => typeOfExperienceEnum
|
|
323
328
|
});
|
|
324
329
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -1440,6 +1445,191 @@ __decorateClass([
|
|
|
1440
1445
|
})
|
|
1441
1446
|
], JobIdParamDto.prototype, "id", 2);
|
|
1442
1447
|
|
|
1448
|
+
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
1449
|
+
var import_class_validator38 = require("class-validator");
|
|
1450
|
+
var import_class_transformer4 = require("class-transformer");
|
|
1451
|
+
var JobLocationEnumV2 = /* @__PURE__ */ ((JobLocationEnumV22) => {
|
|
1452
|
+
JobLocationEnumV22["ONSITE"] = "ONSITE";
|
|
1453
|
+
JobLocationEnumV22["REMOTE"] = "REMOTE";
|
|
1454
|
+
JobLocationEnumV22["HYBRID"] = "HYBRID";
|
|
1455
|
+
return JobLocationEnumV22;
|
|
1456
|
+
})(JobLocationEnumV2 || {});
|
|
1457
|
+
var EmploymentTypeV2 = /* @__PURE__ */ ((EmploymentTypeV22) => {
|
|
1458
|
+
EmploymentTypeV22["FULLTIME"] = "FULLTIME";
|
|
1459
|
+
EmploymentTypeV22["PARTTIME"] = "PARTTIME";
|
|
1460
|
+
EmploymentTypeV22["BOTH"] = "BOTH";
|
|
1461
|
+
EmploymentTypeV22["HOURLY"] = "HOURLY";
|
|
1462
|
+
EmploymentTypeV22["FREELANCE"] = "FREELANCE";
|
|
1463
|
+
EmploymentTypeV22["FTE"] = "FTE";
|
|
1464
|
+
return EmploymentTypeV22;
|
|
1465
|
+
})(EmploymentTypeV2 || {});
|
|
1466
|
+
var typeOfExperienceDtoEnumV2 = /* @__PURE__ */ ((typeOfExperienceDtoEnumV22) => {
|
|
1467
|
+
typeOfExperienceDtoEnumV22["SINGLE"] = "SINGLE";
|
|
1468
|
+
typeOfExperienceDtoEnumV22["RANGE"] = "RANGE";
|
|
1469
|
+
return typeOfExperienceDtoEnumV22;
|
|
1470
|
+
})(typeOfExperienceDtoEnumV2 || {});
|
|
1471
|
+
var JobLocationDto = class {
|
|
1472
|
+
};
|
|
1473
|
+
__decorateClass([
|
|
1474
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1475
|
+
(0, import_class_validator38.IsNumber)()
|
|
1476
|
+
], JobLocationDto.prototype, "countryId", 2);
|
|
1477
|
+
__decorateClass([
|
|
1478
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1479
|
+
(0, import_class_validator38.IsNumber)()
|
|
1480
|
+
], JobLocationDto.prototype, "stateId", 2);
|
|
1481
|
+
__decorateClass([
|
|
1482
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1483
|
+
(0, import_class_validator38.IsNumber)()
|
|
1484
|
+
], JobLocationDto.prototype, "cityId", 2);
|
|
1485
|
+
var JobBasicInformationV2Dto = class {
|
|
1486
|
+
constructor() {
|
|
1487
|
+
this.isDraft = false;
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1490
|
+
__decorateClass([
|
|
1491
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1492
|
+
(0, import_class_transformer4.Type)(() => Boolean)
|
|
1493
|
+
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
1494
|
+
__decorateClass([
|
|
1495
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter job role" }),
|
|
1496
|
+
(0, import_class_validator38.IsString)({ message: "Job role must be a string" })
|
|
1497
|
+
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
1498
|
+
__decorateClass([
|
|
1499
|
+
(0, import_class_validator38.IsOptional)()
|
|
1500
|
+
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
1501
|
+
__decorateClass([
|
|
1502
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1503
|
+
(0, import_class_validator38.IsString)({ message: "Project name must be a string" })
|
|
1504
|
+
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
1505
|
+
__decorateClass([
|
|
1506
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1507
|
+
(0, import_class_validator38.IsString)({ message: "Note must be a string" })
|
|
1508
|
+
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
1509
|
+
__decorateClass([
|
|
1510
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1511
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1512
|
+
(0, import_class_validator38.IsArray)({ message: "Skills must be an array" }),
|
|
1513
|
+
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1514
|
+
(0, import_class_validator38.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1515
|
+
(0, import_class_transformer4.Type)(() => String)
|
|
1516
|
+
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
1517
|
+
__decorateClass([
|
|
1518
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1519
|
+
(0, import_class_validator38.IsArray)({ message: "Good to have skills must be an array" }),
|
|
1520
|
+
(0, import_class_validator38.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1521
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1522
|
+
(0, import_class_transformer4.Type)(() => String)
|
|
1523
|
+
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1524
|
+
__decorateClass([
|
|
1525
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1526
|
+
(0, import_class_validator38.IsArray)({ message: "locations must be an array" }),
|
|
1527
|
+
(0, import_class_validator38.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
1528
|
+
(0, import_class_validator38.ValidateNested)({ each: true }),
|
|
1529
|
+
(0, import_class_transformer4.Type)(() => JobLocationDto),
|
|
1530
|
+
(0, import_class_validator38.IsOptional)()
|
|
1531
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1532
|
+
__decorateClass([
|
|
1533
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1534
|
+
(0, import_class_validator38.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1535
|
+
(0, import_class_validator38.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1536
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1537
|
+
], JobBasicInformationV2Dto.prototype, "openings", 2);
|
|
1538
|
+
__decorateClass([
|
|
1539
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1540
|
+
(0, import_class_validator38.IsEnum)(JobLocationEnumV2, {
|
|
1541
|
+
message: `Location must be one of: ${Object.values(JobLocationEnumV2).join(
|
|
1542
|
+
", "
|
|
1543
|
+
)}`
|
|
1544
|
+
})
|
|
1545
|
+
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1546
|
+
__decorateClass([
|
|
1547
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1548
|
+
(0, import_class_validator38.IsEnum)(EmploymentTypeV2, {
|
|
1549
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1550
|
+
EmploymentTypeV2
|
|
1551
|
+
).join(", ")}`
|
|
1552
|
+
})
|
|
1553
|
+
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
1554
|
+
__decorateClass([
|
|
1555
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1556
|
+
(0, import_class_validator38.IsString)({ message: "Currency must be a string" })
|
|
1557
|
+
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
1558
|
+
__decorateClass([
|
|
1559
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1560
|
+
(0, import_class_validator38.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1561
|
+
(0, import_class_validator38.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1562
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1563
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
1564
|
+
__decorateClass([
|
|
1565
|
+
(0, import_class_validator38.IsOptional)()
|
|
1566
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
1567
|
+
__decorateClass([
|
|
1568
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1569
|
+
(0, import_class_validator38.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1570
|
+
(0, import_class_validator38.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1571
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1572
|
+
], JobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
1573
|
+
__decorateClass([
|
|
1574
|
+
(0, import_class_validator38.IsOptional)()
|
|
1575
|
+
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
1576
|
+
__decorateClass([
|
|
1577
|
+
(0, import_class_validator38.IsOptional)()
|
|
1578
|
+
], JobBasicInformationV2Dto.prototype, "years", 2);
|
|
1579
|
+
__decorateClass([
|
|
1580
|
+
(0, import_class_validator38.IsOptional)()
|
|
1581
|
+
], JobBasicInformationV2Dto.prototype, "months", 2);
|
|
1582
|
+
__decorateClass([
|
|
1583
|
+
(0, import_class_validator38.IsOptional)()
|
|
1584
|
+
], JobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
1585
|
+
__decorateClass([
|
|
1586
|
+
(0, import_class_validator38.IsOptional)()
|
|
1587
|
+
], JobBasicInformationV2Dto.prototype, "days", 2);
|
|
1588
|
+
__decorateClass([
|
|
1589
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1590
|
+
(0, import_class_validator38.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
1591
|
+
(0, import_class_validator38.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
1592
|
+
(0, import_class_validator38.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
1593
|
+
(0, import_class_transformer4.Type)(() => Number)
|
|
1594
|
+
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
1595
|
+
__decorateClass([
|
|
1596
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1597
|
+
(0, import_class_validator38.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1598
|
+
(0, import_class_validator38.IsOptional)()
|
|
1599
|
+
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
1600
|
+
__decorateClass([
|
|
1601
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1602
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
1603
|
+
(0, import_class_validator38.IsString)({ message: "Academic qualification must be a string" })
|
|
1604
|
+
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
1605
|
+
__decorateClass([
|
|
1606
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1607
|
+
(0, import_class_validator38.IsEnum)(typeOfExperienceDtoEnumV2, {
|
|
1608
|
+
message: `Type of experience must be one of: ${Object.values(
|
|
1609
|
+
typeOfExperienceDtoEnumV2
|
|
1610
|
+
).join(", ")}`
|
|
1611
|
+
})
|
|
1612
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
1613
|
+
__decorateClass([
|
|
1614
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1615
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
1616
|
+
(0, import_class_validator38.IsString)({ message: "Years of experience must be a string" })
|
|
1617
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
1618
|
+
__decorateClass([
|
|
1619
|
+
(0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
|
|
1620
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
1621
|
+
(0, import_class_validator38.IsString)({ message: "Years of experience must be a string" })
|
|
1622
|
+
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
1623
|
+
__decorateClass([
|
|
1624
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1625
|
+
(0, import_class_validator38.IsString)({ message: "Business industry must be a string" })
|
|
1626
|
+
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
1627
|
+
__decorateClass([
|
|
1628
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1629
|
+
(0, import_class_validator38.IsString)({ message: "Additional comment must be a string" }),
|
|
1630
|
+
(0, import_class_validator38.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1631
|
+
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1632
|
+
|
|
1443
1633
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1444
1634
|
var PROFILE_PATTERN = {
|
|
1445
1635
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1453,25 +1643,25 @@ var PROFILE_PATTERN = {
|
|
|
1453
1643
|
};
|
|
1454
1644
|
|
|
1455
1645
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1456
|
-
var
|
|
1646
|
+
var import_class_validator39 = require("class-validator");
|
|
1457
1647
|
var FreelancerChangePasswordDto = class {
|
|
1458
1648
|
};
|
|
1459
1649
|
__decorateClass([
|
|
1460
|
-
(0,
|
|
1461
|
-
(0,
|
|
1650
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1651
|
+
(0, import_class_validator39.IsString)()
|
|
1462
1652
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1463
1653
|
__decorateClass([
|
|
1464
|
-
(0,
|
|
1465
|
-
(0,
|
|
1466
|
-
(0,
|
|
1467
|
-
(0,
|
|
1468
|
-
(0,
|
|
1654
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1655
|
+
(0, import_class_validator39.IsString)(),
|
|
1656
|
+
(0, import_class_validator39.MinLength)(6),
|
|
1657
|
+
(0, import_class_validator39.MaxLength)(32),
|
|
1658
|
+
(0, import_class_validator39.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1469
1659
|
message: "New Password must include letters, numbers and symbols."
|
|
1470
1660
|
})
|
|
1471
1661
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1472
1662
|
|
|
1473
1663
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1474
|
-
var
|
|
1664
|
+
var import_class_validator40 = require("class-validator");
|
|
1475
1665
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1476
1666
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1477
1667
|
NatureOfWorkDto2["FREELANCE"] = "FREELANCE";
|
|
@@ -1487,109 +1677,109 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1487
1677
|
var UpdateFreelancerProfileDto = class {
|
|
1488
1678
|
};
|
|
1489
1679
|
__decorateClass([
|
|
1490
|
-
(0,
|
|
1491
|
-
(0,
|
|
1680
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1681
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid first name." })
|
|
1492
1682
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1493
1683
|
__decorateClass([
|
|
1494
|
-
(0,
|
|
1495
|
-
(0,
|
|
1684
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1685
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid last name." })
|
|
1496
1686
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1497
1687
|
__decorateClass([
|
|
1498
|
-
(0,
|
|
1499
|
-
(0,
|
|
1688
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1689
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid designation." })
|
|
1500
1690
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1501
1691
|
__decorateClass([
|
|
1502
|
-
(0,
|
|
1503
|
-
(0,
|
|
1692
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1693
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid experience." })
|
|
1504
1694
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1505
1695
|
__decorateClass([
|
|
1506
|
-
(0,
|
|
1507
|
-
(0,
|
|
1696
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1697
|
+
(0, import_class_validator40.IsEmail)()
|
|
1508
1698
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1509
1699
|
__decorateClass([
|
|
1510
|
-
(0,
|
|
1511
|
-
(0,
|
|
1700
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1701
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid mobile code." })
|
|
1512
1702
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1513
1703
|
__decorateClass([
|
|
1514
|
-
(0,
|
|
1515
|
-
(0,
|
|
1704
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1705
|
+
(0, import_class_validator40.IsString)({ message: "Please enter valid mobile number." })
|
|
1516
1706
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1517
1707
|
__decorateClass([
|
|
1518
|
-
(0,
|
|
1519
|
-
(0,
|
|
1708
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1709
|
+
(0, import_class_validator40.IsNumber)()
|
|
1520
1710
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1521
1711
|
__decorateClass([
|
|
1522
|
-
(0,
|
|
1523
|
-
(0,
|
|
1712
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1713
|
+
(0, import_class_validator40.IsNumber)()
|
|
1524
1714
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1525
1715
|
__decorateClass([
|
|
1526
|
-
(0,
|
|
1527
|
-
(0,
|
|
1716
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1717
|
+
(0, import_class_validator40.IsNumber)()
|
|
1528
1718
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1529
1719
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1530
1720
|
__decorateClass([
|
|
1531
|
-
(0,
|
|
1721
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter expected hourly compensation." })
|
|
1532
1722
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1533
1723
|
__decorateClass([
|
|
1534
|
-
(0,
|
|
1535
|
-
(0,
|
|
1536
|
-
(0,
|
|
1724
|
+
(0, import_class_validator40.ValidateIf)((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1725
|
+
(0, import_class_validator40.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1726
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter weekly availability hours" })
|
|
1537
1727
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1538
1728
|
__decorateClass([
|
|
1539
|
-
(0,
|
|
1540
|
-
(0,
|
|
1729
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1730
|
+
(0, import_class_validator40.IsEnum)(NatureOfWorkDto, {
|
|
1541
1731
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1542
1732
|
NatureOfWorkDto
|
|
1543
1733
|
).join(", ")}`
|
|
1544
1734
|
})
|
|
1545
1735
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1546
1736
|
__decorateClass([
|
|
1547
|
-
(0,
|
|
1548
|
-
(0,
|
|
1737
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1738
|
+
(0, import_class_validator40.IsEnum)(ModeOfWorkDto, {
|
|
1549
1739
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1550
1740
|
", "
|
|
1551
1741
|
)}`
|
|
1552
1742
|
})
|
|
1553
1743
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1554
1744
|
__decorateClass([
|
|
1555
|
-
(0,
|
|
1556
|
-
(0,
|
|
1745
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1746
|
+
(0, import_class_validator40.IsString)()
|
|
1557
1747
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1558
1748
|
__decorateClass([
|
|
1559
|
-
(0,
|
|
1560
|
-
(0,
|
|
1749
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter address." }),
|
|
1750
|
+
(0, import_class_validator40.IsString)()
|
|
1561
1751
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1562
1752
|
__decorateClass([
|
|
1563
|
-
(0,
|
|
1564
|
-
(0,
|
|
1753
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1754
|
+
(0, import_class_validator40.IsString)()
|
|
1565
1755
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1566
1756
|
__decorateClass([
|
|
1567
|
-
(0,
|
|
1568
|
-
(0,
|
|
1757
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please enter postalCode." }),
|
|
1758
|
+
(0, import_class_validator40.IsString)()
|
|
1569
1759
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1570
1760
|
__decorateClass([
|
|
1571
|
-
(0,
|
|
1572
|
-
(0,
|
|
1761
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1762
|
+
(0, import_class_validator40.IsString)()
|
|
1573
1763
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1574
1764
|
__decorateClass([
|
|
1575
|
-
(0,
|
|
1576
|
-
(0,
|
|
1765
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1766
|
+
(0, import_class_validator40.IsString)()
|
|
1577
1767
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1578
1768
|
__decorateClass([
|
|
1579
|
-
(0,
|
|
1580
|
-
(0,
|
|
1769
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1770
|
+
(0, import_class_validator40.IsString)()
|
|
1581
1771
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1582
1772
|
__decorateClass([
|
|
1583
|
-
(0,
|
|
1584
|
-
(0,
|
|
1773
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1774
|
+
(0, import_class_validator40.IsString)()
|
|
1585
1775
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1586
1776
|
__decorateClass([
|
|
1587
|
-
(0,
|
|
1588
|
-
(0,
|
|
1777
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1778
|
+
(0, import_class_validator40.IsString)()
|
|
1589
1779
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1590
1780
|
__decorateClass([
|
|
1591
|
-
(0,
|
|
1592
|
-
(0,
|
|
1781
|
+
(0, import_class_validator40.IsOptional)(),
|
|
1782
|
+
(0, import_class_validator40.IsString)()
|
|
1593
1783
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1594
1784
|
|
|
1595
1785
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1600,7 +1790,7 @@ var BANK_PATTERN = {
|
|
|
1600
1790
|
};
|
|
1601
1791
|
|
|
1602
1792
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1603
|
-
var
|
|
1793
|
+
var import_class_validator41 = require("class-validator");
|
|
1604
1794
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1605
1795
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1606
1796
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1609,51 +1799,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1609
1799
|
var FreelancerBankDetailsDto = class {
|
|
1610
1800
|
};
|
|
1611
1801
|
__decorateClass([
|
|
1612
|
-
(0,
|
|
1802
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1613
1803
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1614
1804
|
__decorateClass([
|
|
1615
|
-
(0,
|
|
1805
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Mobile Code." })
|
|
1616
1806
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
1617
1807
|
__decorateClass([
|
|
1618
|
-
(0,
|
|
1808
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1619
1809
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1620
1810
|
__decorateClass([
|
|
1621
|
-
(0,
|
|
1811
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Email." })
|
|
1622
1812
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1623
1813
|
__decorateClass([
|
|
1624
|
-
(0,
|
|
1814
|
+
(0, import_class_validator41.IsOptional)()
|
|
1625
1815
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1626
1816
|
__decorateClass([
|
|
1627
|
-
(0,
|
|
1817
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1628
1818
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1629
1819
|
__decorateClass([
|
|
1630
|
-
(0,
|
|
1820
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1631
1821
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1632
1822
|
__decorateClass([
|
|
1633
|
-
(0,
|
|
1634
|
-
(0,
|
|
1823
|
+
(0, import_class_validator41.IsOptional)(),
|
|
1824
|
+
(0, import_class_validator41.IsString)()
|
|
1635
1825
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1636
1826
|
__decorateClass([
|
|
1637
|
-
(0,
|
|
1638
|
-
(0,
|
|
1827
|
+
(0, import_class_validator41.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1828
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1639
1829
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1640
1830
|
__decorateClass([
|
|
1641
|
-
(0,
|
|
1642
|
-
(0,
|
|
1831
|
+
(0, import_class_validator41.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1832
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1643
1833
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1644
1834
|
__decorateClass([
|
|
1645
|
-
(0,
|
|
1646
|
-
(0,
|
|
1835
|
+
(0, import_class_validator41.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1836
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1647
1837
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1648
1838
|
__decorateClass([
|
|
1649
|
-
(0,
|
|
1650
|
-
(0,
|
|
1839
|
+
(0, import_class_validator41.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1840
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1651
1841
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1652
1842
|
__decorateClass([
|
|
1653
|
-
(0,
|
|
1843
|
+
(0, import_class_validator41.IsOptional)()
|
|
1654
1844
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1655
1845
|
__decorateClass([
|
|
1656
|
-
(0,
|
|
1846
|
+
(0, import_class_validator41.IsEnum)(BankAccountScope, {
|
|
1657
1847
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1658
1848
|
BankAccountScope
|
|
1659
1849
|
).join(", ")}`
|
|
@@ -1673,7 +1863,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1673
1863
|
};
|
|
1674
1864
|
|
|
1675
1865
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1676
|
-
var
|
|
1866
|
+
var import_class_validator42 = require("class-validator");
|
|
1677
1867
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1678
1868
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1679
1869
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1682,10 +1872,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1682
1872
|
var SystemPreferenceDto = class {
|
|
1683
1873
|
};
|
|
1684
1874
|
__decorateClass([
|
|
1685
|
-
(0,
|
|
1875
|
+
(0, import_class_validator42.IsBoolean)()
|
|
1686
1876
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1687
1877
|
__decorateClass([
|
|
1688
|
-
(0,
|
|
1878
|
+
(0, import_class_validator42.IsEnum)(SystemPreferenceKey, {
|
|
1689
1879
|
message: `key must be one of: ${Object.values(
|
|
1690
1880
|
SystemPreferenceKey
|
|
1691
1881
|
).join(", ")}`
|
|
@@ -1705,7 +1895,7 @@ var RATING_PATTERN = {
|
|
|
1705
1895
|
};
|
|
1706
1896
|
|
|
1707
1897
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1708
|
-
var
|
|
1898
|
+
var import_class_validator43 = require("class-validator");
|
|
1709
1899
|
|
|
1710
1900
|
// src/entities/rating.entity.ts
|
|
1711
1901
|
var import_typeorm62 = require("typeorm");
|
|
@@ -2853,6 +3043,9 @@ var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
|
2853
3043
|
})(AiInterviewStatusEnum || {});
|
|
2854
3044
|
var AiInterview = class extends BaseEntity {
|
|
2855
3045
|
};
|
|
3046
|
+
__decorateClass([
|
|
3047
|
+
(0, import_typeorm15.Column)({ name: "ai_interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3048
|
+
], AiInterview.prototype, "aiInterviewUniqueId", 2);
|
|
2856
3049
|
__decorateClass([
|
|
2857
3050
|
(0, import_typeorm15.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2858
3051
|
(0, import_typeorm15.Index)()
|
|
@@ -5969,22 +6162,22 @@ Rating = __decorateClass([
|
|
|
5969
6162
|
var CreateRatingDto = class {
|
|
5970
6163
|
};
|
|
5971
6164
|
__decorateClass([
|
|
5972
|
-
(0,
|
|
5973
|
-
(0,
|
|
6165
|
+
(0, import_class_validator43.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
6166
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
5974
6167
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
5975
6168
|
__decorateClass([
|
|
5976
|
-
(0,
|
|
6169
|
+
(0, import_class_validator43.IsEnum)(RatingTypeEnum, {
|
|
5977
6170
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
5978
6171
|
})
|
|
5979
6172
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
5980
6173
|
__decorateClass([
|
|
5981
|
-
(0,
|
|
5982
|
-
(0,
|
|
5983
|
-
(0,
|
|
6174
|
+
(0, import_class_validator43.IsInt)({ message: "Rating must be an integer value" }),
|
|
6175
|
+
(0, import_class_validator43.Min)(1, { message: "Rating must be at least 1" }),
|
|
6176
|
+
(0, import_class_validator43.Max)(5, { message: "Rating must be at most 5" })
|
|
5984
6177
|
], CreateRatingDto.prototype, "rating", 2);
|
|
5985
6178
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
5987
|
-
(0,
|
|
6179
|
+
(0, import_class_validator43.IsOptional)(),
|
|
6180
|
+
(0, import_class_validator43.IsString)({ message: "Review must be a string" })
|
|
5988
6181
|
], CreateRatingDto.prototype, "review", 2);
|
|
5989
6182
|
|
|
5990
6183
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6000,57 +6193,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6000
6193
|
};
|
|
6001
6194
|
|
|
6002
6195
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6003
|
-
var
|
|
6196
|
+
var import_class_validator44 = require("class-validator");
|
|
6004
6197
|
var CreateCompanyRoleDto = class {
|
|
6005
6198
|
};
|
|
6006
6199
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
6200
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter company role name." })
|
|
6008
6201
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6009
6202
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6203
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
6011
6204
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6012
6205
|
__decorateClass([
|
|
6013
|
-
(0,
|
|
6206
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter description" })
|
|
6014
6207
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6015
6208
|
__decorateClass([
|
|
6016
|
-
(0,
|
|
6017
|
-
(0,
|
|
6018
|
-
(0,
|
|
6209
|
+
(0, import_class_validator44.IsArray)({ message: "Permission IDs must be an array." }),
|
|
6210
|
+
(0, import_class_validator44.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
6211
|
+
(0, import_class_validator44.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
6019
6212
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6020
6213
|
__decorateClass([
|
|
6021
|
-
(0,
|
|
6022
|
-
(0,
|
|
6214
|
+
(0, import_class_validator44.IsOptional)(),
|
|
6215
|
+
(0, import_class_validator44.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6023
6216
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6024
6217
|
|
|
6025
6218
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6026
|
-
var
|
|
6219
|
+
var import_class_validator45 = require("class-validator");
|
|
6027
6220
|
var UpdateCompanyRoleDto = class {
|
|
6028
6221
|
};
|
|
6029
6222
|
__decorateClass([
|
|
6030
|
-
(0,
|
|
6223
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter company name." })
|
|
6031
6224
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6032
6225
|
__decorateClass([
|
|
6033
|
-
(0,
|
|
6226
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter slug" })
|
|
6034
6227
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6035
6228
|
__decorateClass([
|
|
6036
|
-
(0,
|
|
6229
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter description" })
|
|
6037
6230
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6038
6231
|
__decorateClass([
|
|
6039
|
-
(0,
|
|
6040
|
-
(0,
|
|
6041
|
-
(0,
|
|
6232
|
+
(0, import_class_validator45.IsArray)({ message: "Permission IDs must be an array." }),
|
|
6233
|
+
(0, import_class_validator45.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
6234
|
+
(0, import_class_validator45.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
6042
6235
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6043
6236
|
__decorateClass([
|
|
6044
|
-
(0,
|
|
6045
|
-
(0,
|
|
6237
|
+
(0, import_class_validator45.IsOptional)(),
|
|
6238
|
+
(0, import_class_validator45.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6046
6239
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6047
6240
|
|
|
6048
6241
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
6049
|
-
var
|
|
6242
|
+
var import_class_validator46 = require("class-validator");
|
|
6050
6243
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
6051
6244
|
};
|
|
6052
6245
|
__decorateClass([
|
|
6053
|
-
(0,
|
|
6246
|
+
(0, import_class_validator46.IsBoolean)()
|
|
6054
6247
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
6055
6248
|
|
|
6056
6249
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -6060,36 +6253,36 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6060
6253
|
};
|
|
6061
6254
|
|
|
6062
6255
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6063
|
-
var
|
|
6064
|
-
var
|
|
6256
|
+
var import_class_validator47 = require("class-validator");
|
|
6257
|
+
var import_class_transformer5 = require("class-transformer");
|
|
6065
6258
|
var ExperienceDto = class {
|
|
6066
6259
|
};
|
|
6067
6260
|
__decorateClass([
|
|
6068
|
-
(0,
|
|
6261
|
+
(0, import_class_validator47.IsOptional)()
|
|
6069
6262
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6070
6263
|
__decorateClass([
|
|
6071
|
-
(0,
|
|
6072
|
-
(0,
|
|
6264
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6265
|
+
(0, import_class_validator47.IsString)()
|
|
6073
6266
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6074
6267
|
__decorateClass([
|
|
6075
|
-
(0,
|
|
6076
|
-
(0,
|
|
6268
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6269
|
+
(0, import_class_validator47.IsString)()
|
|
6077
6270
|
], ExperienceDto.prototype, "designation", 2);
|
|
6078
6271
|
__decorateClass([
|
|
6079
|
-
(0,
|
|
6080
|
-
(0,
|
|
6272
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6273
|
+
(0, import_class_validator47.IsString)()
|
|
6081
6274
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6082
6275
|
__decorateClass([
|
|
6083
|
-
(0,
|
|
6084
|
-
(0,
|
|
6085
|
-
(0,
|
|
6276
|
+
(0, import_class_validator47.IsOptional)(),
|
|
6277
|
+
(0, import_class_validator47.IsString)(),
|
|
6278
|
+
(0, import_class_validator47.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6086
6279
|
], ExperienceDto.prototype, "description", 2);
|
|
6087
6280
|
var FreelancerExperienceDto = class {
|
|
6088
6281
|
};
|
|
6089
6282
|
__decorateClass([
|
|
6090
|
-
(0,
|
|
6091
|
-
(0,
|
|
6092
|
-
(0,
|
|
6283
|
+
(0, import_class_validator47.ValidateNested)({ each: true }),
|
|
6284
|
+
(0, import_class_validator47.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
6285
|
+
(0, import_class_transformer5.Type)(() => ExperienceDto)
|
|
6093
6286
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
6094
6287
|
|
|
6095
6288
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -6105,43 +6298,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6105
6298
|
};
|
|
6106
6299
|
|
|
6107
6300
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6108
|
-
var
|
|
6301
|
+
var import_class_validator48 = require("class-validator");
|
|
6109
6302
|
var CreateCompanyMemberDto = class {
|
|
6110
6303
|
};
|
|
6111
6304
|
__decorateClass([
|
|
6112
|
-
(0,
|
|
6305
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter name." })
|
|
6113
6306
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6114
6307
|
__decorateClass([
|
|
6115
|
-
(0,
|
|
6308
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter email" })
|
|
6116
6309
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6117
6310
|
__decorateClass([
|
|
6118
|
-
(0,
|
|
6119
|
-
(0,
|
|
6120
|
-
(0,
|
|
6311
|
+
(0, import_class_validator48.IsArray)({ message: "Role IDs must be an array." }),
|
|
6312
|
+
(0, import_class_validator48.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
6313
|
+
(0, import_class_validator48.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
6121
6314
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6122
6315
|
|
|
6123
6316
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6124
|
-
var
|
|
6317
|
+
var import_class_validator49 = require("class-validator");
|
|
6125
6318
|
var UpdateCompanyMemberDto = class {
|
|
6126
6319
|
};
|
|
6127
6320
|
__decorateClass([
|
|
6128
|
-
(0,
|
|
6321
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter name." })
|
|
6129
6322
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6130
6323
|
__decorateClass([
|
|
6131
|
-
(0,
|
|
6324
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter email" })
|
|
6132
6325
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6133
6326
|
__decorateClass([
|
|
6134
|
-
(0,
|
|
6135
|
-
(0,
|
|
6136
|
-
(0,
|
|
6327
|
+
(0, import_class_validator49.IsArray)({ message: "Role IDs must be an array." }),
|
|
6328
|
+
(0, import_class_validator49.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
6329
|
+
(0, import_class_validator49.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
6137
6330
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6138
6331
|
|
|
6139
6332
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
6140
|
-
var
|
|
6333
|
+
var import_class_validator50 = require("class-validator");
|
|
6141
6334
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
6142
6335
|
};
|
|
6143
6336
|
__decorateClass([
|
|
6144
|
-
(0,
|
|
6337
|
+
(0, import_class_validator50.IsBoolean)()
|
|
6145
6338
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
6146
6339
|
|
|
6147
6340
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -6151,32 +6344,32 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6151
6344
|
};
|
|
6152
6345
|
|
|
6153
6346
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6154
|
-
var
|
|
6155
|
-
var
|
|
6347
|
+
var import_class_validator51 = require("class-validator");
|
|
6348
|
+
var import_class_transformer6 = require("class-transformer");
|
|
6156
6349
|
var EducationDto = class {
|
|
6157
6350
|
};
|
|
6158
6351
|
__decorateClass([
|
|
6159
|
-
(0,
|
|
6352
|
+
(0, import_class_validator51.IsOptional)()
|
|
6160
6353
|
], EducationDto.prototype, "uuid", 2);
|
|
6161
6354
|
__decorateClass([
|
|
6162
|
-
(0,
|
|
6163
|
-
(0,
|
|
6355
|
+
(0, import_class_validator51.IsString)(),
|
|
6356
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
6164
6357
|
], EducationDto.prototype, "degree", 2);
|
|
6165
6358
|
__decorateClass([
|
|
6166
|
-
(0,
|
|
6167
|
-
(0,
|
|
6359
|
+
(0, import_class_validator51.IsString)(),
|
|
6360
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter University " })
|
|
6168
6361
|
], EducationDto.prototype, "university", 2);
|
|
6169
6362
|
__decorateClass([
|
|
6170
|
-
(0,
|
|
6171
|
-
(0,
|
|
6363
|
+
(0, import_class_validator51.IsString)(),
|
|
6364
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
6172
6365
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6173
6366
|
var FreelancerEducationDto = class {
|
|
6174
6367
|
};
|
|
6175
6368
|
__decorateClass([
|
|
6176
|
-
(0,
|
|
6177
|
-
(0,
|
|
6178
|
-
(0,
|
|
6179
|
-
(0,
|
|
6369
|
+
(0, import_class_validator51.IsArray)(),
|
|
6370
|
+
(0, import_class_validator51.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
6371
|
+
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
6372
|
+
(0, import_class_transformer6.Type)(() => EducationDto)
|
|
6180
6373
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
6181
6374
|
|
|
6182
6375
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -6186,68 +6379,68 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6186
6379
|
};
|
|
6187
6380
|
|
|
6188
6381
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6189
|
-
var
|
|
6190
|
-
var
|
|
6382
|
+
var import_class_validator52 = require("class-validator");
|
|
6383
|
+
var import_class_transformer7 = require("class-transformer");
|
|
6191
6384
|
var ProjectDto = class {
|
|
6192
6385
|
};
|
|
6193
6386
|
__decorateClass([
|
|
6194
|
-
(0,
|
|
6387
|
+
(0, import_class_validator52.IsOptional)()
|
|
6195
6388
|
], ProjectDto.prototype, "uuid", 2);
|
|
6196
6389
|
__decorateClass([
|
|
6197
|
-
(0,
|
|
6198
|
-
(0,
|
|
6390
|
+
(0, import_class_validator52.IsString)(),
|
|
6391
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6199
6392
|
], ProjectDto.prototype, "projectName", 2);
|
|
6200
6393
|
__decorateClass([
|
|
6201
|
-
(0,
|
|
6202
|
-
(0,
|
|
6394
|
+
(0, import_class_validator52.IsDateString)(),
|
|
6395
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
6203
6396
|
], ProjectDto.prototype, "startDate", 2);
|
|
6204
6397
|
__decorateClass([
|
|
6205
|
-
(0,
|
|
6206
|
-
(0,
|
|
6398
|
+
(0, import_class_validator52.IsDateString)(),
|
|
6399
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
6207
6400
|
], ProjectDto.prototype, "endDate", 2);
|
|
6208
6401
|
__decorateClass([
|
|
6209
|
-
(0,
|
|
6210
|
-
(0,
|
|
6402
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6403
|
+
(0, import_class_validator52.IsString)()
|
|
6211
6404
|
], ProjectDto.prototype, "clientName", 2);
|
|
6212
6405
|
__decorateClass([
|
|
6213
|
-
(0,
|
|
6214
|
-
(0,
|
|
6406
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6407
|
+
(0, import_class_validator52.IsString)()
|
|
6215
6408
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6216
6409
|
__decorateClass([
|
|
6217
|
-
(0,
|
|
6218
|
-
(0,
|
|
6219
|
-
(0,
|
|
6410
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6411
|
+
(0, import_class_validator52.IsString)(),
|
|
6412
|
+
(0, import_class_validator52.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6220
6413
|
], ProjectDto.prototype, "description", 2);
|
|
6221
6414
|
var CaseStudyDto = class {
|
|
6222
6415
|
};
|
|
6223
6416
|
__decorateClass([
|
|
6224
|
-
(0,
|
|
6417
|
+
(0, import_class_validator52.IsOptional)()
|
|
6225
6418
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6226
6419
|
__decorateClass([
|
|
6227
|
-
(0,
|
|
6228
|
-
(0,
|
|
6420
|
+
(0, import_class_validator52.IsString)(),
|
|
6421
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6229
6422
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6230
6423
|
__decorateClass([
|
|
6231
|
-
(0,
|
|
6232
|
-
(0,
|
|
6424
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6425
|
+
(0, import_class_validator52.IsString)()
|
|
6233
6426
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6234
6427
|
__decorateClass([
|
|
6235
|
-
(0,
|
|
6236
|
-
(0,
|
|
6237
|
-
(0,
|
|
6428
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6429
|
+
(0, import_class_validator52.IsString)(),
|
|
6430
|
+
(0, import_class_validator52.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6238
6431
|
], CaseStudyDto.prototype, "description", 2);
|
|
6239
6432
|
var FreelancerProjectDto = class {
|
|
6240
6433
|
};
|
|
6241
6434
|
__decorateClass([
|
|
6242
|
-
(0,
|
|
6243
|
-
(0,
|
|
6244
|
-
(0,
|
|
6245
|
-
(0,
|
|
6435
|
+
(0, import_class_validator52.IsArray)(),
|
|
6436
|
+
(0, import_class_validator52.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
6437
|
+
(0, import_class_validator52.ValidateNested)({ each: true }),
|
|
6438
|
+
(0, import_class_transformer7.Type)(() => ProjectDto)
|
|
6246
6439
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
6247
6440
|
__decorateClass([
|
|
6248
|
-
(0,
|
|
6249
|
-
(0,
|
|
6250
|
-
(0,
|
|
6441
|
+
(0, import_class_validator52.IsArray)(),
|
|
6442
|
+
(0, import_class_validator52.ValidateNested)({ each: true }),
|
|
6443
|
+
(0, import_class_transformer7.Type)(() => CaseStudyDto)
|
|
6251
6444
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
6252
6445
|
|
|
6253
6446
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -6262,8 +6455,8 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
6262
6455
|
};
|
|
6263
6456
|
|
|
6264
6457
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
6265
|
-
var
|
|
6266
|
-
var
|
|
6458
|
+
var import_class_validator53 = require("class-validator");
|
|
6459
|
+
var import_class_transformer8 = require("class-transformer");
|
|
6267
6460
|
var FreelancerSkillDto = class {
|
|
6268
6461
|
constructor() {
|
|
6269
6462
|
this.coreSkills = [];
|
|
@@ -6273,28 +6466,28 @@ var FreelancerSkillDto = class {
|
|
|
6273
6466
|
}
|
|
6274
6467
|
};
|
|
6275
6468
|
__decorateClass([
|
|
6276
|
-
(0,
|
|
6277
|
-
(0,
|
|
6278
|
-
(0,
|
|
6279
|
-
(0,
|
|
6469
|
+
(0, import_class_validator53.IsOptional)(),
|
|
6470
|
+
(0, import_class_validator53.IsArray)(),
|
|
6471
|
+
(0, import_class_transformer8.Type)(() => String),
|
|
6472
|
+
(0, import_class_validator53.IsString)({ each: true })
|
|
6280
6473
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
6281
6474
|
__decorateClass([
|
|
6282
|
-
(0,
|
|
6283
|
-
(0,
|
|
6284
|
-
(0,
|
|
6285
|
-
(0,
|
|
6475
|
+
(0, import_class_validator53.IsOptional)(),
|
|
6476
|
+
(0, import_class_validator53.IsArray)(),
|
|
6477
|
+
(0, import_class_transformer8.Type)(() => String),
|
|
6478
|
+
(0, import_class_validator53.IsString)({ each: true })
|
|
6286
6479
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
6287
6480
|
__decorateClass([
|
|
6288
|
-
(0,
|
|
6289
|
-
(0,
|
|
6290
|
-
(0,
|
|
6291
|
-
(0,
|
|
6481
|
+
(0, import_class_validator53.IsOptional)(),
|
|
6482
|
+
(0, import_class_validator53.IsArray)(),
|
|
6483
|
+
(0, import_class_transformer8.Type)(() => String),
|
|
6484
|
+
(0, import_class_validator53.IsString)({ each: true })
|
|
6292
6485
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
6293
6486
|
__decorateClass([
|
|
6294
|
-
(0,
|
|
6295
|
-
(0,
|
|
6296
|
-
(0,
|
|
6297
|
-
(0,
|
|
6487
|
+
(0, import_class_validator53.IsOptional)(),
|
|
6488
|
+
(0, import_class_validator53.IsArray)(),
|
|
6489
|
+
(0, import_class_transformer8.Type)(() => String),
|
|
6490
|
+
(0, import_class_validator53.IsString)({ each: true })
|
|
6298
6491
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
6299
6492
|
|
|
6300
6493
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -6310,8 +6503,8 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
6310
6503
|
};
|
|
6311
6504
|
|
|
6312
6505
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
6313
|
-
var
|
|
6314
|
-
var
|
|
6506
|
+
var import_class_validator54 = require("class-validator");
|
|
6507
|
+
var import_class_transformer9 = require("class-transformer");
|
|
6315
6508
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6316
6509
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6317
6510
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6327,85 +6520,85 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6327
6520
|
var CreateFreelancerDto = class {
|
|
6328
6521
|
};
|
|
6329
6522
|
__decorateClass([
|
|
6330
|
-
(0,
|
|
6331
|
-
(0,
|
|
6523
|
+
(0, import_class_validator54.IsString)({ message: "Full name must be a string" }),
|
|
6524
|
+
(0, import_class_validator54.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
6332
6525
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
6333
6526
|
__decorateClass([
|
|
6334
|
-
(0,
|
|
6527
|
+
(0, import_class_validator54.IsEmail)({}, { message: "Invalid email address" })
|
|
6335
6528
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
6336
6529
|
__decorateClass([
|
|
6337
|
-
(0,
|
|
6530
|
+
(0, import_class_validator54.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6338
6531
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
6339
6532
|
__decorateClass([
|
|
6340
|
-
(0,
|
|
6533
|
+
(0, import_class_validator54.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6341
6534
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
6342
6535
|
__decorateClass([
|
|
6343
|
-
(0,
|
|
6344
|
-
(0,
|
|
6345
|
-
(0,
|
|
6346
|
-
(0,
|
|
6536
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter password." }),
|
|
6537
|
+
(0, import_class_validator54.MinLength)(6),
|
|
6538
|
+
(0, import_class_validator54.MaxLength)(32),
|
|
6539
|
+
(0, import_class_validator54.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6347
6540
|
message: "Password must include letters, numbers and symbols."
|
|
6348
6541
|
})
|
|
6349
6542
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
6350
6543
|
__decorateClass([
|
|
6351
|
-
(0,
|
|
6544
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
6352
6545
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6353
6546
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
6354
6547
|
__decorateClass([
|
|
6355
|
-
(0,
|
|
6356
|
-
(0,
|
|
6548
|
+
(0, import_class_validator54.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
6549
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
6357
6550
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
6358
6551
|
__decorateClass([
|
|
6359
|
-
(0,
|
|
6552
|
+
(0, import_class_validator54.IsEnum)(NatureOfWorkEnum, {
|
|
6360
6553
|
message: `Nature of work must be one of: ${Object.values(
|
|
6361
6554
|
NatureOfWorkEnum
|
|
6362
6555
|
).join(", ")}`
|
|
6363
6556
|
})
|
|
6364
6557
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6365
6558
|
__decorateClass([
|
|
6366
|
-
(0,
|
|
6367
|
-
(0,
|
|
6368
|
-
(0,
|
|
6559
|
+
(0, import_class_validator54.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
6560
|
+
(0, import_class_validator54.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6561
|
+
(0, import_class_transformer9.Type)(() => Number)
|
|
6369
6562
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6370
6563
|
__decorateClass([
|
|
6371
|
-
(0,
|
|
6564
|
+
(0, import_class_validator54.IsEnum)(ModeOfWorkEnum, {
|
|
6372
6565
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
6373
6566
|
", "
|
|
6374
6567
|
)}`
|
|
6375
6568
|
})
|
|
6376
6569
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6377
6570
|
__decorateClass([
|
|
6378
|
-
(0,
|
|
6379
|
-
(0,
|
|
6571
|
+
(0, import_class_validator54.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
6572
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
6380
6573
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6381
6574
|
__decorateClass([
|
|
6382
|
-
(0,
|
|
6383
|
-
(0,
|
|
6575
|
+
(0, import_class_validator54.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
6576
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
6384
6577
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6385
6578
|
__decorateClass([
|
|
6386
|
-
(0,
|
|
6387
|
-
(0,
|
|
6579
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6580
|
+
(0, import_class_validator54.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6388
6581
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6389
6582
|
__decorateClass([
|
|
6390
|
-
(0,
|
|
6391
|
-
(0,
|
|
6583
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6584
|
+
(0, import_class_validator54.IsString)({ message: "Kaggle profile link must be a string" })
|
|
6392
6585
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6393
6586
|
__decorateClass([
|
|
6394
|
-
(0,
|
|
6395
|
-
(0,
|
|
6587
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6588
|
+
(0, import_class_validator54.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
6396
6589
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6397
6590
|
__decorateClass([
|
|
6398
|
-
(0,
|
|
6399
|
-
(0,
|
|
6591
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6592
|
+
(0, import_class_validator54.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6400
6593
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6401
6594
|
__decorateClass([
|
|
6402
|
-
(0,
|
|
6403
|
-
(0,
|
|
6595
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6596
|
+
(0, import_class_validator54.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
6404
6597
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6405
6598
|
|
|
6406
6599
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
6407
|
-
var
|
|
6408
|
-
var
|
|
6600
|
+
var import_class_validator55 = require("class-validator");
|
|
6601
|
+
var import_class_transformer10 = require("class-transformer");
|
|
6409
6602
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6410
6603
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6411
6604
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6421,86 +6614,86 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6421
6614
|
var UpdateFreelancerDto = class {
|
|
6422
6615
|
};
|
|
6423
6616
|
__decorateClass([
|
|
6424
|
-
(0,
|
|
6425
|
-
(0,
|
|
6426
|
-
(0,
|
|
6617
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6618
|
+
(0, import_class_validator55.IsString)({ message: "Full name must be a string" }),
|
|
6619
|
+
(0, import_class_validator55.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
6427
6620
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
6428
6621
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6430
|
-
(0,
|
|
6622
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6623
|
+
(0, import_class_validator55.IsEmail)({}, { message: "Invalid email address" })
|
|
6431
6624
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
6432
6625
|
__decorateClass([
|
|
6433
|
-
(0,
|
|
6434
|
-
(0,
|
|
6626
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6627
|
+
(0, import_class_validator55.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6435
6628
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
6436
6629
|
__decorateClass([
|
|
6437
|
-
(0,
|
|
6438
|
-
(0,
|
|
6630
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6631
|
+
(0, import_class_validator55.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6439
6632
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
6440
6633
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6442
|
-
(0,
|
|
6443
|
-
(0,
|
|
6444
|
-
(0,
|
|
6445
|
-
(0,
|
|
6634
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6635
|
+
(0, import_class_transformer10.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6636
|
+
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
6637
|
+
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
6638
|
+
(0, import_class_validator55.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6446
6639
|
message: "Password must include letters, numbers and symbols."
|
|
6447
6640
|
})
|
|
6448
6641
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
6449
6642
|
__decorateClass([
|
|
6450
|
-
(0,
|
|
6451
|
-
(0,
|
|
6452
|
-
(0,
|
|
6643
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6644
|
+
(0, import_class_validator55.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
6645
|
+
(0, import_class_transformer10.Type)(() => Boolean)
|
|
6453
6646
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
6454
6647
|
__decorateClass([
|
|
6455
|
-
(0,
|
|
6456
|
-
(0,
|
|
6648
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6649
|
+
(0, import_class_validator55.IsEnum)(NatureOfWorkEnum2, {
|
|
6457
6650
|
message: `Nature of work must be one of: ${Object.values(
|
|
6458
6651
|
NatureOfWorkEnum2
|
|
6459
6652
|
).join(", ")}`
|
|
6460
6653
|
})
|
|
6461
6654
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6462
6655
|
__decorateClass([
|
|
6463
|
-
(0,
|
|
6464
|
-
(0,
|
|
6465
|
-
(0,
|
|
6466
|
-
(0,
|
|
6656
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6657
|
+
(0, import_class_validator55.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
6658
|
+
(0, import_class_validator55.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
6659
|
+
(0, import_class_transformer10.Type)(() => Number)
|
|
6467
6660
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6468
6661
|
__decorateClass([
|
|
6469
|
-
(0,
|
|
6470
|
-
(0,
|
|
6662
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6663
|
+
(0, import_class_validator55.IsEnum)(ModeOfWorkEnum2, {
|
|
6471
6664
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
6472
6665
|
", "
|
|
6473
6666
|
)}`
|
|
6474
6667
|
})
|
|
6475
6668
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6476
6669
|
__decorateClass([
|
|
6477
|
-
(0,
|
|
6478
|
-
(0,
|
|
6479
|
-
(0,
|
|
6670
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6671
|
+
(0, import_class_validator55.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
6672
|
+
(0, import_class_transformer10.Type)(() => Boolean)
|
|
6480
6673
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6481
6674
|
__decorateClass([
|
|
6482
|
-
(0,
|
|
6483
|
-
(0,
|
|
6675
|
+
(0, import_class_validator55.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
6676
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
6484
6677
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6485
6678
|
__decorateClass([
|
|
6486
|
-
(0,
|
|
6487
|
-
(0,
|
|
6679
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6680
|
+
(0, import_class_validator55.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6488
6681
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6489
6682
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6491
|
-
(0,
|
|
6683
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6684
|
+
(0, import_class_validator55.IsString)({ message: "Kaggle profile link must be a string" })
|
|
6492
6685
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6493
6686
|
__decorateClass([
|
|
6494
|
-
(0,
|
|
6495
|
-
(0,
|
|
6687
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6688
|
+
(0, import_class_validator55.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
6496
6689
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6497
6690
|
__decorateClass([
|
|
6498
|
-
(0,
|
|
6499
|
-
(0,
|
|
6691
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6692
|
+
(0, import_class_validator55.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6500
6693
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6501
6694
|
__decorateClass([
|
|
6502
|
-
(0,
|
|
6503
|
-
(0,
|
|
6695
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6696
|
+
(0, import_class_validator55.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
6504
6697
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6505
6698
|
|
|
6506
6699
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -6517,7 +6710,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
6517
6710
|
};
|
|
6518
6711
|
|
|
6519
6712
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
6520
|
-
var
|
|
6713
|
+
var import_class_validator56 = require("class-validator");
|
|
6521
6714
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
6522
6715
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
6523
6716
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -6533,70 +6726,70 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
6533
6726
|
var CreateClientDto = class {
|
|
6534
6727
|
};
|
|
6535
6728
|
__decorateClass([
|
|
6536
|
-
(0,
|
|
6537
|
-
(0,
|
|
6729
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter first name." }),
|
|
6730
|
+
(0, import_class_validator56.IsString)()
|
|
6538
6731
|
], CreateClientDto.prototype, "firstName", 2);
|
|
6539
6732
|
__decorateClass([
|
|
6540
|
-
(0,
|
|
6541
|
-
(0,
|
|
6733
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter last name." }),
|
|
6734
|
+
(0, import_class_validator56.IsString)()
|
|
6542
6735
|
], CreateClientDto.prototype, "lastName", 2);
|
|
6543
6736
|
__decorateClass([
|
|
6544
|
-
(0,
|
|
6545
|
-
(0,
|
|
6737
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter email." }),
|
|
6738
|
+
(0, import_class_validator56.IsEmail)()
|
|
6546
6739
|
], CreateClientDto.prototype, "email", 2);
|
|
6547
6740
|
__decorateClass([
|
|
6548
|
-
(0,
|
|
6549
|
-
(0,
|
|
6550
|
-
(0,
|
|
6551
|
-
(0,
|
|
6741
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter password." }),
|
|
6742
|
+
(0, import_class_validator56.MinLength)(6),
|
|
6743
|
+
(0, import_class_validator56.MaxLength)(32),
|
|
6744
|
+
(0, import_class_validator56.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6552
6745
|
message: "Password must include letters, numbers and symbols."
|
|
6553
6746
|
})
|
|
6554
6747
|
], CreateClientDto.prototype, "password", 2);
|
|
6555
6748
|
__decorateClass([
|
|
6556
|
-
(0,
|
|
6749
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
6557
6750
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6558
6751
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
6559
6752
|
__decorateClass([
|
|
6560
|
-
(0,
|
|
6561
|
-
(0,
|
|
6753
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter company name." }),
|
|
6754
|
+
(0, import_class_validator56.IsString)()
|
|
6562
6755
|
], CreateClientDto.prototype, "companyName", 2);
|
|
6563
6756
|
__decorateClass([
|
|
6564
|
-
(0,
|
|
6565
|
-
(0,
|
|
6757
|
+
(0, import_class_validator56.IsArray)({ message: "Skills should be an array." }),
|
|
6758
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter skills." })
|
|
6566
6759
|
], CreateClientDto.prototype, "skills", 2);
|
|
6567
6760
|
__decorateClass([
|
|
6568
|
-
(0,
|
|
6569
|
-
(0,
|
|
6761
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
6762
|
+
(0, import_class_validator56.IsString)()
|
|
6570
6763
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
6571
6764
|
__decorateClass([
|
|
6572
|
-
(0,
|
|
6573
|
-
(0,
|
|
6765
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
6766
|
+
(0, import_class_validator56.IsEnum)(CreateClientHiringTypeEnum)
|
|
6574
6767
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
6575
6768
|
__decorateClass([
|
|
6576
|
-
(0,
|
|
6577
|
-
(0,
|
|
6769
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
6770
|
+
(0, import_class_validator56.IsEnum)(CreateClientHiringModeEnum)
|
|
6578
6771
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
6579
6772
|
__decorateClass([
|
|
6580
|
-
(0,
|
|
6581
|
-
(0,
|
|
6773
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
6774
|
+
(0, import_class_validator56.IsString)()
|
|
6582
6775
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
6583
6776
|
__decorateClass([
|
|
6584
|
-
(0,
|
|
6585
|
-
(0,
|
|
6777
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6778
|
+
(0, import_class_validator56.IsString)()
|
|
6586
6779
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6587
6780
|
|
|
6588
6781
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
6589
|
-
var
|
|
6782
|
+
var import_class_validator57 = require("class-validator");
|
|
6590
6783
|
var UpdateClientAccountStatusDto = class {
|
|
6591
6784
|
};
|
|
6592
6785
|
__decorateClass([
|
|
6593
|
-
(0,
|
|
6594
|
-
(0,
|
|
6786
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please enter account status." }),
|
|
6787
|
+
(0, import_class_validator57.IsString)()
|
|
6595
6788
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
6596
6789
|
|
|
6597
6790
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
6598
|
-
var
|
|
6599
|
-
var
|
|
6791
|
+
var import_class_transformer11 = require("class-transformer");
|
|
6792
|
+
var import_class_validator58 = require("class-validator");
|
|
6600
6793
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
6601
6794
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
6602
6795
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -6612,53 +6805,53 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
6612
6805
|
var UpdateClientDto = class {
|
|
6613
6806
|
};
|
|
6614
6807
|
__decorateClass([
|
|
6615
|
-
(0,
|
|
6616
|
-
(0,
|
|
6808
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter first name." }),
|
|
6809
|
+
(0, import_class_validator58.IsString)()
|
|
6617
6810
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
6618
6811
|
__decorateClass([
|
|
6619
|
-
(0,
|
|
6620
|
-
(0,
|
|
6812
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter last name." }),
|
|
6813
|
+
(0, import_class_validator58.IsString)()
|
|
6621
6814
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
6622
6815
|
__decorateClass([
|
|
6623
|
-
(0,
|
|
6624
|
-
(0,
|
|
6816
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter email." }),
|
|
6817
|
+
(0, import_class_validator58.IsEmail)()
|
|
6625
6818
|
], UpdateClientDto.prototype, "email", 2);
|
|
6626
6819
|
__decorateClass([
|
|
6627
|
-
(0,
|
|
6628
|
-
(0,
|
|
6629
|
-
(0,
|
|
6630
|
-
(0,
|
|
6631
|
-
(0,
|
|
6820
|
+
(0, import_class_validator58.IsOptional)(),
|
|
6821
|
+
(0, import_class_transformer11.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6822
|
+
(0, import_class_validator58.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
6823
|
+
(0, import_class_validator58.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
6824
|
+
(0, import_class_validator58.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6632
6825
|
message: "Password must include letters, numbers and symbols."
|
|
6633
6826
|
})
|
|
6634
6827
|
], UpdateClientDto.prototype, "password", 2);
|
|
6635
6828
|
__decorateClass([
|
|
6636
|
-
(0,
|
|
6637
|
-
(0,
|
|
6829
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter company name." }),
|
|
6830
|
+
(0, import_class_validator58.IsString)()
|
|
6638
6831
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
6639
6832
|
__decorateClass([
|
|
6640
|
-
(0,
|
|
6641
|
-
(0,
|
|
6833
|
+
(0, import_class_validator58.IsArray)({ message: "Skills should be an array." }),
|
|
6834
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter skills." })
|
|
6642
6835
|
], UpdateClientDto.prototype, "skills", 2);
|
|
6643
6836
|
__decorateClass([
|
|
6644
|
-
(0,
|
|
6645
|
-
(0,
|
|
6837
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
6838
|
+
(0, import_class_validator58.IsString)()
|
|
6646
6839
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
6647
6840
|
__decorateClass([
|
|
6648
|
-
(0,
|
|
6649
|
-
(0,
|
|
6841
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
6842
|
+
(0, import_class_validator58.IsEnum)(UpdateClientHiringTypeEnum)
|
|
6650
6843
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
6651
6844
|
__decorateClass([
|
|
6652
|
-
(0,
|
|
6653
|
-
(0,
|
|
6845
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
6846
|
+
(0, import_class_validator58.IsEnum)(UpdateClientHiringModeEnum)
|
|
6654
6847
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
6655
6848
|
__decorateClass([
|
|
6656
|
-
(0,
|
|
6657
|
-
(0,
|
|
6849
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
6850
|
+
(0, import_class_validator58.IsString)()
|
|
6658
6851
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
6659
6852
|
__decorateClass([
|
|
6660
|
-
(0,
|
|
6661
|
-
(0,
|
|
6853
|
+
(0, import_class_validator58.IsOptional)(),
|
|
6854
|
+
(0, import_class_validator58.IsString)()
|
|
6662
6855
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6663
6856
|
|
|
6664
6857
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -6668,7 +6861,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
6668
6861
|
};
|
|
6669
6862
|
|
|
6670
6863
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
6671
|
-
var
|
|
6864
|
+
var import_class_validator59 = require("class-validator");
|
|
6672
6865
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
6673
6866
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
6674
6867
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -6679,16 +6872,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
6679
6872
|
var FreelancerDeclarationDto = class {
|
|
6680
6873
|
};
|
|
6681
6874
|
__decorateClass([
|
|
6682
|
-
(0,
|
|
6683
|
-
(0,
|
|
6875
|
+
(0, import_class_validator59.IsOptional)(),
|
|
6876
|
+
(0, import_class_validator59.IsString)({ message: "UUID must be a string" })
|
|
6684
6877
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
6685
6878
|
__decorateClass([
|
|
6686
|
-
(0,
|
|
6879
|
+
(0, import_class_validator59.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
6687
6880
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
6688
6881
|
__decorateClass([
|
|
6689
|
-
(0,
|
|
6690
|
-
(0,
|
|
6691
|
-
(0,
|
|
6882
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
6883
|
+
(0, import_class_validator59.IsString)(),
|
|
6884
|
+
(0, import_class_validator59.IsIn)([
|
|
6692
6885
|
"true"
|
|
6693
6886
|
])
|
|
6694
6887
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -6703,36 +6896,36 @@ var CMS_PATTERNS = {
|
|
|
6703
6896
|
};
|
|
6704
6897
|
|
|
6705
6898
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
6706
|
-
var
|
|
6899
|
+
var import_class_validator60 = require("class-validator");
|
|
6707
6900
|
var CreateCmsDto = class {
|
|
6708
6901
|
};
|
|
6709
6902
|
__decorateClass([
|
|
6710
|
-
(0,
|
|
6903
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter name." })
|
|
6711
6904
|
], CreateCmsDto.prototype, "title", 2);
|
|
6712
6905
|
__decorateClass([
|
|
6713
|
-
(0,
|
|
6906
|
+
(0, import_class_validator60.IsOptional)()
|
|
6714
6907
|
], CreateCmsDto.prototype, "content", 2);
|
|
6715
6908
|
__decorateClass([
|
|
6716
|
-
(0,
|
|
6717
|
-
(0,
|
|
6909
|
+
(0, import_class_validator60.IsOptional)(),
|
|
6910
|
+
(0, import_class_validator60.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6718
6911
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
6719
6912
|
|
|
6720
6913
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
6721
|
-
var
|
|
6914
|
+
var import_class_validator61 = require("class-validator");
|
|
6722
6915
|
var UpdateCmsDto = class {
|
|
6723
6916
|
};
|
|
6724
6917
|
__decorateClass([
|
|
6725
|
-
(0,
|
|
6918
|
+
(0, import_class_validator61.IsOptional)()
|
|
6726
6919
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
6727
6920
|
__decorateClass([
|
|
6728
|
-
(0,
|
|
6921
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter name." })
|
|
6729
6922
|
], UpdateCmsDto.prototype, "title", 2);
|
|
6730
6923
|
__decorateClass([
|
|
6731
|
-
(0,
|
|
6924
|
+
(0, import_class_validator61.IsOptional)()
|
|
6732
6925
|
], UpdateCmsDto.prototype, "content", 2);
|
|
6733
6926
|
__decorateClass([
|
|
6734
|
-
(0,
|
|
6735
|
-
(0,
|
|
6927
|
+
(0, import_class_validator61.IsOptional)(),
|
|
6928
|
+
(0, import_class_validator61.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6736
6929
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
6737
6930
|
|
|
6738
6931
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -6759,8 +6952,8 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6759
6952
|
};
|
|
6760
6953
|
|
|
6761
6954
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
6762
|
-
var
|
|
6763
|
-
var
|
|
6955
|
+
var import_class_transformer12 = require("class-transformer");
|
|
6956
|
+
var import_class_validator62 = require("class-validator");
|
|
6764
6957
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
6765
6958
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
6766
6959
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -6776,88 +6969,88 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
6776
6969
|
var AdminCreateJobInformationDto = class {
|
|
6777
6970
|
};
|
|
6778
6971
|
__decorateClass([
|
|
6779
|
-
(0,
|
|
6780
|
-
(0,
|
|
6972
|
+
(0, import_class_validator62.IsString)({ message: "Job role must be a string." }),
|
|
6973
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Job role is required." })
|
|
6781
6974
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
6782
6975
|
__decorateClass([
|
|
6783
|
-
(0,
|
|
6784
|
-
(0,
|
|
6976
|
+
(0, import_class_validator62.IsOptional)(),
|
|
6977
|
+
(0, import_class_validator62.IsString)({ message: "Note must be a string." })
|
|
6785
6978
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
6786
6979
|
__decorateClass([
|
|
6787
|
-
(0,
|
|
6788
|
-
(0,
|
|
6789
|
-
(0,
|
|
6980
|
+
(0, import_class_validator62.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
6981
|
+
(0, import_class_validator62.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
6982
|
+
(0, import_class_validator62.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
6790
6983
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
6791
6984
|
__decorateClass([
|
|
6792
|
-
(0,
|
|
6793
|
-
(0,
|
|
6985
|
+
(0, import_class_validator62.IsInt)({ message: "Openings must be a valid integer." }),
|
|
6986
|
+
(0, import_class_validator62.Min)(1, { message: "There must be at least one opening." })
|
|
6794
6987
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
6795
6988
|
__decorateClass([
|
|
6796
|
-
(0,
|
|
6989
|
+
(0, import_class_validator62.IsEnum)(JobLocationEnumDto, {
|
|
6797
6990
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
6798
6991
|
", "
|
|
6799
6992
|
)}.`
|
|
6800
6993
|
})
|
|
6801
6994
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
6802
6995
|
__decorateClass([
|
|
6803
|
-
(0,
|
|
6996
|
+
(0, import_class_validator62.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
6804
6997
|
message: `Type of employment must be one of: ${Object.values(
|
|
6805
6998
|
TypeOfEmploymentEnumDto
|
|
6806
6999
|
).join(", ")}.`
|
|
6807
7000
|
})
|
|
6808
7001
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
6809
7002
|
__decorateClass([
|
|
6810
|
-
(0,
|
|
6811
|
-
(0,
|
|
7003
|
+
(0, import_class_validator62.IsString)({ message: "Onboarding Days must be a string." }),
|
|
7004
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
6812
7005
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
6813
7006
|
__decorateClass([
|
|
6814
|
-
(0,
|
|
6815
|
-
(0,
|
|
7007
|
+
(0, import_class_validator62.IsString)({ message: "Communication skills must be a string." }),
|
|
7008
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Communication skills are required." })
|
|
6816
7009
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6817
7010
|
__decorateClass([
|
|
6818
|
-
(0,
|
|
6819
|
-
(0,
|
|
7011
|
+
(0, import_class_validator62.IsString)({ message: "Currency must be a string." }),
|
|
7012
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Currency is required." })
|
|
6820
7013
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6821
7014
|
__decorateClass([
|
|
6822
|
-
(0,
|
|
6823
|
-
(0,
|
|
7015
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
7016
|
+
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6824
7017
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6825
7018
|
__decorateClass([
|
|
6826
|
-
(0,
|
|
6827
|
-
(0,
|
|
7019
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
7020
|
+
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6828
7021
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6829
7022
|
__decorateClass([
|
|
6830
|
-
(0,
|
|
7023
|
+
(0, import_class_validator62.IsDateString)(
|
|
6831
7024
|
{ strict: true },
|
|
6832
7025
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
6833
7026
|
)
|
|
6834
7027
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
6835
7028
|
__decorateClass([
|
|
6836
|
-
(0,
|
|
7029
|
+
(0, import_class_validator62.IsDateString)(
|
|
6837
7030
|
{ strict: true },
|
|
6838
7031
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
6839
7032
|
)
|
|
6840
7033
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6841
7034
|
__decorateClass([
|
|
6842
|
-
(0,
|
|
6843
|
-
(0,
|
|
7035
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7036
|
+
(0, import_class_validator62.IsString)({ message: "Additional comment must be a string." })
|
|
6844
7037
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
6845
7038
|
__decorateClass([
|
|
6846
|
-
(0,
|
|
7039
|
+
(0, import_class_validator62.IsInt)({ message: "Country ID must be a valid integer." })
|
|
6847
7040
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
6848
7041
|
__decorateClass([
|
|
6849
|
-
(0,
|
|
7042
|
+
(0, import_class_validator62.IsInt)({ message: "State ID must be a valid integer." })
|
|
6850
7043
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
6851
7044
|
__decorateClass([
|
|
6852
|
-
(0,
|
|
7045
|
+
(0, import_class_validator62.IsInt)({ message: "City ID must be a valid integer." })
|
|
6853
7046
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
6854
7047
|
__decorateClass([
|
|
6855
|
-
(0,
|
|
7048
|
+
(0, import_class_validator62.IsInt)({ message: "Client ID must be a valid integer." })
|
|
6856
7049
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6857
7050
|
|
|
6858
7051
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6859
|
-
var
|
|
6860
|
-
var
|
|
7052
|
+
var import_class_transformer13 = require("class-transformer");
|
|
7053
|
+
var import_class_validator63 = require("class-validator");
|
|
6861
7054
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6862
7055
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
6863
7056
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -6873,83 +7066,83 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
6873
7066
|
var AdminUpdateJobInformationDto = class {
|
|
6874
7067
|
};
|
|
6875
7068
|
__decorateClass([
|
|
6876
|
-
(0,
|
|
6877
|
-
(0,
|
|
7069
|
+
(0, import_class_validator63.IsString)({ message: "Job role must be a string." }),
|
|
7070
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Job role is required." })
|
|
6878
7071
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
6879
7072
|
__decorateClass([
|
|
6880
|
-
(0,
|
|
6881
|
-
(0,
|
|
7073
|
+
(0, import_class_validator63.IsOptional)(),
|
|
7074
|
+
(0, import_class_validator63.IsString)({ message: "Note must be a string." })
|
|
6882
7075
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
6883
7076
|
__decorateClass([
|
|
6884
|
-
(0,
|
|
6885
|
-
(0,
|
|
6886
|
-
(0,
|
|
7077
|
+
(0, import_class_validator63.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
7078
|
+
(0, import_class_validator63.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
7079
|
+
(0, import_class_validator63.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
6887
7080
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
6888
7081
|
__decorateClass([
|
|
6889
|
-
(0,
|
|
6890
|
-
(0,
|
|
7082
|
+
(0, import_class_validator63.IsInt)({ message: "Openings must be a valid integer." }),
|
|
7083
|
+
(0, import_class_validator63.Min)(1, { message: "There must be at least one opening." })
|
|
6891
7084
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
6892
7085
|
__decorateClass([
|
|
6893
|
-
(0,
|
|
7086
|
+
(0, import_class_validator63.IsEnum)(JobLocationEnums, {
|
|
6894
7087
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
6895
7088
|
", "
|
|
6896
7089
|
)}.`
|
|
6897
7090
|
})
|
|
6898
7091
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
6899
7092
|
__decorateClass([
|
|
6900
|
-
(0,
|
|
7093
|
+
(0, import_class_validator63.IsEnum)(TypeOfEmploymentEnums, {
|
|
6901
7094
|
message: `Type of employment must be one of: ${Object.values(
|
|
6902
7095
|
TypeOfEmploymentEnums
|
|
6903
7096
|
).join(", ")}.`
|
|
6904
7097
|
})
|
|
6905
7098
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
6906
7099
|
__decorateClass([
|
|
6907
|
-
(0,
|
|
6908
|
-
(0,
|
|
7100
|
+
(0, import_class_validator63.IsString)({ message: "Onboarding Days must be a string." }),
|
|
7101
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
6909
7102
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
6910
7103
|
__decorateClass([
|
|
6911
|
-
(0,
|
|
6912
|
-
(0,
|
|
7104
|
+
(0, import_class_validator63.IsString)({ message: "Communication skills must be a string." }),
|
|
7105
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Communication skills are required." })
|
|
6913
7106
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6914
7107
|
__decorateClass([
|
|
6915
|
-
(0,
|
|
6916
|
-
(0,
|
|
7108
|
+
(0, import_class_validator63.IsString)({ message: "Currency must be a string." }),
|
|
7109
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Currency is required." })
|
|
6917
7110
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6918
7111
|
__decorateClass([
|
|
6919
|
-
(0,
|
|
6920
|
-
(0,
|
|
7112
|
+
(0, import_class_transformer13.Type)(() => Number),
|
|
7113
|
+
(0, import_class_validator63.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6921
7114
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6922
7115
|
__decorateClass([
|
|
6923
|
-
(0,
|
|
6924
|
-
(0,
|
|
7116
|
+
(0, import_class_transformer13.Type)(() => Number),
|
|
7117
|
+
(0, import_class_validator63.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6925
7118
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6926
7119
|
__decorateClass([
|
|
6927
|
-
(0,
|
|
7120
|
+
(0, import_class_validator63.IsDateString)(
|
|
6928
7121
|
{ strict: true },
|
|
6929
7122
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
6930
7123
|
)
|
|
6931
7124
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
6932
7125
|
__decorateClass([
|
|
6933
|
-
(0,
|
|
7126
|
+
(0, import_class_validator63.IsDateString)(
|
|
6934
7127
|
{ strict: true },
|
|
6935
7128
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
6936
7129
|
)
|
|
6937
7130
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6938
7131
|
__decorateClass([
|
|
6939
|
-
(0,
|
|
6940
|
-
(0,
|
|
7132
|
+
(0, import_class_validator63.IsOptional)(),
|
|
7133
|
+
(0, import_class_validator63.IsString)({ message: "Additional comment must be a string." })
|
|
6941
7134
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
6942
7135
|
__decorateClass([
|
|
6943
|
-
(0,
|
|
7136
|
+
(0, import_class_validator63.IsInt)({ message: "Country ID must be a valid integer." })
|
|
6944
7137
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
6945
7138
|
__decorateClass([
|
|
6946
|
-
(0,
|
|
7139
|
+
(0, import_class_validator63.IsInt)({ message: "State ID must be a valid integer." })
|
|
6947
7140
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
6948
7141
|
__decorateClass([
|
|
6949
|
-
(0,
|
|
7142
|
+
(0, import_class_validator63.IsInt)({ message: "City ID must be a valid integer." })
|
|
6950
7143
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
6951
7144
|
__decorateClass([
|
|
6952
|
-
(0,
|
|
7145
|
+
(0, import_class_validator63.IsInt)({ message: "Client ID must be a valid integer." })
|
|
6953
7146
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
6954
7147
|
|
|
6955
7148
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -6959,7 +7152,7 @@ var LEAD_PATTERN = {
|
|
|
6959
7152
|
};
|
|
6960
7153
|
|
|
6961
7154
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
6962
|
-
var
|
|
7155
|
+
var import_class_validator64 = require("class-validator");
|
|
6963
7156
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
6964
7157
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
6965
7158
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -6968,23 +7161,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
6968
7161
|
var CreateLeadDto = class {
|
|
6969
7162
|
};
|
|
6970
7163
|
__decorateClass([
|
|
6971
|
-
(0,
|
|
7164
|
+
(0, import_class_validator64.IsString)({ message: "Name must be a string" })
|
|
6972
7165
|
], CreateLeadDto.prototype, "name", 2);
|
|
6973
7166
|
__decorateClass([
|
|
6974
|
-
(0,
|
|
7167
|
+
(0, import_class_validator64.IsEmail)({}, { message: "Invalid email address" })
|
|
6975
7168
|
], CreateLeadDto.prototype, "email", 2);
|
|
6976
7169
|
__decorateClass([
|
|
6977
|
-
(0,
|
|
7170
|
+
(0, import_class_validator64.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6978
7171
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
6979
7172
|
__decorateClass([
|
|
6980
|
-
(0,
|
|
7173
|
+
(0, import_class_validator64.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6981
7174
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
6982
7175
|
__decorateClass([
|
|
6983
|
-
(0,
|
|
6984
|
-
(0,
|
|
7176
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7177
|
+
(0, import_class_validator64.IsString)({ message: "Description must be a string" })
|
|
6985
7178
|
], CreateLeadDto.prototype, "description", 2);
|
|
6986
7179
|
__decorateClass([
|
|
6987
|
-
(0,
|
|
7180
|
+
(0, import_class_validator64.IsEnum)(CategoryEmumDto, {
|
|
6988
7181
|
message: `Type of category must be one of: ${Object.values(
|
|
6989
7182
|
CategoryEmumDto
|
|
6990
7183
|
).join(", ")}`
|
|
@@ -7004,46 +7197,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7004
7197
|
};
|
|
7005
7198
|
|
|
7006
7199
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7007
|
-
var
|
|
7200
|
+
var import_class_validator65 = require("class-validator");
|
|
7008
7201
|
var CreateAdminRoleDto = class {
|
|
7009
7202
|
};
|
|
7010
7203
|
__decorateClass([
|
|
7011
|
-
(0,
|
|
7012
|
-
(0,
|
|
7204
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7205
|
+
(0, import_class_validator65.IsString)({ message: "Role name must be a string." })
|
|
7013
7206
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7014
7207
|
__decorateClass([
|
|
7015
|
-
(0,
|
|
7016
|
-
(0,
|
|
7208
|
+
(0, import_class_validator65.IsOptional)(),
|
|
7209
|
+
(0, import_class_validator65.IsString)({ message: "Role description must be a string." })
|
|
7017
7210
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7018
7211
|
|
|
7019
7212
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7020
|
-
var
|
|
7213
|
+
var import_class_validator66 = require("class-validator");
|
|
7021
7214
|
var UpdateAdminRoleDto = class {
|
|
7022
7215
|
};
|
|
7023
7216
|
__decorateClass([
|
|
7024
|
-
(0,
|
|
7025
|
-
(0,
|
|
7217
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7218
|
+
(0, import_class_validator66.IsString)({ message: "Role name must be a string." })
|
|
7026
7219
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7027
7220
|
__decorateClass([
|
|
7028
|
-
(0,
|
|
7029
|
-
(0,
|
|
7221
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7222
|
+
(0, import_class_validator66.IsString)({ message: "Role description must be a string." })
|
|
7030
7223
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7031
7224
|
__decorateClass([
|
|
7032
|
-
(0,
|
|
7033
|
-
(0,
|
|
7225
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7226
|
+
(0, import_class_validator66.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
7034
7227
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7035
7228
|
|
|
7036
7229
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7037
|
-
var
|
|
7230
|
+
var import_class_validator67 = require("class-validator");
|
|
7038
7231
|
var AttachPermissionsToRoleDto = class {
|
|
7039
7232
|
};
|
|
7040
7233
|
__decorateClass([
|
|
7041
|
-
(0,
|
|
7042
|
-
(0,
|
|
7234
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
7235
|
+
(0, import_class_validator67.IsString)({ message: "Role ID must be a string." })
|
|
7043
7236
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7044
7237
|
__decorateClass([
|
|
7045
|
-
(0,
|
|
7046
|
-
(0,
|
|
7238
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
7239
|
+
(0, import_class_validator67.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
7047
7240
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7048
7241
|
|
|
7049
7242
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7069,8 +7262,8 @@ var CALENDLY_PATTERN = {
|
|
|
7069
7262
|
};
|
|
7070
7263
|
|
|
7071
7264
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7072
|
-
var
|
|
7073
|
-
var
|
|
7265
|
+
var import_class_validator68 = require("class-validator");
|
|
7266
|
+
var import_class_transformer14 = require("class-transformer");
|
|
7074
7267
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7075
7268
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7076
7269
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7081,107 +7274,107 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
7081
7274
|
var ExistingCandidateDto = class {
|
|
7082
7275
|
};
|
|
7083
7276
|
__decorateClass([
|
|
7084
|
-
(0,
|
|
7277
|
+
(0, import_class_validator68.IsUUID)()
|
|
7085
7278
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7086
7279
|
__decorateClass([
|
|
7087
|
-
(0,
|
|
7280
|
+
(0, import_class_validator68.IsEnum)(CandidateType, {
|
|
7088
7281
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7089
7282
|
})
|
|
7090
7283
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7091
7284
|
var NewCandidateDto = class {
|
|
7092
7285
|
};
|
|
7093
7286
|
__decorateClass([
|
|
7094
|
-
(0,
|
|
7095
|
-
(0,
|
|
7287
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
7288
|
+
(0, import_class_validator68.IsString)({ message: "Name must be a string" })
|
|
7096
7289
|
], NewCandidateDto.prototype, "name", 2);
|
|
7097
7290
|
__decorateClass([
|
|
7098
|
-
(0,
|
|
7291
|
+
(0, import_class_validator68.IsEmail)({}, { message: "Please enter a valid email." })
|
|
7099
7292
|
], NewCandidateDto.prototype, "email", 2);
|
|
7100
7293
|
__decorateClass([
|
|
7101
|
-
(0,
|
|
7294
|
+
(0, import_class_validator68.IsEnum)(CandidateType, {
|
|
7102
7295
|
message: "type must be NEW"
|
|
7103
7296
|
})
|
|
7104
7297
|
], NewCandidateDto.prototype, "type", 2);
|
|
7105
7298
|
var CandidatesDto = class {
|
|
7106
7299
|
};
|
|
7107
7300
|
__decorateClass([
|
|
7108
|
-
(0,
|
|
7109
|
-
(0,
|
|
7110
|
-
(0,
|
|
7111
|
-
(0,
|
|
7112
|
-
(0,
|
|
7301
|
+
(0, import_class_validator68.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
7302
|
+
(0, import_class_validator68.IsArray)({ message: "Existing candidates should be an array." }),
|
|
7303
|
+
(0, import_class_validator68.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
7304
|
+
(0, import_class_validator68.ValidateNested)({ each: true }),
|
|
7305
|
+
(0, import_class_transformer14.Type)(() => ExistingCandidateDto)
|
|
7113
7306
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7114
7307
|
__decorateClass([
|
|
7115
|
-
(0,
|
|
7116
|
-
(0,
|
|
7117
|
-
(0,
|
|
7118
|
-
(0,
|
|
7119
|
-
(0,
|
|
7308
|
+
(0, import_class_validator68.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
7309
|
+
(0, import_class_validator68.IsArray)({ message: "New candidates should be an array." }),
|
|
7310
|
+
(0, import_class_validator68.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
7311
|
+
(0, import_class_validator68.ValidateNested)({ each: true }),
|
|
7312
|
+
(0, import_class_transformer14.Type)(() => NewCandidateDto)
|
|
7120
7313
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7121
7314
|
var InterviewInviteDto = class {
|
|
7122
7315
|
};
|
|
7123
7316
|
__decorateClass([
|
|
7124
|
-
(0,
|
|
7317
|
+
(0, import_class_validator68.IsUUID)()
|
|
7125
7318
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7126
7319
|
__decorateClass([
|
|
7127
|
-
(0,
|
|
7128
|
-
(0,
|
|
7320
|
+
(0, import_class_validator68.ValidateNested)({ each: true }),
|
|
7321
|
+
(0, import_class_transformer14.Type)(() => CandidatesDto)
|
|
7129
7322
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7130
7323
|
|
|
7131
7324
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7132
|
-
var
|
|
7325
|
+
var import_class_validator69 = require("class-validator");
|
|
7133
7326
|
var CreateF2FInterviewDto = class {
|
|
7134
7327
|
};
|
|
7135
7328
|
__decorateClass([
|
|
7136
|
-
(0,
|
|
7137
|
-
(0,
|
|
7329
|
+
(0, import_class_validator69.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7330
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7138
7331
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7139
7332
|
__decorateClass([
|
|
7140
|
-
(0,
|
|
7141
|
-
(0,
|
|
7333
|
+
(0, import_class_validator69.IsString)({ message: "Invitee name must be a string." }),
|
|
7334
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7142
7335
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7143
7336
|
__decorateClass([
|
|
7144
|
-
(0,
|
|
7337
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
7145
7338
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7146
7339
|
__decorateClass([
|
|
7147
|
-
(0,
|
|
7340
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7148
7341
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7149
7342
|
|
|
7150
7343
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7151
|
-
var
|
|
7344
|
+
var import_class_validator70 = require("class-validator");
|
|
7152
7345
|
var CreateF2FInterviewDirectDto = class {
|
|
7153
7346
|
};
|
|
7154
7347
|
__decorateClass([
|
|
7155
|
-
(0,
|
|
7156
|
-
(0,
|
|
7348
|
+
(0, import_class_validator70.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7349
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7157
7350
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7158
7351
|
__decorateClass([
|
|
7159
|
-
(0,
|
|
7160
|
-
(0,
|
|
7352
|
+
(0, import_class_validator70.IsString)({ message: "Invitee name must be a string." }),
|
|
7353
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7161
7354
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7162
7355
|
__decorateClass([
|
|
7163
|
-
(0,
|
|
7356
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7164
7357
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7165
7358
|
__decorateClass([
|
|
7166
|
-
(0,
|
|
7359
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7167
7360
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7168
7361
|
|
|
7169
7362
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7170
|
-
var
|
|
7363
|
+
var import_class_validator71 = require("class-validator");
|
|
7171
7364
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7172
7365
|
};
|
|
7173
7366
|
__decorateClass([
|
|
7174
|
-
(0,
|
|
7367
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
7175
7368
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7176
7369
|
__decorateClass([
|
|
7177
|
-
(0,
|
|
7370
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
7178
7371
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7179
7372
|
__decorateClass([
|
|
7180
|
-
(0,
|
|
7181
|
-
(0,
|
|
7373
|
+
(0, import_class_validator71.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
7374
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
7182
7375
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7183
7376
|
__decorateClass([
|
|
7184
|
-
(0,
|
|
7377
|
+
(0, import_class_validator71.IsString)({ message: "Freelancer reason must be a string." })
|
|
7185
7378
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7186
7379
|
|
|
7187
7380
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7205,43 +7398,43 @@ var CONTRACT_PATTERN = {
|
|
|
7205
7398
|
};
|
|
7206
7399
|
|
|
7207
7400
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7208
|
-
var
|
|
7209
|
-
var
|
|
7401
|
+
var import_class_validator72 = require("class-validator");
|
|
7402
|
+
var import_class_transformer15 = require("class-transformer");
|
|
7210
7403
|
var SignContractForClientDto = class {
|
|
7211
7404
|
};
|
|
7212
7405
|
__decorateClass([
|
|
7213
|
-
(0,
|
|
7214
|
-
(0,
|
|
7215
|
-
(0,
|
|
7406
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7407
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
7408
|
+
(0, import_class_validator72.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7216
7409
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7217
7410
|
__decorateClass([
|
|
7218
|
-
(0,
|
|
7219
|
-
(0,
|
|
7220
|
-
(0,
|
|
7411
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
7412
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
7413
|
+
(0, import_class_validator72.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
7221
7414
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7222
7415
|
__decorateClass([
|
|
7223
|
-
(0,
|
|
7224
|
-
(0,
|
|
7416
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7417
|
+
(0, import_class_validator72.IsEnum)(ContractTypeEnum)
|
|
7225
7418
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7226
7419
|
|
|
7227
7420
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7228
|
-
var
|
|
7229
|
-
var
|
|
7421
|
+
var import_class_validator73 = require("class-validator");
|
|
7422
|
+
var import_class_transformer16 = require("class-transformer");
|
|
7230
7423
|
var SignContractForFreelancerDto = class {
|
|
7231
7424
|
};
|
|
7232
7425
|
__decorateClass([
|
|
7233
|
-
(0,
|
|
7234
|
-
(0,
|
|
7235
|
-
(0,
|
|
7426
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7427
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7428
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7236
7429
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7237
7430
|
__decorateClass([
|
|
7238
|
-
(0,
|
|
7239
|
-
(0,
|
|
7240
|
-
(0,
|
|
7431
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Client ID is required." }),
|
|
7432
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7433
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Client ID must be a number." })
|
|
7241
7434
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7242
7435
|
__decorateClass([
|
|
7243
|
-
(0,
|
|
7244
|
-
(0,
|
|
7436
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7437
|
+
(0, import_class_validator73.IsEnum)(ContractTypeEnum)
|
|
7245
7438
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7246
7439
|
|
|
7247
7440
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7259,11 +7452,11 @@ var STRIPE_PATTERN = {
|
|
|
7259
7452
|
};
|
|
7260
7453
|
|
|
7261
7454
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7262
|
-
var
|
|
7455
|
+
var import_class_validator74 = require("class-validator");
|
|
7263
7456
|
var CreateCheckoutSessionDto = class {
|
|
7264
7457
|
};
|
|
7265
7458
|
__decorateClass([
|
|
7266
|
-
(0,
|
|
7459
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Amount is required" })
|
|
7267
7460
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7268
7461
|
|
|
7269
7462
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7284,99 +7477,99 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7284
7477
|
};
|
|
7285
7478
|
|
|
7286
7479
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
7287
|
-
var
|
|
7480
|
+
var import_class_validator75 = require("class-validator");
|
|
7288
7481
|
var CreateFreelancerTimesheetDto = class {
|
|
7289
7482
|
};
|
|
7290
7483
|
__decorateClass([
|
|
7291
|
-
(0,
|
|
7292
|
-
(0,
|
|
7484
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Job id is required" }),
|
|
7485
|
+
(0, import_class_validator75.IsNumber)({}, { message: "Job id must be a number" })
|
|
7293
7486
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7294
7487
|
__decorateClass([
|
|
7295
|
-
(0,
|
|
7296
|
-
(0,
|
|
7488
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "start date is required" }),
|
|
7489
|
+
(0, import_class_validator75.IsDateString)()
|
|
7297
7490
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7298
7491
|
__decorateClass([
|
|
7299
|
-
(0,
|
|
7300
|
-
(0,
|
|
7492
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "end date is required" }),
|
|
7493
|
+
(0, import_class_validator75.IsDateString)()
|
|
7301
7494
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7302
7495
|
__decorateClass([
|
|
7303
|
-
(0,
|
|
7304
|
-
(0,
|
|
7496
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "start time is required" }),
|
|
7497
|
+
(0, import_class_validator75.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7305
7498
|
message: "startTime must be in HH:mm:ss format"
|
|
7306
7499
|
})
|
|
7307
7500
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7308
7501
|
__decorateClass([
|
|
7309
|
-
(0,
|
|
7310
|
-
(0,
|
|
7502
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "end time is required" }),
|
|
7503
|
+
(0, import_class_validator75.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7311
7504
|
message: "endTime must be in HH:mm:ss format"
|
|
7312
7505
|
})
|
|
7313
7506
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7314
7507
|
__decorateClass([
|
|
7315
|
-
(0,
|
|
7316
|
-
(0,
|
|
7508
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7509
|
+
(0, import_class_validator75.IsInt)()
|
|
7317
7510
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7318
7511
|
__decorateClass([
|
|
7319
|
-
(0,
|
|
7320
|
-
(0,
|
|
7512
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7513
|
+
(0, import_class_validator75.IsString)()
|
|
7321
7514
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7322
7515
|
__decorateClass([
|
|
7323
|
-
(0,
|
|
7324
|
-
(0,
|
|
7516
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7517
|
+
(0, import_class_validator75.IsString)()
|
|
7325
7518
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7326
7519
|
__decorateClass([
|
|
7327
|
-
(0,
|
|
7328
|
-
(0,
|
|
7520
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7521
|
+
(0, import_class_validator75.IsString)()
|
|
7329
7522
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7330
7523
|
__decorateClass([
|
|
7331
|
-
(0,
|
|
7524
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Description is required" })
|
|
7332
7525
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7333
7526
|
|
|
7334
7527
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7335
|
-
var
|
|
7528
|
+
var import_class_validator76 = require("class-validator");
|
|
7336
7529
|
var UpdateFreelancerTimesheetDto = class {
|
|
7337
7530
|
};
|
|
7338
7531
|
__decorateClass([
|
|
7339
|
-
(0,
|
|
7340
|
-
(0,
|
|
7532
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Job id is required" }),
|
|
7533
|
+
(0, import_class_validator76.IsNumber)({}, { message: "Job id must be a number" })
|
|
7341
7534
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7342
7535
|
__decorateClass([
|
|
7343
|
-
(0,
|
|
7344
|
-
(0,
|
|
7536
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start date is required" }),
|
|
7537
|
+
(0, import_class_validator76.IsDateString)()
|
|
7345
7538
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7346
7539
|
__decorateClass([
|
|
7347
|
-
(0,
|
|
7348
|
-
(0,
|
|
7540
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end date is required" }),
|
|
7541
|
+
(0, import_class_validator76.IsDateString)()
|
|
7349
7542
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7350
7543
|
__decorateClass([
|
|
7351
|
-
(0,
|
|
7352
|
-
(0,
|
|
7544
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start time is required" }),
|
|
7545
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7353
7546
|
message: "startTime must be in HH:mm:ss format"
|
|
7354
7547
|
})
|
|
7355
7548
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7356
7549
|
__decorateClass([
|
|
7357
|
-
(0,
|
|
7358
|
-
(0,
|
|
7550
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end time is required" }),
|
|
7551
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7359
7552
|
message: "endTime must be in HH:mm:ss format"
|
|
7360
7553
|
})
|
|
7361
7554
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7362
7555
|
__decorateClass([
|
|
7363
|
-
(0,
|
|
7364
|
-
(0,
|
|
7556
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7557
|
+
(0, import_class_validator76.IsInt)()
|
|
7365
7558
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7366
7559
|
__decorateClass([
|
|
7367
|
-
(0,
|
|
7368
|
-
(0,
|
|
7560
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7561
|
+
(0, import_class_validator76.IsString)()
|
|
7369
7562
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7370
7563
|
__decorateClass([
|
|
7371
|
-
(0,
|
|
7372
|
-
(0,
|
|
7564
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7565
|
+
(0, import_class_validator76.IsString)()
|
|
7373
7566
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7374
7567
|
__decorateClass([
|
|
7375
|
-
(0,
|
|
7376
|
-
(0,
|
|
7568
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7569
|
+
(0, import_class_validator76.IsString)()
|
|
7377
7570
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7378
7571
|
__decorateClass([
|
|
7379
|
-
(0,
|
|
7572
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Description is required" })
|
|
7380
7573
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7381
7574
|
|
|
7382
7575
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7391,54 +7584,54 @@ var INVOICE_PATTERN = {
|
|
|
7391
7584
|
};
|
|
7392
7585
|
|
|
7393
7586
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7394
|
-
var
|
|
7587
|
+
var import_class_validator77 = require("class-validator");
|
|
7395
7588
|
var UpdateInvoiceStatusDto = class {
|
|
7396
7589
|
};
|
|
7397
7590
|
__decorateClass([
|
|
7398
|
-
(0,
|
|
7399
|
-
(0,
|
|
7591
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
7592
|
+
(0, import_class_validator77.IsEnum)(InvoiceStatusEnum, {
|
|
7400
7593
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7401
7594
|
})
|
|
7402
7595
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7403
7596
|
|
|
7404
7597
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7405
|
-
var
|
|
7406
|
-
var
|
|
7598
|
+
var import_class_validator78 = require("class-validator");
|
|
7599
|
+
var import_class_transformer17 = require("class-transformer");
|
|
7407
7600
|
var CreateDisputeDto = class {
|
|
7408
7601
|
};
|
|
7409
7602
|
__decorateClass([
|
|
7410
|
-
(0,
|
|
7411
|
-
(0,
|
|
7412
|
-
(0,
|
|
7603
|
+
(0, import_class_validator78.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7604
|
+
(0, import_class_validator78.IsNumber)({}, { message: "Client id must be a number" }),
|
|
7605
|
+
(0, import_class_transformer17.Type)(() => Number)
|
|
7413
7606
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7414
7607
|
__decorateClass([
|
|
7415
|
-
(0,
|
|
7416
|
-
(0,
|
|
7417
|
-
(0,
|
|
7608
|
+
(0, import_class_validator78.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7609
|
+
(0, import_class_validator78.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
7610
|
+
(0, import_class_transformer17.Type)(() => Number)
|
|
7418
7611
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7419
7612
|
__decorateClass([
|
|
7420
|
-
(0,
|
|
7421
|
-
(0,
|
|
7422
|
-
(0,
|
|
7613
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
7614
|
+
(0, import_class_validator78.IsString)(),
|
|
7615
|
+
(0, import_class_validator78.IsIn)(["JOB", "INVOICE"])
|
|
7423
7616
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7424
7617
|
__decorateClass([
|
|
7425
|
-
(0,
|
|
7426
|
-
(0,
|
|
7618
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
7619
|
+
(0, import_class_validator78.IsString)()
|
|
7427
7620
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7428
7621
|
__decorateClass([
|
|
7429
|
-
(0,
|
|
7430
|
-
(0,
|
|
7431
|
-
(0,
|
|
7622
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please enter description." }),
|
|
7623
|
+
(0, import_class_validator78.IsString)({ message: "Description must be a string" }),
|
|
7624
|
+
(0, import_class_validator78.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
7432
7625
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7433
7626
|
__decorateClass([
|
|
7434
|
-
(0,
|
|
7435
|
-
(0,
|
|
7436
|
-
(0,
|
|
7627
|
+
(0, import_class_validator78.IsOptional)(),
|
|
7628
|
+
(0, import_class_validator78.IsString)({ message: "Comment must be a string" }),
|
|
7629
|
+
(0, import_class_validator78.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
7437
7630
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7438
7631
|
__decorateClass([
|
|
7439
|
-
(0,
|
|
7440
|
-
(0,
|
|
7441
|
-
(0,
|
|
7632
|
+
(0, import_class_validator78.IsOptional)(),
|
|
7633
|
+
(0, import_class_validator78.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
7634
|
+
(0, import_class_transformer17.Transform)(({ value }) => {
|
|
7442
7635
|
if (typeof value === "string") {
|
|
7443
7636
|
try {
|
|
7444
7637
|
return JSON.parse(value);
|
|
@@ -7451,14 +7644,14 @@ __decorateClass([
|
|
|
7451
7644
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
7452
7645
|
|
|
7453
7646
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7454
|
-
var
|
|
7647
|
+
var import_class_validator79 = require("class-validator");
|
|
7455
7648
|
var AiInterviewQuestionGenerateDto = class {
|
|
7456
7649
|
};
|
|
7457
7650
|
__decorateClass([
|
|
7458
|
-
(0,
|
|
7651
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter job description." })
|
|
7459
7652
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7460
7653
|
__decorateClass([
|
|
7461
|
-
(0,
|
|
7654
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
7462
7655
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7463
7656
|
|
|
7464
7657
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8546,6 +8739,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8546
8739
|
DurationTypeEnum,
|
|
8547
8740
|
EducationDto,
|
|
8548
8741
|
EmploymentType,
|
|
8742
|
+
EmploymentTypeV2,
|
|
8549
8743
|
EscrowWallet,
|
|
8550
8744
|
EscrowWalletTransaction,
|
|
8551
8745
|
EscrowWalletTransactionForEnum,
|
|
@@ -8616,13 +8810,16 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8616
8810
|
JobAdditionalCommentDto,
|
|
8617
8811
|
JobApplication,
|
|
8618
8812
|
JobBasicInformationDto,
|
|
8813
|
+
JobBasicInformationV2Dto,
|
|
8619
8814
|
JobDescriptionDto,
|
|
8620
8815
|
JobFreelancerRecommendation,
|
|
8621
8816
|
JobFreelancerRecommendationV2,
|
|
8622
8817
|
JobIdParamDto,
|
|
8623
8818
|
JobLocation,
|
|
8819
|
+
JobLocationDto,
|
|
8624
8820
|
JobLocationEnum,
|
|
8625
8821
|
JobLocationEnumDto,
|
|
8822
|
+
JobLocationEnumV2,
|
|
8626
8823
|
JobLocationEnums,
|
|
8627
8824
|
JobRMQAdapter,
|
|
8628
8825
|
JobRecommendation,
|
|
@@ -8744,5 +8941,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8744
8941
|
WalletTransactionStatusEnum,
|
|
8745
8942
|
WalletTransactionTypeEnum,
|
|
8746
8943
|
ZoomMeetingLog,
|
|
8944
|
+
typeOfExperienceDtoEnumV2,
|
|
8747
8945
|
typeOfExperienceEnum
|
|
8748
8946
|
});
|