@experts_hub/shared 1.0.141 → 1.0.142
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/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +20 -18
- package/dist/index.d.ts +20 -18
- package/dist/index.js +220 -212
- package/dist/index.mjs +223 -215
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -999,10 +999,10 @@ var RATING_PATTERN = {
|
|
|
999
999
|
var import_class_validator29 = require("class-validator");
|
|
1000
1000
|
|
|
1001
1001
|
// src/entities/rating.entity.ts
|
|
1002
|
-
var
|
|
1002
|
+
var import_typeorm18 = require("typeorm");
|
|
1003
1003
|
|
|
1004
1004
|
// src/entities/user.entity.ts
|
|
1005
|
-
var
|
|
1005
|
+
var import_typeorm17 = require("typeorm");
|
|
1006
1006
|
|
|
1007
1007
|
// src/entities/base.entity.ts
|
|
1008
1008
|
var import_typeorm = require("typeorm");
|
|
@@ -1371,7 +1371,7 @@ CompanyProfile = __decorateClass([
|
|
|
1371
1371
|
], CompanyProfile);
|
|
1372
1372
|
|
|
1373
1373
|
// src/entities/job.entity.ts
|
|
1374
|
-
var
|
|
1374
|
+
var import_typeorm11 = require("typeorm");
|
|
1375
1375
|
|
|
1376
1376
|
// src/entities/job-skill.entity.ts
|
|
1377
1377
|
var import_typeorm8 = require("typeorm");
|
|
@@ -1535,6 +1535,61 @@ JobApplication = __decorateClass([
|
|
|
1535
1535
|
(0, import_typeorm9.Entity)("job_applications")
|
|
1536
1536
|
], JobApplication);
|
|
1537
1537
|
|
|
1538
|
+
// src/entities/interview.entity.ts
|
|
1539
|
+
var import_typeorm10 = require("typeorm");
|
|
1540
|
+
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
1541
|
+
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
1542
|
+
InterviewStatusEnum2["PUBLISHED"] = "PUBLISHED";
|
|
1543
|
+
InterviewStatusEnum2["INACTIVE"] = "INACTIVE";
|
|
1544
|
+
InterviewStatusEnum2["DISCARDED"] = "DISCARDED";
|
|
1545
|
+
InterviewStatusEnum2["ARCHIVED"] = "ARCHIVED";
|
|
1546
|
+
return InterviewStatusEnum2;
|
|
1547
|
+
})(InterviewStatusEnum || {});
|
|
1548
|
+
var Interview = class extends BaseEntity {
|
|
1549
|
+
};
|
|
1550
|
+
__decorateClass([
|
|
1551
|
+
(0, import_typeorm10.Column)({
|
|
1552
|
+
name: "interview_id",
|
|
1553
|
+
type: "varchar",
|
|
1554
|
+
unique: true,
|
|
1555
|
+
nullable: true
|
|
1556
|
+
}),
|
|
1557
|
+
(0, import_typeorm10.Index)()
|
|
1558
|
+
], Interview.prototype, "interviewId", 2);
|
|
1559
|
+
__decorateClass([
|
|
1560
|
+
(0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1561
|
+
(0, import_typeorm10.Index)()
|
|
1562
|
+
], Interview.prototype, "userId", 2);
|
|
1563
|
+
__decorateClass([
|
|
1564
|
+
(0, import_typeorm10.ManyToOne)(() => User, (user) => user.interviews),
|
|
1565
|
+
(0, import_typeorm10.JoinColumn)({ name: "user_id" })
|
|
1566
|
+
], Interview.prototype, "user", 2);
|
|
1567
|
+
__decorateClass([
|
|
1568
|
+
(0, import_typeorm10.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
1569
|
+
], Interview.prototype, "interviewName", 2);
|
|
1570
|
+
__decorateClass([
|
|
1571
|
+
(0, import_typeorm10.Column)({ name: "job_id", type: "integer" }),
|
|
1572
|
+
(0, import_typeorm10.Index)()
|
|
1573
|
+
], Interview.prototype, "jobId", 2);
|
|
1574
|
+
__decorateClass([
|
|
1575
|
+
(0, import_typeorm10.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
1576
|
+
(0, import_typeorm10.JoinColumn)({ name: "job_id" })
|
|
1577
|
+
], Interview.prototype, "job", 2);
|
|
1578
|
+
__decorateClass([
|
|
1579
|
+
(0, import_typeorm10.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
1580
|
+
], Interview.prototype, "interviewType", 2);
|
|
1581
|
+
__decorateClass([
|
|
1582
|
+
(0, import_typeorm10.Column)({
|
|
1583
|
+
name: "status",
|
|
1584
|
+
type: "enum",
|
|
1585
|
+
enum: InterviewStatusEnum,
|
|
1586
|
+
default: "DRAFTED" /* DRAFTED */
|
|
1587
|
+
})
|
|
1588
|
+
], Interview.prototype, "status", 2);
|
|
1589
|
+
Interview = __decorateClass([
|
|
1590
|
+
(0, import_typeorm10.Entity)("interviews")
|
|
1591
|
+
], Interview);
|
|
1592
|
+
|
|
1538
1593
|
// src/entities/job.entity.ts
|
|
1539
1594
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
1540
1595
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -1572,28 +1627,28 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
1572
1627
|
var Job = class extends BaseEntity {
|
|
1573
1628
|
};
|
|
1574
1629
|
__decorateClass([
|
|
1575
|
-
(0,
|
|
1630
|
+
(0, import_typeorm11.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
1576
1631
|
], Job.prototype, "jobId", 2);
|
|
1577
1632
|
// individual index to find jobs by user
|
|
1578
1633
|
__decorateClass([
|
|
1579
|
-
(0,
|
|
1580
|
-
(0,
|
|
1634
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1635
|
+
(0, import_typeorm11.Index)()
|
|
1581
1636
|
], Job.prototype, "userId", 2);
|
|
1582
1637
|
__decorateClass([
|
|
1583
|
-
(0,
|
|
1584
|
-
(0,
|
|
1638
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.jobs),
|
|
1639
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
1585
1640
|
], Job.prototype, "user", 2);
|
|
1586
1641
|
__decorateClass([
|
|
1587
|
-
(0,
|
|
1642
|
+
(0, import_typeorm11.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
1588
1643
|
], Job.prototype, "jobRole", 2);
|
|
1589
1644
|
__decorateClass([
|
|
1590
|
-
(0,
|
|
1645
|
+
(0, import_typeorm11.Column)({ name: "note", type: "varchar", nullable: true })
|
|
1591
1646
|
], Job.prototype, "note", 2);
|
|
1592
1647
|
__decorateClass([
|
|
1593
|
-
(0,
|
|
1648
|
+
(0, import_typeorm11.Column)({ name: "openings", type: "integer", default: 0 })
|
|
1594
1649
|
], Job.prototype, "openings", 2);
|
|
1595
1650
|
__decorateClass([
|
|
1596
|
-
(0,
|
|
1651
|
+
(0, import_typeorm11.Column)({
|
|
1597
1652
|
name: "location",
|
|
1598
1653
|
type: "enum",
|
|
1599
1654
|
enum: JobLocationEnum,
|
|
@@ -1601,7 +1656,7 @@ __decorateClass([
|
|
|
1601
1656
|
})
|
|
1602
1657
|
], Job.prototype, "location", 2);
|
|
1603
1658
|
__decorateClass([
|
|
1604
|
-
(0,
|
|
1659
|
+
(0, import_typeorm11.Column)({
|
|
1605
1660
|
name: "type_of_employment",
|
|
1606
1661
|
type: "enum",
|
|
1607
1662
|
enum: TypeOfEmploymentEnum,
|
|
@@ -1609,10 +1664,10 @@ __decorateClass([
|
|
|
1609
1664
|
})
|
|
1610
1665
|
], Job.prototype, "typeOfEmployment", 2);
|
|
1611
1666
|
__decorateClass([
|
|
1612
|
-
(0,
|
|
1667
|
+
(0, import_typeorm11.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
1613
1668
|
], Job.prototype, "currency", 2);
|
|
1614
1669
|
__decorateClass([
|
|
1615
|
-
(0,
|
|
1670
|
+
(0, import_typeorm11.Column)({
|
|
1616
1671
|
name: "expected_salary_from",
|
|
1617
1672
|
type: "decimal",
|
|
1618
1673
|
precision: 10,
|
|
@@ -1621,7 +1676,7 @@ __decorateClass([
|
|
|
1621
1676
|
})
|
|
1622
1677
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
1623
1678
|
__decorateClass([
|
|
1624
|
-
(0,
|
|
1679
|
+
(0, import_typeorm11.Column)({
|
|
1625
1680
|
name: "expected_salary_to",
|
|
1626
1681
|
type: "decimal",
|
|
1627
1682
|
precision: 10,
|
|
@@ -1630,13 +1685,13 @@ __decorateClass([
|
|
|
1630
1685
|
})
|
|
1631
1686
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
1632
1687
|
__decorateClass([
|
|
1633
|
-
(0,
|
|
1688
|
+
(0, import_typeorm11.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
1634
1689
|
], Job.prototype, "tentativeStartDate", 2);
|
|
1635
1690
|
__decorateClass([
|
|
1636
|
-
(0,
|
|
1691
|
+
(0, import_typeorm11.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
1637
1692
|
], Job.prototype, "duration", 2);
|
|
1638
1693
|
__decorateClass([
|
|
1639
|
-
(0,
|
|
1694
|
+
(0, import_typeorm11.Column)({
|
|
1640
1695
|
name: "duration_type",
|
|
1641
1696
|
type: "enum",
|
|
1642
1697
|
enum: DurationTypeEnum,
|
|
@@ -1644,13 +1699,13 @@ __decorateClass([
|
|
|
1644
1699
|
})
|
|
1645
1700
|
], Job.prototype, "durationType", 2);
|
|
1646
1701
|
__decorateClass([
|
|
1647
|
-
(0,
|
|
1702
|
+
(0, import_typeorm11.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1648
1703
|
], Job.prototype, "description", 2);
|
|
1649
1704
|
__decorateClass([
|
|
1650
|
-
(0,
|
|
1705
|
+
(0, import_typeorm11.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
1651
1706
|
], Job.prototype, "additionalComment", 2);
|
|
1652
1707
|
__decorateClass([
|
|
1653
|
-
(0,
|
|
1708
|
+
(0, import_typeorm11.Column)({
|
|
1654
1709
|
name: "onboarding_tat",
|
|
1655
1710
|
type: "varchar",
|
|
1656
1711
|
length: 50,
|
|
@@ -1658,14 +1713,14 @@ __decorateClass([
|
|
|
1658
1713
|
})
|
|
1659
1714
|
], Job.prototype, "onboardingTat", 2);
|
|
1660
1715
|
__decorateClass([
|
|
1661
|
-
(0,
|
|
1716
|
+
(0, import_typeorm11.Column)({
|
|
1662
1717
|
name: "candidate_communication_skills",
|
|
1663
1718
|
type: "varchar",
|
|
1664
1719
|
nullable: true
|
|
1665
1720
|
})
|
|
1666
1721
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
1667
1722
|
__decorateClass([
|
|
1668
|
-
(0,
|
|
1723
|
+
(0, import_typeorm11.Column)({
|
|
1669
1724
|
name: "step_completed",
|
|
1670
1725
|
type: "enum",
|
|
1671
1726
|
enum: Step,
|
|
@@ -1673,7 +1728,7 @@ __decorateClass([
|
|
|
1673
1728
|
})
|
|
1674
1729
|
], Job.prototype, "stepCompleted", 2);
|
|
1675
1730
|
__decorateClass([
|
|
1676
|
-
(0,
|
|
1731
|
+
(0, import_typeorm11.Column)({
|
|
1677
1732
|
name: "status",
|
|
1678
1733
|
type: "enum",
|
|
1679
1734
|
enum: JobStatusEnum,
|
|
@@ -1681,25 +1736,30 @@ __decorateClass([
|
|
|
1681
1736
|
})
|
|
1682
1737
|
], Job.prototype, "status", 2);
|
|
1683
1738
|
__decorateClass([
|
|
1684
|
-
(0,
|
|
1739
|
+
(0, import_typeorm11.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
1685
1740
|
], Job.prototype, "viewedCount", 2);
|
|
1686
1741
|
__decorateClass([
|
|
1687
|
-
(0,
|
|
1742
|
+
(0, import_typeorm11.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
1688
1743
|
], Job.prototype, "applicationCount", 2);
|
|
1689
1744
|
__decorateClass([
|
|
1690
|
-
(0,
|
|
1745
|
+
(0, import_typeorm11.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
1691
1746
|
], Job.prototype, "jobSkills", 2);
|
|
1692
1747
|
__decorateClass([
|
|
1693
|
-
(0,
|
|
1748
|
+
(0, import_typeorm11.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
1694
1749
|
cascade: true
|
|
1695
1750
|
})
|
|
1696
1751
|
], Job.prototype, "jobApplications", 2);
|
|
1752
|
+
__decorateClass([
|
|
1753
|
+
(0, import_typeorm11.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
1754
|
+
cascade: true
|
|
1755
|
+
})
|
|
1756
|
+
], Job.prototype, "interviews", 2);
|
|
1697
1757
|
Job = __decorateClass([
|
|
1698
|
-
(0,
|
|
1758
|
+
(0, import_typeorm11.Entity)("jobs")
|
|
1699
1759
|
], Job);
|
|
1700
1760
|
|
|
1701
1761
|
// src/entities/bank-details.entity.ts
|
|
1702
|
-
var
|
|
1762
|
+
var import_typeorm12 = require("typeorm");
|
|
1703
1763
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
1704
1764
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
1705
1765
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -1714,48 +1774,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
1714
1774
|
};
|
|
1715
1775
|
// individual index to find bank details by user
|
|
1716
1776
|
__decorateClass([
|
|
1717
|
-
(0,
|
|
1718
|
-
(0,
|
|
1777
|
+
(0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1778
|
+
(0, import_typeorm12.Index)()
|
|
1719
1779
|
], BankDetail.prototype, "userId", 2);
|
|
1720
1780
|
__decorateClass([
|
|
1721
|
-
(0,
|
|
1722
|
-
(0,
|
|
1781
|
+
(0, import_typeorm12.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
1782
|
+
(0, import_typeorm12.JoinColumn)({ name: "user_id" })
|
|
1723
1783
|
], BankDetail.prototype, "user", 2);
|
|
1724
1784
|
__decorateClass([
|
|
1725
|
-
(0,
|
|
1785
|
+
(0, import_typeorm12.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1726
1786
|
], BankDetail.prototype, "name", 2);
|
|
1727
1787
|
__decorateClass([
|
|
1728
|
-
(0,
|
|
1788
|
+
(0, import_typeorm12.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1729
1789
|
], BankDetail.prototype, "mobile", 2);
|
|
1730
1790
|
__decorateClass([
|
|
1731
|
-
(0,
|
|
1791
|
+
(0, import_typeorm12.Column)({ name: "email", type: "varchar", unique: true })
|
|
1732
1792
|
], BankDetail.prototype, "email", 2);
|
|
1733
1793
|
__decorateClass([
|
|
1734
|
-
(0,
|
|
1794
|
+
(0, import_typeorm12.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1735
1795
|
], BankDetail.prototype, "address", 2);
|
|
1736
1796
|
__decorateClass([
|
|
1737
|
-
(0,
|
|
1797
|
+
(0, import_typeorm12.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
1738
1798
|
], BankDetail.prototype, "accountNumber", 2);
|
|
1739
1799
|
__decorateClass([
|
|
1740
|
-
(0,
|
|
1800
|
+
(0, import_typeorm12.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
1741
1801
|
], BankDetail.prototype, "bankName", 2);
|
|
1742
1802
|
__decorateClass([
|
|
1743
|
-
(0,
|
|
1803
|
+
(0, import_typeorm12.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
1744
1804
|
], BankDetail.prototype, "ifscCode", 2);
|
|
1745
1805
|
__decorateClass([
|
|
1746
|
-
(0,
|
|
1806
|
+
(0, import_typeorm12.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
1747
1807
|
], BankDetail.prototype, "branchName", 2);
|
|
1748
1808
|
__decorateClass([
|
|
1749
|
-
(0,
|
|
1809
|
+
(0, import_typeorm12.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
1750
1810
|
], BankDetail.prototype, "routingNo", 2);
|
|
1751
1811
|
__decorateClass([
|
|
1752
|
-
(0,
|
|
1812
|
+
(0, import_typeorm12.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
1753
1813
|
], BankDetail.prototype, "abaNumber", 2);
|
|
1754
1814
|
__decorateClass([
|
|
1755
|
-
(0,
|
|
1815
|
+
(0, import_typeorm12.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
1756
1816
|
], BankDetail.prototype, "iban", 2);
|
|
1757
1817
|
__decorateClass([
|
|
1758
|
-
(0,
|
|
1818
|
+
(0, import_typeorm12.Column)({
|
|
1759
1819
|
name: "account_type",
|
|
1760
1820
|
type: "enum",
|
|
1761
1821
|
enum: BankAccountTypeEnum,
|
|
@@ -1763,7 +1823,7 @@ __decorateClass([
|
|
|
1763
1823
|
})
|
|
1764
1824
|
], BankDetail.prototype, "accountType", 2);
|
|
1765
1825
|
__decorateClass([
|
|
1766
|
-
(0,
|
|
1826
|
+
(0, import_typeorm12.Column)({
|
|
1767
1827
|
name: "account_scope",
|
|
1768
1828
|
type: "enum",
|
|
1769
1829
|
enum: BankAccountScopeEnum,
|
|
@@ -1771,115 +1831,115 @@ __decorateClass([
|
|
|
1771
1831
|
})
|
|
1772
1832
|
], BankDetail.prototype, "accountScope", 2);
|
|
1773
1833
|
BankDetail = __decorateClass([
|
|
1774
|
-
(0,
|
|
1834
|
+
(0, import_typeorm12.Entity)("bank_details")
|
|
1775
1835
|
], BankDetail);
|
|
1776
1836
|
|
|
1777
1837
|
// src/entities/system-preference.entity.ts
|
|
1778
|
-
var
|
|
1838
|
+
var import_typeorm13 = require("typeorm");
|
|
1779
1839
|
var SystemPreference = class extends BaseEntity {
|
|
1780
1840
|
};
|
|
1781
1841
|
// individual index to find system preference by user
|
|
1782
1842
|
__decorateClass([
|
|
1783
|
-
(0,
|
|
1784
|
-
(0,
|
|
1843
|
+
(0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1844
|
+
(0, import_typeorm13.Index)()
|
|
1785
1845
|
], SystemPreference.prototype, "userId", 2);
|
|
1786
1846
|
__decorateClass([
|
|
1787
|
-
(0,
|
|
1788
|
-
(0,
|
|
1847
|
+
(0, import_typeorm13.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
1848
|
+
(0, import_typeorm13.JoinColumn)({ name: "user_id" })
|
|
1789
1849
|
], SystemPreference.prototype, "user", 2);
|
|
1790
1850
|
__decorateClass([
|
|
1791
|
-
(0,
|
|
1851
|
+
(0, import_typeorm13.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1792
1852
|
], SystemPreference.prototype, "key", 2);
|
|
1793
1853
|
__decorateClass([
|
|
1794
|
-
(0,
|
|
1854
|
+
(0, import_typeorm13.Column)({ name: "value", type: "boolean", default: false })
|
|
1795
1855
|
], SystemPreference.prototype, "value", 2);
|
|
1796
1856
|
SystemPreference = __decorateClass([
|
|
1797
|
-
(0,
|
|
1857
|
+
(0, import_typeorm13.Entity)("system_preferences")
|
|
1798
1858
|
], SystemPreference);
|
|
1799
1859
|
|
|
1800
1860
|
// src/entities/company-role.entity.ts
|
|
1801
|
-
var
|
|
1861
|
+
var import_typeorm14 = require("typeorm");
|
|
1802
1862
|
var CompanyRole = class extends BaseEntity {
|
|
1803
1863
|
};
|
|
1804
1864
|
// individual index to find company roles by user
|
|
1805
1865
|
__decorateClass([
|
|
1806
|
-
(0,
|
|
1807
|
-
(0,
|
|
1866
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1867
|
+
(0, import_typeorm14.Index)()
|
|
1808
1868
|
], CompanyRole.prototype, "userId", 2);
|
|
1809
1869
|
__decorateClass([
|
|
1810
|
-
(0,
|
|
1811
|
-
(0,
|
|
1870
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.companyRole),
|
|
1871
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
1812
1872
|
], CompanyRole.prototype, "user", 2);
|
|
1813
1873
|
__decorateClass([
|
|
1814
|
-
(0,
|
|
1874
|
+
(0, import_typeorm14.Column)({ name: "name", type: "varchar" })
|
|
1815
1875
|
], CompanyRole.prototype, "name", 2);
|
|
1816
1876
|
__decorateClass([
|
|
1817
|
-
(0,
|
|
1818
|
-
(0,
|
|
1877
|
+
(0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1878
|
+
(0, import_typeorm14.Index)()
|
|
1819
1879
|
], CompanyRole.prototype, "slug", 2);
|
|
1820
1880
|
__decorateClass([
|
|
1821
|
-
(0,
|
|
1881
|
+
(0, import_typeorm14.Column)({ name: "description", type: "text", nullable: true })
|
|
1822
1882
|
], CompanyRole.prototype, "description", 2);
|
|
1823
1883
|
__decorateClass([
|
|
1824
|
-
(0,
|
|
1884
|
+
(0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1825
1885
|
], CompanyRole.prototype, "isActive", 2);
|
|
1826
1886
|
CompanyRole = __decorateClass([
|
|
1827
|
-
(0,
|
|
1887
|
+
(0, import_typeorm14.Entity)("company_roles")
|
|
1828
1888
|
], CompanyRole);
|
|
1829
1889
|
|
|
1830
1890
|
// src/entities/freelancer-experience.entity.ts
|
|
1831
|
-
var
|
|
1891
|
+
var import_typeorm15 = require("typeorm");
|
|
1832
1892
|
var FreelancerExperience = class extends BaseEntity {
|
|
1833
1893
|
};
|
|
1834
1894
|
// individual index to find experence by user
|
|
1835
1895
|
__decorateClass([
|
|
1836
|
-
(0,
|
|
1837
|
-
(0,
|
|
1896
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1897
|
+
(0, import_typeorm15.Index)()
|
|
1838
1898
|
], FreelancerExperience.prototype, "userId", 2);
|
|
1839
1899
|
__decorateClass([
|
|
1840
|
-
(0,
|
|
1841
|
-
(0,
|
|
1900
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
1901
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
1842
1902
|
], FreelancerExperience.prototype, "user", 2);
|
|
1843
1903
|
__decorateClass([
|
|
1844
|
-
(0,
|
|
1904
|
+
(0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1845
1905
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
1846
1906
|
__decorateClass([
|
|
1847
|
-
(0,
|
|
1907
|
+
(0, import_typeorm15.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
1848
1908
|
], FreelancerExperience.prototype, "designation", 2);
|
|
1849
1909
|
__decorateClass([
|
|
1850
|
-
(0,
|
|
1910
|
+
(0, import_typeorm15.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
1851
1911
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
1852
1912
|
__decorateClass([
|
|
1853
|
-
(0,
|
|
1913
|
+
(0, import_typeorm15.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1854
1914
|
], FreelancerExperience.prototype, "description", 2);
|
|
1855
1915
|
FreelancerExperience = __decorateClass([
|
|
1856
|
-
(0,
|
|
1916
|
+
(0, import_typeorm15.Entity)("freelancer_experiences")
|
|
1857
1917
|
], FreelancerExperience);
|
|
1858
1918
|
|
|
1859
1919
|
// src/entities/freelancer-education.entity.ts
|
|
1860
|
-
var
|
|
1920
|
+
var import_typeorm16 = require("typeorm");
|
|
1861
1921
|
var FreelancerEducation = class extends BaseEntity {
|
|
1862
1922
|
};
|
|
1863
1923
|
// individual index to find education by user
|
|
1864
1924
|
__decorateClass([
|
|
1865
|
-
(0,
|
|
1866
|
-
(0,
|
|
1925
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1926
|
+
(0, import_typeorm16.Index)()
|
|
1867
1927
|
], FreelancerEducation.prototype, "userId", 2);
|
|
1868
1928
|
__decorateClass([
|
|
1869
|
-
(0,
|
|
1870
|
-
(0,
|
|
1929
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
1930
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
1871
1931
|
], FreelancerEducation.prototype, "user", 2);
|
|
1872
1932
|
__decorateClass([
|
|
1873
|
-
(0,
|
|
1933
|
+
(0, import_typeorm16.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
1874
1934
|
], FreelancerEducation.prototype, "degree", 2);
|
|
1875
1935
|
__decorateClass([
|
|
1876
|
-
(0,
|
|
1936
|
+
(0, import_typeorm16.Column)({ name: "university", type: "varchar", nullable: true })
|
|
1877
1937
|
], FreelancerEducation.prototype, "university", 2);
|
|
1878
1938
|
__decorateClass([
|
|
1879
|
-
(0,
|
|
1939
|
+
(0, import_typeorm16.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
1880
1940
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
1881
1941
|
FreelancerEducation = __decorateClass([
|
|
1882
|
-
(0,
|
|
1942
|
+
(0, import_typeorm16.Entity)("freelancer_educations")
|
|
1883
1943
|
], FreelancerEducation);
|
|
1884
1944
|
|
|
1885
1945
|
// src/entities/user.entity.ts
|
|
@@ -1906,51 +1966,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1906
1966
|
var User = class extends BaseEntity {
|
|
1907
1967
|
};
|
|
1908
1968
|
__decorateClass([
|
|
1909
|
-
(0,
|
|
1969
|
+
(0, import_typeorm17.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1910
1970
|
], User.prototype, "uniqueId", 2);
|
|
1911
1971
|
__decorateClass([
|
|
1912
|
-
(0,
|
|
1913
|
-
(0,
|
|
1972
|
+
(0, import_typeorm17.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
1973
|
+
(0, import_typeorm17.Index)()
|
|
1914
1974
|
], User.prototype, "parentId", 2);
|
|
1915
1975
|
__decorateClass([
|
|
1916
|
-
(0,
|
|
1917
|
-
(0,
|
|
1976
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
1977
|
+
(0, import_typeorm17.JoinColumn)({ name: "parent_id" })
|
|
1918
1978
|
], User.prototype, "parent", 2);
|
|
1919
1979
|
__decorateClass([
|
|
1920
|
-
(0,
|
|
1980
|
+
(0, import_typeorm17.OneToMany)(() => User, (user) => user.parent)
|
|
1921
1981
|
], User.prototype, "children", 2);
|
|
1922
1982
|
__decorateClass([
|
|
1923
|
-
(0,
|
|
1983
|
+
(0, import_typeorm17.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1924
1984
|
], User.prototype, "username", 2);
|
|
1925
1985
|
__decorateClass([
|
|
1926
|
-
(0,
|
|
1986
|
+
(0, import_typeorm17.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1927
1987
|
], User.prototype, "firstName", 2);
|
|
1928
1988
|
__decorateClass([
|
|
1929
|
-
(0,
|
|
1989
|
+
(0, import_typeorm17.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1930
1990
|
], User.prototype, "lastName", 2);
|
|
1931
1991
|
__decorateClass([
|
|
1932
|
-
(0,
|
|
1992
|
+
(0, import_typeorm17.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1933
1993
|
], User.prototype, "dateOfBirth", 2);
|
|
1934
1994
|
__decorateClass([
|
|
1935
|
-
(0,
|
|
1995
|
+
(0, import_typeorm17.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1936
1996
|
], User.prototype, "gender", 2);
|
|
1937
1997
|
__decorateClass([
|
|
1938
|
-
(0,
|
|
1998
|
+
(0, import_typeorm17.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1939
1999
|
], User.prototype, "profilePictureUrl", 2);
|
|
1940
2000
|
__decorateClass([
|
|
1941
|
-
(0,
|
|
2001
|
+
(0, import_typeorm17.Column)({ name: "email", type: "varchar", unique: true })
|
|
1942
2002
|
], User.prototype, "email", 2);
|
|
1943
2003
|
__decorateClass([
|
|
1944
|
-
(0,
|
|
2004
|
+
(0, import_typeorm17.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1945
2005
|
], User.prototype, "mobileCode", 2);
|
|
1946
2006
|
__decorateClass([
|
|
1947
|
-
(0,
|
|
2007
|
+
(0, import_typeorm17.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1948
2008
|
], User.prototype, "mobile", 2);
|
|
1949
2009
|
__decorateClass([
|
|
1950
|
-
(0,
|
|
2010
|
+
(0, import_typeorm17.Column)({ name: "password", type: "varchar" })
|
|
1951
2011
|
], User.prototype, "password", 2);
|
|
1952
2012
|
__decorateClass([
|
|
1953
|
-
(0,
|
|
2013
|
+
(0, import_typeorm17.Column)({
|
|
1954
2014
|
name: "account_type",
|
|
1955
2015
|
type: "enum",
|
|
1956
2016
|
enum: AccountType,
|
|
@@ -1958,7 +2018,7 @@ __decorateClass([
|
|
|
1958
2018
|
})
|
|
1959
2019
|
], User.prototype, "accountType", 2);
|
|
1960
2020
|
__decorateClass([
|
|
1961
|
-
(0,
|
|
2021
|
+
(0, import_typeorm17.Column)({
|
|
1962
2022
|
name: "account_status",
|
|
1963
2023
|
type: "enum",
|
|
1964
2024
|
enum: AccountStatus,
|
|
@@ -1966,36 +2026,36 @@ __decorateClass([
|
|
|
1966
2026
|
})
|
|
1967
2027
|
], User.prototype, "accountStatus", 2);
|
|
1968
2028
|
__decorateClass([
|
|
1969
|
-
(0,
|
|
2029
|
+
(0, import_typeorm17.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1970
2030
|
], User.prototype, "isEmailVerified", 2);
|
|
1971
2031
|
__decorateClass([
|
|
1972
|
-
(0,
|
|
2032
|
+
(0, import_typeorm17.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1973
2033
|
], User.prototype, "isMobileVerified", 2);
|
|
1974
2034
|
__decorateClass([
|
|
1975
|
-
(0,
|
|
2035
|
+
(0, import_typeorm17.Column)({
|
|
1976
2036
|
name: "last_login_at",
|
|
1977
2037
|
type: "timestamp with time zone",
|
|
1978
2038
|
nullable: true
|
|
1979
2039
|
})
|
|
1980
2040
|
], User.prototype, "lastLoginAt", 2);
|
|
1981
2041
|
__decorateClass([
|
|
1982
|
-
(0,
|
|
2042
|
+
(0, import_typeorm17.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1983
2043
|
], User.prototype, "lastLoginIp", 2);
|
|
1984
2044
|
__decorateClass([
|
|
1985
|
-
(0,
|
|
2045
|
+
(0, import_typeorm17.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1986
2046
|
], User.prototype, "resetToken", 2);
|
|
1987
2047
|
__decorateClass([
|
|
1988
|
-
(0,
|
|
2048
|
+
(0, import_typeorm17.Column)({
|
|
1989
2049
|
name: "reset_token_expire_at",
|
|
1990
2050
|
type: "timestamp with time zone",
|
|
1991
2051
|
nullable: true
|
|
1992
2052
|
})
|
|
1993
2053
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1994
2054
|
__decorateClass([
|
|
1995
|
-
(0,
|
|
2055
|
+
(0, import_typeorm17.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1996
2056
|
], User.prototype, "refreshTokens", 2);
|
|
1997
2057
|
__decorateClass([
|
|
1998
|
-
(0,
|
|
2058
|
+
(0, import_typeorm17.Column)({
|
|
1999
2059
|
name: "provider",
|
|
2000
2060
|
type: "enum",
|
|
2001
2061
|
enum: Provider,
|
|
@@ -2004,64 +2064,67 @@ __decorateClass([
|
|
|
2004
2064
|
})
|
|
2005
2065
|
], User.prototype, "provider", 2);
|
|
2006
2066
|
__decorateClass([
|
|
2007
|
-
(0,
|
|
2067
|
+
(0, import_typeorm17.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2008
2068
|
], User.prototype, "providerToken", 2);
|
|
2009
2069
|
__decorateClass([
|
|
2010
|
-
(0,
|
|
2070
|
+
(0, import_typeorm17.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2011
2071
|
], User.prototype, "linkedInId", 2);
|
|
2012
2072
|
__decorateClass([
|
|
2013
|
-
(0,
|
|
2073
|
+
(0, import_typeorm17.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2014
2074
|
], User.prototype, "googleId", 2);
|
|
2015
2075
|
__decorateClass([
|
|
2016
|
-
(0,
|
|
2076
|
+
(0, import_typeorm17.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2017
2077
|
], User.prototype, "gitLabsId", 2);
|
|
2018
2078
|
__decorateClass([
|
|
2019
|
-
(0,
|
|
2079
|
+
(0, import_typeorm17.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2020
2080
|
], User.prototype, "otps", 2);
|
|
2021
2081
|
__decorateClass([
|
|
2022
|
-
(0,
|
|
2082
|
+
(0, import_typeorm17.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2023
2083
|
], User.prototype, "senseloafLogs", 2);
|
|
2024
2084
|
__decorateClass([
|
|
2025
|
-
(0,
|
|
2085
|
+
(0, import_typeorm17.OneToOne)(
|
|
2026
2086
|
() => FreelancerProfile,
|
|
2027
2087
|
(freelancerProfile) => freelancerProfile.user
|
|
2028
2088
|
)
|
|
2029
2089
|
], User.prototype, "freelancerProfile", 2);
|
|
2030
2090
|
__decorateClass([
|
|
2031
|
-
(0,
|
|
2091
|
+
(0, import_typeorm17.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2032
2092
|
], User.prototype, "companyProfile", 2);
|
|
2033
2093
|
__decorateClass([
|
|
2034
|
-
(0,
|
|
2094
|
+
(0, import_typeorm17.OneToMany)(() => Job, (job) => job.user)
|
|
2035
2095
|
], User.prototype, "jobs", 2);
|
|
2036
2096
|
__decorateClass([
|
|
2037
|
-
(0,
|
|
2097
|
+
(0, import_typeorm17.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2098
|
+
], User.prototype, "interviews", 2);
|
|
2099
|
+
__decorateClass([
|
|
2100
|
+
(0, import_typeorm17.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2038
2101
|
], User.prototype, "bankDetail", 2);
|
|
2039
2102
|
__decorateClass([
|
|
2040
|
-
(0,
|
|
2103
|
+
(0, import_typeorm17.OneToMany)(
|
|
2041
2104
|
() => SystemPreference,
|
|
2042
2105
|
(systemPreference) => systemPreference.user
|
|
2043
2106
|
)
|
|
2044
2107
|
], User.prototype, "systemPreference", 2);
|
|
2045
2108
|
__decorateClass([
|
|
2046
|
-
(0,
|
|
2109
|
+
(0, import_typeorm17.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2047
2110
|
], User.prototype, "givenRatings", 2);
|
|
2048
2111
|
__decorateClass([
|
|
2049
|
-
(0,
|
|
2112
|
+
(0, import_typeorm17.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2050
2113
|
], User.prototype, "receivedRatings", 2);
|
|
2051
2114
|
__decorateClass([
|
|
2052
|
-
(0,
|
|
2115
|
+
(0, import_typeorm17.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2053
2116
|
], User.prototype, "jobApplications", 2);
|
|
2054
2117
|
__decorateClass([
|
|
2055
|
-
(0,
|
|
2118
|
+
(0, import_typeorm17.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2056
2119
|
], User.prototype, "companyRole", 2);
|
|
2057
2120
|
__decorateClass([
|
|
2058
|
-
(0,
|
|
2121
|
+
(0, import_typeorm17.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2059
2122
|
], User.prototype, "freelancerExperience", 2);
|
|
2060
2123
|
__decorateClass([
|
|
2061
|
-
(0,
|
|
2124
|
+
(0, import_typeorm17.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2062
2125
|
], User.prototype, "freelancerEducation", 2);
|
|
2063
2126
|
User = __decorateClass([
|
|
2064
|
-
(0,
|
|
2127
|
+
(0, import_typeorm17.Entity)("users")
|
|
2065
2128
|
], User);
|
|
2066
2129
|
|
|
2067
2130
|
// src/entities/rating.entity.ts
|
|
@@ -2073,36 +2136,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2073
2136
|
var Rating = class extends BaseEntity {
|
|
2074
2137
|
};
|
|
2075
2138
|
__decorateClass([
|
|
2076
|
-
(0,
|
|
2077
|
-
(0,
|
|
2139
|
+
(0, import_typeorm18.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2140
|
+
(0, import_typeorm18.Index)()
|
|
2078
2141
|
], Rating.prototype, "reviewer_id", 2);
|
|
2079
2142
|
__decorateClass([
|
|
2080
|
-
(0,
|
|
2081
|
-
(0,
|
|
2143
|
+
(0, import_typeorm18.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2144
|
+
(0, import_typeorm18.JoinColumn)({ name: "reviewer_id" })
|
|
2082
2145
|
], Rating.prototype, "reviewer", 2);
|
|
2083
2146
|
__decorateClass([
|
|
2084
|
-
(0,
|
|
2085
|
-
(0,
|
|
2147
|
+
(0, import_typeorm18.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2148
|
+
(0, import_typeorm18.Index)()
|
|
2086
2149
|
], Rating.prototype, "reviewee_id", 2);
|
|
2087
2150
|
__decorateClass([
|
|
2088
|
-
(0,
|
|
2089
|
-
(0,
|
|
2151
|
+
(0, import_typeorm18.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2152
|
+
(0, import_typeorm18.JoinColumn)({ name: "reviewee_id" })
|
|
2090
2153
|
], Rating.prototype, "reviewee", 2);
|
|
2091
2154
|
__decorateClass([
|
|
2092
|
-
(0,
|
|
2155
|
+
(0, import_typeorm18.Column)({
|
|
2093
2156
|
type: "enum",
|
|
2094
2157
|
enum: RatingTypeEnum,
|
|
2095
2158
|
nullable: true
|
|
2096
2159
|
})
|
|
2097
2160
|
], Rating.prototype, "ratingType", 2);
|
|
2098
2161
|
__decorateClass([
|
|
2099
|
-
(0,
|
|
2162
|
+
(0, import_typeorm18.Column)({ type: "integer", nullable: true })
|
|
2100
2163
|
], Rating.prototype, "rating", 2);
|
|
2101
2164
|
__decorateClass([
|
|
2102
|
-
(0,
|
|
2165
|
+
(0, import_typeorm18.Column)({ type: "text", nullable: true })
|
|
2103
2166
|
], Rating.prototype, "review", 2);
|
|
2104
2167
|
Rating = __decorateClass([
|
|
2105
|
-
(0,
|
|
2168
|
+
(0, import_typeorm18.Entity)("ratings")
|
|
2106
2169
|
], Rating);
|
|
2107
2170
|
|
|
2108
2171
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2568,7 +2631,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2568
2631
|
};
|
|
2569
2632
|
|
|
2570
2633
|
// src/entities/question.entity.ts
|
|
2571
|
-
var
|
|
2634
|
+
var import_typeorm19 = require("typeorm");
|
|
2572
2635
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2573
2636
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2574
2637
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2577,16 +2640,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2577
2640
|
var Question = class extends BaseEntity {
|
|
2578
2641
|
};
|
|
2579
2642
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2643
|
+
(0, import_typeorm19.Column)({ name: "question", type: "varchar" })
|
|
2581
2644
|
], Question.prototype, "question", 2);
|
|
2582
2645
|
__decorateClass([
|
|
2583
|
-
(0,
|
|
2646
|
+
(0, import_typeorm19.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2584
2647
|
], Question.prototype, "hint", 2);
|
|
2585
2648
|
__decorateClass([
|
|
2586
|
-
(0,
|
|
2649
|
+
(0, import_typeorm19.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2587
2650
|
], Question.prototype, "slug", 2);
|
|
2588
2651
|
__decorateClass([
|
|
2589
|
-
(0,
|
|
2652
|
+
(0, import_typeorm19.Column)({
|
|
2590
2653
|
name: "question_for",
|
|
2591
2654
|
type: "enum",
|
|
2592
2655
|
enum: QuestionFor,
|
|
@@ -2594,90 +2657,35 @@ __decorateClass([
|
|
|
2594
2657
|
})
|
|
2595
2658
|
], Question.prototype, "questionFor", 2);
|
|
2596
2659
|
__decorateClass([
|
|
2597
|
-
(0,
|
|
2660
|
+
(0, import_typeorm19.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2598
2661
|
], Question.prototype, "type", 2);
|
|
2599
2662
|
__decorateClass([
|
|
2600
|
-
(0,
|
|
2663
|
+
(0, import_typeorm19.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2601
2664
|
], Question.prototype, "options", 2);
|
|
2602
2665
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2666
|
+
(0, import_typeorm19.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2604
2667
|
], Question.prototype, "isActive", 2);
|
|
2605
2668
|
Question = __decorateClass([
|
|
2606
|
-
(0,
|
|
2669
|
+
(0, import_typeorm19.Entity)("questions")
|
|
2607
2670
|
], Question);
|
|
2608
2671
|
|
|
2609
2672
|
// src/entities/job-role.entity.ts
|
|
2610
|
-
var
|
|
2673
|
+
var import_typeorm20 = require("typeorm");
|
|
2611
2674
|
var JobRoles = class extends BaseEntity {
|
|
2612
2675
|
};
|
|
2613
2676
|
__decorateClass([
|
|
2614
|
-
(0,
|
|
2677
|
+
(0, import_typeorm20.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2615
2678
|
], JobRoles.prototype, "slug", 2);
|
|
2616
2679
|
__decorateClass([
|
|
2617
|
-
(0,
|
|
2680
|
+
(0, import_typeorm20.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2618
2681
|
], JobRoles.prototype, "name", 2);
|
|
2619
2682
|
__decorateClass([
|
|
2620
|
-
(0,
|
|
2683
|
+
(0, import_typeorm20.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2621
2684
|
], JobRoles.prototype, "isActive", 2);
|
|
2622
2685
|
JobRoles = __decorateClass([
|
|
2623
|
-
(0,
|
|
2686
|
+
(0, import_typeorm20.Entity)("job_roles")
|
|
2624
2687
|
], JobRoles);
|
|
2625
2688
|
|
|
2626
|
-
// src/entities/interview.entity.ts
|
|
2627
|
-
var import_typeorm20 = require("typeorm");
|
|
2628
|
-
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2629
|
-
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
2630
|
-
InterviewStatusEnum2["PUBLISHED"] = "PUBLISHED";
|
|
2631
|
-
InterviewStatusEnum2["INACTIVE"] = "INACTIVE";
|
|
2632
|
-
InterviewStatusEnum2["DISCARDED"] = "DISCARDED";
|
|
2633
|
-
InterviewStatusEnum2["ARCHIVED"] = "ARCHIVED";
|
|
2634
|
-
return InterviewStatusEnum2;
|
|
2635
|
-
})(InterviewStatusEnum || {});
|
|
2636
|
-
var Interview = class extends BaseEntity {
|
|
2637
|
-
};
|
|
2638
|
-
__decorateClass([
|
|
2639
|
-
(0, import_typeorm20.Column)({
|
|
2640
|
-
name: "interview_id",
|
|
2641
|
-
type: "varchar",
|
|
2642
|
-
unique: true,
|
|
2643
|
-
nullable: true
|
|
2644
|
-
}),
|
|
2645
|
-
(0, import_typeorm20.Index)()
|
|
2646
|
-
], Interview.prototype, "interviewId", 2);
|
|
2647
|
-
__decorateClass([
|
|
2648
|
-
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2649
|
-
(0, import_typeorm20.Index)()
|
|
2650
|
-
], Interview.prototype, "userId", 2);
|
|
2651
|
-
__decorateClass([
|
|
2652
|
-
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.jobs),
|
|
2653
|
-
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2654
|
-
], Interview.prototype, "user", 2);
|
|
2655
|
-
__decorateClass([
|
|
2656
|
-
(0, import_typeorm20.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2657
|
-
], Interview.prototype, "interviewName", 2);
|
|
2658
|
-
__decorateClass([
|
|
2659
|
-
(0, import_typeorm20.Column)({ name: "job_id", type: "integer" }),
|
|
2660
|
-
(0, import_typeorm20.Index)()
|
|
2661
|
-
], Interview.prototype, "jobId", 2);
|
|
2662
|
-
__decorateClass([
|
|
2663
|
-
(0, import_typeorm20.ManyToOne)(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
2664
|
-
(0, import_typeorm20.JoinColumn)({ name: "job_id" })
|
|
2665
|
-
], Interview.prototype, "job", 2);
|
|
2666
|
-
__decorateClass([
|
|
2667
|
-
(0, import_typeorm20.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2668
|
-
], Interview.prototype, "interviewType", 2);
|
|
2669
|
-
__decorateClass([
|
|
2670
|
-
(0, import_typeorm20.Column)({
|
|
2671
|
-
name: "status",
|
|
2672
|
-
type: "enum",
|
|
2673
|
-
enum: InterviewStatusEnum,
|
|
2674
|
-
default: "DRAFTED" /* DRAFTED */
|
|
2675
|
-
})
|
|
2676
|
-
], Interview.prototype, "status", 2);
|
|
2677
|
-
Interview = __decorateClass([
|
|
2678
|
-
(0, import_typeorm20.Entity)("interviews")
|
|
2679
|
-
], Interview);
|
|
2680
|
-
|
|
2681
2689
|
// src/entities/plan.entity.ts
|
|
2682
2690
|
var import_typeorm22 = require("typeorm");
|
|
2683
2691
|
|