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