@experts_hub/shared 1.0.208 → 1.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/freelancer-assessment.entity.d.ts +1 -0
- package/dist/entities/job.entity.d.ts +10 -0
- package/dist/index.d.mts +54 -39
- package/dist/index.d.ts +54 -39
- package/dist/index.js +526 -478
- package/dist/index.mjs +563 -514
- package/dist/modules/freelancer-admin/dto/create-freelancer.dto.d.ts +1 -1
- package/dist/modules/freelancer-admin/dto/update-freelancer.dto.d.ts +10 -10
- package/dist/modules/job/pattern/pattern.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.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,21 +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 })
|
|
2494
|
+
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2495
|
+
__decorateClass([
|
|
2496
|
+
(0, import_typeorm25.Column)({
|
|
2301
2497
|
name: "status",
|
|
2302
2498
|
type: "enum",
|
|
2303
2499
|
enum: AssessmentStatusEnum,
|
|
@@ -2305,11 +2501,11 @@ __decorateClass([
|
|
|
2305
2501
|
})
|
|
2306
2502
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2307
2503
|
FreelancerAssessment = __decorateClass([
|
|
2308
|
-
(0,
|
|
2504
|
+
(0, import_typeorm25.Entity)("freelancer_assessments")
|
|
2309
2505
|
], FreelancerAssessment);
|
|
2310
2506
|
|
|
2311
2507
|
// src/entities/freelancer-declaration.entity.ts
|
|
2312
|
-
var
|
|
2508
|
+
var import_typeorm26 = require("typeorm");
|
|
2313
2509
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2314
2510
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2315
2511
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2321,15 +2517,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2321
2517
|
};
|
|
2322
2518
|
// individual index to find declaration by user
|
|
2323
2519
|
__decorateClass([
|
|
2324
|
-
(0,
|
|
2325
|
-
(0,
|
|
2520
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2521
|
+
(0, import_typeorm26.Index)()
|
|
2326
2522
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2327
2523
|
__decorateClass([
|
|
2328
|
-
(0,
|
|
2329
|
-
(0,
|
|
2524
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2525
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2330
2526
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2331
2527
|
__decorateClass([
|
|
2332
|
-
(0,
|
|
2528
|
+
(0, import_typeorm26.Column)({
|
|
2333
2529
|
name: "document_type",
|
|
2334
2530
|
type: "enum",
|
|
2335
2531
|
enum: DocumentType,
|
|
@@ -2337,144 +2533,144 @@ __decorateClass([
|
|
|
2337
2533
|
})
|
|
2338
2534
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2339
2535
|
__decorateClass([
|
|
2340
|
-
(0,
|
|
2536
|
+
(0, import_typeorm26.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2341
2537
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2342
2538
|
__decorateClass([
|
|
2343
|
-
(0,
|
|
2539
|
+
(0, import_typeorm26.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2344
2540
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2345
2541
|
__decorateClass([
|
|
2346
|
-
(0,
|
|
2542
|
+
(0, import_typeorm26.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2347
2543
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2348
2544
|
__decorateClass([
|
|
2349
|
-
(0,
|
|
2545
|
+
(0, import_typeorm26.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2350
2546
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2351
2547
|
FreelancerDeclaration = __decorateClass([
|
|
2352
|
-
(0,
|
|
2548
|
+
(0, import_typeorm26.Entity)("freelancer_declaration")
|
|
2353
2549
|
], FreelancerDeclaration);
|
|
2354
2550
|
|
|
2355
2551
|
// src/entities/company-members-roles.entity.ts
|
|
2356
|
-
var
|
|
2552
|
+
var import_typeorm30 = require("typeorm");
|
|
2357
2553
|
|
|
2358
2554
|
// src/entities/company-role.entity.ts
|
|
2359
|
-
var
|
|
2555
|
+
var import_typeorm29 = require("typeorm");
|
|
2360
2556
|
|
|
2361
2557
|
// src/entities/company-role-permission.entity.ts
|
|
2362
|
-
var
|
|
2558
|
+
var import_typeorm28 = require("typeorm");
|
|
2363
2559
|
|
|
2364
2560
|
// src/entities/permission.entity.ts
|
|
2365
|
-
var
|
|
2561
|
+
var import_typeorm27 = require("typeorm");
|
|
2366
2562
|
var Permission = class extends BaseEntity {
|
|
2367
2563
|
};
|
|
2368
2564
|
__decorateClass([
|
|
2369
|
-
(0,
|
|
2565
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2370
2566
|
], Permission.prototype, "name", 2);
|
|
2371
2567
|
__decorateClass([
|
|
2372
|
-
(0,
|
|
2373
|
-
(0,
|
|
2568
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2569
|
+
(0, import_typeorm27.Index)()
|
|
2374
2570
|
], Permission.prototype, "slug", 2);
|
|
2375
2571
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2572
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
2377
2573
|
], Permission.prototype, "description", 2);
|
|
2378
2574
|
__decorateClass([
|
|
2379
|
-
(0,
|
|
2575
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2380
2576
|
], Permission.prototype, "isActive", 2);
|
|
2381
2577
|
Permission = __decorateClass([
|
|
2382
|
-
(0,
|
|
2578
|
+
(0, import_typeorm27.Entity)("permissions")
|
|
2383
2579
|
], Permission);
|
|
2384
2580
|
|
|
2385
2581
|
// src/entities/company-role-permission.entity.ts
|
|
2386
2582
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2387
2583
|
};
|
|
2388
2584
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2390
|
-
(0,
|
|
2585
|
+
(0, import_typeorm28.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2586
|
+
(0, import_typeorm28.Index)()
|
|
2391
2587
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2392
2588
|
__decorateClass([
|
|
2393
|
-
(0,
|
|
2589
|
+
(0, import_typeorm28.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2394
2590
|
onDelete: "CASCADE"
|
|
2395
2591
|
}),
|
|
2396
|
-
(0,
|
|
2592
|
+
(0, import_typeorm28.JoinColumn)({ name: "company_role_id" })
|
|
2397
2593
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2398
2594
|
__decorateClass([
|
|
2399
|
-
(0,
|
|
2400
|
-
(0,
|
|
2595
|
+
(0, import_typeorm28.Column)({ name: "permission_id", type: "integer" }),
|
|
2596
|
+
(0, import_typeorm28.Index)()
|
|
2401
2597
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2402
2598
|
__decorateClass([
|
|
2403
|
-
(0,
|
|
2404
|
-
(0,
|
|
2599
|
+
(0, import_typeorm28.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
2600
|
+
(0, import_typeorm28.JoinColumn)({ name: "permission_id" })
|
|
2405
2601
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2406
2602
|
__decorateClass([
|
|
2407
|
-
(0,
|
|
2603
|
+
(0, import_typeorm28.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2408
2604
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2409
2605
|
CompanyRolePermission = __decorateClass([
|
|
2410
|
-
(0,
|
|
2606
|
+
(0, import_typeorm28.Entity)("company_role_permissions")
|
|
2411
2607
|
], CompanyRolePermission);
|
|
2412
2608
|
|
|
2413
2609
|
// src/entities/company-role.entity.ts
|
|
2414
2610
|
var CompanyRole = class extends BaseEntity {
|
|
2415
2611
|
};
|
|
2416
2612
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2418
|
-
(0,
|
|
2613
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2614
|
+
(0, import_typeorm29.Index)()
|
|
2419
2615
|
], CompanyRole.prototype, "userId", 2);
|
|
2420
2616
|
__decorateClass([
|
|
2421
|
-
(0,
|
|
2422
|
-
(0,
|
|
2617
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.otps),
|
|
2618
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
2423
2619
|
], CompanyRole.prototype, "user", 2);
|
|
2424
2620
|
__decorateClass([
|
|
2425
|
-
(0,
|
|
2621
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar" })
|
|
2426
2622
|
], CompanyRole.prototype, "name", 2);
|
|
2427
2623
|
__decorateClass([
|
|
2428
|
-
(0,
|
|
2429
|
-
(0,
|
|
2624
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2625
|
+
(0, import_typeorm29.Index)()
|
|
2430
2626
|
], CompanyRole.prototype, "slug", 2);
|
|
2431
2627
|
__decorateClass([
|
|
2432
|
-
(0,
|
|
2628
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
2433
2629
|
], CompanyRole.prototype, "description", 2);
|
|
2434
2630
|
__decorateClass([
|
|
2435
|
-
(0,
|
|
2631
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2436
2632
|
], CompanyRole.prototype, "isActive", 2);
|
|
2437
2633
|
__decorateClass([
|
|
2438
|
-
(0,
|
|
2634
|
+
(0, import_typeorm29.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2439
2635
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2440
2636
|
CompanyRole = __decorateClass([
|
|
2441
|
-
(0,
|
|
2637
|
+
(0, import_typeorm29.Entity)("company_roles")
|
|
2442
2638
|
], CompanyRole);
|
|
2443
2639
|
|
|
2444
2640
|
// src/entities/company-members-roles.entity.ts
|
|
2445
2641
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2446
2642
|
};
|
|
2447
2643
|
__decorateClass([
|
|
2448
|
-
(0,
|
|
2449
|
-
(0,
|
|
2644
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2645
|
+
(0, import_typeorm30.Index)()
|
|
2450
2646
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2451
2647
|
__decorateClass([
|
|
2452
|
-
(0,
|
|
2453
|
-
(0,
|
|
2648
|
+
(0, import_typeorm30.ManyToOne)(() => User),
|
|
2649
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
2454
2650
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2455
2651
|
__decorateClass([
|
|
2456
|
-
(0,
|
|
2457
|
-
(0,
|
|
2652
|
+
(0, import_typeorm30.ManyToOne)(() => CompanyRole),
|
|
2653
|
+
(0, import_typeorm30.JoinColumn)({ name: "company_role_id" })
|
|
2458
2654
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2459
2655
|
__decorateClass([
|
|
2460
|
-
(0,
|
|
2461
|
-
(0,
|
|
2656
|
+
(0, import_typeorm30.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2657
|
+
(0, import_typeorm30.Index)()
|
|
2462
2658
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2463
2659
|
__decorateClass([
|
|
2464
|
-
(0,
|
|
2660
|
+
(0, import_typeorm30.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2465
2661
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2466
2662
|
CompanyMemberRole = __decorateClass([
|
|
2467
|
-
(0,
|
|
2663
|
+
(0, import_typeorm30.Entity)("company_member_roles")
|
|
2468
2664
|
], CompanyMemberRole);
|
|
2469
2665
|
|
|
2470
2666
|
// src/entities/assessment-answer.entity.ts
|
|
2471
|
-
var
|
|
2667
|
+
var import_typeorm33 = require("typeorm");
|
|
2472
2668
|
|
|
2473
2669
|
// src/entities/assessment-question.entity.ts
|
|
2474
|
-
var
|
|
2670
|
+
var import_typeorm32 = require("typeorm");
|
|
2475
2671
|
|
|
2476
2672
|
// src/entities/assessment-question-option.entity.ts
|
|
2477
|
-
var
|
|
2673
|
+
var import_typeorm31 = require("typeorm");
|
|
2478
2674
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2479
2675
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
2480
2676
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -2484,21 +2680,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2484
2680
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2485
2681
|
};
|
|
2486
2682
|
__decorateClass([
|
|
2487
|
-
(0,
|
|
2488
|
-
(0,
|
|
2683
|
+
(0, import_typeorm31.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
2684
|
+
(0, import_typeorm31.Index)()
|
|
2489
2685
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2490
2686
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2687
|
+
(0, import_typeorm31.ManyToOne)(
|
|
2492
2688
|
() => AssessmetQuestion,
|
|
2493
2689
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2494
2690
|
),
|
|
2495
|
-
(0,
|
|
2691
|
+
(0, import_typeorm31.JoinColumn)({ name: "question_id" })
|
|
2496
2692
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2497
2693
|
__decorateClass([
|
|
2498
|
-
(0,
|
|
2694
|
+
(0, import_typeorm31.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2499
2695
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2500
2696
|
__decorateClass([
|
|
2501
|
-
(0,
|
|
2697
|
+
(0, import_typeorm31.Column)({
|
|
2502
2698
|
name: "answer_type",
|
|
2503
2699
|
type: "enum",
|
|
2504
2700
|
enum: AnswerTypeEnum,
|
|
@@ -2506,13 +2702,13 @@ __decorateClass([
|
|
|
2506
2702
|
})
|
|
2507
2703
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2508
2704
|
__decorateClass([
|
|
2509
|
-
(0,
|
|
2705
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2510
2706
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2511
2707
|
__decorateClass([
|
|
2512
|
-
(0,
|
|
2708
|
+
(0, import_typeorm31.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2513
2709
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2514
2710
|
AssessmetQuestionOption = __decorateClass([
|
|
2515
|
-
(0,
|
|
2711
|
+
(0, import_typeorm31.Entity)("assessment_question_options")
|
|
2516
2712
|
], AssessmetQuestionOption);
|
|
2517
2713
|
|
|
2518
2714
|
// src/entities/assessment-question.entity.ts
|
|
@@ -2524,10 +2720,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
2524
2720
|
var AssessmetQuestion = class extends BaseEntity {
|
|
2525
2721
|
};
|
|
2526
2722
|
__decorateClass([
|
|
2527
|
-
(0,
|
|
2723
|
+
(0, import_typeorm32.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2528
2724
|
], AssessmetQuestion.prototype, "text", 2);
|
|
2529
2725
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2726
|
+
(0, import_typeorm32.Column)({
|
|
2531
2727
|
name: "question_for",
|
|
2532
2728
|
type: "enum",
|
|
2533
2729
|
enum: QuestionForEnum,
|
|
@@ -2535,16 +2731,16 @@ __decorateClass([
|
|
|
2535
2731
|
})
|
|
2536
2732
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2537
2733
|
__decorateClass([
|
|
2538
|
-
(0,
|
|
2734
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2539
2735
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2540
2736
|
__decorateClass([
|
|
2541
|
-
(0,
|
|
2737
|
+
(0, import_typeorm32.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2542
2738
|
], AssessmetQuestion.prototype, "options", 2);
|
|
2543
2739
|
__decorateClass([
|
|
2544
|
-
(0,
|
|
2740
|
+
(0, import_typeorm32.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2545
2741
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
2546
2742
|
AssessmetQuestion = __decorateClass([
|
|
2547
|
-
(0,
|
|
2743
|
+
(0, import_typeorm32.Entity)("assessment_questions")
|
|
2548
2744
|
], AssessmetQuestion);
|
|
2549
2745
|
|
|
2550
2746
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -2557,47 +2753,47 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
2557
2753
|
var AssessmentAnswer = class extends BaseEntity {
|
|
2558
2754
|
};
|
|
2559
2755
|
__decorateClass([
|
|
2560
|
-
(0,
|
|
2561
|
-
(0,
|
|
2756
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer" }),
|
|
2757
|
+
(0, import_typeorm33.Index)()
|
|
2562
2758
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
2563
2759
|
__decorateClass([
|
|
2564
|
-
(0,
|
|
2565
|
-
(0,
|
|
2760
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
2761
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
2566
2762
|
], AssessmentAnswer.prototype, "user", 2);
|
|
2567
2763
|
__decorateClass([
|
|
2568
|
-
(0,
|
|
2569
|
-
(0,
|
|
2764
|
+
(0, import_typeorm33.Column)({ name: "question_id", type: "integer" }),
|
|
2765
|
+
(0, import_typeorm33.Index)()
|
|
2570
2766
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2571
2767
|
__decorateClass([
|
|
2572
|
-
(0,
|
|
2768
|
+
(0, import_typeorm33.ManyToOne)(
|
|
2573
2769
|
() => AssessmetQuestion,
|
|
2574
2770
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
2575
2771
|
),
|
|
2576
|
-
(0,
|
|
2772
|
+
(0, import_typeorm33.JoinColumn)({ name: "question_id" })
|
|
2577
2773
|
], AssessmentAnswer.prototype, "question", 2);
|
|
2578
2774
|
__decorateClass([
|
|
2579
|
-
(0,
|
|
2580
|
-
(0,
|
|
2775
|
+
(0, import_typeorm33.Column)({ name: "selected_option_id", type: "integer" }),
|
|
2776
|
+
(0, import_typeorm33.Index)()
|
|
2581
2777
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
2582
2778
|
__decorateClass([
|
|
2583
|
-
(0,
|
|
2779
|
+
(0, import_typeorm33.ManyToOne)(
|
|
2584
2780
|
() => AssessmetQuestionOption,
|
|
2585
2781
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
2586
2782
|
),
|
|
2587
|
-
(0,
|
|
2783
|
+
(0, import_typeorm33.JoinColumn)({ name: "selected_option_id" })
|
|
2588
2784
|
], AssessmentAnswer.prototype, "option", 2);
|
|
2589
2785
|
__decorateClass([
|
|
2590
|
-
(0,
|
|
2786
|
+
(0, import_typeorm33.Column)({
|
|
2591
2787
|
name: "selected_answer_type",
|
|
2592
2788
|
type: "enum",
|
|
2593
2789
|
enum: SelectedAnswerTypeEnum
|
|
2594
2790
|
})
|
|
2595
2791
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
2596
2792
|
__decorateClass([
|
|
2597
|
-
(0,
|
|
2793
|
+
(0, import_typeorm33.Column)({ name: "score", type: "float" })
|
|
2598
2794
|
], AssessmentAnswer.prototype, "score", 2);
|
|
2599
2795
|
AssessmentAnswer = __decorateClass([
|
|
2600
|
-
(0,
|
|
2796
|
+
(0, import_typeorm33.Entity)("assessment_answers")
|
|
2601
2797
|
], AssessmentAnswer);
|
|
2602
2798
|
|
|
2603
2799
|
// src/entities/user.entity.ts
|
|
@@ -2625,51 +2821,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2625
2821
|
var User = class extends BaseEntity {
|
|
2626
2822
|
};
|
|
2627
2823
|
__decorateClass([
|
|
2628
|
-
(0,
|
|
2824
|
+
(0, import_typeorm34.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2629
2825
|
], User.prototype, "uniqueId", 2);
|
|
2630
2826
|
__decorateClass([
|
|
2631
|
-
(0,
|
|
2632
|
-
(0,
|
|
2827
|
+
(0, import_typeorm34.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2828
|
+
(0, import_typeorm34.Index)()
|
|
2633
2829
|
], User.prototype, "parentId", 2);
|
|
2634
2830
|
__decorateClass([
|
|
2635
|
-
(0,
|
|
2636
|
-
(0,
|
|
2831
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2832
|
+
(0, import_typeorm34.JoinColumn)({ name: "parent_id" })
|
|
2637
2833
|
], User.prototype, "parent", 2);
|
|
2638
2834
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2835
|
+
(0, import_typeorm34.OneToMany)(() => User, (user) => user.parent)
|
|
2640
2836
|
], User.prototype, "children", 2);
|
|
2641
2837
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2838
|
+
(0, import_typeorm34.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2643
2839
|
], User.prototype, "username", 2);
|
|
2644
2840
|
__decorateClass([
|
|
2645
|
-
(0,
|
|
2841
|
+
(0, import_typeorm34.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2646
2842
|
], User.prototype, "firstName", 2);
|
|
2647
2843
|
__decorateClass([
|
|
2648
|
-
(0,
|
|
2844
|
+
(0, import_typeorm34.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2649
2845
|
], User.prototype, "lastName", 2);
|
|
2650
2846
|
__decorateClass([
|
|
2651
|
-
(0,
|
|
2847
|
+
(0, import_typeorm34.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2652
2848
|
], User.prototype, "dateOfBirth", 2);
|
|
2653
2849
|
__decorateClass([
|
|
2654
|
-
(0,
|
|
2850
|
+
(0, import_typeorm34.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2655
2851
|
], User.prototype, "gender", 2);
|
|
2656
2852
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2853
|
+
(0, import_typeorm34.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2658
2854
|
], User.prototype, "profilePictureUrl", 2);
|
|
2659
2855
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2856
|
+
(0, import_typeorm34.Column)({ name: "email", type: "varchar", unique: true })
|
|
2661
2857
|
], User.prototype, "email", 2);
|
|
2662
2858
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2859
|
+
(0, import_typeorm34.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2664
2860
|
], User.prototype, "mobileCode", 2);
|
|
2665
2861
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2862
|
+
(0, import_typeorm34.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
2667
2863
|
], User.prototype, "mobile", 2);
|
|
2668
2864
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2865
|
+
(0, import_typeorm34.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2670
2866
|
], User.prototype, "password", 2);
|
|
2671
2867
|
__decorateClass([
|
|
2672
|
-
(0,
|
|
2868
|
+
(0, import_typeorm34.Column)({
|
|
2673
2869
|
name: "account_type",
|
|
2674
2870
|
type: "enum",
|
|
2675
2871
|
enum: AccountType,
|
|
@@ -2677,7 +2873,7 @@ __decorateClass([
|
|
|
2677
2873
|
})
|
|
2678
2874
|
], User.prototype, "accountType", 2);
|
|
2679
2875
|
__decorateClass([
|
|
2680
|
-
(0,
|
|
2876
|
+
(0, import_typeorm34.Column)({
|
|
2681
2877
|
name: "account_status",
|
|
2682
2878
|
type: "enum",
|
|
2683
2879
|
enum: AccountStatus,
|
|
@@ -2685,36 +2881,36 @@ __decorateClass([
|
|
|
2685
2881
|
})
|
|
2686
2882
|
], User.prototype, "accountStatus", 2);
|
|
2687
2883
|
__decorateClass([
|
|
2688
|
-
(0,
|
|
2884
|
+
(0, import_typeorm34.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2689
2885
|
], User.prototype, "isEmailVerified", 2);
|
|
2690
2886
|
__decorateClass([
|
|
2691
|
-
(0,
|
|
2887
|
+
(0, import_typeorm34.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2692
2888
|
], User.prototype, "isMobileVerified", 2);
|
|
2693
2889
|
__decorateClass([
|
|
2694
|
-
(0,
|
|
2890
|
+
(0, import_typeorm34.Column)({
|
|
2695
2891
|
name: "last_login_at",
|
|
2696
2892
|
type: "timestamp with time zone",
|
|
2697
2893
|
nullable: true
|
|
2698
2894
|
})
|
|
2699
2895
|
], User.prototype, "lastLoginAt", 2);
|
|
2700
2896
|
__decorateClass([
|
|
2701
|
-
(0,
|
|
2897
|
+
(0, import_typeorm34.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2702
2898
|
], User.prototype, "lastLoginIp", 2);
|
|
2703
2899
|
__decorateClass([
|
|
2704
|
-
(0,
|
|
2900
|
+
(0, import_typeorm34.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2705
2901
|
], User.prototype, "resetToken", 2);
|
|
2706
2902
|
__decorateClass([
|
|
2707
|
-
(0,
|
|
2903
|
+
(0, import_typeorm34.Column)({
|
|
2708
2904
|
name: "reset_token_expire_at",
|
|
2709
2905
|
type: "timestamp with time zone",
|
|
2710
2906
|
nullable: true
|
|
2711
2907
|
})
|
|
2712
2908
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2713
2909
|
__decorateClass([
|
|
2714
|
-
(0,
|
|
2910
|
+
(0, import_typeorm34.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2715
2911
|
], User.prototype, "refreshTokens", 2);
|
|
2716
2912
|
__decorateClass([
|
|
2717
|
-
(0,
|
|
2913
|
+
(0, import_typeorm34.Column)({
|
|
2718
2914
|
name: "provider",
|
|
2719
2915
|
type: "enum",
|
|
2720
2916
|
enum: Provider,
|
|
@@ -2723,117 +2919,117 @@ __decorateClass([
|
|
|
2723
2919
|
})
|
|
2724
2920
|
], User.prototype, "provider", 2);
|
|
2725
2921
|
__decorateClass([
|
|
2726
|
-
(0,
|
|
2922
|
+
(0, import_typeorm34.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2727
2923
|
], User.prototype, "providerToken", 2);
|
|
2728
2924
|
__decorateClass([
|
|
2729
|
-
(0,
|
|
2925
|
+
(0, import_typeorm34.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2730
2926
|
], User.prototype, "linkedInId", 2);
|
|
2731
2927
|
__decorateClass([
|
|
2732
|
-
(0,
|
|
2928
|
+
(0, import_typeorm34.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2733
2929
|
], User.prototype, "googleId", 2);
|
|
2734
2930
|
__decorateClass([
|
|
2735
|
-
(0,
|
|
2931
|
+
(0, import_typeorm34.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2736
2932
|
], User.prototype, "gitLabsId", 2);
|
|
2737
2933
|
__decorateClass([
|
|
2738
|
-
(0,
|
|
2934
|
+
(0, import_typeorm34.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2739
2935
|
], User.prototype, "otps", 2);
|
|
2740
2936
|
__decorateClass([
|
|
2741
|
-
(0,
|
|
2937
|
+
(0, import_typeorm34.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2742
2938
|
], User.prototype, "senseloafLogs", 2);
|
|
2743
2939
|
__decorateClass([
|
|
2744
|
-
(0,
|
|
2940
|
+
(0, import_typeorm34.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
2745
2941
|
], User.prototype, "freelancerProfile", 2);
|
|
2746
2942
|
__decorateClass([
|
|
2747
|
-
(0,
|
|
2943
|
+
(0, import_typeorm34.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2748
2944
|
cascade: true
|
|
2749
2945
|
})
|
|
2750
2946
|
], User.prototype, "companyProfile", 2);
|
|
2751
2947
|
__decorateClass([
|
|
2752
|
-
(0,
|
|
2948
|
+
(0, import_typeorm34.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2753
2949
|
], User.prototype, "companyMemberRoles", 2);
|
|
2754
2950
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2951
|
+
(0, import_typeorm34.OneToMany)(
|
|
2756
2952
|
() => FreelancerAssessment,
|
|
2757
2953
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2758
2954
|
)
|
|
2759
2955
|
], User.prototype, "assessments", 2);
|
|
2760
2956
|
__decorateClass([
|
|
2761
|
-
(0,
|
|
2957
|
+
(0, import_typeorm34.OneToMany)(
|
|
2762
2958
|
() => AssessmentAnswer,
|
|
2763
2959
|
(assessmentAnswer) => assessmentAnswer.user
|
|
2764
2960
|
)
|
|
2765
2961
|
], User.prototype, "assessmentAnswers", 2);
|
|
2766
2962
|
__decorateClass([
|
|
2767
|
-
(0,
|
|
2963
|
+
(0, import_typeorm34.OneToMany)(() => Job, (job) => job.user)
|
|
2768
2964
|
], User.prototype, "jobs", 2);
|
|
2769
2965
|
__decorateClass([
|
|
2770
|
-
(0,
|
|
2966
|
+
(0, import_typeorm34.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2771
2967
|
], User.prototype, "interviews", 2);
|
|
2772
2968
|
__decorateClass([
|
|
2773
|
-
(0,
|
|
2969
|
+
(0, import_typeorm34.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2774
2970
|
], User.prototype, "bankDetail", 2);
|
|
2775
2971
|
__decorateClass([
|
|
2776
|
-
(0,
|
|
2972
|
+
(0, import_typeorm34.OneToMany)(
|
|
2777
2973
|
() => SystemPreference,
|
|
2778
2974
|
(systemPreference) => systemPreference.user
|
|
2779
2975
|
)
|
|
2780
2976
|
], User.prototype, "systemPreference", 2);
|
|
2781
2977
|
__decorateClass([
|
|
2782
|
-
(0,
|
|
2978
|
+
(0, import_typeorm34.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2783
2979
|
], User.prototype, "givenRatings", 2);
|
|
2784
2980
|
__decorateClass([
|
|
2785
|
-
(0,
|
|
2981
|
+
(0, import_typeorm34.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2786
2982
|
], User.prototype, "receivedRatings", 2);
|
|
2787
2983
|
__decorateClass([
|
|
2788
|
-
(0,
|
|
2984
|
+
(0, import_typeorm34.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2789
2985
|
], User.prototype, "jobApplications", 2);
|
|
2790
2986
|
__decorateClass([
|
|
2791
|
-
(0,
|
|
2987
|
+
(0, import_typeorm34.OneToOne)(
|
|
2792
2988
|
() => FreelancerExperience,
|
|
2793
2989
|
(freelancerExperience) => freelancerExperience.user
|
|
2794
2990
|
)
|
|
2795
2991
|
], User.prototype, "freelancerExperience", 2);
|
|
2796
2992
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2993
|
+
(0, import_typeorm34.OneToOne)(
|
|
2798
2994
|
() => FreelancerEducation,
|
|
2799
2995
|
(freelancerEducation) => freelancerEducation.user
|
|
2800
2996
|
)
|
|
2801
2997
|
], User.prototype, "freelancerEducation", 2);
|
|
2802
2998
|
__decorateClass([
|
|
2803
|
-
(0,
|
|
2999
|
+
(0, import_typeorm34.OneToOne)(
|
|
2804
3000
|
() => FreelancerProject,
|
|
2805
3001
|
(freelancerProject) => freelancerProject.user
|
|
2806
3002
|
)
|
|
2807
3003
|
], User.prototype, "freelancerProject", 2);
|
|
2808
3004
|
__decorateClass([
|
|
2809
|
-
(0,
|
|
3005
|
+
(0, import_typeorm34.OneToOne)(
|
|
2810
3006
|
() => FreelancerCaseStudy,
|
|
2811
3007
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2812
3008
|
)
|
|
2813
3009
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2814
3010
|
__decorateClass([
|
|
2815
|
-
(0,
|
|
3011
|
+
(0, import_typeorm34.OneToOne)(
|
|
2816
3012
|
() => FreelancerCoreSkill,
|
|
2817
3013
|
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2818
3014
|
)
|
|
2819
3015
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2820
3016
|
__decorateClass([
|
|
2821
|
-
(0,
|
|
3017
|
+
(0, import_typeorm34.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2822
3018
|
], User.prototype, "freelancerTool", 2);
|
|
2823
3019
|
__decorateClass([
|
|
2824
|
-
(0,
|
|
3020
|
+
(0, import_typeorm34.OneToOne)(
|
|
2825
3021
|
() => FreelancerFramework,
|
|
2826
3022
|
(freelancerFramework) => freelancerFramework.user
|
|
2827
3023
|
)
|
|
2828
3024
|
], User.prototype, "freelancerFramework", 2);
|
|
2829
3025
|
__decorateClass([
|
|
2830
|
-
(0,
|
|
3026
|
+
(0, import_typeorm34.OneToOne)(
|
|
2831
3027
|
() => FreelancerDeclaration,
|
|
2832
3028
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2833
3029
|
)
|
|
2834
3030
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2835
3031
|
User = __decorateClass([
|
|
2836
|
-
(0,
|
|
3032
|
+
(0, import_typeorm34.Entity)("users")
|
|
2837
3033
|
], User);
|
|
2838
3034
|
|
|
2839
3035
|
// src/entities/rating.entity.ts
|
|
@@ -2845,36 +3041,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2845
3041
|
var Rating = class extends BaseEntity {
|
|
2846
3042
|
};
|
|
2847
3043
|
__decorateClass([
|
|
2848
|
-
(0,
|
|
2849
|
-
(0,
|
|
3044
|
+
(0, import_typeorm35.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3045
|
+
(0, import_typeorm35.Index)()
|
|
2850
3046
|
], Rating.prototype, "reviewer_id", 2);
|
|
2851
3047
|
__decorateClass([
|
|
2852
|
-
(0,
|
|
2853
|
-
(0,
|
|
3048
|
+
(0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3049
|
+
(0, import_typeorm35.JoinColumn)({ name: "reviewer_id" })
|
|
2854
3050
|
], Rating.prototype, "reviewer", 2);
|
|
2855
3051
|
__decorateClass([
|
|
2856
|
-
(0,
|
|
2857
|
-
(0,
|
|
3052
|
+
(0, import_typeorm35.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3053
|
+
(0, import_typeorm35.Index)()
|
|
2858
3054
|
], Rating.prototype, "reviewee_id", 2);
|
|
2859
3055
|
__decorateClass([
|
|
2860
|
-
(0,
|
|
2861
|
-
(0,
|
|
3056
|
+
(0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3057
|
+
(0, import_typeorm35.JoinColumn)({ name: "reviewee_id" })
|
|
2862
3058
|
], Rating.prototype, "reviewee", 2);
|
|
2863
3059
|
__decorateClass([
|
|
2864
|
-
(0,
|
|
3060
|
+
(0, import_typeorm35.Column)({
|
|
2865
3061
|
type: "enum",
|
|
2866
3062
|
enum: RatingTypeEnum,
|
|
2867
3063
|
nullable: true
|
|
2868
3064
|
})
|
|
2869
3065
|
], Rating.prototype, "ratingType", 2);
|
|
2870
3066
|
__decorateClass([
|
|
2871
|
-
(0,
|
|
3067
|
+
(0, import_typeorm35.Column)({ type: "integer", nullable: true })
|
|
2872
3068
|
], Rating.prototype, "rating", 2);
|
|
2873
3069
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
3070
|
+
(0, import_typeorm35.Column)({ type: "text", nullable: true })
|
|
2875
3071
|
], Rating.prototype, "review", 2);
|
|
2876
3072
|
Rating = __decorateClass([
|
|
2877
|
-
(0,
|
|
3073
|
+
(0, import_typeorm35.Entity)("ratings")
|
|
2878
3074
|
], Rating);
|
|
2879
3075
|
|
|
2880
3076
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3278,13 +3474,14 @@ __decorateClass([
|
|
|
3278
3474
|
)}`
|
|
3279
3475
|
})
|
|
3280
3476
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3281
|
-
__decorateClass([
|
|
3282
|
-
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3283
|
-
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3284
3477
|
__decorateClass([
|
|
3285
3478
|
(0, import_class_validator46.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3286
3479
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3287
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);
|
|
3288
3485
|
__decorateClass([
|
|
3289
3486
|
(0, import_class_validator46.IsOptional)(),
|
|
3290
3487
|
(0, import_class_validator46.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3324,16 +3521,20 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3324
3521
|
var UpdateFreelancerDto = class {
|
|
3325
3522
|
};
|
|
3326
3523
|
__decorateClass([
|
|
3524
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3327
3525
|
(0, import_class_validator47.IsString)({ message: "Full name must be a string" }),
|
|
3328
3526
|
(0, import_class_validator47.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3329
3527
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3330
3528
|
__decorateClass([
|
|
3529
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3331
3530
|
(0, import_class_validator47.IsEmail)({}, { message: "Invalid email address" })
|
|
3332
3531
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3333
3532
|
__decorateClass([
|
|
3533
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3334
3534
|
(0, import_class_validator47.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3335
3535
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3336
3536
|
__decorateClass([
|
|
3537
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3337
3538
|
(0, import_class_validator47.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3338
3539
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3339
3540
|
__decorateClass([
|
|
@@ -3345,10 +3546,12 @@ __decorateClass([
|
|
|
3345
3546
|
})
|
|
3346
3547
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3347
3548
|
__decorateClass([
|
|
3549
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3348
3550
|
(0, import_class_validator47.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3349
3551
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3350
3552
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3351
3553
|
__decorateClass([
|
|
3554
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3352
3555
|
(0, import_class_validator47.IsEnum)(NatureOfWorkEnum2, {
|
|
3353
3556
|
message: `Nature of work must be one of: ${Object.values(
|
|
3354
3557
|
NatureOfWorkEnum2
|
|
@@ -3356,11 +3559,13 @@ __decorateClass([
|
|
|
3356
3559
|
})
|
|
3357
3560
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3358
3561
|
__decorateClass([
|
|
3562
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3359
3563
|
(0, import_class_validator47.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3360
3564
|
(0, import_class_validator47.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3361
3565
|
(0, import_class_transformer7.Type)(() => Number)
|
|
3362
3566
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3363
3567
|
__decorateClass([
|
|
3568
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3364
3569
|
(0, import_class_validator47.IsEnum)(ModeOfWorkEnum2, {
|
|
3365
3570
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3366
3571
|
", "
|
|
@@ -3368,12 +3573,15 @@ __decorateClass([
|
|
|
3368
3573
|
})
|
|
3369
3574
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3370
3575
|
__decorateClass([
|
|
3371
|
-
(0, import_class_validator47.
|
|
3372
|
-
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3373
|
-
__decorateClass([
|
|
3576
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3374
3577
|
(0, import_class_validator47.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3375
3578
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3376
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);
|
|
3377
3585
|
__decorateClass([
|
|
3378
3586
|
(0, import_class_validator47.IsOptional)(),
|
|
3379
3587
|
(0, import_class_validator47.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
@@ -3859,7 +4067,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3859
4067
|
};
|
|
3860
4068
|
|
|
3861
4069
|
// src/entities/question.entity.ts
|
|
3862
|
-
var
|
|
4070
|
+
var import_typeorm36 = require("typeorm");
|
|
3863
4071
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3864
4072
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3865
4073
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3868,16 +4076,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3868
4076
|
var Question = class extends BaseEntity {
|
|
3869
4077
|
};
|
|
3870
4078
|
__decorateClass([
|
|
3871
|
-
(0,
|
|
4079
|
+
(0, import_typeorm36.Column)({ name: "question", type: "varchar" })
|
|
3872
4080
|
], Question.prototype, "question", 2);
|
|
3873
4081
|
__decorateClass([
|
|
3874
|
-
(0,
|
|
4082
|
+
(0, import_typeorm36.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3875
4083
|
], Question.prototype, "hint", 2);
|
|
3876
4084
|
__decorateClass([
|
|
3877
|
-
(0,
|
|
4085
|
+
(0, import_typeorm36.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3878
4086
|
], Question.prototype, "slug", 2);
|
|
3879
4087
|
__decorateClass([
|
|
3880
|
-
(0,
|
|
4088
|
+
(0, import_typeorm36.Column)({
|
|
3881
4089
|
name: "question_for",
|
|
3882
4090
|
type: "enum",
|
|
3883
4091
|
enum: QuestionFor,
|
|
@@ -3885,258 +4093,97 @@ __decorateClass([
|
|
|
3885
4093
|
})
|
|
3886
4094
|
], Question.prototype, "questionFor", 2);
|
|
3887
4095
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
4096
|
+
(0, import_typeorm36.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3889
4097
|
], Question.prototype, "type", 2);
|
|
3890
4098
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
4099
|
+
(0, import_typeorm36.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3892
4100
|
], Question.prototype, "options", 2);
|
|
3893
4101
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
4102
|
+
(0, import_typeorm36.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3895
4103
|
], Question.prototype, "isActive", 2);
|
|
3896
4104
|
Question = __decorateClass([
|
|
3897
|
-
(0,
|
|
4105
|
+
(0, import_typeorm36.Entity)("questions")
|
|
3898
4106
|
], Question);
|
|
3899
4107
|
|
|
3900
4108
|
// src/entities/job-role.entity.ts
|
|
3901
|
-
var
|
|
4109
|
+
var import_typeorm37 = require("typeorm");
|
|
3902
4110
|
var JobRoles = class extends BaseEntity {
|
|
3903
4111
|
};
|
|
3904
4112
|
__decorateClass([
|
|
3905
|
-
(0,
|
|
4113
|
+
(0, import_typeorm37.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3906
4114
|
], JobRoles.prototype, "slug", 2);
|
|
3907
4115
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
4116
|
+
(0, import_typeorm37.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3909
4117
|
], JobRoles.prototype, "name", 2);
|
|
3910
4118
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
4119
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3912
4120
|
], JobRoles.prototype, "isActive", 2);
|
|
3913
4121
|
JobRoles = __decorateClass([
|
|
3914
|
-
(0,
|
|
4122
|
+
(0, import_typeorm37.Entity)("job_roles")
|
|
3915
4123
|
], JobRoles);
|
|
3916
4124
|
|
|
3917
4125
|
// src/entities/plan.entity.ts
|
|
3918
|
-
var
|
|
4126
|
+
var import_typeorm39 = require("typeorm");
|
|
3919
4127
|
|
|
3920
4128
|
// src/entities/feature.entity.ts
|
|
3921
|
-
var
|
|
4129
|
+
var import_typeorm38 = require("typeorm");
|
|
3922
4130
|
var Feature = class extends BaseEntity {
|
|
3923
4131
|
};
|
|
3924
4132
|
__decorateClass([
|
|
3925
|
-
(0,
|
|
4133
|
+
(0, import_typeorm38.Column)({ name: "name", type: "varchar", unique: true })
|
|
3926
4134
|
], Feature.prototype, "name", 2);
|
|
3927
4135
|
__decorateClass([
|
|
3928
|
-
(0,
|
|
4136
|
+
(0, import_typeorm38.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3929
4137
|
], Feature.prototype, "plans", 2);
|
|
3930
4138
|
Feature = __decorateClass([
|
|
3931
|
-
(0,
|
|
4139
|
+
(0, import_typeorm38.Entity)("features")
|
|
3932
4140
|
], Feature);
|
|
3933
4141
|
|
|
3934
4142
|
// src/entities/plan.entity.ts
|
|
3935
4143
|
var Plan = class extends BaseEntity {
|
|
3936
4144
|
};
|
|
3937
4145
|
__decorateClass([
|
|
3938
|
-
(0,
|
|
4146
|
+
(0, import_typeorm39.Column)({ name: "name", type: "varchar", unique: true })
|
|
3939
4147
|
], Plan.prototype, "name", 2);
|
|
3940
4148
|
__decorateClass([
|
|
3941
|
-
(0,
|
|
4149
|
+
(0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3942
4150
|
], Plan.prototype, "description", 2);
|
|
3943
4151
|
__decorateClass([
|
|
3944
|
-
(0,
|
|
4152
|
+
(0, import_typeorm39.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3945
4153
|
], Plan.prototype, "price", 2);
|
|
3946
4154
|
__decorateClass([
|
|
3947
|
-
(0,
|
|
4155
|
+
(0, import_typeorm39.Column)({ name: "billing_period", type: "varchar" })
|
|
3948
4156
|
], Plan.prototype, "billingPeriod", 2);
|
|
3949
4157
|
__decorateClass([
|
|
3950
|
-
(0,
|
|
4158
|
+
(0, import_typeorm39.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3951
4159
|
], Plan.prototype, "isCurrent", 2);
|
|
3952
4160
|
__decorateClass([
|
|
3953
|
-
(0,
|
|
3954
|
-
(0,
|
|
4161
|
+
(0, import_typeorm39.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4162
|
+
(0, import_typeorm39.JoinTable)()
|
|
3955
4163
|
], Plan.prototype, "features", 2);
|
|
3956
4164
|
Plan = __decorateClass([
|
|
3957
|
-
(0,
|
|
4165
|
+
(0, import_typeorm39.Entity)("plans")
|
|
3958
4166
|
], Plan);
|
|
3959
4167
|
|
|
3960
4168
|
// src/entities/cms.entity.ts
|
|
3961
|
-
var
|
|
4169
|
+
var import_typeorm40 = require("typeorm");
|
|
3962
4170
|
var Cms = class extends BaseEntity {
|
|
3963
4171
|
};
|
|
3964
4172
|
__decorateClass([
|
|
3965
|
-
(0,
|
|
4173
|
+
(0, import_typeorm40.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3966
4174
|
], Cms.prototype, "title", 2);
|
|
3967
4175
|
__decorateClass([
|
|
3968
|
-
(0,
|
|
4176
|
+
(0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3969
4177
|
], Cms.prototype, "slug", 2);
|
|
3970
4178
|
__decorateClass([
|
|
3971
|
-
(0,
|
|
4179
|
+
(0, import_typeorm40.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3972
4180
|
], Cms.prototype, "content", 2);
|
|
3973
4181
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
4182
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3975
4183
|
], Cms.prototype, "isActive", 2);
|
|
3976
4184
|
Cms = __decorateClass([
|
|
3977
|
-
(0,
|
|
4185
|
+
(0, import_typeorm40.Entity)("cms")
|
|
3978
4186
|
], Cms);
|
|
3979
|
-
|
|
3980
|
-
// src/entities/country.entity.ts
|
|
3981
|
-
var import_typeorm40 = require("typeorm");
|
|
3982
|
-
|
|
3983
|
-
// src/entities/state.entity.ts
|
|
3984
|
-
var import_typeorm39 = require("typeorm");
|
|
3985
|
-
|
|
3986
|
-
// src/entities/city.entity.ts
|
|
3987
|
-
var import_typeorm38 = require("typeorm");
|
|
3988
|
-
var City = class extends BaseEntity {
|
|
3989
|
-
};
|
|
3990
|
-
__decorateClass([
|
|
3991
|
-
(0, import_typeorm38.Column)({
|
|
3992
|
-
name: "country_id",
|
|
3993
|
-
type: "int",
|
|
3994
|
-
nullable: true,
|
|
3995
|
-
comment: "Id of the country"
|
|
3996
|
-
})
|
|
3997
|
-
], City.prototype, "countryId", 2);
|
|
3998
|
-
__decorateClass([
|
|
3999
|
-
(0, import_typeorm38.ManyToOne)(() => Country),
|
|
4000
|
-
(0, import_typeorm38.JoinColumn)({ name: "country_id" })
|
|
4001
|
-
], City.prototype, "country", 2);
|
|
4002
|
-
__decorateClass([
|
|
4003
|
-
(0, import_typeorm38.Column)({
|
|
4004
|
-
name: "state_id",
|
|
4005
|
-
type: "int",
|
|
4006
|
-
nullable: false,
|
|
4007
|
-
comment: "Id of the state"
|
|
4008
|
-
})
|
|
4009
|
-
], City.prototype, "stateId", 2);
|
|
4010
|
-
__decorateClass([
|
|
4011
|
-
(0, import_typeorm38.ManyToOne)(() => State, (state) => state.cities),
|
|
4012
|
-
(0, import_typeorm38.JoinColumn)({ name: "state_id" })
|
|
4013
|
-
], City.prototype, "state", 2);
|
|
4014
|
-
__decorateClass([
|
|
4015
|
-
(0, import_typeorm38.Column)({
|
|
4016
|
-
name: "city_code",
|
|
4017
|
-
type: "varchar",
|
|
4018
|
-
length: 100,
|
|
4019
|
-
nullable: false,
|
|
4020
|
-
unique: true,
|
|
4021
|
-
comment: "Code of the city"
|
|
4022
|
-
})
|
|
4023
|
-
], City.prototype, "cityCode", 2);
|
|
4024
|
-
__decorateClass([
|
|
4025
|
-
(0, import_typeorm38.Column)({
|
|
4026
|
-
name: "city_name",
|
|
4027
|
-
type: "varchar",
|
|
4028
|
-
length: 100,
|
|
4029
|
-
nullable: false,
|
|
4030
|
-
comment: "Name of the city"
|
|
4031
|
-
})
|
|
4032
|
-
], City.prototype, "cityName", 2);
|
|
4033
|
-
__decorateClass([
|
|
4034
|
-
(0, import_typeorm38.Column)({
|
|
4035
|
-
name: "is_active",
|
|
4036
|
-
type: "boolean",
|
|
4037
|
-
default: true,
|
|
4038
|
-
comment: "Flag indicating if the city is active"
|
|
4039
|
-
})
|
|
4040
|
-
], City.prototype, "isActive", 2);
|
|
4041
|
-
City = __decorateClass([
|
|
4042
|
-
(0, import_typeorm38.Entity)("cities")
|
|
4043
|
-
], City);
|
|
4044
|
-
|
|
4045
|
-
// src/entities/state.entity.ts
|
|
4046
|
-
var State = class extends BaseEntity {
|
|
4047
|
-
};
|
|
4048
|
-
__decorateClass([
|
|
4049
|
-
(0, import_typeorm39.Column)({
|
|
4050
|
-
name: "country_id",
|
|
4051
|
-
type: "int",
|
|
4052
|
-
nullable: false,
|
|
4053
|
-
comment: "Id of the country"
|
|
4054
|
-
})
|
|
4055
|
-
], State.prototype, "countryId", 2);
|
|
4056
|
-
__decorateClass([
|
|
4057
|
-
(0, import_typeorm39.ManyToOne)(() => Country, (country) => country.states),
|
|
4058
|
-
(0, import_typeorm39.JoinColumn)({ name: "country_id" })
|
|
4059
|
-
], State.prototype, "country", 2);
|
|
4060
|
-
__decorateClass([
|
|
4061
|
-
(0, import_typeorm39.OneToMany)(() => City, (city) => city.state)
|
|
4062
|
-
], State.prototype, "cities", 2);
|
|
4063
|
-
__decorateClass([
|
|
4064
|
-
(0, import_typeorm39.Column)({
|
|
4065
|
-
name: "state_name",
|
|
4066
|
-
type: "varchar",
|
|
4067
|
-
length: 100,
|
|
4068
|
-
nullable: false,
|
|
4069
|
-
comment: "Name of the state"
|
|
4070
|
-
})
|
|
4071
|
-
], State.prototype, "stateName", 2);
|
|
4072
|
-
__decorateClass([
|
|
4073
|
-
(0, import_typeorm39.Column)({
|
|
4074
|
-
name: "is_active",
|
|
4075
|
-
type: "boolean",
|
|
4076
|
-
default: true,
|
|
4077
|
-
comment: "Flag indicating if the state is active"
|
|
4078
|
-
})
|
|
4079
|
-
], State.prototype, "isActive", 2);
|
|
4080
|
-
State = __decorateClass([
|
|
4081
|
-
(0, import_typeorm39.Entity)("states")
|
|
4082
|
-
], State);
|
|
4083
|
-
|
|
4084
|
-
// src/entities/country.entity.ts
|
|
4085
|
-
var Country = class extends BaseEntity {
|
|
4086
|
-
};
|
|
4087
|
-
__decorateClass([
|
|
4088
|
-
(0, import_typeorm40.OneToMany)(() => State, (state) => state.country)
|
|
4089
|
-
], Country.prototype, "states", 2);
|
|
4090
|
-
__decorateClass([
|
|
4091
|
-
(0, import_typeorm40.Column)({
|
|
4092
|
-
name: "country_name",
|
|
4093
|
-
type: "varchar",
|
|
4094
|
-
length: 100,
|
|
4095
|
-
nullable: false,
|
|
4096
|
-
// Set to false for required
|
|
4097
|
-
comment: "Name of the country"
|
|
4098
|
-
})
|
|
4099
|
-
], Country.prototype, "countryName", 2);
|
|
4100
|
-
__decorateClass([
|
|
4101
|
-
(0, import_typeorm40.Column)({
|
|
4102
|
-
name: "country_iso_code",
|
|
4103
|
-
type: "varchar",
|
|
4104
|
-
length: 2,
|
|
4105
|
-
nullable: false,
|
|
4106
|
-
// Must be required if it's unique
|
|
4107
|
-
unique: true,
|
|
4108
|
-
comment: "ISO 3166-1 alpha-2 country code"
|
|
4109
|
-
})
|
|
4110
|
-
], Country.prototype, "countryIsoCode", 2);
|
|
4111
|
-
__decorateClass([
|
|
4112
|
-
(0, import_typeorm40.Column)({
|
|
4113
|
-
name: "country_phone_code",
|
|
4114
|
-
type: "varchar",
|
|
4115
|
-
length: 10,
|
|
4116
|
-
nullable: true,
|
|
4117
|
-
comment: "International dialing code for the country"
|
|
4118
|
-
})
|
|
4119
|
-
], Country.prototype, "countryPhoneCode", 2);
|
|
4120
|
-
__decorateClass([
|
|
4121
|
-
(0, import_typeorm40.Column)({
|
|
4122
|
-
name: "currency",
|
|
4123
|
-
type: "varchar",
|
|
4124
|
-
length: 3,
|
|
4125
|
-
nullable: true,
|
|
4126
|
-
comment: "ISO 4217 currency code"
|
|
4127
|
-
})
|
|
4128
|
-
], Country.prototype, "currency", 2);
|
|
4129
|
-
__decorateClass([
|
|
4130
|
-
(0, import_typeorm40.Column)({
|
|
4131
|
-
name: "is_active",
|
|
4132
|
-
type: "boolean",
|
|
4133
|
-
default: true,
|
|
4134
|
-
comment: "Flag indicating if the country is active"
|
|
4135
|
-
})
|
|
4136
|
-
], Country.prototype, "isActive", 2);
|
|
4137
|
-
Country = __decorateClass([
|
|
4138
|
-
(0, import_typeorm40.Entity)("countries")
|
|
4139
|
-
], Country);
|
|
4140
4187
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4141
4188
|
0 && (module.exports = {
|
|
4142
4189
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -4227,6 +4274,7 @@ Country = __decorateClass([
|
|
|
4227
4274
|
Interview,
|
|
4228
4275
|
InterviewSkill,
|
|
4229
4276
|
InterviewStatusEnum,
|
|
4277
|
+
JOB_ADMIN_PATTERN,
|
|
4230
4278
|
JOB_PATTERN,
|
|
4231
4279
|
JOB_ROLE_PATTERN,
|
|
4232
4280
|
Job,
|