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