@experts_hub/shared 1.0.269 → 1.0.271
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/index.d.ts +1 -0
- package/dist/entities/interview-question.entity.d.ts +8 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +469 -419
- package/dist/index.mjs +476 -428
- package/dist/modules/admin-role/dto/attach-permissions-to-role.dto.d.ts +4 -0
- package/dist/modules/admin-role/dto/index.d.ts +1 -0
- package/dist/modules/admin-role/pattern/pattern.d.ts +1 -0
- package/dist/modules/job/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -759,6 +759,7 @@ var JOB_PATTERN = {
|
|
|
759
759
|
fetchJobCountPublic: "fetch.job.count.public",
|
|
760
760
|
fetchJobsDropdown: "fetch.jobs.dropdown",
|
|
761
761
|
fetchJobDetail: "fetch.job.details",
|
|
762
|
+
fetchJobDetailPublic: "fetch.job.details.public",
|
|
762
763
|
handleJdUpload: "handle.jd.upload",
|
|
763
764
|
fetchJobBasicInformation: "fetch.job.basic.information",
|
|
764
765
|
createJobBasicInformation: "create.job.basic.information",
|
|
@@ -1197,17 +1198,17 @@ import {
|
|
|
1197
1198
|
} from "class-validator";
|
|
1198
1199
|
|
|
1199
1200
|
// src/entities/rating.entity.ts
|
|
1200
|
-
import { Entity as
|
|
1201
|
+
import { Entity as Entity36, Column as Column37, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32, Index as Index29 } from "typeorm";
|
|
1201
1202
|
|
|
1202
1203
|
// src/entities/user.entity.ts
|
|
1203
1204
|
import {
|
|
1204
|
-
Entity as
|
|
1205
|
-
Column as
|
|
1205
|
+
Entity as Entity35,
|
|
1206
|
+
Column as Column36,
|
|
1206
1207
|
OneToMany as OneToMany13,
|
|
1207
1208
|
OneToOne,
|
|
1208
|
-
Index as
|
|
1209
|
-
ManyToOne as
|
|
1210
|
-
JoinColumn as
|
|
1209
|
+
Index as Index28,
|
|
1210
|
+
ManyToOne as ManyToOne31,
|
|
1211
|
+
JoinColumn as JoinColumn31
|
|
1211
1212
|
} from "typeorm";
|
|
1212
1213
|
|
|
1213
1214
|
// src/entities/base.entity.ts
|
|
@@ -1663,7 +1664,7 @@ __decorateClass([
|
|
|
1663
1664
|
Column8({ name: "resume_url", type: "text", nullable: true })
|
|
1664
1665
|
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
1665
1666
|
__decorateClass([
|
|
1666
|
-
Column8({ name: "resume_data", type: "
|
|
1667
|
+
Column8({ name: "resume_data", type: "text", nullable: true })
|
|
1667
1668
|
], FreelancerProfile.prototype, "resumeData", 2);
|
|
1668
1669
|
__decorateClass([
|
|
1669
1670
|
Column8({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
@@ -1911,11 +1912,11 @@ CompanyProfile = __decorateClass([
|
|
|
1911
1912
|
|
|
1912
1913
|
// src/entities/job.entity.ts
|
|
1913
1914
|
import {
|
|
1914
|
-
Entity as
|
|
1915
|
-
Column as
|
|
1916
|
-
Index as
|
|
1917
|
-
ManyToOne as
|
|
1918
|
-
JoinColumn as
|
|
1915
|
+
Entity as Entity15,
|
|
1916
|
+
Column as Column16,
|
|
1917
|
+
Index as Index9,
|
|
1918
|
+
ManyToOne as ManyToOne13,
|
|
1919
|
+
JoinColumn as JoinColumn13,
|
|
1919
1920
|
OneToMany as OneToMany7
|
|
1920
1921
|
} from "typeorm";
|
|
1921
1922
|
|
|
@@ -2089,11 +2090,11 @@ JobApplication = __decorateClass([
|
|
|
2089
2090
|
|
|
2090
2091
|
// src/entities/interview.entity.ts
|
|
2091
2092
|
import {
|
|
2092
|
-
Entity as
|
|
2093
|
-
Column as
|
|
2094
|
-
Index as
|
|
2095
|
-
ManyToOne as
|
|
2096
|
-
JoinColumn as
|
|
2093
|
+
Entity as Entity14,
|
|
2094
|
+
Column as Column15,
|
|
2095
|
+
Index as Index8,
|
|
2096
|
+
ManyToOne as ManyToOne12,
|
|
2097
|
+
JoinColumn as JoinColumn12,
|
|
2097
2098
|
OneToMany as OneToMany6
|
|
2098
2099
|
} from "typeorm";
|
|
2099
2100
|
|
|
@@ -2124,6 +2125,30 @@ InterviewSkill = __decorateClass([
|
|
|
2124
2125
|
Entity12("interview_skills")
|
|
2125
2126
|
], InterviewSkill);
|
|
2126
2127
|
|
|
2128
|
+
// src/entities/interview-question.entity.ts
|
|
2129
|
+
import { Entity as Entity13, Column as Column14, Index as Index7, ManyToOne as ManyToOne11, JoinColumn as JoinColumn11 } from "typeorm";
|
|
2130
|
+
var InterviewQuestion = class extends BaseEntity {
|
|
2131
|
+
};
|
|
2132
|
+
__decorateClass([
|
|
2133
|
+
Column14({ name: "interview_id", type: "integer" }),
|
|
2134
|
+
Index7()
|
|
2135
|
+
], InterviewQuestion.prototype, "interviewId", 2);
|
|
2136
|
+
__decorateClass([
|
|
2137
|
+
ManyToOne11(() => Interview, (interview) => interview.interviewSkills, {
|
|
2138
|
+
onDelete: "CASCADE"
|
|
2139
|
+
}),
|
|
2140
|
+
JoinColumn11({ name: "interview_id" })
|
|
2141
|
+
], InterviewQuestion.prototype, "interview", 2);
|
|
2142
|
+
__decorateClass([
|
|
2143
|
+
Column14({ name: "question", type: "varchar", nullable: true })
|
|
2144
|
+
], InterviewQuestion.prototype, "question", 2);
|
|
2145
|
+
__decorateClass([
|
|
2146
|
+
Column14({ name: "is_active", type: "boolean", default: true })
|
|
2147
|
+
], InterviewQuestion.prototype, "isActive", 2);
|
|
2148
|
+
InterviewQuestion = __decorateClass([
|
|
2149
|
+
Entity13("interview_questions")
|
|
2150
|
+
], InterviewQuestion);
|
|
2151
|
+
|
|
2127
2152
|
// src/entities/interview.entity.ts
|
|
2128
2153
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2129
2154
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2136,38 +2161,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2136
2161
|
var Interview = class extends BaseEntity {
|
|
2137
2162
|
};
|
|
2138
2163
|
__decorateClass([
|
|
2139
|
-
|
|
2164
|
+
Column15({
|
|
2140
2165
|
name: "interview_id",
|
|
2141
2166
|
type: "varchar",
|
|
2142
2167
|
unique: true,
|
|
2143
2168
|
nullable: true
|
|
2144
2169
|
}),
|
|
2145
|
-
|
|
2170
|
+
Index8()
|
|
2146
2171
|
], Interview.prototype, "interviewId", 2);
|
|
2147
2172
|
__decorateClass([
|
|
2148
|
-
|
|
2149
|
-
|
|
2173
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2174
|
+
Index8()
|
|
2150
2175
|
], Interview.prototype, "userId", 2);
|
|
2151
2176
|
__decorateClass([
|
|
2152
|
-
|
|
2153
|
-
|
|
2177
|
+
ManyToOne12(() => User, (user) => user.interviews),
|
|
2178
|
+
JoinColumn12({ name: "user_id" })
|
|
2154
2179
|
], Interview.prototype, "user", 2);
|
|
2155
2180
|
__decorateClass([
|
|
2156
|
-
|
|
2181
|
+
Column15({ name: "interview_name", type: "varchar", nullable: true })
|
|
2157
2182
|
], Interview.prototype, "interviewName", 2);
|
|
2158
2183
|
__decorateClass([
|
|
2159
|
-
|
|
2160
|
-
|
|
2184
|
+
Column15({ name: "job_id", type: "integer" }),
|
|
2185
|
+
Index8()
|
|
2161
2186
|
], Interview.prototype, "jobId", 2);
|
|
2162
2187
|
__decorateClass([
|
|
2163
|
-
|
|
2164
|
-
|
|
2188
|
+
ManyToOne12(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2189
|
+
JoinColumn12({ name: "job_id" })
|
|
2165
2190
|
], Interview.prototype, "job", 2);
|
|
2166
2191
|
__decorateClass([
|
|
2167
|
-
|
|
2192
|
+
Column15({ name: "interview_type", type: "varchar", nullable: true })
|
|
2168
2193
|
], Interview.prototype, "interviewType", 2);
|
|
2169
2194
|
__decorateClass([
|
|
2170
|
-
|
|
2195
|
+
Column15({
|
|
2171
2196
|
name: "status",
|
|
2172
2197
|
type: "enum",
|
|
2173
2198
|
enum: InterviewStatusEnum,
|
|
@@ -2181,8 +2206,15 @@ __decorateClass([
|
|
|
2181
2206
|
{ cascade: true }
|
|
2182
2207
|
)
|
|
2183
2208
|
], Interview.prototype, "interviewSkills", 2);
|
|
2209
|
+
__decorateClass([
|
|
2210
|
+
OneToMany6(
|
|
2211
|
+
() => InterviewQuestion,
|
|
2212
|
+
(interviewQuestion) => interviewQuestion.interview,
|
|
2213
|
+
{ cascade: true }
|
|
2214
|
+
)
|
|
2215
|
+
], Interview.prototype, "interviewQuestions", 2);
|
|
2184
2216
|
Interview = __decorateClass([
|
|
2185
|
-
|
|
2217
|
+
Entity14("interviews")
|
|
2186
2218
|
], Interview);
|
|
2187
2219
|
|
|
2188
2220
|
// src/entities/job.entity.ts
|
|
@@ -2222,49 +2254,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2222
2254
|
var Job = class extends BaseEntity {
|
|
2223
2255
|
};
|
|
2224
2256
|
__decorateClass([
|
|
2225
|
-
|
|
2257
|
+
Column16({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2226
2258
|
], Job.prototype, "jobId", 2);
|
|
2227
2259
|
// individual index to find jobs by user
|
|
2228
2260
|
__decorateClass([
|
|
2229
|
-
|
|
2230
|
-
|
|
2261
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2262
|
+
Index9()
|
|
2231
2263
|
], Job.prototype, "userId", 2);
|
|
2232
2264
|
__decorateClass([
|
|
2233
|
-
|
|
2234
|
-
|
|
2265
|
+
ManyToOne13(() => User, (user) => user.jobs),
|
|
2266
|
+
JoinColumn13({ name: "user_id" })
|
|
2235
2267
|
], Job.prototype, "user", 2);
|
|
2236
2268
|
__decorateClass([
|
|
2237
|
-
|
|
2269
|
+
Column16({ name: "country_id", type: "int", nullable: true })
|
|
2238
2270
|
], Job.prototype, "countryId", 2);
|
|
2239
2271
|
__decorateClass([
|
|
2240
|
-
|
|
2241
|
-
|
|
2272
|
+
ManyToOne13(() => Country),
|
|
2273
|
+
JoinColumn13({ name: "country_id" })
|
|
2242
2274
|
], Job.prototype, "country", 2);
|
|
2243
2275
|
__decorateClass([
|
|
2244
|
-
|
|
2276
|
+
Column16({ name: "state_id", type: "int", nullable: true })
|
|
2245
2277
|
], Job.prototype, "stateId", 2);
|
|
2246
2278
|
__decorateClass([
|
|
2247
|
-
|
|
2248
|
-
|
|
2279
|
+
ManyToOne13(() => State),
|
|
2280
|
+
JoinColumn13({ name: "state_id" })
|
|
2249
2281
|
], Job.prototype, "state", 2);
|
|
2250
2282
|
__decorateClass([
|
|
2251
|
-
|
|
2283
|
+
Column16({ name: "city_id", type: "int", nullable: true })
|
|
2252
2284
|
], Job.prototype, "cityId", 2);
|
|
2253
2285
|
__decorateClass([
|
|
2254
|
-
|
|
2255
|
-
|
|
2286
|
+
ManyToOne13(() => City),
|
|
2287
|
+
JoinColumn13({ name: "city_id" })
|
|
2256
2288
|
], Job.prototype, "city", 2);
|
|
2257
2289
|
__decorateClass([
|
|
2258
|
-
|
|
2290
|
+
Column16({ name: "job_role", type: "varchar", nullable: true })
|
|
2259
2291
|
], Job.prototype, "jobRole", 2);
|
|
2260
2292
|
__decorateClass([
|
|
2261
|
-
|
|
2293
|
+
Column16({ name: "note", type: "varchar", nullable: true })
|
|
2262
2294
|
], Job.prototype, "note", 2);
|
|
2263
2295
|
__decorateClass([
|
|
2264
|
-
|
|
2296
|
+
Column16({ name: "openings", type: "integer", default: 0 })
|
|
2265
2297
|
], Job.prototype, "openings", 2);
|
|
2266
2298
|
__decorateClass([
|
|
2267
|
-
|
|
2299
|
+
Column16({
|
|
2268
2300
|
name: "location",
|
|
2269
2301
|
type: "enum",
|
|
2270
2302
|
enum: JobLocationEnum,
|
|
@@ -2272,7 +2304,7 @@ __decorateClass([
|
|
|
2272
2304
|
})
|
|
2273
2305
|
], Job.prototype, "location", 2);
|
|
2274
2306
|
__decorateClass([
|
|
2275
|
-
|
|
2307
|
+
Column16({
|
|
2276
2308
|
name: "type_of_employment",
|
|
2277
2309
|
type: "enum",
|
|
2278
2310
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2280,10 +2312,10 @@ __decorateClass([
|
|
|
2280
2312
|
})
|
|
2281
2313
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2282
2314
|
__decorateClass([
|
|
2283
|
-
|
|
2315
|
+
Column16({ name: "currency", type: "varchar", default: "USD" })
|
|
2284
2316
|
], Job.prototype, "currency", 2);
|
|
2285
2317
|
__decorateClass([
|
|
2286
|
-
|
|
2318
|
+
Column16({
|
|
2287
2319
|
name: "expected_salary_from",
|
|
2288
2320
|
type: "decimal",
|
|
2289
2321
|
precision: 10,
|
|
@@ -2292,7 +2324,7 @@ __decorateClass([
|
|
|
2292
2324
|
})
|
|
2293
2325
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2294
2326
|
__decorateClass([
|
|
2295
|
-
|
|
2327
|
+
Column16({
|
|
2296
2328
|
name: "expected_salary_to",
|
|
2297
2329
|
type: "decimal",
|
|
2298
2330
|
precision: 10,
|
|
@@ -2301,16 +2333,16 @@ __decorateClass([
|
|
|
2301
2333
|
})
|
|
2302
2334
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2303
2335
|
__decorateClass([
|
|
2304
|
-
|
|
2336
|
+
Column16({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2305
2337
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2306
2338
|
__decorateClass([
|
|
2307
|
-
|
|
2339
|
+
Column16({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2308
2340
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2309
2341
|
__decorateClass([
|
|
2310
|
-
|
|
2342
|
+
Column16({ name: "duration", type: "varchar", nullable: true })
|
|
2311
2343
|
], Job.prototype, "duration", 2);
|
|
2312
2344
|
__decorateClass([
|
|
2313
|
-
|
|
2345
|
+
Column16({
|
|
2314
2346
|
name: "duration_type",
|
|
2315
2347
|
type: "enum",
|
|
2316
2348
|
enum: DurationTypeEnum,
|
|
@@ -2318,13 +2350,13 @@ __decorateClass([
|
|
|
2318
2350
|
})
|
|
2319
2351
|
], Job.prototype, "durationType", 2);
|
|
2320
2352
|
__decorateClass([
|
|
2321
|
-
|
|
2353
|
+
Column16({ name: "description", type: "varchar", nullable: true })
|
|
2322
2354
|
], Job.prototype, "description", 2);
|
|
2323
2355
|
__decorateClass([
|
|
2324
|
-
|
|
2356
|
+
Column16({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2325
2357
|
], Job.prototype, "additionalComment", 2);
|
|
2326
2358
|
__decorateClass([
|
|
2327
|
-
|
|
2359
|
+
Column16({
|
|
2328
2360
|
name: "onboarding_tat",
|
|
2329
2361
|
type: "varchar",
|
|
2330
2362
|
length: 50,
|
|
@@ -2332,14 +2364,14 @@ __decorateClass([
|
|
|
2332
2364
|
})
|
|
2333
2365
|
], Job.prototype, "onboardingTat", 2);
|
|
2334
2366
|
__decorateClass([
|
|
2335
|
-
|
|
2367
|
+
Column16({
|
|
2336
2368
|
name: "candidate_communication_skills",
|
|
2337
2369
|
type: "varchar",
|
|
2338
2370
|
nullable: true
|
|
2339
2371
|
})
|
|
2340
2372
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2341
2373
|
__decorateClass([
|
|
2342
|
-
|
|
2374
|
+
Column16({
|
|
2343
2375
|
name: "step_completed",
|
|
2344
2376
|
type: "enum",
|
|
2345
2377
|
enum: Step,
|
|
@@ -2347,7 +2379,7 @@ __decorateClass([
|
|
|
2347
2379
|
})
|
|
2348
2380
|
], Job.prototype, "stepCompleted", 2);
|
|
2349
2381
|
__decorateClass([
|
|
2350
|
-
|
|
2382
|
+
Column16({
|
|
2351
2383
|
name: "status",
|
|
2352
2384
|
type: "enum",
|
|
2353
2385
|
enum: JobStatusEnum,
|
|
@@ -2355,10 +2387,10 @@ __decorateClass([
|
|
|
2355
2387
|
})
|
|
2356
2388
|
], Job.prototype, "status", 2);
|
|
2357
2389
|
__decorateClass([
|
|
2358
|
-
|
|
2390
|
+
Column16({ name: "viewed_count", type: "integer", default: 0 })
|
|
2359
2391
|
], Job.prototype, "viewedCount", 2);
|
|
2360
2392
|
__decorateClass([
|
|
2361
|
-
|
|
2393
|
+
Column16({ name: "application_count", type: "integer", default: 0 })
|
|
2362
2394
|
], Job.prototype, "applicationCount", 2);
|
|
2363
2395
|
__decorateClass([
|
|
2364
2396
|
OneToMany7(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2374,16 +2406,16 @@ __decorateClass([
|
|
|
2374
2406
|
})
|
|
2375
2407
|
], Job.prototype, "interviews", 2);
|
|
2376
2408
|
Job = __decorateClass([
|
|
2377
|
-
|
|
2409
|
+
Entity15("jobs")
|
|
2378
2410
|
], Job);
|
|
2379
2411
|
|
|
2380
2412
|
// src/entities/bank-details.entity.ts
|
|
2381
2413
|
import {
|
|
2382
|
-
Entity as
|
|
2383
|
-
Column as
|
|
2384
|
-
Index as
|
|
2385
|
-
ManyToOne as
|
|
2386
|
-
JoinColumn as
|
|
2414
|
+
Entity as Entity16,
|
|
2415
|
+
Column as Column17,
|
|
2416
|
+
Index as Index10,
|
|
2417
|
+
ManyToOne as ManyToOne14,
|
|
2418
|
+
JoinColumn as JoinColumn14
|
|
2387
2419
|
} from "typeorm";
|
|
2388
2420
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2389
2421
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2399,48 +2431,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2399
2431
|
};
|
|
2400
2432
|
// individual index to find bank details by user
|
|
2401
2433
|
__decorateClass([
|
|
2402
|
-
|
|
2403
|
-
|
|
2434
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2435
|
+
Index10()
|
|
2404
2436
|
], BankDetail.prototype, "userId", 2);
|
|
2405
2437
|
__decorateClass([
|
|
2406
|
-
|
|
2407
|
-
|
|
2438
|
+
ManyToOne14(() => User, (user) => user.bankDetail),
|
|
2439
|
+
JoinColumn14({ name: "user_id" })
|
|
2408
2440
|
], BankDetail.prototype, "user", 2);
|
|
2409
2441
|
__decorateClass([
|
|
2410
|
-
|
|
2442
|
+
Column17({ name: "name", type: "varchar", nullable: true })
|
|
2411
2443
|
], BankDetail.prototype, "name", 2);
|
|
2412
2444
|
__decorateClass([
|
|
2413
|
-
|
|
2445
|
+
Column17({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2414
2446
|
], BankDetail.prototype, "mobile", 2);
|
|
2415
2447
|
__decorateClass([
|
|
2416
|
-
|
|
2448
|
+
Column17({ name: "email", type: "varchar", unique: true })
|
|
2417
2449
|
], BankDetail.prototype, "email", 2);
|
|
2418
2450
|
__decorateClass([
|
|
2419
|
-
|
|
2451
|
+
Column17({ name: "address", type: "varchar", nullable: true })
|
|
2420
2452
|
], BankDetail.prototype, "address", 2);
|
|
2421
2453
|
__decorateClass([
|
|
2422
|
-
|
|
2454
|
+
Column17({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2423
2455
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2424
2456
|
__decorateClass([
|
|
2425
|
-
|
|
2457
|
+
Column17({ name: "bank_name", type: "varchar", nullable: true })
|
|
2426
2458
|
], BankDetail.prototype, "bankName", 2);
|
|
2427
2459
|
__decorateClass([
|
|
2428
|
-
|
|
2460
|
+
Column17({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2429
2461
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2430
2462
|
__decorateClass([
|
|
2431
|
-
|
|
2463
|
+
Column17({ name: "branch_name", type: "varchar", nullable: true })
|
|
2432
2464
|
], BankDetail.prototype, "branchName", 2);
|
|
2433
2465
|
__decorateClass([
|
|
2434
|
-
|
|
2466
|
+
Column17({ name: "routing_no", type: "varchar", nullable: true })
|
|
2435
2467
|
], BankDetail.prototype, "routingNo", 2);
|
|
2436
2468
|
__decorateClass([
|
|
2437
|
-
|
|
2469
|
+
Column17({ name: "aba_no", type: "varchar", nullable: true })
|
|
2438
2470
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2439
2471
|
__decorateClass([
|
|
2440
|
-
|
|
2472
|
+
Column17({ name: "iban", type: "varchar", nullable: true })
|
|
2441
2473
|
], BankDetail.prototype, "iban", 2);
|
|
2442
2474
|
__decorateClass([
|
|
2443
|
-
|
|
2475
|
+
Column17({
|
|
2444
2476
|
name: "account_type",
|
|
2445
2477
|
type: "enum",
|
|
2446
2478
|
enum: BankAccountTypeEnum,
|
|
@@ -2448,7 +2480,7 @@ __decorateClass([
|
|
|
2448
2480
|
})
|
|
2449
2481
|
], BankDetail.prototype, "accountType", 2);
|
|
2450
2482
|
__decorateClass([
|
|
2451
|
-
|
|
2483
|
+
Column17({
|
|
2452
2484
|
name: "account_scope",
|
|
2453
2485
|
type: "enum",
|
|
2454
2486
|
enum: BankAccountScopeEnum,
|
|
@@ -2456,263 +2488,263 @@ __decorateClass([
|
|
|
2456
2488
|
})
|
|
2457
2489
|
], BankDetail.prototype, "accountScope", 2);
|
|
2458
2490
|
BankDetail = __decorateClass([
|
|
2459
|
-
|
|
2491
|
+
Entity16("bank_details")
|
|
2460
2492
|
], BankDetail);
|
|
2461
2493
|
|
|
2462
2494
|
// src/entities/system-preference.entity.ts
|
|
2463
2495
|
import {
|
|
2464
|
-
Entity as
|
|
2465
|
-
Column as
|
|
2466
|
-
Index as
|
|
2467
|
-
ManyToOne as
|
|
2468
|
-
JoinColumn as
|
|
2496
|
+
Entity as Entity17,
|
|
2497
|
+
Column as Column18,
|
|
2498
|
+
Index as Index11,
|
|
2499
|
+
ManyToOne as ManyToOne15,
|
|
2500
|
+
JoinColumn as JoinColumn15
|
|
2469
2501
|
} from "typeorm";
|
|
2470
2502
|
var SystemPreference = class extends BaseEntity {
|
|
2471
2503
|
};
|
|
2472
2504
|
// individual index to find system preference by user
|
|
2473
2505
|
__decorateClass([
|
|
2474
|
-
|
|
2475
|
-
|
|
2506
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2507
|
+
Index11()
|
|
2476
2508
|
], SystemPreference.prototype, "userId", 2);
|
|
2477
2509
|
__decorateClass([
|
|
2478
|
-
|
|
2479
|
-
|
|
2510
|
+
ManyToOne15(() => User, (user) => user.systemPreference),
|
|
2511
|
+
JoinColumn15({ name: "user_id" })
|
|
2480
2512
|
], SystemPreference.prototype, "user", 2);
|
|
2481
2513
|
__decorateClass([
|
|
2482
|
-
|
|
2514
|
+
Column18({ name: "key", type: "varchar", nullable: false })
|
|
2483
2515
|
], SystemPreference.prototype, "key", 2);
|
|
2484
2516
|
__decorateClass([
|
|
2485
|
-
|
|
2517
|
+
Column18({ name: "value", type: "boolean", default: false })
|
|
2486
2518
|
], SystemPreference.prototype, "value", 2);
|
|
2487
2519
|
SystemPreference = __decorateClass([
|
|
2488
|
-
|
|
2520
|
+
Entity17("system_preferences")
|
|
2489
2521
|
], SystemPreference);
|
|
2490
2522
|
|
|
2491
2523
|
// src/entities/freelancer-experience.entity.ts
|
|
2492
2524
|
import {
|
|
2493
|
-
Entity as
|
|
2494
|
-
Column as
|
|
2495
|
-
Index as
|
|
2496
|
-
ManyToOne as
|
|
2497
|
-
JoinColumn as
|
|
2525
|
+
Entity as Entity18,
|
|
2526
|
+
Column as Column19,
|
|
2527
|
+
Index as Index12,
|
|
2528
|
+
ManyToOne as ManyToOne16,
|
|
2529
|
+
JoinColumn as JoinColumn16
|
|
2498
2530
|
} from "typeorm";
|
|
2499
2531
|
var FreelancerExperience = class extends BaseEntity {
|
|
2500
2532
|
};
|
|
2501
2533
|
// individual index to find experence by user
|
|
2502
2534
|
__decorateClass([
|
|
2503
|
-
|
|
2504
|
-
|
|
2535
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2536
|
+
Index12()
|
|
2505
2537
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2506
2538
|
__decorateClass([
|
|
2507
|
-
|
|
2508
|
-
|
|
2539
|
+
ManyToOne16(() => User, (user) => user.freelancerExperience),
|
|
2540
|
+
JoinColumn16({ name: "user_id" })
|
|
2509
2541
|
], FreelancerExperience.prototype, "user", 2);
|
|
2510
2542
|
__decorateClass([
|
|
2511
|
-
|
|
2543
|
+
Column19({ name: "company_name", type: "varchar", nullable: true })
|
|
2512
2544
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2513
2545
|
__decorateClass([
|
|
2514
|
-
|
|
2546
|
+
Column19({ name: "designation", type: "varchar", nullable: true })
|
|
2515
2547
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2516
2548
|
__decorateClass([
|
|
2517
|
-
|
|
2549
|
+
Column19({ name: "job_duration", type: "varchar", nullable: true })
|
|
2518
2550
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2519
2551
|
__decorateClass([
|
|
2520
|
-
|
|
2552
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2521
2553
|
], FreelancerExperience.prototype, "description", 2);
|
|
2522
2554
|
FreelancerExperience = __decorateClass([
|
|
2523
|
-
|
|
2555
|
+
Entity18("freelancer_experiences")
|
|
2524
2556
|
], FreelancerExperience);
|
|
2525
2557
|
|
|
2526
2558
|
// src/entities/freelancer-education.entity.ts
|
|
2527
2559
|
import {
|
|
2528
|
-
Entity as
|
|
2529
|
-
Column as
|
|
2530
|
-
Index as
|
|
2531
|
-
ManyToOne as
|
|
2532
|
-
JoinColumn as
|
|
2560
|
+
Entity as Entity19,
|
|
2561
|
+
Column as Column20,
|
|
2562
|
+
Index as Index13,
|
|
2563
|
+
ManyToOne as ManyToOne17,
|
|
2564
|
+
JoinColumn as JoinColumn17
|
|
2533
2565
|
} from "typeorm";
|
|
2534
2566
|
var FreelancerEducation = class extends BaseEntity {
|
|
2535
2567
|
};
|
|
2536
2568
|
// individual index to find education by user
|
|
2537
2569
|
__decorateClass([
|
|
2538
|
-
|
|
2539
|
-
|
|
2570
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2571
|
+
Index13()
|
|
2540
2572
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2541
2573
|
__decorateClass([
|
|
2542
|
-
|
|
2543
|
-
|
|
2574
|
+
ManyToOne17(() => User, (user) => user.freelancerEducation),
|
|
2575
|
+
JoinColumn17({ name: "user_id" })
|
|
2544
2576
|
], FreelancerEducation.prototype, "user", 2);
|
|
2545
2577
|
__decorateClass([
|
|
2546
|
-
|
|
2578
|
+
Column20({ name: "degree", type: "varchar", nullable: true })
|
|
2547
2579
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2548
2580
|
__decorateClass([
|
|
2549
|
-
|
|
2581
|
+
Column20({ name: "university", type: "varchar", nullable: true })
|
|
2550
2582
|
], FreelancerEducation.prototype, "university", 2);
|
|
2551
2583
|
__decorateClass([
|
|
2552
|
-
|
|
2584
|
+
Column20({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2553
2585
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2554
2586
|
FreelancerEducation = __decorateClass([
|
|
2555
|
-
|
|
2587
|
+
Entity19("freelancer_educations")
|
|
2556
2588
|
], FreelancerEducation);
|
|
2557
2589
|
|
|
2558
2590
|
// src/entities/freelancer-project.entity.ts
|
|
2559
2591
|
import {
|
|
2560
|
-
Entity as
|
|
2561
|
-
Column as
|
|
2562
|
-
Index as
|
|
2563
|
-
ManyToOne as
|
|
2564
|
-
JoinColumn as
|
|
2592
|
+
Entity as Entity20,
|
|
2593
|
+
Column as Column21,
|
|
2594
|
+
Index as Index14,
|
|
2595
|
+
ManyToOne as ManyToOne18,
|
|
2596
|
+
JoinColumn as JoinColumn18
|
|
2565
2597
|
} from "typeorm";
|
|
2566
2598
|
var FreelancerProject = class extends BaseEntity {
|
|
2567
2599
|
};
|
|
2568
2600
|
// individual index to find project by user
|
|
2569
2601
|
__decorateClass([
|
|
2570
|
-
|
|
2571
|
-
|
|
2602
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2603
|
+
Index14()
|
|
2572
2604
|
], FreelancerProject.prototype, "userId", 2);
|
|
2573
2605
|
__decorateClass([
|
|
2574
|
-
|
|
2575
|
-
|
|
2606
|
+
ManyToOne18(() => User, (user) => user.freelancerProject),
|
|
2607
|
+
JoinColumn18({ name: "user_id" })
|
|
2576
2608
|
], FreelancerProject.prototype, "user", 2);
|
|
2577
2609
|
__decorateClass([
|
|
2578
|
-
|
|
2610
|
+
Column21({ name: "project_name", type: "varchar", nullable: true })
|
|
2579
2611
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2580
2612
|
__decorateClass([
|
|
2581
|
-
|
|
2613
|
+
Column21({ name: "start_date", type: "date", nullable: true })
|
|
2582
2614
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2583
2615
|
__decorateClass([
|
|
2584
|
-
|
|
2616
|
+
Column21({ name: "end_date", type: "date", nullable: true })
|
|
2585
2617
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2586
2618
|
__decorateClass([
|
|
2587
|
-
|
|
2619
|
+
Column21({ name: "client_name", type: "varchar", nullable: true })
|
|
2588
2620
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2589
2621
|
__decorateClass([
|
|
2590
|
-
|
|
2622
|
+
Column21({ name: "git_link", type: "varchar", nullable: true })
|
|
2591
2623
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2592
2624
|
__decorateClass([
|
|
2593
|
-
|
|
2625
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2594
2626
|
], FreelancerProject.prototype, "description", 2);
|
|
2595
2627
|
FreelancerProject = __decorateClass([
|
|
2596
|
-
|
|
2628
|
+
Entity20("freelancer_projects")
|
|
2597
2629
|
], FreelancerProject);
|
|
2598
2630
|
|
|
2599
2631
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2600
2632
|
import {
|
|
2601
|
-
Entity as
|
|
2602
|
-
Column as
|
|
2603
|
-
Index as
|
|
2604
|
-
ManyToOne as
|
|
2605
|
-
JoinColumn as
|
|
2633
|
+
Entity as Entity21,
|
|
2634
|
+
Column as Column22,
|
|
2635
|
+
Index as Index15,
|
|
2636
|
+
ManyToOne as ManyToOne19,
|
|
2637
|
+
JoinColumn as JoinColumn19
|
|
2606
2638
|
} from "typeorm";
|
|
2607
2639
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2608
2640
|
};
|
|
2609
2641
|
// individual index to find case study by user
|
|
2610
2642
|
__decorateClass([
|
|
2611
|
-
|
|
2612
|
-
|
|
2643
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2644
|
+
Index15()
|
|
2613
2645
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2614
2646
|
__decorateClass([
|
|
2615
|
-
|
|
2616
|
-
|
|
2647
|
+
ManyToOne19(() => User, (user) => user.freelancerCaseStudy),
|
|
2648
|
+
JoinColumn19({ name: "user_id" })
|
|
2617
2649
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2618
2650
|
__decorateClass([
|
|
2619
|
-
|
|
2651
|
+
Column22({ name: "project_name", type: "varchar", nullable: true })
|
|
2620
2652
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2621
2653
|
__decorateClass([
|
|
2622
|
-
|
|
2654
|
+
Column22({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2623
2655
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2624
2656
|
__decorateClass([
|
|
2625
|
-
|
|
2657
|
+
Column22({ name: "description", type: "varchar", nullable: true })
|
|
2626
2658
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2627
2659
|
FreelancerCaseStudy = __decorateClass([
|
|
2628
|
-
|
|
2660
|
+
Entity21("freelancer_case_studies")
|
|
2629
2661
|
], FreelancerCaseStudy);
|
|
2630
2662
|
|
|
2631
2663
|
// src/entities/freelancer-skill.entity.ts
|
|
2632
2664
|
import {
|
|
2633
|
-
Entity as
|
|
2634
|
-
Column as
|
|
2635
|
-
Index as
|
|
2636
|
-
ManyToOne as
|
|
2637
|
-
JoinColumn as
|
|
2665
|
+
Entity as Entity22,
|
|
2666
|
+
Column as Column23,
|
|
2667
|
+
Index as Index16,
|
|
2668
|
+
ManyToOne as ManyToOne20,
|
|
2669
|
+
JoinColumn as JoinColumn20
|
|
2638
2670
|
} from "typeorm";
|
|
2639
2671
|
var FreelancerSkill = class extends BaseEntity {
|
|
2640
2672
|
};
|
|
2641
2673
|
// individual index to find core skills by user
|
|
2642
2674
|
__decorateClass([
|
|
2643
|
-
|
|
2644
|
-
|
|
2675
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2676
|
+
Index16()
|
|
2645
2677
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2646
2678
|
__decorateClass([
|
|
2647
|
-
|
|
2648
|
-
|
|
2679
|
+
ManyToOne20(() => User, (user) => user.freelancerSkills),
|
|
2680
|
+
JoinColumn20({ name: "user_id" })
|
|
2649
2681
|
], FreelancerSkill.prototype, "user", 2);
|
|
2650
2682
|
__decorateClass([
|
|
2651
|
-
|
|
2683
|
+
Column23({ name: "skill_name", type: "varchar", nullable: true })
|
|
2652
2684
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2653
2685
|
FreelancerSkill = __decorateClass([
|
|
2654
|
-
|
|
2686
|
+
Entity22("freelancer_skills")
|
|
2655
2687
|
], FreelancerSkill);
|
|
2656
2688
|
|
|
2657
2689
|
// src/entities/freelancer-tool.entity.ts
|
|
2658
2690
|
import {
|
|
2659
|
-
Entity as
|
|
2660
|
-
Column as
|
|
2661
|
-
Index as
|
|
2662
|
-
ManyToOne as
|
|
2663
|
-
JoinColumn as
|
|
2691
|
+
Entity as Entity23,
|
|
2692
|
+
Column as Column24,
|
|
2693
|
+
Index as Index17,
|
|
2694
|
+
ManyToOne as ManyToOne21,
|
|
2695
|
+
JoinColumn as JoinColumn21
|
|
2664
2696
|
} from "typeorm";
|
|
2665
2697
|
var FreelancerTool = class extends BaseEntity {
|
|
2666
2698
|
};
|
|
2667
2699
|
// individual index to find tool by user
|
|
2668
2700
|
__decorateClass([
|
|
2669
|
-
|
|
2670
|
-
|
|
2701
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
2702
|
+
Index17()
|
|
2671
2703
|
], FreelancerTool.prototype, "userId", 2);
|
|
2672
2704
|
__decorateClass([
|
|
2673
|
-
|
|
2674
|
-
|
|
2705
|
+
ManyToOne21(() => User, (user) => user.freelancerTool),
|
|
2706
|
+
JoinColumn21({ name: "user_id" })
|
|
2675
2707
|
], FreelancerTool.prototype, "user", 2);
|
|
2676
2708
|
__decorateClass([
|
|
2677
|
-
|
|
2709
|
+
Column24({ name: "tool_name", type: "varchar", nullable: true })
|
|
2678
2710
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2679
2711
|
FreelancerTool = __decorateClass([
|
|
2680
|
-
|
|
2712
|
+
Entity23("freelancer_tools")
|
|
2681
2713
|
], FreelancerTool);
|
|
2682
2714
|
|
|
2683
2715
|
// src/entities/freelancer-framework.entity.ts
|
|
2684
2716
|
import {
|
|
2685
|
-
Entity as
|
|
2686
|
-
Column as
|
|
2687
|
-
Index as
|
|
2688
|
-
ManyToOne as
|
|
2689
|
-
JoinColumn as
|
|
2717
|
+
Entity as Entity24,
|
|
2718
|
+
Column as Column25,
|
|
2719
|
+
Index as Index18,
|
|
2720
|
+
ManyToOne as ManyToOne22,
|
|
2721
|
+
JoinColumn as JoinColumn22
|
|
2690
2722
|
} from "typeorm";
|
|
2691
2723
|
var FreelancerFramework = class extends BaseEntity {
|
|
2692
2724
|
};
|
|
2693
2725
|
// individual index to find framework by user
|
|
2694
2726
|
__decorateClass([
|
|
2695
|
-
|
|
2696
|
-
|
|
2727
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
2728
|
+
Index18()
|
|
2697
2729
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2698
2730
|
__decorateClass([
|
|
2699
|
-
|
|
2700
|
-
|
|
2731
|
+
ManyToOne22(() => User, (user) => user.freelancerFramework),
|
|
2732
|
+
JoinColumn22({ name: "user_id" })
|
|
2701
2733
|
], FreelancerFramework.prototype, "user", 2);
|
|
2702
2734
|
__decorateClass([
|
|
2703
|
-
|
|
2735
|
+
Column25({ name: "framework_name", type: "varchar", nullable: true })
|
|
2704
2736
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2705
2737
|
FreelancerFramework = __decorateClass([
|
|
2706
|
-
|
|
2738
|
+
Entity24("freelancer_frameworks")
|
|
2707
2739
|
], FreelancerFramework);
|
|
2708
2740
|
|
|
2709
2741
|
// src/entities/freelancer-assessment.entity.ts
|
|
2710
2742
|
import {
|
|
2711
|
-
Entity as
|
|
2712
|
-
Column as
|
|
2713
|
-
Index as
|
|
2714
|
-
ManyToOne as
|
|
2715
|
-
JoinColumn as
|
|
2743
|
+
Entity as Entity25,
|
|
2744
|
+
Column as Column26,
|
|
2745
|
+
Index as Index19,
|
|
2746
|
+
ManyToOne as ManyToOne23,
|
|
2747
|
+
JoinColumn as JoinColumn23
|
|
2716
2748
|
} from "typeorm";
|
|
2717
2749
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2718
2750
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2729,30 +2761,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2729
2761
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2730
2762
|
};
|
|
2731
2763
|
__decorateClass([
|
|
2732
|
-
|
|
2733
|
-
|
|
2764
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
2765
|
+
Index19()
|
|
2734
2766
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2735
2767
|
__decorateClass([
|
|
2736
|
-
|
|
2737
|
-
|
|
2768
|
+
ManyToOne23(() => User, (user) => user.assessments),
|
|
2769
|
+
JoinColumn23({ name: "user_id" })
|
|
2738
2770
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2739
2771
|
__decorateClass([
|
|
2740
|
-
|
|
2772
|
+
Column26({ name: "interview_id", type: "varchar", nullable: true })
|
|
2741
2773
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2742
2774
|
__decorateClass([
|
|
2743
|
-
|
|
2775
|
+
Column26({ name: "interview_link", type: "text", nullable: true })
|
|
2744
2776
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2745
2777
|
__decorateClass([
|
|
2746
|
-
|
|
2778
|
+
Column26({ name: "recording_link", type: "text", nullable: true })
|
|
2747
2779
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2748
2780
|
__decorateClass([
|
|
2749
|
-
|
|
2781
|
+
Column26({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2750
2782
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2751
2783
|
__decorateClass([
|
|
2752
|
-
|
|
2784
|
+
Column26({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2753
2785
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2754
2786
|
__decorateClass([
|
|
2755
|
-
|
|
2787
|
+
Column26({
|
|
2756
2788
|
name: "status",
|
|
2757
2789
|
type: "enum",
|
|
2758
2790
|
enum: AssessmentStatusEnum,
|
|
@@ -2760,16 +2792,16 @@ __decorateClass([
|
|
|
2760
2792
|
})
|
|
2761
2793
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2762
2794
|
FreelancerAssessment = __decorateClass([
|
|
2763
|
-
|
|
2795
|
+
Entity25("freelancer_assessments")
|
|
2764
2796
|
], FreelancerAssessment);
|
|
2765
2797
|
|
|
2766
2798
|
// src/entities/freelancer-declaration.entity.ts
|
|
2767
2799
|
import {
|
|
2768
|
-
Entity as
|
|
2769
|
-
Column as
|
|
2770
|
-
Index as
|
|
2771
|
-
ManyToOne as
|
|
2772
|
-
JoinColumn as
|
|
2800
|
+
Entity as Entity26,
|
|
2801
|
+
Column as Column27,
|
|
2802
|
+
Index as Index20,
|
|
2803
|
+
ManyToOne as ManyToOne24,
|
|
2804
|
+
JoinColumn as JoinColumn24
|
|
2773
2805
|
} from "typeorm";
|
|
2774
2806
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2775
2807
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2782,15 +2814,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2782
2814
|
};
|
|
2783
2815
|
// individual index to find declaration by user
|
|
2784
2816
|
__decorateClass([
|
|
2785
|
-
|
|
2786
|
-
|
|
2817
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
2818
|
+
Index20()
|
|
2787
2819
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2788
2820
|
__decorateClass([
|
|
2789
|
-
|
|
2790
|
-
|
|
2821
|
+
ManyToOne24(() => User, (user) => user.freelancerDeclaration),
|
|
2822
|
+
JoinColumn24({ name: "user_id" })
|
|
2791
2823
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2792
2824
|
__decorateClass([
|
|
2793
|
-
|
|
2825
|
+
Column27({
|
|
2794
2826
|
name: "document_type",
|
|
2795
2827
|
type: "enum",
|
|
2796
2828
|
enum: DocumentType,
|
|
@@ -2798,175 +2830,175 @@ __decorateClass([
|
|
|
2798
2830
|
})
|
|
2799
2831
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2800
2832
|
__decorateClass([
|
|
2801
|
-
|
|
2833
|
+
Column27({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2802
2834
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2803
2835
|
__decorateClass([
|
|
2804
|
-
|
|
2836
|
+
Column27({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2805
2837
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2806
2838
|
__decorateClass([
|
|
2807
|
-
|
|
2839
|
+
Column27({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2808
2840
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2809
2841
|
__decorateClass([
|
|
2810
|
-
|
|
2842
|
+
Column27({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2811
2843
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2812
2844
|
FreelancerDeclaration = __decorateClass([
|
|
2813
|
-
|
|
2845
|
+
Entity26("freelancer_declaration")
|
|
2814
2846
|
], FreelancerDeclaration);
|
|
2815
2847
|
|
|
2816
2848
|
// src/entities/company-members-roles.entity.ts
|
|
2817
2849
|
import {
|
|
2818
|
-
Column as
|
|
2819
|
-
Entity as
|
|
2820
|
-
ManyToOne as
|
|
2821
|
-
JoinColumn as
|
|
2822
|
-
Index as
|
|
2850
|
+
Column as Column31,
|
|
2851
|
+
Entity as Entity30,
|
|
2852
|
+
ManyToOne as ManyToOne27,
|
|
2853
|
+
JoinColumn as JoinColumn27,
|
|
2854
|
+
Index as Index24
|
|
2823
2855
|
} from "typeorm";
|
|
2824
2856
|
|
|
2825
2857
|
// src/entities/company-role.entity.ts
|
|
2826
2858
|
import {
|
|
2827
|
-
Column as
|
|
2828
|
-
Entity as
|
|
2829
|
-
Index as
|
|
2830
|
-
JoinColumn as
|
|
2831
|
-
ManyToOne as
|
|
2859
|
+
Column as Column30,
|
|
2860
|
+
Entity as Entity29,
|
|
2861
|
+
Index as Index23,
|
|
2862
|
+
JoinColumn as JoinColumn26,
|
|
2863
|
+
ManyToOne as ManyToOne26,
|
|
2832
2864
|
OneToMany as OneToMany9
|
|
2833
2865
|
} from "typeorm";
|
|
2834
2866
|
|
|
2835
2867
|
// src/entities/company-role-permission.entity.ts
|
|
2836
2868
|
import {
|
|
2837
|
-
Column as
|
|
2838
|
-
Entity as
|
|
2839
|
-
ManyToOne as
|
|
2840
|
-
JoinColumn as
|
|
2841
|
-
Index as
|
|
2869
|
+
Column as Column29,
|
|
2870
|
+
Entity as Entity28,
|
|
2871
|
+
ManyToOne as ManyToOne25,
|
|
2872
|
+
JoinColumn as JoinColumn25,
|
|
2873
|
+
Index as Index22
|
|
2842
2874
|
} from "typeorm";
|
|
2843
2875
|
|
|
2844
2876
|
// src/entities/permission.entity.ts
|
|
2845
|
-
import { Column as
|
|
2877
|
+
import { Column as Column28, Entity as Entity27, Index as Index21 } from "typeorm";
|
|
2846
2878
|
var Permission = class extends BaseEntity {
|
|
2847
2879
|
};
|
|
2848
2880
|
__decorateClass([
|
|
2849
|
-
|
|
2881
|
+
Column28({ name: "name", type: "varchar", nullable: true })
|
|
2850
2882
|
], Permission.prototype, "name", 2);
|
|
2851
2883
|
__decorateClass([
|
|
2852
|
-
|
|
2853
|
-
|
|
2884
|
+
Column28({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2885
|
+
Index21()
|
|
2854
2886
|
], Permission.prototype, "slug", 2);
|
|
2855
2887
|
__decorateClass([
|
|
2856
|
-
|
|
2888
|
+
Column28({ name: "description", type: "text", nullable: true })
|
|
2857
2889
|
], Permission.prototype, "description", 2);
|
|
2858
2890
|
__decorateClass([
|
|
2859
|
-
|
|
2891
|
+
Column28({ name: "is_active", type: "boolean", default: true })
|
|
2860
2892
|
], Permission.prototype, "isActive", 2);
|
|
2861
2893
|
Permission = __decorateClass([
|
|
2862
|
-
|
|
2894
|
+
Entity27("permissions")
|
|
2863
2895
|
], Permission);
|
|
2864
2896
|
|
|
2865
2897
|
// src/entities/company-role-permission.entity.ts
|
|
2866
2898
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2867
2899
|
};
|
|
2868
2900
|
__decorateClass([
|
|
2869
|
-
|
|
2870
|
-
|
|
2901
|
+
Column29({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2902
|
+
Index22()
|
|
2871
2903
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2872
2904
|
__decorateClass([
|
|
2873
|
-
|
|
2905
|
+
ManyToOne25(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2874
2906
|
onDelete: "CASCADE"
|
|
2875
2907
|
}),
|
|
2876
|
-
|
|
2908
|
+
JoinColumn25({ name: "company_role_id" })
|
|
2877
2909
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2878
2910
|
__decorateClass([
|
|
2879
|
-
|
|
2880
|
-
|
|
2911
|
+
Column29({ name: "permission_id", type: "integer" }),
|
|
2912
|
+
Index22()
|
|
2881
2913
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2882
2914
|
__decorateClass([
|
|
2883
|
-
|
|
2884
|
-
|
|
2915
|
+
ManyToOne25(() => Permission, { onDelete: "CASCADE" }),
|
|
2916
|
+
JoinColumn25({ name: "permission_id" })
|
|
2885
2917
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2886
2918
|
__decorateClass([
|
|
2887
|
-
|
|
2919
|
+
Column29({ name: "assigned_by", type: "integer", nullable: true })
|
|
2888
2920
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2889
2921
|
CompanyRolePermission = __decorateClass([
|
|
2890
|
-
|
|
2922
|
+
Entity28("company_role_permissions")
|
|
2891
2923
|
], CompanyRolePermission);
|
|
2892
2924
|
|
|
2893
2925
|
// src/entities/company-role.entity.ts
|
|
2894
2926
|
var CompanyRole = class extends BaseEntity {
|
|
2895
2927
|
};
|
|
2896
2928
|
__decorateClass([
|
|
2897
|
-
|
|
2898
|
-
|
|
2929
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
2930
|
+
Index23()
|
|
2899
2931
|
], CompanyRole.prototype, "userId", 2);
|
|
2900
2932
|
__decorateClass([
|
|
2901
|
-
|
|
2902
|
-
|
|
2933
|
+
ManyToOne26(() => User, (user) => user.otps),
|
|
2934
|
+
JoinColumn26({ name: "user_id" })
|
|
2903
2935
|
], CompanyRole.prototype, "user", 2);
|
|
2904
2936
|
__decorateClass([
|
|
2905
|
-
|
|
2937
|
+
Column30({ name: "name", type: "varchar" })
|
|
2906
2938
|
], CompanyRole.prototype, "name", 2);
|
|
2907
2939
|
__decorateClass([
|
|
2908
|
-
|
|
2909
|
-
|
|
2940
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2941
|
+
Index23()
|
|
2910
2942
|
], CompanyRole.prototype, "slug", 2);
|
|
2911
2943
|
__decorateClass([
|
|
2912
|
-
|
|
2944
|
+
Column30({ name: "description", type: "text", nullable: true })
|
|
2913
2945
|
], CompanyRole.prototype, "description", 2);
|
|
2914
2946
|
__decorateClass([
|
|
2915
|
-
|
|
2947
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
2916
2948
|
], CompanyRole.prototype, "isActive", 2);
|
|
2917
2949
|
__decorateClass([
|
|
2918
2950
|
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2919
2951
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2920
2952
|
CompanyRole = __decorateClass([
|
|
2921
|
-
|
|
2953
|
+
Entity29("company_roles")
|
|
2922
2954
|
], CompanyRole);
|
|
2923
2955
|
|
|
2924
2956
|
// src/entities/company-members-roles.entity.ts
|
|
2925
2957
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2926
2958
|
};
|
|
2927
2959
|
__decorateClass([
|
|
2928
|
-
|
|
2929
|
-
|
|
2960
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
2961
|
+
Index24()
|
|
2930
2962
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2931
2963
|
__decorateClass([
|
|
2932
|
-
|
|
2933
|
-
|
|
2964
|
+
ManyToOne27(() => User),
|
|
2965
|
+
JoinColumn27({ name: "user_id" })
|
|
2934
2966
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2935
2967
|
__decorateClass([
|
|
2936
|
-
|
|
2937
|
-
|
|
2968
|
+
ManyToOne27(() => CompanyRole),
|
|
2969
|
+
JoinColumn27({ name: "company_role_id" })
|
|
2938
2970
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2939
2971
|
__decorateClass([
|
|
2940
|
-
|
|
2941
|
-
|
|
2972
|
+
Column31({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2973
|
+
Index24()
|
|
2942
2974
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2943
2975
|
__decorateClass([
|
|
2944
|
-
|
|
2976
|
+
Column31({ name: "assigned_by", type: "integer", nullable: true })
|
|
2945
2977
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2946
2978
|
CompanyMemberRole = __decorateClass([
|
|
2947
|
-
|
|
2979
|
+
Entity30("company_member_roles")
|
|
2948
2980
|
], CompanyMemberRole);
|
|
2949
2981
|
|
|
2950
2982
|
// src/entities/assessment-answer.entity.ts
|
|
2951
2983
|
import {
|
|
2952
|
-
Entity as
|
|
2953
|
-
Column as
|
|
2954
|
-
ManyToOne as
|
|
2955
|
-
Index as
|
|
2956
|
-
JoinColumn as
|
|
2984
|
+
Entity as Entity33,
|
|
2985
|
+
Column as Column34,
|
|
2986
|
+
ManyToOne as ManyToOne29,
|
|
2987
|
+
Index as Index26,
|
|
2988
|
+
JoinColumn as JoinColumn29
|
|
2957
2989
|
} from "typeorm";
|
|
2958
2990
|
|
|
2959
2991
|
// src/entities/assessment-question.entity.ts
|
|
2960
|
-
import { Entity as
|
|
2992
|
+
import { Entity as Entity32, Column as Column33, OneToMany as OneToMany11 } from "typeorm";
|
|
2961
2993
|
|
|
2962
2994
|
// src/entities/assessment-question-option.entity.ts
|
|
2963
2995
|
import {
|
|
2964
|
-
Entity as
|
|
2965
|
-
Column as
|
|
2996
|
+
Entity as Entity31,
|
|
2997
|
+
Column as Column32,
|
|
2966
2998
|
OneToMany as OneToMany10,
|
|
2967
|
-
ManyToOne as
|
|
2968
|
-
Index as
|
|
2969
|
-
JoinColumn as
|
|
2999
|
+
ManyToOne as ManyToOne28,
|
|
3000
|
+
Index as Index25,
|
|
3001
|
+
JoinColumn as JoinColumn28
|
|
2970
3002
|
} from "typeorm";
|
|
2971
3003
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2972
3004
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -2977,21 +3009,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2977
3009
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2978
3010
|
};
|
|
2979
3011
|
__decorateClass([
|
|
2980
|
-
|
|
2981
|
-
|
|
3012
|
+
Column32({ name: "question_id", type: "integer", nullable: true }),
|
|
3013
|
+
Index25()
|
|
2982
3014
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2983
3015
|
__decorateClass([
|
|
2984
|
-
|
|
3016
|
+
ManyToOne28(
|
|
2985
3017
|
() => AssessmetQuestion,
|
|
2986
3018
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2987
3019
|
),
|
|
2988
|
-
|
|
3020
|
+
JoinColumn28({ name: "question_id" })
|
|
2989
3021
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2990
3022
|
__decorateClass([
|
|
2991
|
-
|
|
3023
|
+
Column32({ name: "text", type: "varchar", nullable: true })
|
|
2992
3024
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2993
3025
|
__decorateClass([
|
|
2994
|
-
|
|
3026
|
+
Column32({
|
|
2995
3027
|
name: "answer_type",
|
|
2996
3028
|
type: "enum",
|
|
2997
3029
|
enum: AnswerTypeEnum,
|
|
@@ -2999,13 +3031,13 @@ __decorateClass([
|
|
|
2999
3031
|
})
|
|
3000
3032
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3001
3033
|
__decorateClass([
|
|
3002
|
-
|
|
3034
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
3003
3035
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3004
3036
|
__decorateClass([
|
|
3005
3037
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3006
3038
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3007
3039
|
AssessmetQuestionOption = __decorateClass([
|
|
3008
|
-
|
|
3040
|
+
Entity31("assessment_question_options")
|
|
3009
3041
|
], AssessmetQuestionOption);
|
|
3010
3042
|
|
|
3011
3043
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3017,10 +3049,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3017
3049
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3018
3050
|
};
|
|
3019
3051
|
__decorateClass([
|
|
3020
|
-
|
|
3052
|
+
Column33({ name: "text", type: "varchar", nullable: true })
|
|
3021
3053
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3022
3054
|
__decorateClass([
|
|
3023
|
-
|
|
3055
|
+
Column33({
|
|
3024
3056
|
name: "question_for",
|
|
3025
3057
|
type: "enum",
|
|
3026
3058
|
enum: QuestionForEnum,
|
|
@@ -3028,7 +3060,7 @@ __decorateClass([
|
|
|
3028
3060
|
})
|
|
3029
3061
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3030
3062
|
__decorateClass([
|
|
3031
|
-
|
|
3063
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3032
3064
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3033
3065
|
__decorateClass([
|
|
3034
3066
|
OneToMany11(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3037,7 +3069,7 @@ __decorateClass([
|
|
|
3037
3069
|
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3038
3070
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3039
3071
|
AssessmetQuestion = __decorateClass([
|
|
3040
|
-
|
|
3072
|
+
Entity32("assessment_questions")
|
|
3041
3073
|
], AssessmetQuestion);
|
|
3042
3074
|
|
|
3043
3075
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3050,67 +3082,67 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3050
3082
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3051
3083
|
};
|
|
3052
3084
|
__decorateClass([
|
|
3053
|
-
|
|
3054
|
-
|
|
3085
|
+
Column34({ name: "user_id", type: "integer" }),
|
|
3086
|
+
Index26()
|
|
3055
3087
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3056
3088
|
__decorateClass([
|
|
3057
|
-
|
|
3058
|
-
|
|
3089
|
+
ManyToOne29(() => User, (user) => user.assessmentAnswers),
|
|
3090
|
+
JoinColumn29({ name: "user_id" })
|
|
3059
3091
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3060
3092
|
__decorateClass([
|
|
3061
|
-
|
|
3062
|
-
|
|
3093
|
+
Column34({ name: "question_id", type: "integer" }),
|
|
3094
|
+
Index26()
|
|
3063
3095
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3064
3096
|
__decorateClass([
|
|
3065
|
-
|
|
3097
|
+
ManyToOne29(
|
|
3066
3098
|
() => AssessmetQuestion,
|
|
3067
3099
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3068
3100
|
),
|
|
3069
|
-
|
|
3101
|
+
JoinColumn29({ name: "question_id" })
|
|
3070
3102
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3071
3103
|
__decorateClass([
|
|
3072
|
-
|
|
3073
|
-
|
|
3104
|
+
Column34({ name: "selected_option_id", type: "integer" }),
|
|
3105
|
+
Index26()
|
|
3074
3106
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3075
3107
|
__decorateClass([
|
|
3076
|
-
|
|
3108
|
+
ManyToOne29(
|
|
3077
3109
|
() => AssessmetQuestionOption,
|
|
3078
3110
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3079
3111
|
),
|
|
3080
|
-
|
|
3112
|
+
JoinColumn29({ name: "selected_option_id" })
|
|
3081
3113
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3082
3114
|
__decorateClass([
|
|
3083
|
-
|
|
3115
|
+
Column34({
|
|
3084
3116
|
name: "selected_answer_type",
|
|
3085
3117
|
type: "enum",
|
|
3086
3118
|
enum: SelectedAnswerTypeEnum
|
|
3087
3119
|
})
|
|
3088
3120
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3089
3121
|
__decorateClass([
|
|
3090
|
-
|
|
3122
|
+
Column34({ name: "score", type: "float" })
|
|
3091
3123
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3092
3124
|
AssessmentAnswer = __decorateClass([
|
|
3093
|
-
|
|
3125
|
+
Entity33("assessment_answers")
|
|
3094
3126
|
], AssessmentAnswer);
|
|
3095
3127
|
|
|
3096
3128
|
// src/entities/company-skill.entity.ts
|
|
3097
|
-
import { Entity as
|
|
3129
|
+
import { Entity as Entity34, Column as Column35, Index as Index27, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
|
|
3098
3130
|
var CompanySkill = class extends BaseEntity {
|
|
3099
3131
|
};
|
|
3100
3132
|
// individual index to find core skills by user
|
|
3101
3133
|
__decorateClass([
|
|
3102
|
-
|
|
3103
|
-
|
|
3134
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3135
|
+
Index27()
|
|
3104
3136
|
], CompanySkill.prototype, "userId", 2);
|
|
3105
3137
|
__decorateClass([
|
|
3106
|
-
|
|
3107
|
-
|
|
3138
|
+
ManyToOne30(() => User, (user) => user.freelancerSkills),
|
|
3139
|
+
JoinColumn30({ name: "user_id" })
|
|
3108
3140
|
], CompanySkill.prototype, "user", 2);
|
|
3109
3141
|
__decorateClass([
|
|
3110
|
-
|
|
3142
|
+
Column35({ name: "skill_name", type: "varchar", nullable: true })
|
|
3111
3143
|
], CompanySkill.prototype, "skillName", 2);
|
|
3112
3144
|
CompanySkill = __decorateClass([
|
|
3113
|
-
|
|
3145
|
+
Entity34("company_skills")
|
|
3114
3146
|
], CompanySkill);
|
|
3115
3147
|
|
|
3116
3148
|
// src/entities/user.entity.ts
|
|
@@ -3138,51 +3170,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3138
3170
|
var User = class extends BaseEntity {
|
|
3139
3171
|
};
|
|
3140
3172
|
__decorateClass([
|
|
3141
|
-
|
|
3173
|
+
Column36({ name: "unique_id", type: "varchar", unique: true })
|
|
3142
3174
|
], User.prototype, "uniqueId", 2);
|
|
3143
3175
|
__decorateClass([
|
|
3144
|
-
|
|
3145
|
-
|
|
3176
|
+
Column36({ name: "parent_id", type: "integer", nullable: true }),
|
|
3177
|
+
Index28()
|
|
3146
3178
|
], User.prototype, "parentId", 2);
|
|
3147
3179
|
__decorateClass([
|
|
3148
|
-
|
|
3149
|
-
|
|
3180
|
+
ManyToOne31(() => User, (user) => user.children, { nullable: true }),
|
|
3181
|
+
JoinColumn31({ name: "parent_id" })
|
|
3150
3182
|
], User.prototype, "parent", 2);
|
|
3151
3183
|
__decorateClass([
|
|
3152
3184
|
OneToMany13(() => User, (user) => user.parent)
|
|
3153
3185
|
], User.prototype, "children", 2);
|
|
3154
3186
|
__decorateClass([
|
|
3155
|
-
|
|
3187
|
+
Column36({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3156
3188
|
], User.prototype, "username", 2);
|
|
3157
3189
|
__decorateClass([
|
|
3158
|
-
|
|
3190
|
+
Column36({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3159
3191
|
], User.prototype, "firstName", 2);
|
|
3160
3192
|
__decorateClass([
|
|
3161
|
-
|
|
3193
|
+
Column36({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3162
3194
|
], User.prototype, "lastName", 2);
|
|
3163
3195
|
__decorateClass([
|
|
3164
|
-
|
|
3196
|
+
Column36({ name: "date_of_birth", type: "date", nullable: true })
|
|
3165
3197
|
], User.prototype, "dateOfBirth", 2);
|
|
3166
3198
|
__decorateClass([
|
|
3167
|
-
|
|
3199
|
+
Column36({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3168
3200
|
], User.prototype, "gender", 2);
|
|
3169
3201
|
__decorateClass([
|
|
3170
|
-
|
|
3202
|
+
Column36({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3171
3203
|
], User.prototype, "profilePictureUrl", 2);
|
|
3172
3204
|
__decorateClass([
|
|
3173
|
-
|
|
3205
|
+
Column36({ name: "email", type: "varchar", unique: true })
|
|
3174
3206
|
], User.prototype, "email", 2);
|
|
3175
3207
|
__decorateClass([
|
|
3176
|
-
|
|
3208
|
+
Column36({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3177
3209
|
], User.prototype, "mobileCode", 2);
|
|
3178
3210
|
__decorateClass([
|
|
3179
|
-
|
|
3211
|
+
Column36({ name: "mobile", type: "varchar", nullable: true })
|
|
3180
3212
|
], User.prototype, "mobile", 2);
|
|
3181
3213
|
__decorateClass([
|
|
3182
|
-
|
|
3214
|
+
Column36({ name: "password", type: "varchar", nullable: true })
|
|
3183
3215
|
], User.prototype, "password", 2);
|
|
3184
3216
|
__decorateClass([
|
|
3185
|
-
|
|
3217
|
+
Column36({
|
|
3186
3218
|
name: "account_type",
|
|
3187
3219
|
type: "enum",
|
|
3188
3220
|
enum: AccountType,
|
|
@@ -3190,7 +3222,7 @@ __decorateClass([
|
|
|
3190
3222
|
})
|
|
3191
3223
|
], User.prototype, "accountType", 2);
|
|
3192
3224
|
__decorateClass([
|
|
3193
|
-
|
|
3225
|
+
Column36({
|
|
3194
3226
|
name: "account_status",
|
|
3195
3227
|
type: "enum",
|
|
3196
3228
|
enum: AccountStatus,
|
|
@@ -3198,26 +3230,26 @@ __decorateClass([
|
|
|
3198
3230
|
})
|
|
3199
3231
|
], User.prototype, "accountStatus", 2);
|
|
3200
3232
|
__decorateClass([
|
|
3201
|
-
|
|
3233
|
+
Column36({ name: "is_email_verified", type: "boolean", default: false })
|
|
3202
3234
|
], User.prototype, "isEmailVerified", 2);
|
|
3203
3235
|
__decorateClass([
|
|
3204
|
-
|
|
3236
|
+
Column36({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3205
3237
|
], User.prototype, "isMobileVerified", 2);
|
|
3206
3238
|
__decorateClass([
|
|
3207
|
-
|
|
3239
|
+
Column36({
|
|
3208
3240
|
name: "last_login_at",
|
|
3209
3241
|
type: "timestamp with time zone",
|
|
3210
3242
|
nullable: true
|
|
3211
3243
|
})
|
|
3212
3244
|
], User.prototype, "lastLoginAt", 2);
|
|
3213
3245
|
__decorateClass([
|
|
3214
|
-
|
|
3246
|
+
Column36({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3215
3247
|
], User.prototype, "lastLoginIp", 2);
|
|
3216
3248
|
__decorateClass([
|
|
3217
|
-
|
|
3249
|
+
Column36({ name: "reset_token", type: "varchar", nullable: true })
|
|
3218
3250
|
], User.prototype, "resetToken", 2);
|
|
3219
3251
|
__decorateClass([
|
|
3220
|
-
|
|
3252
|
+
Column36({
|
|
3221
3253
|
name: "reset_token_expire_at",
|
|
3222
3254
|
type: "timestamp with time zone",
|
|
3223
3255
|
nullable: true
|
|
@@ -3227,7 +3259,7 @@ __decorateClass([
|
|
|
3227
3259
|
OneToMany13(() => RefreshToken, (token) => token.user)
|
|
3228
3260
|
], User.prototype, "refreshTokens", 2);
|
|
3229
3261
|
__decorateClass([
|
|
3230
|
-
|
|
3262
|
+
Column36({
|
|
3231
3263
|
name: "provider",
|
|
3232
3264
|
type: "enum",
|
|
3233
3265
|
enum: Provider,
|
|
@@ -3236,16 +3268,16 @@ __decorateClass([
|
|
|
3236
3268
|
})
|
|
3237
3269
|
], User.prototype, "provider", 2);
|
|
3238
3270
|
__decorateClass([
|
|
3239
|
-
|
|
3271
|
+
Column36({ name: "provider_token", type: "varchar", nullable: true })
|
|
3240
3272
|
], User.prototype, "providerToken", 2);
|
|
3241
3273
|
__decorateClass([
|
|
3242
|
-
|
|
3274
|
+
Column36({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3243
3275
|
], User.prototype, "linkedInId", 2);
|
|
3244
3276
|
__decorateClass([
|
|
3245
|
-
|
|
3277
|
+
Column36({ name: "google_id", type: "varchar", nullable: true })
|
|
3246
3278
|
], User.prototype, "googleId", 2);
|
|
3247
3279
|
__decorateClass([
|
|
3248
|
-
|
|
3280
|
+
Column36({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3249
3281
|
], User.prototype, "gitLabsId", 2);
|
|
3250
3282
|
__decorateClass([
|
|
3251
3283
|
OneToMany13(() => Otp, (otp) => otp.user)
|
|
@@ -3317,7 +3349,7 @@ __decorateClass([
|
|
|
3317
3349
|
OneToMany13(() => Rating, (rating) => rating.reviewee)
|
|
3318
3350
|
], User.prototype, "receivedRatings", 2);
|
|
3319
3351
|
User = __decorateClass([
|
|
3320
|
-
|
|
3352
|
+
Entity35("users")
|
|
3321
3353
|
], User);
|
|
3322
3354
|
|
|
3323
3355
|
// src/entities/rating.entity.ts
|
|
@@ -3329,36 +3361,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3329
3361
|
var Rating = class extends BaseEntity {
|
|
3330
3362
|
};
|
|
3331
3363
|
__decorateClass([
|
|
3332
|
-
|
|
3333
|
-
|
|
3364
|
+
Column37({ name: "reviewer_id", type: "integer" }),
|
|
3365
|
+
Index29()
|
|
3334
3366
|
], Rating.prototype, "reviewer_id", 2);
|
|
3335
3367
|
__decorateClass([
|
|
3336
|
-
|
|
3337
|
-
|
|
3368
|
+
ManyToOne32(() => User, { onDelete: "CASCADE" }),
|
|
3369
|
+
JoinColumn32({ name: "reviewer_id" })
|
|
3338
3370
|
], Rating.prototype, "reviewer", 2);
|
|
3339
3371
|
__decorateClass([
|
|
3340
|
-
|
|
3341
|
-
|
|
3372
|
+
Column37({ name: "reviewee_id", type: "integer" }),
|
|
3373
|
+
Index29()
|
|
3342
3374
|
], Rating.prototype, "reviewee_id", 2);
|
|
3343
3375
|
__decorateClass([
|
|
3344
|
-
|
|
3345
|
-
|
|
3376
|
+
ManyToOne32(() => User, { onDelete: "CASCADE" }),
|
|
3377
|
+
JoinColumn32({ name: "reviewee_id" })
|
|
3346
3378
|
], Rating.prototype, "reviewee", 2);
|
|
3347
3379
|
__decorateClass([
|
|
3348
|
-
|
|
3380
|
+
Column37({
|
|
3349
3381
|
type: "enum",
|
|
3350
3382
|
enum: RatingTypeEnum,
|
|
3351
3383
|
nullable: true
|
|
3352
3384
|
})
|
|
3353
3385
|
], Rating.prototype, "ratingType", 2);
|
|
3354
3386
|
__decorateClass([
|
|
3355
|
-
|
|
3387
|
+
Column37({ type: "integer", nullable: true })
|
|
3356
3388
|
], Rating.prototype, "rating", 2);
|
|
3357
3389
|
__decorateClass([
|
|
3358
|
-
|
|
3390
|
+
Column37({ type: "text", nullable: true })
|
|
3359
3391
|
], Rating.prototype, "review", 2);
|
|
3360
3392
|
Rating = __decorateClass([
|
|
3361
|
-
|
|
3393
|
+
Entity36("ratings")
|
|
3362
3394
|
], Rating);
|
|
3363
3395
|
|
|
3364
3396
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4444,7 +4476,8 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4444
4476
|
adminCountRole: "admin.count.role",
|
|
4445
4477
|
adminCreateRole: "admin.create.role",
|
|
4446
4478
|
adminUpdateRole: "admin.update.role",
|
|
4447
|
-
adminDeleteRole: "admin.delete.role"
|
|
4479
|
+
adminDeleteRole: "admin.delete.role",
|
|
4480
|
+
attachPermissionsToRole: "attach.permissions.to.role"
|
|
4448
4481
|
};
|
|
4449
4482
|
|
|
4450
4483
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
@@ -4477,6 +4510,19 @@ __decorateClass([
|
|
|
4477
4510
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
4478
4511
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4479
4512
|
|
|
4513
|
+
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4514
|
+
import { IsNotEmpty as IsNotEmpty53, IsString as IsString36 } from "class-validator";
|
|
4515
|
+
var AttachPermissionsToRoleDto = class {
|
|
4516
|
+
};
|
|
4517
|
+
__decorateClass([
|
|
4518
|
+
IsNotEmpty53({ message: "Please enter admin role ID." }),
|
|
4519
|
+
IsString36({ message: "Role ID must be a string." })
|
|
4520
|
+
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4521
|
+
__decorateClass([
|
|
4522
|
+
IsNotEmpty53({ message: "Please enter permission IDs." }),
|
|
4523
|
+
IsString36({ message: "Permission IDs must be a comma-separated string." })
|
|
4524
|
+
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4525
|
+
|
|
4480
4526
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4481
4527
|
import { config } from "dotenv";
|
|
4482
4528
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -4694,11 +4740,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4694
4740
|
};
|
|
4695
4741
|
|
|
4696
4742
|
// src/entities/sequence-generator.entity.ts
|
|
4697
|
-
import { Entity as
|
|
4743
|
+
import { Entity as Entity37, Column as Column38 } from "typeorm";
|
|
4698
4744
|
var SequenceGenerator = class extends BaseEntity {
|
|
4699
4745
|
};
|
|
4700
4746
|
__decorateClass([
|
|
4701
|
-
|
|
4747
|
+
Column38({
|
|
4702
4748
|
name: "module",
|
|
4703
4749
|
type: "varchar",
|
|
4704
4750
|
length: 50,
|
|
@@ -4707,7 +4753,7 @@ __decorateClass([
|
|
|
4707
4753
|
})
|
|
4708
4754
|
], SequenceGenerator.prototype, "module", 2);
|
|
4709
4755
|
__decorateClass([
|
|
4710
|
-
|
|
4756
|
+
Column38({
|
|
4711
4757
|
name: "prefix",
|
|
4712
4758
|
type: "varchar",
|
|
4713
4759
|
length: 10,
|
|
@@ -4716,7 +4762,7 @@ __decorateClass([
|
|
|
4716
4762
|
})
|
|
4717
4763
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
4718
4764
|
__decorateClass([
|
|
4719
|
-
|
|
4765
|
+
Column38({
|
|
4720
4766
|
name: "last_sequence",
|
|
4721
4767
|
type: "int",
|
|
4722
4768
|
nullable: false,
|
|
@@ -4724,7 +4770,7 @@ __decorateClass([
|
|
|
4724
4770
|
})
|
|
4725
4771
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
4726
4772
|
__decorateClass([
|
|
4727
|
-
|
|
4773
|
+
Column38({
|
|
4728
4774
|
name: "year",
|
|
4729
4775
|
type: "int",
|
|
4730
4776
|
nullable: true,
|
|
@@ -4732,11 +4778,11 @@ __decorateClass([
|
|
|
4732
4778
|
})
|
|
4733
4779
|
], SequenceGenerator.prototype, "year", 2);
|
|
4734
4780
|
SequenceGenerator = __decorateClass([
|
|
4735
|
-
|
|
4781
|
+
Entity37("sequence_generators")
|
|
4736
4782
|
], SequenceGenerator);
|
|
4737
4783
|
|
|
4738
4784
|
// src/entities/question.entity.ts
|
|
4739
|
-
import { Entity as
|
|
4785
|
+
import { Entity as Entity38, Column as Column39 } from "typeorm";
|
|
4740
4786
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
4741
4787
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
4742
4788
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -4745,16 +4791,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
4745
4791
|
var Question = class extends BaseEntity {
|
|
4746
4792
|
};
|
|
4747
4793
|
__decorateClass([
|
|
4748
|
-
|
|
4794
|
+
Column39({ name: "question", type: "varchar" })
|
|
4749
4795
|
], Question.prototype, "question", 2);
|
|
4750
4796
|
__decorateClass([
|
|
4751
|
-
|
|
4797
|
+
Column39({ name: "hint", type: "varchar", nullable: true })
|
|
4752
4798
|
], Question.prototype, "hint", 2);
|
|
4753
4799
|
__decorateClass([
|
|
4754
|
-
|
|
4800
|
+
Column39({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4755
4801
|
], Question.prototype, "slug", 2);
|
|
4756
4802
|
__decorateClass([
|
|
4757
|
-
|
|
4803
|
+
Column39({
|
|
4758
4804
|
name: "question_for",
|
|
4759
4805
|
type: "enum",
|
|
4760
4806
|
enum: QuestionFor,
|
|
@@ -4762,102 +4808,102 @@ __decorateClass([
|
|
|
4762
4808
|
})
|
|
4763
4809
|
], Question.prototype, "questionFor", 2);
|
|
4764
4810
|
__decorateClass([
|
|
4765
|
-
|
|
4811
|
+
Column39({ name: "type", type: "varchar", nullable: true })
|
|
4766
4812
|
], Question.prototype, "type", 2);
|
|
4767
4813
|
__decorateClass([
|
|
4768
|
-
|
|
4814
|
+
Column39({ name: "options", type: "jsonb", nullable: true })
|
|
4769
4815
|
], Question.prototype, "options", 2);
|
|
4770
4816
|
__decorateClass([
|
|
4771
|
-
|
|
4817
|
+
Column39({ name: "is_active", type: "boolean", default: false })
|
|
4772
4818
|
], Question.prototype, "isActive", 2);
|
|
4773
4819
|
Question = __decorateClass([
|
|
4774
|
-
|
|
4820
|
+
Entity38("questions")
|
|
4775
4821
|
], Question);
|
|
4776
4822
|
|
|
4777
4823
|
// src/entities/job-role.entity.ts
|
|
4778
|
-
import { Entity as
|
|
4824
|
+
import { Entity as Entity39, Column as Column40 } from "typeorm";
|
|
4779
4825
|
var JobRoles = class extends BaseEntity {
|
|
4780
4826
|
};
|
|
4781
4827
|
__decorateClass([
|
|
4782
|
-
|
|
4828
|
+
Column40({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4783
4829
|
], JobRoles.prototype, "slug", 2);
|
|
4784
4830
|
__decorateClass([
|
|
4785
|
-
|
|
4831
|
+
Column40({ name: "name", type: "varchar", nullable: true })
|
|
4786
4832
|
], JobRoles.prototype, "name", 2);
|
|
4787
4833
|
__decorateClass([
|
|
4788
|
-
|
|
4834
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
4789
4835
|
], JobRoles.prototype, "isActive", 2);
|
|
4790
4836
|
JobRoles = __decorateClass([
|
|
4791
|
-
|
|
4837
|
+
Entity39("job_roles")
|
|
4792
4838
|
], JobRoles);
|
|
4793
4839
|
|
|
4794
4840
|
// src/entities/plan.entity.ts
|
|
4795
|
-
import { Entity as
|
|
4841
|
+
import { Entity as Entity41, Column as Column42, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
4796
4842
|
|
|
4797
4843
|
// src/entities/feature.entity.ts
|
|
4798
|
-
import { Entity as
|
|
4844
|
+
import { Entity as Entity40, Column as Column41, ManyToMany as ManyToMany2 } from "typeorm";
|
|
4799
4845
|
var Feature = class extends BaseEntity {
|
|
4800
4846
|
};
|
|
4801
4847
|
__decorateClass([
|
|
4802
|
-
|
|
4848
|
+
Column41({ name: "name", type: "varchar", unique: true })
|
|
4803
4849
|
], Feature.prototype, "name", 2);
|
|
4804
4850
|
__decorateClass([
|
|
4805
4851
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
4806
4852
|
], Feature.prototype, "plans", 2);
|
|
4807
4853
|
Feature = __decorateClass([
|
|
4808
|
-
|
|
4854
|
+
Entity40("features")
|
|
4809
4855
|
], Feature);
|
|
4810
4856
|
|
|
4811
4857
|
// src/entities/plan.entity.ts
|
|
4812
4858
|
var Plan = class extends BaseEntity {
|
|
4813
4859
|
};
|
|
4814
4860
|
__decorateClass([
|
|
4815
|
-
|
|
4861
|
+
Column42({ name: "name", type: "varchar", unique: true })
|
|
4816
4862
|
], Plan.prototype, "name", 2);
|
|
4817
4863
|
__decorateClass([
|
|
4818
|
-
|
|
4864
|
+
Column42({ name: "description", type: "varchar", nullable: true })
|
|
4819
4865
|
], Plan.prototype, "description", 2);
|
|
4820
4866
|
__decorateClass([
|
|
4821
|
-
|
|
4867
|
+
Column42({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4822
4868
|
], Plan.prototype, "price", 2);
|
|
4823
4869
|
__decorateClass([
|
|
4824
|
-
|
|
4870
|
+
Column42({ name: "billing_period", type: "varchar" })
|
|
4825
4871
|
], Plan.prototype, "billingPeriod", 2);
|
|
4826
4872
|
__decorateClass([
|
|
4827
|
-
|
|
4873
|
+
Column42({ name: "is_current", type: "boolean", default: false })
|
|
4828
4874
|
], Plan.prototype, "isCurrent", 2);
|
|
4829
4875
|
__decorateClass([
|
|
4830
4876
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4831
4877
|
JoinTable()
|
|
4832
4878
|
], Plan.prototype, "features", 2);
|
|
4833
4879
|
Plan = __decorateClass([
|
|
4834
|
-
|
|
4880
|
+
Entity41("plans")
|
|
4835
4881
|
], Plan);
|
|
4836
4882
|
|
|
4837
4883
|
// src/entities/cms.entity.ts
|
|
4838
|
-
import { Entity as
|
|
4884
|
+
import { Entity as Entity42, Column as Column43 } from "typeorm";
|
|
4839
4885
|
var Cms = class extends BaseEntity {
|
|
4840
4886
|
};
|
|
4841
4887
|
__decorateClass([
|
|
4842
|
-
|
|
4888
|
+
Column43({ name: "title", type: "varchar", nullable: true })
|
|
4843
4889
|
], Cms.prototype, "title", 2);
|
|
4844
4890
|
__decorateClass([
|
|
4845
|
-
|
|
4891
|
+
Column43({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4846
4892
|
], Cms.prototype, "slug", 2);
|
|
4847
4893
|
__decorateClass([
|
|
4848
|
-
|
|
4894
|
+
Column43({ name: "content", type: "varchar", nullable: true })
|
|
4849
4895
|
], Cms.prototype, "content", 2);
|
|
4850
4896
|
__decorateClass([
|
|
4851
|
-
|
|
4897
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
4852
4898
|
], Cms.prototype, "isActive", 2);
|
|
4853
4899
|
Cms = __decorateClass([
|
|
4854
|
-
|
|
4900
|
+
Entity42("cms")
|
|
4855
4901
|
], Cms);
|
|
4856
4902
|
|
|
4857
4903
|
// src/entities/lead.entity.ts
|
|
4858
4904
|
import {
|
|
4859
|
-
Entity as
|
|
4860
|
-
Column as
|
|
4905
|
+
Entity as Entity43,
|
|
4906
|
+
Column as Column44
|
|
4861
4907
|
} from "typeorm";
|
|
4862
4908
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4863
4909
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -4867,22 +4913,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
4867
4913
|
var Lead = class extends BaseEntity {
|
|
4868
4914
|
};
|
|
4869
4915
|
__decorateClass([
|
|
4870
|
-
|
|
4916
|
+
Column44({ name: "name", type: "varchar", nullable: true })
|
|
4871
4917
|
], Lead.prototype, "name", 2);
|
|
4872
4918
|
__decorateClass([
|
|
4873
|
-
|
|
4919
|
+
Column44({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4874
4920
|
], Lead.prototype, "mobileCode", 2);
|
|
4875
4921
|
__decorateClass([
|
|
4876
|
-
|
|
4922
|
+
Column44({ name: "mobile", type: "varchar", nullable: true })
|
|
4877
4923
|
], Lead.prototype, "mobile", 2);
|
|
4878
4924
|
__decorateClass([
|
|
4879
|
-
|
|
4925
|
+
Column44({ name: "email", type: "varchar", nullable: true })
|
|
4880
4926
|
], Lead.prototype, "email", 2);
|
|
4881
4927
|
__decorateClass([
|
|
4882
|
-
|
|
4928
|
+
Column44({ name: "description", type: "varchar", nullable: true })
|
|
4883
4929
|
], Lead.prototype, "description", 2);
|
|
4884
4930
|
__decorateClass([
|
|
4885
|
-
|
|
4931
|
+
Column44({
|
|
4886
4932
|
name: "category",
|
|
4887
4933
|
type: "enum",
|
|
4888
4934
|
enum: CategoryEmum,
|
|
@@ -4890,7 +4936,7 @@ __decorateClass([
|
|
|
4890
4936
|
})
|
|
4891
4937
|
], Lead.prototype, "category", 2);
|
|
4892
4938
|
Lead = __decorateClass([
|
|
4893
|
-
|
|
4939
|
+
Entity43("leads")
|
|
4894
4940
|
], Lead);
|
|
4895
4941
|
|
|
4896
4942
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -4991,35 +5037,35 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4991
5037
|
], JobFreelancerRecommendation);
|
|
4992
5038
|
|
|
4993
5039
|
// src/entities/admin-role.entity.ts
|
|
4994
|
-
import { Entity as
|
|
5040
|
+
import { Entity as Entity46, Column as Column47, Index as Index32, OneToMany as OneToMany18 } from "typeorm";
|
|
4995
5041
|
|
|
4996
5042
|
// src/entities/admin-role-permission.entity.ts
|
|
4997
|
-
import { Entity as
|
|
5043
|
+
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
4998
5044
|
|
|
4999
5045
|
// src/entities/admin-permission.entity.ts
|
|
5000
|
-
import { Entity as
|
|
5046
|
+
import { Entity as Entity44, Column as Column45, Index as Index30, OneToMany as OneToMany17 } from "typeorm";
|
|
5001
5047
|
var AdminPermission = class extends BaseEntity {
|
|
5002
5048
|
};
|
|
5003
5049
|
__decorateClass([
|
|
5004
|
-
|
|
5050
|
+
Column45({ name: "permission_name", type: "varchar", nullable: true })
|
|
5005
5051
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5006
5052
|
__decorateClass([
|
|
5007
|
-
|
|
5053
|
+
Column45({
|
|
5008
5054
|
name: "permission_slug",
|
|
5009
5055
|
type: "varchar",
|
|
5010
5056
|
unique: true,
|
|
5011
5057
|
nullable: true
|
|
5012
5058
|
}),
|
|
5013
|
-
|
|
5059
|
+
Index30()
|
|
5014
5060
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5015
5061
|
__decorateClass([
|
|
5016
|
-
|
|
5062
|
+
Column45({ name: "permission_description", type: "varchar", nullable: true })
|
|
5017
5063
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5018
5064
|
__decorateClass([
|
|
5019
|
-
|
|
5065
|
+
Column45({ name: "module", type: "varchar", nullable: true })
|
|
5020
5066
|
], AdminPermission.prototype, "module", 2);
|
|
5021
5067
|
__decorateClass([
|
|
5022
|
-
|
|
5068
|
+
Column45({ name: "is_active", type: "boolean", default: true })
|
|
5023
5069
|
], AdminPermission.prototype, "isActive", 2);
|
|
5024
5070
|
__decorateClass([
|
|
5025
5071
|
OneToMany17(
|
|
@@ -5028,14 +5074,14 @@ __decorateClass([
|
|
|
5028
5074
|
)
|
|
5029
5075
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5030
5076
|
AdminPermission = __decorateClass([
|
|
5031
|
-
|
|
5077
|
+
Entity44("admin_permissions")
|
|
5032
5078
|
], AdminPermission);
|
|
5033
5079
|
|
|
5034
5080
|
// src/entities/admin-role-permission.entity.ts
|
|
5035
5081
|
var AdminRolePermission = class extends BaseEntity {
|
|
5036
5082
|
};
|
|
5037
5083
|
__decorateClass([
|
|
5038
|
-
|
|
5084
|
+
Column46({
|
|
5039
5085
|
name: "role_id",
|
|
5040
5086
|
type: "int",
|
|
5041
5087
|
nullable: true,
|
|
@@ -5043,11 +5089,11 @@ __decorateClass([
|
|
|
5043
5089
|
})
|
|
5044
5090
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5045
5091
|
__decorateClass([
|
|
5046
|
-
|
|
5047
|
-
|
|
5092
|
+
ManyToOne33(() => AdminRole),
|
|
5093
|
+
JoinColumn33({ name: "role_id" })
|
|
5048
5094
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5049
5095
|
__decorateClass([
|
|
5050
|
-
|
|
5096
|
+
Column46({
|
|
5051
5097
|
name: "permission_id",
|
|
5052
5098
|
type: "int",
|
|
5053
5099
|
nullable: true,
|
|
@@ -5055,28 +5101,28 @@ __decorateClass([
|
|
|
5055
5101
|
})
|
|
5056
5102
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5057
5103
|
__decorateClass([
|
|
5058
|
-
|
|
5059
|
-
|
|
5104
|
+
ManyToOne33(() => AdminPermission),
|
|
5105
|
+
JoinColumn33({ name: "permission_id" })
|
|
5060
5106
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5061
5107
|
AdminRolePermission = __decorateClass([
|
|
5062
|
-
|
|
5108
|
+
Entity45("admin_role_permissions")
|
|
5063
5109
|
], AdminRolePermission);
|
|
5064
5110
|
|
|
5065
5111
|
// src/entities/admin-role.entity.ts
|
|
5066
5112
|
var AdminRole = class extends BaseEntity {
|
|
5067
5113
|
};
|
|
5068
5114
|
__decorateClass([
|
|
5069
|
-
|
|
5115
|
+
Column47({ name: "role_name", type: "varchar", nullable: true })
|
|
5070
5116
|
], AdminRole.prototype, "roleName", 2);
|
|
5071
5117
|
__decorateClass([
|
|
5072
|
-
|
|
5073
|
-
|
|
5118
|
+
Column47({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5119
|
+
Index32()
|
|
5074
5120
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5075
5121
|
__decorateClass([
|
|
5076
|
-
|
|
5122
|
+
Column47({ name: "role_description", type: "varchar", nullable: true })
|
|
5077
5123
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5078
5124
|
__decorateClass([
|
|
5079
|
-
|
|
5125
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5080
5126
|
], AdminRole.prototype, "isActive", 2);
|
|
5081
5127
|
__decorateClass([
|
|
5082
5128
|
OneToMany18(
|
|
@@ -5085,7 +5131,7 @@ __decorateClass([
|
|
|
5085
5131
|
)
|
|
5086
5132
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5087
5133
|
AdminRole = __decorateClass([
|
|
5088
|
-
|
|
5134
|
+
Entity46("admin_roles")
|
|
5089
5135
|
], AdminRole);
|
|
5090
5136
|
export {
|
|
5091
5137
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -5107,6 +5153,7 @@ export {
|
|
|
5107
5153
|
AssessmentStatusEnum,
|
|
5108
5154
|
AssessmetQuestion,
|
|
5109
5155
|
AssessmetQuestionOption,
|
|
5156
|
+
AttachPermissionsToRoleDto,
|
|
5110
5157
|
BANK_PATTERN,
|
|
5111
5158
|
BankAccountScope,
|
|
5112
5159
|
BankAccountScopeEnum,
|
|
@@ -5189,6 +5236,7 @@ export {
|
|
|
5189
5236
|
FreelancerWorkShowcaseDto,
|
|
5190
5237
|
FromUsOn,
|
|
5191
5238
|
Interview,
|
|
5239
|
+
InterviewQuestion,
|
|
5192
5240
|
InterviewSkill,
|
|
5193
5241
|
InterviewStatusEnum,
|
|
5194
5242
|
JOB_PATTERN,
|