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