@experts_hub/shared 1.0.514 → 1.0.515
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/ai-interview.entity.d.ts +1 -0
- package/dist/index.d.mts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +766 -567
- package/dist/index.mjs +768 -561
- package/dist/modules/job/dto/index.d.ts +1 -0
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +52 -0
- package/package.json +1 -1
package/dist/index.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)()
|
|
@@ -5969,22 +6163,22 @@ Rating = __decorateClass([
|
|
|
5969
6163
|
var CreateRatingDto = class {
|
|
5970
6164
|
};
|
|
5971
6165
|
__decorateClass([
|
|
5972
|
-
(0,
|
|
5973
|
-
(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" })
|
|
5974
6168
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
5975
6169
|
__decorateClass([
|
|
5976
|
-
(0,
|
|
6170
|
+
(0, import_class_validator43.IsEnum)(RatingTypeEnum, {
|
|
5977
6171
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
5978
6172
|
})
|
|
5979
6173
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
5980
6174
|
__decorateClass([
|
|
5981
|
-
(0,
|
|
5982
|
-
(0,
|
|
5983
|
-
(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" })
|
|
5984
6178
|
], CreateRatingDto.prototype, "rating", 2);
|
|
5985
6179
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
5987
|
-
(0,
|
|
6180
|
+
(0, import_class_validator43.IsOptional)(),
|
|
6181
|
+
(0, import_class_validator43.IsString)({ message: "Review must be a string" })
|
|
5988
6182
|
], CreateRatingDto.prototype, "review", 2);
|
|
5989
6183
|
|
|
5990
6184
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6000,57 +6194,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6000
6194
|
};
|
|
6001
6195
|
|
|
6002
6196
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6003
|
-
var
|
|
6197
|
+
var import_class_validator44 = require("class-validator");
|
|
6004
6198
|
var CreateCompanyRoleDto = class {
|
|
6005
6199
|
};
|
|
6006
6200
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
6201
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter company role name." })
|
|
6008
6202
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6009
6203
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6204
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
6011
6205
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6012
6206
|
__decorateClass([
|
|
6013
|
-
(0,
|
|
6207
|
+
(0, import_class_validator44.IsNotEmpty)({ message: "Please enter description" })
|
|
6014
6208
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6015
6209
|
__decorateClass([
|
|
6016
|
-
(0,
|
|
6017
|
-
(0,
|
|
6018
|
-
(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." })
|
|
6019
6213
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6020
6214
|
__decorateClass([
|
|
6021
|
-
(0,
|
|
6022
|
-
(0,
|
|
6215
|
+
(0, import_class_validator44.IsOptional)(),
|
|
6216
|
+
(0, import_class_validator44.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6023
6217
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6024
6218
|
|
|
6025
6219
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6026
|
-
var
|
|
6220
|
+
var import_class_validator45 = require("class-validator");
|
|
6027
6221
|
var UpdateCompanyRoleDto = class {
|
|
6028
6222
|
};
|
|
6029
6223
|
__decorateClass([
|
|
6030
|
-
(0,
|
|
6224
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter company name." })
|
|
6031
6225
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6032
6226
|
__decorateClass([
|
|
6033
|
-
(0,
|
|
6227
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter slug" })
|
|
6034
6228
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6035
6229
|
__decorateClass([
|
|
6036
|
-
(0,
|
|
6230
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter description" })
|
|
6037
6231
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6038
6232
|
__decorateClass([
|
|
6039
|
-
(0,
|
|
6040
|
-
(0,
|
|
6041
|
-
(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." })
|
|
6042
6236
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6043
6237
|
__decorateClass([
|
|
6044
|
-
(0,
|
|
6045
|
-
(0,
|
|
6238
|
+
(0, import_class_validator45.IsOptional)(),
|
|
6239
|
+
(0, import_class_validator45.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6046
6240
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6047
6241
|
|
|
6048
6242
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
6049
|
-
var
|
|
6243
|
+
var import_class_validator46 = require("class-validator");
|
|
6050
6244
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
6051
6245
|
};
|
|
6052
6246
|
__decorateClass([
|
|
6053
|
-
(0,
|
|
6247
|
+
(0, import_class_validator46.IsBoolean)()
|
|
6054
6248
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
6055
6249
|
|
|
6056
6250
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -6060,36 +6254,36 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6060
6254
|
};
|
|
6061
6255
|
|
|
6062
6256
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6063
|
-
var
|
|
6064
|
-
var
|
|
6257
|
+
var import_class_validator47 = require("class-validator");
|
|
6258
|
+
var import_class_transformer5 = require("class-transformer");
|
|
6065
6259
|
var ExperienceDto = class {
|
|
6066
6260
|
};
|
|
6067
6261
|
__decorateClass([
|
|
6068
|
-
(0,
|
|
6262
|
+
(0, import_class_validator47.IsOptional)()
|
|
6069
6263
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6070
6264
|
__decorateClass([
|
|
6071
|
-
(0,
|
|
6072
|
-
(0,
|
|
6265
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6266
|
+
(0, import_class_validator47.IsString)()
|
|
6073
6267
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6074
6268
|
__decorateClass([
|
|
6075
|
-
(0,
|
|
6076
|
-
(0,
|
|
6269
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6270
|
+
(0, import_class_validator47.IsString)()
|
|
6077
6271
|
], ExperienceDto.prototype, "designation", 2);
|
|
6078
6272
|
__decorateClass([
|
|
6079
|
-
(0,
|
|
6080
|
-
(0,
|
|
6273
|
+
(0, import_class_validator47.IsNotEmpty)(),
|
|
6274
|
+
(0, import_class_validator47.IsString)()
|
|
6081
6275
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6082
6276
|
__decorateClass([
|
|
6083
|
-
(0,
|
|
6084
|
-
(0,
|
|
6085
|
-
(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" })
|
|
6086
6280
|
], ExperienceDto.prototype, "description", 2);
|
|
6087
6281
|
var FreelancerExperienceDto = class {
|
|
6088
6282
|
};
|
|
6089
6283
|
__decorateClass([
|
|
6090
|
-
(0,
|
|
6091
|
-
(0,
|
|
6092
|
-
(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)
|
|
6093
6287
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
6094
6288
|
|
|
6095
6289
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -6105,43 +6299,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6105
6299
|
};
|
|
6106
6300
|
|
|
6107
6301
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6108
|
-
var
|
|
6302
|
+
var import_class_validator48 = require("class-validator");
|
|
6109
6303
|
var CreateCompanyMemberDto = class {
|
|
6110
6304
|
};
|
|
6111
6305
|
__decorateClass([
|
|
6112
|
-
(0,
|
|
6306
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter name." })
|
|
6113
6307
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6114
6308
|
__decorateClass([
|
|
6115
|
-
(0,
|
|
6309
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter email" })
|
|
6116
6310
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6117
6311
|
__decorateClass([
|
|
6118
|
-
(0,
|
|
6119
|
-
(0,
|
|
6120
|
-
(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." })
|
|
6121
6315
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6122
6316
|
|
|
6123
6317
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6124
|
-
var
|
|
6318
|
+
var import_class_validator49 = require("class-validator");
|
|
6125
6319
|
var UpdateCompanyMemberDto = class {
|
|
6126
6320
|
};
|
|
6127
6321
|
__decorateClass([
|
|
6128
|
-
(0,
|
|
6322
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter name." })
|
|
6129
6323
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6130
6324
|
__decorateClass([
|
|
6131
|
-
(0,
|
|
6325
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter email" })
|
|
6132
6326
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6133
6327
|
__decorateClass([
|
|
6134
|
-
(0,
|
|
6135
|
-
(0,
|
|
6136
|
-
(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." })
|
|
6137
6331
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6138
6332
|
|
|
6139
6333
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
6140
|
-
var
|
|
6334
|
+
var import_class_validator50 = require("class-validator");
|
|
6141
6335
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
6142
6336
|
};
|
|
6143
6337
|
__decorateClass([
|
|
6144
|
-
(0,
|
|
6338
|
+
(0, import_class_validator50.IsBoolean)()
|
|
6145
6339
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
6146
6340
|
|
|
6147
6341
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -6151,32 +6345,32 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6151
6345
|
};
|
|
6152
6346
|
|
|
6153
6347
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6154
|
-
var
|
|
6155
|
-
var
|
|
6348
|
+
var import_class_validator51 = require("class-validator");
|
|
6349
|
+
var import_class_transformer6 = require("class-transformer");
|
|
6156
6350
|
var EducationDto = class {
|
|
6157
6351
|
};
|
|
6158
6352
|
__decorateClass([
|
|
6159
|
-
(0,
|
|
6353
|
+
(0, import_class_validator51.IsOptional)()
|
|
6160
6354
|
], EducationDto.prototype, "uuid", 2);
|
|
6161
6355
|
__decorateClass([
|
|
6162
|
-
(0,
|
|
6163
|
-
(0,
|
|
6356
|
+
(0, import_class_validator51.IsString)(),
|
|
6357
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
6164
6358
|
], EducationDto.prototype, "degree", 2);
|
|
6165
6359
|
__decorateClass([
|
|
6166
|
-
(0,
|
|
6167
|
-
(0,
|
|
6360
|
+
(0, import_class_validator51.IsString)(),
|
|
6361
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter University " })
|
|
6168
6362
|
], EducationDto.prototype, "university", 2);
|
|
6169
6363
|
__decorateClass([
|
|
6170
|
-
(0,
|
|
6171
|
-
(0,
|
|
6364
|
+
(0, import_class_validator51.IsString)(),
|
|
6365
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
6172
6366
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6173
6367
|
var FreelancerEducationDto = class {
|
|
6174
6368
|
};
|
|
6175
6369
|
__decorateClass([
|
|
6176
|
-
(0,
|
|
6177
|
-
(0,
|
|
6178
|
-
(0,
|
|
6179
|
-
(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)
|
|
6180
6374
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
6181
6375
|
|
|
6182
6376
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -6186,68 +6380,68 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6186
6380
|
};
|
|
6187
6381
|
|
|
6188
6382
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6189
|
-
var
|
|
6190
|
-
var
|
|
6383
|
+
var import_class_validator52 = require("class-validator");
|
|
6384
|
+
var import_class_transformer7 = require("class-transformer");
|
|
6191
6385
|
var ProjectDto = class {
|
|
6192
6386
|
};
|
|
6193
6387
|
__decorateClass([
|
|
6194
|
-
(0,
|
|
6388
|
+
(0, import_class_validator52.IsOptional)()
|
|
6195
6389
|
], ProjectDto.prototype, "uuid", 2);
|
|
6196
6390
|
__decorateClass([
|
|
6197
|
-
(0,
|
|
6198
|
-
(0,
|
|
6391
|
+
(0, import_class_validator52.IsString)(),
|
|
6392
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6199
6393
|
], ProjectDto.prototype, "projectName", 2);
|
|
6200
6394
|
__decorateClass([
|
|
6201
|
-
(0,
|
|
6202
|
-
(0,
|
|
6395
|
+
(0, import_class_validator52.IsDateString)(),
|
|
6396
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
6203
6397
|
], ProjectDto.prototype, "startDate", 2);
|
|
6204
6398
|
__decorateClass([
|
|
6205
|
-
(0,
|
|
6206
|
-
(0,
|
|
6399
|
+
(0, import_class_validator52.IsDateString)(),
|
|
6400
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
6207
6401
|
], ProjectDto.prototype, "endDate", 2);
|
|
6208
6402
|
__decorateClass([
|
|
6209
|
-
(0,
|
|
6210
|
-
(0,
|
|
6403
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6404
|
+
(0, import_class_validator52.IsString)()
|
|
6211
6405
|
], ProjectDto.prototype, "clientName", 2);
|
|
6212
6406
|
__decorateClass([
|
|
6213
|
-
(0,
|
|
6214
|
-
(0,
|
|
6407
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6408
|
+
(0, import_class_validator52.IsString)()
|
|
6215
6409
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6216
6410
|
__decorateClass([
|
|
6217
|
-
(0,
|
|
6218
|
-
(0,
|
|
6219
|
-
(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" })
|
|
6220
6414
|
], ProjectDto.prototype, "description", 2);
|
|
6221
6415
|
var CaseStudyDto = class {
|
|
6222
6416
|
};
|
|
6223
6417
|
__decorateClass([
|
|
6224
|
-
(0,
|
|
6418
|
+
(0, import_class_validator52.IsOptional)()
|
|
6225
6419
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6226
6420
|
__decorateClass([
|
|
6227
|
-
(0,
|
|
6228
|
-
(0,
|
|
6421
|
+
(0, import_class_validator52.IsString)(),
|
|
6422
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
6229
6423
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6230
6424
|
__decorateClass([
|
|
6231
|
-
(0,
|
|
6232
|
-
(0,
|
|
6425
|
+
(0, import_class_validator52.IsOptional)(),
|
|
6426
|
+
(0, import_class_validator52.IsString)()
|
|
6233
6427
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6234
6428
|
__decorateClass([
|
|
6235
|
-
(0,
|
|
6236
|
-
(0,
|
|
6237
|
-
(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" })
|
|
6238
6432
|
], CaseStudyDto.prototype, "description", 2);
|
|
6239
6433
|
var FreelancerProjectDto = class {
|
|
6240
6434
|
};
|
|
6241
6435
|
__decorateClass([
|
|
6242
|
-
(0,
|
|
6243
|
-
(0,
|
|
6244
|
-
(0,
|
|
6245
|
-
(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)
|
|
6246
6440
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
6247
6441
|
__decorateClass([
|
|
6248
|
-
(0,
|
|
6249
|
-
(0,
|
|
6250
|
-
(0,
|
|
6442
|
+
(0, import_class_validator52.IsArray)(),
|
|
6443
|
+
(0, import_class_validator52.ValidateNested)({ each: true }),
|
|
6444
|
+
(0, import_class_transformer7.Type)(() => CaseStudyDto)
|
|
6251
6445
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
6252
6446
|
|
|
6253
6447
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -6262,8 +6456,8 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
6262
6456
|
};
|
|
6263
6457
|
|
|
6264
6458
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
6265
|
-
var
|
|
6266
|
-
var
|
|
6459
|
+
var import_class_validator53 = require("class-validator");
|
|
6460
|
+
var import_class_transformer8 = require("class-transformer");
|
|
6267
6461
|
var FreelancerSkillDto = class {
|
|
6268
6462
|
constructor() {
|
|
6269
6463
|
this.coreSkills = [];
|
|
@@ -6273,28 +6467,28 @@ var FreelancerSkillDto = class {
|
|
|
6273
6467
|
}
|
|
6274
6468
|
};
|
|
6275
6469
|
__decorateClass([
|
|
6276
|
-
(0,
|
|
6277
|
-
(0,
|
|
6278
|
-
(0,
|
|
6279
|
-
(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 })
|
|
6280
6474
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
6281
6475
|
__decorateClass([
|
|
6282
|
-
(0,
|
|
6283
|
-
(0,
|
|
6284
|
-
(0,
|
|
6285
|
-
(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 })
|
|
6286
6480
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
6287
6481
|
__decorateClass([
|
|
6288
|
-
(0,
|
|
6289
|
-
(0,
|
|
6290
|
-
(0,
|
|
6291
|
-
(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 })
|
|
6292
6486
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
6293
6487
|
__decorateClass([
|
|
6294
|
-
(0,
|
|
6295
|
-
(0,
|
|
6296
|
-
(0,
|
|
6297
|
-
(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 })
|
|
6298
6492
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
6299
6493
|
|
|
6300
6494
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -6310,8 +6504,8 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
6310
6504
|
};
|
|
6311
6505
|
|
|
6312
6506
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
6313
|
-
var
|
|
6314
|
-
var
|
|
6507
|
+
var import_class_validator54 = require("class-validator");
|
|
6508
|
+
var import_class_transformer9 = require("class-transformer");
|
|
6315
6509
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6316
6510
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6317
6511
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6327,85 +6521,85 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6327
6521
|
var CreateFreelancerDto = class {
|
|
6328
6522
|
};
|
|
6329
6523
|
__decorateClass([
|
|
6330
|
-
(0,
|
|
6331
|
-
(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" })
|
|
6332
6526
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
6333
6527
|
__decorateClass([
|
|
6334
|
-
(0,
|
|
6528
|
+
(0, import_class_validator54.IsEmail)({}, { message: "Invalid email address" })
|
|
6335
6529
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
6336
6530
|
__decorateClass([
|
|
6337
|
-
(0,
|
|
6531
|
+
(0, import_class_validator54.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6338
6532
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
6339
6533
|
__decorateClass([
|
|
6340
|
-
(0,
|
|
6534
|
+
(0, import_class_validator54.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6341
6535
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
6342
6536
|
__decorateClass([
|
|
6343
|
-
(0,
|
|
6344
|
-
(0,
|
|
6345
|
-
(0,
|
|
6346
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
6347
6541
|
message: "Password must include letters, numbers and symbols."
|
|
6348
6542
|
})
|
|
6349
6543
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
6350
6544
|
__decorateClass([
|
|
6351
|
-
(0,
|
|
6545
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
6352
6546
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6353
6547
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
6354
6548
|
__decorateClass([
|
|
6355
|
-
(0,
|
|
6356
|
-
(0,
|
|
6549
|
+
(0, import_class_validator54.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
6550
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
6357
6551
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
6358
6552
|
__decorateClass([
|
|
6359
|
-
(0,
|
|
6553
|
+
(0, import_class_validator54.IsEnum)(NatureOfWorkEnum, {
|
|
6360
6554
|
message: `Nature of work must be one of: ${Object.values(
|
|
6361
6555
|
NatureOfWorkEnum
|
|
6362
6556
|
).join(", ")}`
|
|
6363
6557
|
})
|
|
6364
6558
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6365
6559
|
__decorateClass([
|
|
6366
|
-
(0,
|
|
6367
|
-
(0,
|
|
6368
|
-
(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)
|
|
6369
6563
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6370
6564
|
__decorateClass([
|
|
6371
|
-
(0,
|
|
6565
|
+
(0, import_class_validator54.IsEnum)(ModeOfWorkEnum, {
|
|
6372
6566
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
6373
6567
|
", "
|
|
6374
6568
|
)}`
|
|
6375
6569
|
})
|
|
6376
6570
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6377
6571
|
__decorateClass([
|
|
6378
|
-
(0,
|
|
6379
|
-
(0,
|
|
6572
|
+
(0, import_class_validator54.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
6573
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
6380
6574
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6381
6575
|
__decorateClass([
|
|
6382
|
-
(0,
|
|
6383
|
-
(0,
|
|
6576
|
+
(0, import_class_validator54.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
6577
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
6384
6578
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6385
6579
|
__decorateClass([
|
|
6386
|
-
(0,
|
|
6387
|
-
(0,
|
|
6580
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6581
|
+
(0, import_class_validator54.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6388
6582
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6389
6583
|
__decorateClass([
|
|
6390
|
-
(0,
|
|
6391
|
-
(0,
|
|
6584
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6585
|
+
(0, import_class_validator54.IsString)({ message: "Kaggle profile link must be a string" })
|
|
6392
6586
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6393
6587
|
__decorateClass([
|
|
6394
|
-
(0,
|
|
6395
|
-
(0,
|
|
6588
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6589
|
+
(0, import_class_validator54.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
6396
6590
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6397
6591
|
__decorateClass([
|
|
6398
|
-
(0,
|
|
6399
|
-
(0,
|
|
6592
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6593
|
+
(0, import_class_validator54.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6400
6594
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6401
6595
|
__decorateClass([
|
|
6402
|
-
(0,
|
|
6403
|
-
(0,
|
|
6596
|
+
(0, import_class_validator54.IsOptional)(),
|
|
6597
|
+
(0, import_class_validator54.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
6404
6598
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6405
6599
|
|
|
6406
6600
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
6407
|
-
var
|
|
6408
|
-
var
|
|
6601
|
+
var import_class_validator55 = require("class-validator");
|
|
6602
|
+
var import_class_transformer10 = require("class-transformer");
|
|
6409
6603
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
6410
6604
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
6411
6605
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -6421,86 +6615,86 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
6421
6615
|
var UpdateFreelancerDto = class {
|
|
6422
6616
|
};
|
|
6423
6617
|
__decorateClass([
|
|
6424
|
-
(0,
|
|
6425
|
-
(0,
|
|
6426
|
-
(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" })
|
|
6427
6621
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
6428
6622
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6430
|
-
(0,
|
|
6623
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6624
|
+
(0, import_class_validator55.IsEmail)({}, { message: "Invalid email address" })
|
|
6431
6625
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
6432
6626
|
__decorateClass([
|
|
6433
|
-
(0,
|
|
6434
|
-
(0,
|
|
6627
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6628
|
+
(0, import_class_validator55.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6435
6629
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
6436
6630
|
__decorateClass([
|
|
6437
|
-
(0,
|
|
6438
|
-
(0,
|
|
6631
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6632
|
+
(0, import_class_validator55.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6439
6633
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
6440
6634
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6442
|
-
(0,
|
|
6443
|
-
(0,
|
|
6444
|
-
(0,
|
|
6445
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
6446
6640
|
message: "Password must include letters, numbers and symbols."
|
|
6447
6641
|
})
|
|
6448
6642
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
6449
6643
|
__decorateClass([
|
|
6450
|
-
(0,
|
|
6451
|
-
(0,
|
|
6452
|
-
(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)
|
|
6453
6647
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
6454
6648
|
__decorateClass([
|
|
6455
|
-
(0,
|
|
6456
|
-
(0,
|
|
6649
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6650
|
+
(0, import_class_validator55.IsEnum)(NatureOfWorkEnum2, {
|
|
6457
6651
|
message: `Nature of work must be one of: ${Object.values(
|
|
6458
6652
|
NatureOfWorkEnum2
|
|
6459
6653
|
).join(", ")}`
|
|
6460
6654
|
})
|
|
6461
6655
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
6462
6656
|
__decorateClass([
|
|
6463
|
-
(0,
|
|
6464
|
-
(0,
|
|
6465
|
-
(0,
|
|
6466
|
-
(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)
|
|
6467
6661
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
6468
6662
|
__decorateClass([
|
|
6469
|
-
(0,
|
|
6470
|
-
(0,
|
|
6663
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6664
|
+
(0, import_class_validator55.IsEnum)(ModeOfWorkEnum2, {
|
|
6471
6665
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
6472
6666
|
", "
|
|
6473
6667
|
)}`
|
|
6474
6668
|
})
|
|
6475
6669
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
6476
6670
|
__decorateClass([
|
|
6477
|
-
(0,
|
|
6478
|
-
(0,
|
|
6479
|
-
(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)
|
|
6480
6674
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
6481
6675
|
__decorateClass([
|
|
6482
|
-
(0,
|
|
6483
|
-
(0,
|
|
6676
|
+
(0, import_class_validator55.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
6677
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
6484
6678
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
6485
6679
|
__decorateClass([
|
|
6486
|
-
(0,
|
|
6487
|
-
(0,
|
|
6680
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6681
|
+
(0, import_class_validator55.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
6488
6682
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
6489
6683
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6491
|
-
(0,
|
|
6684
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6685
|
+
(0, import_class_validator55.IsString)({ message: "Kaggle profile link must be a string" })
|
|
6492
6686
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
6493
6687
|
__decorateClass([
|
|
6494
|
-
(0,
|
|
6495
|
-
(0,
|
|
6688
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6689
|
+
(0, import_class_validator55.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
6496
6690
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
6497
6691
|
__decorateClass([
|
|
6498
|
-
(0,
|
|
6499
|
-
(0,
|
|
6692
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6693
|
+
(0, import_class_validator55.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
6500
6694
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
6501
6695
|
__decorateClass([
|
|
6502
|
-
(0,
|
|
6503
|
-
(0,
|
|
6696
|
+
(0, import_class_validator55.IsOptional)(),
|
|
6697
|
+
(0, import_class_validator55.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
6504
6698
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
6505
6699
|
|
|
6506
6700
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -6517,7 +6711,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
6517
6711
|
};
|
|
6518
6712
|
|
|
6519
6713
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
6520
|
-
var
|
|
6714
|
+
var import_class_validator56 = require("class-validator");
|
|
6521
6715
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
6522
6716
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
6523
6717
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -6533,70 +6727,70 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
6533
6727
|
var CreateClientDto = class {
|
|
6534
6728
|
};
|
|
6535
6729
|
__decorateClass([
|
|
6536
|
-
(0,
|
|
6537
|
-
(0,
|
|
6730
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter first name." }),
|
|
6731
|
+
(0, import_class_validator56.IsString)()
|
|
6538
6732
|
], CreateClientDto.prototype, "firstName", 2);
|
|
6539
6733
|
__decorateClass([
|
|
6540
|
-
(0,
|
|
6541
|
-
(0,
|
|
6734
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter last name." }),
|
|
6735
|
+
(0, import_class_validator56.IsString)()
|
|
6542
6736
|
], CreateClientDto.prototype, "lastName", 2);
|
|
6543
6737
|
__decorateClass([
|
|
6544
|
-
(0,
|
|
6545
|
-
(0,
|
|
6738
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter email." }),
|
|
6739
|
+
(0, import_class_validator56.IsEmail)()
|
|
6546
6740
|
], CreateClientDto.prototype, "email", 2);
|
|
6547
6741
|
__decorateClass([
|
|
6548
|
-
(0,
|
|
6549
|
-
(0,
|
|
6550
|
-
(0,
|
|
6551
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
6552
6746
|
message: "Password must include letters, numbers and symbols."
|
|
6553
6747
|
})
|
|
6554
6748
|
], CreateClientDto.prototype, "password", 2);
|
|
6555
6749
|
__decorateClass([
|
|
6556
|
-
(0,
|
|
6750
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
6557
6751
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
6558
6752
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
6559
6753
|
__decorateClass([
|
|
6560
|
-
(0,
|
|
6561
|
-
(0,
|
|
6754
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter company name." }),
|
|
6755
|
+
(0, import_class_validator56.IsString)()
|
|
6562
6756
|
], CreateClientDto.prototype, "companyName", 2);
|
|
6563
6757
|
__decorateClass([
|
|
6564
|
-
(0,
|
|
6565
|
-
(0,
|
|
6758
|
+
(0, import_class_validator56.IsArray)({ message: "Skills should be an array." }),
|
|
6759
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter skills." })
|
|
6566
6760
|
], CreateClientDto.prototype, "skills", 2);
|
|
6567
6761
|
__decorateClass([
|
|
6568
|
-
(0,
|
|
6569
|
-
(0,
|
|
6762
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
6763
|
+
(0, import_class_validator56.IsString)()
|
|
6570
6764
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
6571
6765
|
__decorateClass([
|
|
6572
|
-
(0,
|
|
6573
|
-
(0,
|
|
6766
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
6767
|
+
(0, import_class_validator56.IsEnum)(CreateClientHiringTypeEnum)
|
|
6574
6768
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
6575
6769
|
__decorateClass([
|
|
6576
|
-
(0,
|
|
6577
|
-
(0,
|
|
6770
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
6771
|
+
(0, import_class_validator56.IsEnum)(CreateClientHiringModeEnum)
|
|
6578
6772
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
6579
6773
|
__decorateClass([
|
|
6580
|
-
(0,
|
|
6581
|
-
(0,
|
|
6774
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
6775
|
+
(0, import_class_validator56.IsString)()
|
|
6582
6776
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
6583
6777
|
__decorateClass([
|
|
6584
|
-
(0,
|
|
6585
|
-
(0,
|
|
6778
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6779
|
+
(0, import_class_validator56.IsString)()
|
|
6586
6780
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6587
6781
|
|
|
6588
6782
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
6589
|
-
var
|
|
6783
|
+
var import_class_validator57 = require("class-validator");
|
|
6590
6784
|
var UpdateClientAccountStatusDto = class {
|
|
6591
6785
|
};
|
|
6592
6786
|
__decorateClass([
|
|
6593
|
-
(0,
|
|
6594
|
-
(0,
|
|
6787
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please enter account status." }),
|
|
6788
|
+
(0, import_class_validator57.IsString)()
|
|
6595
6789
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
6596
6790
|
|
|
6597
6791
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
6598
|
-
var
|
|
6599
|
-
var
|
|
6792
|
+
var import_class_transformer11 = require("class-transformer");
|
|
6793
|
+
var import_class_validator58 = require("class-validator");
|
|
6600
6794
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
6601
6795
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
6602
6796
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -6612,53 +6806,53 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
6612
6806
|
var UpdateClientDto = class {
|
|
6613
6807
|
};
|
|
6614
6808
|
__decorateClass([
|
|
6615
|
-
(0,
|
|
6616
|
-
(0,
|
|
6809
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter first name." }),
|
|
6810
|
+
(0, import_class_validator58.IsString)()
|
|
6617
6811
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
6618
6812
|
__decorateClass([
|
|
6619
|
-
(0,
|
|
6620
|
-
(0,
|
|
6813
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter last name." }),
|
|
6814
|
+
(0, import_class_validator58.IsString)()
|
|
6621
6815
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
6622
6816
|
__decorateClass([
|
|
6623
|
-
(0,
|
|
6624
|
-
(0,
|
|
6817
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter email." }),
|
|
6818
|
+
(0, import_class_validator58.IsEmail)()
|
|
6625
6819
|
], UpdateClientDto.prototype, "email", 2);
|
|
6626
6820
|
__decorateClass([
|
|
6627
|
-
(0,
|
|
6628
|
-
(0,
|
|
6629
|
-
(0,
|
|
6630
|
-
(0,
|
|
6631
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
6632
6826
|
message: "Password must include letters, numbers and symbols."
|
|
6633
6827
|
})
|
|
6634
6828
|
], UpdateClientDto.prototype, "password", 2);
|
|
6635
6829
|
__decorateClass([
|
|
6636
|
-
(0,
|
|
6637
|
-
(0,
|
|
6830
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter company name." }),
|
|
6831
|
+
(0, import_class_validator58.IsString)()
|
|
6638
6832
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
6639
6833
|
__decorateClass([
|
|
6640
|
-
(0,
|
|
6641
|
-
(0,
|
|
6834
|
+
(0, import_class_validator58.IsArray)({ message: "Skills should be an array." }),
|
|
6835
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter skills." })
|
|
6642
6836
|
], UpdateClientDto.prototype, "skills", 2);
|
|
6643
6837
|
__decorateClass([
|
|
6644
|
-
(0,
|
|
6645
|
-
(0,
|
|
6838
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
6839
|
+
(0, import_class_validator58.IsString)()
|
|
6646
6840
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
6647
6841
|
__decorateClass([
|
|
6648
|
-
(0,
|
|
6649
|
-
(0,
|
|
6842
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
6843
|
+
(0, import_class_validator58.IsEnum)(UpdateClientHiringTypeEnum)
|
|
6650
6844
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
6651
6845
|
__decorateClass([
|
|
6652
|
-
(0,
|
|
6653
|
-
(0,
|
|
6846
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
6847
|
+
(0, import_class_validator58.IsEnum)(UpdateClientHiringModeEnum)
|
|
6654
6848
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
6655
6849
|
__decorateClass([
|
|
6656
|
-
(0,
|
|
6657
|
-
(0,
|
|
6850
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
6851
|
+
(0, import_class_validator58.IsString)()
|
|
6658
6852
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
6659
6853
|
__decorateClass([
|
|
6660
|
-
(0,
|
|
6661
|
-
(0,
|
|
6854
|
+
(0, import_class_validator58.IsOptional)(),
|
|
6855
|
+
(0, import_class_validator58.IsString)()
|
|
6662
6856
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6663
6857
|
|
|
6664
6858
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -6668,7 +6862,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
6668
6862
|
};
|
|
6669
6863
|
|
|
6670
6864
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
6671
|
-
var
|
|
6865
|
+
var import_class_validator59 = require("class-validator");
|
|
6672
6866
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
6673
6867
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
6674
6868
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -6679,16 +6873,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
6679
6873
|
var FreelancerDeclarationDto = class {
|
|
6680
6874
|
};
|
|
6681
6875
|
__decorateClass([
|
|
6682
|
-
(0,
|
|
6683
|
-
(0,
|
|
6876
|
+
(0, import_class_validator59.IsOptional)(),
|
|
6877
|
+
(0, import_class_validator59.IsString)({ message: "UUID must be a string" })
|
|
6684
6878
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
6685
6879
|
__decorateClass([
|
|
6686
|
-
(0,
|
|
6880
|
+
(0, import_class_validator59.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
6687
6881
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
6688
6882
|
__decorateClass([
|
|
6689
|
-
(0,
|
|
6690
|
-
(0,
|
|
6691
|
-
(0,
|
|
6883
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
6884
|
+
(0, import_class_validator59.IsString)(),
|
|
6885
|
+
(0, import_class_validator59.IsIn)([
|
|
6692
6886
|
"true"
|
|
6693
6887
|
])
|
|
6694
6888
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -6703,36 +6897,36 @@ var CMS_PATTERNS = {
|
|
|
6703
6897
|
};
|
|
6704
6898
|
|
|
6705
6899
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
6706
|
-
var
|
|
6900
|
+
var import_class_validator60 = require("class-validator");
|
|
6707
6901
|
var CreateCmsDto = class {
|
|
6708
6902
|
};
|
|
6709
6903
|
__decorateClass([
|
|
6710
|
-
(0,
|
|
6904
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter name." })
|
|
6711
6905
|
], CreateCmsDto.prototype, "title", 2);
|
|
6712
6906
|
__decorateClass([
|
|
6713
|
-
(0,
|
|
6907
|
+
(0, import_class_validator60.IsOptional)()
|
|
6714
6908
|
], CreateCmsDto.prototype, "content", 2);
|
|
6715
6909
|
__decorateClass([
|
|
6716
|
-
(0,
|
|
6717
|
-
(0,
|
|
6910
|
+
(0, import_class_validator60.IsOptional)(),
|
|
6911
|
+
(0, import_class_validator60.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6718
6912
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
6719
6913
|
|
|
6720
6914
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
6721
|
-
var
|
|
6915
|
+
var import_class_validator61 = require("class-validator");
|
|
6722
6916
|
var UpdateCmsDto = class {
|
|
6723
6917
|
};
|
|
6724
6918
|
__decorateClass([
|
|
6725
|
-
(0,
|
|
6919
|
+
(0, import_class_validator61.IsOptional)()
|
|
6726
6920
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
6727
6921
|
__decorateClass([
|
|
6728
|
-
(0,
|
|
6922
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter name." })
|
|
6729
6923
|
], UpdateCmsDto.prototype, "title", 2);
|
|
6730
6924
|
__decorateClass([
|
|
6731
|
-
(0,
|
|
6925
|
+
(0, import_class_validator61.IsOptional)()
|
|
6732
6926
|
], UpdateCmsDto.prototype, "content", 2);
|
|
6733
6927
|
__decorateClass([
|
|
6734
|
-
(0,
|
|
6735
|
-
(0,
|
|
6928
|
+
(0, import_class_validator61.IsOptional)(),
|
|
6929
|
+
(0, import_class_validator61.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
6736
6930
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
6737
6931
|
|
|
6738
6932
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -6759,8 +6953,8 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6759
6953
|
};
|
|
6760
6954
|
|
|
6761
6955
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
6762
|
-
var
|
|
6763
|
-
var
|
|
6956
|
+
var import_class_transformer12 = require("class-transformer");
|
|
6957
|
+
var import_class_validator62 = require("class-validator");
|
|
6764
6958
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
6765
6959
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
6766
6960
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -6776,88 +6970,88 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
6776
6970
|
var AdminCreateJobInformationDto = class {
|
|
6777
6971
|
};
|
|
6778
6972
|
__decorateClass([
|
|
6779
|
-
(0,
|
|
6780
|
-
(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." })
|
|
6781
6975
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
6782
6976
|
__decorateClass([
|
|
6783
|
-
(0,
|
|
6784
|
-
(0,
|
|
6977
|
+
(0, import_class_validator62.IsOptional)(),
|
|
6978
|
+
(0, import_class_validator62.IsString)({ message: "Note must be a string." })
|
|
6785
6979
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
6786
6980
|
__decorateClass([
|
|
6787
|
-
(0,
|
|
6788
|
-
(0,
|
|
6789
|
-
(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." })
|
|
6790
6984
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
6791
6985
|
__decorateClass([
|
|
6792
|
-
(0,
|
|
6793
|
-
(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." })
|
|
6794
6988
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
6795
6989
|
__decorateClass([
|
|
6796
|
-
(0,
|
|
6990
|
+
(0, import_class_validator62.IsEnum)(JobLocationEnumDto, {
|
|
6797
6991
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
6798
6992
|
", "
|
|
6799
6993
|
)}.`
|
|
6800
6994
|
})
|
|
6801
6995
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
6802
6996
|
__decorateClass([
|
|
6803
|
-
(0,
|
|
6997
|
+
(0, import_class_validator62.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
6804
6998
|
message: `Type of employment must be one of: ${Object.values(
|
|
6805
6999
|
TypeOfEmploymentEnumDto
|
|
6806
7000
|
).join(", ")}.`
|
|
6807
7001
|
})
|
|
6808
7002
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
6809
7003
|
__decorateClass([
|
|
6810
|
-
(0,
|
|
6811
|
-
(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." })
|
|
6812
7006
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
6813
7007
|
__decorateClass([
|
|
6814
|
-
(0,
|
|
6815
|
-
(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." })
|
|
6816
7010
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6817
7011
|
__decorateClass([
|
|
6818
|
-
(0,
|
|
6819
|
-
(0,
|
|
7012
|
+
(0, import_class_validator62.IsString)({ message: "Currency must be a string." }),
|
|
7013
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Currency is required." })
|
|
6820
7014
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6821
7015
|
__decorateClass([
|
|
6822
|
-
(0,
|
|
6823
|
-
(0,
|
|
7016
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
7017
|
+
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6824
7018
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6825
7019
|
__decorateClass([
|
|
6826
|
-
(0,
|
|
6827
|
-
(0,
|
|
7020
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
7021
|
+
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6828
7022
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6829
7023
|
__decorateClass([
|
|
6830
|
-
(0,
|
|
7024
|
+
(0, import_class_validator62.IsDateString)(
|
|
6831
7025
|
{ strict: true },
|
|
6832
7026
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
6833
7027
|
)
|
|
6834
7028
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
6835
7029
|
__decorateClass([
|
|
6836
|
-
(0,
|
|
7030
|
+
(0, import_class_validator62.IsDateString)(
|
|
6837
7031
|
{ strict: true },
|
|
6838
7032
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
6839
7033
|
)
|
|
6840
7034
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6841
7035
|
__decorateClass([
|
|
6842
|
-
(0,
|
|
6843
|
-
(0,
|
|
7036
|
+
(0, import_class_validator62.IsOptional)(),
|
|
7037
|
+
(0, import_class_validator62.IsString)({ message: "Additional comment must be a string." })
|
|
6844
7038
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
6845
7039
|
__decorateClass([
|
|
6846
|
-
(0,
|
|
7040
|
+
(0, import_class_validator62.IsInt)({ message: "Country ID must be a valid integer." })
|
|
6847
7041
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
6848
7042
|
__decorateClass([
|
|
6849
|
-
(0,
|
|
7043
|
+
(0, import_class_validator62.IsInt)({ message: "State ID must be a valid integer." })
|
|
6850
7044
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
6851
7045
|
__decorateClass([
|
|
6852
|
-
(0,
|
|
7046
|
+
(0, import_class_validator62.IsInt)({ message: "City ID must be a valid integer." })
|
|
6853
7047
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
6854
7048
|
__decorateClass([
|
|
6855
|
-
(0,
|
|
7049
|
+
(0, import_class_validator62.IsInt)({ message: "Client ID must be a valid integer." })
|
|
6856
7050
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6857
7051
|
|
|
6858
7052
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6859
|
-
var
|
|
6860
|
-
var
|
|
7053
|
+
var import_class_transformer13 = require("class-transformer");
|
|
7054
|
+
var import_class_validator63 = require("class-validator");
|
|
6861
7055
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6862
7056
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
6863
7057
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -6873,83 +7067,83 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
6873
7067
|
var AdminUpdateJobInformationDto = class {
|
|
6874
7068
|
};
|
|
6875
7069
|
__decorateClass([
|
|
6876
|
-
(0,
|
|
6877
|
-
(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." })
|
|
6878
7072
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
6879
7073
|
__decorateClass([
|
|
6880
|
-
(0,
|
|
6881
|
-
(0,
|
|
7074
|
+
(0, import_class_validator63.IsOptional)(),
|
|
7075
|
+
(0, import_class_validator63.IsString)({ message: "Note must be a string." })
|
|
6882
7076
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
6883
7077
|
__decorateClass([
|
|
6884
|
-
(0,
|
|
6885
|
-
(0,
|
|
6886
|
-
(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." })
|
|
6887
7081
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
6888
7082
|
__decorateClass([
|
|
6889
|
-
(0,
|
|
6890
|
-
(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." })
|
|
6891
7085
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
6892
7086
|
__decorateClass([
|
|
6893
|
-
(0,
|
|
7087
|
+
(0, import_class_validator63.IsEnum)(JobLocationEnums, {
|
|
6894
7088
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
6895
7089
|
", "
|
|
6896
7090
|
)}.`
|
|
6897
7091
|
})
|
|
6898
7092
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
6899
7093
|
__decorateClass([
|
|
6900
|
-
(0,
|
|
7094
|
+
(0, import_class_validator63.IsEnum)(TypeOfEmploymentEnums, {
|
|
6901
7095
|
message: `Type of employment must be one of: ${Object.values(
|
|
6902
7096
|
TypeOfEmploymentEnums
|
|
6903
7097
|
).join(", ")}.`
|
|
6904
7098
|
})
|
|
6905
7099
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
6906
7100
|
__decorateClass([
|
|
6907
|
-
(0,
|
|
6908
|
-
(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." })
|
|
6909
7103
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
6910
7104
|
__decorateClass([
|
|
6911
|
-
(0,
|
|
6912
|
-
(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." })
|
|
6913
7107
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6914
7108
|
__decorateClass([
|
|
6915
|
-
(0,
|
|
6916
|
-
(0,
|
|
7109
|
+
(0, import_class_validator63.IsString)({ message: "Currency must be a string." }),
|
|
7110
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Currency is required." })
|
|
6917
7111
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6918
7112
|
__decorateClass([
|
|
6919
|
-
(0,
|
|
6920
|
-
(0,
|
|
7113
|
+
(0, import_class_transformer13.Type)(() => Number),
|
|
7114
|
+
(0, import_class_validator63.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6921
7115
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6922
7116
|
__decorateClass([
|
|
6923
|
-
(0,
|
|
6924
|
-
(0,
|
|
7117
|
+
(0, import_class_transformer13.Type)(() => Number),
|
|
7118
|
+
(0, import_class_validator63.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6925
7119
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6926
7120
|
__decorateClass([
|
|
6927
|
-
(0,
|
|
7121
|
+
(0, import_class_validator63.IsDateString)(
|
|
6928
7122
|
{ strict: true },
|
|
6929
7123
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
6930
7124
|
)
|
|
6931
7125
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
6932
7126
|
__decorateClass([
|
|
6933
|
-
(0,
|
|
7127
|
+
(0, import_class_validator63.IsDateString)(
|
|
6934
7128
|
{ strict: true },
|
|
6935
7129
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
6936
7130
|
)
|
|
6937
7131
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
6938
7132
|
__decorateClass([
|
|
6939
|
-
(0,
|
|
6940
|
-
(0,
|
|
7133
|
+
(0, import_class_validator63.IsOptional)(),
|
|
7134
|
+
(0, import_class_validator63.IsString)({ message: "Additional comment must be a string." })
|
|
6941
7135
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
6942
7136
|
__decorateClass([
|
|
6943
|
-
(0,
|
|
7137
|
+
(0, import_class_validator63.IsInt)({ message: "Country ID must be a valid integer." })
|
|
6944
7138
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
6945
7139
|
__decorateClass([
|
|
6946
|
-
(0,
|
|
7140
|
+
(0, import_class_validator63.IsInt)({ message: "State ID must be a valid integer." })
|
|
6947
7141
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
6948
7142
|
__decorateClass([
|
|
6949
|
-
(0,
|
|
7143
|
+
(0, import_class_validator63.IsInt)({ message: "City ID must be a valid integer." })
|
|
6950
7144
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
6951
7145
|
__decorateClass([
|
|
6952
|
-
(0,
|
|
7146
|
+
(0, import_class_validator63.IsInt)({ message: "Client ID must be a valid integer." })
|
|
6953
7147
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
6954
7148
|
|
|
6955
7149
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -6959,7 +7153,7 @@ var LEAD_PATTERN = {
|
|
|
6959
7153
|
};
|
|
6960
7154
|
|
|
6961
7155
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
6962
|
-
var
|
|
7156
|
+
var import_class_validator64 = require("class-validator");
|
|
6963
7157
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
6964
7158
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
6965
7159
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -6968,23 +7162,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
6968
7162
|
var CreateLeadDto = class {
|
|
6969
7163
|
};
|
|
6970
7164
|
__decorateClass([
|
|
6971
|
-
(0,
|
|
7165
|
+
(0, import_class_validator64.IsString)({ message: "Name must be a string" })
|
|
6972
7166
|
], CreateLeadDto.prototype, "name", 2);
|
|
6973
7167
|
__decorateClass([
|
|
6974
|
-
(0,
|
|
7168
|
+
(0, import_class_validator64.IsEmail)({}, { message: "Invalid email address" })
|
|
6975
7169
|
], CreateLeadDto.prototype, "email", 2);
|
|
6976
7170
|
__decorateClass([
|
|
6977
|
-
(0,
|
|
7171
|
+
(0, import_class_validator64.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
6978
7172
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
6979
7173
|
__decorateClass([
|
|
6980
|
-
(0,
|
|
7174
|
+
(0, import_class_validator64.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
6981
7175
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
6982
7176
|
__decorateClass([
|
|
6983
|
-
(0,
|
|
6984
|
-
(0,
|
|
7177
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7178
|
+
(0, import_class_validator64.IsString)({ message: "Description must be a string" })
|
|
6985
7179
|
], CreateLeadDto.prototype, "description", 2);
|
|
6986
7180
|
__decorateClass([
|
|
6987
|
-
(0,
|
|
7181
|
+
(0, import_class_validator64.IsEnum)(CategoryEmumDto, {
|
|
6988
7182
|
message: `Type of category must be one of: ${Object.values(
|
|
6989
7183
|
CategoryEmumDto
|
|
6990
7184
|
).join(", ")}`
|
|
@@ -7004,46 +7198,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7004
7198
|
};
|
|
7005
7199
|
|
|
7006
7200
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7007
|
-
var
|
|
7201
|
+
var import_class_validator65 = require("class-validator");
|
|
7008
7202
|
var CreateAdminRoleDto = class {
|
|
7009
7203
|
};
|
|
7010
7204
|
__decorateClass([
|
|
7011
|
-
(0,
|
|
7012
|
-
(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." })
|
|
7013
7207
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7014
7208
|
__decorateClass([
|
|
7015
|
-
(0,
|
|
7016
|
-
(0,
|
|
7209
|
+
(0, import_class_validator65.IsOptional)(),
|
|
7210
|
+
(0, import_class_validator65.IsString)({ message: "Role description must be a string." })
|
|
7017
7211
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7018
7212
|
|
|
7019
7213
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7020
|
-
var
|
|
7214
|
+
var import_class_validator66 = require("class-validator");
|
|
7021
7215
|
var UpdateAdminRoleDto = class {
|
|
7022
7216
|
};
|
|
7023
7217
|
__decorateClass([
|
|
7024
|
-
(0,
|
|
7025
|
-
(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." })
|
|
7026
7220
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7027
7221
|
__decorateClass([
|
|
7028
|
-
(0,
|
|
7029
|
-
(0,
|
|
7222
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7223
|
+
(0, import_class_validator66.IsString)({ message: "Role description must be a string." })
|
|
7030
7224
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7031
7225
|
__decorateClass([
|
|
7032
|
-
(0,
|
|
7033
|
-
(0,
|
|
7226
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7227
|
+
(0, import_class_validator66.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
7034
7228
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7035
7229
|
|
|
7036
7230
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7037
|
-
var
|
|
7231
|
+
var import_class_validator67 = require("class-validator");
|
|
7038
7232
|
var AttachPermissionsToRoleDto = class {
|
|
7039
7233
|
};
|
|
7040
7234
|
__decorateClass([
|
|
7041
|
-
(0,
|
|
7042
|
-
(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." })
|
|
7043
7237
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7044
7238
|
__decorateClass([
|
|
7045
|
-
(0,
|
|
7046
|
-
(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." })
|
|
7047
7241
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7048
7242
|
|
|
7049
7243
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7069,8 +7263,8 @@ var CALENDLY_PATTERN = {
|
|
|
7069
7263
|
};
|
|
7070
7264
|
|
|
7071
7265
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7072
|
-
var
|
|
7073
|
-
var
|
|
7266
|
+
var import_class_validator68 = require("class-validator");
|
|
7267
|
+
var import_class_transformer14 = require("class-transformer");
|
|
7074
7268
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7075
7269
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7076
7270
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7081,107 +7275,107 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
7081
7275
|
var ExistingCandidateDto = class {
|
|
7082
7276
|
};
|
|
7083
7277
|
__decorateClass([
|
|
7084
|
-
(0,
|
|
7278
|
+
(0, import_class_validator68.IsUUID)()
|
|
7085
7279
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7086
7280
|
__decorateClass([
|
|
7087
|
-
(0,
|
|
7281
|
+
(0, import_class_validator68.IsEnum)(CandidateType, {
|
|
7088
7282
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7089
7283
|
})
|
|
7090
7284
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7091
7285
|
var NewCandidateDto = class {
|
|
7092
7286
|
};
|
|
7093
7287
|
__decorateClass([
|
|
7094
|
-
(0,
|
|
7095
|
-
(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" })
|
|
7096
7290
|
], NewCandidateDto.prototype, "name", 2);
|
|
7097
7291
|
__decorateClass([
|
|
7098
|
-
(0,
|
|
7292
|
+
(0, import_class_validator68.IsEmail)({}, { message: "Please enter a valid email." })
|
|
7099
7293
|
], NewCandidateDto.prototype, "email", 2);
|
|
7100
7294
|
__decorateClass([
|
|
7101
|
-
(0,
|
|
7295
|
+
(0, import_class_validator68.IsEnum)(CandidateType, {
|
|
7102
7296
|
message: "type must be NEW"
|
|
7103
7297
|
})
|
|
7104
7298
|
], NewCandidateDto.prototype, "type", 2);
|
|
7105
7299
|
var CandidatesDto = class {
|
|
7106
7300
|
};
|
|
7107
7301
|
__decorateClass([
|
|
7108
|
-
(0,
|
|
7109
|
-
(0,
|
|
7110
|
-
(0,
|
|
7111
|
-
(0,
|
|
7112
|
-
(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)
|
|
7113
7307
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7114
7308
|
__decorateClass([
|
|
7115
|
-
(0,
|
|
7116
|
-
(0,
|
|
7117
|
-
(0,
|
|
7118
|
-
(0,
|
|
7119
|
-
(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)
|
|
7120
7314
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7121
7315
|
var InterviewInviteDto = class {
|
|
7122
7316
|
};
|
|
7123
7317
|
__decorateClass([
|
|
7124
|
-
(0,
|
|
7318
|
+
(0, import_class_validator68.IsUUID)()
|
|
7125
7319
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7126
7320
|
__decorateClass([
|
|
7127
|
-
(0,
|
|
7128
|
-
(0,
|
|
7321
|
+
(0, import_class_validator68.ValidateNested)({ each: true }),
|
|
7322
|
+
(0, import_class_transformer14.Type)(() => CandidatesDto)
|
|
7129
7323
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7130
7324
|
|
|
7131
7325
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7132
|
-
var
|
|
7326
|
+
var import_class_validator69 = require("class-validator");
|
|
7133
7327
|
var CreateF2FInterviewDto = class {
|
|
7134
7328
|
};
|
|
7135
7329
|
__decorateClass([
|
|
7136
|
-
(0,
|
|
7137
|
-
(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." })
|
|
7138
7332
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7139
7333
|
__decorateClass([
|
|
7140
|
-
(0,
|
|
7141
|
-
(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." })
|
|
7142
7336
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7143
7337
|
__decorateClass([
|
|
7144
|
-
(0,
|
|
7338
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
7145
7339
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7146
7340
|
__decorateClass([
|
|
7147
|
-
(0,
|
|
7341
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7148
7342
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7149
7343
|
|
|
7150
7344
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7151
|
-
var
|
|
7345
|
+
var import_class_validator70 = require("class-validator");
|
|
7152
7346
|
var CreateF2FInterviewDirectDto = class {
|
|
7153
7347
|
};
|
|
7154
7348
|
__decorateClass([
|
|
7155
|
-
(0,
|
|
7156
|
-
(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." })
|
|
7157
7351
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7158
7352
|
__decorateClass([
|
|
7159
|
-
(0,
|
|
7160
|
-
(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." })
|
|
7161
7355
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7162
7356
|
__decorateClass([
|
|
7163
|
-
(0,
|
|
7357
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7164
7358
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7165
7359
|
__decorateClass([
|
|
7166
|
-
(0,
|
|
7360
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7167
7361
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7168
7362
|
|
|
7169
7363
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7170
|
-
var
|
|
7364
|
+
var import_class_validator71 = require("class-validator");
|
|
7171
7365
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7172
7366
|
};
|
|
7173
7367
|
__decorateClass([
|
|
7174
|
-
(0,
|
|
7368
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
7175
7369
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7176
7370
|
__decorateClass([
|
|
7177
|
-
(0,
|
|
7371
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
7178
7372
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7179
7373
|
__decorateClass([
|
|
7180
|
-
(0,
|
|
7181
|
-
(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." })
|
|
7182
7376
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7183
7377
|
__decorateClass([
|
|
7184
|
-
(0,
|
|
7378
|
+
(0, import_class_validator71.IsString)({ message: "Freelancer reason must be a string." })
|
|
7185
7379
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7186
7380
|
|
|
7187
7381
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7205,43 +7399,43 @@ var CONTRACT_PATTERN = {
|
|
|
7205
7399
|
};
|
|
7206
7400
|
|
|
7207
7401
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7208
|
-
var
|
|
7209
|
-
var
|
|
7402
|
+
var import_class_validator72 = require("class-validator");
|
|
7403
|
+
var import_class_transformer15 = require("class-transformer");
|
|
7210
7404
|
var SignContractForClientDto = class {
|
|
7211
7405
|
};
|
|
7212
7406
|
__decorateClass([
|
|
7213
|
-
(0,
|
|
7214
|
-
(0,
|
|
7215
|
-
(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." })
|
|
7216
7410
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7217
7411
|
__decorateClass([
|
|
7218
|
-
(0,
|
|
7219
|
-
(0,
|
|
7220
|
-
(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." })
|
|
7221
7415
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7222
7416
|
__decorateClass([
|
|
7223
|
-
(0,
|
|
7224
|
-
(0,
|
|
7417
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7418
|
+
(0, import_class_validator72.IsEnum)(ContractTypeEnum)
|
|
7225
7419
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7226
7420
|
|
|
7227
7421
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7228
|
-
var
|
|
7229
|
-
var
|
|
7422
|
+
var import_class_validator73 = require("class-validator");
|
|
7423
|
+
var import_class_transformer16 = require("class-transformer");
|
|
7230
7424
|
var SignContractForFreelancerDto = class {
|
|
7231
7425
|
};
|
|
7232
7426
|
__decorateClass([
|
|
7233
|
-
(0,
|
|
7234
|
-
(0,
|
|
7235
|
-
(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." })
|
|
7236
7430
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7237
7431
|
__decorateClass([
|
|
7238
|
-
(0,
|
|
7239
|
-
(0,
|
|
7240
|
-
(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." })
|
|
7241
7435
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7242
7436
|
__decorateClass([
|
|
7243
|
-
(0,
|
|
7244
|
-
(0,
|
|
7437
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7438
|
+
(0, import_class_validator73.IsEnum)(ContractTypeEnum)
|
|
7245
7439
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7246
7440
|
|
|
7247
7441
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7259,11 +7453,11 @@ var STRIPE_PATTERN = {
|
|
|
7259
7453
|
};
|
|
7260
7454
|
|
|
7261
7455
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7262
|
-
var
|
|
7456
|
+
var import_class_validator74 = require("class-validator");
|
|
7263
7457
|
var CreateCheckoutSessionDto = class {
|
|
7264
7458
|
};
|
|
7265
7459
|
__decorateClass([
|
|
7266
|
-
(0,
|
|
7460
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Amount is required" })
|
|
7267
7461
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7268
7462
|
|
|
7269
7463
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7284,99 +7478,99 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7284
7478
|
};
|
|
7285
7479
|
|
|
7286
7480
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
7287
|
-
var
|
|
7481
|
+
var import_class_validator75 = require("class-validator");
|
|
7288
7482
|
var CreateFreelancerTimesheetDto = class {
|
|
7289
7483
|
};
|
|
7290
7484
|
__decorateClass([
|
|
7291
|
-
(0,
|
|
7292
|
-
(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" })
|
|
7293
7487
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7294
7488
|
__decorateClass([
|
|
7295
|
-
(0,
|
|
7296
|
-
(0,
|
|
7489
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "start date is required" }),
|
|
7490
|
+
(0, import_class_validator75.IsDateString)()
|
|
7297
7491
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7298
7492
|
__decorateClass([
|
|
7299
|
-
(0,
|
|
7300
|
-
(0,
|
|
7493
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "end date is required" }),
|
|
7494
|
+
(0, import_class_validator75.IsDateString)()
|
|
7301
7495
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7302
7496
|
__decorateClass([
|
|
7303
|
-
(0,
|
|
7304
|
-
(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)$/, {
|
|
7305
7499
|
message: "startTime must be in HH:mm:ss format"
|
|
7306
7500
|
})
|
|
7307
7501
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7308
7502
|
__decorateClass([
|
|
7309
|
-
(0,
|
|
7310
|
-
(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)$/, {
|
|
7311
7505
|
message: "endTime must be in HH:mm:ss format"
|
|
7312
7506
|
})
|
|
7313
7507
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7314
7508
|
__decorateClass([
|
|
7315
|
-
(0,
|
|
7316
|
-
(0,
|
|
7509
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7510
|
+
(0, import_class_validator75.IsInt)()
|
|
7317
7511
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7318
7512
|
__decorateClass([
|
|
7319
|
-
(0,
|
|
7320
|
-
(0,
|
|
7513
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7514
|
+
(0, import_class_validator75.IsString)()
|
|
7321
7515
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7322
7516
|
__decorateClass([
|
|
7323
|
-
(0,
|
|
7324
|
-
(0,
|
|
7517
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7518
|
+
(0, import_class_validator75.IsString)()
|
|
7325
7519
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7326
7520
|
__decorateClass([
|
|
7327
|
-
(0,
|
|
7328
|
-
(0,
|
|
7521
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7522
|
+
(0, import_class_validator75.IsString)()
|
|
7329
7523
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7330
7524
|
__decorateClass([
|
|
7331
|
-
(0,
|
|
7525
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Description is required" })
|
|
7332
7526
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7333
7527
|
|
|
7334
7528
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7335
|
-
var
|
|
7529
|
+
var import_class_validator76 = require("class-validator");
|
|
7336
7530
|
var UpdateFreelancerTimesheetDto = class {
|
|
7337
7531
|
};
|
|
7338
7532
|
__decorateClass([
|
|
7339
|
-
(0,
|
|
7340
|
-
(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" })
|
|
7341
7535
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7342
7536
|
__decorateClass([
|
|
7343
|
-
(0,
|
|
7344
|
-
(0,
|
|
7537
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start date is required" }),
|
|
7538
|
+
(0, import_class_validator76.IsDateString)()
|
|
7345
7539
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7346
7540
|
__decorateClass([
|
|
7347
|
-
(0,
|
|
7348
|
-
(0,
|
|
7541
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end date is required" }),
|
|
7542
|
+
(0, import_class_validator76.IsDateString)()
|
|
7349
7543
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7350
7544
|
__decorateClass([
|
|
7351
|
-
(0,
|
|
7352
|
-
(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)$/, {
|
|
7353
7547
|
message: "startTime must be in HH:mm:ss format"
|
|
7354
7548
|
})
|
|
7355
7549
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7356
7550
|
__decorateClass([
|
|
7357
|
-
(0,
|
|
7358
|
-
(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)$/, {
|
|
7359
7553
|
message: "endTime must be in HH:mm:ss format"
|
|
7360
7554
|
})
|
|
7361
7555
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7362
7556
|
__decorateClass([
|
|
7363
|
-
(0,
|
|
7364
|
-
(0,
|
|
7557
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7558
|
+
(0, import_class_validator76.IsInt)()
|
|
7365
7559
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7366
7560
|
__decorateClass([
|
|
7367
|
-
(0,
|
|
7368
|
-
(0,
|
|
7561
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7562
|
+
(0, import_class_validator76.IsString)()
|
|
7369
7563
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7370
7564
|
__decorateClass([
|
|
7371
|
-
(0,
|
|
7372
|
-
(0,
|
|
7565
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7566
|
+
(0, import_class_validator76.IsString)()
|
|
7373
7567
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7374
7568
|
__decorateClass([
|
|
7375
|
-
(0,
|
|
7376
|
-
(0,
|
|
7569
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7570
|
+
(0, import_class_validator76.IsString)()
|
|
7377
7571
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7378
7572
|
__decorateClass([
|
|
7379
|
-
(0,
|
|
7573
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Description is required" })
|
|
7380
7574
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7381
7575
|
|
|
7382
7576
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7391,54 +7585,54 @@ var INVOICE_PATTERN = {
|
|
|
7391
7585
|
};
|
|
7392
7586
|
|
|
7393
7587
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7394
|
-
var
|
|
7588
|
+
var import_class_validator77 = require("class-validator");
|
|
7395
7589
|
var UpdateInvoiceStatusDto = class {
|
|
7396
7590
|
};
|
|
7397
7591
|
__decorateClass([
|
|
7398
|
-
(0,
|
|
7399
|
-
(0,
|
|
7592
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
7593
|
+
(0, import_class_validator77.IsEnum)(InvoiceStatusEnum, {
|
|
7400
7594
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7401
7595
|
})
|
|
7402
7596
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7403
7597
|
|
|
7404
7598
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7405
|
-
var
|
|
7406
|
-
var
|
|
7599
|
+
var import_class_validator78 = require("class-validator");
|
|
7600
|
+
var import_class_transformer17 = require("class-transformer");
|
|
7407
7601
|
var CreateDisputeDto = class {
|
|
7408
7602
|
};
|
|
7409
7603
|
__decorateClass([
|
|
7410
|
-
(0,
|
|
7411
|
-
(0,
|
|
7412
|
-
(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)
|
|
7413
7607
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7414
7608
|
__decorateClass([
|
|
7415
|
-
(0,
|
|
7416
|
-
(0,
|
|
7417
|
-
(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)
|
|
7418
7612
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7419
7613
|
__decorateClass([
|
|
7420
|
-
(0,
|
|
7421
|
-
(0,
|
|
7422
|
-
(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"])
|
|
7423
7617
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7424
7618
|
__decorateClass([
|
|
7425
|
-
(0,
|
|
7426
|
-
(0,
|
|
7619
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
7620
|
+
(0, import_class_validator78.IsString)()
|
|
7427
7621
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7428
7622
|
__decorateClass([
|
|
7429
|
-
(0,
|
|
7430
|
-
(0,
|
|
7431
|
-
(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" })
|
|
7432
7626
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7433
7627
|
__decorateClass([
|
|
7434
|
-
(0,
|
|
7435
|
-
(0,
|
|
7436
|
-
(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" })
|
|
7437
7631
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7438
7632
|
__decorateClass([
|
|
7439
|
-
(0,
|
|
7440
|
-
(0,
|
|
7441
|
-
(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 }) => {
|
|
7442
7636
|
if (typeof value === "string") {
|
|
7443
7637
|
try {
|
|
7444
7638
|
return JSON.parse(value);
|
|
@@ -7451,14 +7645,14 @@ __decorateClass([
|
|
|
7451
7645
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
7452
7646
|
|
|
7453
7647
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7454
|
-
var
|
|
7648
|
+
var import_class_validator79 = require("class-validator");
|
|
7455
7649
|
var AiInterviewQuestionGenerateDto = class {
|
|
7456
7650
|
};
|
|
7457
7651
|
__decorateClass([
|
|
7458
|
-
(0,
|
|
7652
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter job description." })
|
|
7459
7653
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7460
7654
|
__decorateClass([
|
|
7461
|
-
(0,
|
|
7655
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
7462
7656
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7463
7657
|
|
|
7464
7658
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8546,6 +8740,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8546
8740
|
DurationTypeEnum,
|
|
8547
8741
|
EducationDto,
|
|
8548
8742
|
EmploymentType,
|
|
8743
|
+
EmploymentTypeV2,
|
|
8549
8744
|
EscrowWallet,
|
|
8550
8745
|
EscrowWalletTransaction,
|
|
8551
8746
|
EscrowWalletTransactionForEnum,
|
|
@@ -8616,13 +8811,16 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8616
8811
|
JobAdditionalCommentDto,
|
|
8617
8812
|
JobApplication,
|
|
8618
8813
|
JobBasicInformationDto,
|
|
8814
|
+
JobBasicInformationV2Dto,
|
|
8619
8815
|
JobDescriptionDto,
|
|
8620
8816
|
JobFreelancerRecommendation,
|
|
8621
8817
|
JobFreelancerRecommendationV2,
|
|
8622
8818
|
JobIdParamDto,
|
|
8623
8819
|
JobLocation,
|
|
8820
|
+
JobLocationDto,
|
|
8624
8821
|
JobLocationEnum,
|
|
8625
8822
|
JobLocationEnumDto,
|
|
8823
|
+
JobLocationEnumV2,
|
|
8626
8824
|
JobLocationEnums,
|
|
8627
8825
|
JobRMQAdapter,
|
|
8628
8826
|
JobRecommendation,
|
|
@@ -8744,5 +8942,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8744
8942
|
WalletTransactionStatusEnum,
|
|
8745
8943
|
WalletTransactionTypeEnum,
|
|
8746
8944
|
ZoomMeetingLog,
|
|
8945
|
+
typeOfExperienceDtoEnumV2,
|
|
8747
8946
|
typeOfExperienceEnum
|
|
8748
8947
|
});
|