@experts_hub/shared 1.0.142 → 1.0.144
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/entities/user.entity.d.ts +4 -1
- package/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +232 -186
- package/dist/index.mjs +252 -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
|
|
@@ -1948,6 +1985,7 @@ var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
|
1948
1985
|
AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
1949
1986
|
AccountType2["CLIENT"] = "CLIENT";
|
|
1950
1987
|
AccountType2["FREELANCER"] = "FREELANCER";
|
|
1988
|
+
AccountType2["CLIENT_EMPLOYEE"] = "CLIENT_EMPLOYEE";
|
|
1951
1989
|
return AccountType2;
|
|
1952
1990
|
})(AccountType || {});
|
|
1953
1991
|
var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
@@ -1966,51 +2004,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1966
2004
|
var User = class extends BaseEntity {
|
|
1967
2005
|
};
|
|
1968
2006
|
__decorateClass([
|
|
1969
|
-
(0,
|
|
2007
|
+
(0, import_typeorm18.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1970
2008
|
], User.prototype, "uniqueId", 2);
|
|
1971
2009
|
__decorateClass([
|
|
1972
|
-
(0,
|
|
1973
|
-
(0,
|
|
2010
|
+
(0, import_typeorm18.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2011
|
+
(0, import_typeorm18.Index)()
|
|
1974
2012
|
], User.prototype, "parentId", 2);
|
|
1975
2013
|
__decorateClass([
|
|
1976
|
-
(0,
|
|
1977
|
-
(0,
|
|
2014
|
+
(0, import_typeorm18.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2015
|
+
(0, import_typeorm18.Index)()
|
|
2016
|
+
], User.prototype, "companyRoleId", 2);
|
|
2017
|
+
__decorateClass([
|
|
2018
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2019
|
+
(0, import_typeorm18.JoinColumn)({ name: "parent_id" })
|
|
1978
2020
|
], User.prototype, "parent", 2);
|
|
1979
2021
|
__decorateClass([
|
|
1980
|
-
(0,
|
|
2022
|
+
(0, import_typeorm18.OneToMany)(() => User, (user) => user.parent)
|
|
1981
2023
|
], User.prototype, "children", 2);
|
|
1982
2024
|
__decorateClass([
|
|
1983
|
-
(0,
|
|
2025
|
+
(0, import_typeorm18.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1984
2026
|
], User.prototype, "username", 2);
|
|
1985
2027
|
__decorateClass([
|
|
1986
|
-
(0,
|
|
2028
|
+
(0, import_typeorm18.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1987
2029
|
], User.prototype, "firstName", 2);
|
|
1988
2030
|
__decorateClass([
|
|
1989
|
-
(0,
|
|
2031
|
+
(0, import_typeorm18.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1990
2032
|
], User.prototype, "lastName", 2);
|
|
1991
2033
|
__decorateClass([
|
|
1992
|
-
(0,
|
|
2034
|
+
(0, import_typeorm18.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1993
2035
|
], User.prototype, "dateOfBirth", 2);
|
|
1994
2036
|
__decorateClass([
|
|
1995
|
-
(0,
|
|
2037
|
+
(0, import_typeorm18.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1996
2038
|
], User.prototype, "gender", 2);
|
|
1997
2039
|
__decorateClass([
|
|
1998
|
-
(0,
|
|
2040
|
+
(0, import_typeorm18.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1999
2041
|
], User.prototype, "profilePictureUrl", 2);
|
|
2000
2042
|
__decorateClass([
|
|
2001
|
-
(0,
|
|
2043
|
+
(0, import_typeorm18.Column)({ name: "email", type: "varchar", unique: true })
|
|
2002
2044
|
], User.prototype, "email", 2);
|
|
2003
2045
|
__decorateClass([
|
|
2004
|
-
(0,
|
|
2046
|
+
(0, import_typeorm18.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2005
2047
|
], User.prototype, "mobileCode", 2);
|
|
2006
2048
|
__decorateClass([
|
|
2007
|
-
(0,
|
|
2049
|
+
(0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2008
2050
|
], User.prototype, "mobile", 2);
|
|
2009
2051
|
__decorateClass([
|
|
2010
|
-
(0,
|
|
2052
|
+
(0, import_typeorm18.Column)({ name: "password", type: "varchar" })
|
|
2011
2053
|
], User.prototype, "password", 2);
|
|
2012
2054
|
__decorateClass([
|
|
2013
|
-
(0,
|
|
2055
|
+
(0, import_typeorm18.Column)({
|
|
2014
2056
|
name: "account_type",
|
|
2015
2057
|
type: "enum",
|
|
2016
2058
|
enum: AccountType,
|
|
@@ -2018,7 +2060,7 @@ __decorateClass([
|
|
|
2018
2060
|
})
|
|
2019
2061
|
], User.prototype, "accountType", 2);
|
|
2020
2062
|
__decorateClass([
|
|
2021
|
-
(0,
|
|
2063
|
+
(0, import_typeorm18.Column)({
|
|
2022
2064
|
name: "account_status",
|
|
2023
2065
|
type: "enum",
|
|
2024
2066
|
enum: AccountStatus,
|
|
@@ -2026,36 +2068,39 @@ __decorateClass([
|
|
|
2026
2068
|
})
|
|
2027
2069
|
], User.prototype, "accountStatus", 2);
|
|
2028
2070
|
__decorateClass([
|
|
2029
|
-
(0,
|
|
2071
|
+
(0, import_typeorm18.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2030
2072
|
], User.prototype, "isEmailVerified", 2);
|
|
2031
2073
|
__decorateClass([
|
|
2032
|
-
(0,
|
|
2074
|
+
(0, import_typeorm18.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2033
2075
|
], User.prototype, "isMobileVerified", 2);
|
|
2034
2076
|
__decorateClass([
|
|
2035
|
-
(0,
|
|
2077
|
+
(0, import_typeorm18.Column)({ name: "is_password_set_by_user", type: "boolean", default: false })
|
|
2078
|
+
], User.prototype, "isPasswordSetByUser", 2);
|
|
2079
|
+
__decorateClass([
|
|
2080
|
+
(0, import_typeorm18.Column)({
|
|
2036
2081
|
name: "last_login_at",
|
|
2037
2082
|
type: "timestamp with time zone",
|
|
2038
2083
|
nullable: true
|
|
2039
2084
|
})
|
|
2040
2085
|
], User.prototype, "lastLoginAt", 2);
|
|
2041
2086
|
__decorateClass([
|
|
2042
|
-
(0,
|
|
2087
|
+
(0, import_typeorm18.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2043
2088
|
], User.prototype, "lastLoginIp", 2);
|
|
2044
2089
|
__decorateClass([
|
|
2045
|
-
(0,
|
|
2090
|
+
(0, import_typeorm18.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2046
2091
|
], User.prototype, "resetToken", 2);
|
|
2047
2092
|
__decorateClass([
|
|
2048
|
-
(0,
|
|
2093
|
+
(0, import_typeorm18.Column)({
|
|
2049
2094
|
name: "reset_token_expire_at",
|
|
2050
2095
|
type: "timestamp with time zone",
|
|
2051
2096
|
nullable: true
|
|
2052
2097
|
})
|
|
2053
2098
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2054
2099
|
__decorateClass([
|
|
2055
|
-
(0,
|
|
2100
|
+
(0, import_typeorm18.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2056
2101
|
], User.prototype, "refreshTokens", 2);
|
|
2057
2102
|
__decorateClass([
|
|
2058
|
-
(0,
|
|
2103
|
+
(0, import_typeorm18.Column)({
|
|
2059
2104
|
name: "provider",
|
|
2060
2105
|
type: "enum",
|
|
2061
2106
|
enum: Provider,
|
|
@@ -2064,67 +2109,67 @@ __decorateClass([
|
|
|
2064
2109
|
})
|
|
2065
2110
|
], User.prototype, "provider", 2);
|
|
2066
2111
|
__decorateClass([
|
|
2067
|
-
(0,
|
|
2112
|
+
(0, import_typeorm18.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2068
2113
|
], User.prototype, "providerToken", 2);
|
|
2069
2114
|
__decorateClass([
|
|
2070
|
-
(0,
|
|
2115
|
+
(0, import_typeorm18.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2071
2116
|
], User.prototype, "linkedInId", 2);
|
|
2072
2117
|
__decorateClass([
|
|
2073
|
-
(0,
|
|
2118
|
+
(0, import_typeorm18.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2074
2119
|
], User.prototype, "googleId", 2);
|
|
2075
2120
|
__decorateClass([
|
|
2076
|
-
(0,
|
|
2121
|
+
(0, import_typeorm18.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2077
2122
|
], User.prototype, "gitLabsId", 2);
|
|
2078
2123
|
__decorateClass([
|
|
2079
|
-
(0,
|
|
2124
|
+
(0, import_typeorm18.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2080
2125
|
], User.prototype, "otps", 2);
|
|
2081
2126
|
__decorateClass([
|
|
2082
|
-
(0,
|
|
2127
|
+
(0, import_typeorm18.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2083
2128
|
], User.prototype, "senseloafLogs", 2);
|
|
2084
2129
|
__decorateClass([
|
|
2085
|
-
(0,
|
|
2130
|
+
(0, import_typeorm18.OneToOne)(
|
|
2086
2131
|
() => FreelancerProfile,
|
|
2087
2132
|
(freelancerProfile) => freelancerProfile.user
|
|
2088
2133
|
)
|
|
2089
2134
|
], User.prototype, "freelancerProfile", 2);
|
|
2090
2135
|
__decorateClass([
|
|
2091
|
-
(0,
|
|
2136
|
+
(0, import_typeorm18.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2092
2137
|
], User.prototype, "companyProfile", 2);
|
|
2093
2138
|
__decorateClass([
|
|
2094
|
-
(0,
|
|
2139
|
+
(0, import_typeorm18.OneToMany)(() => Job, (job) => job.user)
|
|
2095
2140
|
], User.prototype, "jobs", 2);
|
|
2096
2141
|
__decorateClass([
|
|
2097
|
-
(0,
|
|
2142
|
+
(0, import_typeorm18.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2098
2143
|
], User.prototype, "interviews", 2);
|
|
2099
2144
|
__decorateClass([
|
|
2100
|
-
(0,
|
|
2145
|
+
(0, import_typeorm18.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2101
2146
|
], User.prototype, "bankDetail", 2);
|
|
2102
2147
|
__decorateClass([
|
|
2103
|
-
(0,
|
|
2148
|
+
(0, import_typeorm18.OneToMany)(
|
|
2104
2149
|
() => SystemPreference,
|
|
2105
2150
|
(systemPreference) => systemPreference.user
|
|
2106
2151
|
)
|
|
2107
2152
|
], User.prototype, "systemPreference", 2);
|
|
2108
2153
|
__decorateClass([
|
|
2109
|
-
(0,
|
|
2154
|
+
(0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2110
2155
|
], User.prototype, "givenRatings", 2);
|
|
2111
2156
|
__decorateClass([
|
|
2112
|
-
(0,
|
|
2157
|
+
(0, import_typeorm18.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2113
2158
|
], User.prototype, "receivedRatings", 2);
|
|
2114
2159
|
__decorateClass([
|
|
2115
|
-
(0,
|
|
2160
|
+
(0, import_typeorm18.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2116
2161
|
], User.prototype, "jobApplications", 2);
|
|
2117
2162
|
__decorateClass([
|
|
2118
|
-
(0,
|
|
2163
|
+
(0, import_typeorm18.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2119
2164
|
], User.prototype, "companyRole", 2);
|
|
2120
2165
|
__decorateClass([
|
|
2121
|
-
(0,
|
|
2166
|
+
(0, import_typeorm18.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2122
2167
|
], User.prototype, "freelancerExperience", 2);
|
|
2123
2168
|
__decorateClass([
|
|
2124
|
-
(0,
|
|
2169
|
+
(0, import_typeorm18.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2125
2170
|
], User.prototype, "freelancerEducation", 2);
|
|
2126
2171
|
User = __decorateClass([
|
|
2127
|
-
(0,
|
|
2172
|
+
(0, import_typeorm18.Entity)("users")
|
|
2128
2173
|
], User);
|
|
2129
2174
|
|
|
2130
2175
|
// src/entities/rating.entity.ts
|
|
@@ -2136,36 +2181,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2136
2181
|
var Rating = class extends BaseEntity {
|
|
2137
2182
|
};
|
|
2138
2183
|
__decorateClass([
|
|
2139
|
-
(0,
|
|
2140
|
-
(0,
|
|
2184
|
+
(0, import_typeorm19.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2185
|
+
(0, import_typeorm19.Index)()
|
|
2141
2186
|
], Rating.prototype, "reviewer_id", 2);
|
|
2142
2187
|
__decorateClass([
|
|
2143
|
-
(0,
|
|
2144
|
-
(0,
|
|
2188
|
+
(0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2189
|
+
(0, import_typeorm19.JoinColumn)({ name: "reviewer_id" })
|
|
2145
2190
|
], Rating.prototype, "reviewer", 2);
|
|
2146
2191
|
__decorateClass([
|
|
2147
|
-
(0,
|
|
2148
|
-
(0,
|
|
2192
|
+
(0, import_typeorm19.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2193
|
+
(0, import_typeorm19.Index)()
|
|
2149
2194
|
], Rating.prototype, "reviewee_id", 2);
|
|
2150
2195
|
__decorateClass([
|
|
2151
|
-
(0,
|
|
2152
|
-
(0,
|
|
2196
|
+
(0, import_typeorm19.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2197
|
+
(0, import_typeorm19.JoinColumn)({ name: "reviewee_id" })
|
|
2153
2198
|
], Rating.prototype, "reviewee", 2);
|
|
2154
2199
|
__decorateClass([
|
|
2155
|
-
(0,
|
|
2200
|
+
(0, import_typeorm19.Column)({
|
|
2156
2201
|
type: "enum",
|
|
2157
2202
|
enum: RatingTypeEnum,
|
|
2158
2203
|
nullable: true
|
|
2159
2204
|
})
|
|
2160
2205
|
], Rating.prototype, "ratingType", 2);
|
|
2161
2206
|
__decorateClass([
|
|
2162
|
-
(0,
|
|
2207
|
+
(0, import_typeorm19.Column)({ type: "integer", nullable: true })
|
|
2163
2208
|
], Rating.prototype, "rating", 2);
|
|
2164
2209
|
__decorateClass([
|
|
2165
|
-
(0,
|
|
2210
|
+
(0, import_typeorm19.Column)({ type: "text", nullable: true })
|
|
2166
2211
|
], Rating.prototype, "review", 2);
|
|
2167
2212
|
Rating = __decorateClass([
|
|
2168
|
-
(0,
|
|
2213
|
+
(0, import_typeorm19.Entity)("ratings")
|
|
2169
2214
|
], Rating);
|
|
2170
2215
|
|
|
2171
2216
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2631,7 +2676,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2631
2676
|
};
|
|
2632
2677
|
|
|
2633
2678
|
// src/entities/question.entity.ts
|
|
2634
|
-
var
|
|
2679
|
+
var import_typeorm20 = require("typeorm");
|
|
2635
2680
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2636
2681
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2637
2682
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2640,16 +2685,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2640
2685
|
var Question = class extends BaseEntity {
|
|
2641
2686
|
};
|
|
2642
2687
|
__decorateClass([
|
|
2643
|
-
(0,
|
|
2688
|
+
(0, import_typeorm20.Column)({ name: "question", type: "varchar" })
|
|
2644
2689
|
], Question.prototype, "question", 2);
|
|
2645
2690
|
__decorateClass([
|
|
2646
|
-
(0,
|
|
2691
|
+
(0, import_typeorm20.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2647
2692
|
], Question.prototype, "hint", 2);
|
|
2648
2693
|
__decorateClass([
|
|
2649
|
-
(0,
|
|
2694
|
+
(0, import_typeorm20.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2650
2695
|
], Question.prototype, "slug", 2);
|
|
2651
2696
|
__decorateClass([
|
|
2652
|
-
(0,
|
|
2697
|
+
(0, import_typeorm20.Column)({
|
|
2653
2698
|
name: "question_for",
|
|
2654
2699
|
type: "enum",
|
|
2655
2700
|
enum: QuestionFor,
|
|
@@ -2657,76 +2702,76 @@ __decorateClass([
|
|
|
2657
2702
|
})
|
|
2658
2703
|
], Question.prototype, "questionFor", 2);
|
|
2659
2704
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2705
|
+
(0, import_typeorm20.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2661
2706
|
], Question.prototype, "type", 2);
|
|
2662
2707
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2708
|
+
(0, import_typeorm20.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2664
2709
|
], Question.prototype, "options", 2);
|
|
2665
2710
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2711
|
+
(0, import_typeorm20.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2667
2712
|
], Question.prototype, "isActive", 2);
|
|
2668
2713
|
Question = __decorateClass([
|
|
2669
|
-
(0,
|
|
2714
|
+
(0, import_typeorm20.Entity)("questions")
|
|
2670
2715
|
], Question);
|
|
2671
2716
|
|
|
2672
2717
|
// src/entities/job-role.entity.ts
|
|
2673
|
-
var
|
|
2718
|
+
var import_typeorm21 = require("typeorm");
|
|
2674
2719
|
var JobRoles = class extends BaseEntity {
|
|
2675
2720
|
};
|
|
2676
2721
|
__decorateClass([
|
|
2677
|
-
(0,
|
|
2722
|
+
(0, import_typeorm21.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2678
2723
|
], JobRoles.prototype, "slug", 2);
|
|
2679
2724
|
__decorateClass([
|
|
2680
|
-
(0,
|
|
2725
|
+
(0, import_typeorm21.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2681
2726
|
], JobRoles.prototype, "name", 2);
|
|
2682
2727
|
__decorateClass([
|
|
2683
|
-
(0,
|
|
2728
|
+
(0, import_typeorm21.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2684
2729
|
], JobRoles.prototype, "isActive", 2);
|
|
2685
2730
|
JobRoles = __decorateClass([
|
|
2686
|
-
(0,
|
|
2731
|
+
(0, import_typeorm21.Entity)("job_roles")
|
|
2687
2732
|
], JobRoles);
|
|
2688
2733
|
|
|
2689
2734
|
// src/entities/plan.entity.ts
|
|
2690
|
-
var
|
|
2735
|
+
var import_typeorm23 = require("typeorm");
|
|
2691
2736
|
|
|
2692
2737
|
// src/entities/feature.entity.ts
|
|
2693
|
-
var
|
|
2738
|
+
var import_typeorm22 = require("typeorm");
|
|
2694
2739
|
var Feature = class extends BaseEntity {
|
|
2695
2740
|
};
|
|
2696
2741
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2742
|
+
(0, import_typeorm22.Column)({ name: "name", type: "varchar", unique: true })
|
|
2698
2743
|
], Feature.prototype, "name", 2);
|
|
2699
2744
|
__decorateClass([
|
|
2700
|
-
(0,
|
|
2745
|
+
(0, import_typeorm22.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2701
2746
|
], Feature.prototype, "plans", 2);
|
|
2702
2747
|
Feature = __decorateClass([
|
|
2703
|
-
(0,
|
|
2748
|
+
(0, import_typeorm22.Entity)("features")
|
|
2704
2749
|
], Feature);
|
|
2705
2750
|
|
|
2706
2751
|
// src/entities/plan.entity.ts
|
|
2707
2752
|
var Plan = class extends BaseEntity {
|
|
2708
2753
|
};
|
|
2709
2754
|
__decorateClass([
|
|
2710
|
-
(0,
|
|
2755
|
+
(0, import_typeorm23.Column)({ name: "name", type: "varchar", unique: true })
|
|
2711
2756
|
], Plan.prototype, "name", 2);
|
|
2712
2757
|
__decorateClass([
|
|
2713
|
-
(0,
|
|
2758
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2714
2759
|
], Plan.prototype, "description", 2);
|
|
2715
2760
|
__decorateClass([
|
|
2716
|
-
(0,
|
|
2761
|
+
(0, import_typeorm23.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2717
2762
|
], Plan.prototype, "price", 2);
|
|
2718
2763
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2764
|
+
(0, import_typeorm23.Column)({ name: "billing_period", type: "varchar" })
|
|
2720
2765
|
], Plan.prototype, "billingPeriod", 2);
|
|
2721
2766
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2767
|
+
(0, import_typeorm23.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2723
2768
|
], Plan.prototype, "isCurrent", 2);
|
|
2724
2769
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2726
|
-
(0,
|
|
2770
|
+
(0, import_typeorm23.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2771
|
+
(0, import_typeorm23.JoinTable)()
|
|
2727
2772
|
], Plan.prototype, "features", 2);
|
|
2728
2773
|
Plan = __decorateClass([
|
|
2729
|
-
(0,
|
|
2774
|
+
(0, import_typeorm23.Entity)("plans")
|
|
2730
2775
|
], Plan);
|
|
2731
2776
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2732
2777
|
0 && (module.exports = {
|
|
@@ -2775,6 +2820,7 @@ Plan = __decorateClass([
|
|
|
2775
2820
|
FreelancerWorkShowcaseDto,
|
|
2776
2821
|
FromUsOn,
|
|
2777
2822
|
Interview,
|
|
2823
|
+
InterviewSkill,
|
|
2778
2824
|
InterviewStatusEnum,
|
|
2779
2825
|
JOB_PATTERN,
|
|
2780
2826
|
JOB_ROLE_PATTERN,
|