@experts_hub/shared 1.0.142 → 1.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/interview-skill.entity.d.ts +9 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +224 -186
- package/dist/index.mjs +244 -200
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(index_exports, {
|
|
|
72
72
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
73
73
|
FromUsOn: () => FromUsOn,
|
|
74
74
|
Interview: () => Interview,
|
|
75
|
+
InterviewSkill: () => InterviewSkill,
|
|
75
76
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
76
77
|
JOB_PATTERN: () => JOB_PATTERN,
|
|
77
78
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
@@ -999,10 +1000,10 @@ var RATING_PATTERN = {
|
|
|
999
1000
|
var import_class_validator29 = require("class-validator");
|
|
1000
1001
|
|
|
1001
1002
|
// src/entities/rating.entity.ts
|
|
1002
|
-
var
|
|
1003
|
+
var import_typeorm19 = require("typeorm");
|
|
1003
1004
|
|
|
1004
1005
|
// src/entities/user.entity.ts
|
|
1005
|
-
var
|
|
1006
|
+
var import_typeorm18 = require("typeorm");
|
|
1006
1007
|
|
|
1007
1008
|
// src/entities/base.entity.ts
|
|
1008
1009
|
var import_typeorm = require("typeorm");
|
|
@@ -1371,7 +1372,7 @@ CompanyProfile = __decorateClass([
|
|
|
1371
1372
|
], CompanyProfile);
|
|
1372
1373
|
|
|
1373
1374
|
// src/entities/job.entity.ts
|
|
1374
|
-
var
|
|
1375
|
+
var import_typeorm12 = require("typeorm");
|
|
1375
1376
|
|
|
1376
1377
|
// src/entities/job-skill.entity.ts
|
|
1377
1378
|
var import_typeorm8 = require("typeorm");
|
|
@@ -1536,7 +1537,36 @@ JobApplication = __decorateClass([
|
|
|
1536
1537
|
], JobApplication);
|
|
1537
1538
|
|
|
1538
1539
|
// src/entities/interview.entity.ts
|
|
1540
|
+
var import_typeorm11 = require("typeorm");
|
|
1541
|
+
|
|
1542
|
+
// src/entities/interview-skill.entity.ts
|
|
1539
1543
|
var import_typeorm10 = require("typeorm");
|
|
1544
|
+
var InterviewSkill = class extends BaseEntity {
|
|
1545
|
+
};
|
|
1546
|
+
__decorateClass([
|
|
1547
|
+
(0, import_typeorm10.Column)({ name: "interview_id", type: "integer" }),
|
|
1548
|
+
(0, import_typeorm10.Index)()
|
|
1549
|
+
], InterviewSkill.prototype, "interviewId", 2);
|
|
1550
|
+
__decorateClass([
|
|
1551
|
+
(0, import_typeorm10.ManyToOne)(() => Interview, (interview) => interview.interviewSkills, {
|
|
1552
|
+
onDelete: "CASCADE"
|
|
1553
|
+
}),
|
|
1554
|
+
(0, import_typeorm10.JoinColumn)({ name: "interview_id" })
|
|
1555
|
+
], InterviewSkill.prototype, "interview", 2);
|
|
1556
|
+
__decorateClass([
|
|
1557
|
+
(0, import_typeorm10.Column)({ name: "skill", type: "varchar", nullable: true })
|
|
1558
|
+
], InterviewSkill.prototype, "skill", 2);
|
|
1559
|
+
__decorateClass([
|
|
1560
|
+
(0, import_typeorm10.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1561
|
+
], InterviewSkill.prototype, "description", 2);
|
|
1562
|
+
__decorateClass([
|
|
1563
|
+
(0, import_typeorm10.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1564
|
+
], InterviewSkill.prototype, "isActive", 2);
|
|
1565
|
+
InterviewSkill = __decorateClass([
|
|
1566
|
+
(0, import_typeorm10.Entity)("interview_skills")
|
|
1567
|
+
], InterviewSkill);
|
|
1568
|
+
|
|
1569
|
+
// src/entities/interview.entity.ts
|
|
1540
1570
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
1541
1571
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
1542
1572
|
InterviewStatusEnum2["PUBLISHED"] = "PUBLISHED";
|
|
@@ -1548,46 +1578,53 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
1548
1578
|
var Interview = class extends BaseEntity {
|
|
1549
1579
|
};
|
|
1550
1580
|
__decorateClass([
|
|
1551
|
-
(0,
|
|
1581
|
+
(0, import_typeorm11.Column)({
|
|
1552
1582
|
name: "interview_id",
|
|
1553
1583
|
type: "varchar",
|
|
1554
1584
|
unique: true,
|
|
1555
1585
|
nullable: true
|
|
1556
1586
|
}),
|
|
1557
|
-
(0,
|
|
1587
|
+
(0, import_typeorm11.Index)()
|
|
1558
1588
|
], Interview.prototype, "interviewId", 2);
|
|
1559
1589
|
__decorateClass([
|
|
1560
|
-
(0,
|
|
1561
|
-
(0,
|
|
1590
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1591
|
+
(0, import_typeorm11.Index)()
|
|
1562
1592
|
], Interview.prototype, "userId", 2);
|
|
1563
1593
|
__decorateClass([
|
|
1564
|
-
(0,
|
|
1565
|
-
(0,
|
|
1594
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.interviews),
|
|
1595
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
1566
1596
|
], Interview.prototype, "user", 2);
|
|
1567
1597
|
__decorateClass([
|
|
1568
|
-
(0,
|
|
1598
|
+
(0, import_typeorm11.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
1569
1599
|
], Interview.prototype, "interviewName", 2);
|
|
1570
1600
|
__decorateClass([
|
|
1571
|
-
(0,
|
|
1572
|
-
(0,
|
|
1601
|
+
(0, import_typeorm11.Column)({ name: "job_id", type: "integer" }),
|
|
1602
|
+
(0, import_typeorm11.Index)()
|
|
1573
1603
|
], Interview.prototype, "jobId", 2);
|
|
1574
1604
|
__decorateClass([
|
|
1575
|
-
(0,
|
|
1576
|
-
(0,
|
|
1605
|
+
(0, import_typeorm11.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
1606
|
+
(0, import_typeorm11.JoinColumn)({ name: "job_id" })
|
|
1577
1607
|
], Interview.prototype, "job", 2);
|
|
1578
1608
|
__decorateClass([
|
|
1579
|
-
(0,
|
|
1609
|
+
(0, import_typeorm11.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
1580
1610
|
], Interview.prototype, "interviewType", 2);
|
|
1581
1611
|
__decorateClass([
|
|
1582
|
-
(0,
|
|
1612
|
+
(0, import_typeorm11.Column)({
|
|
1583
1613
|
name: "status",
|
|
1584
1614
|
type: "enum",
|
|
1585
1615
|
enum: InterviewStatusEnum,
|
|
1586
1616
|
default: "DRAFTED" /* DRAFTED */
|
|
1587
1617
|
})
|
|
1588
1618
|
], Interview.prototype, "status", 2);
|
|
1619
|
+
__decorateClass([
|
|
1620
|
+
(0, import_typeorm11.OneToMany)(
|
|
1621
|
+
() => InterviewSkill,
|
|
1622
|
+
(interviewSkill) => interviewSkill.interview,
|
|
1623
|
+
{ cascade: true }
|
|
1624
|
+
)
|
|
1625
|
+
], Interview.prototype, "interviewSkills", 2);
|
|
1589
1626
|
Interview = __decorateClass([
|
|
1590
|
-
(0,
|
|
1627
|
+
(0, import_typeorm11.Entity)("interviews")
|
|
1591
1628
|
], Interview);
|
|
1592
1629
|
|
|
1593
1630
|
// src/entities/job.entity.ts
|
|
@@ -1627,28 +1664,28 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
1627
1664
|
var Job = class extends BaseEntity {
|
|
1628
1665
|
};
|
|
1629
1666
|
__decorateClass([
|
|
1630
|
-
(0,
|
|
1667
|
+
(0, import_typeorm12.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
1631
1668
|
], Job.prototype, "jobId", 2);
|
|
1632
1669
|
// individual index to find jobs by user
|
|
1633
1670
|
__decorateClass([
|
|
1634
|
-
(0,
|
|
1635
|
-
(0,
|
|
1671
|
+
(0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1672
|
+
(0, import_typeorm12.Index)()
|
|
1636
1673
|
], Job.prototype, "userId", 2);
|
|
1637
1674
|
__decorateClass([
|
|
1638
|
-
(0,
|
|
1639
|
-
(0,
|
|
1675
|
+
(0, import_typeorm12.ManyToOne)(() => User, (user) => user.jobs),
|
|
1676
|
+
(0, import_typeorm12.JoinColumn)({ name: "user_id" })
|
|
1640
1677
|
], Job.prototype, "user", 2);
|
|
1641
1678
|
__decorateClass([
|
|
1642
|
-
(0,
|
|
1679
|
+
(0, import_typeorm12.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
1643
1680
|
], Job.prototype, "jobRole", 2);
|
|
1644
1681
|
__decorateClass([
|
|
1645
|
-
(0,
|
|
1682
|
+
(0, import_typeorm12.Column)({ name: "note", type: "varchar", nullable: true })
|
|
1646
1683
|
], Job.prototype, "note", 2);
|
|
1647
1684
|
__decorateClass([
|
|
1648
|
-
(0,
|
|
1685
|
+
(0, import_typeorm12.Column)({ name: "openings", type: "integer", default: 0 })
|
|
1649
1686
|
], Job.prototype, "openings", 2);
|
|
1650
1687
|
__decorateClass([
|
|
1651
|
-
(0,
|
|
1688
|
+
(0, import_typeorm12.Column)({
|
|
1652
1689
|
name: "location",
|
|
1653
1690
|
type: "enum",
|
|
1654
1691
|
enum: JobLocationEnum,
|
|
@@ -1656,7 +1693,7 @@ __decorateClass([
|
|
|
1656
1693
|
})
|
|
1657
1694
|
], Job.prototype, "location", 2);
|
|
1658
1695
|
__decorateClass([
|
|
1659
|
-
(0,
|
|
1696
|
+
(0, import_typeorm12.Column)({
|
|
1660
1697
|
name: "type_of_employment",
|
|
1661
1698
|
type: "enum",
|
|
1662
1699
|
enum: TypeOfEmploymentEnum,
|
|
@@ -1664,10 +1701,10 @@ __decorateClass([
|
|
|
1664
1701
|
})
|
|
1665
1702
|
], Job.prototype, "typeOfEmployment", 2);
|
|
1666
1703
|
__decorateClass([
|
|
1667
|
-
(0,
|
|
1704
|
+
(0, import_typeorm12.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
1668
1705
|
], Job.prototype, "currency", 2);
|
|
1669
1706
|
__decorateClass([
|
|
1670
|
-
(0,
|
|
1707
|
+
(0, import_typeorm12.Column)({
|
|
1671
1708
|
name: "expected_salary_from",
|
|
1672
1709
|
type: "decimal",
|
|
1673
1710
|
precision: 10,
|
|
@@ -1676,7 +1713,7 @@ __decorateClass([
|
|
|
1676
1713
|
})
|
|
1677
1714
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
1678
1715
|
__decorateClass([
|
|
1679
|
-
(0,
|
|
1716
|
+
(0, import_typeorm12.Column)({
|
|
1680
1717
|
name: "expected_salary_to",
|
|
1681
1718
|
type: "decimal",
|
|
1682
1719
|
precision: 10,
|
|
@@ -1685,13 +1722,13 @@ __decorateClass([
|
|
|
1685
1722
|
})
|
|
1686
1723
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
1687
1724
|
__decorateClass([
|
|
1688
|
-
(0,
|
|
1725
|
+
(0, import_typeorm12.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
1689
1726
|
], Job.prototype, "tentativeStartDate", 2);
|
|
1690
1727
|
__decorateClass([
|
|
1691
|
-
(0,
|
|
1728
|
+
(0, import_typeorm12.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
1692
1729
|
], Job.prototype, "duration", 2);
|
|
1693
1730
|
__decorateClass([
|
|
1694
|
-
(0,
|
|
1731
|
+
(0, import_typeorm12.Column)({
|
|
1695
1732
|
name: "duration_type",
|
|
1696
1733
|
type: "enum",
|
|
1697
1734
|
enum: DurationTypeEnum,
|
|
@@ -1699,13 +1736,13 @@ __decorateClass([
|
|
|
1699
1736
|
})
|
|
1700
1737
|
], Job.prototype, "durationType", 2);
|
|
1701
1738
|
__decorateClass([
|
|
1702
|
-
(0,
|
|
1739
|
+
(0, import_typeorm12.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1703
1740
|
], Job.prototype, "description", 2);
|
|
1704
1741
|
__decorateClass([
|
|
1705
|
-
(0,
|
|
1742
|
+
(0, import_typeorm12.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
1706
1743
|
], Job.prototype, "additionalComment", 2);
|
|
1707
1744
|
__decorateClass([
|
|
1708
|
-
(0,
|
|
1745
|
+
(0, import_typeorm12.Column)({
|
|
1709
1746
|
name: "onboarding_tat",
|
|
1710
1747
|
type: "varchar",
|
|
1711
1748
|
length: 50,
|
|
@@ -1713,14 +1750,14 @@ __decorateClass([
|
|
|
1713
1750
|
})
|
|
1714
1751
|
], Job.prototype, "onboardingTat", 2);
|
|
1715
1752
|
__decorateClass([
|
|
1716
|
-
(0,
|
|
1753
|
+
(0, import_typeorm12.Column)({
|
|
1717
1754
|
name: "candidate_communication_skills",
|
|
1718
1755
|
type: "varchar",
|
|
1719
1756
|
nullable: true
|
|
1720
1757
|
})
|
|
1721
1758
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
1722
1759
|
__decorateClass([
|
|
1723
|
-
(0,
|
|
1760
|
+
(0, import_typeorm12.Column)({
|
|
1724
1761
|
name: "step_completed",
|
|
1725
1762
|
type: "enum",
|
|
1726
1763
|
enum: Step,
|
|
@@ -1728,7 +1765,7 @@ __decorateClass([
|
|
|
1728
1765
|
})
|
|
1729
1766
|
], Job.prototype, "stepCompleted", 2);
|
|
1730
1767
|
__decorateClass([
|
|
1731
|
-
(0,
|
|
1768
|
+
(0, import_typeorm12.Column)({
|
|
1732
1769
|
name: "status",
|
|
1733
1770
|
type: "enum",
|
|
1734
1771
|
enum: JobStatusEnum,
|
|
@@ -1736,30 +1773,30 @@ __decorateClass([
|
|
|
1736
1773
|
})
|
|
1737
1774
|
], Job.prototype, "status", 2);
|
|
1738
1775
|
__decorateClass([
|
|
1739
|
-
(0,
|
|
1776
|
+
(0, import_typeorm12.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
1740
1777
|
], Job.prototype, "viewedCount", 2);
|
|
1741
1778
|
__decorateClass([
|
|
1742
|
-
(0,
|
|
1779
|
+
(0, import_typeorm12.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
1743
1780
|
], Job.prototype, "applicationCount", 2);
|
|
1744
1781
|
__decorateClass([
|
|
1745
|
-
(0,
|
|
1782
|
+
(0, import_typeorm12.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
1746
1783
|
], Job.prototype, "jobSkills", 2);
|
|
1747
1784
|
__decorateClass([
|
|
1748
|
-
(0,
|
|
1785
|
+
(0, import_typeorm12.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
1749
1786
|
cascade: true
|
|
1750
1787
|
})
|
|
1751
1788
|
], Job.prototype, "jobApplications", 2);
|
|
1752
1789
|
__decorateClass([
|
|
1753
|
-
(0,
|
|
1790
|
+
(0, import_typeorm12.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
1754
1791
|
cascade: true
|
|
1755
1792
|
})
|
|
1756
1793
|
], Job.prototype, "interviews", 2);
|
|
1757
1794
|
Job = __decorateClass([
|
|
1758
|
-
(0,
|
|
1795
|
+
(0, import_typeorm12.Entity)("jobs")
|
|
1759
1796
|
], Job);
|
|
1760
1797
|
|
|
1761
1798
|
// src/entities/bank-details.entity.ts
|
|
1762
|
-
var
|
|
1799
|
+
var import_typeorm13 = require("typeorm");
|
|
1763
1800
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
1764
1801
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
1765
1802
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -1774,48 +1811,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
1774
1811
|
};
|
|
1775
1812
|
// individual index to find bank details by user
|
|
1776
1813
|
__decorateClass([
|
|
1777
|
-
(0,
|
|
1778
|
-
(0,
|
|
1814
|
+
(0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1815
|
+
(0, import_typeorm13.Index)()
|
|
1779
1816
|
], BankDetail.prototype, "userId", 2);
|
|
1780
1817
|
__decorateClass([
|
|
1781
|
-
(0,
|
|
1782
|
-
(0,
|
|
1818
|
+
(0, import_typeorm13.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
1819
|
+
(0, import_typeorm13.JoinColumn)({ name: "user_id" })
|
|
1783
1820
|
], BankDetail.prototype, "user", 2);
|
|
1784
1821
|
__decorateClass([
|
|
1785
|
-
(0,
|
|
1822
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1786
1823
|
], BankDetail.prototype, "name", 2);
|
|
1787
1824
|
__decorateClass([
|
|
1788
|
-
(0,
|
|
1825
|
+
(0, import_typeorm13.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1789
1826
|
], BankDetail.prototype, "mobile", 2);
|
|
1790
1827
|
__decorateClass([
|
|
1791
|
-
(0,
|
|
1828
|
+
(0, import_typeorm13.Column)({ name: "email", type: "varchar", unique: true })
|
|
1792
1829
|
], BankDetail.prototype, "email", 2);
|
|
1793
1830
|
__decorateClass([
|
|
1794
|
-
(0,
|
|
1831
|
+
(0, import_typeorm13.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1795
1832
|
], BankDetail.prototype, "address", 2);
|
|
1796
1833
|
__decorateClass([
|
|
1797
|
-
(0,
|
|
1834
|
+
(0, import_typeorm13.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
1798
1835
|
], BankDetail.prototype, "accountNumber", 2);
|
|
1799
1836
|
__decorateClass([
|
|
1800
|
-
(0,
|
|
1837
|
+
(0, import_typeorm13.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
1801
1838
|
], BankDetail.prototype, "bankName", 2);
|
|
1802
1839
|
__decorateClass([
|
|
1803
|
-
(0,
|
|
1840
|
+
(0, import_typeorm13.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
1804
1841
|
], BankDetail.prototype, "ifscCode", 2);
|
|
1805
1842
|
__decorateClass([
|
|
1806
|
-
(0,
|
|
1843
|
+
(0, import_typeorm13.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
1807
1844
|
], BankDetail.prototype, "branchName", 2);
|
|
1808
1845
|
__decorateClass([
|
|
1809
|
-
(0,
|
|
1846
|
+
(0, import_typeorm13.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
1810
1847
|
], BankDetail.prototype, "routingNo", 2);
|
|
1811
1848
|
__decorateClass([
|
|
1812
|
-
(0,
|
|
1849
|
+
(0, import_typeorm13.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
1813
1850
|
], BankDetail.prototype, "abaNumber", 2);
|
|
1814
1851
|
__decorateClass([
|
|
1815
|
-
(0,
|
|
1852
|
+
(0, import_typeorm13.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
1816
1853
|
], BankDetail.prototype, "iban", 2);
|
|
1817
1854
|
__decorateClass([
|
|
1818
|
-
(0,
|
|
1855
|
+
(0, import_typeorm13.Column)({
|
|
1819
1856
|
name: "account_type",
|
|
1820
1857
|
type: "enum",
|
|
1821
1858
|
enum: BankAccountTypeEnum,
|
|
@@ -1823,7 +1860,7 @@ __decorateClass([
|
|
|
1823
1860
|
})
|
|
1824
1861
|
], BankDetail.prototype, "accountType", 2);
|
|
1825
1862
|
__decorateClass([
|
|
1826
|
-
(0,
|
|
1863
|
+
(0, import_typeorm13.Column)({
|
|
1827
1864
|
name: "account_scope",
|
|
1828
1865
|
type: "enum",
|
|
1829
1866
|
enum: BankAccountScopeEnum,
|
|
@@ -1831,115 +1868,115 @@ __decorateClass([
|
|
|
1831
1868
|
})
|
|
1832
1869
|
], BankDetail.prototype, "accountScope", 2);
|
|
1833
1870
|
BankDetail = __decorateClass([
|
|
1834
|
-
(0,
|
|
1871
|
+
(0, import_typeorm13.Entity)("bank_details")
|
|
1835
1872
|
], BankDetail);
|
|
1836
1873
|
|
|
1837
1874
|
// src/entities/system-preference.entity.ts
|
|
1838
|
-
var
|
|
1875
|
+
var import_typeorm14 = require("typeorm");
|
|
1839
1876
|
var SystemPreference = class extends BaseEntity {
|
|
1840
1877
|
};
|
|
1841
1878
|
// individual index to find system preference by user
|
|
1842
1879
|
__decorateClass([
|
|
1843
|
-
(0,
|
|
1844
|
-
(0,
|
|
1880
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1881
|
+
(0, import_typeorm14.Index)()
|
|
1845
1882
|
], SystemPreference.prototype, "userId", 2);
|
|
1846
1883
|
__decorateClass([
|
|
1847
|
-
(0,
|
|
1848
|
-
(0,
|
|
1884
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
1885
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
1849
1886
|
], SystemPreference.prototype, "user", 2);
|
|
1850
1887
|
__decorateClass([
|
|
1851
|
-
(0,
|
|
1888
|
+
(0, import_typeorm14.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1852
1889
|
], SystemPreference.prototype, "key", 2);
|
|
1853
1890
|
__decorateClass([
|
|
1854
|
-
(0,
|
|
1891
|
+
(0, import_typeorm14.Column)({ name: "value", type: "boolean", default: false })
|
|
1855
1892
|
], SystemPreference.prototype, "value", 2);
|
|
1856
1893
|
SystemPreference = __decorateClass([
|
|
1857
|
-
(0,
|
|
1894
|
+
(0, import_typeorm14.Entity)("system_preferences")
|
|
1858
1895
|
], SystemPreference);
|
|
1859
1896
|
|
|
1860
1897
|
// src/entities/company-role.entity.ts
|
|
1861
|
-
var
|
|
1898
|
+
var import_typeorm15 = require("typeorm");
|
|
1862
1899
|
var CompanyRole = class extends BaseEntity {
|
|
1863
1900
|
};
|
|
1864
1901
|
// individual index to find company roles by user
|
|
1865
1902
|
__decorateClass([
|
|
1866
|
-
(0,
|
|
1867
|
-
(0,
|
|
1903
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1904
|
+
(0, import_typeorm15.Index)()
|
|
1868
1905
|
], CompanyRole.prototype, "userId", 2);
|
|
1869
1906
|
__decorateClass([
|
|
1870
|
-
(0,
|
|
1871
|
-
(0,
|
|
1907
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.companyRole),
|
|
1908
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
1872
1909
|
], CompanyRole.prototype, "user", 2);
|
|
1873
1910
|
__decorateClass([
|
|
1874
|
-
(0,
|
|
1911
|
+
(0, import_typeorm15.Column)({ name: "name", type: "varchar" })
|
|
1875
1912
|
], CompanyRole.prototype, "name", 2);
|
|
1876
1913
|
__decorateClass([
|
|
1877
|
-
(0,
|
|
1878
|
-
(0,
|
|
1914
|
+
(0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1915
|
+
(0, import_typeorm15.Index)()
|
|
1879
1916
|
], CompanyRole.prototype, "slug", 2);
|
|
1880
1917
|
__decorateClass([
|
|
1881
|
-
(0,
|
|
1918
|
+
(0, import_typeorm15.Column)({ name: "description", type: "text", nullable: true })
|
|
1882
1919
|
], CompanyRole.prototype, "description", 2);
|
|
1883
1920
|
__decorateClass([
|
|
1884
|
-
(0,
|
|
1921
|
+
(0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1885
1922
|
], CompanyRole.prototype, "isActive", 2);
|
|
1886
1923
|
CompanyRole = __decorateClass([
|
|
1887
|
-
(0,
|
|
1924
|
+
(0, import_typeorm15.Entity)("company_roles")
|
|
1888
1925
|
], CompanyRole);
|
|
1889
1926
|
|
|
1890
1927
|
// src/entities/freelancer-experience.entity.ts
|
|
1891
|
-
var
|
|
1928
|
+
var import_typeorm16 = require("typeorm");
|
|
1892
1929
|
var FreelancerExperience = class extends BaseEntity {
|
|
1893
1930
|
};
|
|
1894
1931
|
// individual index to find experence by user
|
|
1895
1932
|
__decorateClass([
|
|
1896
|
-
(0,
|
|
1897
|
-
(0,
|
|
1933
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1934
|
+
(0, import_typeorm16.Index)()
|
|
1898
1935
|
], FreelancerExperience.prototype, "userId", 2);
|
|
1899
1936
|
__decorateClass([
|
|
1900
|
-
(0,
|
|
1901
|
-
(0,
|
|
1937
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
1938
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
1902
1939
|
], FreelancerExperience.prototype, "user", 2);
|
|
1903
1940
|
__decorateClass([
|
|
1904
|
-
(0,
|
|
1941
|
+
(0, import_typeorm16.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1905
1942
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
1906
1943
|
__decorateClass([
|
|
1907
|
-
(0,
|
|
1944
|
+
(0, import_typeorm16.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
1908
1945
|
], FreelancerExperience.prototype, "designation", 2);
|
|
1909
1946
|
__decorateClass([
|
|
1910
|
-
(0,
|
|
1947
|
+
(0, import_typeorm16.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
1911
1948
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
1912
1949
|
__decorateClass([
|
|
1913
|
-
(0,
|
|
1950
|
+
(0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1914
1951
|
], FreelancerExperience.prototype, "description", 2);
|
|
1915
1952
|
FreelancerExperience = __decorateClass([
|
|
1916
|
-
(0,
|
|
1953
|
+
(0, import_typeorm16.Entity)("freelancer_experiences")
|
|
1917
1954
|
], FreelancerExperience);
|
|
1918
1955
|
|
|
1919
1956
|
// src/entities/freelancer-education.entity.ts
|
|
1920
|
-
var
|
|
1957
|
+
var import_typeorm17 = require("typeorm");
|
|
1921
1958
|
var FreelancerEducation = class extends BaseEntity {
|
|
1922
1959
|
};
|
|
1923
1960
|
// individual index to find education by user
|
|
1924
1961
|
__decorateClass([
|
|
1925
|
-
(0,
|
|
1926
|
-
(0,
|
|
1962
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1963
|
+
(0, import_typeorm17.Index)()
|
|
1927
1964
|
], FreelancerEducation.prototype, "userId", 2);
|
|
1928
1965
|
__decorateClass([
|
|
1929
|
-
(0,
|
|
1930
|
-
(0,
|
|
1966
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
1967
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
1931
1968
|
], FreelancerEducation.prototype, "user", 2);
|
|
1932
1969
|
__decorateClass([
|
|
1933
|
-
(0,
|
|
1970
|
+
(0, import_typeorm17.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
1934
1971
|
], FreelancerEducation.prototype, "degree", 2);
|
|
1935
1972
|
__decorateClass([
|
|
1936
|
-
(0,
|
|
1973
|
+
(0, import_typeorm17.Column)({ name: "university", type: "varchar", nullable: true })
|
|
1937
1974
|
], FreelancerEducation.prototype, "university", 2);
|
|
1938
1975
|
__decorateClass([
|
|
1939
|
-
(0,
|
|
1976
|
+
(0, import_typeorm17.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
1940
1977
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
1941
1978
|
FreelancerEducation = __decorateClass([
|
|
1942
|
-
(0,
|
|
1979
|
+
(0, import_typeorm17.Entity)("freelancer_educations")
|
|
1943
1980
|
], FreelancerEducation);
|
|
1944
1981
|
|
|
1945
1982
|
// src/entities/user.entity.ts
|
|
@@ -1966,51 +2003,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1966
2003
|
var User = class extends BaseEntity {
|
|
1967
2004
|
};
|
|
1968
2005
|
__decorateClass([
|
|
1969
|
-
(0,
|
|
2006
|
+
(0, import_typeorm18.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1970
2007
|
], User.prototype, "uniqueId", 2);
|
|
1971
2008
|
__decorateClass([
|
|
1972
|
-
(0,
|
|
1973
|
-
(0,
|
|
2009
|
+
(0, import_typeorm18.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2010
|
+
(0, import_typeorm18.Index)()
|
|
1974
2011
|
], User.prototype, "parentId", 2);
|
|
1975
2012
|
__decorateClass([
|
|
1976
|
-
(0,
|
|
1977
|
-
(0,
|
|
2013
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2014
|
+
(0, import_typeorm18.JoinColumn)({ name: "parent_id" })
|
|
1978
2015
|
], User.prototype, "parent", 2);
|
|
1979
2016
|
__decorateClass([
|
|
1980
|
-
(0,
|
|
2017
|
+
(0, import_typeorm18.OneToMany)(() => User, (user) => user.parent)
|
|
1981
2018
|
], User.prototype, "children", 2);
|
|
1982
2019
|
__decorateClass([
|
|
1983
|
-
(0,
|
|
2020
|
+
(0, import_typeorm18.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1984
2021
|
], User.prototype, "username", 2);
|
|
1985
2022
|
__decorateClass([
|
|
1986
|
-
(0,
|
|
2023
|
+
(0, import_typeorm18.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1987
2024
|
], User.prototype, "firstName", 2);
|
|
1988
2025
|
__decorateClass([
|
|
1989
|
-
(0,
|
|
2026
|
+
(0, import_typeorm18.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1990
2027
|
], User.prototype, "lastName", 2);
|
|
1991
2028
|
__decorateClass([
|
|
1992
|
-
(0,
|
|
2029
|
+
(0, import_typeorm18.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1993
2030
|
], User.prototype, "dateOfBirth", 2);
|
|
1994
2031
|
__decorateClass([
|
|
1995
|
-
(0,
|
|
2032
|
+
(0, import_typeorm18.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1996
2033
|
], User.prototype, "gender", 2);
|
|
1997
2034
|
__decorateClass([
|
|
1998
|
-
(0,
|
|
2035
|
+
(0, import_typeorm18.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1999
2036
|
], User.prototype, "profilePictureUrl", 2);
|
|
2000
2037
|
__decorateClass([
|
|
2001
|
-
(0,
|
|
2038
|
+
(0, import_typeorm18.Column)({ name: "email", type: "varchar", unique: true })
|
|
2002
2039
|
], User.prototype, "email", 2);
|
|
2003
2040
|
__decorateClass([
|
|
2004
|
-
(0,
|
|
2041
|
+
(0, import_typeorm18.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2005
2042
|
], User.prototype, "mobileCode", 2);
|
|
2006
2043
|
__decorateClass([
|
|
2007
|
-
(0,
|
|
2044
|
+
(0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2008
2045
|
], User.prototype, "mobile", 2);
|
|
2009
2046
|
__decorateClass([
|
|
2010
|
-
(0,
|
|
2047
|
+
(0, import_typeorm18.Column)({ name: "password", type: "varchar" })
|
|
2011
2048
|
], User.prototype, "password", 2);
|
|
2012
2049
|
__decorateClass([
|
|
2013
|
-
(0,
|
|
2050
|
+
(0, import_typeorm18.Column)({
|
|
2014
2051
|
name: "account_type",
|
|
2015
2052
|
type: "enum",
|
|
2016
2053
|
enum: AccountType,
|
|
@@ -2018,7 +2055,7 @@ __decorateClass([
|
|
|
2018
2055
|
})
|
|
2019
2056
|
], User.prototype, "accountType", 2);
|
|
2020
2057
|
__decorateClass([
|
|
2021
|
-
(0,
|
|
2058
|
+
(0, import_typeorm18.Column)({
|
|
2022
2059
|
name: "account_status",
|
|
2023
2060
|
type: "enum",
|
|
2024
2061
|
enum: AccountStatus,
|
|
@@ -2026,36 +2063,36 @@ __decorateClass([
|
|
|
2026
2063
|
})
|
|
2027
2064
|
], User.prototype, "accountStatus", 2);
|
|
2028
2065
|
__decorateClass([
|
|
2029
|
-
(0,
|
|
2066
|
+
(0, import_typeorm18.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2030
2067
|
], User.prototype, "isEmailVerified", 2);
|
|
2031
2068
|
__decorateClass([
|
|
2032
|
-
(0,
|
|
2069
|
+
(0, import_typeorm18.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2033
2070
|
], User.prototype, "isMobileVerified", 2);
|
|
2034
2071
|
__decorateClass([
|
|
2035
|
-
(0,
|
|
2072
|
+
(0, import_typeorm18.Column)({
|
|
2036
2073
|
name: "last_login_at",
|
|
2037
2074
|
type: "timestamp with time zone",
|
|
2038
2075
|
nullable: true
|
|
2039
2076
|
})
|
|
2040
2077
|
], User.prototype, "lastLoginAt", 2);
|
|
2041
2078
|
__decorateClass([
|
|
2042
|
-
(0,
|
|
2079
|
+
(0, import_typeorm18.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2043
2080
|
], User.prototype, "lastLoginIp", 2);
|
|
2044
2081
|
__decorateClass([
|
|
2045
|
-
(0,
|
|
2082
|
+
(0, import_typeorm18.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2046
2083
|
], User.prototype, "resetToken", 2);
|
|
2047
2084
|
__decorateClass([
|
|
2048
|
-
(0,
|
|
2085
|
+
(0, import_typeorm18.Column)({
|
|
2049
2086
|
name: "reset_token_expire_at",
|
|
2050
2087
|
type: "timestamp with time zone",
|
|
2051
2088
|
nullable: true
|
|
2052
2089
|
})
|
|
2053
2090
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2054
2091
|
__decorateClass([
|
|
2055
|
-
(0,
|
|
2092
|
+
(0, import_typeorm18.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2056
2093
|
], User.prototype, "refreshTokens", 2);
|
|
2057
2094
|
__decorateClass([
|
|
2058
|
-
(0,
|
|
2095
|
+
(0, import_typeorm18.Column)({
|
|
2059
2096
|
name: "provider",
|
|
2060
2097
|
type: "enum",
|
|
2061
2098
|
enum: Provider,
|
|
@@ -2064,67 +2101,67 @@ __decorateClass([
|
|
|
2064
2101
|
})
|
|
2065
2102
|
], User.prototype, "provider", 2);
|
|
2066
2103
|
__decorateClass([
|
|
2067
|
-
(0,
|
|
2104
|
+
(0, import_typeorm18.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2068
2105
|
], User.prototype, "providerToken", 2);
|
|
2069
2106
|
__decorateClass([
|
|
2070
|
-
(0,
|
|
2107
|
+
(0, import_typeorm18.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2071
2108
|
], User.prototype, "linkedInId", 2);
|
|
2072
2109
|
__decorateClass([
|
|
2073
|
-
(0,
|
|
2110
|
+
(0, import_typeorm18.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2074
2111
|
], User.prototype, "googleId", 2);
|
|
2075
2112
|
__decorateClass([
|
|
2076
|
-
(0,
|
|
2113
|
+
(0, import_typeorm18.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2077
2114
|
], User.prototype, "gitLabsId", 2);
|
|
2078
2115
|
__decorateClass([
|
|
2079
|
-
(0,
|
|
2116
|
+
(0, import_typeorm18.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2080
2117
|
], User.prototype, "otps", 2);
|
|
2081
2118
|
__decorateClass([
|
|
2082
|
-
(0,
|
|
2119
|
+
(0, import_typeorm18.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2083
2120
|
], User.prototype, "senseloafLogs", 2);
|
|
2084
2121
|
__decorateClass([
|
|
2085
|
-
(0,
|
|
2122
|
+
(0, import_typeorm18.OneToOne)(
|
|
2086
2123
|
() => FreelancerProfile,
|
|
2087
2124
|
(freelancerProfile) => freelancerProfile.user
|
|
2088
2125
|
)
|
|
2089
2126
|
], User.prototype, "freelancerProfile", 2);
|
|
2090
2127
|
__decorateClass([
|
|
2091
|
-
(0,
|
|
2128
|
+
(0, import_typeorm18.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2092
2129
|
], User.prototype, "companyProfile", 2);
|
|
2093
2130
|
__decorateClass([
|
|
2094
|
-
(0,
|
|
2131
|
+
(0, import_typeorm18.OneToMany)(() => Job, (job) => job.user)
|
|
2095
2132
|
], User.prototype, "jobs", 2);
|
|
2096
2133
|
__decorateClass([
|
|
2097
|
-
(0,
|
|
2134
|
+
(0, import_typeorm18.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2098
2135
|
], User.prototype, "interviews", 2);
|
|
2099
2136
|
__decorateClass([
|
|
2100
|
-
(0,
|
|
2137
|
+
(0, import_typeorm18.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2101
2138
|
], User.prototype, "bankDetail", 2);
|
|
2102
2139
|
__decorateClass([
|
|
2103
|
-
(0,
|
|
2140
|
+
(0, import_typeorm18.OneToMany)(
|
|
2104
2141
|
() => SystemPreference,
|
|
2105
2142
|
(systemPreference) => systemPreference.user
|
|
2106
2143
|
)
|
|
2107
2144
|
], User.prototype, "systemPreference", 2);
|
|
2108
2145
|
__decorateClass([
|
|
2109
|
-
(0,
|
|
2146
|
+
(0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2110
2147
|
], User.prototype, "givenRatings", 2);
|
|
2111
2148
|
__decorateClass([
|
|
2112
|
-
(0,
|
|
2149
|
+
(0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2113
2150
|
], User.prototype, "receivedRatings", 2);
|
|
2114
2151
|
__decorateClass([
|
|
2115
|
-
(0,
|
|
2152
|
+
(0, import_typeorm18.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2116
2153
|
], User.prototype, "jobApplications", 2);
|
|
2117
2154
|
__decorateClass([
|
|
2118
|
-
(0,
|
|
2155
|
+
(0, import_typeorm18.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2119
2156
|
], User.prototype, "companyRole", 2);
|
|
2120
2157
|
__decorateClass([
|
|
2121
|
-
(0,
|
|
2158
|
+
(0, import_typeorm18.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2122
2159
|
], User.prototype, "freelancerExperience", 2);
|
|
2123
2160
|
__decorateClass([
|
|
2124
|
-
(0,
|
|
2161
|
+
(0, import_typeorm18.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2125
2162
|
], User.prototype, "freelancerEducation", 2);
|
|
2126
2163
|
User = __decorateClass([
|
|
2127
|
-
(0,
|
|
2164
|
+
(0, import_typeorm18.Entity)("users")
|
|
2128
2165
|
], User);
|
|
2129
2166
|
|
|
2130
2167
|
// src/entities/rating.entity.ts
|
|
@@ -2136,36 +2173,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2136
2173
|
var Rating = class extends BaseEntity {
|
|
2137
2174
|
};
|
|
2138
2175
|
__decorateClass([
|
|
2139
|
-
(0,
|
|
2140
|
-
(0,
|
|
2176
|
+
(0, import_typeorm19.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2177
|
+
(0, import_typeorm19.Index)()
|
|
2141
2178
|
], Rating.prototype, "reviewer_id", 2);
|
|
2142
2179
|
__decorateClass([
|
|
2143
|
-
(0,
|
|
2144
|
-
(0,
|
|
2180
|
+
(0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2181
|
+
(0, import_typeorm19.JoinColumn)({ name: "reviewer_id" })
|
|
2145
2182
|
], Rating.prototype, "reviewer", 2);
|
|
2146
2183
|
__decorateClass([
|
|
2147
|
-
(0,
|
|
2148
|
-
(0,
|
|
2184
|
+
(0, import_typeorm19.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2185
|
+
(0, import_typeorm19.Index)()
|
|
2149
2186
|
], Rating.prototype, "reviewee_id", 2);
|
|
2150
2187
|
__decorateClass([
|
|
2151
|
-
(0,
|
|
2152
|
-
(0,
|
|
2188
|
+
(0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2189
|
+
(0, import_typeorm19.JoinColumn)({ name: "reviewee_id" })
|
|
2153
2190
|
], Rating.prototype, "reviewee", 2);
|
|
2154
2191
|
__decorateClass([
|
|
2155
|
-
(0,
|
|
2192
|
+
(0, import_typeorm19.Column)({
|
|
2156
2193
|
type: "enum",
|
|
2157
2194
|
enum: RatingTypeEnum,
|
|
2158
2195
|
nullable: true
|
|
2159
2196
|
})
|
|
2160
2197
|
], Rating.prototype, "ratingType", 2);
|
|
2161
2198
|
__decorateClass([
|
|
2162
|
-
(0,
|
|
2199
|
+
(0, import_typeorm19.Column)({ type: "integer", nullable: true })
|
|
2163
2200
|
], Rating.prototype, "rating", 2);
|
|
2164
2201
|
__decorateClass([
|
|
2165
|
-
(0,
|
|
2202
|
+
(0, import_typeorm19.Column)({ type: "text", nullable: true })
|
|
2166
2203
|
], Rating.prototype, "review", 2);
|
|
2167
2204
|
Rating = __decorateClass([
|
|
2168
|
-
(0,
|
|
2205
|
+
(0, import_typeorm19.Entity)("ratings")
|
|
2169
2206
|
], Rating);
|
|
2170
2207
|
|
|
2171
2208
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2631,7 +2668,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2631
2668
|
};
|
|
2632
2669
|
|
|
2633
2670
|
// src/entities/question.entity.ts
|
|
2634
|
-
var
|
|
2671
|
+
var import_typeorm20 = require("typeorm");
|
|
2635
2672
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2636
2673
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2637
2674
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2640,16 +2677,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2640
2677
|
var Question = class extends BaseEntity {
|
|
2641
2678
|
};
|
|
2642
2679
|
__decorateClass([
|
|
2643
|
-
(0,
|
|
2680
|
+
(0, import_typeorm20.Column)({ name: "question", type: "varchar" })
|
|
2644
2681
|
], Question.prototype, "question", 2);
|
|
2645
2682
|
__decorateClass([
|
|
2646
|
-
(0,
|
|
2683
|
+
(0, import_typeorm20.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2647
2684
|
], Question.prototype, "hint", 2);
|
|
2648
2685
|
__decorateClass([
|
|
2649
|
-
(0,
|
|
2686
|
+
(0, import_typeorm20.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2650
2687
|
], Question.prototype, "slug", 2);
|
|
2651
2688
|
__decorateClass([
|
|
2652
|
-
(0,
|
|
2689
|
+
(0, import_typeorm20.Column)({
|
|
2653
2690
|
name: "question_for",
|
|
2654
2691
|
type: "enum",
|
|
2655
2692
|
enum: QuestionFor,
|
|
@@ -2657,76 +2694,76 @@ __decorateClass([
|
|
|
2657
2694
|
})
|
|
2658
2695
|
], Question.prototype, "questionFor", 2);
|
|
2659
2696
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2697
|
+
(0, import_typeorm20.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2661
2698
|
], Question.prototype, "type", 2);
|
|
2662
2699
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2700
|
+
(0, import_typeorm20.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2664
2701
|
], Question.prototype, "options", 2);
|
|
2665
2702
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2703
|
+
(0, import_typeorm20.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2667
2704
|
], Question.prototype, "isActive", 2);
|
|
2668
2705
|
Question = __decorateClass([
|
|
2669
|
-
(0,
|
|
2706
|
+
(0, import_typeorm20.Entity)("questions")
|
|
2670
2707
|
], Question);
|
|
2671
2708
|
|
|
2672
2709
|
// src/entities/job-role.entity.ts
|
|
2673
|
-
var
|
|
2710
|
+
var import_typeorm21 = require("typeorm");
|
|
2674
2711
|
var JobRoles = class extends BaseEntity {
|
|
2675
2712
|
};
|
|
2676
2713
|
__decorateClass([
|
|
2677
|
-
(0,
|
|
2714
|
+
(0, import_typeorm21.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2678
2715
|
], JobRoles.prototype, "slug", 2);
|
|
2679
2716
|
__decorateClass([
|
|
2680
|
-
(0,
|
|
2717
|
+
(0, import_typeorm21.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2681
2718
|
], JobRoles.prototype, "name", 2);
|
|
2682
2719
|
__decorateClass([
|
|
2683
|
-
(0,
|
|
2720
|
+
(0, import_typeorm21.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2684
2721
|
], JobRoles.prototype, "isActive", 2);
|
|
2685
2722
|
JobRoles = __decorateClass([
|
|
2686
|
-
(0,
|
|
2723
|
+
(0, import_typeorm21.Entity)("job_roles")
|
|
2687
2724
|
], JobRoles);
|
|
2688
2725
|
|
|
2689
2726
|
// src/entities/plan.entity.ts
|
|
2690
|
-
var
|
|
2727
|
+
var import_typeorm23 = require("typeorm");
|
|
2691
2728
|
|
|
2692
2729
|
// src/entities/feature.entity.ts
|
|
2693
|
-
var
|
|
2730
|
+
var import_typeorm22 = require("typeorm");
|
|
2694
2731
|
var Feature = class extends BaseEntity {
|
|
2695
2732
|
};
|
|
2696
2733
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2734
|
+
(0, import_typeorm22.Column)({ name: "name", type: "varchar", unique: true })
|
|
2698
2735
|
], Feature.prototype, "name", 2);
|
|
2699
2736
|
__decorateClass([
|
|
2700
|
-
(0,
|
|
2737
|
+
(0, import_typeorm22.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2701
2738
|
], Feature.prototype, "plans", 2);
|
|
2702
2739
|
Feature = __decorateClass([
|
|
2703
|
-
(0,
|
|
2740
|
+
(0, import_typeorm22.Entity)("features")
|
|
2704
2741
|
], Feature);
|
|
2705
2742
|
|
|
2706
2743
|
// src/entities/plan.entity.ts
|
|
2707
2744
|
var Plan = class extends BaseEntity {
|
|
2708
2745
|
};
|
|
2709
2746
|
__decorateClass([
|
|
2710
|
-
(0,
|
|
2747
|
+
(0, import_typeorm23.Column)({ name: "name", type: "varchar", unique: true })
|
|
2711
2748
|
], Plan.prototype, "name", 2);
|
|
2712
2749
|
__decorateClass([
|
|
2713
|
-
(0,
|
|
2750
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2714
2751
|
], Plan.prototype, "description", 2);
|
|
2715
2752
|
__decorateClass([
|
|
2716
|
-
(0,
|
|
2753
|
+
(0, import_typeorm23.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2717
2754
|
], Plan.prototype, "price", 2);
|
|
2718
2755
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2756
|
+
(0, import_typeorm23.Column)({ name: "billing_period", type: "varchar" })
|
|
2720
2757
|
], Plan.prototype, "billingPeriod", 2);
|
|
2721
2758
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2759
|
+
(0, import_typeorm23.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2723
2760
|
], Plan.prototype, "isCurrent", 2);
|
|
2724
2761
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2726
|
-
(0,
|
|
2762
|
+
(0, import_typeorm23.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2763
|
+
(0, import_typeorm23.JoinTable)()
|
|
2727
2764
|
], Plan.prototype, "features", 2);
|
|
2728
2765
|
Plan = __decorateClass([
|
|
2729
|
-
(0,
|
|
2766
|
+
(0, import_typeorm23.Entity)("plans")
|
|
2730
2767
|
], Plan);
|
|
2731
2768
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2732
2769
|
0 && (module.exports = {
|
|
@@ -2775,6 +2812,7 @@ Plan = __decorateClass([
|
|
|
2775
2812
|
FreelancerWorkShowcaseDto,
|
|
2776
2813
|
FromUsOn,
|
|
2777
2814
|
Interview,
|
|
2815
|
+
InterviewSkill,
|
|
2778
2816
|
InterviewStatusEnum,
|
|
2779
2817
|
JOB_PATTERN,
|
|
2780
2818
|
JOB_ROLE_PATTERN,
|