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