@experts_hub/shared 1.0.495 → 1.0.496

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/index.js CHANGED
@@ -1100,11 +1100,31 @@ __decorateClass([
1100
1100
  (0, import_class_validator30.ValidateIf)((o) => o.webSite !== ""),
1101
1101
  (0, import_class_validator30.IsUrl)({}, { message: "Invalid website URL format" })
1102
1102
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
1103
+ __decorateClass([
1104
+ (0, import_class_validator30.IsOptional)(),
1105
+ (0, import_class_validator30.IsNumber)()
1106
+ ], UpdateCompanyProfileDto.prototype, "countryId", 2);
1107
+ __decorateClass([
1108
+ (0, import_class_validator30.IsOptional)(),
1109
+ (0, import_class_validator30.IsNumber)()
1110
+ ], UpdateCompanyProfileDto.prototype, "stateId", 2);
1111
+ __decorateClass([
1112
+ (0, import_class_validator30.IsOptional)(),
1113
+ (0, import_class_validator30.IsNumber)()
1114
+ ], UpdateCompanyProfileDto.prototype, "cityId", 2);
1103
1115
  __decorateClass([
1104
1116
  (0, import_class_validator30.IsNotEmpty)({ message: "Please enter company address." }),
1105
1117
  (0, import_class_validator30.IsString)({ message: "Company address must be a string" }),
1106
1118
  (0, import_class_validator30.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
1107
1119
  ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
1120
+ __decorateClass([
1121
+ (0, import_class_validator30.IsOptional)(),
1122
+ (0, import_class_validator30.IsString)({ message: "Address line must be a string" })
1123
+ ], UpdateCompanyProfileDto.prototype, "addressLine", 2);
1124
+ __decorateClass([
1125
+ (0, import_class_validator30.IsNotEmpty)({ message: "Please enter postal code." }),
1126
+ (0, import_class_validator30.IsString)({ message: "Postal Code must be a string" })
1127
+ ], UpdateCompanyProfileDto.prototype, "postalCode", 2);
1108
1128
  __decorateClass([
1109
1129
  (0, import_class_validator30.IsNotEmpty)({ message: "Please enter mobile code." }),
1110
1130
  (0, import_class_validator30.IsString)({ message: "Mobile Code must be a string" })
@@ -1528,9 +1548,17 @@ __decorateClass([
1528
1548
  (0, import_class_validator39.IsString)()
1529
1549
  ], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
1530
1550
  __decorateClass([
1531
- (0, import_class_validator39.IsOptional)(),
1551
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please enter address." }),
1532
1552
  (0, import_class_validator39.IsString)()
1533
1553
  ], UpdateFreelancerProfileDto.prototype, "address", 2);
1554
+ __decorateClass([
1555
+ (0, import_class_validator39.IsOptional)(),
1556
+ (0, import_class_validator39.IsString)()
1557
+ ], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
1558
+ __decorateClass([
1559
+ (0, import_class_validator39.IsNotEmpty)({ message: "Please enter postalCode." }),
1560
+ (0, import_class_validator39.IsString)()
1561
+ ], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
1534
1562
  __decorateClass([
1535
1563
  (0, import_class_validator39.IsOptional)(),
1536
1564
  (0, import_class_validator39.IsString)()
@@ -1848,20 +1876,182 @@ Otp = __decorateClass([
1848
1876
  ], Otp);
1849
1877
 
1850
1878
  // src/entities/freelancer-profile.entity.ts
1851
- var import_typeorm8 = require("typeorm");
1879
+ var import_typeorm9 = require("typeorm");
1852
1880
 
1853
1881
  // src/entities/country.entity.ts
1854
- var import_typeorm7 = require("typeorm");
1882
+ var import_typeorm8 = require("typeorm");
1855
1883
 
1856
1884
  // src/entities/state.entity.ts
1857
- var import_typeorm6 = require("typeorm");
1885
+ var import_typeorm7 = require("typeorm");
1858
1886
 
1859
1887
  // src/entities/city.entity.ts
1888
+ var import_typeorm6 = require("typeorm");
1889
+
1890
+ // src/entities/company-profile.entity.ts
1860
1891
  var import_typeorm5 = require("typeorm");
1861
- var City = class extends BaseEntity {
1892
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
1893
+ KindOfHire2["FULLTIME"] = "FULLTIME";
1894
+ KindOfHire2["PARTTIME"] = "PARTTIME";
1895
+ KindOfHire2["BOTH"] = "BOTH";
1896
+ KindOfHire2["HOURLY"] = "HOURLY";
1897
+ KindOfHire2["FREELANCE"] = "FREELANCE";
1898
+ KindOfHire2["FTE"] = "FTE";
1899
+ return KindOfHire2;
1900
+ })(KindOfHire || {});
1901
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
1902
+ ModeOfHire2["ONSITE"] = "ONSITE";
1903
+ ModeOfHire2["REMOTE"] = "REMOTE";
1904
+ ModeOfHire2["HYBRID"] = "HYBRID";
1905
+ ModeOfHire2["BOTH"] = "BOTH";
1906
+ return ModeOfHire2;
1907
+ })(ModeOfHire || {});
1908
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
1909
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
1910
+ FromUsOn2["GOOGLE"] = "GOOGLE";
1911
+ FromUsOn2["REFERRAL"] = "REFERRAL";
1912
+ FromUsOn2["OTHER"] = "OTHER";
1913
+ return FromUsOn2;
1914
+ })(FromUsOn || {});
1915
+ var CompanyOnboardingStepEnum = /* @__PURE__ */ ((CompanyOnboardingStepEnum2) => {
1916
+ CompanyOnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
1917
+ CompanyOnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
1918
+ return CompanyOnboardingStepEnum2;
1919
+ })(CompanyOnboardingStepEnum || {});
1920
+ var CompanyProfile = class extends BaseEntity {
1921
+ // stores the positions JSON
1862
1922
  };
1923
+ // individual index to find company profile by user
1924
+ __decorateClass([
1925
+ (0, import_typeorm5.Column)({ name: "user_id", type: "integer", nullable: true }),
1926
+ (0, import_typeorm5.Index)()
1927
+ ], CompanyProfile.prototype, "userId", 2);
1928
+ __decorateClass([
1929
+ (0, import_typeorm5.ManyToOne)(() => User, (user) => user.companyProfile),
1930
+ (0, import_typeorm5.JoinColumn)({ name: "user_id" })
1931
+ ], CompanyProfile.prototype, "user", 2);
1932
+ __decorateClass([
1933
+ (0, import_typeorm5.Column)({ name: "company_name", type: "varchar", nullable: true })
1934
+ ], CompanyProfile.prototype, "companyName", 2);
1935
+ __decorateClass([
1936
+ (0, import_typeorm5.Column)({ name: "bio", type: "varchar", nullable: true })
1937
+ ], CompanyProfile.prototype, "bio", 2);
1938
+ __decorateClass([
1939
+ (0, import_typeorm5.Column)({ name: "website", type: "varchar", nullable: true })
1940
+ ], CompanyProfile.prototype, "webSite", 2);
1941
+ __decorateClass([
1942
+ (0, import_typeorm5.Column)({ name: "about_company", type: "varchar", nullable: true })
1943
+ ], CompanyProfile.prototype, "aboutCompany", 2);
1944
+ __decorateClass([
1945
+ (0, import_typeorm5.Column)({
1946
+ name: "is_service_aggrement_signed",
1947
+ type: "boolean",
1948
+ default: false
1949
+ })
1950
+ ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1951
+ __decorateClass([
1952
+ (0, import_typeorm5.Column)({ name: "original_document_url", type: "varchar", nullable: true })
1953
+ ], CompanyProfile.prototype, "originalDocumentUrl", 2);
1954
+ __decorateClass([
1955
+ (0, import_typeorm5.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
1956
+ ], CompanyProfile.prototype, "serviceAgreementUrl", 2);
1957
+ __decorateClass([
1958
+ (0, import_typeorm5.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
1959
+ ], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
1960
+ __decorateClass([
1961
+ (0, import_typeorm5.Column)({ name: "country_id", type: "integer", nullable: true })
1962
+ ], CompanyProfile.prototype, "countryId", 2);
1963
+ __decorateClass([
1964
+ (0, import_typeorm5.ManyToOne)(() => Country, (country) => country.freelancerProfile),
1965
+ (0, import_typeorm5.JoinColumn)({ name: "country_id" })
1966
+ ], CompanyProfile.prototype, "country", 2);
1967
+ __decorateClass([
1968
+ (0, import_typeorm5.Column)({ name: "state_id", type: "integer", nullable: true })
1969
+ ], CompanyProfile.prototype, "stateId", 2);
1970
+ __decorateClass([
1971
+ (0, import_typeorm5.ManyToOne)(() => State, (state) => state.freelancerProfile),
1972
+ (0, import_typeorm5.JoinColumn)({ name: "state_id" })
1973
+ ], CompanyProfile.prototype, "state", 2);
1974
+ __decorateClass([
1975
+ (0, import_typeorm5.Column)({ name: "city_id", type: "integer", nullable: true })
1976
+ ], CompanyProfile.prototype, "cityId", 2);
1977
+ __decorateClass([
1978
+ (0, import_typeorm5.ManyToOne)(() => City, (city) => city.freelancerProfile),
1979
+ (0, import_typeorm5.JoinColumn)({ name: "city_id" })
1980
+ ], CompanyProfile.prototype, "city", 2);
1981
+ __decorateClass([
1982
+ (0, import_typeorm5.Column)({ name: "company_address", type: "varchar", nullable: true })
1983
+ ], CompanyProfile.prototype, "companyAddress", 2);
1984
+ __decorateClass([
1985
+ (0, import_typeorm5.Column)({ name: "address_line", type: "varchar", nullable: true })
1986
+ ], CompanyProfile.prototype, "addressLine", 2);
1987
+ __decorateClass([
1988
+ (0, import_typeorm5.Column)({ name: "postal_code", type: "varchar", nullable: true })
1989
+ ], CompanyProfile.prototype, "postalCode", 2);
1990
+ __decorateClass([
1991
+ (0, import_typeorm5.Column)({ name: "phone_number", type: "varchar", nullable: true })
1992
+ ], CompanyProfile.prototype, "phoneNumber", 2);
1993
+ __decorateClass([
1994
+ (0, import_typeorm5.Column)("text", { name: "skills", array: true, nullable: true })
1995
+ ], CompanyProfile.prototype, "skills", 2);
1996
+ __decorateClass([
1997
+ (0, import_typeorm5.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1998
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
1999
+ __decorateClass([
2000
+ (0, import_typeorm5.Column)({
2001
+ name: "kind_of_hiring",
2002
+ type: "enum",
2003
+ enum: KindOfHire,
2004
+ nullable: true
2005
+ })
2006
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
2007
+ __decorateClass([
2008
+ (0, import_typeorm5.Column)({
2009
+ name: "number_of_hours",
2010
+ type: "decimal",
2011
+ precision: 4,
2012
+ scale: 2,
2013
+ nullable: true
2014
+ })
2015
+ ], CompanyProfile.prototype, "numberOfHours", 2);
2016
+ __decorateClass([
2017
+ (0, import_typeorm5.Column)({
2018
+ name: "mode_of_hire",
2019
+ type: "enum",
2020
+ enum: ModeOfHire,
2021
+ nullable: true
2022
+ })
2023
+ ], CompanyProfile.prototype, "modeOfHire", 2);
2024
+ __decorateClass([
2025
+ (0, import_typeorm5.Column)({
2026
+ name: "found_us_on",
2027
+ type: "enum",
2028
+ enum: FromUsOn,
2029
+ nullable: true
2030
+ })
2031
+ ], CompanyProfile.prototype, "foundUsOn", 2);
2032
+ __decorateClass([
2033
+ (0, import_typeorm5.Column)({ name: "found_us_on_detail", type: "varchar", nullable: true })
2034
+ ], CompanyProfile.prototype, "foundUsOnDetail", 2);
1863
2035
  __decorateClass([
1864
2036
  (0, import_typeorm5.Column)({
2037
+ name: "onboarding_step_completed",
2038
+ type: "enum",
2039
+ enum: CompanyOnboardingStepEnum,
2040
+ nullable: true
2041
+ })
2042
+ ], CompanyProfile.prototype, "onboardingStepCompleted", 2);
2043
+ __decorateClass([
2044
+ (0, import_typeorm5.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
2045
+ ], CompanyProfile.prototype, "signaturePositions", 2);
2046
+ CompanyProfile = __decorateClass([
2047
+ (0, import_typeorm5.Entity)("company_profiles")
2048
+ ], CompanyProfile);
2049
+
2050
+ // src/entities/city.entity.ts
2051
+ var City = class extends BaseEntity {
2052
+ };
2053
+ __decorateClass([
2054
+ (0, import_typeorm6.Column)({
1865
2055
  name: "country_id",
1866
2056
  type: "int",
1867
2057
  nullable: true,
@@ -1869,11 +2059,11 @@ __decorateClass([
1869
2059
  })
1870
2060
  ], City.prototype, "countryId", 2);
1871
2061
  __decorateClass([
1872
- (0, import_typeorm5.ManyToOne)(() => Country),
1873
- (0, import_typeorm5.JoinColumn)({ name: "country_id" })
2062
+ (0, import_typeorm6.ManyToOne)(() => Country),
2063
+ (0, import_typeorm6.JoinColumn)({ name: "country_id" })
1874
2064
  ], City.prototype, "country", 2);
1875
2065
  __decorateClass([
1876
- (0, import_typeorm5.Column)({
2066
+ (0, import_typeorm6.Column)({
1877
2067
  name: "state_id",
1878
2068
  type: "int",
1879
2069
  nullable: false,
@@ -1881,11 +2071,11 @@ __decorateClass([
1881
2071
  })
1882
2072
  ], City.prototype, "stateId", 2);
1883
2073
  __decorateClass([
1884
- (0, import_typeorm5.ManyToOne)(() => State, (state) => state.cities),
1885
- (0, import_typeorm5.JoinColumn)({ name: "state_id" })
2074
+ (0, import_typeorm6.ManyToOne)(() => State, (state) => state.cities),
2075
+ (0, import_typeorm6.JoinColumn)({ name: "state_id" })
1886
2076
  ], City.prototype, "state", 2);
1887
2077
  __decorateClass([
1888
- (0, import_typeorm5.Column)({
2078
+ (0, import_typeorm6.Column)({
1889
2079
  name: "city_code",
1890
2080
  type: "varchar",
1891
2081
  length: 100,
@@ -1895,17 +2085,17 @@ __decorateClass([
1895
2085
  })
1896
2086
  ], City.prototype, "cityCode", 2);
1897
2087
  __decorateClass([
1898
- (0, import_typeorm5.Column)({
2088
+ (0, import_typeorm6.Column)({
1899
2089
  name: "city_name",
1900
2090
  type: "varchar",
1901
2091
  length: 100,
1902
2092
  nullable: false,
1903
2093
  comment: "Name of the city"
1904
2094
  }),
1905
- (0, import_typeorm5.Index)()
2095
+ (0, import_typeorm6.Index)()
1906
2096
  ], City.prototype, "cityName", 2);
1907
2097
  __decorateClass([
1908
- (0, import_typeorm5.Column)({
2098
+ (0, import_typeorm6.Column)({
1909
2099
  name: "is_active",
1910
2100
  type: "boolean",
1911
2101
  default: true,
@@ -1913,17 +2103,20 @@ __decorateClass([
1913
2103
  })
1914
2104
  ], City.prototype, "isActive", 2);
1915
2105
  __decorateClass([
1916
- (0, import_typeorm5.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.city)
2106
+ (0, import_typeorm6.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.city)
1917
2107
  ], City.prototype, "freelancerProfile", 2);
2108
+ __decorateClass([
2109
+ (0, import_typeorm6.OneToMany)(() => CompanyProfile, (companyProfile) => companyProfile.city)
2110
+ ], City.prototype, "companyProfile", 2);
1918
2111
  City = __decorateClass([
1919
- (0, import_typeorm5.Entity)("cities")
2112
+ (0, import_typeorm6.Entity)("cities")
1920
2113
  ], City);
1921
2114
 
1922
2115
  // src/entities/state.entity.ts
1923
2116
  var State = class extends BaseEntity {
1924
2117
  };
1925
2118
  __decorateClass([
1926
- (0, import_typeorm6.Column)({
2119
+ (0, import_typeorm7.Column)({
1927
2120
  name: "country_id",
1928
2121
  type: "int",
1929
2122
  nullable: false,
@@ -1931,14 +2124,14 @@ __decorateClass([
1931
2124
  })
1932
2125
  ], State.prototype, "countryId", 2);
1933
2126
  __decorateClass([
1934
- (0, import_typeorm6.ManyToOne)(() => Country, (country) => country.states),
1935
- (0, import_typeorm6.JoinColumn)({ name: "country_id" })
2127
+ (0, import_typeorm7.ManyToOne)(() => Country, (country) => country.states),
2128
+ (0, import_typeorm7.JoinColumn)({ name: "country_id" })
1936
2129
  ], State.prototype, "country", 2);
1937
2130
  __decorateClass([
1938
- (0, import_typeorm6.OneToMany)(() => City, (city) => city.state)
2131
+ (0, import_typeorm7.OneToMany)(() => City, (city) => city.state)
1939
2132
  ], State.prototype, "cities", 2);
1940
2133
  __decorateClass([
1941
- (0, import_typeorm6.Column)({
2134
+ (0, import_typeorm7.Column)({
1942
2135
  name: "state_name",
1943
2136
  type: "varchar",
1944
2137
  length: 100,
@@ -1947,7 +2140,7 @@ __decorateClass([
1947
2140
  })
1948
2141
  ], State.prototype, "stateName", 2);
1949
2142
  __decorateClass([
1950
- (0, import_typeorm6.Column)({
2143
+ (0, import_typeorm7.Column)({
1951
2144
  name: "state_code",
1952
2145
  type: "varchar",
1953
2146
  nullable: true,
@@ -1955,7 +2148,7 @@ __decorateClass([
1955
2148
  })
1956
2149
  ], State.prototype, "stateCode", 2);
1957
2150
  __decorateClass([
1958
- (0, import_typeorm6.Column)({
2151
+ (0, import_typeorm7.Column)({
1959
2152
  name: "is_active",
1960
2153
  type: "boolean",
1961
2154
  default: true,
@@ -1963,17 +2156,20 @@ __decorateClass([
1963
2156
  })
1964
2157
  ], State.prototype, "isActive", 2);
1965
2158
  __decorateClass([
1966
- (0, import_typeorm6.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.state)
2159
+ (0, import_typeorm7.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.state)
1967
2160
  ], State.prototype, "freelancerProfile", 2);
2161
+ __decorateClass([
2162
+ (0, import_typeorm7.OneToMany)(() => CompanyProfile, (companyProfile) => companyProfile.state)
2163
+ ], State.prototype, "companyProfile", 2);
1968
2164
  State = __decorateClass([
1969
- (0, import_typeorm6.Entity)("states")
2165
+ (0, import_typeorm7.Entity)("states")
1970
2166
  ], State);
1971
2167
 
1972
2168
  // src/entities/country.entity.ts
1973
2169
  var Country = class extends BaseEntity {
1974
2170
  };
1975
2171
  __decorateClass([
1976
- (0, import_typeorm7.Column)({
2172
+ (0, import_typeorm8.Column)({
1977
2173
  name: "country_name",
1978
2174
  type: "varchar",
1979
2175
  length: 100,
@@ -1983,7 +2179,7 @@ __decorateClass([
1983
2179
  })
1984
2180
  ], Country.prototype, "countryName", 2);
1985
2181
  __decorateClass([
1986
- (0, import_typeorm7.Column)({
2182
+ (0, import_typeorm8.Column)({
1987
2183
  name: "country_iso_code",
1988
2184
  type: "varchar",
1989
2185
  length: 2,
@@ -1994,7 +2190,7 @@ __decorateClass([
1994
2190
  })
1995
2191
  ], Country.prototype, "countryIsoCode", 2);
1996
2192
  __decorateClass([
1997
- (0, import_typeorm7.Column)({
2193
+ (0, import_typeorm8.Column)({
1998
2194
  name: "country_phone_code",
1999
2195
  type: "varchar",
2000
2196
  length: 10,
@@ -2003,7 +2199,7 @@ __decorateClass([
2003
2199
  })
2004
2200
  ], Country.prototype, "countryPhoneCode", 2);
2005
2201
  __decorateClass([
2006
- (0, import_typeorm7.Column)({
2202
+ (0, import_typeorm8.Column)({
2007
2203
  name: "currency",
2008
2204
  type: "varchar",
2009
2205
  length: 3,
@@ -2012,7 +2208,7 @@ __decorateClass([
2012
2208
  })
2013
2209
  ], Country.prototype, "currency", 2);
2014
2210
  __decorateClass([
2015
- (0, import_typeorm7.Column)({
2211
+ (0, import_typeorm8.Column)({
2016
2212
  name: "is_active",
2017
2213
  type: "boolean",
2018
2214
  default: true,
@@ -2020,13 +2216,16 @@ __decorateClass([
2020
2216
  })
2021
2217
  ], Country.prototype, "isActive", 2);
2022
2218
  __decorateClass([
2023
- (0, import_typeorm7.OneToMany)(() => State, (state) => state.country)
2219
+ (0, import_typeorm8.OneToMany)(() => State, (state) => state.country)
2024
2220
  ], Country.prototype, "states", 2);
2025
2221
  __decorateClass([
2026
- (0, import_typeorm7.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.country)
2222
+ (0, import_typeorm8.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.country)
2027
2223
  ], Country.prototype, "freelancerProfile", 2);
2224
+ __decorateClass([
2225
+ (0, import_typeorm8.OneToMany)(() => CompanyProfile, (companyProfile) => companyProfile.country)
2226
+ ], Country.prototype, "companyProfile", 2);
2028
2227
  Country = __decorateClass([
2029
- (0, import_typeorm7.Entity)("countries")
2228
+ (0, import_typeorm8.Entity)("countries")
2030
2229
  ], Country);
2031
2230
 
2032
2231
  // src/entities/freelancer-profile.entity.ts
@@ -2078,51 +2277,51 @@ var FreelancerProfile = class extends BaseEntity {
2078
2277
  };
2079
2278
  // individual index to find profile by user
2080
2279
  __decorateClass([
2081
- (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
2082
- (0, import_typeorm8.Index)()
2280
+ (0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
2281
+ (0, import_typeorm9.Index)()
2083
2282
  ], FreelancerProfile.prototype, "userId", 2);
2084
2283
  __decorateClass([
2085
- (0, import_typeorm8.ManyToOne)(() => User, (user) => user.freelancerProfile),
2086
- (0, import_typeorm8.JoinColumn)({ name: "user_id" })
2284
+ (0, import_typeorm9.ManyToOne)(() => User, (user) => user.freelancerProfile),
2285
+ (0, import_typeorm9.JoinColumn)({ name: "user_id" })
2087
2286
  ], FreelancerProfile.prototype, "user", 2);
2088
2287
  __decorateClass([
2089
- (0, import_typeorm8.Column)({ name: "country_id", type: "integer", nullable: true })
2288
+ (0, import_typeorm9.Column)({ name: "country_id", type: "integer", nullable: true })
2090
2289
  ], FreelancerProfile.prototype, "countryId", 2);
2091
2290
  __decorateClass([
2092
- (0, import_typeorm8.ManyToOne)(() => Country, (country) => country.freelancerProfile),
2093
- (0, import_typeorm8.JoinColumn)({ name: "country_id" })
2291
+ (0, import_typeorm9.ManyToOne)(() => Country, (country) => country.freelancerProfile),
2292
+ (0, import_typeorm9.JoinColumn)({ name: "country_id" })
2094
2293
  ], FreelancerProfile.prototype, "country", 2);
2095
2294
  __decorateClass([
2096
- (0, import_typeorm8.Column)({ name: "state_id", type: "integer", nullable: true })
2295
+ (0, import_typeorm9.Column)({ name: "state_id", type: "integer", nullable: true })
2097
2296
  ], FreelancerProfile.prototype, "stateId", 2);
2098
2297
  __decorateClass([
2099
- (0, import_typeorm8.ManyToOne)(() => State, (state) => state.freelancerProfile),
2100
- (0, import_typeorm8.JoinColumn)({ name: "state_id" })
2298
+ (0, import_typeorm9.ManyToOne)(() => State, (state) => state.freelancerProfile),
2299
+ (0, import_typeorm9.JoinColumn)({ name: "state_id" })
2101
2300
  ], FreelancerProfile.prototype, "state", 2);
2102
2301
  __decorateClass([
2103
- (0, import_typeorm8.Column)({ name: "city_id", type: "integer", nullable: true })
2302
+ (0, import_typeorm9.Column)({ name: "city_id", type: "integer", nullable: true })
2104
2303
  ], FreelancerProfile.prototype, "cityId", 2);
2105
2304
  __decorateClass([
2106
- (0, import_typeorm8.ManyToOne)(() => City, (city) => city.freelancerProfile),
2107
- (0, import_typeorm8.JoinColumn)({ name: "city_id" })
2305
+ (0, import_typeorm9.ManyToOne)(() => City, (city) => city.freelancerProfile),
2306
+ (0, import_typeorm9.JoinColumn)({ name: "city_id" })
2108
2307
  ], FreelancerProfile.prototype, "city", 2);
2109
2308
  __decorateClass([
2110
- (0, import_typeorm8.Column)({ name: "talent_id", type: "varchar", nullable: true })
2309
+ (0, import_typeorm9.Column)({ name: "talent_id", type: "varchar", nullable: true })
2111
2310
  ], FreelancerProfile.prototype, "talentId", 2);
2112
2311
  __decorateClass([
2113
- (0, import_typeorm8.Column)({ name: "resume_url", type: "text", nullable: true })
2312
+ (0, import_typeorm9.Column)({ name: "resume_url", type: "text", nullable: true })
2114
2313
  ], FreelancerProfile.prototype, "resumeUrl", 2);
2115
2314
  __decorateClass([
2116
- (0, import_typeorm8.Column)({ name: "resume_uploaded_on", type: "timestamp with time zone", nullable: true })
2315
+ (0, import_typeorm9.Column)({ name: "resume_uploaded_on", type: "timestamp with time zone", nullable: true })
2117
2316
  ], FreelancerProfile.prototype, "resumeUploadedOn", 2);
2118
2317
  __decorateClass([
2119
- (0, import_typeorm8.Column)({ name: "resume_eligibility", type: "varchar", nullable: true })
2318
+ (0, import_typeorm9.Column)({ name: "resume_eligibility", type: "varchar", nullable: true })
2120
2319
  ], FreelancerProfile.prototype, "resumeEligibility", 2);
2121
2320
  __decorateClass([
2122
- (0, import_typeorm8.Column)({ name: "resume_score", type: "jsonb", nullable: true })
2321
+ (0, import_typeorm9.Column)({ name: "resume_score", type: "jsonb", nullable: true })
2123
2322
  ], FreelancerProfile.prototype, "resumeScore", 2);
2124
2323
  __decorateClass([
2125
- (0, import_typeorm8.Column)({
2324
+ (0, import_typeorm9.Column)({
2126
2325
  name: "mcq_status",
2127
2326
  type: "enum",
2128
2327
  enum: McqStatusEnum,
@@ -2130,13 +2329,13 @@ __decorateClass([
2130
2329
  })
2131
2330
  ], FreelancerProfile.prototype, "mcqStatus", 2);
2132
2331
  __decorateClass([
2133
- (0, import_typeorm8.Column)({ name: "mcq_score", type: "float", nullable: true })
2332
+ (0, import_typeorm9.Column)({ name: "mcq_score", type: "float", nullable: true })
2134
2333
  ], FreelancerProfile.prototype, "mcqScore", 2);
2135
2334
  __decorateClass([
2136
- (0, import_typeorm8.Column)({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
2335
+ (0, import_typeorm9.Column)({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
2137
2336
  ], FreelancerProfile.prototype, "isEligibleForAiAssessment", 2);
2138
2337
  __decorateClass([
2139
- (0, import_typeorm8.Column)({
2338
+ (0, import_typeorm9.Column)({
2140
2339
  name: "ai_assessment_status",
2141
2340
  type: "enum",
2142
2341
  enum: AiAssessmentStatusEnum,
@@ -2144,10 +2343,10 @@ __decorateClass([
2144
2343
  })
2145
2344
  ], FreelancerProfile.prototype, "aiAssessmentStatus", 2);
2146
2345
  __decorateClass([
2147
- (0, import_typeorm8.Column)({ name: "is_developer", type: "boolean", default: false })
2346
+ (0, import_typeorm9.Column)({ name: "is_developer", type: "boolean", default: false })
2148
2347
  ], FreelancerProfile.prototype, "isDeveloper", 2);
2149
2348
  __decorateClass([
2150
- (0, import_typeorm8.Column)({
2349
+ (0, import_typeorm9.Column)({
2151
2350
  name: "nature_of_work",
2152
2351
  type: "enum",
2153
2352
  enum: NatureOfWork,
@@ -2155,7 +2354,7 @@ __decorateClass([
2155
2354
  })
2156
2355
  ], FreelancerProfile.prototype, "natureOfWork", 2);
2157
2356
  __decorateClass([
2158
- (0, import_typeorm8.Column)({
2357
+ (0, import_typeorm9.Column)({
2159
2358
  name: "number_of_hours",
2160
2359
  type: "decimal",
2161
2360
  precision: 4,
@@ -2164,10 +2363,10 @@ __decorateClass([
2164
2363
  })
2165
2364
  ], FreelancerProfile.prototype, "numberOfHours", 2);
2166
2365
  __decorateClass([
2167
- (0, import_typeorm8.Column)({ name: "currency", type: "varchar", default: "USD" })
2366
+ (0, import_typeorm9.Column)({ name: "currency", type: "varchar", default: "USD" })
2168
2367
  ], FreelancerProfile.prototype, "currency", 2);
2169
2368
  __decorateClass([
2170
- (0, import_typeorm8.Column)({
2369
+ (0, import_typeorm9.Column)({
2171
2370
  name: "expected_hourly_compensation",
2172
2371
  type: "numeric",
2173
2372
  precision: 10,
@@ -2176,7 +2375,7 @@ __decorateClass([
2176
2375
  })
2177
2376
  ], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
2178
2377
  __decorateClass([
2179
- (0, import_typeorm8.Column)({
2378
+ (0, import_typeorm9.Column)({
2180
2379
  name: "mode_of_work",
2181
2380
  type: "enum",
2182
2381
  enum: ModeOfWork,
@@ -2184,32 +2383,32 @@ __decorateClass([
2184
2383
  })
2185
2384
  ], FreelancerProfile.prototype, "modeOfWork", 2);
2186
2385
  __decorateClass([
2187
- (0, import_typeorm8.Column)({ name: "availability_to_join", type: "varchar", nullable: true })
2386
+ (0, import_typeorm9.Column)({ name: "availability_to_join", type: "varchar", nullable: true })
2188
2387
  ], FreelancerProfile.prototype, "availabilityToJoin", 2);
2189
2388
  __decorateClass([
2190
- (0, import_typeorm8.Column)({ name: "is_immediate_joiner", type: "boolean", nullable: true })
2389
+ (0, import_typeorm9.Column)({ name: "is_immediate_joiner", type: "boolean", nullable: true })
2191
2390
  ], FreelancerProfile.prototype, "isImmediateJoiner", 2);
2192
2391
  __decorateClass([
2193
- (0, import_typeorm8.Column)({ name: "linkedin_profile_link", type: "varchar", nullable: true })
2392
+ (0, import_typeorm9.Column)({ name: "linkedin_profile_link", type: "varchar", nullable: true })
2194
2393
  ], FreelancerProfile.prototype, "linkedinProfileLink", 2);
2195
2394
  __decorateClass([
2196
- (0, import_typeorm8.Column)({ name: "kaggle_profile_link", type: "varchar", nullable: true })
2395
+ (0, import_typeorm9.Column)({ name: "kaggle_profile_link", type: "varchar", nullable: true })
2197
2396
  ], FreelancerProfile.prototype, "kaggleProfileLink", 2);
2198
2397
  __decorateClass([
2199
- (0, import_typeorm8.Column)({ name: "github_profile_link", type: "varchar", nullable: true })
2398
+ (0, import_typeorm9.Column)({ name: "github_profile_link", type: "varchar", nullable: true })
2200
2399
  ], FreelancerProfile.prototype, "githubProfileLink", 2);
2201
2400
  __decorateClass([
2202
- (0, import_typeorm8.Column)({
2401
+ (0, import_typeorm9.Column)({
2203
2402
  name: "stack_overflow_profile_link",
2204
2403
  type: "varchar",
2205
2404
  nullable: true
2206
2405
  })
2207
2406
  ], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
2208
2407
  __decorateClass([
2209
- (0, import_typeorm8.Column)({ name: "portfolio_link", type: "varchar", nullable: true })
2408
+ (0, import_typeorm9.Column)({ name: "portfolio_link", type: "varchar", nullable: true })
2210
2409
  ], FreelancerProfile.prototype, "portfolioLink", 2);
2211
2410
  __decorateClass([
2212
- (0, import_typeorm8.Column)({
2411
+ (0, import_typeorm9.Column)({
2213
2412
  name: "onboarding_step_completed",
2214
2413
  type: "enum",
2215
2414
  enum: OnboardingStepEnum,
@@ -2217,19 +2416,25 @@ __decorateClass([
2217
2416
  })
2218
2417
  ], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
2219
2418
  __decorateClass([
2220
- (0, import_typeorm8.Column)({ name: "designation", type: "varchar", nullable: true })
2419
+ (0, import_typeorm9.Column)({ name: "designation", type: "varchar", nullable: true })
2221
2420
  ], FreelancerProfile.prototype, "designation", 2);
2222
2421
  __decorateClass([
2223
- (0, import_typeorm8.Column)({ name: "experience", type: "varchar", nullable: true })
2422
+ (0, import_typeorm9.Column)({ name: "experience", type: "varchar", nullable: true })
2224
2423
  ], FreelancerProfile.prototype, "experience", 2);
2225
2424
  __decorateClass([
2226
- (0, import_typeorm8.Column)({ name: "address", type: "varchar", nullable: true })
2425
+ (0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
2227
2426
  ], FreelancerProfile.prototype, "address", 2);
2228
2427
  __decorateClass([
2229
- (0, import_typeorm8.Column)({ name: "about", type: "varchar", nullable: true })
2428
+ (0, import_typeorm9.Column)({ name: "address_line", type: "varchar", nullable: true })
2429
+ ], FreelancerProfile.prototype, "addressLine", 2);
2430
+ __decorateClass([
2431
+ (0, import_typeorm9.Column)({ name: "postal_code", type: "varchar", nullable: true })
2432
+ ], FreelancerProfile.prototype, "postalCode", 2);
2433
+ __decorateClass([
2434
+ (0, import_typeorm9.Column)({ name: "about", type: "varchar", nullable: true })
2230
2435
  ], FreelancerProfile.prototype, "about", 2);
2231
2436
  __decorateClass([
2232
- (0, import_typeorm8.Column)({
2437
+ (0, import_typeorm9.Column)({
2233
2438
  name: "profile_completed_percentage",
2234
2439
  type: "json",
2235
2440
  default: {
@@ -2243,167 +2448,34 @@ __decorateClass([
2243
2448
  })
2244
2449
  ], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
2245
2450
  __decorateClass([
2246
- (0, import_typeorm8.Column)({ name: "original_document_url", type: "varchar", nullable: true })
2451
+ (0, import_typeorm9.Column)({ name: "original_document_url", type: "varchar", nullable: true })
2247
2452
  ], FreelancerProfile.prototype, "originalDocumentUrl", 2);
2248
2453
  __decorateClass([
2249
- (0, import_typeorm8.Column)({
2454
+ (0, import_typeorm9.Column)({
2250
2455
  name: "is_service_aggrement_signed",
2251
2456
  type: "boolean",
2252
2457
  default: false
2253
2458
  })
2254
2459
  ], FreelancerProfile.prototype, "isServiceAgreementSigned", 2);
2255
2460
  __decorateClass([
2256
- (0, import_typeorm8.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
2461
+ (0, import_typeorm9.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
2257
2462
  ], FreelancerProfile.prototype, "serviceAgreementUrl", 2);
2258
2463
  __decorateClass([
2259
- (0, import_typeorm8.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
2464
+ (0, import_typeorm9.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
2260
2465
  ], FreelancerProfile.prototype, "serviceAggrementSignedOn", 2);
2261
2466
  __decorateClass([
2262
- (0, import_typeorm8.Column)({ name: "is_expertshub_verified", type: "boolean", default: false })
2467
+ (0, import_typeorm9.Column)({ name: "is_expertshub_verified", type: "boolean", default: false })
2263
2468
  ], FreelancerProfile.prototype, "isExpertshubVerified", 2);
2264
2469
  __decorateClass([
2265
- (0, import_typeorm8.Column)({ name: "is_followed_on_linkedin", type: "boolean", default: false })
2470
+ (0, import_typeorm9.Column)({ name: "is_followed_on_linkedin", type: "boolean", default: false })
2266
2471
  ], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
2267
2472
  __decorateClass([
2268
- (0, import_typeorm8.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
2473
+ (0, import_typeorm9.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
2269
2474
  ], FreelancerProfile.prototype, "signaturePositions", 2);
2270
2475
  FreelancerProfile = __decorateClass([
2271
- (0, import_typeorm8.Entity)("freelancer_profiles")
2476
+ (0, import_typeorm9.Entity)("freelancer_profiles")
2272
2477
  ], FreelancerProfile);
2273
2478
 
2274
- // src/entities/company-profile.entity.ts
2275
- var import_typeorm9 = require("typeorm");
2276
- var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
2277
- KindOfHire2["FULLTIME"] = "FULLTIME";
2278
- KindOfHire2["PARTTIME"] = "PARTTIME";
2279
- KindOfHire2["BOTH"] = "BOTH";
2280
- KindOfHire2["HOURLY"] = "HOURLY";
2281
- KindOfHire2["FREELANCE"] = "FREELANCE";
2282
- KindOfHire2["FTE"] = "FTE";
2283
- return KindOfHire2;
2284
- })(KindOfHire || {});
2285
- var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
2286
- ModeOfHire2["ONSITE"] = "ONSITE";
2287
- ModeOfHire2["REMOTE"] = "REMOTE";
2288
- ModeOfHire2["HYBRID"] = "HYBRID";
2289
- ModeOfHire2["BOTH"] = "BOTH";
2290
- return ModeOfHire2;
2291
- })(ModeOfHire || {});
2292
- var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
2293
- FromUsOn2["LINKEDIN"] = "LINKEDIN";
2294
- FromUsOn2["GOOGLE"] = "GOOGLE";
2295
- FromUsOn2["REFERRAL"] = "REFERRAL";
2296
- FromUsOn2["OTHER"] = "OTHER";
2297
- return FromUsOn2;
2298
- })(FromUsOn || {});
2299
- var CompanyOnboardingStepEnum = /* @__PURE__ */ ((CompanyOnboardingStepEnum2) => {
2300
- CompanyOnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
2301
- CompanyOnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
2302
- return CompanyOnboardingStepEnum2;
2303
- })(CompanyOnboardingStepEnum || {});
2304
- var CompanyProfile = class extends BaseEntity {
2305
- // stores the positions JSON
2306
- };
2307
- // individual index to find company profile by user
2308
- __decorateClass([
2309
- (0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
2310
- (0, import_typeorm9.Index)()
2311
- ], CompanyProfile.prototype, "userId", 2);
2312
- __decorateClass([
2313
- (0, import_typeorm9.ManyToOne)(() => User, (user) => user.companyProfile),
2314
- (0, import_typeorm9.JoinColumn)({ name: "user_id" })
2315
- ], CompanyProfile.prototype, "user", 2);
2316
- __decorateClass([
2317
- (0, import_typeorm9.Column)({ name: "company_name", type: "varchar", nullable: true })
2318
- ], CompanyProfile.prototype, "companyName", 2);
2319
- __decorateClass([
2320
- (0, import_typeorm9.Column)({ name: "bio", type: "varchar", nullable: true })
2321
- ], CompanyProfile.prototype, "bio", 2);
2322
- __decorateClass([
2323
- (0, import_typeorm9.Column)({ name: "website", type: "varchar", nullable: true })
2324
- ], CompanyProfile.prototype, "webSite", 2);
2325
- __decorateClass([
2326
- (0, import_typeorm9.Column)({ name: "about_company", type: "varchar", nullable: true })
2327
- ], CompanyProfile.prototype, "aboutCompany", 2);
2328
- __decorateClass([
2329
- (0, import_typeorm9.Column)({
2330
- name: "is_service_aggrement_signed",
2331
- type: "boolean",
2332
- default: false
2333
- })
2334
- ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
2335
- __decorateClass([
2336
- (0, import_typeorm9.Column)({ name: "original_document_url", type: "varchar", nullable: true })
2337
- ], CompanyProfile.prototype, "originalDocumentUrl", 2);
2338
- __decorateClass([
2339
- (0, import_typeorm9.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
2340
- ], CompanyProfile.prototype, "serviceAgreementUrl", 2);
2341
- __decorateClass([
2342
- (0, import_typeorm9.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
2343
- ], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
2344
- __decorateClass([
2345
- (0, import_typeorm9.Column)({ name: "company_address", type: "varchar", nullable: true })
2346
- ], CompanyProfile.prototype, "companyAddress", 2);
2347
- __decorateClass([
2348
- (0, import_typeorm9.Column)({ name: "phone_number", type: "varchar", nullable: true })
2349
- ], CompanyProfile.prototype, "phoneNumber", 2);
2350
- __decorateClass([
2351
- (0, import_typeorm9.Column)("text", { name: "skills", array: true, nullable: true })
2352
- ], CompanyProfile.prototype, "skills", 2);
2353
- __decorateClass([
2354
- (0, import_typeorm9.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
2355
- ], CompanyProfile.prototype, "requiredFreelancer", 2);
2356
- __decorateClass([
2357
- (0, import_typeorm9.Column)({
2358
- name: "kind_of_hiring",
2359
- type: "enum",
2360
- enum: KindOfHire,
2361
- nullable: true
2362
- })
2363
- ], CompanyProfile.prototype, "kindOfHiring", 2);
2364
- __decorateClass([
2365
- (0, import_typeorm9.Column)({
2366
- name: "number_of_hours",
2367
- type: "decimal",
2368
- precision: 4,
2369
- scale: 2,
2370
- nullable: true
2371
- })
2372
- ], CompanyProfile.prototype, "numberOfHours", 2);
2373
- __decorateClass([
2374
- (0, import_typeorm9.Column)({
2375
- name: "mode_of_hire",
2376
- type: "enum",
2377
- enum: ModeOfHire,
2378
- nullable: true
2379
- })
2380
- ], CompanyProfile.prototype, "modeOfHire", 2);
2381
- __decorateClass([
2382
- (0, import_typeorm9.Column)({
2383
- name: "found_us_on",
2384
- type: "enum",
2385
- enum: FromUsOn,
2386
- nullable: true
2387
- })
2388
- ], CompanyProfile.prototype, "foundUsOn", 2);
2389
- __decorateClass([
2390
- (0, import_typeorm9.Column)({ name: "found_us_on_detail", type: "varchar", nullable: true })
2391
- ], CompanyProfile.prototype, "foundUsOnDetail", 2);
2392
- __decorateClass([
2393
- (0, import_typeorm9.Column)({
2394
- name: "onboarding_step_completed",
2395
- type: "enum",
2396
- enum: CompanyOnboardingStepEnum,
2397
- nullable: true
2398
- })
2399
- ], CompanyProfile.prototype, "onboardingStepCompleted", 2);
2400
- __decorateClass([
2401
- (0, import_typeorm9.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
2402
- ], CompanyProfile.prototype, "signaturePositions", 2);
2403
- CompanyProfile = __decorateClass([
2404
- (0, import_typeorm9.Entity)("company_profiles")
2405
- ], CompanyProfile);
2406
-
2407
2479
  // src/entities/job.entity.ts
2408
2480
  var import_typeorm28 = require("typeorm");
2409
2481