@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.js
CHANGED
|
@@ -115,6 +115,7 @@ __export(index_exports, {
|
|
|
115
115
|
Interview: () => Interview,
|
|
116
116
|
InterviewSkill: () => InterviewSkill,
|
|
117
117
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
118
|
+
JOB_ADMIN_PATTERN: () => JOB_ADMIN_PATTERN,
|
|
118
119
|
JOB_PATTERN: () => JOB_PATTERN,
|
|
119
120
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
120
121
|
Job: () => Job,
|
|
@@ -828,6 +829,13 @@ var JOB_PATTERN = {
|
|
|
828
829
|
updateJobStatus: "update.job.status",
|
|
829
830
|
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills"
|
|
830
831
|
};
|
|
832
|
+
var JOB_ADMIN_PATTERN = {
|
|
833
|
+
adminFetchJobList: "admin.fetch.job.list",
|
|
834
|
+
adminFetchJobById: "admin.fetch.job.by.id",
|
|
835
|
+
adminCreateJob: "admin.create.job",
|
|
836
|
+
adminUpdateJob: "admin.update.job",
|
|
837
|
+
adminDeleteJob: "admin.delete.job"
|
|
838
|
+
};
|
|
831
839
|
|
|
832
840
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
833
841
|
var import_class_validator26 = require("class-validator");
|
|
@@ -1158,10 +1166,10 @@ var RATING_PATTERN = {
|
|
|
1158
1166
|
var import_class_validator35 = require("class-validator");
|
|
1159
1167
|
|
|
1160
1168
|
// src/entities/rating.entity.ts
|
|
1161
|
-
var
|
|
1169
|
+
var import_typeorm35 = require("typeorm");
|
|
1162
1170
|
|
|
1163
1171
|
// src/entities/user.entity.ts
|
|
1164
|
-
var
|
|
1172
|
+
var import_typeorm34 = require("typeorm");
|
|
1165
1173
|
|
|
1166
1174
|
// src/entities/base.entity.ts
|
|
1167
1175
|
var import_typeorm = require("typeorm");
|
|
@@ -1570,7 +1578,7 @@ CompanyProfile = __decorateClass([
|
|
|
1570
1578
|
], CompanyProfile);
|
|
1571
1579
|
|
|
1572
1580
|
// src/entities/job.entity.ts
|
|
1573
|
-
var
|
|
1581
|
+
var import_typeorm15 = require("typeorm");
|
|
1574
1582
|
|
|
1575
1583
|
// src/entities/job-skill.entity.ts
|
|
1576
1584
|
var import_typeorm8 = require("typeorm");
|
|
@@ -1825,6 +1833,167 @@ Interview = __decorateClass([
|
|
|
1825
1833
|
(0, import_typeorm11.Entity)("interviews")
|
|
1826
1834
|
], Interview);
|
|
1827
1835
|
|
|
1836
|
+
// src/entities/country.entity.ts
|
|
1837
|
+
var import_typeorm14 = require("typeorm");
|
|
1838
|
+
|
|
1839
|
+
// src/entities/state.entity.ts
|
|
1840
|
+
var import_typeorm13 = require("typeorm");
|
|
1841
|
+
|
|
1842
|
+
// src/entities/city.entity.ts
|
|
1843
|
+
var import_typeorm12 = require("typeorm");
|
|
1844
|
+
var City = class extends BaseEntity {
|
|
1845
|
+
};
|
|
1846
|
+
__decorateClass([
|
|
1847
|
+
(0, import_typeorm12.Column)({
|
|
1848
|
+
name: "country_id",
|
|
1849
|
+
type: "int",
|
|
1850
|
+
nullable: true,
|
|
1851
|
+
comment: "Id of the country"
|
|
1852
|
+
})
|
|
1853
|
+
], City.prototype, "countryId", 2);
|
|
1854
|
+
__decorateClass([
|
|
1855
|
+
(0, import_typeorm12.ManyToOne)(() => Country),
|
|
1856
|
+
(0, import_typeorm12.JoinColumn)({ name: "country_id" })
|
|
1857
|
+
], City.prototype, "country", 2);
|
|
1858
|
+
__decorateClass([
|
|
1859
|
+
(0, import_typeorm12.Column)({
|
|
1860
|
+
name: "state_id",
|
|
1861
|
+
type: "int",
|
|
1862
|
+
nullable: false,
|
|
1863
|
+
comment: "Id of the state"
|
|
1864
|
+
})
|
|
1865
|
+
], City.prototype, "stateId", 2);
|
|
1866
|
+
__decorateClass([
|
|
1867
|
+
(0, import_typeorm12.ManyToOne)(() => State, (state) => state.cities),
|
|
1868
|
+
(0, import_typeorm12.JoinColumn)({ name: "state_id" })
|
|
1869
|
+
], City.prototype, "state", 2);
|
|
1870
|
+
__decorateClass([
|
|
1871
|
+
(0, import_typeorm12.Column)({
|
|
1872
|
+
name: "city_code",
|
|
1873
|
+
type: "varchar",
|
|
1874
|
+
length: 100,
|
|
1875
|
+
nullable: false,
|
|
1876
|
+
unique: true,
|
|
1877
|
+
comment: "Code of the city"
|
|
1878
|
+
})
|
|
1879
|
+
], City.prototype, "cityCode", 2);
|
|
1880
|
+
__decorateClass([
|
|
1881
|
+
(0, import_typeorm12.Column)({
|
|
1882
|
+
name: "city_name",
|
|
1883
|
+
type: "varchar",
|
|
1884
|
+
length: 100,
|
|
1885
|
+
nullable: false,
|
|
1886
|
+
comment: "Name of the city"
|
|
1887
|
+
})
|
|
1888
|
+
], City.prototype, "cityName", 2);
|
|
1889
|
+
__decorateClass([
|
|
1890
|
+
(0, import_typeorm12.Column)({
|
|
1891
|
+
name: "is_active",
|
|
1892
|
+
type: "boolean",
|
|
1893
|
+
default: true,
|
|
1894
|
+
comment: "Flag indicating if the city is active"
|
|
1895
|
+
})
|
|
1896
|
+
], City.prototype, "isActive", 2);
|
|
1897
|
+
City = __decorateClass([
|
|
1898
|
+
(0, import_typeorm12.Entity)("cities")
|
|
1899
|
+
], City);
|
|
1900
|
+
|
|
1901
|
+
// src/entities/state.entity.ts
|
|
1902
|
+
var State = class extends BaseEntity {
|
|
1903
|
+
};
|
|
1904
|
+
__decorateClass([
|
|
1905
|
+
(0, import_typeorm13.Column)({
|
|
1906
|
+
name: "country_id",
|
|
1907
|
+
type: "int",
|
|
1908
|
+
nullable: false,
|
|
1909
|
+
comment: "Id of the country"
|
|
1910
|
+
})
|
|
1911
|
+
], State.prototype, "countryId", 2);
|
|
1912
|
+
__decorateClass([
|
|
1913
|
+
(0, import_typeorm13.ManyToOne)(() => Country, (country) => country.states),
|
|
1914
|
+
(0, import_typeorm13.JoinColumn)({ name: "country_id" })
|
|
1915
|
+
], State.prototype, "country", 2);
|
|
1916
|
+
__decorateClass([
|
|
1917
|
+
(0, import_typeorm13.OneToMany)(() => City, (city) => city.state)
|
|
1918
|
+
], State.prototype, "cities", 2);
|
|
1919
|
+
__decorateClass([
|
|
1920
|
+
(0, import_typeorm13.Column)({
|
|
1921
|
+
name: "state_name",
|
|
1922
|
+
type: "varchar",
|
|
1923
|
+
length: 100,
|
|
1924
|
+
nullable: false,
|
|
1925
|
+
comment: "Name of the state"
|
|
1926
|
+
})
|
|
1927
|
+
], State.prototype, "stateName", 2);
|
|
1928
|
+
__decorateClass([
|
|
1929
|
+
(0, import_typeorm13.Column)({
|
|
1930
|
+
name: "is_active",
|
|
1931
|
+
type: "boolean",
|
|
1932
|
+
default: true,
|
|
1933
|
+
comment: "Flag indicating if the state is active"
|
|
1934
|
+
})
|
|
1935
|
+
], State.prototype, "isActive", 2);
|
|
1936
|
+
State = __decorateClass([
|
|
1937
|
+
(0, import_typeorm13.Entity)("states")
|
|
1938
|
+
], State);
|
|
1939
|
+
|
|
1940
|
+
// src/entities/country.entity.ts
|
|
1941
|
+
var Country = class extends BaseEntity {
|
|
1942
|
+
};
|
|
1943
|
+
__decorateClass([
|
|
1944
|
+
(0, import_typeorm14.OneToMany)(() => State, (state) => state.country)
|
|
1945
|
+
], Country.prototype, "states", 2);
|
|
1946
|
+
__decorateClass([
|
|
1947
|
+
(0, import_typeorm14.Column)({
|
|
1948
|
+
name: "country_name",
|
|
1949
|
+
type: "varchar",
|
|
1950
|
+
length: 100,
|
|
1951
|
+
nullable: false,
|
|
1952
|
+
// Set to false for required
|
|
1953
|
+
comment: "Name of the country"
|
|
1954
|
+
})
|
|
1955
|
+
], Country.prototype, "countryName", 2);
|
|
1956
|
+
__decorateClass([
|
|
1957
|
+
(0, import_typeorm14.Column)({
|
|
1958
|
+
name: "country_iso_code",
|
|
1959
|
+
type: "varchar",
|
|
1960
|
+
length: 2,
|
|
1961
|
+
nullable: false,
|
|
1962
|
+
// Must be required if it's unique
|
|
1963
|
+
unique: true,
|
|
1964
|
+
comment: "ISO 3166-1 alpha-2 country code"
|
|
1965
|
+
})
|
|
1966
|
+
], Country.prototype, "countryIsoCode", 2);
|
|
1967
|
+
__decorateClass([
|
|
1968
|
+
(0, import_typeorm14.Column)({
|
|
1969
|
+
name: "country_phone_code",
|
|
1970
|
+
type: "varchar",
|
|
1971
|
+
length: 10,
|
|
1972
|
+
nullable: true,
|
|
1973
|
+
comment: "International dialing code for the country"
|
|
1974
|
+
})
|
|
1975
|
+
], Country.prototype, "countryPhoneCode", 2);
|
|
1976
|
+
__decorateClass([
|
|
1977
|
+
(0, import_typeorm14.Column)({
|
|
1978
|
+
name: "currency",
|
|
1979
|
+
type: "varchar",
|
|
1980
|
+
length: 3,
|
|
1981
|
+
nullable: true,
|
|
1982
|
+
comment: "ISO 4217 currency code"
|
|
1983
|
+
})
|
|
1984
|
+
], Country.prototype, "currency", 2);
|
|
1985
|
+
__decorateClass([
|
|
1986
|
+
(0, import_typeorm14.Column)({
|
|
1987
|
+
name: "is_active",
|
|
1988
|
+
type: "boolean",
|
|
1989
|
+
default: true,
|
|
1990
|
+
comment: "Flag indicating if the country is active"
|
|
1991
|
+
})
|
|
1992
|
+
], Country.prototype, "isActive", 2);
|
|
1993
|
+
Country = __decorateClass([
|
|
1994
|
+
(0, import_typeorm14.Entity)("countries")
|
|
1995
|
+
], Country);
|
|
1996
|
+
|
|
1828
1997
|
// src/entities/job.entity.ts
|
|
1829
1998
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
1830
1999
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -1862,28 +2031,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
1862
2031
|
var Job = class extends BaseEntity {
|
|
1863
2032
|
};
|
|
1864
2033
|
__decorateClass([
|
|
1865
|
-
(0,
|
|
2034
|
+
(0, import_typeorm15.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
1866
2035
|
], Job.prototype, "jobId", 2);
|
|
1867
2036
|
// individual index to find jobs by user
|
|
1868
2037
|
__decorateClass([
|
|
1869
|
-
(0,
|
|
1870
|
-
(0,
|
|
2038
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2039
|
+
(0, import_typeorm15.Index)()
|
|
1871
2040
|
], Job.prototype, "userId", 2);
|
|
1872
2041
|
__decorateClass([
|
|
1873
|
-
(0,
|
|
1874
|
-
(0,
|
|
2042
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.jobs),
|
|
2043
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
1875
2044
|
], Job.prototype, "user", 2);
|
|
1876
2045
|
__decorateClass([
|
|
1877
|
-
(0,
|
|
2046
|
+
(0, import_typeorm15.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2047
|
+
], Job.prototype, "countryId", 2);
|
|
2048
|
+
__decorateClass([
|
|
2049
|
+
(0, import_typeorm15.ManyToOne)(() => Country),
|
|
2050
|
+
(0, import_typeorm15.JoinColumn)({ name: "country_id" })
|
|
2051
|
+
], Job.prototype, "country", 2);
|
|
2052
|
+
__decorateClass([
|
|
2053
|
+
(0, import_typeorm15.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2054
|
+
], Job.prototype, "stateId", 2);
|
|
2055
|
+
__decorateClass([
|
|
2056
|
+
(0, import_typeorm15.ManyToOne)(() => State),
|
|
2057
|
+
(0, import_typeorm15.JoinColumn)({ name: "state_id" })
|
|
2058
|
+
], Job.prototype, "state", 2);
|
|
2059
|
+
__decorateClass([
|
|
2060
|
+
(0, import_typeorm15.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2061
|
+
], Job.prototype, "cityId", 2);
|
|
2062
|
+
__decorateClass([
|
|
2063
|
+
(0, import_typeorm15.ManyToOne)(() => City),
|
|
2064
|
+
(0, import_typeorm15.JoinColumn)({ name: "city_id" })
|
|
2065
|
+
], Job.prototype, "city", 2);
|
|
2066
|
+
__decorateClass([
|
|
2067
|
+
(0, import_typeorm15.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
1878
2068
|
], Job.prototype, "jobRole", 2);
|
|
1879
2069
|
__decorateClass([
|
|
1880
|
-
(0,
|
|
2070
|
+
(0, import_typeorm15.Column)({ name: "note", type: "varchar", nullable: true })
|
|
1881
2071
|
], Job.prototype, "note", 2);
|
|
1882
2072
|
__decorateClass([
|
|
1883
|
-
(0,
|
|
2073
|
+
(0, import_typeorm15.Column)({ name: "openings", type: "integer", default: 0 })
|
|
1884
2074
|
], Job.prototype, "openings", 2);
|
|
1885
2075
|
__decorateClass([
|
|
1886
|
-
(0,
|
|
2076
|
+
(0, import_typeorm15.Column)({
|
|
1887
2077
|
name: "location",
|
|
1888
2078
|
type: "enum",
|
|
1889
2079
|
enum: JobLocationEnum,
|
|
@@ -1891,7 +2081,7 @@ __decorateClass([
|
|
|
1891
2081
|
})
|
|
1892
2082
|
], Job.prototype, "location", 2);
|
|
1893
2083
|
__decorateClass([
|
|
1894
|
-
(0,
|
|
2084
|
+
(0, import_typeorm15.Column)({
|
|
1895
2085
|
name: "type_of_employment",
|
|
1896
2086
|
type: "enum",
|
|
1897
2087
|
enum: TypeOfEmploymentEnum,
|
|
@@ -1899,10 +2089,10 @@ __decorateClass([
|
|
|
1899
2089
|
})
|
|
1900
2090
|
], Job.prototype, "typeOfEmployment", 2);
|
|
1901
2091
|
__decorateClass([
|
|
1902
|
-
(0,
|
|
2092
|
+
(0, import_typeorm15.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
1903
2093
|
], Job.prototype, "currency", 2);
|
|
1904
2094
|
__decorateClass([
|
|
1905
|
-
(0,
|
|
2095
|
+
(0, import_typeorm15.Column)({
|
|
1906
2096
|
name: "expected_salary_from",
|
|
1907
2097
|
type: "decimal",
|
|
1908
2098
|
precision: 10,
|
|
@@ -1911,7 +2101,7 @@ __decorateClass([
|
|
|
1911
2101
|
})
|
|
1912
2102
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
1913
2103
|
__decorateClass([
|
|
1914
|
-
(0,
|
|
2104
|
+
(0, import_typeorm15.Column)({
|
|
1915
2105
|
name: "expected_salary_to",
|
|
1916
2106
|
type: "decimal",
|
|
1917
2107
|
precision: 10,
|
|
@@ -1920,13 +2110,16 @@ __decorateClass([
|
|
|
1920
2110
|
})
|
|
1921
2111
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
1922
2112
|
__decorateClass([
|
|
1923
|
-
(0,
|
|
2113
|
+
(0, import_typeorm15.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
1924
2114
|
], Job.prototype, "tentativeStartDate", 2);
|
|
1925
2115
|
__decorateClass([
|
|
1926
|
-
(0,
|
|
2116
|
+
(0, import_typeorm15.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2117
|
+
], Job.prototype, "tentativeEndDate", 2);
|
|
2118
|
+
__decorateClass([
|
|
2119
|
+
(0, import_typeorm15.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
1927
2120
|
], Job.prototype, "duration", 2);
|
|
1928
2121
|
__decorateClass([
|
|
1929
|
-
(0,
|
|
2122
|
+
(0, import_typeorm15.Column)({
|
|
1930
2123
|
name: "duration_type",
|
|
1931
2124
|
type: "enum",
|
|
1932
2125
|
enum: DurationTypeEnum,
|
|
@@ -1934,13 +2127,13 @@ __decorateClass([
|
|
|
1934
2127
|
})
|
|
1935
2128
|
], Job.prototype, "durationType", 2);
|
|
1936
2129
|
__decorateClass([
|
|
1937
|
-
(0,
|
|
2130
|
+
(0, import_typeorm15.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1938
2131
|
], Job.prototype, "description", 2);
|
|
1939
2132
|
__decorateClass([
|
|
1940
|
-
(0,
|
|
2133
|
+
(0, import_typeorm15.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
1941
2134
|
], Job.prototype, "additionalComment", 2);
|
|
1942
2135
|
__decorateClass([
|
|
1943
|
-
(0,
|
|
2136
|
+
(0, import_typeorm15.Column)({
|
|
1944
2137
|
name: "onboarding_tat",
|
|
1945
2138
|
type: "varchar",
|
|
1946
2139
|
length: 50,
|
|
@@ -1948,14 +2141,14 @@ __decorateClass([
|
|
|
1948
2141
|
})
|
|
1949
2142
|
], Job.prototype, "onboardingTat", 2);
|
|
1950
2143
|
__decorateClass([
|
|
1951
|
-
(0,
|
|
2144
|
+
(0, import_typeorm15.Column)({
|
|
1952
2145
|
name: "candidate_communication_skills",
|
|
1953
2146
|
type: "varchar",
|
|
1954
2147
|
nullable: true
|
|
1955
2148
|
})
|
|
1956
2149
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
1957
2150
|
__decorateClass([
|
|
1958
|
-
(0,
|
|
2151
|
+
(0, import_typeorm15.Column)({
|
|
1959
2152
|
name: "step_completed",
|
|
1960
2153
|
type: "enum",
|
|
1961
2154
|
enum: Step,
|
|
@@ -1963,7 +2156,7 @@ __decorateClass([
|
|
|
1963
2156
|
})
|
|
1964
2157
|
], Job.prototype, "stepCompleted", 2);
|
|
1965
2158
|
__decorateClass([
|
|
1966
|
-
(0,
|
|
2159
|
+
(0, import_typeorm15.Column)({
|
|
1967
2160
|
name: "status",
|
|
1968
2161
|
type: "enum",
|
|
1969
2162
|
enum: JobStatusEnum,
|
|
@@ -1971,30 +2164,30 @@ __decorateClass([
|
|
|
1971
2164
|
})
|
|
1972
2165
|
], Job.prototype, "status", 2);
|
|
1973
2166
|
__decorateClass([
|
|
1974
|
-
(0,
|
|
2167
|
+
(0, import_typeorm15.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
1975
2168
|
], Job.prototype, "viewedCount", 2);
|
|
1976
2169
|
__decorateClass([
|
|
1977
|
-
(0,
|
|
2170
|
+
(0, import_typeorm15.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
1978
2171
|
], Job.prototype, "applicationCount", 2);
|
|
1979
2172
|
__decorateClass([
|
|
1980
|
-
(0,
|
|
2173
|
+
(0, import_typeorm15.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
1981
2174
|
], Job.prototype, "jobSkills", 2);
|
|
1982
2175
|
__decorateClass([
|
|
1983
|
-
(0,
|
|
2176
|
+
(0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
1984
2177
|
cascade: true
|
|
1985
2178
|
})
|
|
1986
2179
|
], Job.prototype, "jobApplications", 2);
|
|
1987
2180
|
__decorateClass([
|
|
1988
|
-
(0,
|
|
2181
|
+
(0, import_typeorm15.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
1989
2182
|
cascade: true
|
|
1990
2183
|
})
|
|
1991
2184
|
], Job.prototype, "interviews", 2);
|
|
1992
2185
|
Job = __decorateClass([
|
|
1993
|
-
(0,
|
|
2186
|
+
(0, import_typeorm15.Entity)("jobs")
|
|
1994
2187
|
], Job);
|
|
1995
2188
|
|
|
1996
2189
|
// src/entities/bank-details.entity.ts
|
|
1997
|
-
var
|
|
2190
|
+
var import_typeorm16 = require("typeorm");
|
|
1998
2191
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
1999
2192
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2000
2193
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2009,48 +2202,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2009
2202
|
};
|
|
2010
2203
|
// individual index to find bank details by user
|
|
2011
2204
|
__decorateClass([
|
|
2012
|
-
(0,
|
|
2013
|
-
(0,
|
|
2205
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2206
|
+
(0, import_typeorm16.Index)()
|
|
2014
2207
|
], BankDetail.prototype, "userId", 2);
|
|
2015
2208
|
__decorateClass([
|
|
2016
|
-
(0,
|
|
2017
|
-
(0,
|
|
2209
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2210
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2018
2211
|
], BankDetail.prototype, "user", 2);
|
|
2019
2212
|
__decorateClass([
|
|
2020
|
-
(0,
|
|
2213
|
+
(0, import_typeorm16.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2021
2214
|
], BankDetail.prototype, "name", 2);
|
|
2022
2215
|
__decorateClass([
|
|
2023
|
-
(0,
|
|
2216
|
+
(0, import_typeorm16.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2024
2217
|
], BankDetail.prototype, "mobile", 2);
|
|
2025
2218
|
__decorateClass([
|
|
2026
|
-
(0,
|
|
2219
|
+
(0, import_typeorm16.Column)({ name: "email", type: "varchar", unique: true })
|
|
2027
2220
|
], BankDetail.prototype, "email", 2);
|
|
2028
2221
|
__decorateClass([
|
|
2029
|
-
(0,
|
|
2222
|
+
(0, import_typeorm16.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2030
2223
|
], BankDetail.prototype, "address", 2);
|
|
2031
2224
|
__decorateClass([
|
|
2032
|
-
(0,
|
|
2225
|
+
(0, import_typeorm16.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2033
2226
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2034
2227
|
__decorateClass([
|
|
2035
|
-
(0,
|
|
2228
|
+
(0, import_typeorm16.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2036
2229
|
], BankDetail.prototype, "bankName", 2);
|
|
2037
2230
|
__decorateClass([
|
|
2038
|
-
(0,
|
|
2231
|
+
(0, import_typeorm16.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2039
2232
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2040
2233
|
__decorateClass([
|
|
2041
|
-
(0,
|
|
2234
|
+
(0, import_typeorm16.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2042
2235
|
], BankDetail.prototype, "branchName", 2);
|
|
2043
2236
|
__decorateClass([
|
|
2044
|
-
(0,
|
|
2237
|
+
(0, import_typeorm16.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2045
2238
|
], BankDetail.prototype, "routingNo", 2);
|
|
2046
2239
|
__decorateClass([
|
|
2047
|
-
(0,
|
|
2240
|
+
(0, import_typeorm16.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2048
2241
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2049
2242
|
__decorateClass([
|
|
2050
|
-
(0,
|
|
2243
|
+
(0, import_typeorm16.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2051
2244
|
], BankDetail.prototype, "iban", 2);
|
|
2052
2245
|
__decorateClass([
|
|
2053
|
-
(0,
|
|
2246
|
+
(0, import_typeorm16.Column)({
|
|
2054
2247
|
name: "account_type",
|
|
2055
2248
|
type: "enum",
|
|
2056
2249
|
enum: BankAccountTypeEnum,
|
|
@@ -2058,7 +2251,7 @@ __decorateClass([
|
|
|
2058
2251
|
})
|
|
2059
2252
|
], BankDetail.prototype, "accountType", 2);
|
|
2060
2253
|
__decorateClass([
|
|
2061
|
-
(0,
|
|
2254
|
+
(0, import_typeorm16.Column)({
|
|
2062
2255
|
name: "account_scope",
|
|
2063
2256
|
type: "enum",
|
|
2064
2257
|
enum: BankAccountScopeEnum,
|
|
@@ -2066,210 +2259,210 @@ __decorateClass([
|
|
|
2066
2259
|
})
|
|
2067
2260
|
], BankDetail.prototype, "accountScope", 2);
|
|
2068
2261
|
BankDetail = __decorateClass([
|
|
2069
|
-
(0,
|
|
2262
|
+
(0, import_typeorm16.Entity)("bank_details")
|
|
2070
2263
|
], BankDetail);
|
|
2071
2264
|
|
|
2072
2265
|
// src/entities/system-preference.entity.ts
|
|
2073
|
-
var
|
|
2266
|
+
var import_typeorm17 = require("typeorm");
|
|
2074
2267
|
var SystemPreference = class extends BaseEntity {
|
|
2075
2268
|
};
|
|
2076
2269
|
// individual index to find system preference by user
|
|
2077
2270
|
__decorateClass([
|
|
2078
|
-
(0,
|
|
2079
|
-
(0,
|
|
2271
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2272
|
+
(0, import_typeorm17.Index)()
|
|
2080
2273
|
], SystemPreference.prototype, "userId", 2);
|
|
2081
2274
|
__decorateClass([
|
|
2082
|
-
(0,
|
|
2083
|
-
(0,
|
|
2275
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2276
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2084
2277
|
], SystemPreference.prototype, "user", 2);
|
|
2085
2278
|
__decorateClass([
|
|
2086
|
-
(0,
|
|
2279
|
+
(0, import_typeorm17.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2087
2280
|
], SystemPreference.prototype, "key", 2);
|
|
2088
2281
|
__decorateClass([
|
|
2089
|
-
(0,
|
|
2282
|
+
(0, import_typeorm17.Column)({ name: "value", type: "boolean", default: false })
|
|
2090
2283
|
], SystemPreference.prototype, "value", 2);
|
|
2091
2284
|
SystemPreference = __decorateClass([
|
|
2092
|
-
(0,
|
|
2285
|
+
(0, import_typeorm17.Entity)("system_preferences")
|
|
2093
2286
|
], SystemPreference);
|
|
2094
2287
|
|
|
2095
2288
|
// src/entities/freelancer-experience.entity.ts
|
|
2096
|
-
var
|
|
2289
|
+
var import_typeorm18 = require("typeorm");
|
|
2097
2290
|
var FreelancerExperience = class extends BaseEntity {
|
|
2098
2291
|
};
|
|
2099
2292
|
// individual index to find experence by user
|
|
2100
2293
|
__decorateClass([
|
|
2101
|
-
(0,
|
|
2102
|
-
(0,
|
|
2294
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2295
|
+
(0, import_typeorm18.Index)()
|
|
2103
2296
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2104
2297
|
__decorateClass([
|
|
2105
|
-
(0,
|
|
2106
|
-
(0,
|
|
2298
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2299
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2107
2300
|
], FreelancerExperience.prototype, "user", 2);
|
|
2108
2301
|
__decorateClass([
|
|
2109
|
-
(0,
|
|
2302
|
+
(0, import_typeorm18.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2110
2303
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2111
2304
|
__decorateClass([
|
|
2112
|
-
(0,
|
|
2305
|
+
(0, import_typeorm18.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2113
2306
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2114
2307
|
__decorateClass([
|
|
2115
|
-
(0,
|
|
2308
|
+
(0, import_typeorm18.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2116
2309
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2117
2310
|
__decorateClass([
|
|
2118
|
-
(0,
|
|
2311
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2119
2312
|
], FreelancerExperience.prototype, "description", 2);
|
|
2120
2313
|
FreelancerExperience = __decorateClass([
|
|
2121
|
-
(0,
|
|
2314
|
+
(0, import_typeorm18.Entity)("freelancer_experiences")
|
|
2122
2315
|
], FreelancerExperience);
|
|
2123
2316
|
|
|
2124
2317
|
// src/entities/freelancer-education.entity.ts
|
|
2125
|
-
var
|
|
2318
|
+
var import_typeorm19 = require("typeorm");
|
|
2126
2319
|
var FreelancerEducation = class extends BaseEntity {
|
|
2127
2320
|
};
|
|
2128
2321
|
// individual index to find education by user
|
|
2129
2322
|
__decorateClass([
|
|
2130
|
-
(0,
|
|
2131
|
-
(0,
|
|
2323
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2324
|
+
(0, import_typeorm19.Index)()
|
|
2132
2325
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2133
2326
|
__decorateClass([
|
|
2134
|
-
(0,
|
|
2135
|
-
(0,
|
|
2327
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2328
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2136
2329
|
], FreelancerEducation.prototype, "user", 2);
|
|
2137
2330
|
__decorateClass([
|
|
2138
|
-
(0,
|
|
2331
|
+
(0, import_typeorm19.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2139
2332
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2140
2333
|
__decorateClass([
|
|
2141
|
-
(0,
|
|
2334
|
+
(0, import_typeorm19.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2142
2335
|
], FreelancerEducation.prototype, "university", 2);
|
|
2143
2336
|
__decorateClass([
|
|
2144
|
-
(0,
|
|
2337
|
+
(0, import_typeorm19.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2145
2338
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2146
2339
|
FreelancerEducation = __decorateClass([
|
|
2147
|
-
(0,
|
|
2340
|
+
(0, import_typeorm19.Entity)("freelancer_educations")
|
|
2148
2341
|
], FreelancerEducation);
|
|
2149
2342
|
|
|
2150
2343
|
// src/entities/freelancer-project.entity.ts
|
|
2151
|
-
var
|
|
2344
|
+
var import_typeorm20 = require("typeorm");
|
|
2152
2345
|
var FreelancerProject = class extends BaseEntity {
|
|
2153
2346
|
};
|
|
2154
2347
|
// individual index to find project by user
|
|
2155
2348
|
__decorateClass([
|
|
2156
|
-
(0,
|
|
2157
|
-
(0,
|
|
2349
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2350
|
+
(0, import_typeorm20.Index)()
|
|
2158
2351
|
], FreelancerProject.prototype, "userId", 2);
|
|
2159
2352
|
__decorateClass([
|
|
2160
|
-
(0,
|
|
2161
|
-
(0,
|
|
2353
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2354
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2162
2355
|
], FreelancerProject.prototype, "user", 2);
|
|
2163
2356
|
__decorateClass([
|
|
2164
|
-
(0,
|
|
2357
|
+
(0, import_typeorm20.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2165
2358
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2166
2359
|
__decorateClass([
|
|
2167
|
-
(0,
|
|
2360
|
+
(0, import_typeorm20.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2168
2361
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2169
2362
|
__decorateClass([
|
|
2170
|
-
(0,
|
|
2363
|
+
(0, import_typeorm20.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2171
2364
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2172
2365
|
__decorateClass([
|
|
2173
|
-
(0,
|
|
2366
|
+
(0, import_typeorm20.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2174
2367
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2175
2368
|
__decorateClass([
|
|
2176
|
-
(0,
|
|
2369
|
+
(0, import_typeorm20.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2177
2370
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2178
2371
|
__decorateClass([
|
|
2179
|
-
(0,
|
|
2372
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2180
2373
|
], FreelancerProject.prototype, "description", 2);
|
|
2181
2374
|
FreelancerProject = __decorateClass([
|
|
2182
|
-
(0,
|
|
2375
|
+
(0, import_typeorm20.Entity)("freelancer_projects")
|
|
2183
2376
|
], FreelancerProject);
|
|
2184
2377
|
|
|
2185
2378
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2186
|
-
var
|
|
2379
|
+
var import_typeorm21 = require("typeorm");
|
|
2187
2380
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2188
2381
|
};
|
|
2189
2382
|
// individual index to find case study by user
|
|
2190
2383
|
__decorateClass([
|
|
2191
|
-
(0,
|
|
2192
|
-
(0,
|
|
2384
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2385
|
+
(0, import_typeorm21.Index)()
|
|
2193
2386
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2194
2387
|
__decorateClass([
|
|
2195
|
-
(0,
|
|
2196
|
-
(0,
|
|
2388
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2389
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2197
2390
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2198
2391
|
__decorateClass([
|
|
2199
|
-
(0,
|
|
2392
|
+
(0, import_typeorm21.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2200
2393
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2201
2394
|
__decorateClass([
|
|
2202
|
-
(0,
|
|
2395
|
+
(0, import_typeorm21.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2203
2396
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2204
2397
|
__decorateClass([
|
|
2205
|
-
(0,
|
|
2398
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2206
2399
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2207
2400
|
FreelancerCaseStudy = __decorateClass([
|
|
2208
|
-
(0,
|
|
2401
|
+
(0, import_typeorm21.Entity)("freelancer_case_studies")
|
|
2209
2402
|
], FreelancerCaseStudy);
|
|
2210
2403
|
|
|
2211
2404
|
// src/entities/freelancer-coreskill.entity.ts
|
|
2212
|
-
var
|
|
2405
|
+
var import_typeorm22 = require("typeorm");
|
|
2213
2406
|
var FreelancerCoreSkill = class extends BaseEntity {
|
|
2214
2407
|
};
|
|
2215
2408
|
// individual index to find core skills by user
|
|
2216
2409
|
__decorateClass([
|
|
2217
|
-
(0,
|
|
2218
|
-
(0,
|
|
2410
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2411
|
+
(0, import_typeorm22.Index)()
|
|
2219
2412
|
], FreelancerCoreSkill.prototype, "userId", 2);
|
|
2220
2413
|
__decorateClass([
|
|
2221
|
-
(0,
|
|
2222
|
-
(0,
|
|
2414
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerCoreSkill),
|
|
2415
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2223
2416
|
], FreelancerCoreSkill.prototype, "user", 2);
|
|
2224
2417
|
__decorateClass([
|
|
2225
|
-
(0,
|
|
2418
|
+
(0, import_typeorm22.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2226
2419
|
], FreelancerCoreSkill.prototype, "skillName", 2);
|
|
2227
2420
|
FreelancerCoreSkill = __decorateClass([
|
|
2228
|
-
(0,
|
|
2421
|
+
(0, import_typeorm22.Entity)("freelancer_coreskills")
|
|
2229
2422
|
], FreelancerCoreSkill);
|
|
2230
2423
|
|
|
2231
2424
|
// src/entities/freelancer-tool.entity.ts
|
|
2232
|
-
var
|
|
2425
|
+
var import_typeorm23 = require("typeorm");
|
|
2233
2426
|
var FreelancerTool = class extends BaseEntity {
|
|
2234
2427
|
};
|
|
2235
2428
|
// individual index to find tool by user
|
|
2236
2429
|
__decorateClass([
|
|
2237
|
-
(0,
|
|
2238
|
-
(0,
|
|
2430
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2431
|
+
(0, import_typeorm23.Index)()
|
|
2239
2432
|
], FreelancerTool.prototype, "userId", 2);
|
|
2240
2433
|
__decorateClass([
|
|
2241
|
-
(0,
|
|
2242
|
-
(0,
|
|
2434
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2435
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2243
2436
|
], FreelancerTool.prototype, "user", 2);
|
|
2244
2437
|
__decorateClass([
|
|
2245
|
-
(0,
|
|
2438
|
+
(0, import_typeorm23.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2246
2439
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2247
2440
|
FreelancerTool = __decorateClass([
|
|
2248
|
-
(0,
|
|
2441
|
+
(0, import_typeorm23.Entity)("freelancer_tools")
|
|
2249
2442
|
], FreelancerTool);
|
|
2250
2443
|
|
|
2251
2444
|
// src/entities/freelancer-framework.entity.ts
|
|
2252
|
-
var
|
|
2445
|
+
var import_typeorm24 = require("typeorm");
|
|
2253
2446
|
var FreelancerFramework = class extends BaseEntity {
|
|
2254
2447
|
};
|
|
2255
2448
|
// individual index to find framework by user
|
|
2256
2449
|
__decorateClass([
|
|
2257
|
-
(0,
|
|
2258
|
-
(0,
|
|
2450
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2451
|
+
(0, import_typeorm24.Index)()
|
|
2259
2452
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2260
2453
|
__decorateClass([
|
|
2261
|
-
(0,
|
|
2262
|
-
(0,
|
|
2454
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2455
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2263
2456
|
], FreelancerFramework.prototype, "user", 2);
|
|
2264
2457
|
__decorateClass([
|
|
2265
|
-
(0,
|
|
2458
|
+
(0, import_typeorm24.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2266
2459
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2267
2460
|
FreelancerFramework = __decorateClass([
|
|
2268
|
-
(0,
|
|
2461
|
+
(0, import_typeorm24.Entity)("freelancer_frameworks")
|
|
2269
2462
|
], FreelancerFramework);
|
|
2270
2463
|
|
|
2271
2464
|
// src/entities/freelancer-assessment.entity.ts
|
|
2272
|
-
var
|
|
2465
|
+
var import_typeorm25 = require("typeorm");
|
|
2273
2466
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2274
2467
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2275
2468
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2283,24 +2476,24 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2283
2476
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2284
2477
|
};
|
|
2285
2478
|
__decorateClass([
|
|
2286
|
-
(0,
|
|
2287
|
-
(0,
|
|
2479
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2480
|
+
(0, import_typeorm25.Index)()
|
|
2288
2481
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2289
2482
|
__decorateClass([
|
|
2290
|
-
(0,
|
|
2291
|
-
(0,
|
|
2483
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.assessments),
|
|
2484
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2292
2485
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2293
2486
|
__decorateClass([
|
|
2294
|
-
(0,
|
|
2487
|
+
(0, import_typeorm25.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2295
2488
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2296
2489
|
__decorateClass([
|
|
2297
|
-
(0,
|
|
2490
|
+
(0, import_typeorm25.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2298
2491
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2299
2492
|
__decorateClass([
|
|
2300
|
-
(0,
|
|
2493
|
+
(0, import_typeorm25.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2301
2494
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2302
2495
|
__decorateClass([
|
|
2303
|
-
(0,
|
|
2496
|
+
(0, import_typeorm25.Column)({
|
|
2304
2497
|
name: "status",
|
|
2305
2498
|
type: "enum",
|
|
2306
2499
|
enum: AssessmentStatusEnum,
|
|
@@ -2308,11 +2501,11 @@ __decorateClass([
|
|
|
2308
2501
|
})
|
|
2309
2502
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2310
2503
|
FreelancerAssessment = __decorateClass([
|
|
2311
|
-
(0,
|
|
2504
|
+
(0, import_typeorm25.Entity)("freelancer_assessments")
|
|
2312
2505
|
], FreelancerAssessment);
|
|
2313
2506
|
|
|
2314
2507
|
// src/entities/freelancer-declaration.entity.ts
|
|
2315
|
-
var
|
|
2508
|
+
var import_typeorm26 = require("typeorm");
|
|
2316
2509
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2317
2510
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2318
2511
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2324,15 +2517,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2324
2517
|
};
|
|
2325
2518
|
// individual index to find declaration by user
|
|
2326
2519
|
__decorateClass([
|
|
2327
|
-
(0,
|
|
2328
|
-
(0,
|
|
2520
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2521
|
+
(0, import_typeorm26.Index)()
|
|
2329
2522
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2330
2523
|
__decorateClass([
|
|
2331
|
-
(0,
|
|
2332
|
-
(0,
|
|
2524
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2525
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2333
2526
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2334
2527
|
__decorateClass([
|
|
2335
|
-
(0,
|
|
2528
|
+
(0, import_typeorm26.Column)({
|
|
2336
2529
|
name: "document_type",
|
|
2337
2530
|
type: "enum",
|
|
2338
2531
|
enum: DocumentType,
|
|
@@ -2340,144 +2533,144 @@ __decorateClass([
|
|
|
2340
2533
|
})
|
|
2341
2534
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2342
2535
|
__decorateClass([
|
|
2343
|
-
(0,
|
|
2536
|
+
(0, import_typeorm26.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2344
2537
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2345
2538
|
__decorateClass([
|
|
2346
|
-
(0,
|
|
2539
|
+
(0, import_typeorm26.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2347
2540
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2348
2541
|
__decorateClass([
|
|
2349
|
-
(0,
|
|
2542
|
+
(0, import_typeorm26.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2350
2543
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2351
2544
|
__decorateClass([
|
|
2352
|
-
(0,
|
|
2545
|
+
(0, import_typeorm26.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2353
2546
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2354
2547
|
FreelancerDeclaration = __decorateClass([
|
|
2355
|
-
(0,
|
|
2548
|
+
(0, import_typeorm26.Entity)("freelancer_declaration")
|
|
2356
2549
|
], FreelancerDeclaration);
|
|
2357
2550
|
|
|
2358
2551
|
// src/entities/company-members-roles.entity.ts
|
|
2359
|
-
var
|
|
2552
|
+
var import_typeorm30 = require("typeorm");
|
|
2360
2553
|
|
|
2361
2554
|
// src/entities/company-role.entity.ts
|
|
2362
|
-
var
|
|
2555
|
+
var import_typeorm29 = require("typeorm");
|
|
2363
2556
|
|
|
2364
2557
|
// src/entities/company-role-permission.entity.ts
|
|
2365
|
-
var
|
|
2558
|
+
var import_typeorm28 = require("typeorm");
|
|
2366
2559
|
|
|
2367
2560
|
// src/entities/permission.entity.ts
|
|
2368
|
-
var
|
|
2561
|
+
var import_typeorm27 = require("typeorm");
|
|
2369
2562
|
var Permission = class extends BaseEntity {
|
|
2370
2563
|
};
|
|
2371
2564
|
__decorateClass([
|
|
2372
|
-
(0,
|
|
2565
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2373
2566
|
], Permission.prototype, "name", 2);
|
|
2374
2567
|
__decorateClass([
|
|
2375
|
-
(0,
|
|
2376
|
-
(0,
|
|
2568
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2569
|
+
(0, import_typeorm27.Index)()
|
|
2377
2570
|
], Permission.prototype, "slug", 2);
|
|
2378
2571
|
__decorateClass([
|
|
2379
|
-
(0,
|
|
2572
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
2380
2573
|
], Permission.prototype, "description", 2);
|
|
2381
2574
|
__decorateClass([
|
|
2382
|
-
(0,
|
|
2575
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2383
2576
|
], Permission.prototype, "isActive", 2);
|
|
2384
2577
|
Permission = __decorateClass([
|
|
2385
|
-
(0,
|
|
2578
|
+
(0, import_typeorm27.Entity)("permissions")
|
|
2386
2579
|
], Permission);
|
|
2387
2580
|
|
|
2388
2581
|
// src/entities/company-role-permission.entity.ts
|
|
2389
2582
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2390
2583
|
};
|
|
2391
2584
|
__decorateClass([
|
|
2392
|
-
(0,
|
|
2393
|
-
(0,
|
|
2585
|
+
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2586
|
+
(0, import_typeorm28.Index)()
|
|
2394
2587
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2395
2588
|
__decorateClass([
|
|
2396
|
-
(0,
|
|
2589
|
+
(0, import_typeorm28.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2397
2590
|
onDelete: "CASCADE"
|
|
2398
2591
|
}),
|
|
2399
|
-
(0,
|
|
2592
|
+
(0, import_typeorm28.JoinColumn)({ name: "company_role_id" })
|
|
2400
2593
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2401
2594
|
__decorateClass([
|
|
2402
|
-
(0,
|
|
2403
|
-
(0,
|
|
2595
|
+
(0, import_typeorm28.Column)({ name: "permission_id", type: "integer" }),
|
|
2596
|
+
(0, import_typeorm28.Index)()
|
|
2404
2597
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2405
2598
|
__decorateClass([
|
|
2406
|
-
(0,
|
|
2407
|
-
(0,
|
|
2599
|
+
(0, import_typeorm28.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
2600
|
+
(0, import_typeorm28.JoinColumn)({ name: "permission_id" })
|
|
2408
2601
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2409
2602
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2603
|
+
(0, import_typeorm28.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2411
2604
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2412
2605
|
CompanyRolePermission = __decorateClass([
|
|
2413
|
-
(0,
|
|
2606
|
+
(0, import_typeorm28.Entity)("company_role_permissions")
|
|
2414
2607
|
], CompanyRolePermission);
|
|
2415
2608
|
|
|
2416
2609
|
// src/entities/company-role.entity.ts
|
|
2417
2610
|
var CompanyRole = class extends BaseEntity {
|
|
2418
2611
|
};
|
|
2419
2612
|
__decorateClass([
|
|
2420
|
-
(0,
|
|
2421
|
-
(0,
|
|
2613
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2614
|
+
(0, import_typeorm29.Index)()
|
|
2422
2615
|
], CompanyRole.prototype, "userId", 2);
|
|
2423
2616
|
__decorateClass([
|
|
2424
|
-
(0,
|
|
2425
|
-
(0,
|
|
2617
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.otps),
|
|
2618
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
2426
2619
|
], CompanyRole.prototype, "user", 2);
|
|
2427
2620
|
__decorateClass([
|
|
2428
|
-
(0,
|
|
2621
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar" })
|
|
2429
2622
|
], CompanyRole.prototype, "name", 2);
|
|
2430
2623
|
__decorateClass([
|
|
2431
|
-
(0,
|
|
2432
|
-
(0,
|
|
2624
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2625
|
+
(0, import_typeorm29.Index)()
|
|
2433
2626
|
], CompanyRole.prototype, "slug", 2);
|
|
2434
2627
|
__decorateClass([
|
|
2435
|
-
(0,
|
|
2628
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
2436
2629
|
], CompanyRole.prototype, "description", 2);
|
|
2437
2630
|
__decorateClass([
|
|
2438
|
-
(0,
|
|
2631
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2439
2632
|
], CompanyRole.prototype, "isActive", 2);
|
|
2440
2633
|
__decorateClass([
|
|
2441
|
-
(0,
|
|
2634
|
+
(0, import_typeorm29.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2442
2635
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2443
2636
|
CompanyRole = __decorateClass([
|
|
2444
|
-
(0,
|
|
2637
|
+
(0, import_typeorm29.Entity)("company_roles")
|
|
2445
2638
|
], CompanyRole);
|
|
2446
2639
|
|
|
2447
2640
|
// src/entities/company-members-roles.entity.ts
|
|
2448
2641
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2449
2642
|
};
|
|
2450
2643
|
__decorateClass([
|
|
2451
|
-
(0,
|
|
2452
|
-
(0,
|
|
2644
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2645
|
+
(0, import_typeorm30.Index)()
|
|
2453
2646
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2454
2647
|
__decorateClass([
|
|
2455
|
-
(0,
|
|
2456
|
-
(0,
|
|
2648
|
+
(0, import_typeorm30.ManyToOne)(() => User),
|
|
2649
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
2457
2650
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2458
2651
|
__decorateClass([
|
|
2459
|
-
(0,
|
|
2460
|
-
(0,
|
|
2652
|
+
(0, import_typeorm30.ManyToOne)(() => CompanyRole),
|
|
2653
|
+
(0, import_typeorm30.JoinColumn)({ name: "company_role_id" })
|
|
2461
2654
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2462
2655
|
__decorateClass([
|
|
2463
|
-
(0,
|
|
2464
|
-
(0,
|
|
2656
|
+
(0, import_typeorm30.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2657
|
+
(0, import_typeorm30.Index)()
|
|
2465
2658
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2466
2659
|
__decorateClass([
|
|
2467
|
-
(0,
|
|
2660
|
+
(0, import_typeorm30.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2468
2661
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2469
2662
|
CompanyMemberRole = __decorateClass([
|
|
2470
|
-
(0,
|
|
2663
|
+
(0, import_typeorm30.Entity)("company_member_roles")
|
|
2471
2664
|
], CompanyMemberRole);
|
|
2472
2665
|
|
|
2473
2666
|
// src/entities/assessment-answer.entity.ts
|
|
2474
|
-
var
|
|
2667
|
+
var import_typeorm33 = require("typeorm");
|
|
2475
2668
|
|
|
2476
2669
|
// src/entities/assessment-question.entity.ts
|
|
2477
|
-
var
|
|
2670
|
+
var import_typeorm32 = require("typeorm");
|
|
2478
2671
|
|
|
2479
2672
|
// src/entities/assessment-question-option.entity.ts
|
|
2480
|
-
var
|
|
2673
|
+
var import_typeorm31 = require("typeorm");
|
|
2481
2674
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2482
2675
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
2483
2676
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -2487,21 +2680,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2487
2680
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2488
2681
|
};
|
|
2489
2682
|
__decorateClass([
|
|
2490
|
-
(0,
|
|
2491
|
-
(0,
|
|
2683
|
+
(0, import_typeorm31.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
2684
|
+
(0, import_typeorm31.Index)()
|
|
2492
2685
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2493
2686
|
__decorateClass([
|
|
2494
|
-
(0,
|
|
2687
|
+
(0, import_typeorm31.ManyToOne)(
|
|
2495
2688
|
() => AssessmetQuestion,
|
|
2496
2689
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2497
2690
|
),
|
|
2498
|
-
(0,
|
|
2691
|
+
(0, import_typeorm31.JoinColumn)({ name: "question_id" })
|
|
2499
2692
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2500
2693
|
__decorateClass([
|
|
2501
|
-
(0,
|
|
2694
|
+
(0, import_typeorm31.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2502
2695
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2503
2696
|
__decorateClass([
|
|
2504
|
-
(0,
|
|
2697
|
+
(0, import_typeorm31.Column)({
|
|
2505
2698
|
name: "answer_type",
|
|
2506
2699
|
type: "enum",
|
|
2507
2700
|
enum: AnswerTypeEnum,
|
|
@@ -2509,13 +2702,13 @@ __decorateClass([
|
|
|
2509
2702
|
})
|
|
2510
2703
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2511
2704
|
__decorateClass([
|
|
2512
|
-
(0,
|
|
2705
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2513
2706
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2514
2707
|
__decorateClass([
|
|
2515
|
-
(0,
|
|
2708
|
+
(0, import_typeorm31.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2516
2709
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2517
2710
|
AssessmetQuestionOption = __decorateClass([
|
|
2518
|
-
(0,
|
|
2711
|
+
(0, import_typeorm31.Entity)("assessment_question_options")
|
|
2519
2712
|
], AssessmetQuestionOption);
|
|
2520
2713
|
|
|
2521
2714
|
// src/entities/assessment-question.entity.ts
|
|
@@ -2527,10 +2720,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
2527
2720
|
var AssessmetQuestion = class extends BaseEntity {
|
|
2528
2721
|
};
|
|
2529
2722
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2723
|
+
(0, import_typeorm32.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2531
2724
|
], AssessmetQuestion.prototype, "text", 2);
|
|
2532
2725
|
__decorateClass([
|
|
2533
|
-
(0,
|
|
2726
|
+
(0, import_typeorm32.Column)({
|
|
2534
2727
|
name: "question_for",
|
|
2535
2728
|
type: "enum",
|
|
2536
2729
|
enum: QuestionForEnum,
|
|
@@ -2538,16 +2731,16 @@ __decorateClass([
|
|
|
2538
2731
|
})
|
|
2539
2732
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2540
2733
|
__decorateClass([
|
|
2541
|
-
(0,
|
|
2734
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2542
2735
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2543
2736
|
__decorateClass([
|
|
2544
|
-
(0,
|
|
2737
|
+
(0, import_typeorm32.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2545
2738
|
], AssessmetQuestion.prototype, "options", 2);
|
|
2546
2739
|
__decorateClass([
|
|
2547
|
-
(0,
|
|
2740
|
+
(0, import_typeorm32.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2548
2741
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
2549
2742
|
AssessmetQuestion = __decorateClass([
|
|
2550
|
-
(0,
|
|
2743
|
+
(0, import_typeorm32.Entity)("assessment_questions")
|
|
2551
2744
|
], AssessmetQuestion);
|
|
2552
2745
|
|
|
2553
2746
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -2560,47 +2753,47 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
2560
2753
|
var AssessmentAnswer = class extends BaseEntity {
|
|
2561
2754
|
};
|
|
2562
2755
|
__decorateClass([
|
|
2563
|
-
(0,
|
|
2564
|
-
(0,
|
|
2756
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer" }),
|
|
2757
|
+
(0, import_typeorm33.Index)()
|
|
2565
2758
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
2566
2759
|
__decorateClass([
|
|
2567
|
-
(0,
|
|
2568
|
-
(0,
|
|
2760
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
2761
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
2569
2762
|
], AssessmentAnswer.prototype, "user", 2);
|
|
2570
2763
|
__decorateClass([
|
|
2571
|
-
(0,
|
|
2572
|
-
(0,
|
|
2764
|
+
(0, import_typeorm33.Column)({ name: "question_id", type: "integer" }),
|
|
2765
|
+
(0, import_typeorm33.Index)()
|
|
2573
2766
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2574
2767
|
__decorateClass([
|
|
2575
|
-
(0,
|
|
2768
|
+
(0, import_typeorm33.ManyToOne)(
|
|
2576
2769
|
() => AssessmetQuestion,
|
|
2577
2770
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
2578
2771
|
),
|
|
2579
|
-
(0,
|
|
2772
|
+
(0, import_typeorm33.JoinColumn)({ name: "question_id" })
|
|
2580
2773
|
], AssessmentAnswer.prototype, "question", 2);
|
|
2581
2774
|
__decorateClass([
|
|
2582
|
-
(0,
|
|
2583
|
-
(0,
|
|
2775
|
+
(0, import_typeorm33.Column)({ name: "selected_option_id", type: "integer" }),
|
|
2776
|
+
(0, import_typeorm33.Index)()
|
|
2584
2777
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
2585
2778
|
__decorateClass([
|
|
2586
|
-
(0,
|
|
2779
|
+
(0, import_typeorm33.ManyToOne)(
|
|
2587
2780
|
() => AssessmetQuestionOption,
|
|
2588
2781
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
2589
2782
|
),
|
|
2590
|
-
(0,
|
|
2783
|
+
(0, import_typeorm33.JoinColumn)({ name: "selected_option_id" })
|
|
2591
2784
|
], AssessmentAnswer.prototype, "option", 2);
|
|
2592
2785
|
__decorateClass([
|
|
2593
|
-
(0,
|
|
2786
|
+
(0, import_typeorm33.Column)({
|
|
2594
2787
|
name: "selected_answer_type",
|
|
2595
2788
|
type: "enum",
|
|
2596
2789
|
enum: SelectedAnswerTypeEnum
|
|
2597
2790
|
})
|
|
2598
2791
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
2599
2792
|
__decorateClass([
|
|
2600
|
-
(0,
|
|
2793
|
+
(0, import_typeorm33.Column)({ name: "score", type: "float" })
|
|
2601
2794
|
], AssessmentAnswer.prototype, "score", 2);
|
|
2602
2795
|
AssessmentAnswer = __decorateClass([
|
|
2603
|
-
(0,
|
|
2796
|
+
(0, import_typeorm33.Entity)("assessment_answers")
|
|
2604
2797
|
], AssessmentAnswer);
|
|
2605
2798
|
|
|
2606
2799
|
// src/entities/user.entity.ts
|
|
@@ -2628,51 +2821,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2628
2821
|
var User = class extends BaseEntity {
|
|
2629
2822
|
};
|
|
2630
2823
|
__decorateClass([
|
|
2631
|
-
(0,
|
|
2824
|
+
(0, import_typeorm34.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2632
2825
|
], User.prototype, "uniqueId", 2);
|
|
2633
2826
|
__decorateClass([
|
|
2634
|
-
(0,
|
|
2635
|
-
(0,
|
|
2827
|
+
(0, import_typeorm34.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2828
|
+
(0, import_typeorm34.Index)()
|
|
2636
2829
|
], User.prototype, "parentId", 2);
|
|
2637
2830
|
__decorateClass([
|
|
2638
|
-
(0,
|
|
2639
|
-
(0,
|
|
2831
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2832
|
+
(0, import_typeorm34.JoinColumn)({ name: "parent_id" })
|
|
2640
2833
|
], User.prototype, "parent", 2);
|
|
2641
2834
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2835
|
+
(0, import_typeorm34.OneToMany)(() => User, (user) => user.parent)
|
|
2643
2836
|
], User.prototype, "children", 2);
|
|
2644
2837
|
__decorateClass([
|
|
2645
|
-
(0,
|
|
2838
|
+
(0, import_typeorm34.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2646
2839
|
], User.prototype, "username", 2);
|
|
2647
2840
|
__decorateClass([
|
|
2648
|
-
(0,
|
|
2841
|
+
(0, import_typeorm34.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2649
2842
|
], User.prototype, "firstName", 2);
|
|
2650
2843
|
__decorateClass([
|
|
2651
|
-
(0,
|
|
2844
|
+
(0, import_typeorm34.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2652
2845
|
], User.prototype, "lastName", 2);
|
|
2653
2846
|
__decorateClass([
|
|
2654
|
-
(0,
|
|
2847
|
+
(0, import_typeorm34.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2655
2848
|
], User.prototype, "dateOfBirth", 2);
|
|
2656
2849
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2850
|
+
(0, import_typeorm34.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2658
2851
|
], User.prototype, "gender", 2);
|
|
2659
2852
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2853
|
+
(0, import_typeorm34.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2661
2854
|
], User.prototype, "profilePictureUrl", 2);
|
|
2662
2855
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2856
|
+
(0, import_typeorm34.Column)({ name: "email", type: "varchar", unique: true })
|
|
2664
2857
|
], User.prototype, "email", 2);
|
|
2665
2858
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2859
|
+
(0, import_typeorm34.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2667
2860
|
], User.prototype, "mobileCode", 2);
|
|
2668
2861
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2862
|
+
(0, import_typeorm34.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
2670
2863
|
], User.prototype, "mobile", 2);
|
|
2671
2864
|
__decorateClass([
|
|
2672
|
-
(0,
|
|
2865
|
+
(0, import_typeorm34.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2673
2866
|
], User.prototype, "password", 2);
|
|
2674
2867
|
__decorateClass([
|
|
2675
|
-
(0,
|
|
2868
|
+
(0, import_typeorm34.Column)({
|
|
2676
2869
|
name: "account_type",
|
|
2677
2870
|
type: "enum",
|
|
2678
2871
|
enum: AccountType,
|
|
@@ -2680,7 +2873,7 @@ __decorateClass([
|
|
|
2680
2873
|
})
|
|
2681
2874
|
], User.prototype, "accountType", 2);
|
|
2682
2875
|
__decorateClass([
|
|
2683
|
-
(0,
|
|
2876
|
+
(0, import_typeorm34.Column)({
|
|
2684
2877
|
name: "account_status",
|
|
2685
2878
|
type: "enum",
|
|
2686
2879
|
enum: AccountStatus,
|
|
@@ -2688,36 +2881,36 @@ __decorateClass([
|
|
|
2688
2881
|
})
|
|
2689
2882
|
], User.prototype, "accountStatus", 2);
|
|
2690
2883
|
__decorateClass([
|
|
2691
|
-
(0,
|
|
2884
|
+
(0, import_typeorm34.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2692
2885
|
], User.prototype, "isEmailVerified", 2);
|
|
2693
2886
|
__decorateClass([
|
|
2694
|
-
(0,
|
|
2887
|
+
(0, import_typeorm34.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2695
2888
|
], User.prototype, "isMobileVerified", 2);
|
|
2696
2889
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2890
|
+
(0, import_typeorm34.Column)({
|
|
2698
2891
|
name: "last_login_at",
|
|
2699
2892
|
type: "timestamp with time zone",
|
|
2700
2893
|
nullable: true
|
|
2701
2894
|
})
|
|
2702
2895
|
], User.prototype, "lastLoginAt", 2);
|
|
2703
2896
|
__decorateClass([
|
|
2704
|
-
(0,
|
|
2897
|
+
(0, import_typeorm34.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2705
2898
|
], User.prototype, "lastLoginIp", 2);
|
|
2706
2899
|
__decorateClass([
|
|
2707
|
-
(0,
|
|
2900
|
+
(0, import_typeorm34.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2708
2901
|
], User.prototype, "resetToken", 2);
|
|
2709
2902
|
__decorateClass([
|
|
2710
|
-
(0,
|
|
2903
|
+
(0, import_typeorm34.Column)({
|
|
2711
2904
|
name: "reset_token_expire_at",
|
|
2712
2905
|
type: "timestamp with time zone",
|
|
2713
2906
|
nullable: true
|
|
2714
2907
|
})
|
|
2715
2908
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2716
2909
|
__decorateClass([
|
|
2717
|
-
(0,
|
|
2910
|
+
(0, import_typeorm34.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2718
2911
|
], User.prototype, "refreshTokens", 2);
|
|
2719
2912
|
__decorateClass([
|
|
2720
|
-
(0,
|
|
2913
|
+
(0, import_typeorm34.Column)({
|
|
2721
2914
|
name: "provider",
|
|
2722
2915
|
type: "enum",
|
|
2723
2916
|
enum: Provider,
|
|
@@ -2726,117 +2919,117 @@ __decorateClass([
|
|
|
2726
2919
|
})
|
|
2727
2920
|
], User.prototype, "provider", 2);
|
|
2728
2921
|
__decorateClass([
|
|
2729
|
-
(0,
|
|
2922
|
+
(0, import_typeorm34.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2730
2923
|
], User.prototype, "providerToken", 2);
|
|
2731
2924
|
__decorateClass([
|
|
2732
|
-
(0,
|
|
2925
|
+
(0, import_typeorm34.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2733
2926
|
], User.prototype, "linkedInId", 2);
|
|
2734
2927
|
__decorateClass([
|
|
2735
|
-
(0,
|
|
2928
|
+
(0, import_typeorm34.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2736
2929
|
], User.prototype, "googleId", 2);
|
|
2737
2930
|
__decorateClass([
|
|
2738
|
-
(0,
|
|
2931
|
+
(0, import_typeorm34.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2739
2932
|
], User.prototype, "gitLabsId", 2);
|
|
2740
2933
|
__decorateClass([
|
|
2741
|
-
(0,
|
|
2934
|
+
(0, import_typeorm34.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2742
2935
|
], User.prototype, "otps", 2);
|
|
2743
2936
|
__decorateClass([
|
|
2744
|
-
(0,
|
|
2937
|
+
(0, import_typeorm34.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2745
2938
|
], User.prototype, "senseloafLogs", 2);
|
|
2746
2939
|
__decorateClass([
|
|
2747
|
-
(0,
|
|
2940
|
+
(0, import_typeorm34.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
2748
2941
|
], User.prototype, "freelancerProfile", 2);
|
|
2749
2942
|
__decorateClass([
|
|
2750
|
-
(0,
|
|
2943
|
+
(0, import_typeorm34.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2751
2944
|
cascade: true
|
|
2752
2945
|
})
|
|
2753
2946
|
], User.prototype, "companyProfile", 2);
|
|
2754
2947
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2948
|
+
(0, import_typeorm34.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2756
2949
|
], User.prototype, "companyMemberRoles", 2);
|
|
2757
2950
|
__decorateClass([
|
|
2758
|
-
(0,
|
|
2951
|
+
(0, import_typeorm34.OneToMany)(
|
|
2759
2952
|
() => FreelancerAssessment,
|
|
2760
2953
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2761
2954
|
)
|
|
2762
2955
|
], User.prototype, "assessments", 2);
|
|
2763
2956
|
__decorateClass([
|
|
2764
|
-
(0,
|
|
2957
|
+
(0, import_typeorm34.OneToMany)(
|
|
2765
2958
|
() => AssessmentAnswer,
|
|
2766
2959
|
(assessmentAnswer) => assessmentAnswer.user
|
|
2767
2960
|
)
|
|
2768
2961
|
], User.prototype, "assessmentAnswers", 2);
|
|
2769
2962
|
__decorateClass([
|
|
2770
|
-
(0,
|
|
2963
|
+
(0, import_typeorm34.OneToMany)(() => Job, (job) => job.user)
|
|
2771
2964
|
], User.prototype, "jobs", 2);
|
|
2772
2965
|
__decorateClass([
|
|
2773
|
-
(0,
|
|
2966
|
+
(0, import_typeorm34.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2774
2967
|
], User.prototype, "interviews", 2);
|
|
2775
2968
|
__decorateClass([
|
|
2776
|
-
(0,
|
|
2969
|
+
(0, import_typeorm34.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2777
2970
|
], User.prototype, "bankDetail", 2);
|
|
2778
2971
|
__decorateClass([
|
|
2779
|
-
(0,
|
|
2972
|
+
(0, import_typeorm34.OneToMany)(
|
|
2780
2973
|
() => SystemPreference,
|
|
2781
2974
|
(systemPreference) => systemPreference.user
|
|
2782
2975
|
)
|
|
2783
2976
|
], User.prototype, "systemPreference", 2);
|
|
2784
2977
|
__decorateClass([
|
|
2785
|
-
(0,
|
|
2978
|
+
(0, import_typeorm34.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2786
2979
|
], User.prototype, "givenRatings", 2);
|
|
2787
2980
|
__decorateClass([
|
|
2788
|
-
(0,
|
|
2981
|
+
(0, import_typeorm34.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2789
2982
|
], User.prototype, "receivedRatings", 2);
|
|
2790
2983
|
__decorateClass([
|
|
2791
|
-
(0,
|
|
2984
|
+
(0, import_typeorm34.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2792
2985
|
], User.prototype, "jobApplications", 2);
|
|
2793
2986
|
__decorateClass([
|
|
2794
|
-
(0,
|
|
2987
|
+
(0, import_typeorm34.OneToOne)(
|
|
2795
2988
|
() => FreelancerExperience,
|
|
2796
2989
|
(freelancerExperience) => freelancerExperience.user
|
|
2797
2990
|
)
|
|
2798
2991
|
], User.prototype, "freelancerExperience", 2);
|
|
2799
2992
|
__decorateClass([
|
|
2800
|
-
(0,
|
|
2993
|
+
(0, import_typeorm34.OneToOne)(
|
|
2801
2994
|
() => FreelancerEducation,
|
|
2802
2995
|
(freelancerEducation) => freelancerEducation.user
|
|
2803
2996
|
)
|
|
2804
2997
|
], User.prototype, "freelancerEducation", 2);
|
|
2805
2998
|
__decorateClass([
|
|
2806
|
-
(0,
|
|
2999
|
+
(0, import_typeorm34.OneToOne)(
|
|
2807
3000
|
() => FreelancerProject,
|
|
2808
3001
|
(freelancerProject) => freelancerProject.user
|
|
2809
3002
|
)
|
|
2810
3003
|
], User.prototype, "freelancerProject", 2);
|
|
2811
3004
|
__decorateClass([
|
|
2812
|
-
(0,
|
|
3005
|
+
(0, import_typeorm34.OneToOne)(
|
|
2813
3006
|
() => FreelancerCaseStudy,
|
|
2814
3007
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2815
3008
|
)
|
|
2816
3009
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2817
3010
|
__decorateClass([
|
|
2818
|
-
(0,
|
|
3011
|
+
(0, import_typeorm34.OneToOne)(
|
|
2819
3012
|
() => FreelancerCoreSkill,
|
|
2820
3013
|
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2821
3014
|
)
|
|
2822
3015
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2823
3016
|
__decorateClass([
|
|
2824
|
-
(0,
|
|
3017
|
+
(0, import_typeorm34.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2825
3018
|
], User.prototype, "freelancerTool", 2);
|
|
2826
3019
|
__decorateClass([
|
|
2827
|
-
(0,
|
|
3020
|
+
(0, import_typeorm34.OneToOne)(
|
|
2828
3021
|
() => FreelancerFramework,
|
|
2829
3022
|
(freelancerFramework) => freelancerFramework.user
|
|
2830
3023
|
)
|
|
2831
3024
|
], User.prototype, "freelancerFramework", 2);
|
|
2832
3025
|
__decorateClass([
|
|
2833
|
-
(0,
|
|
3026
|
+
(0, import_typeorm34.OneToOne)(
|
|
2834
3027
|
() => FreelancerDeclaration,
|
|
2835
3028
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2836
3029
|
)
|
|
2837
3030
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2838
3031
|
User = __decorateClass([
|
|
2839
|
-
(0,
|
|
3032
|
+
(0, import_typeorm34.Entity)("users")
|
|
2840
3033
|
], User);
|
|
2841
3034
|
|
|
2842
3035
|
// src/entities/rating.entity.ts
|
|
@@ -2848,36 +3041,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2848
3041
|
var Rating = class extends BaseEntity {
|
|
2849
3042
|
};
|
|
2850
3043
|
__decorateClass([
|
|
2851
|
-
(0,
|
|
2852
|
-
(0,
|
|
3044
|
+
(0, import_typeorm35.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3045
|
+
(0, import_typeorm35.Index)()
|
|
2853
3046
|
], Rating.prototype, "reviewer_id", 2);
|
|
2854
3047
|
__decorateClass([
|
|
2855
|
-
(0,
|
|
2856
|
-
(0,
|
|
3048
|
+
(0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3049
|
+
(0, import_typeorm35.JoinColumn)({ name: "reviewer_id" })
|
|
2857
3050
|
], Rating.prototype, "reviewer", 2);
|
|
2858
3051
|
__decorateClass([
|
|
2859
|
-
(0,
|
|
2860
|
-
(0,
|
|
3052
|
+
(0, import_typeorm35.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3053
|
+
(0, import_typeorm35.Index)()
|
|
2861
3054
|
], Rating.prototype, "reviewee_id", 2);
|
|
2862
3055
|
__decorateClass([
|
|
2863
|
-
(0,
|
|
2864
|
-
(0,
|
|
3056
|
+
(0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3057
|
+
(0, import_typeorm35.JoinColumn)({ name: "reviewee_id" })
|
|
2865
3058
|
], Rating.prototype, "reviewee", 2);
|
|
2866
3059
|
__decorateClass([
|
|
2867
|
-
(0,
|
|
3060
|
+
(0, import_typeorm35.Column)({
|
|
2868
3061
|
type: "enum",
|
|
2869
3062
|
enum: RatingTypeEnum,
|
|
2870
3063
|
nullable: true
|
|
2871
3064
|
})
|
|
2872
3065
|
], Rating.prototype, "ratingType", 2);
|
|
2873
3066
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
3067
|
+
(0, import_typeorm35.Column)({ type: "integer", nullable: true })
|
|
2875
3068
|
], Rating.prototype, "rating", 2);
|
|
2876
3069
|
__decorateClass([
|
|
2877
|
-
(0,
|
|
3070
|
+
(0, import_typeorm35.Column)({ type: "text", nullable: true })
|
|
2878
3071
|
], Rating.prototype, "review", 2);
|
|
2879
3072
|
Rating = __decorateClass([
|
|
2880
|
-
(0,
|
|
3073
|
+
(0, import_typeorm35.Entity)("ratings")
|
|
2881
3074
|
], Rating);
|
|
2882
3075
|
|
|
2883
3076
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3281,13 +3474,14 @@ __decorateClass([
|
|
|
3281
3474
|
)}`
|
|
3282
3475
|
})
|
|
3283
3476
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3284
|
-
__decorateClass([
|
|
3285
|
-
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3286
|
-
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3287
3477
|
__decorateClass([
|
|
3288
3478
|
(0, import_class_validator46.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3289
3479
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3290
3480
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3481
|
+
__decorateClass([
|
|
3482
|
+
(0, import_class_validator46.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3483
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3484
|
+
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3291
3485
|
__decorateClass([
|
|
3292
3486
|
(0, import_class_validator46.IsOptional)(),
|
|
3293
3487
|
(0, import_class_validator46.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3327,16 +3521,20 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3327
3521
|
var UpdateFreelancerDto = class {
|
|
3328
3522
|
};
|
|
3329
3523
|
__decorateClass([
|
|
3524
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3330
3525
|
(0, import_class_validator47.IsString)({ message: "Full name must be a string" }),
|
|
3331
3526
|
(0, import_class_validator47.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3332
3527
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3333
3528
|
__decorateClass([
|
|
3529
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3334
3530
|
(0, import_class_validator47.IsEmail)({}, { message: "Invalid email address" })
|
|
3335
3531
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3336
3532
|
__decorateClass([
|
|
3533
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3337
3534
|
(0, import_class_validator47.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3338
3535
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3339
3536
|
__decorateClass([
|
|
3537
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3340
3538
|
(0, import_class_validator47.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3341
3539
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3342
3540
|
__decorateClass([
|
|
@@ -3348,10 +3546,12 @@ __decorateClass([
|
|
|
3348
3546
|
})
|
|
3349
3547
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3350
3548
|
__decorateClass([
|
|
3549
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3351
3550
|
(0, import_class_validator47.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3352
3551
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3353
3552
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3354
3553
|
__decorateClass([
|
|
3554
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3355
3555
|
(0, import_class_validator47.IsEnum)(NatureOfWorkEnum2, {
|
|
3356
3556
|
message: `Nature of work must be one of: ${Object.values(
|
|
3357
3557
|
NatureOfWorkEnum2
|
|
@@ -3359,11 +3559,13 @@ __decorateClass([
|
|
|
3359
3559
|
})
|
|
3360
3560
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3361
3561
|
__decorateClass([
|
|
3562
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3362
3563
|
(0, import_class_validator47.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3363
3564
|
(0, import_class_validator47.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3364
3565
|
(0, import_class_transformer7.Type)(() => Number)
|
|
3365
3566
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3366
3567
|
__decorateClass([
|
|
3568
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3367
3569
|
(0, import_class_validator47.IsEnum)(ModeOfWorkEnum2, {
|
|
3368
3570
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3369
3571
|
", "
|
|
@@ -3371,12 +3573,15 @@ __decorateClass([
|
|
|
3371
3573
|
})
|
|
3372
3574
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3373
3575
|
__decorateClass([
|
|
3374
|
-
(0, import_class_validator47.
|
|
3375
|
-
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3376
|
-
__decorateClass([
|
|
3576
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3377
3577
|
(0, import_class_validator47.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3378
3578
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3379
3579
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3580
|
+
__decorateClass([
|
|
3581
|
+
(0, import_class_validator47.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
3582
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter availability to join." }),
|
|
3583
|
+
(0, import_class_validator47.IsOptional)()
|
|
3584
|
+
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3380
3585
|
__decorateClass([
|
|
3381
3586
|
(0, import_class_validator47.IsOptional)(),
|
|
3382
3587
|
(0, import_class_validator47.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3862,7 +4067,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3862
4067
|
};
|
|
3863
4068
|
|
|
3864
4069
|
// src/entities/question.entity.ts
|
|
3865
|
-
var
|
|
4070
|
+
var import_typeorm36 = require("typeorm");
|
|
3866
4071
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3867
4072
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3868
4073
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3871,16 +4076,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3871
4076
|
var Question = class extends BaseEntity {
|
|
3872
4077
|
};
|
|
3873
4078
|
__decorateClass([
|
|
3874
|
-
(0,
|
|
4079
|
+
(0, import_typeorm36.Column)({ name: "question", type: "varchar" })
|
|
3875
4080
|
], Question.prototype, "question", 2);
|
|
3876
4081
|
__decorateClass([
|
|
3877
|
-
(0,
|
|
4082
|
+
(0, import_typeorm36.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3878
4083
|
], Question.prototype, "hint", 2);
|
|
3879
4084
|
__decorateClass([
|
|
3880
|
-
(0,
|
|
4085
|
+
(0, import_typeorm36.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3881
4086
|
], Question.prototype, "slug", 2);
|
|
3882
4087
|
__decorateClass([
|
|
3883
|
-
(0,
|
|
4088
|
+
(0, import_typeorm36.Column)({
|
|
3884
4089
|
name: "question_for",
|
|
3885
4090
|
type: "enum",
|
|
3886
4091
|
enum: QuestionFor,
|
|
@@ -3888,258 +4093,97 @@ __decorateClass([
|
|
|
3888
4093
|
})
|
|
3889
4094
|
], Question.prototype, "questionFor", 2);
|
|
3890
4095
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
4096
|
+
(0, import_typeorm36.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3892
4097
|
], Question.prototype, "type", 2);
|
|
3893
4098
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
4099
|
+
(0, import_typeorm36.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3895
4100
|
], Question.prototype, "options", 2);
|
|
3896
4101
|
__decorateClass([
|
|
3897
|
-
(0,
|
|
4102
|
+
(0, import_typeorm36.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3898
4103
|
], Question.prototype, "isActive", 2);
|
|
3899
4104
|
Question = __decorateClass([
|
|
3900
|
-
(0,
|
|
4105
|
+
(0, import_typeorm36.Entity)("questions")
|
|
3901
4106
|
], Question);
|
|
3902
4107
|
|
|
3903
4108
|
// src/entities/job-role.entity.ts
|
|
3904
|
-
var
|
|
4109
|
+
var import_typeorm37 = require("typeorm");
|
|
3905
4110
|
var JobRoles = class extends BaseEntity {
|
|
3906
4111
|
};
|
|
3907
4112
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
4113
|
+
(0, import_typeorm37.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3909
4114
|
], JobRoles.prototype, "slug", 2);
|
|
3910
4115
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
4116
|
+
(0, import_typeorm37.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3912
4117
|
], JobRoles.prototype, "name", 2);
|
|
3913
4118
|
__decorateClass([
|
|
3914
|
-
(0,
|
|
4119
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3915
4120
|
], JobRoles.prototype, "isActive", 2);
|
|
3916
4121
|
JobRoles = __decorateClass([
|
|
3917
|
-
(0,
|
|
4122
|
+
(0, import_typeorm37.Entity)("job_roles")
|
|
3918
4123
|
], JobRoles);
|
|
3919
4124
|
|
|
3920
4125
|
// src/entities/plan.entity.ts
|
|
3921
|
-
var
|
|
4126
|
+
var import_typeorm39 = require("typeorm");
|
|
3922
4127
|
|
|
3923
4128
|
// src/entities/feature.entity.ts
|
|
3924
|
-
var
|
|
4129
|
+
var import_typeorm38 = require("typeorm");
|
|
3925
4130
|
var Feature = class extends BaseEntity {
|
|
3926
4131
|
};
|
|
3927
4132
|
__decorateClass([
|
|
3928
|
-
(0,
|
|
4133
|
+
(0, import_typeorm38.Column)({ name: "name", type: "varchar", unique: true })
|
|
3929
4134
|
], Feature.prototype, "name", 2);
|
|
3930
4135
|
__decorateClass([
|
|
3931
|
-
(0,
|
|
4136
|
+
(0, import_typeorm38.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3932
4137
|
], Feature.prototype, "plans", 2);
|
|
3933
4138
|
Feature = __decorateClass([
|
|
3934
|
-
(0,
|
|
4139
|
+
(0, import_typeorm38.Entity)("features")
|
|
3935
4140
|
], Feature);
|
|
3936
4141
|
|
|
3937
4142
|
// src/entities/plan.entity.ts
|
|
3938
4143
|
var Plan = class extends BaseEntity {
|
|
3939
4144
|
};
|
|
3940
4145
|
__decorateClass([
|
|
3941
|
-
(0,
|
|
4146
|
+
(0, import_typeorm39.Column)({ name: "name", type: "varchar", unique: true })
|
|
3942
4147
|
], Plan.prototype, "name", 2);
|
|
3943
4148
|
__decorateClass([
|
|
3944
|
-
(0,
|
|
4149
|
+
(0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3945
4150
|
], Plan.prototype, "description", 2);
|
|
3946
4151
|
__decorateClass([
|
|
3947
|
-
(0,
|
|
4152
|
+
(0, import_typeorm39.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3948
4153
|
], Plan.prototype, "price", 2);
|
|
3949
4154
|
__decorateClass([
|
|
3950
|
-
(0,
|
|
4155
|
+
(0, import_typeorm39.Column)({ name: "billing_period", type: "varchar" })
|
|
3951
4156
|
], Plan.prototype, "billingPeriod", 2);
|
|
3952
4157
|
__decorateClass([
|
|
3953
|
-
(0,
|
|
4158
|
+
(0, import_typeorm39.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3954
4159
|
], Plan.prototype, "isCurrent", 2);
|
|
3955
4160
|
__decorateClass([
|
|
3956
|
-
(0,
|
|
3957
|
-
(0,
|
|
4161
|
+
(0, import_typeorm39.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4162
|
+
(0, import_typeorm39.JoinTable)()
|
|
3958
4163
|
], Plan.prototype, "features", 2);
|
|
3959
4164
|
Plan = __decorateClass([
|
|
3960
|
-
(0,
|
|
4165
|
+
(0, import_typeorm39.Entity)("plans")
|
|
3961
4166
|
], Plan);
|
|
3962
4167
|
|
|
3963
4168
|
// src/entities/cms.entity.ts
|
|
3964
|
-
var
|
|
4169
|
+
var import_typeorm40 = require("typeorm");
|
|
3965
4170
|
var Cms = class extends BaseEntity {
|
|
3966
4171
|
};
|
|
3967
4172
|
__decorateClass([
|
|
3968
|
-
(0,
|
|
4173
|
+
(0, import_typeorm40.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3969
4174
|
], Cms.prototype, "title", 2);
|
|
3970
4175
|
__decorateClass([
|
|
3971
|
-
(0,
|
|
4176
|
+
(0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3972
4177
|
], Cms.prototype, "slug", 2);
|
|
3973
4178
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
4179
|
+
(0, import_typeorm40.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3975
4180
|
], Cms.prototype, "content", 2);
|
|
3976
4181
|
__decorateClass([
|
|
3977
|
-
(0,
|
|
4182
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3978
4183
|
], Cms.prototype, "isActive", 2);
|
|
3979
4184
|
Cms = __decorateClass([
|
|
3980
|
-
(0,
|
|
4185
|
+
(0, import_typeorm40.Entity)("cms")
|
|
3981
4186
|
], Cms);
|
|
3982
|
-
|
|
3983
|
-
// src/entities/country.entity.ts
|
|
3984
|
-
var import_typeorm40 = require("typeorm");
|
|
3985
|
-
|
|
3986
|
-
// src/entities/state.entity.ts
|
|
3987
|
-
var import_typeorm39 = require("typeorm");
|
|
3988
|
-
|
|
3989
|
-
// src/entities/city.entity.ts
|
|
3990
|
-
var import_typeorm38 = require("typeorm");
|
|
3991
|
-
var City = class extends BaseEntity {
|
|
3992
|
-
};
|
|
3993
|
-
__decorateClass([
|
|
3994
|
-
(0, import_typeorm38.Column)({
|
|
3995
|
-
name: "country_id",
|
|
3996
|
-
type: "int",
|
|
3997
|
-
nullable: true,
|
|
3998
|
-
comment: "Id of the country"
|
|
3999
|
-
})
|
|
4000
|
-
], City.prototype, "countryId", 2);
|
|
4001
|
-
__decorateClass([
|
|
4002
|
-
(0, import_typeorm38.ManyToOne)(() => Country),
|
|
4003
|
-
(0, import_typeorm38.JoinColumn)({ name: "country_id" })
|
|
4004
|
-
], City.prototype, "country", 2);
|
|
4005
|
-
__decorateClass([
|
|
4006
|
-
(0, import_typeorm38.Column)({
|
|
4007
|
-
name: "state_id",
|
|
4008
|
-
type: "int",
|
|
4009
|
-
nullable: false,
|
|
4010
|
-
comment: "Id of the state"
|
|
4011
|
-
})
|
|
4012
|
-
], City.prototype, "stateId", 2);
|
|
4013
|
-
__decorateClass([
|
|
4014
|
-
(0, import_typeorm38.ManyToOne)(() => State, (state) => state.cities),
|
|
4015
|
-
(0, import_typeorm38.JoinColumn)({ name: "state_id" })
|
|
4016
|
-
], City.prototype, "state", 2);
|
|
4017
|
-
__decorateClass([
|
|
4018
|
-
(0, import_typeorm38.Column)({
|
|
4019
|
-
name: "city_code",
|
|
4020
|
-
type: "varchar",
|
|
4021
|
-
length: 100,
|
|
4022
|
-
nullable: false,
|
|
4023
|
-
unique: true,
|
|
4024
|
-
comment: "Code of the city"
|
|
4025
|
-
})
|
|
4026
|
-
], City.prototype, "cityCode", 2);
|
|
4027
|
-
__decorateClass([
|
|
4028
|
-
(0, import_typeorm38.Column)({
|
|
4029
|
-
name: "city_name",
|
|
4030
|
-
type: "varchar",
|
|
4031
|
-
length: 100,
|
|
4032
|
-
nullable: false,
|
|
4033
|
-
comment: "Name of the city"
|
|
4034
|
-
})
|
|
4035
|
-
], City.prototype, "cityName", 2);
|
|
4036
|
-
__decorateClass([
|
|
4037
|
-
(0, import_typeorm38.Column)({
|
|
4038
|
-
name: "is_active",
|
|
4039
|
-
type: "boolean",
|
|
4040
|
-
default: true,
|
|
4041
|
-
comment: "Flag indicating if the city is active"
|
|
4042
|
-
})
|
|
4043
|
-
], City.prototype, "isActive", 2);
|
|
4044
|
-
City = __decorateClass([
|
|
4045
|
-
(0, import_typeorm38.Entity)("cities")
|
|
4046
|
-
], City);
|
|
4047
|
-
|
|
4048
|
-
// src/entities/state.entity.ts
|
|
4049
|
-
var State = class extends BaseEntity {
|
|
4050
|
-
};
|
|
4051
|
-
__decorateClass([
|
|
4052
|
-
(0, import_typeorm39.Column)({
|
|
4053
|
-
name: "country_id",
|
|
4054
|
-
type: "int",
|
|
4055
|
-
nullable: false,
|
|
4056
|
-
comment: "Id of the country"
|
|
4057
|
-
})
|
|
4058
|
-
], State.prototype, "countryId", 2);
|
|
4059
|
-
__decorateClass([
|
|
4060
|
-
(0, import_typeorm39.ManyToOne)(() => Country, (country) => country.states),
|
|
4061
|
-
(0, import_typeorm39.JoinColumn)({ name: "country_id" })
|
|
4062
|
-
], State.prototype, "country", 2);
|
|
4063
|
-
__decorateClass([
|
|
4064
|
-
(0, import_typeorm39.OneToMany)(() => City, (city) => city.state)
|
|
4065
|
-
], State.prototype, "cities", 2);
|
|
4066
|
-
__decorateClass([
|
|
4067
|
-
(0, import_typeorm39.Column)({
|
|
4068
|
-
name: "state_name",
|
|
4069
|
-
type: "varchar",
|
|
4070
|
-
length: 100,
|
|
4071
|
-
nullable: false,
|
|
4072
|
-
comment: "Name of the state"
|
|
4073
|
-
})
|
|
4074
|
-
], State.prototype, "stateName", 2);
|
|
4075
|
-
__decorateClass([
|
|
4076
|
-
(0, import_typeorm39.Column)({
|
|
4077
|
-
name: "is_active",
|
|
4078
|
-
type: "boolean",
|
|
4079
|
-
default: true,
|
|
4080
|
-
comment: "Flag indicating if the state is active"
|
|
4081
|
-
})
|
|
4082
|
-
], State.prototype, "isActive", 2);
|
|
4083
|
-
State = __decorateClass([
|
|
4084
|
-
(0, import_typeorm39.Entity)("states")
|
|
4085
|
-
], State);
|
|
4086
|
-
|
|
4087
|
-
// src/entities/country.entity.ts
|
|
4088
|
-
var Country = class extends BaseEntity {
|
|
4089
|
-
};
|
|
4090
|
-
__decorateClass([
|
|
4091
|
-
(0, import_typeorm40.OneToMany)(() => State, (state) => state.country)
|
|
4092
|
-
], Country.prototype, "states", 2);
|
|
4093
|
-
__decorateClass([
|
|
4094
|
-
(0, import_typeorm40.Column)({
|
|
4095
|
-
name: "country_name",
|
|
4096
|
-
type: "varchar",
|
|
4097
|
-
length: 100,
|
|
4098
|
-
nullable: false,
|
|
4099
|
-
// Set to false for required
|
|
4100
|
-
comment: "Name of the country"
|
|
4101
|
-
})
|
|
4102
|
-
], Country.prototype, "countryName", 2);
|
|
4103
|
-
__decorateClass([
|
|
4104
|
-
(0, import_typeorm40.Column)({
|
|
4105
|
-
name: "country_iso_code",
|
|
4106
|
-
type: "varchar",
|
|
4107
|
-
length: 2,
|
|
4108
|
-
nullable: false,
|
|
4109
|
-
// Must be required if it's unique
|
|
4110
|
-
unique: true,
|
|
4111
|
-
comment: "ISO 3166-1 alpha-2 country code"
|
|
4112
|
-
})
|
|
4113
|
-
], Country.prototype, "countryIsoCode", 2);
|
|
4114
|
-
__decorateClass([
|
|
4115
|
-
(0, import_typeorm40.Column)({
|
|
4116
|
-
name: "country_phone_code",
|
|
4117
|
-
type: "varchar",
|
|
4118
|
-
length: 10,
|
|
4119
|
-
nullable: true,
|
|
4120
|
-
comment: "International dialing code for the country"
|
|
4121
|
-
})
|
|
4122
|
-
], Country.prototype, "countryPhoneCode", 2);
|
|
4123
|
-
__decorateClass([
|
|
4124
|
-
(0, import_typeorm40.Column)({
|
|
4125
|
-
name: "currency",
|
|
4126
|
-
type: "varchar",
|
|
4127
|
-
length: 3,
|
|
4128
|
-
nullable: true,
|
|
4129
|
-
comment: "ISO 4217 currency code"
|
|
4130
|
-
})
|
|
4131
|
-
], Country.prototype, "currency", 2);
|
|
4132
|
-
__decorateClass([
|
|
4133
|
-
(0, import_typeorm40.Column)({
|
|
4134
|
-
name: "is_active",
|
|
4135
|
-
type: "boolean",
|
|
4136
|
-
default: true,
|
|
4137
|
-
comment: "Flag indicating if the country is active"
|
|
4138
|
-
})
|
|
4139
|
-
], Country.prototype, "isActive", 2);
|
|
4140
|
-
Country = __decorateClass([
|
|
4141
|
-
(0, import_typeorm40.Entity)("countries")
|
|
4142
|
-
], Country);
|
|
4143
4187
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4144
4188
|
0 && (module.exports = {
|
|
4145
4189
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -4230,6 +4274,7 @@ Country = __decorateClass([
|
|
|
4230
4274
|
Interview,
|
|
4231
4275
|
InterviewSkill,
|
|
4232
4276
|
InterviewStatusEnum,
|
|
4277
|
+
JOB_ADMIN_PATTERN,
|
|
4233
4278
|
JOB_PATTERN,
|
|
4234
4279
|
JOB_ROLE_PATTERN,
|
|
4235
4280
|
Job,
|