@experts_hub/shared 1.0.142 → 1.0.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/interview-skill.entity.d.ts +9 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +4 -1
- package/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +232 -186
- package/dist/index.mjs +252 -200
- package/package.json +1 -1
package/dist/index.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
|
|
@@ -1983,6 +2026,7 @@ var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
|
1983
2026
|
AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
1984
2027
|
AccountType2["CLIENT"] = "CLIENT";
|
|
1985
2028
|
AccountType2["FREELANCER"] = "FREELANCER";
|
|
2029
|
+
AccountType2["CLIENT_EMPLOYEE"] = "CLIENT_EMPLOYEE";
|
|
1986
2030
|
return AccountType2;
|
|
1987
2031
|
})(AccountType || {});
|
|
1988
2032
|
var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
@@ -2001,51 +2045,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2001
2045
|
var User = class extends BaseEntity {
|
|
2002
2046
|
};
|
|
2003
2047
|
__decorateClass([
|
|
2004
|
-
|
|
2048
|
+
Column18({ name: "unique_id", type: "varchar", unique: true })
|
|
2005
2049
|
], User.prototype, "uniqueId", 2);
|
|
2006
2050
|
__decorateClass([
|
|
2007
|
-
|
|
2008
|
-
|
|
2051
|
+
Column18({ name: "parent_id", type: "integer", nullable: true }),
|
|
2052
|
+
Index14()
|
|
2009
2053
|
], User.prototype, "parentId", 2);
|
|
2010
2054
|
__decorateClass([
|
|
2011
|
-
|
|
2012
|
-
|
|
2055
|
+
Column18({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2056
|
+
Index14()
|
|
2057
|
+
], User.prototype, "companyRoleId", 2);
|
|
2058
|
+
__decorateClass([
|
|
2059
|
+
ManyToOne16(() => User, (user) => user.children, { nullable: true }),
|
|
2060
|
+
JoinColumn16({ name: "parent_id" })
|
|
2013
2061
|
], User.prototype, "parent", 2);
|
|
2014
2062
|
__decorateClass([
|
|
2015
|
-
|
|
2063
|
+
OneToMany7(() => User, (user) => user.parent)
|
|
2016
2064
|
], User.prototype, "children", 2);
|
|
2017
2065
|
__decorateClass([
|
|
2018
|
-
|
|
2066
|
+
Column18({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2019
2067
|
], User.prototype, "username", 2);
|
|
2020
2068
|
__decorateClass([
|
|
2021
|
-
|
|
2069
|
+
Column18({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2022
2070
|
], User.prototype, "firstName", 2);
|
|
2023
2071
|
__decorateClass([
|
|
2024
|
-
|
|
2072
|
+
Column18({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2025
2073
|
], User.prototype, "lastName", 2);
|
|
2026
2074
|
__decorateClass([
|
|
2027
|
-
|
|
2075
|
+
Column18({ name: "date_of_birth", type: "date", nullable: true })
|
|
2028
2076
|
], User.prototype, "dateOfBirth", 2);
|
|
2029
2077
|
__decorateClass([
|
|
2030
|
-
|
|
2078
|
+
Column18({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2031
2079
|
], User.prototype, "gender", 2);
|
|
2032
2080
|
__decorateClass([
|
|
2033
|
-
|
|
2081
|
+
Column18({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2034
2082
|
], User.prototype, "profilePictureUrl", 2);
|
|
2035
2083
|
__decorateClass([
|
|
2036
|
-
|
|
2084
|
+
Column18({ name: "email", type: "varchar", unique: true })
|
|
2037
2085
|
], User.prototype, "email", 2);
|
|
2038
2086
|
__decorateClass([
|
|
2039
|
-
|
|
2087
|
+
Column18({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2040
2088
|
], User.prototype, "mobileCode", 2);
|
|
2041
2089
|
__decorateClass([
|
|
2042
|
-
|
|
2090
|
+
Column18({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2043
2091
|
], User.prototype, "mobile", 2);
|
|
2044
2092
|
__decorateClass([
|
|
2045
|
-
|
|
2093
|
+
Column18({ name: "password", type: "varchar" })
|
|
2046
2094
|
], User.prototype, "password", 2);
|
|
2047
2095
|
__decorateClass([
|
|
2048
|
-
|
|
2096
|
+
Column18({
|
|
2049
2097
|
name: "account_type",
|
|
2050
2098
|
type: "enum",
|
|
2051
2099
|
enum: AccountType,
|
|
@@ -2053,7 +2101,7 @@ __decorateClass([
|
|
|
2053
2101
|
})
|
|
2054
2102
|
], User.prototype, "accountType", 2);
|
|
2055
2103
|
__decorateClass([
|
|
2056
|
-
|
|
2104
|
+
Column18({
|
|
2057
2105
|
name: "account_status",
|
|
2058
2106
|
type: "enum",
|
|
2059
2107
|
enum: AccountStatus,
|
|
@@ -2061,36 +2109,39 @@ __decorateClass([
|
|
|
2061
2109
|
})
|
|
2062
2110
|
], User.prototype, "accountStatus", 2);
|
|
2063
2111
|
__decorateClass([
|
|
2064
|
-
|
|
2112
|
+
Column18({ name: "is_email_verified", type: "boolean", default: false })
|
|
2065
2113
|
], User.prototype, "isEmailVerified", 2);
|
|
2066
2114
|
__decorateClass([
|
|
2067
|
-
|
|
2115
|
+
Column18({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2068
2116
|
], User.prototype, "isMobileVerified", 2);
|
|
2069
2117
|
__decorateClass([
|
|
2070
|
-
|
|
2118
|
+
Column18({ name: "is_password_set_by_user", type: "boolean", default: false })
|
|
2119
|
+
], User.prototype, "isPasswordSetByUser", 2);
|
|
2120
|
+
__decorateClass([
|
|
2121
|
+
Column18({
|
|
2071
2122
|
name: "last_login_at",
|
|
2072
2123
|
type: "timestamp with time zone",
|
|
2073
2124
|
nullable: true
|
|
2074
2125
|
})
|
|
2075
2126
|
], User.prototype, "lastLoginAt", 2);
|
|
2076
2127
|
__decorateClass([
|
|
2077
|
-
|
|
2128
|
+
Column18({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2078
2129
|
], User.prototype, "lastLoginIp", 2);
|
|
2079
2130
|
__decorateClass([
|
|
2080
|
-
|
|
2131
|
+
Column18({ name: "reset_token", type: "varchar", nullable: true })
|
|
2081
2132
|
], User.prototype, "resetToken", 2);
|
|
2082
2133
|
__decorateClass([
|
|
2083
|
-
|
|
2134
|
+
Column18({
|
|
2084
2135
|
name: "reset_token_expire_at",
|
|
2085
2136
|
type: "timestamp with time zone",
|
|
2086
2137
|
nullable: true
|
|
2087
2138
|
})
|
|
2088
2139
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2089
2140
|
__decorateClass([
|
|
2090
|
-
|
|
2141
|
+
OneToMany7(() => RefreshToken, (token) => token.user)
|
|
2091
2142
|
], User.prototype, "refreshTokens", 2);
|
|
2092
2143
|
__decorateClass([
|
|
2093
|
-
|
|
2144
|
+
Column18({
|
|
2094
2145
|
name: "provider",
|
|
2095
2146
|
type: "enum",
|
|
2096
2147
|
enum: Provider,
|
|
@@ -2099,22 +2150,22 @@ __decorateClass([
|
|
|
2099
2150
|
})
|
|
2100
2151
|
], User.prototype, "provider", 2);
|
|
2101
2152
|
__decorateClass([
|
|
2102
|
-
|
|
2153
|
+
Column18({ name: "provider_token", type: "varchar", nullable: true })
|
|
2103
2154
|
], User.prototype, "providerToken", 2);
|
|
2104
2155
|
__decorateClass([
|
|
2105
|
-
|
|
2156
|
+
Column18({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2106
2157
|
], User.prototype, "linkedInId", 2);
|
|
2107
2158
|
__decorateClass([
|
|
2108
|
-
|
|
2159
|
+
Column18({ name: "google_id", type: "varchar", nullable: true })
|
|
2109
2160
|
], User.prototype, "googleId", 2);
|
|
2110
2161
|
__decorateClass([
|
|
2111
|
-
|
|
2162
|
+
Column18({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2112
2163
|
], User.prototype, "gitLabsId", 2);
|
|
2113
2164
|
__decorateClass([
|
|
2114
|
-
|
|
2165
|
+
OneToMany7(() => Otp, (otp) => otp.user)
|
|
2115
2166
|
], User.prototype, "otps", 2);
|
|
2116
2167
|
__decorateClass([
|
|
2117
|
-
|
|
2168
|
+
OneToMany7(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2118
2169
|
], User.prototype, "senseloafLogs", 2);
|
|
2119
2170
|
__decorateClass([
|
|
2120
2171
|
OneToOne(
|
|
@@ -2126,31 +2177,31 @@ __decorateClass([
|
|
|
2126
2177
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2127
2178
|
], User.prototype, "companyProfile", 2);
|
|
2128
2179
|
__decorateClass([
|
|
2129
|
-
|
|
2180
|
+
OneToMany7(() => Job, (job) => job.user)
|
|
2130
2181
|
], User.prototype, "jobs", 2);
|
|
2131
2182
|
__decorateClass([
|
|
2132
|
-
|
|
2183
|
+
OneToMany7(() => Interview, (interview) => interview.user)
|
|
2133
2184
|
], User.prototype, "interviews", 2);
|
|
2134
2185
|
__decorateClass([
|
|
2135
|
-
|
|
2186
|
+
OneToMany7(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2136
2187
|
], User.prototype, "bankDetail", 2);
|
|
2137
2188
|
__decorateClass([
|
|
2138
|
-
|
|
2189
|
+
OneToMany7(
|
|
2139
2190
|
() => SystemPreference,
|
|
2140
2191
|
(systemPreference) => systemPreference.user
|
|
2141
2192
|
)
|
|
2142
2193
|
], User.prototype, "systemPreference", 2);
|
|
2143
2194
|
__decorateClass([
|
|
2144
|
-
|
|
2195
|
+
OneToMany7(() => Rating, (rating) => rating.reviewer)
|
|
2145
2196
|
], User.prototype, "givenRatings", 2);
|
|
2146
2197
|
__decorateClass([
|
|
2147
|
-
|
|
2198
|
+
OneToMany7(() => Rating, (rating) => rating.reviewee)
|
|
2148
2199
|
], User.prototype, "receivedRatings", 2);
|
|
2149
2200
|
__decorateClass([
|
|
2150
|
-
|
|
2201
|
+
OneToMany7(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2151
2202
|
], User.prototype, "jobApplications", 2);
|
|
2152
2203
|
__decorateClass([
|
|
2153
|
-
|
|
2204
|
+
OneToMany7(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2154
2205
|
], User.prototype, "companyRole", 2);
|
|
2155
2206
|
__decorateClass([
|
|
2156
2207
|
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
@@ -2159,7 +2210,7 @@ __decorateClass([
|
|
|
2159
2210
|
OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2160
2211
|
], User.prototype, "freelancerEducation", 2);
|
|
2161
2212
|
User = __decorateClass([
|
|
2162
|
-
|
|
2213
|
+
Entity17("users")
|
|
2163
2214
|
], User);
|
|
2164
2215
|
|
|
2165
2216
|
// src/entities/rating.entity.ts
|
|
@@ -2171,36 +2222,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2171
2222
|
var Rating = class extends BaseEntity {
|
|
2172
2223
|
};
|
|
2173
2224
|
__decorateClass([
|
|
2174
|
-
|
|
2175
|
-
|
|
2225
|
+
Column19({ name: "reviewer_id", type: "integer" }),
|
|
2226
|
+
Index15()
|
|
2176
2227
|
], Rating.prototype, "reviewer_id", 2);
|
|
2177
2228
|
__decorateClass([
|
|
2178
|
-
|
|
2179
|
-
|
|
2229
|
+
ManyToOne17(() => User, { onDelete: "CASCADE" }),
|
|
2230
|
+
JoinColumn17({ name: "reviewer_id" })
|
|
2180
2231
|
], Rating.prototype, "reviewer", 2);
|
|
2181
2232
|
__decorateClass([
|
|
2182
|
-
|
|
2183
|
-
|
|
2233
|
+
Column19({ name: "reviewee_id", type: "integer" }),
|
|
2234
|
+
Index15()
|
|
2184
2235
|
], Rating.prototype, "reviewee_id", 2);
|
|
2185
2236
|
__decorateClass([
|
|
2186
|
-
|
|
2187
|
-
|
|
2237
|
+
ManyToOne17(() => User, { onDelete: "CASCADE" }),
|
|
2238
|
+
JoinColumn17({ name: "reviewee_id" })
|
|
2188
2239
|
], Rating.prototype, "reviewee", 2);
|
|
2189
2240
|
__decorateClass([
|
|
2190
|
-
|
|
2241
|
+
Column19({
|
|
2191
2242
|
type: "enum",
|
|
2192
2243
|
enum: RatingTypeEnum,
|
|
2193
2244
|
nullable: true
|
|
2194
2245
|
})
|
|
2195
2246
|
], Rating.prototype, "ratingType", 2);
|
|
2196
2247
|
__decorateClass([
|
|
2197
|
-
|
|
2248
|
+
Column19({ type: "integer", nullable: true })
|
|
2198
2249
|
], Rating.prototype, "rating", 2);
|
|
2199
2250
|
__decorateClass([
|
|
2200
|
-
|
|
2251
|
+
Column19({ type: "text", nullable: true })
|
|
2201
2252
|
], Rating.prototype, "review", 2);
|
|
2202
2253
|
Rating = __decorateClass([
|
|
2203
|
-
|
|
2254
|
+
Entity18("ratings")
|
|
2204
2255
|
], Rating);
|
|
2205
2256
|
|
|
2206
2257
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2666,7 +2717,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2666
2717
|
};
|
|
2667
2718
|
|
|
2668
2719
|
// src/entities/question.entity.ts
|
|
2669
|
-
import { Entity as
|
|
2720
|
+
import { Entity as Entity19, Column as Column20 } from "typeorm";
|
|
2670
2721
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2671
2722
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2672
2723
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2675,16 +2726,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2675
2726
|
var Question = class extends BaseEntity {
|
|
2676
2727
|
};
|
|
2677
2728
|
__decorateClass([
|
|
2678
|
-
|
|
2729
|
+
Column20({ name: "question", type: "varchar" })
|
|
2679
2730
|
], Question.prototype, "question", 2);
|
|
2680
2731
|
__decorateClass([
|
|
2681
|
-
|
|
2732
|
+
Column20({ name: "hint", type: "varchar", nullable: true })
|
|
2682
2733
|
], Question.prototype, "hint", 2);
|
|
2683
2734
|
__decorateClass([
|
|
2684
|
-
|
|
2735
|
+
Column20({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2685
2736
|
], Question.prototype, "slug", 2);
|
|
2686
2737
|
__decorateClass([
|
|
2687
|
-
|
|
2738
|
+
Column20({
|
|
2688
2739
|
name: "question_for",
|
|
2689
2740
|
type: "enum",
|
|
2690
2741
|
enum: QuestionFor,
|
|
@@ -2692,76 +2743,76 @@ __decorateClass([
|
|
|
2692
2743
|
})
|
|
2693
2744
|
], Question.prototype, "questionFor", 2);
|
|
2694
2745
|
__decorateClass([
|
|
2695
|
-
|
|
2746
|
+
Column20({ name: "type", type: "varchar", nullable: true })
|
|
2696
2747
|
], Question.prototype, "type", 2);
|
|
2697
2748
|
__decorateClass([
|
|
2698
|
-
|
|
2749
|
+
Column20({ name: "options", type: "jsonb", nullable: true })
|
|
2699
2750
|
], Question.prototype, "options", 2);
|
|
2700
2751
|
__decorateClass([
|
|
2701
|
-
|
|
2752
|
+
Column20({ name: "is_active", type: "boolean", default: false })
|
|
2702
2753
|
], Question.prototype, "isActive", 2);
|
|
2703
2754
|
Question = __decorateClass([
|
|
2704
|
-
|
|
2755
|
+
Entity19("questions")
|
|
2705
2756
|
], Question);
|
|
2706
2757
|
|
|
2707
2758
|
// src/entities/job-role.entity.ts
|
|
2708
|
-
import { Entity as
|
|
2759
|
+
import { Entity as Entity20, Column as Column21 } from "typeorm";
|
|
2709
2760
|
var JobRoles = class extends BaseEntity {
|
|
2710
2761
|
};
|
|
2711
2762
|
__decorateClass([
|
|
2712
|
-
|
|
2763
|
+
Column21({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2713
2764
|
], JobRoles.prototype, "slug", 2);
|
|
2714
2765
|
__decorateClass([
|
|
2715
|
-
|
|
2766
|
+
Column21({ name: "name", type: "varchar", nullable: true })
|
|
2716
2767
|
], JobRoles.prototype, "name", 2);
|
|
2717
2768
|
__decorateClass([
|
|
2718
|
-
|
|
2769
|
+
Column21({ name: "is_active", type: "boolean", default: true })
|
|
2719
2770
|
], JobRoles.prototype, "isActive", 2);
|
|
2720
2771
|
JobRoles = __decorateClass([
|
|
2721
|
-
|
|
2772
|
+
Entity20("job_roles")
|
|
2722
2773
|
], JobRoles);
|
|
2723
2774
|
|
|
2724
2775
|
// src/entities/plan.entity.ts
|
|
2725
|
-
import { Entity as
|
|
2776
|
+
import { Entity as Entity22, Column as Column23, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2726
2777
|
|
|
2727
2778
|
// src/entities/feature.entity.ts
|
|
2728
|
-
import { Entity as
|
|
2779
|
+
import { Entity as Entity21, Column as Column22, ManyToMany } from "typeorm";
|
|
2729
2780
|
var Feature = class extends BaseEntity {
|
|
2730
2781
|
};
|
|
2731
2782
|
__decorateClass([
|
|
2732
|
-
|
|
2783
|
+
Column22({ name: "name", type: "varchar", unique: true })
|
|
2733
2784
|
], Feature.prototype, "name", 2);
|
|
2734
2785
|
__decorateClass([
|
|
2735
2786
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2736
2787
|
], Feature.prototype, "plans", 2);
|
|
2737
2788
|
Feature = __decorateClass([
|
|
2738
|
-
|
|
2789
|
+
Entity21("features")
|
|
2739
2790
|
], Feature);
|
|
2740
2791
|
|
|
2741
2792
|
// src/entities/plan.entity.ts
|
|
2742
2793
|
var Plan = class extends BaseEntity {
|
|
2743
2794
|
};
|
|
2744
2795
|
__decorateClass([
|
|
2745
|
-
|
|
2796
|
+
Column23({ name: "name", type: "varchar", unique: true })
|
|
2746
2797
|
], Plan.prototype, "name", 2);
|
|
2747
2798
|
__decorateClass([
|
|
2748
|
-
|
|
2799
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2749
2800
|
], Plan.prototype, "description", 2);
|
|
2750
2801
|
__decorateClass([
|
|
2751
|
-
|
|
2802
|
+
Column23({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2752
2803
|
], Plan.prototype, "price", 2);
|
|
2753
2804
|
__decorateClass([
|
|
2754
|
-
|
|
2805
|
+
Column23({ name: "billing_period", type: "varchar" })
|
|
2755
2806
|
], Plan.prototype, "billingPeriod", 2);
|
|
2756
2807
|
__decorateClass([
|
|
2757
|
-
|
|
2808
|
+
Column23({ name: "is_current", type: "boolean", default: false })
|
|
2758
2809
|
], Plan.prototype, "isCurrent", 2);
|
|
2759
2810
|
__decorateClass([
|
|
2760
2811
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2761
2812
|
JoinTable()
|
|
2762
2813
|
], Plan.prototype, "features", 2);
|
|
2763
2814
|
Plan = __decorateClass([
|
|
2764
|
-
|
|
2815
|
+
Entity22("plans")
|
|
2765
2816
|
], Plan);
|
|
2766
2817
|
export {
|
|
2767
2818
|
AUTHENTICATION_PATTERN,
|
|
@@ -2809,6 +2860,7 @@ export {
|
|
|
2809
2860
|
FreelancerWorkShowcaseDto,
|
|
2810
2861
|
FromUsOn,
|
|
2811
2862
|
Interview,
|
|
2863
|
+
InterviewSkill,
|
|
2812
2864
|
InterviewStatusEnum,
|
|
2813
2865
|
JOB_PATTERN,
|
|
2814
2866
|
JOB_ROLE_PATTERN,
|