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