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