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