@experts_hub/shared 1.0.208 → 1.0.210
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/freelancer-assessment.entity.d.ts +1 -0
- package/dist/entities/job.entity.d.ts +10 -0
- package/dist/index.d.mts +54 -39
- package/dist/index.d.ts +54 -39
- package/dist/index.js +526 -478
- package/dist/index.mjs +563 -514
- package/dist/modules/freelancer-admin/dto/create-freelancer.dto.d.ts +1 -1
- package/dist/modules/freelancer-admin/dto/update-freelancer.dto.d.ts +10 -10
- package/dist/modules/job/pattern/pattern.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -702,6 +702,13 @@ var JOB_PATTERN = {
|
|
|
702
702
|
updateJobStatus: "update.job.status",
|
|
703
703
|
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills"
|
|
704
704
|
};
|
|
705
|
+
var JOB_ADMIN_PATTERN = {
|
|
706
|
+
adminFetchJobList: "admin.fetch.job.list",
|
|
707
|
+
adminFetchJobById: "admin.fetch.job.by.id",
|
|
708
|
+
adminCreateJob: "admin.create.job",
|
|
709
|
+
adminUpdateJob: "admin.update.job",
|
|
710
|
+
adminDeleteJob: "admin.delete.job"
|
|
711
|
+
};
|
|
705
712
|
|
|
706
713
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
707
714
|
import {
|
|
@@ -1063,17 +1070,17 @@ import {
|
|
|
1063
1070
|
} from "class-validator";
|
|
1064
1071
|
|
|
1065
1072
|
// src/entities/rating.entity.ts
|
|
1066
|
-
import { Entity as
|
|
1073
|
+
import { Entity as Entity34, Column as Column35, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30, Index as Index27 } from "typeorm";
|
|
1067
1074
|
|
|
1068
1075
|
// src/entities/user.entity.ts
|
|
1069
1076
|
import {
|
|
1070
|
-
Entity as
|
|
1071
|
-
Column as
|
|
1072
|
-
OneToMany as
|
|
1077
|
+
Entity as Entity33,
|
|
1078
|
+
Column as Column34,
|
|
1079
|
+
OneToMany as OneToMany13,
|
|
1073
1080
|
OneToOne,
|
|
1074
1081
|
Index as Index26,
|
|
1075
|
-
ManyToOne as
|
|
1076
|
-
JoinColumn as
|
|
1082
|
+
ManyToOne as ManyToOne29,
|
|
1083
|
+
JoinColumn as JoinColumn29
|
|
1077
1084
|
} from "typeorm";
|
|
1078
1085
|
|
|
1079
1086
|
// src/entities/base.entity.ts
|
|
@@ -1520,12 +1527,12 @@ CompanyProfile = __decorateClass([
|
|
|
1520
1527
|
|
|
1521
1528
|
// src/entities/job.entity.ts
|
|
1522
1529
|
import {
|
|
1523
|
-
Entity as
|
|
1524
|
-
Column as
|
|
1530
|
+
Entity as Entity14,
|
|
1531
|
+
Column as Column15,
|
|
1525
1532
|
Index as Index8,
|
|
1526
|
-
ManyToOne as
|
|
1527
|
-
JoinColumn as
|
|
1528
|
-
OneToMany as
|
|
1533
|
+
ManyToOne as ManyToOne12,
|
|
1534
|
+
JoinColumn as JoinColumn12,
|
|
1535
|
+
OneToMany as OneToMany7
|
|
1529
1536
|
} from "typeorm";
|
|
1530
1537
|
|
|
1531
1538
|
// src/entities/job-skill.entity.ts
|
|
@@ -1794,6 +1801,182 @@ Interview = __decorateClass([
|
|
|
1794
1801
|
Entity10("interviews")
|
|
1795
1802
|
], Interview);
|
|
1796
1803
|
|
|
1804
|
+
// src/entities/country.entity.ts
|
|
1805
|
+
import {
|
|
1806
|
+
Entity as Entity13,
|
|
1807
|
+
Column as Column14,
|
|
1808
|
+
OneToMany as OneToMany6
|
|
1809
|
+
} from "typeorm";
|
|
1810
|
+
|
|
1811
|
+
// src/entities/state.entity.ts
|
|
1812
|
+
import {
|
|
1813
|
+
Entity as Entity12,
|
|
1814
|
+
Column as Column13,
|
|
1815
|
+
ManyToOne as ManyToOne11,
|
|
1816
|
+
JoinColumn as JoinColumn11,
|
|
1817
|
+
OneToMany as OneToMany5
|
|
1818
|
+
} from "typeorm";
|
|
1819
|
+
|
|
1820
|
+
// src/entities/city.entity.ts
|
|
1821
|
+
import {
|
|
1822
|
+
Entity as Entity11,
|
|
1823
|
+
Column as Column12,
|
|
1824
|
+
ManyToOne as ManyToOne10,
|
|
1825
|
+
JoinColumn as JoinColumn10
|
|
1826
|
+
} from "typeorm";
|
|
1827
|
+
var City = class extends BaseEntity {
|
|
1828
|
+
};
|
|
1829
|
+
__decorateClass([
|
|
1830
|
+
Column12({
|
|
1831
|
+
name: "country_id",
|
|
1832
|
+
type: "int",
|
|
1833
|
+
nullable: true,
|
|
1834
|
+
comment: "Id of the country"
|
|
1835
|
+
})
|
|
1836
|
+
], City.prototype, "countryId", 2);
|
|
1837
|
+
__decorateClass([
|
|
1838
|
+
ManyToOne10(() => Country),
|
|
1839
|
+
JoinColumn10({ name: "country_id" })
|
|
1840
|
+
], City.prototype, "country", 2);
|
|
1841
|
+
__decorateClass([
|
|
1842
|
+
Column12({
|
|
1843
|
+
name: "state_id",
|
|
1844
|
+
type: "int",
|
|
1845
|
+
nullable: false,
|
|
1846
|
+
comment: "Id of the state"
|
|
1847
|
+
})
|
|
1848
|
+
], City.prototype, "stateId", 2);
|
|
1849
|
+
__decorateClass([
|
|
1850
|
+
ManyToOne10(() => State, (state) => state.cities),
|
|
1851
|
+
JoinColumn10({ name: "state_id" })
|
|
1852
|
+
], City.prototype, "state", 2);
|
|
1853
|
+
__decorateClass([
|
|
1854
|
+
Column12({
|
|
1855
|
+
name: "city_code",
|
|
1856
|
+
type: "varchar",
|
|
1857
|
+
length: 100,
|
|
1858
|
+
nullable: false,
|
|
1859
|
+
unique: true,
|
|
1860
|
+
comment: "Code of the city"
|
|
1861
|
+
})
|
|
1862
|
+
], City.prototype, "cityCode", 2);
|
|
1863
|
+
__decorateClass([
|
|
1864
|
+
Column12({
|
|
1865
|
+
name: "city_name",
|
|
1866
|
+
type: "varchar",
|
|
1867
|
+
length: 100,
|
|
1868
|
+
nullable: false,
|
|
1869
|
+
comment: "Name of the city"
|
|
1870
|
+
})
|
|
1871
|
+
], City.prototype, "cityName", 2);
|
|
1872
|
+
__decorateClass([
|
|
1873
|
+
Column12({
|
|
1874
|
+
name: "is_active",
|
|
1875
|
+
type: "boolean",
|
|
1876
|
+
default: true,
|
|
1877
|
+
comment: "Flag indicating if the city is active"
|
|
1878
|
+
})
|
|
1879
|
+
], City.prototype, "isActive", 2);
|
|
1880
|
+
City = __decorateClass([
|
|
1881
|
+
Entity11("cities")
|
|
1882
|
+
], City);
|
|
1883
|
+
|
|
1884
|
+
// src/entities/state.entity.ts
|
|
1885
|
+
var State = class extends BaseEntity {
|
|
1886
|
+
};
|
|
1887
|
+
__decorateClass([
|
|
1888
|
+
Column13({
|
|
1889
|
+
name: "country_id",
|
|
1890
|
+
type: "int",
|
|
1891
|
+
nullable: false,
|
|
1892
|
+
comment: "Id of the country"
|
|
1893
|
+
})
|
|
1894
|
+
], State.prototype, "countryId", 2);
|
|
1895
|
+
__decorateClass([
|
|
1896
|
+
ManyToOne11(() => Country, (country) => country.states),
|
|
1897
|
+
JoinColumn11({ name: "country_id" })
|
|
1898
|
+
], State.prototype, "country", 2);
|
|
1899
|
+
__decorateClass([
|
|
1900
|
+
OneToMany5(() => City, (city) => city.state)
|
|
1901
|
+
], State.prototype, "cities", 2);
|
|
1902
|
+
__decorateClass([
|
|
1903
|
+
Column13({
|
|
1904
|
+
name: "state_name",
|
|
1905
|
+
type: "varchar",
|
|
1906
|
+
length: 100,
|
|
1907
|
+
nullable: false,
|
|
1908
|
+
comment: "Name of the state"
|
|
1909
|
+
})
|
|
1910
|
+
], State.prototype, "stateName", 2);
|
|
1911
|
+
__decorateClass([
|
|
1912
|
+
Column13({
|
|
1913
|
+
name: "is_active",
|
|
1914
|
+
type: "boolean",
|
|
1915
|
+
default: true,
|
|
1916
|
+
comment: "Flag indicating if the state is active"
|
|
1917
|
+
})
|
|
1918
|
+
], State.prototype, "isActive", 2);
|
|
1919
|
+
State = __decorateClass([
|
|
1920
|
+
Entity12("states")
|
|
1921
|
+
], State);
|
|
1922
|
+
|
|
1923
|
+
// src/entities/country.entity.ts
|
|
1924
|
+
var Country = class extends BaseEntity {
|
|
1925
|
+
};
|
|
1926
|
+
__decorateClass([
|
|
1927
|
+
OneToMany6(() => State, (state) => state.country)
|
|
1928
|
+
], Country.prototype, "states", 2);
|
|
1929
|
+
__decorateClass([
|
|
1930
|
+
Column14({
|
|
1931
|
+
name: "country_name",
|
|
1932
|
+
type: "varchar",
|
|
1933
|
+
length: 100,
|
|
1934
|
+
nullable: false,
|
|
1935
|
+
// Set to false for required
|
|
1936
|
+
comment: "Name of the country"
|
|
1937
|
+
})
|
|
1938
|
+
], Country.prototype, "countryName", 2);
|
|
1939
|
+
__decorateClass([
|
|
1940
|
+
Column14({
|
|
1941
|
+
name: "country_iso_code",
|
|
1942
|
+
type: "varchar",
|
|
1943
|
+
length: 2,
|
|
1944
|
+
nullable: false,
|
|
1945
|
+
// Must be required if it's unique
|
|
1946
|
+
unique: true,
|
|
1947
|
+
comment: "ISO 3166-1 alpha-2 country code"
|
|
1948
|
+
})
|
|
1949
|
+
], Country.prototype, "countryIsoCode", 2);
|
|
1950
|
+
__decorateClass([
|
|
1951
|
+
Column14({
|
|
1952
|
+
name: "country_phone_code",
|
|
1953
|
+
type: "varchar",
|
|
1954
|
+
length: 10,
|
|
1955
|
+
nullable: true,
|
|
1956
|
+
comment: "International dialing code for the country"
|
|
1957
|
+
})
|
|
1958
|
+
], Country.prototype, "countryPhoneCode", 2);
|
|
1959
|
+
__decorateClass([
|
|
1960
|
+
Column14({
|
|
1961
|
+
name: "currency",
|
|
1962
|
+
type: "varchar",
|
|
1963
|
+
length: 3,
|
|
1964
|
+
nullable: true,
|
|
1965
|
+
comment: "ISO 4217 currency code"
|
|
1966
|
+
})
|
|
1967
|
+
], Country.prototype, "currency", 2);
|
|
1968
|
+
__decorateClass([
|
|
1969
|
+
Column14({
|
|
1970
|
+
name: "is_active",
|
|
1971
|
+
type: "boolean",
|
|
1972
|
+
default: true,
|
|
1973
|
+
comment: "Flag indicating if the country is active"
|
|
1974
|
+
})
|
|
1975
|
+
], Country.prototype, "isActive", 2);
|
|
1976
|
+
Country = __decorateClass([
|
|
1977
|
+
Entity13("countries")
|
|
1978
|
+
], Country);
|
|
1979
|
+
|
|
1797
1980
|
// src/entities/job.entity.ts
|
|
1798
1981
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
1799
1982
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -1831,28 +2014,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
1831
2014
|
var Job = class extends BaseEntity {
|
|
1832
2015
|
};
|
|
1833
2016
|
__decorateClass([
|
|
1834
|
-
|
|
2017
|
+
Column15({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
1835
2018
|
], Job.prototype, "jobId", 2);
|
|
1836
2019
|
// individual index to find jobs by user
|
|
1837
2020
|
__decorateClass([
|
|
1838
|
-
|
|
2021
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
1839
2022
|
Index8()
|
|
1840
2023
|
], Job.prototype, "userId", 2);
|
|
1841
2024
|
__decorateClass([
|
|
1842
|
-
|
|
1843
|
-
|
|
2025
|
+
ManyToOne12(() => User, (user) => user.jobs),
|
|
2026
|
+
JoinColumn12({ name: "user_id" })
|
|
1844
2027
|
], Job.prototype, "user", 2);
|
|
1845
2028
|
__decorateClass([
|
|
1846
|
-
|
|
2029
|
+
Column15({ name: "country_id", type: "int", nullable: true })
|
|
2030
|
+
], Job.prototype, "countryId", 2);
|
|
2031
|
+
__decorateClass([
|
|
2032
|
+
ManyToOne12(() => Country),
|
|
2033
|
+
JoinColumn12({ name: "country_id" })
|
|
2034
|
+
], Job.prototype, "country", 2);
|
|
2035
|
+
__decorateClass([
|
|
2036
|
+
Column15({ name: "state_id", type: "int", nullable: true })
|
|
2037
|
+
], Job.prototype, "stateId", 2);
|
|
2038
|
+
__decorateClass([
|
|
2039
|
+
ManyToOne12(() => State),
|
|
2040
|
+
JoinColumn12({ name: "state_id" })
|
|
2041
|
+
], Job.prototype, "state", 2);
|
|
2042
|
+
__decorateClass([
|
|
2043
|
+
Column15({ name: "city_id", type: "int", nullable: true })
|
|
2044
|
+
], Job.prototype, "cityId", 2);
|
|
2045
|
+
__decorateClass([
|
|
2046
|
+
ManyToOne12(() => City),
|
|
2047
|
+
JoinColumn12({ name: "city_id" })
|
|
2048
|
+
], Job.prototype, "city", 2);
|
|
2049
|
+
__decorateClass([
|
|
2050
|
+
Column15({ name: "job_role", type: "varchar", nullable: true })
|
|
1847
2051
|
], Job.prototype, "jobRole", 2);
|
|
1848
2052
|
__decorateClass([
|
|
1849
|
-
|
|
2053
|
+
Column15({ name: "note", type: "varchar", nullable: true })
|
|
1850
2054
|
], Job.prototype, "note", 2);
|
|
1851
2055
|
__decorateClass([
|
|
1852
|
-
|
|
2056
|
+
Column15({ name: "openings", type: "integer", default: 0 })
|
|
1853
2057
|
], Job.prototype, "openings", 2);
|
|
1854
2058
|
__decorateClass([
|
|
1855
|
-
|
|
2059
|
+
Column15({
|
|
1856
2060
|
name: "location",
|
|
1857
2061
|
type: "enum",
|
|
1858
2062
|
enum: JobLocationEnum,
|
|
@@ -1860,7 +2064,7 @@ __decorateClass([
|
|
|
1860
2064
|
})
|
|
1861
2065
|
], Job.prototype, "location", 2);
|
|
1862
2066
|
__decorateClass([
|
|
1863
|
-
|
|
2067
|
+
Column15({
|
|
1864
2068
|
name: "type_of_employment",
|
|
1865
2069
|
type: "enum",
|
|
1866
2070
|
enum: TypeOfEmploymentEnum,
|
|
@@ -1868,10 +2072,10 @@ __decorateClass([
|
|
|
1868
2072
|
})
|
|
1869
2073
|
], Job.prototype, "typeOfEmployment", 2);
|
|
1870
2074
|
__decorateClass([
|
|
1871
|
-
|
|
2075
|
+
Column15({ name: "currency", type: "varchar", default: "USD" })
|
|
1872
2076
|
], Job.prototype, "currency", 2);
|
|
1873
2077
|
__decorateClass([
|
|
1874
|
-
|
|
2078
|
+
Column15({
|
|
1875
2079
|
name: "expected_salary_from",
|
|
1876
2080
|
type: "decimal",
|
|
1877
2081
|
precision: 10,
|
|
@@ -1880,7 +2084,7 @@ __decorateClass([
|
|
|
1880
2084
|
})
|
|
1881
2085
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
1882
2086
|
__decorateClass([
|
|
1883
|
-
|
|
2087
|
+
Column15({
|
|
1884
2088
|
name: "expected_salary_to",
|
|
1885
2089
|
type: "decimal",
|
|
1886
2090
|
precision: 10,
|
|
@@ -1889,13 +2093,16 @@ __decorateClass([
|
|
|
1889
2093
|
})
|
|
1890
2094
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
1891
2095
|
__decorateClass([
|
|
1892
|
-
|
|
2096
|
+
Column15({ name: "tentative_start_date", type: "date", nullable: true })
|
|
1893
2097
|
], Job.prototype, "tentativeStartDate", 2);
|
|
1894
2098
|
__decorateClass([
|
|
1895
|
-
|
|
2099
|
+
Column15({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2100
|
+
], Job.prototype, "tentativeEndDate", 2);
|
|
2101
|
+
__decorateClass([
|
|
2102
|
+
Column15({ name: "duration", type: "varchar", nullable: true })
|
|
1896
2103
|
], Job.prototype, "duration", 2);
|
|
1897
2104
|
__decorateClass([
|
|
1898
|
-
|
|
2105
|
+
Column15({
|
|
1899
2106
|
name: "duration_type",
|
|
1900
2107
|
type: "enum",
|
|
1901
2108
|
enum: DurationTypeEnum,
|
|
@@ -1903,13 +2110,13 @@ __decorateClass([
|
|
|
1903
2110
|
})
|
|
1904
2111
|
], Job.prototype, "durationType", 2);
|
|
1905
2112
|
__decorateClass([
|
|
1906
|
-
|
|
2113
|
+
Column15({ name: "description", type: "varchar", nullable: true })
|
|
1907
2114
|
], Job.prototype, "description", 2);
|
|
1908
2115
|
__decorateClass([
|
|
1909
|
-
|
|
2116
|
+
Column15({ name: "additional_comment", type: "varchar", nullable: true })
|
|
1910
2117
|
], Job.prototype, "additionalComment", 2);
|
|
1911
2118
|
__decorateClass([
|
|
1912
|
-
|
|
2119
|
+
Column15({
|
|
1913
2120
|
name: "onboarding_tat",
|
|
1914
2121
|
type: "varchar",
|
|
1915
2122
|
length: 50,
|
|
@@ -1917,14 +2124,14 @@ __decorateClass([
|
|
|
1917
2124
|
})
|
|
1918
2125
|
], Job.prototype, "onboardingTat", 2);
|
|
1919
2126
|
__decorateClass([
|
|
1920
|
-
|
|
2127
|
+
Column15({
|
|
1921
2128
|
name: "candidate_communication_skills",
|
|
1922
2129
|
type: "varchar",
|
|
1923
2130
|
nullable: true
|
|
1924
2131
|
})
|
|
1925
2132
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
1926
2133
|
__decorateClass([
|
|
1927
|
-
|
|
2134
|
+
Column15({
|
|
1928
2135
|
name: "step_completed",
|
|
1929
2136
|
type: "enum",
|
|
1930
2137
|
enum: Step,
|
|
@@ -1932,7 +2139,7 @@ __decorateClass([
|
|
|
1932
2139
|
})
|
|
1933
2140
|
], Job.prototype, "stepCompleted", 2);
|
|
1934
2141
|
__decorateClass([
|
|
1935
|
-
|
|
2142
|
+
Column15({
|
|
1936
2143
|
name: "status",
|
|
1937
2144
|
type: "enum",
|
|
1938
2145
|
enum: JobStatusEnum,
|
|
@@ -1940,35 +2147,35 @@ __decorateClass([
|
|
|
1940
2147
|
})
|
|
1941
2148
|
], Job.prototype, "status", 2);
|
|
1942
2149
|
__decorateClass([
|
|
1943
|
-
|
|
2150
|
+
Column15({ name: "viewed_count", type: "integer", default: 0 })
|
|
1944
2151
|
], Job.prototype, "viewedCount", 2);
|
|
1945
2152
|
__decorateClass([
|
|
1946
|
-
|
|
2153
|
+
Column15({ name: "application_count", type: "integer", default: 0 })
|
|
1947
2154
|
], Job.prototype, "applicationCount", 2);
|
|
1948
2155
|
__decorateClass([
|
|
1949
|
-
|
|
2156
|
+
OneToMany7(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
1950
2157
|
], Job.prototype, "jobSkills", 2);
|
|
1951
2158
|
__decorateClass([
|
|
1952
|
-
|
|
2159
|
+
OneToMany7(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
1953
2160
|
cascade: true
|
|
1954
2161
|
})
|
|
1955
2162
|
], Job.prototype, "jobApplications", 2);
|
|
1956
2163
|
__decorateClass([
|
|
1957
|
-
|
|
2164
|
+
OneToMany7(() => Interview, (interview) => interview.job, {
|
|
1958
2165
|
cascade: true
|
|
1959
2166
|
})
|
|
1960
2167
|
], Job.prototype, "interviews", 2);
|
|
1961
2168
|
Job = __decorateClass([
|
|
1962
|
-
|
|
2169
|
+
Entity14("jobs")
|
|
1963
2170
|
], Job);
|
|
1964
2171
|
|
|
1965
2172
|
// src/entities/bank-details.entity.ts
|
|
1966
2173
|
import {
|
|
1967
|
-
Entity as
|
|
1968
|
-
Column as
|
|
2174
|
+
Entity as Entity15,
|
|
2175
|
+
Column as Column16,
|
|
1969
2176
|
Index as Index9,
|
|
1970
|
-
ManyToOne as
|
|
1971
|
-
JoinColumn as
|
|
2177
|
+
ManyToOne as ManyToOne13,
|
|
2178
|
+
JoinColumn as JoinColumn13
|
|
1972
2179
|
} from "typeorm";
|
|
1973
2180
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
1974
2181
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -1984,48 +2191,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
1984
2191
|
};
|
|
1985
2192
|
// individual index to find bank details by user
|
|
1986
2193
|
__decorateClass([
|
|
1987
|
-
|
|
2194
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
1988
2195
|
Index9()
|
|
1989
2196
|
], BankDetail.prototype, "userId", 2);
|
|
1990
2197
|
__decorateClass([
|
|
1991
|
-
|
|
1992
|
-
|
|
2198
|
+
ManyToOne13(() => User, (user) => user.bankDetail),
|
|
2199
|
+
JoinColumn13({ name: "user_id" })
|
|
1993
2200
|
], BankDetail.prototype, "user", 2);
|
|
1994
2201
|
__decorateClass([
|
|
1995
|
-
|
|
2202
|
+
Column16({ name: "name", type: "varchar", nullable: true })
|
|
1996
2203
|
], BankDetail.prototype, "name", 2);
|
|
1997
2204
|
__decorateClass([
|
|
1998
|
-
|
|
2205
|
+
Column16({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1999
2206
|
], BankDetail.prototype, "mobile", 2);
|
|
2000
2207
|
__decorateClass([
|
|
2001
|
-
|
|
2208
|
+
Column16({ name: "email", type: "varchar", unique: true })
|
|
2002
2209
|
], BankDetail.prototype, "email", 2);
|
|
2003
2210
|
__decorateClass([
|
|
2004
|
-
|
|
2211
|
+
Column16({ name: "address", type: "varchar", nullable: true })
|
|
2005
2212
|
], BankDetail.prototype, "address", 2);
|
|
2006
2213
|
__decorateClass([
|
|
2007
|
-
|
|
2214
|
+
Column16({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2008
2215
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2009
2216
|
__decorateClass([
|
|
2010
|
-
|
|
2217
|
+
Column16({ name: "bank_name", type: "varchar", nullable: true })
|
|
2011
2218
|
], BankDetail.prototype, "bankName", 2);
|
|
2012
2219
|
__decorateClass([
|
|
2013
|
-
|
|
2220
|
+
Column16({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2014
2221
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2015
2222
|
__decorateClass([
|
|
2016
|
-
|
|
2223
|
+
Column16({ name: "branch_name", type: "varchar", nullable: true })
|
|
2017
2224
|
], BankDetail.prototype, "branchName", 2);
|
|
2018
2225
|
__decorateClass([
|
|
2019
|
-
|
|
2226
|
+
Column16({ name: "routing_no", type: "varchar", nullable: true })
|
|
2020
2227
|
], BankDetail.prototype, "routingNo", 2);
|
|
2021
2228
|
__decorateClass([
|
|
2022
|
-
|
|
2229
|
+
Column16({ name: "aba_no", type: "varchar", nullable: true })
|
|
2023
2230
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2024
2231
|
__decorateClass([
|
|
2025
|
-
|
|
2232
|
+
Column16({ name: "iban", type: "varchar", nullable: true })
|
|
2026
2233
|
], BankDetail.prototype, "iban", 2);
|
|
2027
2234
|
__decorateClass([
|
|
2028
|
-
|
|
2235
|
+
Column16({
|
|
2029
2236
|
name: "account_type",
|
|
2030
2237
|
type: "enum",
|
|
2031
2238
|
enum: BankAccountTypeEnum,
|
|
@@ -2033,7 +2240,7 @@ __decorateClass([
|
|
|
2033
2240
|
})
|
|
2034
2241
|
], BankDetail.prototype, "accountType", 2);
|
|
2035
2242
|
__decorateClass([
|
|
2036
|
-
|
|
2243
|
+
Column16({
|
|
2037
2244
|
name: "account_scope",
|
|
2038
2245
|
type: "enum",
|
|
2039
2246
|
enum: BankAccountScopeEnum,
|
|
@@ -2041,263 +2248,263 @@ __decorateClass([
|
|
|
2041
2248
|
})
|
|
2042
2249
|
], BankDetail.prototype, "accountScope", 2);
|
|
2043
2250
|
BankDetail = __decorateClass([
|
|
2044
|
-
|
|
2251
|
+
Entity15("bank_details")
|
|
2045
2252
|
], BankDetail);
|
|
2046
2253
|
|
|
2047
2254
|
// src/entities/system-preference.entity.ts
|
|
2048
2255
|
import {
|
|
2049
|
-
Entity as
|
|
2050
|
-
Column as
|
|
2256
|
+
Entity as Entity16,
|
|
2257
|
+
Column as Column17,
|
|
2051
2258
|
Index as Index10,
|
|
2052
|
-
ManyToOne as
|
|
2053
|
-
JoinColumn as
|
|
2259
|
+
ManyToOne as ManyToOne14,
|
|
2260
|
+
JoinColumn as JoinColumn14
|
|
2054
2261
|
} from "typeorm";
|
|
2055
2262
|
var SystemPreference = class extends BaseEntity {
|
|
2056
2263
|
};
|
|
2057
2264
|
// individual index to find system preference by user
|
|
2058
2265
|
__decorateClass([
|
|
2059
|
-
|
|
2266
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2060
2267
|
Index10()
|
|
2061
2268
|
], SystemPreference.prototype, "userId", 2);
|
|
2062
2269
|
__decorateClass([
|
|
2063
|
-
|
|
2064
|
-
|
|
2270
|
+
ManyToOne14(() => User, (user) => user.systemPreference),
|
|
2271
|
+
JoinColumn14({ name: "user_id" })
|
|
2065
2272
|
], SystemPreference.prototype, "user", 2);
|
|
2066
2273
|
__decorateClass([
|
|
2067
|
-
|
|
2274
|
+
Column17({ name: "key", type: "varchar", nullable: false })
|
|
2068
2275
|
], SystemPreference.prototype, "key", 2);
|
|
2069
2276
|
__decorateClass([
|
|
2070
|
-
|
|
2277
|
+
Column17({ name: "value", type: "boolean", default: false })
|
|
2071
2278
|
], SystemPreference.prototype, "value", 2);
|
|
2072
2279
|
SystemPreference = __decorateClass([
|
|
2073
|
-
|
|
2280
|
+
Entity16("system_preferences")
|
|
2074
2281
|
], SystemPreference);
|
|
2075
2282
|
|
|
2076
2283
|
// src/entities/freelancer-experience.entity.ts
|
|
2077
2284
|
import {
|
|
2078
|
-
Entity as
|
|
2079
|
-
Column as
|
|
2285
|
+
Entity as Entity17,
|
|
2286
|
+
Column as Column18,
|
|
2080
2287
|
Index as Index11,
|
|
2081
|
-
ManyToOne as
|
|
2082
|
-
JoinColumn as
|
|
2288
|
+
ManyToOne as ManyToOne15,
|
|
2289
|
+
JoinColumn as JoinColumn15
|
|
2083
2290
|
} from "typeorm";
|
|
2084
2291
|
var FreelancerExperience = class extends BaseEntity {
|
|
2085
2292
|
};
|
|
2086
2293
|
// individual index to find experence by user
|
|
2087
2294
|
__decorateClass([
|
|
2088
|
-
|
|
2295
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2089
2296
|
Index11()
|
|
2090
2297
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2091
2298
|
__decorateClass([
|
|
2092
|
-
|
|
2093
|
-
|
|
2299
|
+
ManyToOne15(() => User, (user) => user.freelancerExperience),
|
|
2300
|
+
JoinColumn15({ name: "user_id" })
|
|
2094
2301
|
], FreelancerExperience.prototype, "user", 2);
|
|
2095
2302
|
__decorateClass([
|
|
2096
|
-
|
|
2303
|
+
Column18({ name: "company_name", type: "varchar", nullable: true })
|
|
2097
2304
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2098
2305
|
__decorateClass([
|
|
2099
|
-
|
|
2306
|
+
Column18({ name: "designation", type: "varchar", nullable: true })
|
|
2100
2307
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2101
2308
|
__decorateClass([
|
|
2102
|
-
|
|
2309
|
+
Column18({ name: "job_duration", type: "varchar", nullable: true })
|
|
2103
2310
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2104
2311
|
__decorateClass([
|
|
2105
|
-
|
|
2312
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2106
2313
|
], FreelancerExperience.prototype, "description", 2);
|
|
2107
2314
|
FreelancerExperience = __decorateClass([
|
|
2108
|
-
|
|
2315
|
+
Entity17("freelancer_experiences")
|
|
2109
2316
|
], FreelancerExperience);
|
|
2110
2317
|
|
|
2111
2318
|
// src/entities/freelancer-education.entity.ts
|
|
2112
2319
|
import {
|
|
2113
|
-
Entity as
|
|
2114
|
-
Column as
|
|
2320
|
+
Entity as Entity18,
|
|
2321
|
+
Column as Column19,
|
|
2115
2322
|
Index as Index12,
|
|
2116
|
-
ManyToOne as
|
|
2117
|
-
JoinColumn as
|
|
2323
|
+
ManyToOne as ManyToOne16,
|
|
2324
|
+
JoinColumn as JoinColumn16
|
|
2118
2325
|
} from "typeorm";
|
|
2119
2326
|
var FreelancerEducation = class extends BaseEntity {
|
|
2120
2327
|
};
|
|
2121
2328
|
// individual index to find education by user
|
|
2122
2329
|
__decorateClass([
|
|
2123
|
-
|
|
2330
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2124
2331
|
Index12()
|
|
2125
2332
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2126
2333
|
__decorateClass([
|
|
2127
|
-
|
|
2128
|
-
|
|
2334
|
+
ManyToOne16(() => User, (user) => user.freelancerEducation),
|
|
2335
|
+
JoinColumn16({ name: "user_id" })
|
|
2129
2336
|
], FreelancerEducation.prototype, "user", 2);
|
|
2130
2337
|
__decorateClass([
|
|
2131
|
-
|
|
2338
|
+
Column19({ name: "degree", type: "varchar", nullable: true })
|
|
2132
2339
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2133
2340
|
__decorateClass([
|
|
2134
|
-
|
|
2341
|
+
Column19({ name: "university", type: "varchar", nullable: true })
|
|
2135
2342
|
], FreelancerEducation.prototype, "university", 2);
|
|
2136
2343
|
__decorateClass([
|
|
2137
|
-
|
|
2344
|
+
Column19({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2138
2345
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2139
2346
|
FreelancerEducation = __decorateClass([
|
|
2140
|
-
|
|
2347
|
+
Entity18("freelancer_educations")
|
|
2141
2348
|
], FreelancerEducation);
|
|
2142
2349
|
|
|
2143
2350
|
// src/entities/freelancer-project.entity.ts
|
|
2144
2351
|
import {
|
|
2145
|
-
Entity as
|
|
2146
|
-
Column as
|
|
2352
|
+
Entity as Entity19,
|
|
2353
|
+
Column as Column20,
|
|
2147
2354
|
Index as Index13,
|
|
2148
|
-
ManyToOne as
|
|
2149
|
-
JoinColumn as
|
|
2355
|
+
ManyToOne as ManyToOne17,
|
|
2356
|
+
JoinColumn as JoinColumn17
|
|
2150
2357
|
} from "typeorm";
|
|
2151
2358
|
var FreelancerProject = class extends BaseEntity {
|
|
2152
2359
|
};
|
|
2153
2360
|
// individual index to find project by user
|
|
2154
2361
|
__decorateClass([
|
|
2155
|
-
|
|
2362
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2156
2363
|
Index13()
|
|
2157
2364
|
], FreelancerProject.prototype, "userId", 2);
|
|
2158
2365
|
__decorateClass([
|
|
2159
|
-
|
|
2160
|
-
|
|
2366
|
+
ManyToOne17(() => User, (user) => user.freelancerProject),
|
|
2367
|
+
JoinColumn17({ name: "user_id" })
|
|
2161
2368
|
], FreelancerProject.prototype, "user", 2);
|
|
2162
2369
|
__decorateClass([
|
|
2163
|
-
|
|
2370
|
+
Column20({ name: "project_name", type: "varchar", nullable: true })
|
|
2164
2371
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2165
2372
|
__decorateClass([
|
|
2166
|
-
|
|
2373
|
+
Column20({ name: "start_date", type: "date", nullable: true })
|
|
2167
2374
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2168
2375
|
__decorateClass([
|
|
2169
|
-
|
|
2376
|
+
Column20({ name: "end_date", type: "date", nullable: true })
|
|
2170
2377
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2171
2378
|
__decorateClass([
|
|
2172
|
-
|
|
2379
|
+
Column20({ name: "client_name", type: "varchar", nullable: true })
|
|
2173
2380
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2174
2381
|
__decorateClass([
|
|
2175
|
-
|
|
2382
|
+
Column20({ name: "git_link", type: "varchar", nullable: true })
|
|
2176
2383
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2177
2384
|
__decorateClass([
|
|
2178
|
-
|
|
2385
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2179
2386
|
], FreelancerProject.prototype, "description", 2);
|
|
2180
2387
|
FreelancerProject = __decorateClass([
|
|
2181
|
-
|
|
2388
|
+
Entity19("freelancer_projects")
|
|
2182
2389
|
], FreelancerProject);
|
|
2183
2390
|
|
|
2184
2391
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2185
2392
|
import {
|
|
2186
|
-
Entity as
|
|
2187
|
-
Column as
|
|
2393
|
+
Entity as Entity20,
|
|
2394
|
+
Column as Column21,
|
|
2188
2395
|
Index as Index14,
|
|
2189
|
-
ManyToOne as
|
|
2190
|
-
JoinColumn as
|
|
2396
|
+
ManyToOne as ManyToOne18,
|
|
2397
|
+
JoinColumn as JoinColumn18
|
|
2191
2398
|
} from "typeorm";
|
|
2192
2399
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2193
2400
|
};
|
|
2194
2401
|
// individual index to find case study by user
|
|
2195
2402
|
__decorateClass([
|
|
2196
|
-
|
|
2403
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2197
2404
|
Index14()
|
|
2198
2405
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2199
2406
|
__decorateClass([
|
|
2200
|
-
|
|
2201
|
-
|
|
2407
|
+
ManyToOne18(() => User, (user) => user.freelancerCaseStudy),
|
|
2408
|
+
JoinColumn18({ name: "user_id" })
|
|
2202
2409
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2203
2410
|
__decorateClass([
|
|
2204
|
-
|
|
2411
|
+
Column21({ name: "project_name", type: "varchar", nullable: true })
|
|
2205
2412
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2206
2413
|
__decorateClass([
|
|
2207
|
-
|
|
2414
|
+
Column21({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2208
2415
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2209
2416
|
__decorateClass([
|
|
2210
|
-
|
|
2417
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2211
2418
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2212
2419
|
FreelancerCaseStudy = __decorateClass([
|
|
2213
|
-
|
|
2420
|
+
Entity20("freelancer_case_studies")
|
|
2214
2421
|
], FreelancerCaseStudy);
|
|
2215
2422
|
|
|
2216
2423
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2217
2424
|
import {
|
|
2218
|
-
Entity as
|
|
2219
|
-
Column as
|
|
2425
|
+
Entity as Entity21,
|
|
2426
|
+
Column as Column22,
|
|
2220
2427
|
Index as Index15,
|
|
2221
|
-
ManyToOne as
|
|
2222
|
-
JoinColumn as
|
|
2428
|
+
ManyToOne as ManyToOne19,
|
|
2429
|
+
JoinColumn as JoinColumn19
|
|
2223
2430
|
} from "typeorm";
|
|
2224
2431
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2225
2432
|
};
|
|
2226
2433
|
// individual index to find core skills by user
|
|
2227
2434
|
__decorateClass([
|
|
2228
|
-
|
|
2435
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2229
2436
|
Index15()
|
|
2230
2437
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2231
2438
|
__decorateClass([
|
|
2232
|
-
|
|
2233
|
-
|
|
2439
|
+
ManyToOne19(() => User, (user) => user.freelancerCoreSkill),
|
|
2440
|
+
JoinColumn19({ name: "user_id" })
|
|
2234
2441
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2235
2442
|
__decorateClass([
|
|
2236
|
-
|
|
2443
|
+
Column22({ name: "skill_name", type: "varchar", nullable: true })
|
|
2237
2444
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2238
2445
|
FreelancerCoreSkill = __decorateClass([
|
|
2239
|
-
|
|
2446
|
+
Entity21("freelancer_coreskills")
|
|
2240
2447
|
], FreelancerCoreSkill);
|
|
2241
2448
|
|
|
2242
2449
|
// src/entities/freelancer-tool.entity.ts
|
|
2243
2450
|
import {
|
|
2244
|
-
Entity as
|
|
2245
|
-
Column as
|
|
2451
|
+
Entity as Entity22,
|
|
2452
|
+
Column as Column23,
|
|
2246
2453
|
Index as Index16,
|
|
2247
|
-
ManyToOne as
|
|
2248
|
-
JoinColumn as
|
|
2454
|
+
ManyToOne as ManyToOne20,
|
|
2455
|
+
JoinColumn as JoinColumn20
|
|
2249
2456
|
} from "typeorm";
|
|
2250
2457
|
var FreelancerTool = class extends BaseEntity {
|
|
2251
2458
|
};
|
|
2252
2459
|
// individual index to find tool by user
|
|
2253
2460
|
__decorateClass([
|
|
2254
|
-
|
|
2461
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2255
2462
|
Index16()
|
|
2256
2463
|
], FreelancerTool.prototype, "userId", 2);
|
|
2257
2464
|
__decorateClass([
|
|
2258
|
-
|
|
2259
|
-
|
|
2465
|
+
ManyToOne20(() => User, (user) => user.freelancerTool),
|
|
2466
|
+
JoinColumn20({ name: "user_id" })
|
|
2260
2467
|
], FreelancerTool.prototype, "user", 2);
|
|
2261
2468
|
__decorateClass([
|
|
2262
|
-
|
|
2469
|
+
Column23({ name: "tool_name", type: "varchar", nullable: true })
|
|
2263
2470
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2264
2471
|
FreelancerTool = __decorateClass([
|
|
2265
|
-
|
|
2472
|
+
Entity22("freelancer_tools")
|
|
2266
2473
|
], FreelancerTool);
|
|
2267
2474
|
|
|
2268
2475
|
// src/entities/freelancer-framework.entity.ts
|
|
2269
2476
|
import {
|
|
2270
|
-
Entity as
|
|
2271
|
-
Column as
|
|
2477
|
+
Entity as Entity23,
|
|
2478
|
+
Column as Column24,
|
|
2272
2479
|
Index as Index17,
|
|
2273
|
-
ManyToOne as
|
|
2274
|
-
JoinColumn as
|
|
2480
|
+
ManyToOne as ManyToOne21,
|
|
2481
|
+
JoinColumn as JoinColumn21
|
|
2275
2482
|
} from "typeorm";
|
|
2276
2483
|
var FreelancerFramework = class extends BaseEntity {
|
|
2277
2484
|
};
|
|
2278
2485
|
// individual index to find framework by user
|
|
2279
2486
|
__decorateClass([
|
|
2280
|
-
|
|
2487
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2281
2488
|
Index17()
|
|
2282
2489
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2283
2490
|
__decorateClass([
|
|
2284
|
-
|
|
2285
|
-
|
|
2491
|
+
ManyToOne21(() => User, (user) => user.freelancerFramework),
|
|
2492
|
+
JoinColumn21({ name: "user_id" })
|
|
2286
2493
|
], FreelancerFramework.prototype, "user", 2);
|
|
2287
2494
|
__decorateClass([
|
|
2288
|
-
|
|
2495
|
+
Column24({ name: "framework_name", type: "varchar", nullable: true })
|
|
2289
2496
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2290
2497
|
FreelancerFramework = __decorateClass([
|
|
2291
|
-
|
|
2498
|
+
Entity23("freelancer_frameworks")
|
|
2292
2499
|
], FreelancerFramework);
|
|
2293
2500
|
|
|
2294
2501
|
// src/entities/freelancer-assessment.entity.ts
|
|
2295
2502
|
import {
|
|
2296
|
-
Entity as
|
|
2297
|
-
Column as
|
|
2503
|
+
Entity as Entity24,
|
|
2504
|
+
Column as Column25,
|
|
2298
2505
|
Index as Index18,
|
|
2299
|
-
ManyToOne as
|
|
2300
|
-
JoinColumn as
|
|
2506
|
+
ManyToOne as ManyToOne22,
|
|
2507
|
+
JoinColumn as JoinColumn22
|
|
2301
2508
|
} from "typeorm";
|
|
2302
2509
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2303
2510
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2312,21 +2519,24 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2312
2519
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2313
2520
|
};
|
|
2314
2521
|
__decorateClass([
|
|
2315
|
-
|
|
2522
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
2316
2523
|
Index18()
|
|
2317
2524
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2318
2525
|
__decorateClass([
|
|
2319
|
-
|
|
2320
|
-
|
|
2526
|
+
ManyToOne22(() => User, (user) => user.assessments),
|
|
2527
|
+
JoinColumn22({ name: "user_id" })
|
|
2321
2528
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2322
2529
|
__decorateClass([
|
|
2323
|
-
|
|
2530
|
+
Column25({ name: "interview_id", type: "varchar", nullable: true })
|
|
2324
2531
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2325
2532
|
__decorateClass([
|
|
2326
|
-
|
|
2533
|
+
Column25({ name: "interview_link", type: "text", nullable: true })
|
|
2327
2534
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2328
2535
|
__decorateClass([
|
|
2329
|
-
|
|
2536
|
+
Column25({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2537
|
+
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2538
|
+
__decorateClass([
|
|
2539
|
+
Column25({
|
|
2330
2540
|
name: "status",
|
|
2331
2541
|
type: "enum",
|
|
2332
2542
|
enum: AssessmentStatusEnum,
|
|
@@ -2334,16 +2544,16 @@ __decorateClass([
|
|
|
2334
2544
|
})
|
|
2335
2545
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2336
2546
|
FreelancerAssessment = __decorateClass([
|
|
2337
|
-
|
|
2547
|
+
Entity24("freelancer_assessments")
|
|
2338
2548
|
], FreelancerAssessment);
|
|
2339
2549
|
|
|
2340
2550
|
// src/entities/freelancer-declaration.entity.ts
|
|
2341
2551
|
import {
|
|
2342
|
-
Entity as
|
|
2343
|
-
Column as
|
|
2552
|
+
Entity as Entity25,
|
|
2553
|
+
Column as Column26,
|
|
2344
2554
|
Index as Index19,
|
|
2345
|
-
ManyToOne as
|
|
2346
|
-
JoinColumn as
|
|
2555
|
+
ManyToOne as ManyToOne23,
|
|
2556
|
+
JoinColumn as JoinColumn23
|
|
2347
2557
|
} from "typeorm";
|
|
2348
2558
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2349
2559
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2356,15 +2566,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2356
2566
|
};
|
|
2357
2567
|
// individual index to find declaration by user
|
|
2358
2568
|
__decorateClass([
|
|
2359
|
-
|
|
2569
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2360
2570
|
Index19()
|
|
2361
2571
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2362
2572
|
__decorateClass([
|
|
2363
|
-
|
|
2364
|
-
|
|
2573
|
+
ManyToOne23(() => User, (user) => user.freelancerDeclaration),
|
|
2574
|
+
JoinColumn23({ name: "user_id" })
|
|
2365
2575
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2366
2576
|
__decorateClass([
|
|
2367
|
-
|
|
2577
|
+
Column26({
|
|
2368
2578
|
name: "document_type",
|
|
2369
2579
|
type: "enum",
|
|
2370
2580
|
enum: DocumentType,
|
|
@@ -2372,175 +2582,175 @@ __decorateClass([
|
|
|
2372
2582
|
})
|
|
2373
2583
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2374
2584
|
__decorateClass([
|
|
2375
|
-
|
|
2585
|
+
Column26({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2376
2586
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2377
2587
|
__decorateClass([
|
|
2378
|
-
|
|
2588
|
+
Column26({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2379
2589
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2380
2590
|
__decorateClass([
|
|
2381
|
-
|
|
2591
|
+
Column26({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2382
2592
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2383
2593
|
__decorateClass([
|
|
2384
|
-
|
|
2594
|
+
Column26({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2385
2595
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2386
2596
|
FreelancerDeclaration = __decorateClass([
|
|
2387
|
-
|
|
2597
|
+
Entity25("freelancer_declaration")
|
|
2388
2598
|
], FreelancerDeclaration);
|
|
2389
2599
|
|
|
2390
2600
|
// src/entities/company-members-roles.entity.ts
|
|
2391
2601
|
import {
|
|
2392
|
-
Column as
|
|
2393
|
-
Entity as
|
|
2394
|
-
ManyToOne as
|
|
2395
|
-
JoinColumn as
|
|
2602
|
+
Column as Column30,
|
|
2603
|
+
Entity as Entity29,
|
|
2604
|
+
ManyToOne as ManyToOne26,
|
|
2605
|
+
JoinColumn as JoinColumn26,
|
|
2396
2606
|
Index as Index23
|
|
2397
2607
|
} from "typeorm";
|
|
2398
2608
|
|
|
2399
2609
|
// src/entities/company-role.entity.ts
|
|
2400
2610
|
import {
|
|
2401
|
-
Column as
|
|
2402
|
-
Entity as
|
|
2611
|
+
Column as Column29,
|
|
2612
|
+
Entity as Entity28,
|
|
2403
2613
|
Index as Index22,
|
|
2404
|
-
JoinColumn as
|
|
2405
|
-
ManyToOne as
|
|
2406
|
-
OneToMany as
|
|
2614
|
+
JoinColumn as JoinColumn25,
|
|
2615
|
+
ManyToOne as ManyToOne25,
|
|
2616
|
+
OneToMany as OneToMany9
|
|
2407
2617
|
} from "typeorm";
|
|
2408
2618
|
|
|
2409
2619
|
// src/entities/company-role-permission.entity.ts
|
|
2410
2620
|
import {
|
|
2411
|
-
Column as
|
|
2412
|
-
Entity as
|
|
2413
|
-
ManyToOne as
|
|
2414
|
-
JoinColumn as
|
|
2621
|
+
Column as Column28,
|
|
2622
|
+
Entity as Entity27,
|
|
2623
|
+
ManyToOne as ManyToOne24,
|
|
2624
|
+
JoinColumn as JoinColumn24,
|
|
2415
2625
|
Index as Index21
|
|
2416
2626
|
} from "typeorm";
|
|
2417
2627
|
|
|
2418
2628
|
// src/entities/permission.entity.ts
|
|
2419
|
-
import { Column as
|
|
2629
|
+
import { Column as Column27, Entity as Entity26, Index as Index20 } from "typeorm";
|
|
2420
2630
|
var Permission = class extends BaseEntity {
|
|
2421
2631
|
};
|
|
2422
2632
|
__decorateClass([
|
|
2423
|
-
|
|
2633
|
+
Column27({ name: "name", type: "varchar", nullable: true })
|
|
2424
2634
|
], Permission.prototype, "name", 2);
|
|
2425
2635
|
__decorateClass([
|
|
2426
|
-
|
|
2636
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2427
2637
|
Index20()
|
|
2428
2638
|
], Permission.prototype, "slug", 2);
|
|
2429
2639
|
__decorateClass([
|
|
2430
|
-
|
|
2640
|
+
Column27({ name: "description", type: "text", nullable: true })
|
|
2431
2641
|
], Permission.prototype, "description", 2);
|
|
2432
2642
|
__decorateClass([
|
|
2433
|
-
|
|
2643
|
+
Column27({ name: "is_active", type: "boolean", default: true })
|
|
2434
2644
|
], Permission.prototype, "isActive", 2);
|
|
2435
2645
|
Permission = __decorateClass([
|
|
2436
|
-
|
|
2646
|
+
Entity26("permissions")
|
|
2437
2647
|
], Permission);
|
|
2438
2648
|
|
|
2439
2649
|
// src/entities/company-role-permission.entity.ts
|
|
2440
2650
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2441
2651
|
};
|
|
2442
2652
|
__decorateClass([
|
|
2443
|
-
|
|
2653
|
+
Column28({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2444
2654
|
Index21()
|
|
2445
2655
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2446
2656
|
__decorateClass([
|
|
2447
|
-
|
|
2657
|
+
ManyToOne24(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2448
2658
|
onDelete: "CASCADE"
|
|
2449
2659
|
}),
|
|
2450
|
-
|
|
2660
|
+
JoinColumn24({ name: "company_role_id" })
|
|
2451
2661
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2452
2662
|
__decorateClass([
|
|
2453
|
-
|
|
2663
|
+
Column28({ name: "permission_id", type: "integer" }),
|
|
2454
2664
|
Index21()
|
|
2455
2665
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2456
2666
|
__decorateClass([
|
|
2457
|
-
|
|
2458
|
-
|
|
2667
|
+
ManyToOne24(() => Permission, { onDelete: "CASCADE" }),
|
|
2668
|
+
JoinColumn24({ name: "permission_id" })
|
|
2459
2669
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2460
2670
|
__decorateClass([
|
|
2461
|
-
|
|
2671
|
+
Column28({ name: "assigned_by", type: "integer", nullable: true })
|
|
2462
2672
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2463
2673
|
CompanyRolePermission = __decorateClass([
|
|
2464
|
-
|
|
2674
|
+
Entity27("company_role_permissions")
|
|
2465
2675
|
], CompanyRolePermission);
|
|
2466
2676
|
|
|
2467
2677
|
// src/entities/company-role.entity.ts
|
|
2468
2678
|
var CompanyRole = class extends BaseEntity {
|
|
2469
2679
|
};
|
|
2470
2680
|
__decorateClass([
|
|
2471
|
-
|
|
2681
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
2472
2682
|
Index22()
|
|
2473
2683
|
], CompanyRole.prototype, "userId", 2);
|
|
2474
2684
|
__decorateClass([
|
|
2475
|
-
|
|
2476
|
-
|
|
2685
|
+
ManyToOne25(() => User, (user) => user.otps),
|
|
2686
|
+
JoinColumn25({ name: "user_id" })
|
|
2477
2687
|
], CompanyRole.prototype, "user", 2);
|
|
2478
2688
|
__decorateClass([
|
|
2479
|
-
|
|
2689
|
+
Column29({ name: "name", type: "varchar" })
|
|
2480
2690
|
], CompanyRole.prototype, "name", 2);
|
|
2481
2691
|
__decorateClass([
|
|
2482
|
-
|
|
2692
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2483
2693
|
Index22()
|
|
2484
2694
|
], CompanyRole.prototype, "slug", 2);
|
|
2485
2695
|
__decorateClass([
|
|
2486
|
-
|
|
2696
|
+
Column29({ name: "description", type: "text", nullable: true })
|
|
2487
2697
|
], CompanyRole.prototype, "description", 2);
|
|
2488
2698
|
__decorateClass([
|
|
2489
|
-
|
|
2699
|
+
Column29({ name: "is_active", type: "boolean", default: true })
|
|
2490
2700
|
], CompanyRole.prototype, "isActive", 2);
|
|
2491
2701
|
__decorateClass([
|
|
2492
|
-
|
|
2702
|
+
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2493
2703
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2494
2704
|
CompanyRole = __decorateClass([
|
|
2495
|
-
|
|
2705
|
+
Entity28("company_roles")
|
|
2496
2706
|
], CompanyRole);
|
|
2497
2707
|
|
|
2498
2708
|
// src/entities/company-members-roles.entity.ts
|
|
2499
2709
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2500
2710
|
};
|
|
2501
2711
|
__decorateClass([
|
|
2502
|
-
|
|
2712
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
2503
2713
|
Index23()
|
|
2504
2714
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2505
2715
|
__decorateClass([
|
|
2506
|
-
|
|
2507
|
-
|
|
2716
|
+
ManyToOne26(() => User),
|
|
2717
|
+
JoinColumn26({ name: "user_id" })
|
|
2508
2718
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2509
2719
|
__decorateClass([
|
|
2510
|
-
|
|
2511
|
-
|
|
2720
|
+
ManyToOne26(() => CompanyRole),
|
|
2721
|
+
JoinColumn26({ name: "company_role_id" })
|
|
2512
2722
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2513
2723
|
__decorateClass([
|
|
2514
|
-
|
|
2724
|
+
Column30({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2515
2725
|
Index23()
|
|
2516
2726
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2517
2727
|
__decorateClass([
|
|
2518
|
-
|
|
2728
|
+
Column30({ name: "assigned_by", type: "integer", nullable: true })
|
|
2519
2729
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2520
2730
|
CompanyMemberRole = __decorateClass([
|
|
2521
|
-
|
|
2731
|
+
Entity29("company_member_roles")
|
|
2522
2732
|
], CompanyMemberRole);
|
|
2523
2733
|
|
|
2524
2734
|
// src/entities/assessment-answer.entity.ts
|
|
2525
2735
|
import {
|
|
2526
|
-
Entity as
|
|
2527
|
-
Column as
|
|
2528
|
-
ManyToOne as
|
|
2736
|
+
Entity as Entity32,
|
|
2737
|
+
Column as Column33,
|
|
2738
|
+
ManyToOne as ManyToOne28,
|
|
2529
2739
|
Index as Index25,
|
|
2530
|
-
JoinColumn as
|
|
2740
|
+
JoinColumn as JoinColumn28
|
|
2531
2741
|
} from "typeorm";
|
|
2532
2742
|
|
|
2533
2743
|
// src/entities/assessment-question.entity.ts
|
|
2534
|
-
import { Entity as
|
|
2744
|
+
import { Entity as Entity31, Column as Column32, OneToMany as OneToMany11 } from "typeorm";
|
|
2535
2745
|
|
|
2536
2746
|
// src/entities/assessment-question-option.entity.ts
|
|
2537
2747
|
import {
|
|
2538
|
-
Entity as
|
|
2539
|
-
Column as
|
|
2540
|
-
OneToMany as
|
|
2541
|
-
ManyToOne as
|
|
2748
|
+
Entity as Entity30,
|
|
2749
|
+
Column as Column31,
|
|
2750
|
+
OneToMany as OneToMany10,
|
|
2751
|
+
ManyToOne as ManyToOne27,
|
|
2542
2752
|
Index as Index24,
|
|
2543
|
-
JoinColumn as
|
|
2753
|
+
JoinColumn as JoinColumn27
|
|
2544
2754
|
} from "typeorm";
|
|
2545
2755
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2546
2756
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -2551,21 +2761,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2551
2761
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2552
2762
|
};
|
|
2553
2763
|
__decorateClass([
|
|
2554
|
-
|
|
2764
|
+
Column31({ name: "question_id", type: "integer", nullable: true }),
|
|
2555
2765
|
Index24()
|
|
2556
2766
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2557
2767
|
__decorateClass([
|
|
2558
|
-
|
|
2768
|
+
ManyToOne27(
|
|
2559
2769
|
() => AssessmetQuestion,
|
|
2560
2770
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2561
2771
|
),
|
|
2562
|
-
|
|
2772
|
+
JoinColumn27({ name: "question_id" })
|
|
2563
2773
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2564
2774
|
__decorateClass([
|
|
2565
|
-
|
|
2775
|
+
Column31({ name: "text", type: "varchar", nullable: true })
|
|
2566
2776
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2567
2777
|
__decorateClass([
|
|
2568
|
-
|
|
2778
|
+
Column31({
|
|
2569
2779
|
name: "answer_type",
|
|
2570
2780
|
type: "enum",
|
|
2571
2781
|
enum: AnswerTypeEnum,
|
|
@@ -2573,13 +2783,13 @@ __decorateClass([
|
|
|
2573
2783
|
})
|
|
2574
2784
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2575
2785
|
__decorateClass([
|
|
2576
|
-
|
|
2786
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
2577
2787
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2578
2788
|
__decorateClass([
|
|
2579
|
-
|
|
2789
|
+
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2580
2790
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2581
2791
|
AssessmetQuestionOption = __decorateClass([
|
|
2582
|
-
|
|
2792
|
+
Entity30("assessment_question_options")
|
|
2583
2793
|
], AssessmetQuestionOption);
|
|
2584
2794
|
|
|
2585
2795
|
// src/entities/assessment-question.entity.ts
|
|
@@ -2591,10 +2801,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
2591
2801
|
var AssessmetQuestion = class extends BaseEntity {
|
|
2592
2802
|
};
|
|
2593
2803
|
__decorateClass([
|
|
2594
|
-
|
|
2804
|
+
Column32({ name: "text", type: "varchar", nullable: true })
|
|
2595
2805
|
], AssessmetQuestion.prototype, "text", 2);
|
|
2596
2806
|
__decorateClass([
|
|
2597
|
-
|
|
2807
|
+
Column32({
|
|
2598
2808
|
name: "question_for",
|
|
2599
2809
|
type: "enum",
|
|
2600
2810
|
enum: QuestionForEnum,
|
|
@@ -2602,16 +2812,16 @@ __decorateClass([
|
|
|
2602
2812
|
})
|
|
2603
2813
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2604
2814
|
__decorateClass([
|
|
2605
|
-
|
|
2815
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
2606
2816
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2607
2817
|
__decorateClass([
|
|
2608
|
-
|
|
2818
|
+
OneToMany11(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2609
2819
|
], AssessmetQuestion.prototype, "options", 2);
|
|
2610
2820
|
__decorateClass([
|
|
2611
|
-
|
|
2821
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2612
2822
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
2613
2823
|
AssessmetQuestion = __decorateClass([
|
|
2614
|
-
|
|
2824
|
+
Entity31("assessment_questions")
|
|
2615
2825
|
], AssessmetQuestion);
|
|
2616
2826
|
|
|
2617
2827
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -2624,47 +2834,47 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
2624
2834
|
var AssessmentAnswer = class extends BaseEntity {
|
|
2625
2835
|
};
|
|
2626
2836
|
__decorateClass([
|
|
2627
|
-
|
|
2837
|
+
Column33({ name: "user_id", type: "integer" }),
|
|
2628
2838
|
Index25()
|
|
2629
2839
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
2630
2840
|
__decorateClass([
|
|
2631
|
-
|
|
2632
|
-
|
|
2841
|
+
ManyToOne28(() => User, (user) => user.assessmentAnswers),
|
|
2842
|
+
JoinColumn28({ name: "user_id" })
|
|
2633
2843
|
], AssessmentAnswer.prototype, "user", 2);
|
|
2634
2844
|
__decorateClass([
|
|
2635
|
-
|
|
2845
|
+
Column33({ name: "question_id", type: "integer" }),
|
|
2636
2846
|
Index25()
|
|
2637
2847
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2638
2848
|
__decorateClass([
|
|
2639
|
-
|
|
2849
|
+
ManyToOne28(
|
|
2640
2850
|
() => AssessmetQuestion,
|
|
2641
2851
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
2642
2852
|
),
|
|
2643
|
-
|
|
2853
|
+
JoinColumn28({ name: "question_id" })
|
|
2644
2854
|
], AssessmentAnswer.prototype, "question", 2);
|
|
2645
2855
|
__decorateClass([
|
|
2646
|
-
|
|
2856
|
+
Column33({ name: "selected_option_id", type: "integer" }),
|
|
2647
2857
|
Index25()
|
|
2648
2858
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
2649
2859
|
__decorateClass([
|
|
2650
|
-
|
|
2860
|
+
ManyToOne28(
|
|
2651
2861
|
() => AssessmetQuestionOption,
|
|
2652
2862
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
2653
2863
|
),
|
|
2654
|
-
|
|
2864
|
+
JoinColumn28({ name: "selected_option_id" })
|
|
2655
2865
|
], AssessmentAnswer.prototype, "option", 2);
|
|
2656
2866
|
__decorateClass([
|
|
2657
|
-
|
|
2867
|
+
Column33({
|
|
2658
2868
|
name: "selected_answer_type",
|
|
2659
2869
|
type: "enum",
|
|
2660
2870
|
enum: SelectedAnswerTypeEnum
|
|
2661
2871
|
})
|
|
2662
2872
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
2663
2873
|
__decorateClass([
|
|
2664
|
-
|
|
2874
|
+
Column33({ name: "score", type: "float" })
|
|
2665
2875
|
], AssessmentAnswer.prototype, "score", 2);
|
|
2666
2876
|
AssessmentAnswer = __decorateClass([
|
|
2667
|
-
|
|
2877
|
+
Entity32("assessment_answers")
|
|
2668
2878
|
], AssessmentAnswer);
|
|
2669
2879
|
|
|
2670
2880
|
// src/entities/user.entity.ts
|
|
@@ -2692,51 +2902,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2692
2902
|
var User = class extends BaseEntity {
|
|
2693
2903
|
};
|
|
2694
2904
|
__decorateClass([
|
|
2695
|
-
|
|
2905
|
+
Column34({ name: "unique_id", type: "varchar", unique: true })
|
|
2696
2906
|
], User.prototype, "uniqueId", 2);
|
|
2697
2907
|
__decorateClass([
|
|
2698
|
-
|
|
2908
|
+
Column34({ name: "parent_id", type: "integer", nullable: true }),
|
|
2699
2909
|
Index26()
|
|
2700
2910
|
], User.prototype, "parentId", 2);
|
|
2701
2911
|
__decorateClass([
|
|
2702
|
-
|
|
2703
|
-
|
|
2912
|
+
ManyToOne29(() => User, (user) => user.children, { nullable: true }),
|
|
2913
|
+
JoinColumn29({ name: "parent_id" })
|
|
2704
2914
|
], User.prototype, "parent", 2);
|
|
2705
2915
|
__decorateClass([
|
|
2706
|
-
|
|
2916
|
+
OneToMany13(() => User, (user) => user.parent)
|
|
2707
2917
|
], User.prototype, "children", 2);
|
|
2708
2918
|
__decorateClass([
|
|
2709
|
-
|
|
2919
|
+
Column34({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2710
2920
|
], User.prototype, "username", 2);
|
|
2711
2921
|
__decorateClass([
|
|
2712
|
-
|
|
2922
|
+
Column34({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2713
2923
|
], User.prototype, "firstName", 2);
|
|
2714
2924
|
__decorateClass([
|
|
2715
|
-
|
|
2925
|
+
Column34({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2716
2926
|
], User.prototype, "lastName", 2);
|
|
2717
2927
|
__decorateClass([
|
|
2718
|
-
|
|
2928
|
+
Column34({ name: "date_of_birth", type: "date", nullable: true })
|
|
2719
2929
|
], User.prototype, "dateOfBirth", 2);
|
|
2720
2930
|
__decorateClass([
|
|
2721
|
-
|
|
2931
|
+
Column34({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2722
2932
|
], User.prototype, "gender", 2);
|
|
2723
2933
|
__decorateClass([
|
|
2724
|
-
|
|
2934
|
+
Column34({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2725
2935
|
], User.prototype, "profilePictureUrl", 2);
|
|
2726
2936
|
__decorateClass([
|
|
2727
|
-
|
|
2937
|
+
Column34({ name: "email", type: "varchar", unique: true })
|
|
2728
2938
|
], User.prototype, "email", 2);
|
|
2729
2939
|
__decorateClass([
|
|
2730
|
-
|
|
2940
|
+
Column34({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2731
2941
|
], User.prototype, "mobileCode", 2);
|
|
2732
2942
|
__decorateClass([
|
|
2733
|
-
|
|
2943
|
+
Column34({ name: "mobile", type: "varchar", nullable: true })
|
|
2734
2944
|
], User.prototype, "mobile", 2);
|
|
2735
2945
|
__decorateClass([
|
|
2736
|
-
|
|
2946
|
+
Column34({ name: "password", type: "varchar", nullable: true })
|
|
2737
2947
|
], User.prototype, "password", 2);
|
|
2738
2948
|
__decorateClass([
|
|
2739
|
-
|
|
2949
|
+
Column34({
|
|
2740
2950
|
name: "account_type",
|
|
2741
2951
|
type: "enum",
|
|
2742
2952
|
enum: AccountType,
|
|
@@ -2744,7 +2954,7 @@ __decorateClass([
|
|
|
2744
2954
|
})
|
|
2745
2955
|
], User.prototype, "accountType", 2);
|
|
2746
2956
|
__decorateClass([
|
|
2747
|
-
|
|
2957
|
+
Column34({
|
|
2748
2958
|
name: "account_status",
|
|
2749
2959
|
type: "enum",
|
|
2750
2960
|
enum: AccountStatus,
|
|
@@ -2752,36 +2962,36 @@ __decorateClass([
|
|
|
2752
2962
|
})
|
|
2753
2963
|
], User.prototype, "accountStatus", 2);
|
|
2754
2964
|
__decorateClass([
|
|
2755
|
-
|
|
2965
|
+
Column34({ name: "is_email_verified", type: "boolean", default: false })
|
|
2756
2966
|
], User.prototype, "isEmailVerified", 2);
|
|
2757
2967
|
__decorateClass([
|
|
2758
|
-
|
|
2968
|
+
Column34({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2759
2969
|
], User.prototype, "isMobileVerified", 2);
|
|
2760
2970
|
__decorateClass([
|
|
2761
|
-
|
|
2971
|
+
Column34({
|
|
2762
2972
|
name: "last_login_at",
|
|
2763
2973
|
type: "timestamp with time zone",
|
|
2764
2974
|
nullable: true
|
|
2765
2975
|
})
|
|
2766
2976
|
], User.prototype, "lastLoginAt", 2);
|
|
2767
2977
|
__decorateClass([
|
|
2768
|
-
|
|
2978
|
+
Column34({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2769
2979
|
], User.prototype, "lastLoginIp", 2);
|
|
2770
2980
|
__decorateClass([
|
|
2771
|
-
|
|
2981
|
+
Column34({ name: "reset_token", type: "varchar", nullable: true })
|
|
2772
2982
|
], User.prototype, "resetToken", 2);
|
|
2773
2983
|
__decorateClass([
|
|
2774
|
-
|
|
2984
|
+
Column34({
|
|
2775
2985
|
name: "reset_token_expire_at",
|
|
2776
2986
|
type: "timestamp with time zone",
|
|
2777
2987
|
nullable: true
|
|
2778
2988
|
})
|
|
2779
2989
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2780
2990
|
__decorateClass([
|
|
2781
|
-
|
|
2991
|
+
OneToMany13(() => RefreshToken, (token) => token.user)
|
|
2782
2992
|
], User.prototype, "refreshTokens", 2);
|
|
2783
2993
|
__decorateClass([
|
|
2784
|
-
|
|
2994
|
+
Column34({
|
|
2785
2995
|
name: "provider",
|
|
2786
2996
|
type: "enum",
|
|
2787
2997
|
enum: Provider,
|
|
@@ -2790,22 +3000,22 @@ __decorateClass([
|
|
|
2790
3000
|
})
|
|
2791
3001
|
], User.prototype, "provider", 2);
|
|
2792
3002
|
__decorateClass([
|
|
2793
|
-
|
|
3003
|
+
Column34({ name: "provider_token", type: "varchar", nullable: true })
|
|
2794
3004
|
], User.prototype, "providerToken", 2);
|
|
2795
3005
|
__decorateClass([
|
|
2796
|
-
|
|
3006
|
+
Column34({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2797
3007
|
], User.prototype, "linkedInId", 2);
|
|
2798
3008
|
__decorateClass([
|
|
2799
|
-
|
|
3009
|
+
Column34({ name: "google_id", type: "varchar", nullable: true })
|
|
2800
3010
|
], User.prototype, "googleId", 2);
|
|
2801
3011
|
__decorateClass([
|
|
2802
|
-
|
|
3012
|
+
Column34({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2803
3013
|
], User.prototype, "gitLabsId", 2);
|
|
2804
3014
|
__decorateClass([
|
|
2805
|
-
|
|
3015
|
+
OneToMany13(() => Otp, (otp) => otp.user)
|
|
2806
3016
|
], User.prototype, "otps", 2);
|
|
2807
3017
|
__decorateClass([
|
|
2808
|
-
|
|
3018
|
+
OneToMany13(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2809
3019
|
], User.prototype, "senseloafLogs", 2);
|
|
2810
3020
|
__decorateClass([
|
|
2811
3021
|
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
@@ -2816,43 +3026,43 @@ __decorateClass([
|
|
|
2816
3026
|
})
|
|
2817
3027
|
], User.prototype, "companyProfile", 2);
|
|
2818
3028
|
__decorateClass([
|
|
2819
|
-
|
|
3029
|
+
OneToMany13(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2820
3030
|
], User.prototype, "companyMemberRoles", 2);
|
|
2821
3031
|
__decorateClass([
|
|
2822
|
-
|
|
3032
|
+
OneToMany13(
|
|
2823
3033
|
() => FreelancerAssessment,
|
|
2824
3034
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2825
3035
|
)
|
|
2826
3036
|
], User.prototype, "assessments", 2);
|
|
2827
3037
|
__decorateClass([
|
|
2828
|
-
|
|
3038
|
+
OneToMany13(
|
|
2829
3039
|
() => AssessmentAnswer,
|
|
2830
3040
|
(assessmentAnswer) => assessmentAnswer.user
|
|
2831
3041
|
)
|
|
2832
3042
|
], User.prototype, "assessmentAnswers", 2);
|
|
2833
3043
|
__decorateClass([
|
|
2834
|
-
|
|
3044
|
+
OneToMany13(() => Job, (job) => job.user)
|
|
2835
3045
|
], User.prototype, "jobs", 2);
|
|
2836
3046
|
__decorateClass([
|
|
2837
|
-
|
|
3047
|
+
OneToMany13(() => Interview, (interview) => interview.user)
|
|
2838
3048
|
], User.prototype, "interviews", 2);
|
|
2839
3049
|
__decorateClass([
|
|
2840
|
-
|
|
3050
|
+
OneToMany13(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2841
3051
|
], User.prototype, "bankDetail", 2);
|
|
2842
3052
|
__decorateClass([
|
|
2843
|
-
|
|
3053
|
+
OneToMany13(
|
|
2844
3054
|
() => SystemPreference,
|
|
2845
3055
|
(systemPreference) => systemPreference.user
|
|
2846
3056
|
)
|
|
2847
3057
|
], User.prototype, "systemPreference", 2);
|
|
2848
3058
|
__decorateClass([
|
|
2849
|
-
|
|
3059
|
+
OneToMany13(() => Rating, (rating) => rating.reviewer)
|
|
2850
3060
|
], User.prototype, "givenRatings", 2);
|
|
2851
3061
|
__decorateClass([
|
|
2852
|
-
|
|
3062
|
+
OneToMany13(() => Rating, (rating) => rating.reviewee)
|
|
2853
3063
|
], User.prototype, "receivedRatings", 2);
|
|
2854
3064
|
__decorateClass([
|
|
2855
|
-
|
|
3065
|
+
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2856
3066
|
], User.prototype, "jobApplications", 2);
|
|
2857
3067
|
__decorateClass([
|
|
2858
3068
|
OneToOne(
|
|
@@ -2900,7 +3110,7 @@ __decorateClass([
|
|
|
2900
3110
|
)
|
|
2901
3111
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2902
3112
|
User = __decorateClass([
|
|
2903
|
-
|
|
3113
|
+
Entity33("users")
|
|
2904
3114
|
], User);
|
|
2905
3115
|
|
|
2906
3116
|
// src/entities/rating.entity.ts
|
|
@@ -2912,36 +3122,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2912
3122
|
var Rating = class extends BaseEntity {
|
|
2913
3123
|
};
|
|
2914
3124
|
__decorateClass([
|
|
2915
|
-
|
|
3125
|
+
Column35({ name: "reviewer_id", type: "integer" }),
|
|
2916
3126
|
Index27()
|
|
2917
3127
|
], Rating.prototype, "reviewer_id", 2);
|
|
2918
3128
|
__decorateClass([
|
|
2919
|
-
|
|
2920
|
-
|
|
3129
|
+
ManyToOne30(() => User, { onDelete: "CASCADE" }),
|
|
3130
|
+
JoinColumn30({ name: "reviewer_id" })
|
|
2921
3131
|
], Rating.prototype, "reviewer", 2);
|
|
2922
3132
|
__decorateClass([
|
|
2923
|
-
|
|
3133
|
+
Column35({ name: "reviewee_id", type: "integer" }),
|
|
2924
3134
|
Index27()
|
|
2925
3135
|
], Rating.prototype, "reviewee_id", 2);
|
|
2926
3136
|
__decorateClass([
|
|
2927
|
-
|
|
2928
|
-
|
|
3137
|
+
ManyToOne30(() => User, { onDelete: "CASCADE" }),
|
|
3138
|
+
JoinColumn30({ name: "reviewee_id" })
|
|
2929
3139
|
], Rating.prototype, "reviewee", 2);
|
|
2930
3140
|
__decorateClass([
|
|
2931
|
-
|
|
3141
|
+
Column35({
|
|
2932
3142
|
type: "enum",
|
|
2933
3143
|
enum: RatingTypeEnum,
|
|
2934
3144
|
nullable: true
|
|
2935
3145
|
})
|
|
2936
3146
|
], Rating.prototype, "ratingType", 2);
|
|
2937
3147
|
__decorateClass([
|
|
2938
|
-
|
|
3148
|
+
Column35({ type: "integer", nullable: true })
|
|
2939
3149
|
], Rating.prototype, "rating", 2);
|
|
2940
3150
|
__decorateClass([
|
|
2941
|
-
|
|
3151
|
+
Column35({ type: "text", nullable: true })
|
|
2942
3152
|
], Rating.prototype, "review", 2);
|
|
2943
3153
|
Rating = __decorateClass([
|
|
2944
|
-
|
|
3154
|
+
Entity34("ratings")
|
|
2945
3155
|
], Rating);
|
|
2946
3156
|
|
|
2947
3157
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3300,7 +3510,8 @@ import {
|
|
|
3300
3510
|
MaxLength as MaxLength14,
|
|
3301
3511
|
IsNotEmpty as IsNotEmpty38,
|
|
3302
3512
|
MinLength as MinLength12,
|
|
3303
|
-
Matches as Matches8
|
|
3513
|
+
Matches as Matches8,
|
|
3514
|
+
ValidateIf as ValidateIf3
|
|
3304
3515
|
} from "class-validator";
|
|
3305
3516
|
import { Type as Type6 } from "class-transformer";
|
|
3306
3517
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -3365,13 +3576,14 @@ __decorateClass([
|
|
|
3365
3576
|
)}`
|
|
3366
3577
|
})
|
|
3367
3578
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3368
|
-
__decorateClass([
|
|
3369
|
-
IsNotEmpty38({ message: "Please enter availability to join." })
|
|
3370
|
-
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3371
3579
|
__decorateClass([
|
|
3372
3580
|
IsBoolean12({ message: "isImmediateJoiner must be true or false" }),
|
|
3373
3581
|
Type6(() => Boolean)
|
|
3374
3582
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3583
|
+
__decorateClass([
|
|
3584
|
+
ValidateIf3((o) => o.isImmediateJoiner === false),
|
|
3585
|
+
IsNotEmpty38({ message: "Please enter availability to join." })
|
|
3586
|
+
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3375
3587
|
__decorateClass([
|
|
3376
3588
|
IsOptional18(),
|
|
3377
3589
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3406,7 +3618,8 @@ import {
|
|
|
3406
3618
|
MaxLength as MaxLength15,
|
|
3407
3619
|
MinLength as MinLength13,
|
|
3408
3620
|
Matches as Matches9,
|
|
3409
|
-
IsNotEmpty as IsNotEmpty39
|
|
3621
|
+
IsNotEmpty as IsNotEmpty39,
|
|
3622
|
+
ValidateIf as ValidateIf4
|
|
3410
3623
|
} from "class-validator";
|
|
3411
3624
|
import { Type as Type7 } from "class-transformer";
|
|
3412
3625
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -3424,16 +3637,20 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3424
3637
|
var UpdateFreelancerDto = class {
|
|
3425
3638
|
};
|
|
3426
3639
|
__decorateClass([
|
|
3640
|
+
IsOptional19(),
|
|
3427
3641
|
IsString27({ message: "Full name must be a string" }),
|
|
3428
3642
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
3429
3643
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3430
3644
|
__decorateClass([
|
|
3645
|
+
IsOptional19(),
|
|
3431
3646
|
IsEmail12({}, { message: "Invalid email address" })
|
|
3432
3647
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3433
3648
|
__decorateClass([
|
|
3649
|
+
IsOptional19(),
|
|
3434
3650
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3435
3651
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3436
3652
|
__decorateClass([
|
|
3653
|
+
IsOptional19(),
|
|
3437
3654
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3438
3655
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3439
3656
|
__decorateClass([
|
|
@@ -3445,10 +3662,12 @@ __decorateClass([
|
|
|
3445
3662
|
})
|
|
3446
3663
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3447
3664
|
__decorateClass([
|
|
3665
|
+
IsOptional19(),
|
|
3448
3666
|
IsBoolean13({ message: "Developer flag must be true or false" }),
|
|
3449
3667
|
Type7(() => Boolean)
|
|
3450
3668
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3451
3669
|
__decorateClass([
|
|
3670
|
+
IsOptional19(),
|
|
3452
3671
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3453
3672
|
message: `Nature of work must be one of: ${Object.values(
|
|
3454
3673
|
NatureOfWorkEnum2
|
|
@@ -3456,11 +3675,13 @@ __decorateClass([
|
|
|
3456
3675
|
})
|
|
3457
3676
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3458
3677
|
__decorateClass([
|
|
3678
|
+
IsOptional19(),
|
|
3459
3679
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3460
3680
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3461
3681
|
Type7(() => Number)
|
|
3462
3682
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3463
3683
|
__decorateClass([
|
|
3684
|
+
IsOptional19(),
|
|
3464
3685
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3465
3686
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3466
3687
|
", "
|
|
@@ -3468,12 +3689,15 @@ __decorateClass([
|
|
|
3468
3689
|
})
|
|
3469
3690
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3470
3691
|
__decorateClass([
|
|
3471
|
-
|
|
3472
|
-
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3473
|
-
__decorateClass([
|
|
3692
|
+
IsOptional19(),
|
|
3474
3693
|
IsBoolean13({ message: "isImmediateJoiner must be true or false" }),
|
|
3475
3694
|
Type7(() => Boolean)
|
|
3476
3695
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3696
|
+
__decorateClass([
|
|
3697
|
+
ValidateIf4((o) => o.isImmediateJoiner === false),
|
|
3698
|
+
IsNotEmpty39({ message: "Please enter availability to join." }),
|
|
3699
|
+
IsOptional19()
|
|
3700
|
+
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3477
3701
|
__decorateClass([
|
|
3478
3702
|
IsOptional19(),
|
|
3479
3703
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3979,7 +4203,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3979
4203
|
};
|
|
3980
4204
|
|
|
3981
4205
|
// src/entities/question.entity.ts
|
|
3982
|
-
import { Entity as
|
|
4206
|
+
import { Entity as Entity35, Column as Column36 } from "typeorm";
|
|
3983
4207
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3984
4208
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3985
4209
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3988,16 +4212,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3988
4212
|
var Question = class extends BaseEntity {
|
|
3989
4213
|
};
|
|
3990
4214
|
__decorateClass([
|
|
3991
|
-
|
|
4215
|
+
Column36({ name: "question", type: "varchar" })
|
|
3992
4216
|
], Question.prototype, "question", 2);
|
|
3993
4217
|
__decorateClass([
|
|
3994
|
-
|
|
4218
|
+
Column36({ name: "hint", type: "varchar", nullable: true })
|
|
3995
4219
|
], Question.prototype, "hint", 2);
|
|
3996
4220
|
__decorateClass([
|
|
3997
|
-
|
|
4221
|
+
Column36({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3998
4222
|
], Question.prototype, "slug", 2);
|
|
3999
4223
|
__decorateClass([
|
|
4000
|
-
|
|
4224
|
+
Column36({
|
|
4001
4225
|
name: "question_for",
|
|
4002
4226
|
type: "enum",
|
|
4003
4227
|
enum: QuestionFor,
|
|
@@ -4005,273 +4229,97 @@ __decorateClass([
|
|
|
4005
4229
|
})
|
|
4006
4230
|
], Question.prototype, "questionFor", 2);
|
|
4007
4231
|
__decorateClass([
|
|
4008
|
-
|
|
4232
|
+
Column36({ name: "type", type: "varchar", nullable: true })
|
|
4009
4233
|
], Question.prototype, "type", 2);
|
|
4010
4234
|
__decorateClass([
|
|
4011
|
-
|
|
4235
|
+
Column36({ name: "options", type: "jsonb", nullable: true })
|
|
4012
4236
|
], Question.prototype, "options", 2);
|
|
4013
4237
|
__decorateClass([
|
|
4014
|
-
|
|
4238
|
+
Column36({ name: "is_active", type: "boolean", default: false })
|
|
4015
4239
|
], Question.prototype, "isActive", 2);
|
|
4016
4240
|
Question = __decorateClass([
|
|
4017
|
-
|
|
4241
|
+
Entity35("questions")
|
|
4018
4242
|
], Question);
|
|
4019
4243
|
|
|
4020
4244
|
// src/entities/job-role.entity.ts
|
|
4021
|
-
import { Entity as
|
|
4245
|
+
import { Entity as Entity36, Column as Column37 } from "typeorm";
|
|
4022
4246
|
var JobRoles = class extends BaseEntity {
|
|
4023
4247
|
};
|
|
4024
4248
|
__decorateClass([
|
|
4025
|
-
|
|
4249
|
+
Column37({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4026
4250
|
], JobRoles.prototype, "slug", 2);
|
|
4027
4251
|
__decorateClass([
|
|
4028
|
-
|
|
4252
|
+
Column37({ name: "name", type: "varchar", nullable: true })
|
|
4029
4253
|
], JobRoles.prototype, "name", 2);
|
|
4030
4254
|
__decorateClass([
|
|
4031
|
-
|
|
4255
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
4032
4256
|
], JobRoles.prototype, "isActive", 2);
|
|
4033
4257
|
JobRoles = __decorateClass([
|
|
4034
|
-
|
|
4258
|
+
Entity36("job_roles")
|
|
4035
4259
|
], JobRoles);
|
|
4036
4260
|
|
|
4037
4261
|
// src/entities/plan.entity.ts
|
|
4038
|
-
import { Entity as
|
|
4262
|
+
import { Entity as Entity38, Column as Column39, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
4039
4263
|
|
|
4040
4264
|
// src/entities/feature.entity.ts
|
|
4041
|
-
import { Entity as
|
|
4265
|
+
import { Entity as Entity37, Column as Column38, ManyToMany as ManyToMany2 } from "typeorm";
|
|
4042
4266
|
var Feature = class extends BaseEntity {
|
|
4043
4267
|
};
|
|
4044
4268
|
__decorateClass([
|
|
4045
|
-
|
|
4269
|
+
Column38({ name: "name", type: "varchar", unique: true })
|
|
4046
4270
|
], Feature.prototype, "name", 2);
|
|
4047
4271
|
__decorateClass([
|
|
4048
4272
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
4049
4273
|
], Feature.prototype, "plans", 2);
|
|
4050
4274
|
Feature = __decorateClass([
|
|
4051
|
-
|
|
4275
|
+
Entity37("features")
|
|
4052
4276
|
], Feature);
|
|
4053
4277
|
|
|
4054
4278
|
// src/entities/plan.entity.ts
|
|
4055
4279
|
var Plan = class extends BaseEntity {
|
|
4056
4280
|
};
|
|
4057
4281
|
__decorateClass([
|
|
4058
|
-
|
|
4282
|
+
Column39({ name: "name", type: "varchar", unique: true })
|
|
4059
4283
|
], Plan.prototype, "name", 2);
|
|
4060
4284
|
__decorateClass([
|
|
4061
|
-
|
|
4285
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
4062
4286
|
], Plan.prototype, "description", 2);
|
|
4063
4287
|
__decorateClass([
|
|
4064
|
-
|
|
4288
|
+
Column39({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4065
4289
|
], Plan.prototype, "price", 2);
|
|
4066
4290
|
__decorateClass([
|
|
4067
|
-
|
|
4291
|
+
Column39({ name: "billing_period", type: "varchar" })
|
|
4068
4292
|
], Plan.prototype, "billingPeriod", 2);
|
|
4069
4293
|
__decorateClass([
|
|
4070
|
-
|
|
4294
|
+
Column39({ name: "is_current", type: "boolean", default: false })
|
|
4071
4295
|
], Plan.prototype, "isCurrent", 2);
|
|
4072
4296
|
__decorateClass([
|
|
4073
4297
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4074
4298
|
JoinTable()
|
|
4075
4299
|
], Plan.prototype, "features", 2);
|
|
4076
4300
|
Plan = __decorateClass([
|
|
4077
|
-
|
|
4301
|
+
Entity38("plans")
|
|
4078
4302
|
], Plan);
|
|
4079
4303
|
|
|
4080
4304
|
// src/entities/cms.entity.ts
|
|
4081
|
-
import { Entity as
|
|
4305
|
+
import { Entity as Entity39, Column as Column40 } from "typeorm";
|
|
4082
4306
|
var Cms = class extends BaseEntity {
|
|
4083
4307
|
};
|
|
4084
4308
|
__decorateClass([
|
|
4085
|
-
|
|
4309
|
+
Column40({ name: "title", type: "varchar", nullable: true })
|
|
4086
4310
|
], Cms.prototype, "title", 2);
|
|
4087
4311
|
__decorateClass([
|
|
4088
|
-
|
|
4312
|
+
Column40({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4089
4313
|
], Cms.prototype, "slug", 2);
|
|
4090
4314
|
__decorateClass([
|
|
4091
|
-
|
|
4315
|
+
Column40({ name: "content", type: "varchar", nullable: true })
|
|
4092
4316
|
], Cms.prototype, "content", 2);
|
|
4093
4317
|
__decorateClass([
|
|
4094
|
-
|
|
4318
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
4095
4319
|
], Cms.prototype, "isActive", 2);
|
|
4096
4320
|
Cms = __decorateClass([
|
|
4097
|
-
|
|
4321
|
+
Entity39("cms")
|
|
4098
4322
|
], Cms);
|
|
4099
|
-
|
|
4100
|
-
// src/entities/country.entity.ts
|
|
4101
|
-
import {
|
|
4102
|
-
Entity as Entity39,
|
|
4103
|
-
Column as Column40,
|
|
4104
|
-
OneToMany as OneToMany16
|
|
4105
|
-
} from "typeorm";
|
|
4106
|
-
|
|
4107
|
-
// src/entities/state.entity.ts
|
|
4108
|
-
import {
|
|
4109
|
-
Entity as Entity38,
|
|
4110
|
-
Column as Column39,
|
|
4111
|
-
ManyToOne as ManyToOne30,
|
|
4112
|
-
JoinColumn as JoinColumn30,
|
|
4113
|
-
OneToMany as OneToMany15
|
|
4114
|
-
} from "typeorm";
|
|
4115
|
-
|
|
4116
|
-
// src/entities/city.entity.ts
|
|
4117
|
-
import {
|
|
4118
|
-
Entity as Entity37,
|
|
4119
|
-
Column as Column38,
|
|
4120
|
-
ManyToOne as ManyToOne29,
|
|
4121
|
-
JoinColumn as JoinColumn29
|
|
4122
|
-
} from "typeorm";
|
|
4123
|
-
var City = class extends BaseEntity {
|
|
4124
|
-
};
|
|
4125
|
-
__decorateClass([
|
|
4126
|
-
Column38({
|
|
4127
|
-
name: "country_id",
|
|
4128
|
-
type: "int",
|
|
4129
|
-
nullable: true,
|
|
4130
|
-
comment: "Id of the country"
|
|
4131
|
-
})
|
|
4132
|
-
], City.prototype, "countryId", 2);
|
|
4133
|
-
__decorateClass([
|
|
4134
|
-
ManyToOne29(() => Country),
|
|
4135
|
-
JoinColumn29({ name: "country_id" })
|
|
4136
|
-
], City.prototype, "country", 2);
|
|
4137
|
-
__decorateClass([
|
|
4138
|
-
Column38({
|
|
4139
|
-
name: "state_id",
|
|
4140
|
-
type: "int",
|
|
4141
|
-
nullable: false,
|
|
4142
|
-
comment: "Id of the state"
|
|
4143
|
-
})
|
|
4144
|
-
], City.prototype, "stateId", 2);
|
|
4145
|
-
__decorateClass([
|
|
4146
|
-
ManyToOne29(() => State, (state) => state.cities),
|
|
4147
|
-
JoinColumn29({ name: "state_id" })
|
|
4148
|
-
], City.prototype, "state", 2);
|
|
4149
|
-
__decorateClass([
|
|
4150
|
-
Column38({
|
|
4151
|
-
name: "city_code",
|
|
4152
|
-
type: "varchar",
|
|
4153
|
-
length: 100,
|
|
4154
|
-
nullable: false,
|
|
4155
|
-
unique: true,
|
|
4156
|
-
comment: "Code of the city"
|
|
4157
|
-
})
|
|
4158
|
-
], City.prototype, "cityCode", 2);
|
|
4159
|
-
__decorateClass([
|
|
4160
|
-
Column38({
|
|
4161
|
-
name: "city_name",
|
|
4162
|
-
type: "varchar",
|
|
4163
|
-
length: 100,
|
|
4164
|
-
nullable: false,
|
|
4165
|
-
comment: "Name of the city"
|
|
4166
|
-
})
|
|
4167
|
-
], City.prototype, "cityName", 2);
|
|
4168
|
-
__decorateClass([
|
|
4169
|
-
Column38({
|
|
4170
|
-
name: "is_active",
|
|
4171
|
-
type: "boolean",
|
|
4172
|
-
default: true,
|
|
4173
|
-
comment: "Flag indicating if the city is active"
|
|
4174
|
-
})
|
|
4175
|
-
], City.prototype, "isActive", 2);
|
|
4176
|
-
City = __decorateClass([
|
|
4177
|
-
Entity37("cities")
|
|
4178
|
-
], City);
|
|
4179
|
-
|
|
4180
|
-
// src/entities/state.entity.ts
|
|
4181
|
-
var State = class extends BaseEntity {
|
|
4182
|
-
};
|
|
4183
|
-
__decorateClass([
|
|
4184
|
-
Column39({
|
|
4185
|
-
name: "country_id",
|
|
4186
|
-
type: "int",
|
|
4187
|
-
nullable: false,
|
|
4188
|
-
comment: "Id of the country"
|
|
4189
|
-
})
|
|
4190
|
-
], State.prototype, "countryId", 2);
|
|
4191
|
-
__decorateClass([
|
|
4192
|
-
ManyToOne30(() => Country, (country) => country.states),
|
|
4193
|
-
JoinColumn30({ name: "country_id" })
|
|
4194
|
-
], State.prototype, "country", 2);
|
|
4195
|
-
__decorateClass([
|
|
4196
|
-
OneToMany15(() => City, (city) => city.state)
|
|
4197
|
-
], State.prototype, "cities", 2);
|
|
4198
|
-
__decorateClass([
|
|
4199
|
-
Column39({
|
|
4200
|
-
name: "state_name",
|
|
4201
|
-
type: "varchar",
|
|
4202
|
-
length: 100,
|
|
4203
|
-
nullable: false,
|
|
4204
|
-
comment: "Name of the state"
|
|
4205
|
-
})
|
|
4206
|
-
], State.prototype, "stateName", 2);
|
|
4207
|
-
__decorateClass([
|
|
4208
|
-
Column39({
|
|
4209
|
-
name: "is_active",
|
|
4210
|
-
type: "boolean",
|
|
4211
|
-
default: true,
|
|
4212
|
-
comment: "Flag indicating if the state is active"
|
|
4213
|
-
})
|
|
4214
|
-
], State.prototype, "isActive", 2);
|
|
4215
|
-
State = __decorateClass([
|
|
4216
|
-
Entity38("states")
|
|
4217
|
-
], State);
|
|
4218
|
-
|
|
4219
|
-
// src/entities/country.entity.ts
|
|
4220
|
-
var Country = class extends BaseEntity {
|
|
4221
|
-
};
|
|
4222
|
-
__decorateClass([
|
|
4223
|
-
OneToMany16(() => State, (state) => state.country)
|
|
4224
|
-
], Country.prototype, "states", 2);
|
|
4225
|
-
__decorateClass([
|
|
4226
|
-
Column40({
|
|
4227
|
-
name: "country_name",
|
|
4228
|
-
type: "varchar",
|
|
4229
|
-
length: 100,
|
|
4230
|
-
nullable: false,
|
|
4231
|
-
// Set to false for required
|
|
4232
|
-
comment: "Name of the country"
|
|
4233
|
-
})
|
|
4234
|
-
], Country.prototype, "countryName", 2);
|
|
4235
|
-
__decorateClass([
|
|
4236
|
-
Column40({
|
|
4237
|
-
name: "country_iso_code",
|
|
4238
|
-
type: "varchar",
|
|
4239
|
-
length: 2,
|
|
4240
|
-
nullable: false,
|
|
4241
|
-
// Must be required if it's unique
|
|
4242
|
-
unique: true,
|
|
4243
|
-
comment: "ISO 3166-1 alpha-2 country code"
|
|
4244
|
-
})
|
|
4245
|
-
], Country.prototype, "countryIsoCode", 2);
|
|
4246
|
-
__decorateClass([
|
|
4247
|
-
Column40({
|
|
4248
|
-
name: "country_phone_code",
|
|
4249
|
-
type: "varchar",
|
|
4250
|
-
length: 10,
|
|
4251
|
-
nullable: true,
|
|
4252
|
-
comment: "International dialing code for the country"
|
|
4253
|
-
})
|
|
4254
|
-
], Country.prototype, "countryPhoneCode", 2);
|
|
4255
|
-
__decorateClass([
|
|
4256
|
-
Column40({
|
|
4257
|
-
name: "currency",
|
|
4258
|
-
type: "varchar",
|
|
4259
|
-
length: 3,
|
|
4260
|
-
nullable: true,
|
|
4261
|
-
comment: "ISO 4217 currency code"
|
|
4262
|
-
})
|
|
4263
|
-
], Country.prototype, "currency", 2);
|
|
4264
|
-
__decorateClass([
|
|
4265
|
-
Column40({
|
|
4266
|
-
name: "is_active",
|
|
4267
|
-
type: "boolean",
|
|
4268
|
-
default: true,
|
|
4269
|
-
comment: "Flag indicating if the country is active"
|
|
4270
|
-
})
|
|
4271
|
-
], Country.prototype, "isActive", 2);
|
|
4272
|
-
Country = __decorateClass([
|
|
4273
|
-
Entity39("countries")
|
|
4274
|
-
], Country);
|
|
4275
4323
|
export {
|
|
4276
4324
|
ADMIN_FREELANCER_PATTERN,
|
|
4277
4325
|
ASSESSMENT_QUESTION_PATTERN,
|
|
@@ -4361,6 +4409,7 @@ export {
|
|
|
4361
4409
|
Interview,
|
|
4362
4410
|
InterviewSkill,
|
|
4363
4411
|
InterviewStatusEnum,
|
|
4412
|
+
JOB_ADMIN_PATTERN,
|
|
4364
4413
|
JOB_PATTERN,
|
|
4365
4414
|
JOB_ROLE_PATTERN,
|
|
4366
4415
|
Job,
|