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