@experts_hub/shared 1.0.566 → 1.0.569
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/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +782 -634
- package/dist/index.mjs +711 -574
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +5 -0
- package/dist/modules/hiring/dto/create-hiring.dto.d.ts +4 -0
- package/dist/modules/hiring/dto/index.d.ts +1 -0
- package/dist/modules/hiring/index.d.ts +1 -0
- package/dist/modules/invoice/dto/create-invoice.dto.d.ts +3 -0
- package/dist/modules/invoice/dto/index.d.ts +1 -0
- package/dist/modules/job/dto/change-job-application-status-bulk.dto.d.ts +5 -0
- package/dist/modules/job/dto/change-job-application-status.dto.d.ts +10 -0
- package/dist/modules/job/dto/close-job.dto.d.ts +3 -0
- package/dist/modules/job/dto/create-job-application.dto.d.ts +4 -0
- package/dist/modules/job/dto/index.d.ts +4 -0
- package/dist/modules/timesheet/dto/approve-timesheets.dto.d.ts +3 -0
- package/dist/modules/timesheet/dto/index.d.ts +4 -0
- package/dist/modules/timesheet/dto/resubmit-timesheet.dto.d.ts +3 -0
- package/dist/modules/timesheet/dto/send-back-timesheets.dto.d.ts +4 -0
- package/dist/modules/timesheet/dto/submit-timesheet.dto.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1513,6 +1513,63 @@ __decorateClass([
|
|
|
1513
1513
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1514
1514
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1515
1515
|
|
|
1516
|
+
// src/modules/job/dto/close-job.dto.ts
|
|
1517
|
+
import { IsOptional as IsOptional16, IsString as IsString16 } from "class-validator";
|
|
1518
|
+
var CloseJobDto = class {
|
|
1519
|
+
};
|
|
1520
|
+
__decorateClass([
|
|
1521
|
+
IsOptional16(),
|
|
1522
|
+
IsString16()
|
|
1523
|
+
], CloseJobDto.prototype, "reason", 2);
|
|
1524
|
+
|
|
1525
|
+
// src/modules/job/dto/create-job-application.dto.ts
|
|
1526
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty33, IsNumber as IsNumber4, IsOptional as IsOptional17 } from "class-validator";
|
|
1527
|
+
var CreateJobApplicationDto = class {
|
|
1528
|
+
};
|
|
1529
|
+
__decorateClass([
|
|
1530
|
+
IsNotEmpty33({ message: "Job ID is required" }),
|
|
1531
|
+
IsNumber4({}, { message: "Job ID must be a number" })
|
|
1532
|
+
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
1533
|
+
__decorateClass([
|
|
1534
|
+
IsOptional17(),
|
|
1535
|
+
IsBoolean3({ message: "isCta must be a boolean" })
|
|
1536
|
+
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
1537
|
+
|
|
1538
|
+
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
1539
|
+
import { IsEnum as IsEnum13, IsNotEmpty as IsNotEmpty34 } from "class-validator";
|
|
1540
|
+
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
1541
|
+
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
1542
|
+
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
1543
|
+
JobApplicationStatus2["REJECTED"] = "REJECTED";
|
|
1544
|
+
JobApplicationStatus2["HIRED"] = "HIRED";
|
|
1545
|
+
JobApplicationStatus2["WITHDRAWN"] = "WITHDRAWN";
|
|
1546
|
+
return JobApplicationStatus2;
|
|
1547
|
+
})(JobApplicationStatus || {});
|
|
1548
|
+
var ChangeJobApplicationStatusDto = class {
|
|
1549
|
+
};
|
|
1550
|
+
__decorateClass([
|
|
1551
|
+
IsNotEmpty34({ message: "Status is required" }),
|
|
1552
|
+
IsEnum13(JobApplicationStatus, {
|
|
1553
|
+
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1554
|
+
})
|
|
1555
|
+
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
1556
|
+
|
|
1557
|
+
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
1558
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsEnum as IsEnum14, IsNotEmpty as IsNotEmpty35, IsNumber as IsNumber5 } from "class-validator";
|
|
1559
|
+
var ChangeJobApplicationStatusBulkDto = class {
|
|
1560
|
+
};
|
|
1561
|
+
__decorateClass([
|
|
1562
|
+
IsArray3({ message: "Job application IDs must be an array" }),
|
|
1563
|
+
ArrayNotEmpty3({ message: "At least one job application ID is required" }),
|
|
1564
|
+
IsNumber5({}, { each: true, message: "Each job application ID must be a number" })
|
|
1565
|
+
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
1566
|
+
__decorateClass([
|
|
1567
|
+
IsNotEmpty35({ message: "Status is required" }),
|
|
1568
|
+
IsEnum14(JobApplicationStatus, {
|
|
1569
|
+
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1570
|
+
})
|
|
1571
|
+
], ChangeJobApplicationStatusBulkDto.prototype, "status", 2);
|
|
1572
|
+
|
|
1516
1573
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1517
1574
|
var PROFILE_PATTERN = {
|
|
1518
1575
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1556,8 +1613,8 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
1556
1613
|
|
|
1557
1614
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1558
1615
|
import {
|
|
1559
|
-
IsString as
|
|
1560
|
-
IsNotEmpty as
|
|
1616
|
+
IsString as IsString17,
|
|
1617
|
+
IsNotEmpty as IsNotEmpty36,
|
|
1561
1618
|
MaxLength as MaxLength10,
|
|
1562
1619
|
MinLength as MinLength7,
|
|
1563
1620
|
Matches as Matches8
|
|
@@ -1565,12 +1622,12 @@ import {
|
|
|
1565
1622
|
var FreelancerChangePasswordDto = class {
|
|
1566
1623
|
};
|
|
1567
1624
|
__decorateClass([
|
|
1568
|
-
|
|
1569
|
-
|
|
1625
|
+
IsNotEmpty36({ message: "Please enter Old Password." }),
|
|
1626
|
+
IsString17()
|
|
1570
1627
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1571
1628
|
__decorateClass([
|
|
1572
|
-
|
|
1573
|
-
|
|
1629
|
+
IsNotEmpty36({ message: "Please enter New Password." }),
|
|
1630
|
+
IsString17(),
|
|
1574
1631
|
MinLength7(6),
|
|
1575
1632
|
MaxLength10(32),
|
|
1576
1633
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -1580,12 +1637,12 @@ __decorateClass([
|
|
|
1580
1637
|
|
|
1581
1638
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1582
1639
|
import {
|
|
1583
|
-
IsOptional as
|
|
1584
|
-
IsString as
|
|
1640
|
+
IsOptional as IsOptional18,
|
|
1641
|
+
IsString as IsString18,
|
|
1585
1642
|
IsEmail as IsEmail5,
|
|
1586
|
-
IsNumber as
|
|
1587
|
-
IsEnum as
|
|
1588
|
-
IsNotEmpty as
|
|
1643
|
+
IsNumber as IsNumber6,
|
|
1644
|
+
IsEnum as IsEnum15,
|
|
1645
|
+
IsNotEmpty as IsNotEmpty37,
|
|
1589
1646
|
ValidateIf as ValidateIf5,
|
|
1590
1647
|
IsInt
|
|
1591
1648
|
} from "class-validator";
|
|
@@ -1604,114 +1661,114 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1604
1661
|
var UpdateFreelancerProfileDto = class {
|
|
1605
1662
|
};
|
|
1606
1663
|
__decorateClass([
|
|
1607
|
-
|
|
1608
|
-
|
|
1664
|
+
IsNotEmpty37({ message: "Please enter first name." }),
|
|
1665
|
+
IsString18({ message: "Please enter valid first name." })
|
|
1609
1666
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1610
1667
|
__decorateClass([
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1668
|
+
IsOptional18(),
|
|
1669
|
+
IsNotEmpty37({ message: "Please enter last name." }),
|
|
1670
|
+
IsString18({ message: "Please enter valid last name." })
|
|
1614
1671
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1615
1672
|
__decorateClass([
|
|
1616
|
-
|
|
1617
|
-
|
|
1673
|
+
IsNotEmpty37({ message: "Please enter designation." }),
|
|
1674
|
+
IsString18({ message: "Please enter valid designation." })
|
|
1618
1675
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1619
1676
|
__decorateClass([
|
|
1620
|
-
|
|
1621
|
-
|
|
1677
|
+
IsNotEmpty37({ message: "Please enter experience." }),
|
|
1678
|
+
IsString18({ message: "Please enter valid experience." })
|
|
1622
1679
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1623
1680
|
__decorateClass([
|
|
1624
|
-
|
|
1681
|
+
IsNotEmpty37({ message: "Please enter email id." }),
|
|
1625
1682
|
IsEmail5()
|
|
1626
1683
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1627
1684
|
__decorateClass([
|
|
1628
|
-
|
|
1629
|
-
|
|
1685
|
+
IsNotEmpty37({ message: "Please enter mobile code." }),
|
|
1686
|
+
IsString18({ message: "Please enter valid mobile code." })
|
|
1630
1687
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1631
1688
|
__decorateClass([
|
|
1632
|
-
|
|
1633
|
-
|
|
1689
|
+
IsNotEmpty37({ message: "Please enter mobile number." }),
|
|
1690
|
+
IsString18({ message: "Please enter valid mobile number." })
|
|
1634
1691
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1635
1692
|
__decorateClass([
|
|
1636
|
-
|
|
1637
|
-
|
|
1693
|
+
IsOptional18(),
|
|
1694
|
+
IsNumber6()
|
|
1638
1695
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1639
1696
|
__decorateClass([
|
|
1640
|
-
|
|
1641
|
-
|
|
1697
|
+
IsOptional18(),
|
|
1698
|
+
IsNumber6()
|
|
1642
1699
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
1643
1700
|
__decorateClass([
|
|
1644
|
-
|
|
1645
|
-
|
|
1701
|
+
IsOptional18(),
|
|
1702
|
+
IsNumber6()
|
|
1646
1703
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
1647
1704
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1648
1705
|
__decorateClass([
|
|
1649
|
-
|
|
1706
|
+
IsNotEmpty37({ message: "Please enter expected hourly compensation." })
|
|
1650
1707
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1651
1708
|
__decorateClass([
|
|
1652
1709
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
1653
|
-
|
|
1710
|
+
IsNotEmpty37({ message: "Please enter expected annual compensation." })
|
|
1654
1711
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
1655
1712
|
__decorateClass([
|
|
1656
1713
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1657
1714
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1658
|
-
|
|
1715
|
+
IsNotEmpty37({ message: "Please enter weekly availability hours" })
|
|
1659
1716
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1660
1717
|
__decorateClass([
|
|
1661
|
-
|
|
1662
|
-
|
|
1718
|
+
IsNotEmpty37({ message: "Please select engagement type." }),
|
|
1719
|
+
IsEnum15(NatureOfWorkDto, {
|
|
1663
1720
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1664
1721
|
NatureOfWorkDto
|
|
1665
1722
|
).join(", ")}`
|
|
1666
1723
|
})
|
|
1667
1724
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1668
1725
|
__decorateClass([
|
|
1669
|
-
|
|
1670
|
-
|
|
1726
|
+
IsNotEmpty37({ message: "Please select mode of work." }),
|
|
1727
|
+
IsEnum15(ModeOfWorkDto, {
|
|
1671
1728
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1672
1729
|
", "
|
|
1673
1730
|
)}`
|
|
1674
1731
|
})
|
|
1675
1732
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1676
1733
|
__decorateClass([
|
|
1677
|
-
|
|
1678
|
-
|
|
1734
|
+
IsOptional18(),
|
|
1735
|
+
IsString18()
|
|
1679
1736
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1680
1737
|
__decorateClass([
|
|
1681
|
-
|
|
1682
|
-
|
|
1738
|
+
IsNotEmpty37({ message: "Please enter address." }),
|
|
1739
|
+
IsString18()
|
|
1683
1740
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1684
1741
|
__decorateClass([
|
|
1685
|
-
|
|
1686
|
-
|
|
1742
|
+
IsOptional18(),
|
|
1743
|
+
IsString18()
|
|
1687
1744
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1688
1745
|
__decorateClass([
|
|
1689
|
-
|
|
1690
|
-
|
|
1746
|
+
IsNotEmpty37({ message: "Please enter postalCode." }),
|
|
1747
|
+
IsString18()
|
|
1691
1748
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1692
1749
|
__decorateClass([
|
|
1693
|
-
|
|
1694
|
-
|
|
1750
|
+
IsOptional18(),
|
|
1751
|
+
IsString18()
|
|
1695
1752
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1696
1753
|
__decorateClass([
|
|
1697
|
-
|
|
1698
|
-
|
|
1754
|
+
IsOptional18(),
|
|
1755
|
+
IsString18()
|
|
1699
1756
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1700
1757
|
__decorateClass([
|
|
1701
|
-
|
|
1702
|
-
|
|
1758
|
+
IsOptional18(),
|
|
1759
|
+
IsString18()
|
|
1703
1760
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1704
1761
|
__decorateClass([
|
|
1705
|
-
|
|
1706
|
-
|
|
1762
|
+
IsOptional18(),
|
|
1763
|
+
IsString18()
|
|
1707
1764
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1708
1765
|
__decorateClass([
|
|
1709
|
-
|
|
1710
|
-
|
|
1766
|
+
IsOptional18(),
|
|
1767
|
+
IsString18()
|
|
1711
1768
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1712
1769
|
__decorateClass([
|
|
1713
|
-
|
|
1714
|
-
|
|
1770
|
+
IsOptional18(),
|
|
1771
|
+
IsString18()
|
|
1715
1772
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1716
1773
|
|
|
1717
1774
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1726,10 +1783,10 @@ var BANK_PATTERN = {
|
|
|
1726
1783
|
|
|
1727
1784
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1728
1785
|
import {
|
|
1729
|
-
IsEnum as
|
|
1730
|
-
IsNotEmpty as
|
|
1731
|
-
IsOptional as
|
|
1732
|
-
IsString as
|
|
1786
|
+
IsEnum as IsEnum16,
|
|
1787
|
+
IsNotEmpty as IsNotEmpty38,
|
|
1788
|
+
IsOptional as IsOptional19,
|
|
1789
|
+
IsString as IsString19,
|
|
1733
1790
|
ValidateIf as ValidateIf6
|
|
1734
1791
|
} from "class-validator";
|
|
1735
1792
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1740,51 +1797,51 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1740
1797
|
var FreelancerBankDetailsDto = class {
|
|
1741
1798
|
};
|
|
1742
1799
|
__decorateClass([
|
|
1743
|
-
|
|
1800
|
+
IsNotEmpty38({ message: "Please enter Account Holder Name." })
|
|
1744
1801
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1745
1802
|
__decorateClass([
|
|
1746
|
-
|
|
1803
|
+
IsNotEmpty38({ message: "Please enter Mobile Code." })
|
|
1747
1804
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
1748
1805
|
__decorateClass([
|
|
1749
|
-
|
|
1806
|
+
IsNotEmpty38({ message: "Please enter Mobile Number." })
|
|
1750
1807
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1751
1808
|
__decorateClass([
|
|
1752
|
-
|
|
1809
|
+
IsNotEmpty38({ message: "Please enter Email." })
|
|
1753
1810
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1754
1811
|
__decorateClass([
|
|
1755
|
-
|
|
1812
|
+
IsOptional19()
|
|
1756
1813
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1757
1814
|
__decorateClass([
|
|
1758
|
-
|
|
1815
|
+
IsNotEmpty38({ message: "Please enter Account Number." })
|
|
1759
1816
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1760
1817
|
__decorateClass([
|
|
1761
|
-
|
|
1818
|
+
IsNotEmpty38({ message: "Please enter Bank Name." })
|
|
1762
1819
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1763
1820
|
__decorateClass([
|
|
1764
|
-
|
|
1765
|
-
|
|
1821
|
+
IsOptional19(),
|
|
1822
|
+
IsString19()
|
|
1766
1823
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1767
1824
|
__decorateClass([
|
|
1768
1825
|
ValidateIf6((dto) => dto.accountScope === "DOMESTIC"),
|
|
1769
|
-
|
|
1826
|
+
IsNotEmpty38({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1770
1827
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1771
1828
|
__decorateClass([
|
|
1772
1829
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1773
|
-
|
|
1830
|
+
IsNotEmpty38({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1774
1831
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1775
1832
|
__decorateClass([
|
|
1776
1833
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1777
|
-
|
|
1834
|
+
IsNotEmpty38({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1778
1835
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1779
1836
|
__decorateClass([
|
|
1780
1837
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1781
|
-
|
|
1838
|
+
IsNotEmpty38({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1782
1839
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1783
1840
|
__decorateClass([
|
|
1784
|
-
|
|
1841
|
+
IsOptional19()
|
|
1785
1842
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1786
1843
|
__decorateClass([
|
|
1787
|
-
|
|
1844
|
+
IsEnum16(BankAccountScope, {
|
|
1788
1845
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1789
1846
|
BankAccountScope
|
|
1790
1847
|
).join(", ")}`
|
|
@@ -1805,8 +1862,8 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1805
1862
|
|
|
1806
1863
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1807
1864
|
import {
|
|
1808
|
-
IsBoolean as
|
|
1809
|
-
IsEnum as
|
|
1865
|
+
IsBoolean as IsBoolean4,
|
|
1866
|
+
IsEnum as IsEnum17
|
|
1810
1867
|
} from "class-validator";
|
|
1811
1868
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1812
1869
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1816,10 +1873,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1816
1873
|
var SystemPreferenceDto = class {
|
|
1817
1874
|
};
|
|
1818
1875
|
__decorateClass([
|
|
1819
|
-
|
|
1876
|
+
IsBoolean4()
|
|
1820
1877
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1821
1878
|
__decorateClass([
|
|
1822
|
-
|
|
1879
|
+
IsEnum17(SystemPreferenceKey, {
|
|
1823
1880
|
message: `key must be one of: ${Object.values(
|
|
1824
1881
|
SystemPreferenceKey
|
|
1825
1882
|
).join(", ")}`
|
|
@@ -1865,11 +1922,11 @@ var RATING_PATTERN = {
|
|
|
1865
1922
|
|
|
1866
1923
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1867
1924
|
import {
|
|
1868
|
-
IsEnum as
|
|
1925
|
+
IsEnum as IsEnum18,
|
|
1869
1926
|
IsInt as IsInt2,
|
|
1870
|
-
IsNotEmpty as
|
|
1871
|
-
IsOptional as
|
|
1872
|
-
IsString as
|
|
1927
|
+
IsNotEmpty as IsNotEmpty39,
|
|
1928
|
+
IsOptional as IsOptional20,
|
|
1929
|
+
IsString as IsString20,
|
|
1873
1930
|
Max as Max3,
|
|
1874
1931
|
Min as Min3
|
|
1875
1932
|
} from "class-validator";
|
|
@@ -5699,7 +5756,7 @@ __decorateClass([
|
|
|
5699
5756
|
Index44()
|
|
5700
5757
|
], CompanySkill.prototype, "userId", 2);
|
|
5701
5758
|
__decorateClass([
|
|
5702
|
-
ManyToOne49(() => User, (user) => user.
|
|
5759
|
+
ManyToOne49(() => User, (user) => user.companySkills),
|
|
5703
5760
|
JoinColumn49({ name: "user_id" })
|
|
5704
5761
|
], CompanySkill.prototype, "user", 2);
|
|
5705
5762
|
__decorateClass([
|
|
@@ -6670,10 +6727,10 @@ var CreateRatingDto = class {
|
|
|
6670
6727
|
};
|
|
6671
6728
|
__decorateClass([
|
|
6672
6729
|
IsInt2({ message: "Reviewee ID must be a valid integer" }),
|
|
6673
|
-
|
|
6730
|
+
IsNotEmpty39({ message: "Reviewee ID is required" })
|
|
6674
6731
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
6675
6732
|
__decorateClass([
|
|
6676
|
-
|
|
6733
|
+
IsEnum18(RatingTypeEnum, {
|
|
6677
6734
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
6678
6735
|
})
|
|
6679
6736
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -6683,8 +6740,8 @@ __decorateClass([
|
|
|
6683
6740
|
Max3(5, { message: "Rating must be at most 5" })
|
|
6684
6741
|
], CreateRatingDto.prototype, "rating", 2);
|
|
6685
6742
|
__decorateClass([
|
|
6686
|
-
|
|
6687
|
-
|
|
6743
|
+
IsOptional20(),
|
|
6744
|
+
IsString20({ message: "Review must be a string" })
|
|
6688
6745
|
], CreateRatingDto.prototype, "review", 2);
|
|
6689
6746
|
|
|
6690
6747
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -6700,57 +6757,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
6700
6757
|
};
|
|
6701
6758
|
|
|
6702
6759
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
6703
|
-
import { ArrayNotEmpty as
|
|
6760
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional21 } from "class-validator";
|
|
6704
6761
|
var CreateCompanyRoleDto = class {
|
|
6705
6762
|
};
|
|
6706
6763
|
__decorateClass([
|
|
6707
|
-
|
|
6764
|
+
IsNotEmpty40({ message: "Please enter company role name." })
|
|
6708
6765
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
6709
6766
|
__decorateClass([
|
|
6710
|
-
|
|
6767
|
+
IsNotEmpty40({ message: "Please enter company role slug" })
|
|
6711
6768
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
6712
6769
|
__decorateClass([
|
|
6713
|
-
|
|
6770
|
+
IsNotEmpty40({ message: "Please enter description" })
|
|
6714
6771
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
6715
6772
|
__decorateClass([
|
|
6716
|
-
|
|
6717
|
-
|
|
6773
|
+
IsArray4({ message: "Permission IDs must be an array." }),
|
|
6774
|
+
ArrayNotEmpty4({ message: "Please select at least one permission." }),
|
|
6718
6775
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
6719
6776
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6720
6777
|
__decorateClass([
|
|
6721
|
-
|
|
6722
|
-
|
|
6778
|
+
IsOptional21(),
|
|
6779
|
+
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
6723
6780
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
6724
6781
|
|
|
6725
6782
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
6726
|
-
import { ArrayNotEmpty as
|
|
6783
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional22 } from "class-validator";
|
|
6727
6784
|
var UpdateCompanyRoleDto = class {
|
|
6728
6785
|
};
|
|
6729
6786
|
__decorateClass([
|
|
6730
|
-
|
|
6787
|
+
IsNotEmpty41({ message: "Please enter company name." })
|
|
6731
6788
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
6732
6789
|
__decorateClass([
|
|
6733
|
-
|
|
6790
|
+
IsNotEmpty41({ message: "Please enter slug" })
|
|
6734
6791
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
6735
6792
|
__decorateClass([
|
|
6736
|
-
|
|
6793
|
+
IsNotEmpty41({ message: "Please enter description" })
|
|
6737
6794
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
6738
6795
|
__decorateClass([
|
|
6739
|
-
|
|
6740
|
-
|
|
6796
|
+
IsArray5({ message: "Permission IDs must be an array." }),
|
|
6797
|
+
ArrayNotEmpty5({ message: "Please select at least one permission." }),
|
|
6741
6798
|
IsInt4({ each: true, message: "Each permission ID must be an integer." })
|
|
6742
6799
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
6743
6800
|
__decorateClass([
|
|
6744
|
-
|
|
6745
|
-
|
|
6801
|
+
IsOptional22(),
|
|
6802
|
+
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
6746
6803
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
6747
6804
|
|
|
6748
6805
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
6749
|
-
import { IsBoolean as
|
|
6806
|
+
import { IsBoolean as IsBoolean7 } from "class-validator";
|
|
6750
6807
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
6751
6808
|
};
|
|
6752
6809
|
__decorateClass([
|
|
6753
|
-
|
|
6810
|
+
IsBoolean7()
|
|
6754
6811
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
6755
6812
|
|
|
6756
6813
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -6762,9 +6819,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
6762
6819
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
6763
6820
|
import {
|
|
6764
6821
|
ArrayMinSize,
|
|
6765
|
-
IsNotEmpty as
|
|
6766
|
-
IsOptional as
|
|
6767
|
-
IsString as
|
|
6822
|
+
IsNotEmpty as IsNotEmpty42,
|
|
6823
|
+
IsOptional as IsOptional23,
|
|
6824
|
+
IsString as IsString23,
|
|
6768
6825
|
MaxLength as MaxLength12,
|
|
6769
6826
|
ValidateNested as ValidateNested2
|
|
6770
6827
|
} from "class-validator";
|
|
@@ -6772,23 +6829,23 @@ import { Type as Type4 } from "class-transformer";
|
|
|
6772
6829
|
var ExperienceDto = class {
|
|
6773
6830
|
};
|
|
6774
6831
|
__decorateClass([
|
|
6775
|
-
|
|
6832
|
+
IsOptional23()
|
|
6776
6833
|
], ExperienceDto.prototype, "uuid", 2);
|
|
6777
6834
|
__decorateClass([
|
|
6778
|
-
|
|
6779
|
-
|
|
6835
|
+
IsNotEmpty42(),
|
|
6836
|
+
IsString23()
|
|
6780
6837
|
], ExperienceDto.prototype, "companyName", 2);
|
|
6781
6838
|
__decorateClass([
|
|
6782
|
-
|
|
6783
|
-
|
|
6839
|
+
IsNotEmpty42(),
|
|
6840
|
+
IsString23()
|
|
6784
6841
|
], ExperienceDto.prototype, "designation", 2);
|
|
6785
6842
|
__decorateClass([
|
|
6786
|
-
|
|
6787
|
-
|
|
6843
|
+
IsNotEmpty42(),
|
|
6844
|
+
IsString23()
|
|
6788
6845
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
6789
6846
|
__decorateClass([
|
|
6790
|
-
|
|
6791
|
-
|
|
6847
|
+
IsOptional23(),
|
|
6848
|
+
IsString23(),
|
|
6792
6849
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6793
6850
|
], ExperienceDto.prototype, "description", 2);
|
|
6794
6851
|
var FreelancerExperienceDto = class {
|
|
@@ -6812,43 +6869,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
6812
6869
|
};
|
|
6813
6870
|
|
|
6814
6871
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
6815
|
-
import { ArrayNotEmpty as
|
|
6872
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray6, IsInt as IsInt5, IsNotEmpty as IsNotEmpty43 } from "class-validator";
|
|
6816
6873
|
var CreateCompanyMemberDto = class {
|
|
6817
6874
|
};
|
|
6818
6875
|
__decorateClass([
|
|
6819
|
-
|
|
6876
|
+
IsNotEmpty43({ message: "Please enter name." })
|
|
6820
6877
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
6821
6878
|
__decorateClass([
|
|
6822
|
-
|
|
6879
|
+
IsNotEmpty43({ message: "Please enter email" })
|
|
6823
6880
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
6824
6881
|
__decorateClass([
|
|
6825
|
-
|
|
6826
|
-
|
|
6882
|
+
IsArray6({ message: "Role IDs must be an array." }),
|
|
6883
|
+
ArrayNotEmpty6({ message: "Please select at least one role." }),
|
|
6827
6884
|
IsInt5({ each: true, message: "Each role ID must be an integer." })
|
|
6828
6885
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6829
6886
|
|
|
6830
6887
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
6831
|
-
import { ArrayNotEmpty as
|
|
6888
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray7, IsInt as IsInt6, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
6832
6889
|
var UpdateCompanyMemberDto = class {
|
|
6833
6890
|
};
|
|
6834
6891
|
__decorateClass([
|
|
6835
|
-
|
|
6892
|
+
IsNotEmpty44({ message: "Please enter name." })
|
|
6836
6893
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
6837
6894
|
__decorateClass([
|
|
6838
|
-
|
|
6895
|
+
IsNotEmpty44({ message: "Please enter email" })
|
|
6839
6896
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
6840
6897
|
__decorateClass([
|
|
6841
|
-
|
|
6842
|
-
|
|
6898
|
+
IsArray7({ message: "Role IDs must be an array." }),
|
|
6899
|
+
ArrayNotEmpty7({ message: "Please select at least one role." }),
|
|
6843
6900
|
IsInt6({ each: true, message: "Each role ID must be an integer." })
|
|
6844
6901
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
6845
6902
|
|
|
6846
6903
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
6847
|
-
import { IsBoolean as
|
|
6904
|
+
import { IsBoolean as IsBoolean10 } from "class-validator";
|
|
6848
6905
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
6849
6906
|
};
|
|
6850
6907
|
__decorateClass([
|
|
6851
|
-
|
|
6908
|
+
IsBoolean10()
|
|
6852
6909
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
6853
6910
|
|
|
6854
6911
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -6858,29 +6915,29 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
6858
6915
|
};
|
|
6859
6916
|
|
|
6860
6917
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
6861
|
-
import { IsArray as
|
|
6918
|
+
import { IsArray as IsArray8, ValidateNested as ValidateNested3, IsString as IsString26, IsNotEmpty as IsNotEmpty45, IsOptional as IsOptional26, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
6862
6919
|
import { Type as Type5 } from "class-transformer";
|
|
6863
6920
|
var EducationDto = class {
|
|
6864
6921
|
};
|
|
6865
6922
|
__decorateClass([
|
|
6866
|
-
|
|
6923
|
+
IsOptional26()
|
|
6867
6924
|
], EducationDto.prototype, "uuid", 2);
|
|
6868
6925
|
__decorateClass([
|
|
6869
|
-
|
|
6870
|
-
|
|
6926
|
+
IsString26(),
|
|
6927
|
+
IsNotEmpty45({ message: "Please Enter Degree " })
|
|
6871
6928
|
], EducationDto.prototype, "degree", 2);
|
|
6872
6929
|
__decorateClass([
|
|
6873
|
-
|
|
6874
|
-
|
|
6930
|
+
IsString26(),
|
|
6931
|
+
IsNotEmpty45({ message: "Please Enter University " })
|
|
6875
6932
|
], EducationDto.prototype, "university", 2);
|
|
6876
6933
|
__decorateClass([
|
|
6877
|
-
|
|
6878
|
-
|
|
6934
|
+
IsString26(),
|
|
6935
|
+
IsNotEmpty45({ message: "Please Enter Year of Graduation " })
|
|
6879
6936
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
6880
6937
|
var FreelancerEducationDto = class {
|
|
6881
6938
|
};
|
|
6882
6939
|
__decorateClass([
|
|
6883
|
-
|
|
6940
|
+
IsArray8(),
|
|
6884
6941
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
6885
6942
|
ValidateNested3({ each: true }),
|
|
6886
6943
|
Type5(() => EducationDto)
|
|
@@ -6893,66 +6950,66 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
6893
6950
|
};
|
|
6894
6951
|
|
|
6895
6952
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
6896
|
-
import { IsArray as
|
|
6953
|
+
import { IsArray as IsArray9, ValidateNested as ValidateNested4, IsString as IsString27, IsNotEmpty as IsNotEmpty46, IsOptional as IsOptional27, IsDateString, MaxLength as MaxLength14, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
6897
6954
|
import { Type as Type6 } from "class-transformer";
|
|
6898
6955
|
var ProjectDto = class {
|
|
6899
6956
|
};
|
|
6900
6957
|
__decorateClass([
|
|
6901
|
-
|
|
6958
|
+
IsOptional27()
|
|
6902
6959
|
], ProjectDto.prototype, "uuid", 2);
|
|
6903
6960
|
__decorateClass([
|
|
6904
|
-
|
|
6905
|
-
|
|
6961
|
+
IsString27(),
|
|
6962
|
+
IsNotEmpty46({ message: "Please Enter Project Name " })
|
|
6906
6963
|
], ProjectDto.prototype, "projectName", 2);
|
|
6907
6964
|
__decorateClass([
|
|
6908
6965
|
IsDateString(),
|
|
6909
|
-
|
|
6966
|
+
IsNotEmpty46({ message: "Please Enter Start Date " })
|
|
6910
6967
|
], ProjectDto.prototype, "startDate", 2);
|
|
6911
6968
|
__decorateClass([
|
|
6912
6969
|
IsDateString(),
|
|
6913
|
-
|
|
6970
|
+
IsNotEmpty46({ message: "Please Enter End Date " })
|
|
6914
6971
|
], ProjectDto.prototype, "endDate", 2);
|
|
6915
6972
|
__decorateClass([
|
|
6916
|
-
|
|
6917
|
-
|
|
6973
|
+
IsOptional27(),
|
|
6974
|
+
IsString27()
|
|
6918
6975
|
], ProjectDto.prototype, "clientName", 2);
|
|
6919
6976
|
__decorateClass([
|
|
6920
|
-
|
|
6921
|
-
|
|
6977
|
+
IsOptional27(),
|
|
6978
|
+
IsString27()
|
|
6922
6979
|
], ProjectDto.prototype, "gitLink", 2);
|
|
6923
6980
|
__decorateClass([
|
|
6924
|
-
|
|
6925
|
-
|
|
6981
|
+
IsOptional27(),
|
|
6982
|
+
IsString27(),
|
|
6926
6983
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6927
6984
|
], ProjectDto.prototype, "description", 2);
|
|
6928
6985
|
var CaseStudyDto = class {
|
|
6929
6986
|
};
|
|
6930
6987
|
__decorateClass([
|
|
6931
|
-
|
|
6988
|
+
IsOptional27()
|
|
6932
6989
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
6933
6990
|
__decorateClass([
|
|
6934
|
-
|
|
6935
|
-
|
|
6991
|
+
IsString27(),
|
|
6992
|
+
IsNotEmpty46({ message: "Please Enter Project Name " })
|
|
6936
6993
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
6937
6994
|
__decorateClass([
|
|
6938
|
-
|
|
6939
|
-
|
|
6995
|
+
IsOptional27(),
|
|
6996
|
+
IsString27()
|
|
6940
6997
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
6941
6998
|
__decorateClass([
|
|
6942
|
-
|
|
6943
|
-
|
|
6999
|
+
IsOptional27(),
|
|
7000
|
+
IsString27(),
|
|
6944
7001
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6945
7002
|
], CaseStudyDto.prototype, "description", 2);
|
|
6946
7003
|
var FreelancerProjectDto = class {
|
|
6947
7004
|
};
|
|
6948
7005
|
__decorateClass([
|
|
6949
|
-
|
|
7006
|
+
IsArray9(),
|
|
6950
7007
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
6951
7008
|
ValidateNested4({ each: true }),
|
|
6952
7009
|
Type6(() => ProjectDto)
|
|
6953
7010
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
6954
7011
|
__decorateClass([
|
|
6955
|
-
|
|
7012
|
+
IsArray9(),
|
|
6956
7013
|
ValidateNested4({ each: true }),
|
|
6957
7014
|
Type6(() => CaseStudyDto)
|
|
6958
7015
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
@@ -6970,7 +7027,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
6970
7027
|
};
|
|
6971
7028
|
|
|
6972
7029
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
6973
|
-
import { IsArray as
|
|
7030
|
+
import { IsArray as IsArray10, IsString as IsString28, IsOptional as IsOptional28 } from "class-validator";
|
|
6974
7031
|
import { Type as Type7 } from "class-transformer";
|
|
6975
7032
|
var FreelancerSkillDto = class {
|
|
6976
7033
|
constructor() {
|
|
@@ -6981,28 +7038,28 @@ var FreelancerSkillDto = class {
|
|
|
6981
7038
|
}
|
|
6982
7039
|
};
|
|
6983
7040
|
__decorateClass([
|
|
6984
|
-
|
|
6985
|
-
|
|
7041
|
+
IsOptional28(),
|
|
7042
|
+
IsArray10(),
|
|
6986
7043
|
Type7(() => String),
|
|
6987
|
-
|
|
7044
|
+
IsString28({ each: true })
|
|
6988
7045
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
6989
7046
|
__decorateClass([
|
|
6990
|
-
|
|
6991
|
-
|
|
7047
|
+
IsOptional28(),
|
|
7048
|
+
IsArray10(),
|
|
6992
7049
|
Type7(() => String),
|
|
6993
|
-
|
|
7050
|
+
IsString28({ each: true })
|
|
6994
7051
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
6995
7052
|
__decorateClass([
|
|
6996
|
-
|
|
6997
|
-
|
|
7053
|
+
IsOptional28(),
|
|
7054
|
+
IsArray10(),
|
|
6998
7055
|
Type7(() => String),
|
|
6999
|
-
|
|
7056
|
+
IsString28({ each: true })
|
|
7000
7057
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7001
7058
|
__decorateClass([
|
|
7002
|
-
|
|
7003
|
-
|
|
7059
|
+
IsOptional28(),
|
|
7060
|
+
IsArray10(),
|
|
7004
7061
|
Type7(() => String),
|
|
7005
|
-
|
|
7062
|
+
IsString28({ each: true })
|
|
7006
7063
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7007
7064
|
|
|
7008
7065
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7011,6 +7068,11 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7011
7068
|
adminFreelancerCount: "admin.freelancer.count",
|
|
7012
7069
|
adminExportFreelancer: "admin.export.freelancer",
|
|
7013
7070
|
adminFetchFreelancerById: "admin.fetch.freelancer.by.id",
|
|
7071
|
+
adminFetchFreelancerSkillsById: "admin.fetch.freelancer.skills.by.id",
|
|
7072
|
+
adminFetchFreelancerProjectsById: "admin.fetch.freelancer.projects.by.id",
|
|
7073
|
+
adminFetchFreelancerExperiencesById: "admin.fetch.freelancer.experiences.by.id",
|
|
7074
|
+
adminFetchFreelancerEducationsById: "admin.fetch.freelancer.educations.by.id",
|
|
7075
|
+
adminFetchFreelancerAgreementById: "admin.fetch.freelancer.agreement.by.id",
|
|
7014
7076
|
adminCreateFreelancer: "admin.create.freelancer",
|
|
7015
7077
|
adminUpdateFreelancer: "admin.update.freelancer",
|
|
7016
7078
|
adminDeleteFreelancer: "admin.delete.freelancer",
|
|
@@ -7024,16 +7086,16 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7024
7086
|
|
|
7025
7087
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7026
7088
|
import {
|
|
7027
|
-
IsString as
|
|
7089
|
+
IsString as IsString29,
|
|
7028
7090
|
IsEmail as IsEmail10,
|
|
7029
|
-
IsBoolean as
|
|
7030
|
-
IsOptional as
|
|
7031
|
-
IsEnum as
|
|
7032
|
-
IsNumber as
|
|
7091
|
+
IsBoolean as IsBoolean11,
|
|
7092
|
+
IsOptional as IsOptional29,
|
|
7093
|
+
IsEnum as IsEnum19,
|
|
7094
|
+
IsNumber as IsNumber7,
|
|
7033
7095
|
IsUrl as IsUrl3,
|
|
7034
7096
|
Min as Min4,
|
|
7035
7097
|
MaxLength as MaxLength16,
|
|
7036
|
-
IsNotEmpty as
|
|
7098
|
+
IsNotEmpty as IsNotEmpty48,
|
|
7037
7099
|
MinLength as MinLength12,
|
|
7038
7100
|
Matches as Matches9,
|
|
7039
7101
|
ValidateIf as ValidateIf7,
|
|
@@ -7061,20 +7123,20 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7061
7123
|
var CreateFreelancerDto = class {
|
|
7062
7124
|
};
|
|
7063
7125
|
__decorateClass([
|
|
7064
|
-
|
|
7126
|
+
IsString29({ message: "Full name must be a string" }),
|
|
7065
7127
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" })
|
|
7066
7128
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
7067
7129
|
__decorateClass([
|
|
7068
7130
|
IsEmail10({}, { message: "Invalid email address" })
|
|
7069
7131
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7070
7132
|
__decorateClass([
|
|
7071
|
-
|
|
7133
|
+
IsString29({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7072
7134
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7073
7135
|
__decorateClass([
|
|
7074
|
-
|
|
7136
|
+
IsString29({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7075
7137
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7076
7138
|
__decorateClass([
|
|
7077
|
-
|
|
7139
|
+
IsNotEmpty48({ message: "Please enter password." }),
|
|
7078
7140
|
MinLength12(6),
|
|
7079
7141
|
MaxLength16(32),
|
|
7080
7142
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -7082,84 +7144,84 @@ __decorateClass([
|
|
|
7082
7144
|
})
|
|
7083
7145
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7084
7146
|
__decorateClass([
|
|
7085
|
-
|
|
7147
|
+
IsNotEmpty48({ message: "Please enter confirm password." }),
|
|
7086
7148
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7087
7149
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
7088
7150
|
__decorateClass([
|
|
7089
|
-
|
|
7151
|
+
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
7090
7152
|
Type8(() => Boolean)
|
|
7091
7153
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
7092
7154
|
__decorateClass([
|
|
7093
|
-
|
|
7155
|
+
IsEnum19(NatureOfWorkEnum, {
|
|
7094
7156
|
message: `Nature of work must be one of: ${Object.values(
|
|
7095
7157
|
NatureOfWorkEnum
|
|
7096
7158
|
).join(", ")}`
|
|
7097
7159
|
})
|
|
7098
7160
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7099
7161
|
__decorateClass([
|
|
7100
|
-
|
|
7162
|
+
IsNumber7({}, { message: "Expected hourly compensation must be a number" }),
|
|
7101
7163
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7102
7164
|
Type8(() => Number)
|
|
7103
7165
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7104
7166
|
__decorateClass([
|
|
7105
7167
|
ValidateIf7((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7106
|
-
|
|
7168
|
+
IsNotEmpty48({ message: "Please enter expected annual compensation." })
|
|
7107
7169
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7108
7170
|
__decorateClass([
|
|
7109
7171
|
ValidateIf7((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7110
7172
|
IsInt7({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7111
|
-
|
|
7173
|
+
IsNotEmpty48({ message: "Please enter weekly availability hours" })
|
|
7112
7174
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7113
7175
|
__decorateClass([
|
|
7114
|
-
|
|
7176
|
+
IsEnum19(ModeOfWorkEnum, {
|
|
7115
7177
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
7116
7178
|
", "
|
|
7117
7179
|
)}`
|
|
7118
7180
|
})
|
|
7119
7181
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
7120
7182
|
__decorateClass([
|
|
7121
|
-
|
|
7183
|
+
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
7122
7184
|
Type8(() => Boolean)
|
|
7123
7185
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7124
7186
|
__decorateClass([
|
|
7125
7187
|
ValidateIf7((o) => o.isImmediateJoiner === false),
|
|
7126
|
-
|
|
7188
|
+
IsNotEmpty48({ message: "Please enter availability to join." })
|
|
7127
7189
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7128
7190
|
__decorateClass([
|
|
7129
|
-
|
|
7191
|
+
IsOptional29(),
|
|
7130
7192
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7131
7193
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7132
7194
|
__decorateClass([
|
|
7133
|
-
|
|
7134
|
-
|
|
7195
|
+
IsOptional29(),
|
|
7196
|
+
IsString29({ message: "Kaggle profile link must be a string" })
|
|
7135
7197
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7136
7198
|
__decorateClass([
|
|
7137
|
-
|
|
7199
|
+
IsOptional29(),
|
|
7138
7200
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
7139
7201
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7140
7202
|
__decorateClass([
|
|
7141
|
-
|
|
7203
|
+
IsOptional29(),
|
|
7142
7204
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7143
7205
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7144
7206
|
__decorateClass([
|
|
7145
|
-
|
|
7207
|
+
IsOptional29(),
|
|
7146
7208
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
7147
7209
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7148
7210
|
|
|
7149
7211
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
7150
7212
|
import {
|
|
7151
|
-
IsString as
|
|
7213
|
+
IsString as IsString30,
|
|
7152
7214
|
IsEmail as IsEmail11,
|
|
7153
|
-
IsBoolean as
|
|
7154
|
-
IsOptional as
|
|
7155
|
-
IsEnum as
|
|
7156
|
-
IsNumber as
|
|
7215
|
+
IsBoolean as IsBoolean12,
|
|
7216
|
+
IsOptional as IsOptional30,
|
|
7217
|
+
IsEnum as IsEnum20,
|
|
7218
|
+
IsNumber as IsNumber8,
|
|
7157
7219
|
IsUrl as IsUrl4,
|
|
7158
7220
|
Min as Min5,
|
|
7159
7221
|
MaxLength as MaxLength17,
|
|
7160
7222
|
MinLength as MinLength13,
|
|
7161
7223
|
Matches as Matches10,
|
|
7162
|
-
IsNotEmpty as
|
|
7224
|
+
IsNotEmpty as IsNotEmpty49,
|
|
7163
7225
|
ValidateIf as ValidateIf8,
|
|
7164
7226
|
IsInt as IsInt8
|
|
7165
7227
|
} from "class-validator";
|
|
@@ -7179,24 +7241,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7179
7241
|
var UpdateFreelancerDto = class {
|
|
7180
7242
|
};
|
|
7181
7243
|
__decorateClass([
|
|
7182
|
-
|
|
7183
|
-
|
|
7244
|
+
IsOptional30(),
|
|
7245
|
+
IsString30({ message: "Full name must be a string" }),
|
|
7184
7246
|
MaxLength17(100, { message: "Full name must not exceed 100 characters" })
|
|
7185
7247
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
7186
7248
|
__decorateClass([
|
|
7187
|
-
|
|
7249
|
+
IsOptional30(),
|
|
7188
7250
|
IsEmail11({}, { message: "Invalid email address" })
|
|
7189
7251
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
7190
7252
|
__decorateClass([
|
|
7191
|
-
|
|
7192
|
-
|
|
7253
|
+
IsOptional30(),
|
|
7254
|
+
IsString30({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7193
7255
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
7194
7256
|
__decorateClass([
|
|
7195
|
-
|
|
7196
|
-
|
|
7257
|
+
IsOptional30(),
|
|
7258
|
+
IsString30({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7197
7259
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
7198
7260
|
__decorateClass([
|
|
7199
|
-
|
|
7261
|
+
IsOptional30(),
|
|
7200
7262
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7201
7263
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
7202
7264
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -7205,70 +7267,70 @@ __decorateClass([
|
|
|
7205
7267
|
})
|
|
7206
7268
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
7207
7269
|
__decorateClass([
|
|
7208
|
-
|
|
7209
|
-
|
|
7270
|
+
IsOptional30(),
|
|
7271
|
+
IsBoolean12({ message: "Developer flag must be true or false" }),
|
|
7210
7272
|
Type9(() => Boolean)
|
|
7211
7273
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
7212
7274
|
__decorateClass([
|
|
7213
|
-
|
|
7214
|
-
|
|
7275
|
+
IsOptional30(),
|
|
7276
|
+
IsEnum20(NatureOfWorkEnum2, {
|
|
7215
7277
|
message: `Nature of work must be one of: ${Object.values(
|
|
7216
7278
|
NatureOfWorkEnum2
|
|
7217
7279
|
).join(", ")}`
|
|
7218
7280
|
})
|
|
7219
7281
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7220
7282
|
__decorateClass([
|
|
7221
|
-
|
|
7222
|
-
|
|
7283
|
+
IsOptional30(),
|
|
7284
|
+
IsNumber8({}, { message: "Expected hourly compensation must be a number" }),
|
|
7223
7285
|
Min5(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
7224
7286
|
Type9(() => Number)
|
|
7225
7287
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7226
7288
|
__decorateClass([
|
|
7227
|
-
|
|
7289
|
+
IsOptional30(),
|
|
7228
7290
|
ValidateIf8((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7229
|
-
|
|
7291
|
+
IsNotEmpty49({ message: "Please enter expected annual compensation." })
|
|
7230
7292
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7231
7293
|
__decorateClass([
|
|
7232
|
-
|
|
7294
|
+
IsOptional30(),
|
|
7233
7295
|
ValidateIf8((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7234
7296
|
IsInt8({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7235
|
-
|
|
7297
|
+
IsNotEmpty49({ message: "Please enter weekly availability hours" })
|
|
7236
7298
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
7237
7299
|
__decorateClass([
|
|
7238
|
-
|
|
7239
|
-
|
|
7300
|
+
IsOptional30(),
|
|
7301
|
+
IsEnum20(ModeOfWorkEnum2, {
|
|
7240
7302
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
7241
7303
|
", "
|
|
7242
7304
|
)}`
|
|
7243
7305
|
})
|
|
7244
7306
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
7245
7307
|
__decorateClass([
|
|
7246
|
-
|
|
7247
|
-
|
|
7308
|
+
IsOptional30(),
|
|
7309
|
+
IsBoolean12({ message: "isImmediateJoiner must be true or false" }),
|
|
7248
7310
|
Type9(() => Boolean)
|
|
7249
7311
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
7250
7312
|
__decorateClass([
|
|
7251
7313
|
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
7252
|
-
|
|
7314
|
+
IsNotEmpty49({ message: "Please enter availability to join." })
|
|
7253
7315
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
7254
7316
|
__decorateClass([
|
|
7255
|
-
|
|
7317
|
+
IsOptional30(),
|
|
7256
7318
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
7257
7319
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7258
7320
|
__decorateClass([
|
|
7259
|
-
|
|
7260
|
-
|
|
7321
|
+
IsOptional30(),
|
|
7322
|
+
IsString30({ message: "Kaggle profile link must be a string" })
|
|
7261
7323
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
7262
7324
|
__decorateClass([
|
|
7263
|
-
|
|
7325
|
+
IsOptional30(),
|
|
7264
7326
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
7265
7327
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
7266
7328
|
__decorateClass([
|
|
7267
|
-
|
|
7329
|
+
IsOptional30(),
|
|
7268
7330
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
7269
7331
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
7270
7332
|
__decorateClass([
|
|
7271
|
-
|
|
7333
|
+
IsOptional30(),
|
|
7272
7334
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
7273
7335
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
7274
7336
|
|
|
@@ -7287,14 +7349,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
7287
7349
|
|
|
7288
7350
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
7289
7351
|
import {
|
|
7290
|
-
IsNotEmpty as
|
|
7352
|
+
IsNotEmpty as IsNotEmpty50,
|
|
7291
7353
|
IsEmail as IsEmail12,
|
|
7292
|
-
IsOptional as
|
|
7293
|
-
IsString as
|
|
7294
|
-
IsArray as
|
|
7354
|
+
IsOptional as IsOptional31,
|
|
7355
|
+
IsString as IsString31,
|
|
7356
|
+
IsArray as IsArray11,
|
|
7295
7357
|
MinLength as MinLength14,
|
|
7296
7358
|
MaxLength as MaxLength18,
|
|
7297
|
-
IsEnum as
|
|
7359
|
+
IsEnum as IsEnum21,
|
|
7298
7360
|
Matches as Matches11
|
|
7299
7361
|
} from "class-validator";
|
|
7300
7362
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -7312,19 +7374,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
7312
7374
|
var CreateClientDto = class {
|
|
7313
7375
|
};
|
|
7314
7376
|
__decorateClass([
|
|
7315
|
-
|
|
7316
|
-
|
|
7377
|
+
IsNotEmpty50({ message: "Please enter first name." }),
|
|
7378
|
+
IsString31()
|
|
7317
7379
|
], CreateClientDto.prototype, "firstName", 2);
|
|
7318
7380
|
__decorateClass([
|
|
7319
|
-
|
|
7320
|
-
|
|
7381
|
+
IsNotEmpty50({ message: "Please enter last name." }),
|
|
7382
|
+
IsString31()
|
|
7321
7383
|
], CreateClientDto.prototype, "lastName", 2);
|
|
7322
7384
|
__decorateClass([
|
|
7323
|
-
|
|
7385
|
+
IsNotEmpty50({ message: "Please enter email." }),
|
|
7324
7386
|
IsEmail12()
|
|
7325
7387
|
], CreateClientDto.prototype, "email", 2);
|
|
7326
7388
|
__decorateClass([
|
|
7327
|
-
|
|
7389
|
+
IsNotEmpty50({ message: "Please enter password." }),
|
|
7328
7390
|
MinLength14(6),
|
|
7329
7391
|
MaxLength18(32),
|
|
7330
7392
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -7332,66 +7394,66 @@ __decorateClass([
|
|
|
7332
7394
|
})
|
|
7333
7395
|
], CreateClientDto.prototype, "password", 2);
|
|
7334
7396
|
__decorateClass([
|
|
7335
|
-
|
|
7397
|
+
IsNotEmpty50({ message: "Please enter confirm password." }),
|
|
7336
7398
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
7337
7399
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
7338
7400
|
__decorateClass([
|
|
7339
|
-
|
|
7340
|
-
|
|
7401
|
+
IsNotEmpty50({ message: "Please enter company name." }),
|
|
7402
|
+
IsString31()
|
|
7341
7403
|
], CreateClientDto.prototype, "companyName", 2);
|
|
7342
7404
|
__decorateClass([
|
|
7343
|
-
|
|
7344
|
-
|
|
7405
|
+
IsArray11({ message: "Skills should be an array." }),
|
|
7406
|
+
IsNotEmpty50({ message: "Please enter skills." })
|
|
7345
7407
|
], CreateClientDto.prototype, "skills", 2);
|
|
7346
7408
|
__decorateClass([
|
|
7347
|
-
|
|
7348
|
-
|
|
7409
|
+
IsNotEmpty50({ message: "Please specify required freelancer count." }),
|
|
7410
|
+
IsString31()
|
|
7349
7411
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
7350
7412
|
__decorateClass([
|
|
7351
|
-
|
|
7352
|
-
|
|
7413
|
+
IsNotEmpty50({ message: "Please specify the kind of hiring." }),
|
|
7414
|
+
IsEnum21(CreateClientHiringTypeEnum)
|
|
7353
7415
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
7354
7416
|
__decorateClass([
|
|
7355
|
-
|
|
7356
|
-
|
|
7417
|
+
IsNotEmpty50({ message: "Please specify the mode of hire." }),
|
|
7418
|
+
IsEnum21(CreateClientHiringModeEnum)
|
|
7357
7419
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
7358
7420
|
__decorateClass([
|
|
7359
|
-
|
|
7360
|
-
|
|
7421
|
+
IsNotEmpty50({ message: "Please let us know how you found us." }),
|
|
7422
|
+
IsString31()
|
|
7361
7423
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
7362
7424
|
__decorateClass([
|
|
7363
|
-
|
|
7364
|
-
|
|
7425
|
+
IsOptional31(),
|
|
7426
|
+
IsString31()
|
|
7365
7427
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7366
7428
|
__decorateClass([
|
|
7367
|
-
|
|
7368
|
-
|
|
7429
|
+
IsOptional31(),
|
|
7430
|
+
IsString31()
|
|
7369
7431
|
], CreateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7370
7432
|
__decorateClass([
|
|
7371
|
-
|
|
7372
|
-
|
|
7433
|
+
IsOptional31(),
|
|
7434
|
+
IsString31()
|
|
7373
7435
|
], CreateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7374
7436
|
|
|
7375
7437
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
7376
|
-
import { IsString as
|
|
7438
|
+
import { IsString as IsString32, IsNotEmpty as IsNotEmpty51 } from "class-validator";
|
|
7377
7439
|
var UpdateClientAccountStatusDto = class {
|
|
7378
7440
|
};
|
|
7379
7441
|
__decorateClass([
|
|
7380
|
-
|
|
7381
|
-
|
|
7442
|
+
IsNotEmpty51({ message: "Please enter account status." }),
|
|
7443
|
+
IsString32()
|
|
7382
7444
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
7383
7445
|
|
|
7384
7446
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
7385
7447
|
import { Transform as Transform3 } from "class-transformer";
|
|
7386
7448
|
import {
|
|
7387
|
-
IsNotEmpty as
|
|
7449
|
+
IsNotEmpty as IsNotEmpty52,
|
|
7388
7450
|
IsEmail as IsEmail13,
|
|
7389
|
-
IsOptional as
|
|
7390
|
-
IsString as
|
|
7391
|
-
IsArray as
|
|
7451
|
+
IsOptional as IsOptional32,
|
|
7452
|
+
IsString as IsString33,
|
|
7453
|
+
IsArray as IsArray12,
|
|
7392
7454
|
MinLength as MinLength15,
|
|
7393
7455
|
MaxLength as MaxLength19,
|
|
7394
|
-
IsEnum as
|
|
7456
|
+
IsEnum as IsEnum22,
|
|
7395
7457
|
Matches as Matches12
|
|
7396
7458
|
} from "class-validator";
|
|
7397
7459
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -7409,19 +7471,19 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
7409
7471
|
var UpdateClientDto = class {
|
|
7410
7472
|
};
|
|
7411
7473
|
__decorateClass([
|
|
7412
|
-
|
|
7413
|
-
|
|
7474
|
+
IsNotEmpty52({ message: "Please enter first name." }),
|
|
7475
|
+
IsString33()
|
|
7414
7476
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
7415
7477
|
__decorateClass([
|
|
7416
|
-
|
|
7417
|
-
|
|
7478
|
+
IsNotEmpty52({ message: "Please enter last name." }),
|
|
7479
|
+
IsString33()
|
|
7418
7480
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
7419
7481
|
__decorateClass([
|
|
7420
|
-
|
|
7482
|
+
IsNotEmpty52({ message: "Please enter email." }),
|
|
7421
7483
|
IsEmail13()
|
|
7422
7484
|
], UpdateClientDto.prototype, "email", 2);
|
|
7423
7485
|
__decorateClass([
|
|
7424
|
-
|
|
7486
|
+
IsOptional32(),
|
|
7425
7487
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
7426
7488
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
7427
7489
|
MaxLength19(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -7430,40 +7492,40 @@ __decorateClass([
|
|
|
7430
7492
|
})
|
|
7431
7493
|
], UpdateClientDto.prototype, "password", 2);
|
|
7432
7494
|
__decorateClass([
|
|
7433
|
-
|
|
7434
|
-
|
|
7495
|
+
IsNotEmpty52({ message: "Please enter company name." }),
|
|
7496
|
+
IsString33()
|
|
7435
7497
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
7436
7498
|
__decorateClass([
|
|
7437
|
-
|
|
7438
|
-
|
|
7499
|
+
IsArray12({ message: "Skills should be an array." }),
|
|
7500
|
+
IsNotEmpty52({ message: "Please enter skills." })
|
|
7439
7501
|
], UpdateClientDto.prototype, "skills", 2);
|
|
7440
7502
|
__decorateClass([
|
|
7441
|
-
|
|
7442
|
-
|
|
7503
|
+
IsNotEmpty52({ message: "Please specify required freelancer count." }),
|
|
7504
|
+
IsString33()
|
|
7443
7505
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
7444
7506
|
__decorateClass([
|
|
7445
|
-
|
|
7446
|
-
|
|
7507
|
+
IsNotEmpty52({ message: "Please specify the kind of hiring." }),
|
|
7508
|
+
IsEnum22(UpdateClientHiringTypeEnum)
|
|
7447
7509
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
7448
7510
|
__decorateClass([
|
|
7449
|
-
|
|
7450
|
-
|
|
7511
|
+
IsNotEmpty52({ message: "Please specify the mode of hire." }),
|
|
7512
|
+
IsEnum22(UpdateClientHiringModeEnum)
|
|
7451
7513
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
7452
7514
|
__decorateClass([
|
|
7453
|
-
|
|
7454
|
-
|
|
7515
|
+
IsNotEmpty52({ message: "Please let us know how you found us." }),
|
|
7516
|
+
IsString33()
|
|
7455
7517
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
7456
7518
|
__decorateClass([
|
|
7457
|
-
|
|
7458
|
-
|
|
7519
|
+
IsOptional32(),
|
|
7520
|
+
IsString33()
|
|
7459
7521
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7460
7522
|
__decorateClass([
|
|
7461
|
-
|
|
7462
|
-
|
|
7523
|
+
IsOptional32(),
|
|
7524
|
+
IsString33()
|
|
7463
7525
|
], UpdateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7464
7526
|
__decorateClass([
|
|
7465
|
-
|
|
7466
|
-
|
|
7527
|
+
IsOptional32(),
|
|
7528
|
+
IsString33()
|
|
7467
7529
|
], UpdateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
7468
7530
|
|
|
7469
7531
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -7473,7 +7535,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
7473
7535
|
};
|
|
7474
7536
|
|
|
7475
7537
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
7476
|
-
import { IsOptional as
|
|
7538
|
+
import { IsOptional as IsOptional33, IsEnum as IsEnum23, IsString as IsString34, IsNotEmpty as IsNotEmpty53, IsIn as IsIn3 } from "class-validator";
|
|
7477
7539
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
7478
7540
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
7479
7541
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -7484,15 +7546,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
7484
7546
|
var FreelancerDeclarationDto = class {
|
|
7485
7547
|
};
|
|
7486
7548
|
__decorateClass([
|
|
7487
|
-
|
|
7488
|
-
|
|
7549
|
+
IsOptional33(),
|
|
7550
|
+
IsString34({ message: "UUID must be a string" })
|
|
7489
7551
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
7490
7552
|
__decorateClass([
|
|
7491
|
-
|
|
7553
|
+
IsEnum23(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
7492
7554
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
7493
7555
|
__decorateClass([
|
|
7494
|
-
|
|
7495
|
-
|
|
7556
|
+
IsNotEmpty53({ message: "Please accept the declaration " }),
|
|
7557
|
+
IsString34(),
|
|
7496
7558
|
IsIn3([
|
|
7497
7559
|
"true"
|
|
7498
7560
|
])
|
|
@@ -7517,36 +7579,36 @@ var CMS_PATTERNS = {
|
|
|
7517
7579
|
};
|
|
7518
7580
|
|
|
7519
7581
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
7520
|
-
import { IsBoolean as
|
|
7582
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional34 } from "class-validator";
|
|
7521
7583
|
var CreateCmsDto = class {
|
|
7522
7584
|
};
|
|
7523
7585
|
__decorateClass([
|
|
7524
|
-
|
|
7586
|
+
IsNotEmpty54({ message: "Please enter name." })
|
|
7525
7587
|
], CreateCmsDto.prototype, "title", 2);
|
|
7526
7588
|
__decorateClass([
|
|
7527
|
-
|
|
7589
|
+
IsOptional34()
|
|
7528
7590
|
], CreateCmsDto.prototype, "content", 2);
|
|
7529
7591
|
__decorateClass([
|
|
7530
|
-
|
|
7531
|
-
|
|
7592
|
+
IsOptional34(),
|
|
7593
|
+
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
7532
7594
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
7533
7595
|
|
|
7534
7596
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
7535
|
-
import { IsBoolean as
|
|
7597
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional35 } from "class-validator";
|
|
7536
7598
|
var UpdateCmsDto = class {
|
|
7537
7599
|
};
|
|
7538
7600
|
__decorateClass([
|
|
7539
|
-
|
|
7601
|
+
IsOptional35()
|
|
7540
7602
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
7541
7603
|
__decorateClass([
|
|
7542
|
-
|
|
7604
|
+
IsNotEmpty55({ message: "Please enter name." })
|
|
7543
7605
|
], UpdateCmsDto.prototype, "title", 2);
|
|
7544
7606
|
__decorateClass([
|
|
7545
|
-
|
|
7607
|
+
IsOptional35()
|
|
7546
7608
|
], UpdateCmsDto.prototype, "content", 2);
|
|
7547
7609
|
__decorateClass([
|
|
7548
|
-
|
|
7549
|
-
|
|
7610
|
+
IsOptional35(),
|
|
7611
|
+
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
7550
7612
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
7551
7613
|
|
|
7552
7614
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -7581,16 +7643,16 @@ var ADMIN_JOB_PATTERN = {
|
|
|
7581
7643
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
7582
7644
|
import { Type as Type10 } from "class-transformer";
|
|
7583
7645
|
import {
|
|
7584
|
-
IsString as
|
|
7585
|
-
IsEnum as
|
|
7646
|
+
IsString as IsString35,
|
|
7647
|
+
IsEnum as IsEnum24,
|
|
7586
7648
|
IsInt as IsInt9,
|
|
7587
|
-
IsOptional as
|
|
7588
|
-
IsArray as
|
|
7649
|
+
IsOptional as IsOptional36,
|
|
7650
|
+
IsArray as IsArray13,
|
|
7589
7651
|
IsDateString as IsDateString4,
|
|
7590
|
-
IsNotEmpty as
|
|
7591
|
-
ArrayNotEmpty as
|
|
7652
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7653
|
+
ArrayNotEmpty as ArrayNotEmpty8,
|
|
7592
7654
|
Min as Min6,
|
|
7593
|
-
IsNumber as
|
|
7655
|
+
IsNumber as IsNumber9
|
|
7594
7656
|
} from "class-validator";
|
|
7595
7657
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
7596
7658
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -7607,55 +7669,55 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
7607
7669
|
var AdminCreateJobInformationDto = class {
|
|
7608
7670
|
};
|
|
7609
7671
|
__decorateClass([
|
|
7610
|
-
|
|
7611
|
-
|
|
7672
|
+
IsString35({ message: "Job role must be a string." }),
|
|
7673
|
+
IsNotEmpty56({ message: "Job role is required." })
|
|
7612
7674
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
7613
7675
|
__decorateClass([
|
|
7614
|
-
|
|
7615
|
-
|
|
7676
|
+
IsOptional36(),
|
|
7677
|
+
IsString35({ message: "Note must be a string." })
|
|
7616
7678
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
7617
7679
|
__decorateClass([
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7680
|
+
IsArray13({ message: "Skills must be an array of skill names." }),
|
|
7681
|
+
ArrayNotEmpty8({ message: "At least one skill must be provided." }),
|
|
7682
|
+
IsString35({ each: true, message: "Each skill must be a valid string." })
|
|
7621
7683
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
7622
7684
|
__decorateClass([
|
|
7623
7685
|
IsInt9({ message: "Openings must be a valid integer." }),
|
|
7624
7686
|
Min6(1, { message: "There must be at least one opening." })
|
|
7625
7687
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
7626
7688
|
__decorateClass([
|
|
7627
|
-
|
|
7689
|
+
IsEnum24(JobLocationEnumDto, {
|
|
7628
7690
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
7629
7691
|
", "
|
|
7630
7692
|
)}.`
|
|
7631
7693
|
})
|
|
7632
7694
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
7633
7695
|
__decorateClass([
|
|
7634
|
-
|
|
7696
|
+
IsEnum24(TypeOfEmploymentEnumDto, {
|
|
7635
7697
|
message: `Type of employment must be one of: ${Object.values(
|
|
7636
7698
|
TypeOfEmploymentEnumDto
|
|
7637
7699
|
).join(", ")}.`
|
|
7638
7700
|
})
|
|
7639
7701
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7640
7702
|
__decorateClass([
|
|
7641
|
-
|
|
7642
|
-
|
|
7703
|
+
IsString35({ message: "Onboarding Days must be a string." }),
|
|
7704
|
+
IsNotEmpty56({ message: "Onboarding Days is required." })
|
|
7643
7705
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7644
7706
|
__decorateClass([
|
|
7645
|
-
|
|
7646
|
-
|
|
7707
|
+
IsString35({ message: "Communication skills must be a string." }),
|
|
7708
|
+
IsNotEmpty56({ message: "Communication skills are required." })
|
|
7647
7709
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7648
7710
|
__decorateClass([
|
|
7649
|
-
|
|
7650
|
-
|
|
7711
|
+
IsString35({ message: "Currency must be a string." }),
|
|
7712
|
+
IsNotEmpty56({ message: "Currency is required." })
|
|
7651
7713
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
7652
7714
|
__decorateClass([
|
|
7653
7715
|
Type10(() => Number),
|
|
7654
|
-
|
|
7716
|
+
IsNumber9({}, { message: "Expected salary from must be a number." })
|
|
7655
7717
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7656
7718
|
__decorateClass([
|
|
7657
7719
|
Type10(() => Number),
|
|
7658
|
-
|
|
7720
|
+
IsNumber9({}, { message: "Expected salary to must be a number." })
|
|
7659
7721
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7660
7722
|
__decorateClass([
|
|
7661
7723
|
IsDateString4(
|
|
@@ -7670,19 +7732,19 @@ __decorateClass([
|
|
|
7670
7732
|
)
|
|
7671
7733
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7672
7734
|
__decorateClass([
|
|
7673
|
-
|
|
7674
|
-
|
|
7735
|
+
IsOptional36(),
|
|
7736
|
+
IsString35({ message: "Additional comment must be a string." })
|
|
7675
7737
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
7676
7738
|
__decorateClass([
|
|
7677
|
-
|
|
7739
|
+
IsOptional36(),
|
|
7678
7740
|
IsInt9({ message: "Country ID must be a valid integer." })
|
|
7679
7741
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
7680
7742
|
__decorateClass([
|
|
7681
|
-
|
|
7743
|
+
IsOptional36(),
|
|
7682
7744
|
IsInt9({ message: "State ID must be a valid integer." })
|
|
7683
7745
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
7684
7746
|
__decorateClass([
|
|
7685
|
-
|
|
7747
|
+
IsOptional36(),
|
|
7686
7748
|
IsInt9({ message: "City ID must be a valid integer." })
|
|
7687
7749
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
7688
7750
|
__decorateClass([
|
|
@@ -7692,16 +7754,16 @@ __decorateClass([
|
|
|
7692
7754
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
7693
7755
|
import { Type as Type11 } from "class-transformer";
|
|
7694
7756
|
import {
|
|
7695
|
-
IsString as
|
|
7696
|
-
IsEnum as
|
|
7757
|
+
IsString as IsString36,
|
|
7758
|
+
IsEnum as IsEnum25,
|
|
7697
7759
|
IsInt as IsInt10,
|
|
7698
|
-
IsOptional as
|
|
7699
|
-
IsArray as
|
|
7760
|
+
IsOptional as IsOptional37,
|
|
7761
|
+
IsArray as IsArray14,
|
|
7700
7762
|
IsDateString as IsDateString5,
|
|
7701
|
-
IsNotEmpty as
|
|
7702
|
-
ArrayNotEmpty as
|
|
7763
|
+
IsNotEmpty as IsNotEmpty57,
|
|
7764
|
+
ArrayNotEmpty as ArrayNotEmpty9,
|
|
7703
7765
|
Min as Min7,
|
|
7704
|
-
IsNumber as
|
|
7766
|
+
IsNumber as IsNumber10
|
|
7705
7767
|
} from "class-validator";
|
|
7706
7768
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
7707
7769
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -7718,55 +7780,55 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
7718
7780
|
var AdminUpdateJobInformationDto = class {
|
|
7719
7781
|
};
|
|
7720
7782
|
__decorateClass([
|
|
7721
|
-
|
|
7722
|
-
|
|
7783
|
+
IsString36({ message: "Job role must be a string." }),
|
|
7784
|
+
IsNotEmpty57({ message: "Job role is required." })
|
|
7723
7785
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
7724
7786
|
__decorateClass([
|
|
7725
|
-
|
|
7726
|
-
|
|
7787
|
+
IsOptional37(),
|
|
7788
|
+
IsString36({ message: "Note must be a string." })
|
|
7727
7789
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
7728
7790
|
__decorateClass([
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7791
|
+
IsArray14({ message: "Skills must be an array of skill names." }),
|
|
7792
|
+
ArrayNotEmpty9({ message: "At least one skill must be provided." }),
|
|
7793
|
+
IsString36({ each: true, message: "Each skill must be a valid string." })
|
|
7732
7794
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
7733
7795
|
__decorateClass([
|
|
7734
7796
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
7735
7797
|
Min7(1, { message: "There must be at least one opening." })
|
|
7736
7798
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
7737
7799
|
__decorateClass([
|
|
7738
|
-
|
|
7800
|
+
IsEnum25(JobLocationEnums, {
|
|
7739
7801
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
7740
7802
|
", "
|
|
7741
7803
|
)}.`
|
|
7742
7804
|
})
|
|
7743
7805
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
7744
7806
|
__decorateClass([
|
|
7745
|
-
|
|
7807
|
+
IsEnum25(TypeOfEmploymentEnums, {
|
|
7746
7808
|
message: `Type of employment must be one of: ${Object.values(
|
|
7747
7809
|
TypeOfEmploymentEnums
|
|
7748
7810
|
).join(", ")}.`
|
|
7749
7811
|
})
|
|
7750
7812
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
7751
7813
|
__decorateClass([
|
|
7752
|
-
|
|
7753
|
-
|
|
7814
|
+
IsString36({ message: "Onboarding Days must be a string." }),
|
|
7815
|
+
IsNotEmpty57({ message: "Onboarding Days is required." })
|
|
7754
7816
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
7755
7817
|
__decorateClass([
|
|
7756
|
-
|
|
7757
|
-
|
|
7818
|
+
IsString36({ message: "Communication skills must be a string." }),
|
|
7819
|
+
IsNotEmpty57({ message: "Communication skills are required." })
|
|
7758
7820
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7759
7821
|
__decorateClass([
|
|
7760
|
-
|
|
7761
|
-
|
|
7822
|
+
IsString36({ message: "Currency must be a string." }),
|
|
7823
|
+
IsNotEmpty57({ message: "Currency is required." })
|
|
7762
7824
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
7763
7825
|
__decorateClass([
|
|
7764
7826
|
Type11(() => Number),
|
|
7765
|
-
|
|
7827
|
+
IsNumber10({}, { message: "Expected salary from must be a number." })
|
|
7766
7828
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7767
7829
|
__decorateClass([
|
|
7768
7830
|
Type11(() => Number),
|
|
7769
|
-
|
|
7831
|
+
IsNumber10({}, { message: "Expected salary to must be a number." })
|
|
7770
7832
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7771
7833
|
__decorateClass([
|
|
7772
7834
|
IsDateString5(
|
|
@@ -7781,19 +7843,19 @@ __decorateClass([
|
|
|
7781
7843
|
)
|
|
7782
7844
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
7783
7845
|
__decorateClass([
|
|
7784
|
-
|
|
7785
|
-
|
|
7846
|
+
IsOptional37(),
|
|
7847
|
+
IsString36({ message: "Additional comment must be a string." })
|
|
7786
7848
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
7787
7849
|
__decorateClass([
|
|
7788
|
-
|
|
7850
|
+
IsOptional37(),
|
|
7789
7851
|
IsInt10({ message: "Country ID must be a valid integer." })
|
|
7790
7852
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
7791
7853
|
__decorateClass([
|
|
7792
|
-
|
|
7854
|
+
IsOptional37(),
|
|
7793
7855
|
IsInt10({ message: "State ID must be a valid integer." })
|
|
7794
7856
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
7795
7857
|
__decorateClass([
|
|
7796
|
-
|
|
7858
|
+
IsOptional37(),
|
|
7797
7859
|
IsInt10({ message: "City ID must be a valid integer." })
|
|
7798
7860
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
7799
7861
|
__decorateClass([
|
|
@@ -7802,13 +7864,13 @@ __decorateClass([
|
|
|
7802
7864
|
|
|
7803
7865
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7804
7866
|
import {
|
|
7805
|
-
IsString as
|
|
7806
|
-
IsNotEmpty as
|
|
7807
|
-
IsArray as
|
|
7808
|
-
ArrayNotEmpty as
|
|
7809
|
-
IsNumber as
|
|
7810
|
-
IsOptional as
|
|
7811
|
-
IsEnum as
|
|
7867
|
+
IsString as IsString37,
|
|
7868
|
+
IsNotEmpty as IsNotEmpty58,
|
|
7869
|
+
IsArray as IsArray15,
|
|
7870
|
+
ArrayNotEmpty as ArrayNotEmpty10,
|
|
7871
|
+
IsNumber as IsNumber11,
|
|
7872
|
+
IsOptional as IsOptional38,
|
|
7873
|
+
IsEnum as IsEnum26,
|
|
7812
7874
|
Min as Min8,
|
|
7813
7875
|
ValidateIf as ValidateIf9,
|
|
7814
7876
|
MaxLength as MaxLength20,
|
|
@@ -7844,16 +7906,16 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
7844
7906
|
var JobLocationAdminDto = class {
|
|
7845
7907
|
};
|
|
7846
7908
|
__decorateClass([
|
|
7847
|
-
|
|
7848
|
-
|
|
7909
|
+
IsOptional38(),
|
|
7910
|
+
IsNumber11()
|
|
7849
7911
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7850
7912
|
__decorateClass([
|
|
7851
|
-
|
|
7852
|
-
|
|
7913
|
+
IsOptional38(),
|
|
7914
|
+
IsNumber11()
|
|
7853
7915
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7854
7916
|
__decorateClass([
|
|
7855
|
-
|
|
7856
|
-
|
|
7917
|
+
IsOptional38(),
|
|
7918
|
+
IsNumber11()
|
|
7857
7919
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7858
7920
|
var AdminJobBasicInformationV2Dto = class {
|
|
7859
7921
|
constructor() {
|
|
@@ -7861,37 +7923,37 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
7861
7923
|
}
|
|
7862
7924
|
};
|
|
7863
7925
|
__decorateClass([
|
|
7864
|
-
|
|
7926
|
+
IsOptional38(),
|
|
7865
7927
|
Type12(() => Boolean)
|
|
7866
7928
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7867
7929
|
__decorateClass([
|
|
7868
7930
|
IsInt11({ message: "Client ID must be a valid integer." })
|
|
7869
7931
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7870
7932
|
__decorateClass([
|
|
7871
|
-
|
|
7872
|
-
|
|
7933
|
+
IsNotEmpty58({ message: "Please enter job role" }),
|
|
7934
|
+
IsString37({ message: "Job role must be a string" })
|
|
7873
7935
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7874
7936
|
__decorateClass([
|
|
7875
|
-
|
|
7876
|
-
|
|
7937
|
+
IsOptional38(),
|
|
7938
|
+
IsString37({ message: "Note must be a string" })
|
|
7877
7939
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7878
7940
|
__decorateClass([
|
|
7879
7941
|
ValidateIf9((o) => !o.isDraft),
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7942
|
+
IsOptional38(),
|
|
7943
|
+
IsArray15({ message: "Skills must be an array" }),
|
|
7944
|
+
ArrayNotEmpty10({ message: "Please select at least one skill" }),
|
|
7945
|
+
IsString37({ each: true, message: "Each skill must be a string" }),
|
|
7884
7946
|
Type12(() => String)
|
|
7885
7947
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7886
7948
|
__decorateClass([
|
|
7887
7949
|
ValidateIf9((o) => !o.isDraft),
|
|
7888
|
-
|
|
7950
|
+
IsNumber11({}, { message: "Openings must be a number" }),
|
|
7889
7951
|
Min8(1, { message: "There must be at least 1 opening" }),
|
|
7890
7952
|
Type12(() => Number)
|
|
7891
7953
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7892
7954
|
__decorateClass([
|
|
7893
7955
|
ValidateIf9((o) => !o.isDraft),
|
|
7894
|
-
|
|
7956
|
+
IsEnum26(JobLocationAdminEnumDto, {
|
|
7895
7957
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7896
7958
|
", "
|
|
7897
7959
|
)}`
|
|
@@ -7899,36 +7961,36 @@ __decorateClass([
|
|
|
7899
7961
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7900
7962
|
__decorateClass([
|
|
7901
7963
|
ValidateIf9((o) => !o.isDraft),
|
|
7902
|
-
|
|
7964
|
+
IsEnum26(EmploymentTypeAdminEnumDto, {
|
|
7903
7965
|
message: `Type of employment must be one of: ${Object.values(
|
|
7904
7966
|
EmploymentTypeAdminEnumDto
|
|
7905
7967
|
).join(", ")}`
|
|
7906
7968
|
})
|
|
7907
7969
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7908
7970
|
__decorateClass([
|
|
7909
|
-
|
|
7910
|
-
|
|
7971
|
+
IsOptional38(),
|
|
7972
|
+
IsNumber11({}, { message: "Expected salary (from) must be a number" }),
|
|
7911
7973
|
Min8(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7912
7974
|
Type12(() => Number)
|
|
7913
7975
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7914
7976
|
__decorateClass([
|
|
7915
|
-
|
|
7916
|
-
|
|
7977
|
+
IsOptional38(),
|
|
7978
|
+
IsNumber11({}, { message: "Expected salary (to) must be a number" }),
|
|
7917
7979
|
Min8(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7918
7980
|
Type12(() => Number)
|
|
7919
7981
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7920
7982
|
__decorateClass([
|
|
7921
|
-
|
|
7983
|
+
IsOptional38(),
|
|
7922
7984
|
Type12(() => JobLocationAdminDto)
|
|
7923
7985
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7924
7986
|
__decorateClass([
|
|
7925
7987
|
ValidateIf9((o) => !o.isDraft),
|
|
7926
|
-
|
|
7927
|
-
|
|
7988
|
+
IsNotEmpty58({ message: "Please enter the academic qualification" }),
|
|
7989
|
+
IsString37({ message: "Academic qualification must be a string" })
|
|
7928
7990
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7929
7991
|
__decorateClass([
|
|
7930
7992
|
ValidateIf9((o) => !o.isDraft),
|
|
7931
|
-
|
|
7993
|
+
IsEnum26(typeOfExperienceAdminEnumDto, {
|
|
7932
7994
|
message: `Type of experience must be one of: ${Object.values(
|
|
7933
7995
|
typeOfExperienceAdminEnumDto
|
|
7934
7996
|
).join(", ")}`
|
|
@@ -7936,83 +7998,83 @@ __decorateClass([
|
|
|
7936
7998
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7937
7999
|
__decorateClass([
|
|
7938
8000
|
ValidateIf9((o) => !o.isDraft),
|
|
7939
|
-
|
|
7940
|
-
|
|
8001
|
+
IsNotEmpty58({ message: "Please enter the years of experience" }),
|
|
8002
|
+
IsString37({ message: "Years of experience must be a string" })
|
|
7941
8003
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7942
8004
|
__decorateClass([
|
|
7943
8005
|
ValidateIf9((o) => !o.isDraft),
|
|
7944
|
-
|
|
7945
|
-
|
|
8006
|
+
IsNotEmpty58({ message: "Please enter the years of experience upto" }),
|
|
8007
|
+
IsString37({ message: "Years of experience must be a string" })
|
|
7946
8008
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7947
8009
|
__decorateClass([
|
|
7948
|
-
|
|
7949
|
-
|
|
8010
|
+
IsOptional38(),
|
|
8011
|
+
IsString37({ message: "Business industry must be a string" })
|
|
7950
8012
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7951
8013
|
__decorateClass([
|
|
7952
|
-
|
|
7953
|
-
|
|
8014
|
+
IsOptional38(),
|
|
8015
|
+
IsString37({ message: "Project name must be a string" })
|
|
7954
8016
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7955
8017
|
__decorateClass([
|
|
7956
|
-
|
|
8018
|
+
IsOptional38()
|
|
7957
8019
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7958
8020
|
__decorateClass([
|
|
7959
|
-
|
|
8021
|
+
IsOptional38()
|
|
7960
8022
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7961
8023
|
__decorateClass([
|
|
7962
|
-
|
|
7963
|
-
|
|
8024
|
+
IsOptional38(),
|
|
8025
|
+
IsNumber11({}, { message: "Expected annual budget (from) must be a number" }),
|
|
7964
8026
|
Min8(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
7965
8027
|
Type12(() => Number)
|
|
7966
8028
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
7967
8029
|
__decorateClass([
|
|
7968
|
-
|
|
8030
|
+
IsOptional38()
|
|
7969
8031
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
7970
8032
|
__decorateClass([
|
|
7971
|
-
|
|
7972
|
-
|
|
8033
|
+
IsOptional38(),
|
|
8034
|
+
IsNumber11({}, { message: "Expected annual budget (to) must be a number" }),
|
|
7973
8035
|
Min8(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
7974
8036
|
Type12(() => Number)
|
|
7975
8037
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
7976
8038
|
__decorateClass([
|
|
7977
|
-
|
|
8039
|
+
IsOptional38()
|
|
7978
8040
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
7979
8041
|
__decorateClass([
|
|
7980
|
-
|
|
7981
|
-
|
|
8042
|
+
IsOptional38(),
|
|
8043
|
+
IsNumber11({}, { message: "Number of hours must be a number" }),
|
|
7982
8044
|
Min8(0, { message: "Number of hours cannot be negative" }),
|
|
7983
8045
|
Max4(40, { message: "Number of hours cannot exceed 40" }),
|
|
7984
8046
|
Type12(() => Number)
|
|
7985
8047
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7986
8048
|
__decorateClass([
|
|
7987
|
-
|
|
8049
|
+
IsOptional38()
|
|
7988
8050
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
7989
8051
|
__decorateClass([
|
|
7990
|
-
|
|
8052
|
+
IsOptional38()
|
|
7991
8053
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
7992
8054
|
__decorateClass([
|
|
7993
|
-
|
|
8055
|
+
IsOptional38()
|
|
7994
8056
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7995
8057
|
__decorateClass([
|
|
7996
|
-
|
|
8058
|
+
IsOptional38()
|
|
7997
8059
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
7998
8060
|
__decorateClass([
|
|
7999
|
-
|
|
8000
|
-
|
|
8061
|
+
IsOptional38(),
|
|
8062
|
+
IsString37({ message: "Additional comment must be a string" }),
|
|
8001
8063
|
MaxLength20(500, { message: "Additional comment must not exceed 500 characters" })
|
|
8002
8064
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
8003
8065
|
__decorateClass([
|
|
8004
8066
|
ValidateIf9((o) => !o.isDraft),
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8067
|
+
IsArray15({ message: "Good to have skills must be an array" }),
|
|
8068
|
+
IsString37({ each: true, message: "Each skill must be a string" }),
|
|
8069
|
+
IsOptional38(),
|
|
8008
8070
|
Type12(() => String)
|
|
8009
8071
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
8010
8072
|
__decorateClass([
|
|
8011
|
-
|
|
8073
|
+
IsOptional38()
|
|
8012
8074
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
8013
8075
|
__decorateClass([
|
|
8014
|
-
|
|
8015
|
-
|
|
8076
|
+
IsOptional38(),
|
|
8077
|
+
IsEnum26(AdminStepCompletedEnumV2, {
|
|
8016
8078
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
8017
8079
|
AdminStepCompletedEnumV2
|
|
8018
8080
|
).join(", ")}`
|
|
@@ -8026,7 +8088,7 @@ var LEAD_PATTERN = {
|
|
|
8026
8088
|
};
|
|
8027
8089
|
|
|
8028
8090
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
8029
|
-
import { IsString as
|
|
8091
|
+
import { IsString as IsString38, IsEmail as IsEmail14, IsOptional as IsOptional39, IsEnum as IsEnum27 } from "class-validator";
|
|
8030
8092
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
8031
8093
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
8032
8094
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -8035,23 +8097,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
8035
8097
|
var CreateLeadDto = class {
|
|
8036
8098
|
};
|
|
8037
8099
|
__decorateClass([
|
|
8038
|
-
|
|
8100
|
+
IsString38({ message: "Name must be a string" })
|
|
8039
8101
|
], CreateLeadDto.prototype, "name", 2);
|
|
8040
8102
|
__decorateClass([
|
|
8041
8103
|
IsEmail14({}, { message: "Invalid email address" })
|
|
8042
8104
|
], CreateLeadDto.prototype, "email", 2);
|
|
8043
8105
|
__decorateClass([
|
|
8044
|
-
|
|
8106
|
+
IsString38({ message: "Mobile code must be a string (e.g., +1)" })
|
|
8045
8107
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
8046
8108
|
__decorateClass([
|
|
8047
|
-
|
|
8109
|
+
IsString38({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
8048
8110
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
8049
8111
|
__decorateClass([
|
|
8050
|
-
|
|
8051
|
-
|
|
8112
|
+
IsOptional39(),
|
|
8113
|
+
IsString38({ message: "Description must be a string" })
|
|
8052
8114
|
], CreateLeadDto.prototype, "description", 2);
|
|
8053
8115
|
__decorateClass([
|
|
8054
|
-
|
|
8116
|
+
IsEnum27(CategoryEmumDto, {
|
|
8055
8117
|
message: `Type of category must be one of: ${Object.values(
|
|
8056
8118
|
CategoryEmumDto
|
|
8057
8119
|
).join(", ")}`
|
|
@@ -8072,46 +8134,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
8072
8134
|
};
|
|
8073
8135
|
|
|
8074
8136
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
8075
|
-
import { IsNotEmpty as
|
|
8137
|
+
import { IsNotEmpty as IsNotEmpty59, IsOptional as IsOptional40, IsString as IsString39 } from "class-validator";
|
|
8076
8138
|
var CreateAdminRoleDto = class {
|
|
8077
8139
|
};
|
|
8078
8140
|
__decorateClass([
|
|
8079
|
-
|
|
8080
|
-
|
|
8141
|
+
IsNotEmpty59({ message: "Please enter admin role name." }),
|
|
8142
|
+
IsString39({ message: "Role name must be a string." })
|
|
8081
8143
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
8082
8144
|
__decorateClass([
|
|
8083
|
-
|
|
8084
|
-
|
|
8145
|
+
IsOptional40(),
|
|
8146
|
+
IsString39({ message: "Role description must be a string." })
|
|
8085
8147
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
8086
8148
|
|
|
8087
8149
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
8088
|
-
import { IsBoolean as
|
|
8150
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty60, IsOptional as IsOptional41, IsString as IsString40 } from "class-validator";
|
|
8089
8151
|
var UpdateAdminRoleDto = class {
|
|
8090
8152
|
};
|
|
8091
8153
|
__decorateClass([
|
|
8092
|
-
|
|
8093
|
-
|
|
8154
|
+
IsNotEmpty60({ message: "Please enter admin role name." }),
|
|
8155
|
+
IsString40({ message: "Role name must be a string." })
|
|
8094
8156
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
8095
8157
|
__decorateClass([
|
|
8096
|
-
|
|
8097
|
-
|
|
8158
|
+
IsOptional41(),
|
|
8159
|
+
IsString40({ message: "Role description must be a string." })
|
|
8098
8160
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
8099
8161
|
__decorateClass([
|
|
8100
|
-
|
|
8101
|
-
|
|
8162
|
+
IsOptional41(),
|
|
8163
|
+
IsBoolean16({ message: "Is active must be a boolean value." })
|
|
8102
8164
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
8103
8165
|
|
|
8104
8166
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
8105
|
-
import { IsNotEmpty as
|
|
8167
|
+
import { IsNotEmpty as IsNotEmpty61, IsString as IsString41 } from "class-validator";
|
|
8106
8168
|
var AttachPermissionsToRoleDto = class {
|
|
8107
8169
|
};
|
|
8108
8170
|
__decorateClass([
|
|
8109
|
-
|
|
8110
|
-
|
|
8171
|
+
IsNotEmpty61({ message: "Please enter admin role ID." }),
|
|
8172
|
+
IsString41({ message: "Role ID must be a string." })
|
|
8111
8173
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
8112
8174
|
__decorateClass([
|
|
8113
|
-
|
|
8114
|
-
|
|
8175
|
+
IsNotEmpty61({ message: "Please enter permission IDs." }),
|
|
8176
|
+
IsString41({ message: "Permission IDs must be a comma-separated string." })
|
|
8115
8177
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
8116
8178
|
|
|
8117
8179
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -8192,13 +8254,13 @@ var INTERVIEW_PATTERN = {
|
|
|
8192
8254
|
|
|
8193
8255
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
8194
8256
|
import {
|
|
8195
|
-
IsString as
|
|
8196
|
-
IsNotEmpty as
|
|
8197
|
-
IsArray as
|
|
8198
|
-
ArrayNotEmpty as
|
|
8257
|
+
IsString as IsString42,
|
|
8258
|
+
IsNotEmpty as IsNotEmpty62,
|
|
8259
|
+
IsArray as IsArray16,
|
|
8260
|
+
ArrayNotEmpty as ArrayNotEmpty11,
|
|
8199
8261
|
IsEmail as IsEmail15,
|
|
8200
8262
|
IsUUID as IsUUID12,
|
|
8201
|
-
IsEnum as
|
|
8263
|
+
IsEnum as IsEnum28,
|
|
8202
8264
|
ValidateIf as ValidateIf10,
|
|
8203
8265
|
ValidateNested as ValidateNested7
|
|
8204
8266
|
} from "class-validator";
|
|
@@ -8216,21 +8278,21 @@ __decorateClass([
|
|
|
8216
8278
|
IsUUID12()
|
|
8217
8279
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
8218
8280
|
__decorateClass([
|
|
8219
|
-
|
|
8281
|
+
IsEnum28(CandidateType, {
|
|
8220
8282
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
8221
8283
|
})
|
|
8222
8284
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
8223
8285
|
var NewCandidateDto = class {
|
|
8224
8286
|
};
|
|
8225
8287
|
__decorateClass([
|
|
8226
|
-
|
|
8227
|
-
|
|
8288
|
+
IsNotEmpty62({ message: "Please enter the candidate name" }),
|
|
8289
|
+
IsString42({ message: "Name must be a string" })
|
|
8228
8290
|
], NewCandidateDto.prototype, "name", 2);
|
|
8229
8291
|
__decorateClass([
|
|
8230
8292
|
IsEmail15({}, { message: "Please enter a valid email." })
|
|
8231
8293
|
], NewCandidateDto.prototype, "email", 2);
|
|
8232
8294
|
__decorateClass([
|
|
8233
|
-
|
|
8295
|
+
IsEnum28(CandidateType, {
|
|
8234
8296
|
message: "type must be NEW"
|
|
8235
8297
|
})
|
|
8236
8298
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -8238,15 +8300,15 @@ var CandidatesDto = class {
|
|
|
8238
8300
|
};
|
|
8239
8301
|
__decorateClass([
|
|
8240
8302
|
ValidateIf10((o) => o.exixtingCandidates?.length > 0),
|
|
8241
|
-
|
|
8242
|
-
|
|
8303
|
+
IsArray16({ message: "Existing candidates should be an array." }),
|
|
8304
|
+
ArrayNotEmpty11({ message: "Please select at least one candidate." }),
|
|
8243
8305
|
ValidateNested7({ each: true }),
|
|
8244
8306
|
Type13(() => ExistingCandidateDto)
|
|
8245
8307
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
8246
8308
|
__decorateClass([
|
|
8247
8309
|
ValidateIf10((o) => o.newCandidates?.length > 0),
|
|
8248
|
-
|
|
8249
|
-
|
|
8310
|
+
IsArray16({ message: "New candidates should be an array." }),
|
|
8311
|
+
ArrayNotEmpty11({ message: "Please add at least one candidate." }),
|
|
8250
8312
|
ValidateNested7({ each: true }),
|
|
8251
8313
|
Type13(() => NewCandidateDto)
|
|
8252
8314
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
@@ -8262,95 +8324,95 @@ __decorateClass([
|
|
|
8262
8324
|
|
|
8263
8325
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
8264
8326
|
import {
|
|
8265
|
-
IsString as
|
|
8266
|
-
IsNotEmpty as
|
|
8327
|
+
IsString as IsString43,
|
|
8328
|
+
IsNotEmpty as IsNotEmpty63,
|
|
8267
8329
|
IsEmail as IsEmail16,
|
|
8268
|
-
IsNumber as
|
|
8330
|
+
IsNumber as IsNumber12
|
|
8269
8331
|
} from "class-validator";
|
|
8270
8332
|
var CreateF2FInterviewDto = class {
|
|
8271
8333
|
};
|
|
8272
8334
|
__decorateClass([
|
|
8273
8335
|
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
8274
|
-
|
|
8336
|
+
IsNotEmpty63({ message: "Invitee email is required." })
|
|
8275
8337
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
8276
8338
|
__decorateClass([
|
|
8277
|
-
|
|
8278
|
-
|
|
8339
|
+
IsString43({ message: "Invitee name must be a string." }),
|
|
8340
|
+
IsNotEmpty63({ message: "Invitee name is required." })
|
|
8279
8341
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
8280
8342
|
__decorateClass([
|
|
8281
|
-
|
|
8343
|
+
IsNumber12({}, { message: "Interview ID must be a number." })
|
|
8282
8344
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
8283
8345
|
__decorateClass([
|
|
8284
|
-
|
|
8346
|
+
IsNumber12({}, { message: "Candidate ID must be a number." })
|
|
8285
8347
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
8286
8348
|
|
|
8287
8349
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
8288
8350
|
import {
|
|
8289
|
-
IsString as
|
|
8290
|
-
IsNotEmpty as
|
|
8351
|
+
IsString as IsString44,
|
|
8352
|
+
IsNotEmpty as IsNotEmpty64,
|
|
8291
8353
|
IsEmail as IsEmail17,
|
|
8292
|
-
IsNumber as
|
|
8354
|
+
IsNumber as IsNumber13
|
|
8293
8355
|
} from "class-validator";
|
|
8294
8356
|
var CreateF2FInterviewDirectDto = class {
|
|
8295
8357
|
};
|
|
8296
8358
|
__decorateClass([
|
|
8297
8359
|
IsEmail17({}, { message: "Please enter a valid email address." }),
|
|
8298
|
-
|
|
8360
|
+
IsNotEmpty64({ message: "Invitee email is required." })
|
|
8299
8361
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
8300
8362
|
__decorateClass([
|
|
8301
|
-
|
|
8302
|
-
|
|
8363
|
+
IsString44({ message: "Invitee name must be a string." }),
|
|
8364
|
+
IsNotEmpty64({ message: "Invitee name is required." })
|
|
8303
8365
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
8304
8366
|
__decorateClass([
|
|
8305
|
-
|
|
8367
|
+
IsNumber13({}, { message: "Job ID must be a number." })
|
|
8306
8368
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
8307
8369
|
__decorateClass([
|
|
8308
|
-
|
|
8370
|
+
IsNumber13({}, { message: "Candidate ID must be a number." })
|
|
8309
8371
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
8310
8372
|
|
|
8311
8373
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
8312
8374
|
import {
|
|
8313
|
-
IsString as
|
|
8314
|
-
IsNotEmpty as
|
|
8375
|
+
IsString as IsString45,
|
|
8376
|
+
IsNotEmpty as IsNotEmpty65
|
|
8315
8377
|
} from "class-validator";
|
|
8316
8378
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
8317
8379
|
};
|
|
8318
8380
|
__decorateClass([
|
|
8319
|
-
|
|
8381
|
+
IsNotEmpty65({ message: "F2F Interview ID is required." })
|
|
8320
8382
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
8321
8383
|
__decorateClass([
|
|
8322
|
-
|
|
8384
|
+
IsNotEmpty65({ message: "Rescheduled date is required." })
|
|
8323
8385
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
8324
8386
|
__decorateClass([
|
|
8325
|
-
|
|
8326
|
-
|
|
8387
|
+
IsString45({ message: "Rescheduled slot must be a string." }),
|
|
8388
|
+
IsNotEmpty65({ message: "Rescheduled slot is required." })
|
|
8327
8389
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
8328
8390
|
__decorateClass([
|
|
8329
|
-
|
|
8391
|
+
IsString45({ message: "Freelancer reason must be a string." })
|
|
8330
8392
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8331
8393
|
|
|
8332
8394
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
8333
8395
|
import {
|
|
8334
|
-
IsString as
|
|
8335
|
-
IsNotEmpty as
|
|
8396
|
+
IsString as IsString46,
|
|
8397
|
+
IsNotEmpty as IsNotEmpty66
|
|
8336
8398
|
} from "class-validator";
|
|
8337
8399
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
8338
8400
|
};
|
|
8339
8401
|
__decorateClass([
|
|
8340
|
-
|
|
8402
|
+
IsNotEmpty66({ message: "AI Interview ID is required." })
|
|
8341
8403
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
8342
8404
|
__decorateClass([
|
|
8343
|
-
|
|
8405
|
+
IsString46({ message: "Freelancer reason must be a string." })
|
|
8344
8406
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
8345
8407
|
|
|
8346
8408
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
8347
8409
|
import {
|
|
8348
|
-
IsString as
|
|
8410
|
+
IsString as IsString47
|
|
8349
8411
|
} from "class-validator";
|
|
8350
8412
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
8351
8413
|
};
|
|
8352
8414
|
__decorateClass([
|
|
8353
|
-
|
|
8415
|
+
IsString47({ message: "Client reject reason must be a string." })
|
|
8354
8416
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
8355
8417
|
|
|
8356
8418
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -8388,43 +8450,43 @@ var CONTRACT_PATTERN = {
|
|
|
8388
8450
|
};
|
|
8389
8451
|
|
|
8390
8452
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
8391
|
-
import { IsEnum as
|
|
8453
|
+
import { IsEnum as IsEnum29, IsNotEmpty as IsNotEmpty67, IsNumber as IsNumber14 } from "class-validator";
|
|
8392
8454
|
import { Type as Type14 } from "class-transformer";
|
|
8393
8455
|
var SignContractForClientDto = class {
|
|
8394
8456
|
};
|
|
8395
8457
|
__decorateClass([
|
|
8396
|
-
|
|
8458
|
+
IsNotEmpty67({ message: "Job Id is required." }),
|
|
8397
8459
|
Type14(() => Number),
|
|
8398
|
-
|
|
8460
|
+
IsNumber14({}, { message: "Job ID must be a number." })
|
|
8399
8461
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
8400
8462
|
__decorateClass([
|
|
8401
|
-
|
|
8463
|
+
IsNotEmpty67({ message: "Freelancer ID is required." }),
|
|
8402
8464
|
Type14(() => Number),
|
|
8403
|
-
|
|
8465
|
+
IsNumber14({}, { message: "Freelancer ID must be a number." })
|
|
8404
8466
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
8405
8467
|
__decorateClass([
|
|
8406
|
-
|
|
8407
|
-
|
|
8468
|
+
IsNotEmpty67({ message: "Contract type is required." }),
|
|
8469
|
+
IsEnum29(ContractTypeEnum)
|
|
8408
8470
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
8409
8471
|
|
|
8410
8472
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
8411
|
-
import { IsEnum as
|
|
8473
|
+
import { IsEnum as IsEnum30, IsNotEmpty as IsNotEmpty68, IsNumber as IsNumber15 } from "class-validator";
|
|
8412
8474
|
import { Type as Type15 } from "class-transformer";
|
|
8413
8475
|
var SignContractForFreelancerDto = class {
|
|
8414
8476
|
};
|
|
8415
8477
|
__decorateClass([
|
|
8416
|
-
|
|
8478
|
+
IsNotEmpty68({ message: "Job Id is required." }),
|
|
8417
8479
|
Type15(() => Number),
|
|
8418
|
-
|
|
8480
|
+
IsNumber15({}, { message: "Job ID must be a number." })
|
|
8419
8481
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
8420
8482
|
__decorateClass([
|
|
8421
|
-
|
|
8483
|
+
IsNotEmpty68({ message: "Client ID is required." }),
|
|
8422
8484
|
Type15(() => Number),
|
|
8423
|
-
|
|
8485
|
+
IsNumber15({}, { message: "Client ID must be a number." })
|
|
8424
8486
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
8425
8487
|
__decorateClass([
|
|
8426
|
-
|
|
8427
|
-
|
|
8488
|
+
IsNotEmpty68({ message: "Contract type is required." }),
|
|
8489
|
+
IsEnum30(ContractTypeEnum)
|
|
8428
8490
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
8429
8491
|
|
|
8430
8492
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -8449,12 +8511,12 @@ var STRIPE_PATTERN = {
|
|
|
8449
8511
|
|
|
8450
8512
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
8451
8513
|
import {
|
|
8452
|
-
IsNotEmpty as
|
|
8514
|
+
IsNotEmpty as IsNotEmpty69
|
|
8453
8515
|
} from "class-validator";
|
|
8454
8516
|
var CreateCheckoutSessionDto = class {
|
|
8455
8517
|
};
|
|
8456
8518
|
__decorateClass([
|
|
8457
|
-
|
|
8519
|
+
IsNotEmpty69({ message: "Amount is required" })
|
|
8458
8520
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
8459
8521
|
|
|
8460
8522
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -8501,114 +8563,156 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
8501
8563
|
import {
|
|
8502
8564
|
IsDateString as IsDateString7,
|
|
8503
8565
|
IsInt as IsInt12,
|
|
8504
|
-
IsNotEmpty as
|
|
8505
|
-
IsOptional as
|
|
8506
|
-
IsString as
|
|
8566
|
+
IsNotEmpty as IsNotEmpty70,
|
|
8567
|
+
IsOptional as IsOptional45,
|
|
8568
|
+
IsString as IsString48,
|
|
8507
8569
|
Matches as Matches13,
|
|
8508
|
-
IsNumber as
|
|
8570
|
+
IsNumber as IsNumber16
|
|
8509
8571
|
} from "class-validator";
|
|
8510
8572
|
var CreateFreelancerTimesheetDto = class {
|
|
8511
8573
|
};
|
|
8512
8574
|
__decorateClass([
|
|
8513
|
-
|
|
8514
|
-
|
|
8575
|
+
IsNotEmpty70({ message: "Job id is required" }),
|
|
8576
|
+
IsNumber16({}, { message: "Job id must be a number" })
|
|
8515
8577
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8516
8578
|
__decorateClass([
|
|
8517
|
-
|
|
8579
|
+
IsNotEmpty70({ message: "start date is required" }),
|
|
8518
8580
|
IsDateString7()
|
|
8519
8581
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8520
8582
|
__decorateClass([
|
|
8521
|
-
|
|
8583
|
+
IsNotEmpty70({ message: "end date is required" }),
|
|
8522
8584
|
IsDateString7()
|
|
8523
8585
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8524
8586
|
__decorateClass([
|
|
8525
|
-
|
|
8587
|
+
IsNotEmpty70({ message: "start time is required" }),
|
|
8526
8588
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8527
8589
|
message: "startTime must be in HH:mm:ss format"
|
|
8528
8590
|
})
|
|
8529
8591
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8530
8592
|
__decorateClass([
|
|
8531
|
-
|
|
8593
|
+
IsNotEmpty70({ message: "end time is required" }),
|
|
8532
8594
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8533
8595
|
message: "endTime must be in HH:mm:ss format"
|
|
8534
8596
|
})
|
|
8535
8597
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8536
8598
|
__decorateClass([
|
|
8537
|
-
|
|
8599
|
+
IsOptional45(),
|
|
8538
8600
|
IsInt12()
|
|
8539
8601
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8540
8602
|
__decorateClass([
|
|
8541
|
-
|
|
8542
|
-
|
|
8603
|
+
IsOptional45(),
|
|
8604
|
+
IsString48()
|
|
8543
8605
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8544
8606
|
__decorateClass([
|
|
8545
|
-
|
|
8546
|
-
|
|
8607
|
+
IsOptional45(),
|
|
8608
|
+
IsString48()
|
|
8547
8609
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8548
8610
|
__decorateClass([
|
|
8549
|
-
|
|
8550
|
-
|
|
8611
|
+
IsOptional45(),
|
|
8612
|
+
IsString48()
|
|
8551
8613
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8552
8614
|
__decorateClass([
|
|
8553
|
-
|
|
8615
|
+
IsNotEmpty70({ message: "Description is required" })
|
|
8554
8616
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8555
8617
|
|
|
8556
8618
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
8557
8619
|
import {
|
|
8558
8620
|
IsDateString as IsDateString8,
|
|
8559
8621
|
IsInt as IsInt13,
|
|
8560
|
-
IsNotEmpty as
|
|
8561
|
-
IsOptional as
|
|
8562
|
-
IsString as
|
|
8622
|
+
IsNotEmpty as IsNotEmpty71,
|
|
8623
|
+
IsOptional as IsOptional46,
|
|
8624
|
+
IsString as IsString49,
|
|
8563
8625
|
Matches as Matches14,
|
|
8564
|
-
IsNumber as
|
|
8626
|
+
IsNumber as IsNumber17
|
|
8565
8627
|
} from "class-validator";
|
|
8566
8628
|
var UpdateFreelancerTimesheetDto = class {
|
|
8567
8629
|
};
|
|
8568
8630
|
__decorateClass([
|
|
8569
|
-
|
|
8570
|
-
|
|
8631
|
+
IsNotEmpty71({ message: "Job id is required" }),
|
|
8632
|
+
IsNumber17({}, { message: "Job id must be a number" })
|
|
8571
8633
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
8572
8634
|
__decorateClass([
|
|
8573
|
-
|
|
8635
|
+
IsNotEmpty71({ message: "start date is required" }),
|
|
8574
8636
|
IsDateString8()
|
|
8575
8637
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
8576
8638
|
__decorateClass([
|
|
8577
|
-
|
|
8639
|
+
IsNotEmpty71({ message: "end date is required" }),
|
|
8578
8640
|
IsDateString8()
|
|
8579
8641
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
8580
8642
|
__decorateClass([
|
|
8581
|
-
|
|
8643
|
+
IsNotEmpty71({ message: "start time is required" }),
|
|
8582
8644
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8583
8645
|
message: "startTime must be in HH:mm:ss format"
|
|
8584
8646
|
})
|
|
8585
8647
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
8586
8648
|
__decorateClass([
|
|
8587
|
-
|
|
8649
|
+
IsNotEmpty71({ message: "end time is required" }),
|
|
8588
8650
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
8589
8651
|
message: "endTime must be in HH:mm:ss format"
|
|
8590
8652
|
})
|
|
8591
8653
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
8592
8654
|
__decorateClass([
|
|
8593
|
-
|
|
8655
|
+
IsOptional46(),
|
|
8594
8656
|
IsInt13()
|
|
8595
8657
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
8596
8658
|
__decorateClass([
|
|
8597
|
-
|
|
8598
|
-
|
|
8659
|
+
IsOptional46(),
|
|
8660
|
+
IsString49()
|
|
8599
8661
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
8600
8662
|
__decorateClass([
|
|
8601
|
-
|
|
8602
|
-
|
|
8663
|
+
IsOptional46(),
|
|
8664
|
+
IsString49()
|
|
8603
8665
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
8604
8666
|
__decorateClass([
|
|
8605
|
-
|
|
8606
|
-
|
|
8667
|
+
IsOptional46(),
|
|
8668
|
+
IsString49()
|
|
8607
8669
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
8608
8670
|
__decorateClass([
|
|
8609
|
-
|
|
8671
|
+
IsNotEmpty71({ message: "Description is required" })
|
|
8610
8672
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
8611
8673
|
|
|
8674
|
+
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
8675
|
+
import { IsNotEmpty as IsNotEmpty72, IsNumber as IsNumber18 } from "class-validator";
|
|
8676
|
+
var SubmitTimesheetDto = class {
|
|
8677
|
+
};
|
|
8678
|
+
__decorateClass([
|
|
8679
|
+
IsNotEmpty72({ message: "Timesheet line ID is required" }),
|
|
8680
|
+
IsNumber18({}, { message: "Timesheet line ID must be a number" })
|
|
8681
|
+
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8682
|
+
|
|
8683
|
+
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
8684
|
+
import { IsNotEmpty as IsNotEmpty73, IsNumber as IsNumber19 } from "class-validator";
|
|
8685
|
+
var ResubmitTimesheetDto = class {
|
|
8686
|
+
};
|
|
8687
|
+
__decorateClass([
|
|
8688
|
+
IsNotEmpty73({ message: "Timesheet line ID is required" }),
|
|
8689
|
+
IsNumber19({}, { message: "Timesheet line ID must be a number" })
|
|
8690
|
+
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
8691
|
+
|
|
8692
|
+
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
8693
|
+
import { ArrayNotEmpty as ArrayNotEmpty12, IsArray as IsArray17, IsNumber as IsNumber20 } from "class-validator";
|
|
8694
|
+
var ApproveTimesheetsDto = class {
|
|
8695
|
+
};
|
|
8696
|
+
__decorateClass([
|
|
8697
|
+
IsArray17({ message: "Timesheet line IDs must be an array" }),
|
|
8698
|
+
ArrayNotEmpty12({ message: "At least one timesheet line ID is required" }),
|
|
8699
|
+
IsNumber20({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8700
|
+
], ApproveTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8701
|
+
|
|
8702
|
+
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
8703
|
+
import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray18, IsNumber as IsNumber21, IsOptional as IsOptional47, IsString as IsString50 } from "class-validator";
|
|
8704
|
+
var SendBackTimesheetsDto = class {
|
|
8705
|
+
};
|
|
8706
|
+
__decorateClass([
|
|
8707
|
+
IsArray18({ message: "Timesheet line IDs must be an array" }),
|
|
8708
|
+
ArrayNotEmpty13({ message: "At least one timesheet line ID is required" }),
|
|
8709
|
+
IsNumber21({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
8710
|
+
], SendBackTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
8711
|
+
__decorateClass([
|
|
8712
|
+
IsOptional47(),
|
|
8713
|
+
IsString50()
|
|
8714
|
+
], SendBackTimesheetsDto.prototype, "reason", 2);
|
|
8715
|
+
|
|
8612
8716
|
// src/modules/invoice/pattern/pattern.ts
|
|
8613
8717
|
var INVOICE_PATTERN = {
|
|
8614
8718
|
createInvoice: "invoice.create",
|
|
@@ -8628,16 +8732,25 @@ var INVOICE_PATTERN = {
|
|
|
8628
8732
|
};
|
|
8629
8733
|
|
|
8630
8734
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
8631
|
-
import { IsEnum as
|
|
8735
|
+
import { IsEnum as IsEnum33, IsNotEmpty as IsNotEmpty74 } from "class-validator";
|
|
8632
8736
|
var UpdateInvoiceStatusDto = class {
|
|
8633
8737
|
};
|
|
8634
8738
|
__decorateClass([
|
|
8635
|
-
|
|
8636
|
-
|
|
8739
|
+
IsNotEmpty74({ message: "Please provide invoice status." }),
|
|
8740
|
+
IsEnum33(InvoiceStatusEnum, {
|
|
8637
8741
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
8638
8742
|
})
|
|
8639
8743
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
8640
8744
|
|
|
8745
|
+
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
8746
|
+
import { IsNotEmpty as IsNotEmpty75, IsNumber as IsNumber22 } from "class-validator";
|
|
8747
|
+
var CreateInvoiceDto = class {
|
|
8748
|
+
};
|
|
8749
|
+
__decorateClass([
|
|
8750
|
+
IsNotEmpty75({ message: "Timesheet line ID is required" }),
|
|
8751
|
+
IsNumber22({}, { message: "Timesheet line ID must be a number" })
|
|
8752
|
+
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
8753
|
+
|
|
8641
8754
|
// src/modules/dispute/pattern/pattern.ts
|
|
8642
8755
|
var DISPUTE_PATTERN = {
|
|
8643
8756
|
fetchDisputes: "fetch.disputes",
|
|
@@ -8647,13 +8760,13 @@ var DISPUTE_PATTERN = {
|
|
|
8647
8760
|
|
|
8648
8761
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
8649
8762
|
import {
|
|
8650
|
-
IsString as
|
|
8651
|
-
IsNotEmpty as
|
|
8763
|
+
IsString as IsString51,
|
|
8764
|
+
IsNotEmpty as IsNotEmpty76,
|
|
8652
8765
|
IsIn as IsIn4,
|
|
8653
|
-
IsOptional as
|
|
8766
|
+
IsOptional as IsOptional48,
|
|
8654
8767
|
MaxLength as MaxLength21,
|
|
8655
8768
|
IsObject,
|
|
8656
|
-
IsNumber as
|
|
8769
|
+
IsNumber as IsNumber23,
|
|
8657
8770
|
ValidateIf as ValidateIf11
|
|
8658
8771
|
} from "class-validator";
|
|
8659
8772
|
import { Transform as Transform4, Type as Type16 } from "class-transformer";
|
|
@@ -8661,35 +8774,35 @@ var CreateDisputeDto = class {
|
|
|
8661
8774
|
};
|
|
8662
8775
|
__decorateClass([
|
|
8663
8776
|
ValidateIf11((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
8664
|
-
|
|
8777
|
+
IsNumber23({}, { message: "Client id must be a number" }),
|
|
8665
8778
|
Type16(() => Number)
|
|
8666
8779
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
8667
8780
|
__decorateClass([
|
|
8668
8781
|
ValidateIf11((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
8669
|
-
|
|
8782
|
+
IsNumber23({}, { message: "Freelancer id must be a number" }),
|
|
8670
8783
|
Type16(() => Number)
|
|
8671
8784
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
8672
8785
|
__decorateClass([
|
|
8673
|
-
|
|
8674
|
-
|
|
8786
|
+
IsNotEmpty76({ message: "Please select dispute type." }),
|
|
8787
|
+
IsString51(),
|
|
8675
8788
|
IsIn4(["JOB", "INVOICE"])
|
|
8676
8789
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
8677
8790
|
__decorateClass([
|
|
8678
|
-
|
|
8679
|
-
|
|
8791
|
+
IsNotEmpty76({ message: "Please provide initiator type." }),
|
|
8792
|
+
IsString51()
|
|
8680
8793
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
8681
8794
|
__decorateClass([
|
|
8682
|
-
|
|
8683
|
-
|
|
8795
|
+
IsNotEmpty76({ message: "Please enter description." }),
|
|
8796
|
+
IsString51({ message: "Description must be a string" }),
|
|
8684
8797
|
MaxLength21(500, { message: "Description must not exceed 500 characters" })
|
|
8685
8798
|
], CreateDisputeDto.prototype, "description", 2);
|
|
8686
8799
|
__decorateClass([
|
|
8687
|
-
|
|
8688
|
-
|
|
8800
|
+
IsOptional48(),
|
|
8801
|
+
IsString51({ message: "Comment must be a string" }),
|
|
8689
8802
|
MaxLength21(500, { message: "Comment must not exceed 500 characters" })
|
|
8690
8803
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
8691
8804
|
__decorateClass([
|
|
8692
|
-
|
|
8805
|
+
IsOptional48(),
|
|
8693
8806
|
IsObject({ message: "Dynamic fields must be a valid object" }),
|
|
8694
8807
|
Transform4(({ value }) => {
|
|
8695
8808
|
if (typeof value === "string") {
|
|
@@ -8712,15 +8825,15 @@ var SENSELOAF_PATTERN = {
|
|
|
8712
8825
|
|
|
8713
8826
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
8714
8827
|
import {
|
|
8715
|
-
IsNotEmpty as
|
|
8828
|
+
IsNotEmpty as IsNotEmpty77
|
|
8716
8829
|
} from "class-validator";
|
|
8717
8830
|
var AiInterviewQuestionGenerateDto = class {
|
|
8718
8831
|
};
|
|
8719
8832
|
__decorateClass([
|
|
8720
|
-
|
|
8833
|
+
IsNotEmpty77({ message: "Please enter job description." })
|
|
8721
8834
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
8722
8835
|
__decorateClass([
|
|
8723
|
-
|
|
8836
|
+
IsNotEmpty77({ message: "Please enter number of questions." })
|
|
8724
8837
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
8725
8838
|
|
|
8726
8839
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -8735,6 +8848,19 @@ var HIRING_PATTERN = {
|
|
|
8735
8848
|
createHiring: "create.hiring"
|
|
8736
8849
|
};
|
|
8737
8850
|
|
|
8851
|
+
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
8852
|
+
import { IsNotEmpty as IsNotEmpty78, IsNumber as IsNumber24 } from "class-validator";
|
|
8853
|
+
var CreateHiringDto = class {
|
|
8854
|
+
};
|
|
8855
|
+
__decorateClass([
|
|
8856
|
+
IsNotEmpty78({ message: "Freelancer ID is required" }),
|
|
8857
|
+
IsNumber24({}, { message: "Freelancer ID must be a number" })
|
|
8858
|
+
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
8859
|
+
__decorateClass([
|
|
8860
|
+
IsNotEmpty78({ message: "Job ID is required" }),
|
|
8861
|
+
IsNumber24({}, { message: "Job ID must be a number" })
|
|
8862
|
+
], CreateHiringDto.prototype, "jobId", 2);
|
|
8863
|
+
|
|
8738
8864
|
// src/modules/llm/pattern/pattern.ts
|
|
8739
8865
|
var LLM_PATTERN = {
|
|
8740
8866
|
handleMcqGeneration: "handle.mcq.generation"
|
|
@@ -9799,6 +9925,7 @@ export {
|
|
|
9799
9925
|
AiInterviewStatusEnum,
|
|
9800
9926
|
AnswerTypeEnum,
|
|
9801
9927
|
ApplicationStatusEnum,
|
|
9928
|
+
ApproveTimesheetsDto,
|
|
9802
9929
|
AssessmentAnswer,
|
|
9803
9930
|
AssessmentRequestStatusEnum,
|
|
9804
9931
|
AssessmentStatusEnum,
|
|
@@ -9827,6 +9954,8 @@ export {
|
|
|
9827
9954
|
CaseStudyDto,
|
|
9828
9955
|
CategoryEmum,
|
|
9829
9956
|
CategoryEmumDto,
|
|
9957
|
+
ChangeJobApplicationStatusBulkDto,
|
|
9958
|
+
ChangeJobApplicationStatusDto,
|
|
9830
9959
|
ChatRMQAdapter,
|
|
9831
9960
|
ChatTCPAdapter,
|
|
9832
9961
|
City,
|
|
@@ -9836,6 +9965,7 @@ export {
|
|
|
9836
9965
|
ClientCreateAccountDto,
|
|
9837
9966
|
ClientFreelancerRecommendation,
|
|
9838
9967
|
ClientProfileQuestionDto,
|
|
9968
|
+
CloseJobDto,
|
|
9839
9969
|
Cms,
|
|
9840
9970
|
Commission,
|
|
9841
9971
|
CommissionTypeEnum,
|
|
@@ -9866,6 +9996,9 @@ export {
|
|
|
9866
9996
|
CreateF2FInterviewRescheduleRequestDto,
|
|
9867
9997
|
CreateFreelancerDto,
|
|
9868
9998
|
CreateFreelancerTimesheetDto,
|
|
9999
|
+
CreateHiringDto,
|
|
10000
|
+
CreateInvoiceDto,
|
|
10001
|
+
CreateJobApplicationDto,
|
|
9869
10002
|
CreateLeadDto,
|
|
9870
10003
|
CreateQuestionDto,
|
|
9871
10004
|
CreateRatingDto,
|
|
@@ -9957,6 +10090,7 @@ export {
|
|
|
9957
10090
|
Job,
|
|
9958
10091
|
JobAdditionalCommentDto,
|
|
9959
10092
|
JobApplication,
|
|
10093
|
+
JobApplicationStatus,
|
|
9960
10094
|
JobBasicInformationDto,
|
|
9961
10095
|
JobBasicInformationV2Dto,
|
|
9962
10096
|
JobDescriptionDto,
|
|
@@ -10021,6 +10155,7 @@ export {
|
|
|
10021
10155
|
RejectAIInterviewRescheduleRequestDto,
|
|
10022
10156
|
ResetPasswordDto,
|
|
10023
10157
|
ResetPasswordTokenValidationDto,
|
|
10158
|
+
ResubmitTimesheetDto,
|
|
10024
10159
|
ResultStatusEnum,
|
|
10025
10160
|
SENSELOAF_PATTERN,
|
|
10026
10161
|
SIGNATURE_PATTERN,
|
|
@@ -10032,6 +10167,7 @@ export {
|
|
|
10032
10167
|
SYSTEM_PREFERENCES_PATTERN,
|
|
10033
10168
|
ScopeEnum,
|
|
10034
10169
|
SelectedAnswerTypeEnum,
|
|
10170
|
+
SendBackTimesheetsDto,
|
|
10035
10171
|
SendGuestOtpDto,
|
|
10036
10172
|
SendGuestOtpPurposeEnum,
|
|
10037
10173
|
SendGuestOtpScopeEnum,
|
|
@@ -10053,6 +10189,7 @@ export {
|
|
|
10053
10189
|
StripeTransaction,
|
|
10054
10190
|
StripeTransactionStatusEnum,
|
|
10055
10191
|
StripeTransactionTypeEnum,
|
|
10192
|
+
SubmitTimesheetDto,
|
|
10056
10193
|
SystemPreference,
|
|
10057
10194
|
SystemPreferenceDto,
|
|
10058
10195
|
SystemPreferenceKey,
|