@experts_hub/shared 1.0.209 → 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/job.entity.d.ts +10 -0
- package/dist/index.d.mts +53 -39
- package/dist/index.d.ts +53 -39
- package/dist/index.js +524 -479
- package/dist/index.mjs +561 -515
- 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,24 +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 })
|
|
2330
2537
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2331
2538
|
__decorateClass([
|
|
2332
|
-
|
|
2539
|
+
Column25({
|
|
2333
2540
|
name: "status",
|
|
2334
2541
|
type: "enum",
|
|
2335
2542
|
enum: AssessmentStatusEnum,
|
|
@@ -2337,16 +2544,16 @@ __decorateClass([
|
|
|
2337
2544
|
})
|
|
2338
2545
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2339
2546
|
FreelancerAssessment = __decorateClass([
|
|
2340
|
-
|
|
2547
|
+
Entity24("freelancer_assessments")
|
|
2341
2548
|
], FreelancerAssessment);
|
|
2342
2549
|
|
|
2343
2550
|
// src/entities/freelancer-declaration.entity.ts
|
|
2344
2551
|
import {
|
|
2345
|
-
Entity as
|
|
2346
|
-
Column as
|
|
2552
|
+
Entity as Entity25,
|
|
2553
|
+
Column as Column26,
|
|
2347
2554
|
Index as Index19,
|
|
2348
|
-
ManyToOne as
|
|
2349
|
-
JoinColumn as
|
|
2555
|
+
ManyToOne as ManyToOne23,
|
|
2556
|
+
JoinColumn as JoinColumn23
|
|
2350
2557
|
} from "typeorm";
|
|
2351
2558
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2352
2559
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2359,15 +2566,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2359
2566
|
};
|
|
2360
2567
|
// individual index to find declaration by user
|
|
2361
2568
|
__decorateClass([
|
|
2362
|
-
|
|
2569
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2363
2570
|
Index19()
|
|
2364
2571
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2365
2572
|
__decorateClass([
|
|
2366
|
-
|
|
2367
|
-
|
|
2573
|
+
ManyToOne23(() => User, (user) => user.freelancerDeclaration),
|
|
2574
|
+
JoinColumn23({ name: "user_id" })
|
|
2368
2575
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2369
2576
|
__decorateClass([
|
|
2370
|
-
|
|
2577
|
+
Column26({
|
|
2371
2578
|
name: "document_type",
|
|
2372
2579
|
type: "enum",
|
|
2373
2580
|
enum: DocumentType,
|
|
@@ -2375,175 +2582,175 @@ __decorateClass([
|
|
|
2375
2582
|
})
|
|
2376
2583
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2377
2584
|
__decorateClass([
|
|
2378
|
-
|
|
2585
|
+
Column26({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2379
2586
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2380
2587
|
__decorateClass([
|
|
2381
|
-
|
|
2588
|
+
Column26({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2382
2589
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2383
2590
|
__decorateClass([
|
|
2384
|
-
|
|
2591
|
+
Column26({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2385
2592
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2386
2593
|
__decorateClass([
|
|
2387
|
-
|
|
2594
|
+
Column26({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2388
2595
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2389
2596
|
FreelancerDeclaration = __decorateClass([
|
|
2390
|
-
|
|
2597
|
+
Entity25("freelancer_declaration")
|
|
2391
2598
|
], FreelancerDeclaration);
|
|
2392
2599
|
|
|
2393
2600
|
// src/entities/company-members-roles.entity.ts
|
|
2394
2601
|
import {
|
|
2395
|
-
Column as
|
|
2396
|
-
Entity as
|
|
2397
|
-
ManyToOne as
|
|
2398
|
-
JoinColumn as
|
|
2602
|
+
Column as Column30,
|
|
2603
|
+
Entity as Entity29,
|
|
2604
|
+
ManyToOne as ManyToOne26,
|
|
2605
|
+
JoinColumn as JoinColumn26,
|
|
2399
2606
|
Index as Index23
|
|
2400
2607
|
} from "typeorm";
|
|
2401
2608
|
|
|
2402
2609
|
// src/entities/company-role.entity.ts
|
|
2403
2610
|
import {
|
|
2404
|
-
Column as
|
|
2405
|
-
Entity as
|
|
2611
|
+
Column as Column29,
|
|
2612
|
+
Entity as Entity28,
|
|
2406
2613
|
Index as Index22,
|
|
2407
|
-
JoinColumn as
|
|
2408
|
-
ManyToOne as
|
|
2409
|
-
OneToMany as
|
|
2614
|
+
JoinColumn as JoinColumn25,
|
|
2615
|
+
ManyToOne as ManyToOne25,
|
|
2616
|
+
OneToMany as OneToMany9
|
|
2410
2617
|
} from "typeorm";
|
|
2411
2618
|
|
|
2412
2619
|
// src/entities/company-role-permission.entity.ts
|
|
2413
2620
|
import {
|
|
2414
|
-
Column as
|
|
2415
|
-
Entity as
|
|
2416
|
-
ManyToOne as
|
|
2417
|
-
JoinColumn as
|
|
2621
|
+
Column as Column28,
|
|
2622
|
+
Entity as Entity27,
|
|
2623
|
+
ManyToOne as ManyToOne24,
|
|
2624
|
+
JoinColumn as JoinColumn24,
|
|
2418
2625
|
Index as Index21
|
|
2419
2626
|
} from "typeorm";
|
|
2420
2627
|
|
|
2421
2628
|
// src/entities/permission.entity.ts
|
|
2422
|
-
import { Column as
|
|
2629
|
+
import { Column as Column27, Entity as Entity26, Index as Index20 } from "typeorm";
|
|
2423
2630
|
var Permission = class extends BaseEntity {
|
|
2424
2631
|
};
|
|
2425
2632
|
__decorateClass([
|
|
2426
|
-
|
|
2633
|
+
Column27({ name: "name", type: "varchar", nullable: true })
|
|
2427
2634
|
], Permission.prototype, "name", 2);
|
|
2428
2635
|
__decorateClass([
|
|
2429
|
-
|
|
2636
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2430
2637
|
Index20()
|
|
2431
2638
|
], Permission.prototype, "slug", 2);
|
|
2432
2639
|
__decorateClass([
|
|
2433
|
-
|
|
2640
|
+
Column27({ name: "description", type: "text", nullable: true })
|
|
2434
2641
|
], Permission.prototype, "description", 2);
|
|
2435
2642
|
__decorateClass([
|
|
2436
|
-
|
|
2643
|
+
Column27({ name: "is_active", type: "boolean", default: true })
|
|
2437
2644
|
], Permission.prototype, "isActive", 2);
|
|
2438
2645
|
Permission = __decorateClass([
|
|
2439
|
-
|
|
2646
|
+
Entity26("permissions")
|
|
2440
2647
|
], Permission);
|
|
2441
2648
|
|
|
2442
2649
|
// src/entities/company-role-permission.entity.ts
|
|
2443
2650
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2444
2651
|
};
|
|
2445
2652
|
__decorateClass([
|
|
2446
|
-
|
|
2653
|
+
Column28({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2447
2654
|
Index21()
|
|
2448
2655
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2449
2656
|
__decorateClass([
|
|
2450
|
-
|
|
2657
|
+
ManyToOne24(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2451
2658
|
onDelete: "CASCADE"
|
|
2452
2659
|
}),
|
|
2453
|
-
|
|
2660
|
+
JoinColumn24({ name: "company_role_id" })
|
|
2454
2661
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2455
2662
|
__decorateClass([
|
|
2456
|
-
|
|
2663
|
+
Column28({ name: "permission_id", type: "integer" }),
|
|
2457
2664
|
Index21()
|
|
2458
2665
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2459
2666
|
__decorateClass([
|
|
2460
|
-
|
|
2461
|
-
|
|
2667
|
+
ManyToOne24(() => Permission, { onDelete: "CASCADE" }),
|
|
2668
|
+
JoinColumn24({ name: "permission_id" })
|
|
2462
2669
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2463
2670
|
__decorateClass([
|
|
2464
|
-
|
|
2671
|
+
Column28({ name: "assigned_by", type: "integer", nullable: true })
|
|
2465
2672
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2466
2673
|
CompanyRolePermission = __decorateClass([
|
|
2467
|
-
|
|
2674
|
+
Entity27("company_role_permissions")
|
|
2468
2675
|
], CompanyRolePermission);
|
|
2469
2676
|
|
|
2470
2677
|
// src/entities/company-role.entity.ts
|
|
2471
2678
|
var CompanyRole = class extends BaseEntity {
|
|
2472
2679
|
};
|
|
2473
2680
|
__decorateClass([
|
|
2474
|
-
|
|
2681
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
2475
2682
|
Index22()
|
|
2476
2683
|
], CompanyRole.prototype, "userId", 2);
|
|
2477
2684
|
__decorateClass([
|
|
2478
|
-
|
|
2479
|
-
|
|
2685
|
+
ManyToOne25(() => User, (user) => user.otps),
|
|
2686
|
+
JoinColumn25({ name: "user_id" })
|
|
2480
2687
|
], CompanyRole.prototype, "user", 2);
|
|
2481
2688
|
__decorateClass([
|
|
2482
|
-
|
|
2689
|
+
Column29({ name: "name", type: "varchar" })
|
|
2483
2690
|
], CompanyRole.prototype, "name", 2);
|
|
2484
2691
|
__decorateClass([
|
|
2485
|
-
|
|
2692
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2486
2693
|
Index22()
|
|
2487
2694
|
], CompanyRole.prototype, "slug", 2);
|
|
2488
2695
|
__decorateClass([
|
|
2489
|
-
|
|
2696
|
+
Column29({ name: "description", type: "text", nullable: true })
|
|
2490
2697
|
], CompanyRole.prototype, "description", 2);
|
|
2491
2698
|
__decorateClass([
|
|
2492
|
-
|
|
2699
|
+
Column29({ name: "is_active", type: "boolean", default: true })
|
|
2493
2700
|
], CompanyRole.prototype, "isActive", 2);
|
|
2494
2701
|
__decorateClass([
|
|
2495
|
-
|
|
2702
|
+
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2496
2703
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2497
2704
|
CompanyRole = __decorateClass([
|
|
2498
|
-
|
|
2705
|
+
Entity28("company_roles")
|
|
2499
2706
|
], CompanyRole);
|
|
2500
2707
|
|
|
2501
2708
|
// src/entities/company-members-roles.entity.ts
|
|
2502
2709
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2503
2710
|
};
|
|
2504
2711
|
__decorateClass([
|
|
2505
|
-
|
|
2712
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
2506
2713
|
Index23()
|
|
2507
2714
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2508
2715
|
__decorateClass([
|
|
2509
|
-
|
|
2510
|
-
|
|
2716
|
+
ManyToOne26(() => User),
|
|
2717
|
+
JoinColumn26({ name: "user_id" })
|
|
2511
2718
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2512
2719
|
__decorateClass([
|
|
2513
|
-
|
|
2514
|
-
|
|
2720
|
+
ManyToOne26(() => CompanyRole),
|
|
2721
|
+
JoinColumn26({ name: "company_role_id" })
|
|
2515
2722
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2516
2723
|
__decorateClass([
|
|
2517
|
-
|
|
2724
|
+
Column30({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2518
2725
|
Index23()
|
|
2519
2726
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2520
2727
|
__decorateClass([
|
|
2521
|
-
|
|
2728
|
+
Column30({ name: "assigned_by", type: "integer", nullable: true })
|
|
2522
2729
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2523
2730
|
CompanyMemberRole = __decorateClass([
|
|
2524
|
-
|
|
2731
|
+
Entity29("company_member_roles")
|
|
2525
2732
|
], CompanyMemberRole);
|
|
2526
2733
|
|
|
2527
2734
|
// src/entities/assessment-answer.entity.ts
|
|
2528
2735
|
import {
|
|
2529
|
-
Entity as
|
|
2530
|
-
Column as
|
|
2531
|
-
ManyToOne as
|
|
2736
|
+
Entity as Entity32,
|
|
2737
|
+
Column as Column33,
|
|
2738
|
+
ManyToOne as ManyToOne28,
|
|
2532
2739
|
Index as Index25,
|
|
2533
|
-
JoinColumn as
|
|
2740
|
+
JoinColumn as JoinColumn28
|
|
2534
2741
|
} from "typeorm";
|
|
2535
2742
|
|
|
2536
2743
|
// src/entities/assessment-question.entity.ts
|
|
2537
|
-
import { Entity as
|
|
2744
|
+
import { Entity as Entity31, Column as Column32, OneToMany as OneToMany11 } from "typeorm";
|
|
2538
2745
|
|
|
2539
2746
|
// src/entities/assessment-question-option.entity.ts
|
|
2540
2747
|
import {
|
|
2541
|
-
Entity as
|
|
2542
|
-
Column as
|
|
2543
|
-
OneToMany as
|
|
2544
|
-
ManyToOne as
|
|
2748
|
+
Entity as Entity30,
|
|
2749
|
+
Column as Column31,
|
|
2750
|
+
OneToMany as OneToMany10,
|
|
2751
|
+
ManyToOne as ManyToOne27,
|
|
2545
2752
|
Index as Index24,
|
|
2546
|
-
JoinColumn as
|
|
2753
|
+
JoinColumn as JoinColumn27
|
|
2547
2754
|
} from "typeorm";
|
|
2548
2755
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2549
2756
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -2554,21 +2761,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2554
2761
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2555
2762
|
};
|
|
2556
2763
|
__decorateClass([
|
|
2557
|
-
|
|
2764
|
+
Column31({ name: "question_id", type: "integer", nullable: true }),
|
|
2558
2765
|
Index24()
|
|
2559
2766
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2560
2767
|
__decorateClass([
|
|
2561
|
-
|
|
2768
|
+
ManyToOne27(
|
|
2562
2769
|
() => AssessmetQuestion,
|
|
2563
2770
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2564
2771
|
),
|
|
2565
|
-
|
|
2772
|
+
JoinColumn27({ name: "question_id" })
|
|
2566
2773
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2567
2774
|
__decorateClass([
|
|
2568
|
-
|
|
2775
|
+
Column31({ name: "text", type: "varchar", nullable: true })
|
|
2569
2776
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2570
2777
|
__decorateClass([
|
|
2571
|
-
|
|
2778
|
+
Column31({
|
|
2572
2779
|
name: "answer_type",
|
|
2573
2780
|
type: "enum",
|
|
2574
2781
|
enum: AnswerTypeEnum,
|
|
@@ -2576,13 +2783,13 @@ __decorateClass([
|
|
|
2576
2783
|
})
|
|
2577
2784
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2578
2785
|
__decorateClass([
|
|
2579
|
-
|
|
2786
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
2580
2787
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2581
2788
|
__decorateClass([
|
|
2582
|
-
|
|
2789
|
+
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2583
2790
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2584
2791
|
AssessmetQuestionOption = __decorateClass([
|
|
2585
|
-
|
|
2792
|
+
Entity30("assessment_question_options")
|
|
2586
2793
|
], AssessmetQuestionOption);
|
|
2587
2794
|
|
|
2588
2795
|
// src/entities/assessment-question.entity.ts
|
|
@@ -2594,10 +2801,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
2594
2801
|
var AssessmetQuestion = class extends BaseEntity {
|
|
2595
2802
|
};
|
|
2596
2803
|
__decorateClass([
|
|
2597
|
-
|
|
2804
|
+
Column32({ name: "text", type: "varchar", nullable: true })
|
|
2598
2805
|
], AssessmetQuestion.prototype, "text", 2);
|
|
2599
2806
|
__decorateClass([
|
|
2600
|
-
|
|
2807
|
+
Column32({
|
|
2601
2808
|
name: "question_for",
|
|
2602
2809
|
type: "enum",
|
|
2603
2810
|
enum: QuestionForEnum,
|
|
@@ -2605,16 +2812,16 @@ __decorateClass([
|
|
|
2605
2812
|
})
|
|
2606
2813
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2607
2814
|
__decorateClass([
|
|
2608
|
-
|
|
2815
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
2609
2816
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2610
2817
|
__decorateClass([
|
|
2611
|
-
|
|
2818
|
+
OneToMany11(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2612
2819
|
], AssessmetQuestion.prototype, "options", 2);
|
|
2613
2820
|
__decorateClass([
|
|
2614
|
-
|
|
2821
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2615
2822
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
2616
2823
|
AssessmetQuestion = __decorateClass([
|
|
2617
|
-
|
|
2824
|
+
Entity31("assessment_questions")
|
|
2618
2825
|
], AssessmetQuestion);
|
|
2619
2826
|
|
|
2620
2827
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -2627,47 +2834,47 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
2627
2834
|
var AssessmentAnswer = class extends BaseEntity {
|
|
2628
2835
|
};
|
|
2629
2836
|
__decorateClass([
|
|
2630
|
-
|
|
2837
|
+
Column33({ name: "user_id", type: "integer" }),
|
|
2631
2838
|
Index25()
|
|
2632
2839
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
2633
2840
|
__decorateClass([
|
|
2634
|
-
|
|
2635
|
-
|
|
2841
|
+
ManyToOne28(() => User, (user) => user.assessmentAnswers),
|
|
2842
|
+
JoinColumn28({ name: "user_id" })
|
|
2636
2843
|
], AssessmentAnswer.prototype, "user", 2);
|
|
2637
2844
|
__decorateClass([
|
|
2638
|
-
|
|
2845
|
+
Column33({ name: "question_id", type: "integer" }),
|
|
2639
2846
|
Index25()
|
|
2640
2847
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2641
2848
|
__decorateClass([
|
|
2642
|
-
|
|
2849
|
+
ManyToOne28(
|
|
2643
2850
|
() => AssessmetQuestion,
|
|
2644
2851
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
2645
2852
|
),
|
|
2646
|
-
|
|
2853
|
+
JoinColumn28({ name: "question_id" })
|
|
2647
2854
|
], AssessmentAnswer.prototype, "question", 2);
|
|
2648
2855
|
__decorateClass([
|
|
2649
|
-
|
|
2856
|
+
Column33({ name: "selected_option_id", type: "integer" }),
|
|
2650
2857
|
Index25()
|
|
2651
2858
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
2652
2859
|
__decorateClass([
|
|
2653
|
-
|
|
2860
|
+
ManyToOne28(
|
|
2654
2861
|
() => AssessmetQuestionOption,
|
|
2655
2862
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
2656
2863
|
),
|
|
2657
|
-
|
|
2864
|
+
JoinColumn28({ name: "selected_option_id" })
|
|
2658
2865
|
], AssessmentAnswer.prototype, "option", 2);
|
|
2659
2866
|
__decorateClass([
|
|
2660
|
-
|
|
2867
|
+
Column33({
|
|
2661
2868
|
name: "selected_answer_type",
|
|
2662
2869
|
type: "enum",
|
|
2663
2870
|
enum: SelectedAnswerTypeEnum
|
|
2664
2871
|
})
|
|
2665
2872
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
2666
2873
|
__decorateClass([
|
|
2667
|
-
|
|
2874
|
+
Column33({ name: "score", type: "float" })
|
|
2668
2875
|
], AssessmentAnswer.prototype, "score", 2);
|
|
2669
2876
|
AssessmentAnswer = __decorateClass([
|
|
2670
|
-
|
|
2877
|
+
Entity32("assessment_answers")
|
|
2671
2878
|
], AssessmentAnswer);
|
|
2672
2879
|
|
|
2673
2880
|
// src/entities/user.entity.ts
|
|
@@ -2695,51 +2902,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2695
2902
|
var User = class extends BaseEntity {
|
|
2696
2903
|
};
|
|
2697
2904
|
__decorateClass([
|
|
2698
|
-
|
|
2905
|
+
Column34({ name: "unique_id", type: "varchar", unique: true })
|
|
2699
2906
|
], User.prototype, "uniqueId", 2);
|
|
2700
2907
|
__decorateClass([
|
|
2701
|
-
|
|
2908
|
+
Column34({ name: "parent_id", type: "integer", nullable: true }),
|
|
2702
2909
|
Index26()
|
|
2703
2910
|
], User.prototype, "parentId", 2);
|
|
2704
2911
|
__decorateClass([
|
|
2705
|
-
|
|
2706
|
-
|
|
2912
|
+
ManyToOne29(() => User, (user) => user.children, { nullable: true }),
|
|
2913
|
+
JoinColumn29({ name: "parent_id" })
|
|
2707
2914
|
], User.prototype, "parent", 2);
|
|
2708
2915
|
__decorateClass([
|
|
2709
|
-
|
|
2916
|
+
OneToMany13(() => User, (user) => user.parent)
|
|
2710
2917
|
], User.prototype, "children", 2);
|
|
2711
2918
|
__decorateClass([
|
|
2712
|
-
|
|
2919
|
+
Column34({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2713
2920
|
], User.prototype, "username", 2);
|
|
2714
2921
|
__decorateClass([
|
|
2715
|
-
|
|
2922
|
+
Column34({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2716
2923
|
], User.prototype, "firstName", 2);
|
|
2717
2924
|
__decorateClass([
|
|
2718
|
-
|
|
2925
|
+
Column34({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2719
2926
|
], User.prototype, "lastName", 2);
|
|
2720
2927
|
__decorateClass([
|
|
2721
|
-
|
|
2928
|
+
Column34({ name: "date_of_birth", type: "date", nullable: true })
|
|
2722
2929
|
], User.prototype, "dateOfBirth", 2);
|
|
2723
2930
|
__decorateClass([
|
|
2724
|
-
|
|
2931
|
+
Column34({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2725
2932
|
], User.prototype, "gender", 2);
|
|
2726
2933
|
__decorateClass([
|
|
2727
|
-
|
|
2934
|
+
Column34({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2728
2935
|
], User.prototype, "profilePictureUrl", 2);
|
|
2729
2936
|
__decorateClass([
|
|
2730
|
-
|
|
2937
|
+
Column34({ name: "email", type: "varchar", unique: true })
|
|
2731
2938
|
], User.prototype, "email", 2);
|
|
2732
2939
|
__decorateClass([
|
|
2733
|
-
|
|
2940
|
+
Column34({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2734
2941
|
], User.prototype, "mobileCode", 2);
|
|
2735
2942
|
__decorateClass([
|
|
2736
|
-
|
|
2943
|
+
Column34({ name: "mobile", type: "varchar", nullable: true })
|
|
2737
2944
|
], User.prototype, "mobile", 2);
|
|
2738
2945
|
__decorateClass([
|
|
2739
|
-
|
|
2946
|
+
Column34({ name: "password", type: "varchar", nullable: true })
|
|
2740
2947
|
], User.prototype, "password", 2);
|
|
2741
2948
|
__decorateClass([
|
|
2742
|
-
|
|
2949
|
+
Column34({
|
|
2743
2950
|
name: "account_type",
|
|
2744
2951
|
type: "enum",
|
|
2745
2952
|
enum: AccountType,
|
|
@@ -2747,7 +2954,7 @@ __decorateClass([
|
|
|
2747
2954
|
})
|
|
2748
2955
|
], User.prototype, "accountType", 2);
|
|
2749
2956
|
__decorateClass([
|
|
2750
|
-
|
|
2957
|
+
Column34({
|
|
2751
2958
|
name: "account_status",
|
|
2752
2959
|
type: "enum",
|
|
2753
2960
|
enum: AccountStatus,
|
|
@@ -2755,36 +2962,36 @@ __decorateClass([
|
|
|
2755
2962
|
})
|
|
2756
2963
|
], User.prototype, "accountStatus", 2);
|
|
2757
2964
|
__decorateClass([
|
|
2758
|
-
|
|
2965
|
+
Column34({ name: "is_email_verified", type: "boolean", default: false })
|
|
2759
2966
|
], User.prototype, "isEmailVerified", 2);
|
|
2760
2967
|
__decorateClass([
|
|
2761
|
-
|
|
2968
|
+
Column34({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2762
2969
|
], User.prototype, "isMobileVerified", 2);
|
|
2763
2970
|
__decorateClass([
|
|
2764
|
-
|
|
2971
|
+
Column34({
|
|
2765
2972
|
name: "last_login_at",
|
|
2766
2973
|
type: "timestamp with time zone",
|
|
2767
2974
|
nullable: true
|
|
2768
2975
|
})
|
|
2769
2976
|
], User.prototype, "lastLoginAt", 2);
|
|
2770
2977
|
__decorateClass([
|
|
2771
|
-
|
|
2978
|
+
Column34({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2772
2979
|
], User.prototype, "lastLoginIp", 2);
|
|
2773
2980
|
__decorateClass([
|
|
2774
|
-
|
|
2981
|
+
Column34({ name: "reset_token", type: "varchar", nullable: true })
|
|
2775
2982
|
], User.prototype, "resetToken", 2);
|
|
2776
2983
|
__decorateClass([
|
|
2777
|
-
|
|
2984
|
+
Column34({
|
|
2778
2985
|
name: "reset_token_expire_at",
|
|
2779
2986
|
type: "timestamp with time zone",
|
|
2780
2987
|
nullable: true
|
|
2781
2988
|
})
|
|
2782
2989
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2783
2990
|
__decorateClass([
|
|
2784
|
-
|
|
2991
|
+
OneToMany13(() => RefreshToken, (token) => token.user)
|
|
2785
2992
|
], User.prototype, "refreshTokens", 2);
|
|
2786
2993
|
__decorateClass([
|
|
2787
|
-
|
|
2994
|
+
Column34({
|
|
2788
2995
|
name: "provider",
|
|
2789
2996
|
type: "enum",
|
|
2790
2997
|
enum: Provider,
|
|
@@ -2793,22 +3000,22 @@ __decorateClass([
|
|
|
2793
3000
|
})
|
|
2794
3001
|
], User.prototype, "provider", 2);
|
|
2795
3002
|
__decorateClass([
|
|
2796
|
-
|
|
3003
|
+
Column34({ name: "provider_token", type: "varchar", nullable: true })
|
|
2797
3004
|
], User.prototype, "providerToken", 2);
|
|
2798
3005
|
__decorateClass([
|
|
2799
|
-
|
|
3006
|
+
Column34({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2800
3007
|
], User.prototype, "linkedInId", 2);
|
|
2801
3008
|
__decorateClass([
|
|
2802
|
-
|
|
3009
|
+
Column34({ name: "google_id", type: "varchar", nullable: true })
|
|
2803
3010
|
], User.prototype, "googleId", 2);
|
|
2804
3011
|
__decorateClass([
|
|
2805
|
-
|
|
3012
|
+
Column34({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2806
3013
|
], User.prototype, "gitLabsId", 2);
|
|
2807
3014
|
__decorateClass([
|
|
2808
|
-
|
|
3015
|
+
OneToMany13(() => Otp, (otp) => otp.user)
|
|
2809
3016
|
], User.prototype, "otps", 2);
|
|
2810
3017
|
__decorateClass([
|
|
2811
|
-
|
|
3018
|
+
OneToMany13(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2812
3019
|
], User.prototype, "senseloafLogs", 2);
|
|
2813
3020
|
__decorateClass([
|
|
2814
3021
|
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
@@ -2819,43 +3026,43 @@ __decorateClass([
|
|
|
2819
3026
|
})
|
|
2820
3027
|
], User.prototype, "companyProfile", 2);
|
|
2821
3028
|
__decorateClass([
|
|
2822
|
-
|
|
3029
|
+
OneToMany13(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2823
3030
|
], User.prototype, "companyMemberRoles", 2);
|
|
2824
3031
|
__decorateClass([
|
|
2825
|
-
|
|
3032
|
+
OneToMany13(
|
|
2826
3033
|
() => FreelancerAssessment,
|
|
2827
3034
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2828
3035
|
)
|
|
2829
3036
|
], User.prototype, "assessments", 2);
|
|
2830
3037
|
__decorateClass([
|
|
2831
|
-
|
|
3038
|
+
OneToMany13(
|
|
2832
3039
|
() => AssessmentAnswer,
|
|
2833
3040
|
(assessmentAnswer) => assessmentAnswer.user
|
|
2834
3041
|
)
|
|
2835
3042
|
], User.prototype, "assessmentAnswers", 2);
|
|
2836
3043
|
__decorateClass([
|
|
2837
|
-
|
|
3044
|
+
OneToMany13(() => Job, (job) => job.user)
|
|
2838
3045
|
], User.prototype, "jobs", 2);
|
|
2839
3046
|
__decorateClass([
|
|
2840
|
-
|
|
3047
|
+
OneToMany13(() => Interview, (interview) => interview.user)
|
|
2841
3048
|
], User.prototype, "interviews", 2);
|
|
2842
3049
|
__decorateClass([
|
|
2843
|
-
|
|
3050
|
+
OneToMany13(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2844
3051
|
], User.prototype, "bankDetail", 2);
|
|
2845
3052
|
__decorateClass([
|
|
2846
|
-
|
|
3053
|
+
OneToMany13(
|
|
2847
3054
|
() => SystemPreference,
|
|
2848
3055
|
(systemPreference) => systemPreference.user
|
|
2849
3056
|
)
|
|
2850
3057
|
], User.prototype, "systemPreference", 2);
|
|
2851
3058
|
__decorateClass([
|
|
2852
|
-
|
|
3059
|
+
OneToMany13(() => Rating, (rating) => rating.reviewer)
|
|
2853
3060
|
], User.prototype, "givenRatings", 2);
|
|
2854
3061
|
__decorateClass([
|
|
2855
|
-
|
|
3062
|
+
OneToMany13(() => Rating, (rating) => rating.reviewee)
|
|
2856
3063
|
], User.prototype, "receivedRatings", 2);
|
|
2857
3064
|
__decorateClass([
|
|
2858
|
-
|
|
3065
|
+
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2859
3066
|
], User.prototype, "jobApplications", 2);
|
|
2860
3067
|
__decorateClass([
|
|
2861
3068
|
OneToOne(
|
|
@@ -2903,7 +3110,7 @@ __decorateClass([
|
|
|
2903
3110
|
)
|
|
2904
3111
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2905
3112
|
User = __decorateClass([
|
|
2906
|
-
|
|
3113
|
+
Entity33("users")
|
|
2907
3114
|
], User);
|
|
2908
3115
|
|
|
2909
3116
|
// src/entities/rating.entity.ts
|
|
@@ -2915,36 +3122,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2915
3122
|
var Rating = class extends BaseEntity {
|
|
2916
3123
|
};
|
|
2917
3124
|
__decorateClass([
|
|
2918
|
-
|
|
3125
|
+
Column35({ name: "reviewer_id", type: "integer" }),
|
|
2919
3126
|
Index27()
|
|
2920
3127
|
], Rating.prototype, "reviewer_id", 2);
|
|
2921
3128
|
__decorateClass([
|
|
2922
|
-
|
|
2923
|
-
|
|
3129
|
+
ManyToOne30(() => User, { onDelete: "CASCADE" }),
|
|
3130
|
+
JoinColumn30({ name: "reviewer_id" })
|
|
2924
3131
|
], Rating.prototype, "reviewer", 2);
|
|
2925
3132
|
__decorateClass([
|
|
2926
|
-
|
|
3133
|
+
Column35({ name: "reviewee_id", type: "integer" }),
|
|
2927
3134
|
Index27()
|
|
2928
3135
|
], Rating.prototype, "reviewee_id", 2);
|
|
2929
3136
|
__decorateClass([
|
|
2930
|
-
|
|
2931
|
-
|
|
3137
|
+
ManyToOne30(() => User, { onDelete: "CASCADE" }),
|
|
3138
|
+
JoinColumn30({ name: "reviewee_id" })
|
|
2932
3139
|
], Rating.prototype, "reviewee", 2);
|
|
2933
3140
|
__decorateClass([
|
|
2934
|
-
|
|
3141
|
+
Column35({
|
|
2935
3142
|
type: "enum",
|
|
2936
3143
|
enum: RatingTypeEnum,
|
|
2937
3144
|
nullable: true
|
|
2938
3145
|
})
|
|
2939
3146
|
], Rating.prototype, "ratingType", 2);
|
|
2940
3147
|
__decorateClass([
|
|
2941
|
-
|
|
3148
|
+
Column35({ type: "integer", nullable: true })
|
|
2942
3149
|
], Rating.prototype, "rating", 2);
|
|
2943
3150
|
__decorateClass([
|
|
2944
|
-
|
|
3151
|
+
Column35({ type: "text", nullable: true })
|
|
2945
3152
|
], Rating.prototype, "review", 2);
|
|
2946
3153
|
Rating = __decorateClass([
|
|
2947
|
-
|
|
3154
|
+
Entity34("ratings")
|
|
2948
3155
|
], Rating);
|
|
2949
3156
|
|
|
2950
3157
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3303,7 +3510,8 @@ import {
|
|
|
3303
3510
|
MaxLength as MaxLength14,
|
|
3304
3511
|
IsNotEmpty as IsNotEmpty38,
|
|
3305
3512
|
MinLength as MinLength12,
|
|
3306
|
-
Matches as Matches8
|
|
3513
|
+
Matches as Matches8,
|
|
3514
|
+
ValidateIf as ValidateIf3
|
|
3307
3515
|
} from "class-validator";
|
|
3308
3516
|
import { Type as Type6 } from "class-transformer";
|
|
3309
3517
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -3368,13 +3576,14 @@ __decorateClass([
|
|
|
3368
3576
|
)}`
|
|
3369
3577
|
})
|
|
3370
3578
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3371
|
-
__decorateClass([
|
|
3372
|
-
IsNotEmpty38({ message: "Please enter availability to join." })
|
|
3373
|
-
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3374
3579
|
__decorateClass([
|
|
3375
3580
|
IsBoolean12({ message: "isImmediateJoiner must be true or false" }),
|
|
3376
3581
|
Type6(() => Boolean)
|
|
3377
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);
|
|
3378
3587
|
__decorateClass([
|
|
3379
3588
|
IsOptional18(),
|
|
3380
3589
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3409,7 +3618,8 @@ import {
|
|
|
3409
3618
|
MaxLength as MaxLength15,
|
|
3410
3619
|
MinLength as MinLength13,
|
|
3411
3620
|
Matches as Matches9,
|
|
3412
|
-
IsNotEmpty as IsNotEmpty39
|
|
3621
|
+
IsNotEmpty as IsNotEmpty39,
|
|
3622
|
+
ValidateIf as ValidateIf4
|
|
3413
3623
|
} from "class-validator";
|
|
3414
3624
|
import { Type as Type7 } from "class-transformer";
|
|
3415
3625
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -3427,16 +3637,20 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3427
3637
|
var UpdateFreelancerDto = class {
|
|
3428
3638
|
};
|
|
3429
3639
|
__decorateClass([
|
|
3640
|
+
IsOptional19(),
|
|
3430
3641
|
IsString27({ message: "Full name must be a string" }),
|
|
3431
3642
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
3432
3643
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3433
3644
|
__decorateClass([
|
|
3645
|
+
IsOptional19(),
|
|
3434
3646
|
IsEmail12({}, { message: "Invalid email address" })
|
|
3435
3647
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3436
3648
|
__decorateClass([
|
|
3649
|
+
IsOptional19(),
|
|
3437
3650
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3438
3651
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3439
3652
|
__decorateClass([
|
|
3653
|
+
IsOptional19(),
|
|
3440
3654
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3441
3655
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3442
3656
|
__decorateClass([
|
|
@@ -3448,10 +3662,12 @@ __decorateClass([
|
|
|
3448
3662
|
})
|
|
3449
3663
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3450
3664
|
__decorateClass([
|
|
3665
|
+
IsOptional19(),
|
|
3451
3666
|
IsBoolean13({ message: "Developer flag must be true or false" }),
|
|
3452
3667
|
Type7(() => Boolean)
|
|
3453
3668
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3454
3669
|
__decorateClass([
|
|
3670
|
+
IsOptional19(),
|
|
3455
3671
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3456
3672
|
message: `Nature of work must be one of: ${Object.values(
|
|
3457
3673
|
NatureOfWorkEnum2
|
|
@@ -3459,11 +3675,13 @@ __decorateClass([
|
|
|
3459
3675
|
})
|
|
3460
3676
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3461
3677
|
__decorateClass([
|
|
3678
|
+
IsOptional19(),
|
|
3462
3679
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3463
3680
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3464
3681
|
Type7(() => Number)
|
|
3465
3682
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3466
3683
|
__decorateClass([
|
|
3684
|
+
IsOptional19(),
|
|
3467
3685
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3468
3686
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3469
3687
|
", "
|
|
@@ -3471,12 +3689,15 @@ __decorateClass([
|
|
|
3471
3689
|
})
|
|
3472
3690
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3473
3691
|
__decorateClass([
|
|
3474
|
-
|
|
3475
|
-
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3476
|
-
__decorateClass([
|
|
3692
|
+
IsOptional19(),
|
|
3477
3693
|
IsBoolean13({ message: "isImmediateJoiner must be true or false" }),
|
|
3478
3694
|
Type7(() => Boolean)
|
|
3479
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);
|
|
3480
3701
|
__decorateClass([
|
|
3481
3702
|
IsOptional19(),
|
|
3482
3703
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3982,7 +4203,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3982
4203
|
};
|
|
3983
4204
|
|
|
3984
4205
|
// src/entities/question.entity.ts
|
|
3985
|
-
import { Entity as
|
|
4206
|
+
import { Entity as Entity35, Column as Column36 } from "typeorm";
|
|
3986
4207
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3987
4208
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3988
4209
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3991,16 +4212,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3991
4212
|
var Question = class extends BaseEntity {
|
|
3992
4213
|
};
|
|
3993
4214
|
__decorateClass([
|
|
3994
|
-
|
|
4215
|
+
Column36({ name: "question", type: "varchar" })
|
|
3995
4216
|
], Question.prototype, "question", 2);
|
|
3996
4217
|
__decorateClass([
|
|
3997
|
-
|
|
4218
|
+
Column36({ name: "hint", type: "varchar", nullable: true })
|
|
3998
4219
|
], Question.prototype, "hint", 2);
|
|
3999
4220
|
__decorateClass([
|
|
4000
|
-
|
|
4221
|
+
Column36({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4001
4222
|
], Question.prototype, "slug", 2);
|
|
4002
4223
|
__decorateClass([
|
|
4003
|
-
|
|
4224
|
+
Column36({
|
|
4004
4225
|
name: "question_for",
|
|
4005
4226
|
type: "enum",
|
|
4006
4227
|
enum: QuestionFor,
|
|
@@ -4008,273 +4229,97 @@ __decorateClass([
|
|
|
4008
4229
|
})
|
|
4009
4230
|
], Question.prototype, "questionFor", 2);
|
|
4010
4231
|
__decorateClass([
|
|
4011
|
-
|
|
4232
|
+
Column36({ name: "type", type: "varchar", nullable: true })
|
|
4012
4233
|
], Question.prototype, "type", 2);
|
|
4013
4234
|
__decorateClass([
|
|
4014
|
-
|
|
4235
|
+
Column36({ name: "options", type: "jsonb", nullable: true })
|
|
4015
4236
|
], Question.prototype, "options", 2);
|
|
4016
4237
|
__decorateClass([
|
|
4017
|
-
|
|
4238
|
+
Column36({ name: "is_active", type: "boolean", default: false })
|
|
4018
4239
|
], Question.prototype, "isActive", 2);
|
|
4019
4240
|
Question = __decorateClass([
|
|
4020
|
-
|
|
4241
|
+
Entity35("questions")
|
|
4021
4242
|
], Question);
|
|
4022
4243
|
|
|
4023
4244
|
// src/entities/job-role.entity.ts
|
|
4024
|
-
import { Entity as
|
|
4245
|
+
import { Entity as Entity36, Column as Column37 } from "typeorm";
|
|
4025
4246
|
var JobRoles = class extends BaseEntity {
|
|
4026
4247
|
};
|
|
4027
4248
|
__decorateClass([
|
|
4028
|
-
|
|
4249
|
+
Column37({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4029
4250
|
], JobRoles.prototype, "slug", 2);
|
|
4030
4251
|
__decorateClass([
|
|
4031
|
-
|
|
4252
|
+
Column37({ name: "name", type: "varchar", nullable: true })
|
|
4032
4253
|
], JobRoles.prototype, "name", 2);
|
|
4033
4254
|
__decorateClass([
|
|
4034
|
-
|
|
4255
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
4035
4256
|
], JobRoles.prototype, "isActive", 2);
|
|
4036
4257
|
JobRoles = __decorateClass([
|
|
4037
|
-
|
|
4258
|
+
Entity36("job_roles")
|
|
4038
4259
|
], JobRoles);
|
|
4039
4260
|
|
|
4040
4261
|
// src/entities/plan.entity.ts
|
|
4041
|
-
import { Entity as
|
|
4262
|
+
import { Entity as Entity38, Column as Column39, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
4042
4263
|
|
|
4043
4264
|
// src/entities/feature.entity.ts
|
|
4044
|
-
import { Entity as
|
|
4265
|
+
import { Entity as Entity37, Column as Column38, ManyToMany as ManyToMany2 } from "typeorm";
|
|
4045
4266
|
var Feature = class extends BaseEntity {
|
|
4046
4267
|
};
|
|
4047
4268
|
__decorateClass([
|
|
4048
|
-
|
|
4269
|
+
Column38({ name: "name", type: "varchar", unique: true })
|
|
4049
4270
|
], Feature.prototype, "name", 2);
|
|
4050
4271
|
__decorateClass([
|
|
4051
4272
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
4052
4273
|
], Feature.prototype, "plans", 2);
|
|
4053
4274
|
Feature = __decorateClass([
|
|
4054
|
-
|
|
4275
|
+
Entity37("features")
|
|
4055
4276
|
], Feature);
|
|
4056
4277
|
|
|
4057
4278
|
// src/entities/plan.entity.ts
|
|
4058
4279
|
var Plan = class extends BaseEntity {
|
|
4059
4280
|
};
|
|
4060
4281
|
__decorateClass([
|
|
4061
|
-
|
|
4282
|
+
Column39({ name: "name", type: "varchar", unique: true })
|
|
4062
4283
|
], Plan.prototype, "name", 2);
|
|
4063
4284
|
__decorateClass([
|
|
4064
|
-
|
|
4285
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
4065
4286
|
], Plan.prototype, "description", 2);
|
|
4066
4287
|
__decorateClass([
|
|
4067
|
-
|
|
4288
|
+
Column39({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4068
4289
|
], Plan.prototype, "price", 2);
|
|
4069
4290
|
__decorateClass([
|
|
4070
|
-
|
|
4291
|
+
Column39({ name: "billing_period", type: "varchar" })
|
|
4071
4292
|
], Plan.prototype, "billingPeriod", 2);
|
|
4072
4293
|
__decorateClass([
|
|
4073
|
-
|
|
4294
|
+
Column39({ name: "is_current", type: "boolean", default: false })
|
|
4074
4295
|
], Plan.prototype, "isCurrent", 2);
|
|
4075
4296
|
__decorateClass([
|
|
4076
4297
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4077
4298
|
JoinTable()
|
|
4078
4299
|
], Plan.prototype, "features", 2);
|
|
4079
4300
|
Plan = __decorateClass([
|
|
4080
|
-
|
|
4301
|
+
Entity38("plans")
|
|
4081
4302
|
], Plan);
|
|
4082
4303
|
|
|
4083
4304
|
// src/entities/cms.entity.ts
|
|
4084
|
-
import { Entity as
|
|
4305
|
+
import { Entity as Entity39, Column as Column40 } from "typeorm";
|
|
4085
4306
|
var Cms = class extends BaseEntity {
|
|
4086
4307
|
};
|
|
4087
4308
|
__decorateClass([
|
|
4088
|
-
|
|
4309
|
+
Column40({ name: "title", type: "varchar", nullable: true })
|
|
4089
4310
|
], Cms.prototype, "title", 2);
|
|
4090
4311
|
__decorateClass([
|
|
4091
|
-
|
|
4312
|
+
Column40({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4092
4313
|
], Cms.prototype, "slug", 2);
|
|
4093
4314
|
__decorateClass([
|
|
4094
|
-
|
|
4315
|
+
Column40({ name: "content", type: "varchar", nullable: true })
|
|
4095
4316
|
], Cms.prototype, "content", 2);
|
|
4096
4317
|
__decorateClass([
|
|
4097
|
-
|
|
4318
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
4098
4319
|
], Cms.prototype, "isActive", 2);
|
|
4099
4320
|
Cms = __decorateClass([
|
|
4100
|
-
|
|
4321
|
+
Entity39("cms")
|
|
4101
4322
|
], Cms);
|
|
4102
|
-
|
|
4103
|
-
// src/entities/country.entity.ts
|
|
4104
|
-
import {
|
|
4105
|
-
Entity as Entity39,
|
|
4106
|
-
Column as Column40,
|
|
4107
|
-
OneToMany as OneToMany16
|
|
4108
|
-
} from "typeorm";
|
|
4109
|
-
|
|
4110
|
-
// src/entities/state.entity.ts
|
|
4111
|
-
import {
|
|
4112
|
-
Entity as Entity38,
|
|
4113
|
-
Column as Column39,
|
|
4114
|
-
ManyToOne as ManyToOne30,
|
|
4115
|
-
JoinColumn as JoinColumn30,
|
|
4116
|
-
OneToMany as OneToMany15
|
|
4117
|
-
} from "typeorm";
|
|
4118
|
-
|
|
4119
|
-
// src/entities/city.entity.ts
|
|
4120
|
-
import {
|
|
4121
|
-
Entity as Entity37,
|
|
4122
|
-
Column as Column38,
|
|
4123
|
-
ManyToOne as ManyToOne29,
|
|
4124
|
-
JoinColumn as JoinColumn29
|
|
4125
|
-
} from "typeorm";
|
|
4126
|
-
var City = class extends BaseEntity {
|
|
4127
|
-
};
|
|
4128
|
-
__decorateClass([
|
|
4129
|
-
Column38({
|
|
4130
|
-
name: "country_id",
|
|
4131
|
-
type: "int",
|
|
4132
|
-
nullable: true,
|
|
4133
|
-
comment: "Id of the country"
|
|
4134
|
-
})
|
|
4135
|
-
], City.prototype, "countryId", 2);
|
|
4136
|
-
__decorateClass([
|
|
4137
|
-
ManyToOne29(() => Country),
|
|
4138
|
-
JoinColumn29({ name: "country_id" })
|
|
4139
|
-
], City.prototype, "country", 2);
|
|
4140
|
-
__decorateClass([
|
|
4141
|
-
Column38({
|
|
4142
|
-
name: "state_id",
|
|
4143
|
-
type: "int",
|
|
4144
|
-
nullable: false,
|
|
4145
|
-
comment: "Id of the state"
|
|
4146
|
-
})
|
|
4147
|
-
], City.prototype, "stateId", 2);
|
|
4148
|
-
__decorateClass([
|
|
4149
|
-
ManyToOne29(() => State, (state) => state.cities),
|
|
4150
|
-
JoinColumn29({ name: "state_id" })
|
|
4151
|
-
], City.prototype, "state", 2);
|
|
4152
|
-
__decorateClass([
|
|
4153
|
-
Column38({
|
|
4154
|
-
name: "city_code",
|
|
4155
|
-
type: "varchar",
|
|
4156
|
-
length: 100,
|
|
4157
|
-
nullable: false,
|
|
4158
|
-
unique: true,
|
|
4159
|
-
comment: "Code of the city"
|
|
4160
|
-
})
|
|
4161
|
-
], City.prototype, "cityCode", 2);
|
|
4162
|
-
__decorateClass([
|
|
4163
|
-
Column38({
|
|
4164
|
-
name: "city_name",
|
|
4165
|
-
type: "varchar",
|
|
4166
|
-
length: 100,
|
|
4167
|
-
nullable: false,
|
|
4168
|
-
comment: "Name of the city"
|
|
4169
|
-
})
|
|
4170
|
-
], City.prototype, "cityName", 2);
|
|
4171
|
-
__decorateClass([
|
|
4172
|
-
Column38({
|
|
4173
|
-
name: "is_active",
|
|
4174
|
-
type: "boolean",
|
|
4175
|
-
default: true,
|
|
4176
|
-
comment: "Flag indicating if the city is active"
|
|
4177
|
-
})
|
|
4178
|
-
], City.prototype, "isActive", 2);
|
|
4179
|
-
City = __decorateClass([
|
|
4180
|
-
Entity37("cities")
|
|
4181
|
-
], City);
|
|
4182
|
-
|
|
4183
|
-
// src/entities/state.entity.ts
|
|
4184
|
-
var State = class extends BaseEntity {
|
|
4185
|
-
};
|
|
4186
|
-
__decorateClass([
|
|
4187
|
-
Column39({
|
|
4188
|
-
name: "country_id",
|
|
4189
|
-
type: "int",
|
|
4190
|
-
nullable: false,
|
|
4191
|
-
comment: "Id of the country"
|
|
4192
|
-
})
|
|
4193
|
-
], State.prototype, "countryId", 2);
|
|
4194
|
-
__decorateClass([
|
|
4195
|
-
ManyToOne30(() => Country, (country) => country.states),
|
|
4196
|
-
JoinColumn30({ name: "country_id" })
|
|
4197
|
-
], State.prototype, "country", 2);
|
|
4198
|
-
__decorateClass([
|
|
4199
|
-
OneToMany15(() => City, (city) => city.state)
|
|
4200
|
-
], State.prototype, "cities", 2);
|
|
4201
|
-
__decorateClass([
|
|
4202
|
-
Column39({
|
|
4203
|
-
name: "state_name",
|
|
4204
|
-
type: "varchar",
|
|
4205
|
-
length: 100,
|
|
4206
|
-
nullable: false,
|
|
4207
|
-
comment: "Name of the state"
|
|
4208
|
-
})
|
|
4209
|
-
], State.prototype, "stateName", 2);
|
|
4210
|
-
__decorateClass([
|
|
4211
|
-
Column39({
|
|
4212
|
-
name: "is_active",
|
|
4213
|
-
type: "boolean",
|
|
4214
|
-
default: true,
|
|
4215
|
-
comment: "Flag indicating if the state is active"
|
|
4216
|
-
})
|
|
4217
|
-
], State.prototype, "isActive", 2);
|
|
4218
|
-
State = __decorateClass([
|
|
4219
|
-
Entity38("states")
|
|
4220
|
-
], State);
|
|
4221
|
-
|
|
4222
|
-
// src/entities/country.entity.ts
|
|
4223
|
-
var Country = class extends BaseEntity {
|
|
4224
|
-
};
|
|
4225
|
-
__decorateClass([
|
|
4226
|
-
OneToMany16(() => State, (state) => state.country)
|
|
4227
|
-
], Country.prototype, "states", 2);
|
|
4228
|
-
__decorateClass([
|
|
4229
|
-
Column40({
|
|
4230
|
-
name: "country_name",
|
|
4231
|
-
type: "varchar",
|
|
4232
|
-
length: 100,
|
|
4233
|
-
nullable: false,
|
|
4234
|
-
// Set to false for required
|
|
4235
|
-
comment: "Name of the country"
|
|
4236
|
-
})
|
|
4237
|
-
], Country.prototype, "countryName", 2);
|
|
4238
|
-
__decorateClass([
|
|
4239
|
-
Column40({
|
|
4240
|
-
name: "country_iso_code",
|
|
4241
|
-
type: "varchar",
|
|
4242
|
-
length: 2,
|
|
4243
|
-
nullable: false,
|
|
4244
|
-
// Must be required if it's unique
|
|
4245
|
-
unique: true,
|
|
4246
|
-
comment: "ISO 3166-1 alpha-2 country code"
|
|
4247
|
-
})
|
|
4248
|
-
], Country.prototype, "countryIsoCode", 2);
|
|
4249
|
-
__decorateClass([
|
|
4250
|
-
Column40({
|
|
4251
|
-
name: "country_phone_code",
|
|
4252
|
-
type: "varchar",
|
|
4253
|
-
length: 10,
|
|
4254
|
-
nullable: true,
|
|
4255
|
-
comment: "International dialing code for the country"
|
|
4256
|
-
})
|
|
4257
|
-
], Country.prototype, "countryPhoneCode", 2);
|
|
4258
|
-
__decorateClass([
|
|
4259
|
-
Column40({
|
|
4260
|
-
name: "currency",
|
|
4261
|
-
type: "varchar",
|
|
4262
|
-
length: 3,
|
|
4263
|
-
nullable: true,
|
|
4264
|
-
comment: "ISO 4217 currency code"
|
|
4265
|
-
})
|
|
4266
|
-
], Country.prototype, "currency", 2);
|
|
4267
|
-
__decorateClass([
|
|
4268
|
-
Column40({
|
|
4269
|
-
name: "is_active",
|
|
4270
|
-
type: "boolean",
|
|
4271
|
-
default: true,
|
|
4272
|
-
comment: "Flag indicating if the country is active"
|
|
4273
|
-
})
|
|
4274
|
-
], Country.prototype, "isActive", 2);
|
|
4275
|
-
Country = __decorateClass([
|
|
4276
|
-
Entity39("countries")
|
|
4277
|
-
], Country);
|
|
4278
4323
|
export {
|
|
4279
4324
|
ADMIN_FREELANCER_PATTERN,
|
|
4280
4325
|
ASSESSMENT_QUESTION_PATTERN,
|
|
@@ -4364,6 +4409,7 @@ export {
|
|
|
4364
4409
|
Interview,
|
|
4365
4410
|
InterviewSkill,
|
|
4366
4411
|
InterviewStatusEnum,
|
|
4412
|
+
JOB_ADMIN_PATTERN,
|
|
4367
4413
|
JOB_PATTERN,
|
|
4368
4414
|
JOB_ROLE_PATTERN,
|
|
4369
4415
|
Job,
|