@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.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
AssessmentStatusEnum: () => AssessmentStatusEnum,
|
|
47
47
|
AssessmetQuestion: () => AssessmetQuestion,
|
|
48
48
|
AssessmetQuestionOption: () => AssessmetQuestionOption,
|
|
49
|
+
AttachPermissionsToRoleDto: () => AttachPermissionsToRoleDto,
|
|
49
50
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
50
51
|
BankAccountScope: () => BankAccountScope,
|
|
51
52
|
BankAccountScopeEnum: () => BankAccountScopeEnum,
|
|
@@ -128,6 +129,7 @@ __export(index_exports, {
|
|
|
128
129
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
129
130
|
FromUsOn: () => FromUsOn,
|
|
130
131
|
Interview: () => Interview,
|
|
132
|
+
InterviewQuestion: () => InterviewQuestion,
|
|
131
133
|
InterviewSkill: () => InterviewSkill,
|
|
132
134
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
133
135
|
JOB_PATTERN: () => JOB_PATTERN,
|
|
@@ -909,6 +911,7 @@ var JOB_PATTERN = {
|
|
|
909
911
|
fetchJobCountPublic: "fetch.job.count.public",
|
|
910
912
|
fetchJobsDropdown: "fetch.jobs.dropdown",
|
|
911
913
|
fetchJobDetail: "fetch.job.details",
|
|
914
|
+
fetchJobDetailPublic: "fetch.job.details.public",
|
|
912
915
|
handleJdUpload: "handle.jd.upload",
|
|
913
916
|
fetchJobBasicInformation: "fetch.job.basic.information",
|
|
914
917
|
createJobBasicInformation: "create.job.basic.information",
|
|
@@ -1309,10 +1312,10 @@ var RATING_PATTERN = {
|
|
|
1309
1312
|
var import_class_validator38 = require("class-validator");
|
|
1310
1313
|
|
|
1311
1314
|
// src/entities/rating.entity.ts
|
|
1312
|
-
var
|
|
1315
|
+
var import_typeorm37 = require("typeorm");
|
|
1313
1316
|
|
|
1314
1317
|
// src/entities/user.entity.ts
|
|
1315
|
-
var
|
|
1318
|
+
var import_typeorm36 = require("typeorm");
|
|
1316
1319
|
|
|
1317
1320
|
// src/entities/base.entity.ts
|
|
1318
1321
|
var import_typeorm = require("typeorm");
|
|
@@ -1716,7 +1719,7 @@ __decorateClass([
|
|
|
1716
1719
|
(0, import_typeorm8.Column)({ name: "resume_url", type: "text", nullable: true })
|
|
1717
1720
|
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
1718
1721
|
__decorateClass([
|
|
1719
|
-
(0, import_typeorm8.Column)({ name: "resume_data", type: "
|
|
1722
|
+
(0, import_typeorm8.Column)({ name: "resume_data", type: "text", nullable: true })
|
|
1720
1723
|
], FreelancerProfile.prototype, "resumeData", 2);
|
|
1721
1724
|
__decorateClass([
|
|
1722
1725
|
(0, import_typeorm8.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
@@ -1963,7 +1966,7 @@ CompanyProfile = __decorateClass([
|
|
|
1963
1966
|
], CompanyProfile);
|
|
1964
1967
|
|
|
1965
1968
|
// src/entities/job.entity.ts
|
|
1966
|
-
var
|
|
1969
|
+
var import_typeorm16 = require("typeorm");
|
|
1967
1970
|
|
|
1968
1971
|
// src/entities/job-skill.entity.ts
|
|
1969
1972
|
var import_typeorm11 = require("typeorm");
|
|
@@ -2128,7 +2131,7 @@ JobApplication = __decorateClass([
|
|
|
2128
2131
|
], JobApplication);
|
|
2129
2132
|
|
|
2130
2133
|
// src/entities/interview.entity.ts
|
|
2131
|
-
var
|
|
2134
|
+
var import_typeorm15 = require("typeorm");
|
|
2132
2135
|
|
|
2133
2136
|
// src/entities/interview-skill.entity.ts
|
|
2134
2137
|
var import_typeorm13 = require("typeorm");
|
|
@@ -2157,6 +2160,30 @@ InterviewSkill = __decorateClass([
|
|
|
2157
2160
|
(0, import_typeorm13.Entity)("interview_skills")
|
|
2158
2161
|
], InterviewSkill);
|
|
2159
2162
|
|
|
2163
|
+
// src/entities/interview-question.entity.ts
|
|
2164
|
+
var import_typeorm14 = require("typeorm");
|
|
2165
|
+
var InterviewQuestion = class extends BaseEntity {
|
|
2166
|
+
};
|
|
2167
|
+
__decorateClass([
|
|
2168
|
+
(0, import_typeorm14.Column)({ name: "interview_id", type: "integer" }),
|
|
2169
|
+
(0, import_typeorm14.Index)()
|
|
2170
|
+
], InterviewQuestion.prototype, "interviewId", 2);
|
|
2171
|
+
__decorateClass([
|
|
2172
|
+
(0, import_typeorm14.ManyToOne)(() => Interview, (interview) => interview.interviewSkills, {
|
|
2173
|
+
onDelete: "CASCADE"
|
|
2174
|
+
}),
|
|
2175
|
+
(0, import_typeorm14.JoinColumn)({ name: "interview_id" })
|
|
2176
|
+
], InterviewQuestion.prototype, "interview", 2);
|
|
2177
|
+
__decorateClass([
|
|
2178
|
+
(0, import_typeorm14.Column)({ name: "question", type: "varchar", nullable: true })
|
|
2179
|
+
], InterviewQuestion.prototype, "question", 2);
|
|
2180
|
+
__decorateClass([
|
|
2181
|
+
(0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2182
|
+
], InterviewQuestion.prototype, "isActive", 2);
|
|
2183
|
+
InterviewQuestion = __decorateClass([
|
|
2184
|
+
(0, import_typeorm14.Entity)("interview_questions")
|
|
2185
|
+
], InterviewQuestion);
|
|
2186
|
+
|
|
2160
2187
|
// src/entities/interview.entity.ts
|
|
2161
2188
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2162
2189
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2169,38 +2196,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2169
2196
|
var Interview = class extends BaseEntity {
|
|
2170
2197
|
};
|
|
2171
2198
|
__decorateClass([
|
|
2172
|
-
(0,
|
|
2199
|
+
(0, import_typeorm15.Column)({
|
|
2173
2200
|
name: "interview_id",
|
|
2174
2201
|
type: "varchar",
|
|
2175
2202
|
unique: true,
|
|
2176
2203
|
nullable: true
|
|
2177
2204
|
}),
|
|
2178
|
-
(0,
|
|
2205
|
+
(0, import_typeorm15.Index)()
|
|
2179
2206
|
], Interview.prototype, "interviewId", 2);
|
|
2180
2207
|
__decorateClass([
|
|
2181
|
-
(0,
|
|
2182
|
-
(0,
|
|
2208
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2209
|
+
(0, import_typeorm15.Index)()
|
|
2183
2210
|
], Interview.prototype, "userId", 2);
|
|
2184
2211
|
__decorateClass([
|
|
2185
|
-
(0,
|
|
2186
|
-
(0,
|
|
2212
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.interviews),
|
|
2213
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2187
2214
|
], Interview.prototype, "user", 2);
|
|
2188
2215
|
__decorateClass([
|
|
2189
|
-
(0,
|
|
2216
|
+
(0, import_typeorm15.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2190
2217
|
], Interview.prototype, "interviewName", 2);
|
|
2191
2218
|
__decorateClass([
|
|
2192
|
-
(0,
|
|
2193
|
-
(0,
|
|
2219
|
+
(0, import_typeorm15.Column)({ name: "job_id", type: "integer" }),
|
|
2220
|
+
(0, import_typeorm15.Index)()
|
|
2194
2221
|
], Interview.prototype, "jobId", 2);
|
|
2195
2222
|
__decorateClass([
|
|
2196
|
-
(0,
|
|
2197
|
-
(0,
|
|
2223
|
+
(0, import_typeorm15.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2224
|
+
(0, import_typeorm15.JoinColumn)({ name: "job_id" })
|
|
2198
2225
|
], Interview.prototype, "job", 2);
|
|
2199
2226
|
__decorateClass([
|
|
2200
|
-
(0,
|
|
2227
|
+
(0, import_typeorm15.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2201
2228
|
], Interview.prototype, "interviewType", 2);
|
|
2202
2229
|
__decorateClass([
|
|
2203
|
-
(0,
|
|
2230
|
+
(0, import_typeorm15.Column)({
|
|
2204
2231
|
name: "status",
|
|
2205
2232
|
type: "enum",
|
|
2206
2233
|
enum: InterviewStatusEnum,
|
|
@@ -2208,14 +2235,21 @@ __decorateClass([
|
|
|
2208
2235
|
})
|
|
2209
2236
|
], Interview.prototype, "status", 2);
|
|
2210
2237
|
__decorateClass([
|
|
2211
|
-
(0,
|
|
2238
|
+
(0, import_typeorm15.OneToMany)(
|
|
2212
2239
|
() => InterviewSkill,
|
|
2213
2240
|
(interviewSkill) => interviewSkill.interview,
|
|
2214
2241
|
{ cascade: true }
|
|
2215
2242
|
)
|
|
2216
2243
|
], Interview.prototype, "interviewSkills", 2);
|
|
2244
|
+
__decorateClass([
|
|
2245
|
+
(0, import_typeorm15.OneToMany)(
|
|
2246
|
+
() => InterviewQuestion,
|
|
2247
|
+
(interviewQuestion) => interviewQuestion.interview,
|
|
2248
|
+
{ cascade: true }
|
|
2249
|
+
)
|
|
2250
|
+
], Interview.prototype, "interviewQuestions", 2);
|
|
2217
2251
|
Interview = __decorateClass([
|
|
2218
|
-
(0,
|
|
2252
|
+
(0, import_typeorm15.Entity)("interviews")
|
|
2219
2253
|
], Interview);
|
|
2220
2254
|
|
|
2221
2255
|
// src/entities/job.entity.ts
|
|
@@ -2255,49 +2289,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2255
2289
|
var Job = class extends BaseEntity {
|
|
2256
2290
|
};
|
|
2257
2291
|
__decorateClass([
|
|
2258
|
-
(0,
|
|
2292
|
+
(0, import_typeorm16.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2259
2293
|
], Job.prototype, "jobId", 2);
|
|
2260
2294
|
// individual index to find jobs by user
|
|
2261
2295
|
__decorateClass([
|
|
2262
|
-
(0,
|
|
2263
|
-
(0,
|
|
2296
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2297
|
+
(0, import_typeorm16.Index)()
|
|
2264
2298
|
], Job.prototype, "userId", 2);
|
|
2265
2299
|
__decorateClass([
|
|
2266
|
-
(0,
|
|
2267
|
-
(0,
|
|
2300
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.jobs),
|
|
2301
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2268
2302
|
], Job.prototype, "user", 2);
|
|
2269
2303
|
__decorateClass([
|
|
2270
|
-
(0,
|
|
2304
|
+
(0, import_typeorm16.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2271
2305
|
], Job.prototype, "countryId", 2);
|
|
2272
2306
|
__decorateClass([
|
|
2273
|
-
(0,
|
|
2274
|
-
(0,
|
|
2307
|
+
(0, import_typeorm16.ManyToOne)(() => Country),
|
|
2308
|
+
(0, import_typeorm16.JoinColumn)({ name: "country_id" })
|
|
2275
2309
|
], Job.prototype, "country", 2);
|
|
2276
2310
|
__decorateClass([
|
|
2277
|
-
(0,
|
|
2311
|
+
(0, import_typeorm16.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2278
2312
|
], Job.prototype, "stateId", 2);
|
|
2279
2313
|
__decorateClass([
|
|
2280
|
-
(0,
|
|
2281
|
-
(0,
|
|
2314
|
+
(0, import_typeorm16.ManyToOne)(() => State),
|
|
2315
|
+
(0, import_typeorm16.JoinColumn)({ name: "state_id" })
|
|
2282
2316
|
], Job.prototype, "state", 2);
|
|
2283
2317
|
__decorateClass([
|
|
2284
|
-
(0,
|
|
2318
|
+
(0, import_typeorm16.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2285
2319
|
], Job.prototype, "cityId", 2);
|
|
2286
2320
|
__decorateClass([
|
|
2287
|
-
(0,
|
|
2288
|
-
(0,
|
|
2321
|
+
(0, import_typeorm16.ManyToOne)(() => City),
|
|
2322
|
+
(0, import_typeorm16.JoinColumn)({ name: "city_id" })
|
|
2289
2323
|
], Job.prototype, "city", 2);
|
|
2290
2324
|
__decorateClass([
|
|
2291
|
-
(0,
|
|
2325
|
+
(0, import_typeorm16.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2292
2326
|
], Job.prototype, "jobRole", 2);
|
|
2293
2327
|
__decorateClass([
|
|
2294
|
-
(0,
|
|
2328
|
+
(0, import_typeorm16.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2295
2329
|
], Job.prototype, "note", 2);
|
|
2296
2330
|
__decorateClass([
|
|
2297
|
-
(0,
|
|
2331
|
+
(0, import_typeorm16.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2298
2332
|
], Job.prototype, "openings", 2);
|
|
2299
2333
|
__decorateClass([
|
|
2300
|
-
(0,
|
|
2334
|
+
(0, import_typeorm16.Column)({
|
|
2301
2335
|
name: "location",
|
|
2302
2336
|
type: "enum",
|
|
2303
2337
|
enum: JobLocationEnum,
|
|
@@ -2305,7 +2339,7 @@ __decorateClass([
|
|
|
2305
2339
|
})
|
|
2306
2340
|
], Job.prototype, "location", 2);
|
|
2307
2341
|
__decorateClass([
|
|
2308
|
-
(0,
|
|
2342
|
+
(0, import_typeorm16.Column)({
|
|
2309
2343
|
name: "type_of_employment",
|
|
2310
2344
|
type: "enum",
|
|
2311
2345
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2313,10 +2347,10 @@ __decorateClass([
|
|
|
2313
2347
|
})
|
|
2314
2348
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2315
2349
|
__decorateClass([
|
|
2316
|
-
(0,
|
|
2350
|
+
(0, import_typeorm16.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2317
2351
|
], Job.prototype, "currency", 2);
|
|
2318
2352
|
__decorateClass([
|
|
2319
|
-
(0,
|
|
2353
|
+
(0, import_typeorm16.Column)({
|
|
2320
2354
|
name: "expected_salary_from",
|
|
2321
2355
|
type: "decimal",
|
|
2322
2356
|
precision: 10,
|
|
@@ -2325,7 +2359,7 @@ __decorateClass([
|
|
|
2325
2359
|
})
|
|
2326
2360
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2327
2361
|
__decorateClass([
|
|
2328
|
-
(0,
|
|
2362
|
+
(0, import_typeorm16.Column)({
|
|
2329
2363
|
name: "expected_salary_to",
|
|
2330
2364
|
type: "decimal",
|
|
2331
2365
|
precision: 10,
|
|
@@ -2334,16 +2368,16 @@ __decorateClass([
|
|
|
2334
2368
|
})
|
|
2335
2369
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2336
2370
|
__decorateClass([
|
|
2337
|
-
(0,
|
|
2371
|
+
(0, import_typeorm16.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2338
2372
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2339
2373
|
__decorateClass([
|
|
2340
|
-
(0,
|
|
2374
|
+
(0, import_typeorm16.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2341
2375
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2342
2376
|
__decorateClass([
|
|
2343
|
-
(0,
|
|
2377
|
+
(0, import_typeorm16.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2344
2378
|
], Job.prototype, "duration", 2);
|
|
2345
2379
|
__decorateClass([
|
|
2346
|
-
(0,
|
|
2380
|
+
(0, import_typeorm16.Column)({
|
|
2347
2381
|
name: "duration_type",
|
|
2348
2382
|
type: "enum",
|
|
2349
2383
|
enum: DurationTypeEnum,
|
|
@@ -2351,13 +2385,13 @@ __decorateClass([
|
|
|
2351
2385
|
})
|
|
2352
2386
|
], Job.prototype, "durationType", 2);
|
|
2353
2387
|
__decorateClass([
|
|
2354
|
-
(0,
|
|
2388
|
+
(0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2355
2389
|
], Job.prototype, "description", 2);
|
|
2356
2390
|
__decorateClass([
|
|
2357
|
-
(0,
|
|
2391
|
+
(0, import_typeorm16.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2358
2392
|
], Job.prototype, "additionalComment", 2);
|
|
2359
2393
|
__decorateClass([
|
|
2360
|
-
(0,
|
|
2394
|
+
(0, import_typeorm16.Column)({
|
|
2361
2395
|
name: "onboarding_tat",
|
|
2362
2396
|
type: "varchar",
|
|
2363
2397
|
length: 50,
|
|
@@ -2365,14 +2399,14 @@ __decorateClass([
|
|
|
2365
2399
|
})
|
|
2366
2400
|
], Job.prototype, "onboardingTat", 2);
|
|
2367
2401
|
__decorateClass([
|
|
2368
|
-
(0,
|
|
2402
|
+
(0, import_typeorm16.Column)({
|
|
2369
2403
|
name: "candidate_communication_skills",
|
|
2370
2404
|
type: "varchar",
|
|
2371
2405
|
nullable: true
|
|
2372
2406
|
})
|
|
2373
2407
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2374
2408
|
__decorateClass([
|
|
2375
|
-
(0,
|
|
2409
|
+
(0, import_typeorm16.Column)({
|
|
2376
2410
|
name: "step_completed",
|
|
2377
2411
|
type: "enum",
|
|
2378
2412
|
enum: Step,
|
|
@@ -2380,7 +2414,7 @@ __decorateClass([
|
|
|
2380
2414
|
})
|
|
2381
2415
|
], Job.prototype, "stepCompleted", 2);
|
|
2382
2416
|
__decorateClass([
|
|
2383
|
-
(0,
|
|
2417
|
+
(0, import_typeorm16.Column)({
|
|
2384
2418
|
name: "status",
|
|
2385
2419
|
type: "enum",
|
|
2386
2420
|
enum: JobStatusEnum,
|
|
@@ -2388,30 +2422,30 @@ __decorateClass([
|
|
|
2388
2422
|
})
|
|
2389
2423
|
], Job.prototype, "status", 2);
|
|
2390
2424
|
__decorateClass([
|
|
2391
|
-
(0,
|
|
2425
|
+
(0, import_typeorm16.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2392
2426
|
], Job.prototype, "viewedCount", 2);
|
|
2393
2427
|
__decorateClass([
|
|
2394
|
-
(0,
|
|
2428
|
+
(0, import_typeorm16.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2395
2429
|
], Job.prototype, "applicationCount", 2);
|
|
2396
2430
|
__decorateClass([
|
|
2397
|
-
(0,
|
|
2431
|
+
(0, import_typeorm16.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2398
2432
|
], Job.prototype, "jobSkills", 2);
|
|
2399
2433
|
__decorateClass([
|
|
2400
|
-
(0,
|
|
2434
|
+
(0, import_typeorm16.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2401
2435
|
cascade: true
|
|
2402
2436
|
})
|
|
2403
2437
|
], Job.prototype, "jobApplications", 2);
|
|
2404
2438
|
__decorateClass([
|
|
2405
|
-
(0,
|
|
2439
|
+
(0, import_typeorm16.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2406
2440
|
cascade: true
|
|
2407
2441
|
})
|
|
2408
2442
|
], Job.prototype, "interviews", 2);
|
|
2409
2443
|
Job = __decorateClass([
|
|
2410
|
-
(0,
|
|
2444
|
+
(0, import_typeorm16.Entity)("jobs")
|
|
2411
2445
|
], Job);
|
|
2412
2446
|
|
|
2413
2447
|
// src/entities/bank-details.entity.ts
|
|
2414
|
-
var
|
|
2448
|
+
var import_typeorm17 = require("typeorm");
|
|
2415
2449
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2416
2450
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2417
2451
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2426,48 +2460,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2426
2460
|
};
|
|
2427
2461
|
// individual index to find bank details by user
|
|
2428
2462
|
__decorateClass([
|
|
2429
|
-
(0,
|
|
2430
|
-
(0,
|
|
2463
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2464
|
+
(0, import_typeorm17.Index)()
|
|
2431
2465
|
], BankDetail.prototype, "userId", 2);
|
|
2432
2466
|
__decorateClass([
|
|
2433
|
-
(0,
|
|
2434
|
-
(0,
|
|
2467
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2468
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2435
2469
|
], BankDetail.prototype, "user", 2);
|
|
2436
2470
|
__decorateClass([
|
|
2437
|
-
(0,
|
|
2471
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2438
2472
|
], BankDetail.prototype, "name", 2);
|
|
2439
2473
|
__decorateClass([
|
|
2440
|
-
(0,
|
|
2474
|
+
(0, import_typeorm17.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2441
2475
|
], BankDetail.prototype, "mobile", 2);
|
|
2442
2476
|
__decorateClass([
|
|
2443
|
-
(0,
|
|
2477
|
+
(0, import_typeorm17.Column)({ name: "email", type: "varchar", unique: true })
|
|
2444
2478
|
], BankDetail.prototype, "email", 2);
|
|
2445
2479
|
__decorateClass([
|
|
2446
|
-
(0,
|
|
2480
|
+
(0, import_typeorm17.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2447
2481
|
], BankDetail.prototype, "address", 2);
|
|
2448
2482
|
__decorateClass([
|
|
2449
|
-
(0,
|
|
2483
|
+
(0, import_typeorm17.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2450
2484
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2451
2485
|
__decorateClass([
|
|
2452
|
-
(0,
|
|
2486
|
+
(0, import_typeorm17.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2453
2487
|
], BankDetail.prototype, "bankName", 2);
|
|
2454
2488
|
__decorateClass([
|
|
2455
|
-
(0,
|
|
2489
|
+
(0, import_typeorm17.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2456
2490
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2457
2491
|
__decorateClass([
|
|
2458
|
-
(0,
|
|
2492
|
+
(0, import_typeorm17.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2459
2493
|
], BankDetail.prototype, "branchName", 2);
|
|
2460
2494
|
__decorateClass([
|
|
2461
|
-
(0,
|
|
2495
|
+
(0, import_typeorm17.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2462
2496
|
], BankDetail.prototype, "routingNo", 2);
|
|
2463
2497
|
__decorateClass([
|
|
2464
|
-
(0,
|
|
2498
|
+
(0, import_typeorm17.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2465
2499
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2466
2500
|
__decorateClass([
|
|
2467
|
-
(0,
|
|
2501
|
+
(0, import_typeorm17.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2468
2502
|
], BankDetail.prototype, "iban", 2);
|
|
2469
2503
|
__decorateClass([
|
|
2470
|
-
(0,
|
|
2504
|
+
(0, import_typeorm17.Column)({
|
|
2471
2505
|
name: "account_type",
|
|
2472
2506
|
type: "enum",
|
|
2473
2507
|
enum: BankAccountTypeEnum,
|
|
@@ -2475,7 +2509,7 @@ __decorateClass([
|
|
|
2475
2509
|
})
|
|
2476
2510
|
], BankDetail.prototype, "accountType", 2);
|
|
2477
2511
|
__decorateClass([
|
|
2478
|
-
(0,
|
|
2512
|
+
(0, import_typeorm17.Column)({
|
|
2479
2513
|
name: "account_scope",
|
|
2480
2514
|
type: "enum",
|
|
2481
2515
|
enum: BankAccountScopeEnum,
|
|
@@ -2483,210 +2517,210 @@ __decorateClass([
|
|
|
2483
2517
|
})
|
|
2484
2518
|
], BankDetail.prototype, "accountScope", 2);
|
|
2485
2519
|
BankDetail = __decorateClass([
|
|
2486
|
-
(0,
|
|
2520
|
+
(0, import_typeorm17.Entity)("bank_details")
|
|
2487
2521
|
], BankDetail);
|
|
2488
2522
|
|
|
2489
2523
|
// src/entities/system-preference.entity.ts
|
|
2490
|
-
var
|
|
2524
|
+
var import_typeorm18 = require("typeorm");
|
|
2491
2525
|
var SystemPreference = class extends BaseEntity {
|
|
2492
2526
|
};
|
|
2493
2527
|
// individual index to find system preference by user
|
|
2494
2528
|
__decorateClass([
|
|
2495
|
-
(0,
|
|
2496
|
-
(0,
|
|
2529
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2530
|
+
(0, import_typeorm18.Index)()
|
|
2497
2531
|
], SystemPreference.prototype, "userId", 2);
|
|
2498
2532
|
__decorateClass([
|
|
2499
|
-
(0,
|
|
2500
|
-
(0,
|
|
2533
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2534
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2501
2535
|
], SystemPreference.prototype, "user", 2);
|
|
2502
2536
|
__decorateClass([
|
|
2503
|
-
(0,
|
|
2537
|
+
(0, import_typeorm18.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2504
2538
|
], SystemPreference.prototype, "key", 2);
|
|
2505
2539
|
__decorateClass([
|
|
2506
|
-
(0,
|
|
2540
|
+
(0, import_typeorm18.Column)({ name: "value", type: "boolean", default: false })
|
|
2507
2541
|
], SystemPreference.prototype, "value", 2);
|
|
2508
2542
|
SystemPreference = __decorateClass([
|
|
2509
|
-
(0,
|
|
2543
|
+
(0, import_typeorm18.Entity)("system_preferences")
|
|
2510
2544
|
], SystemPreference);
|
|
2511
2545
|
|
|
2512
2546
|
// src/entities/freelancer-experience.entity.ts
|
|
2513
|
-
var
|
|
2547
|
+
var import_typeorm19 = require("typeorm");
|
|
2514
2548
|
var FreelancerExperience = class extends BaseEntity {
|
|
2515
2549
|
};
|
|
2516
2550
|
// individual index to find experence by user
|
|
2517
2551
|
__decorateClass([
|
|
2518
|
-
(0,
|
|
2519
|
-
(0,
|
|
2552
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2553
|
+
(0, import_typeorm19.Index)()
|
|
2520
2554
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2521
2555
|
__decorateClass([
|
|
2522
|
-
(0,
|
|
2523
|
-
(0,
|
|
2556
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2557
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2524
2558
|
], FreelancerExperience.prototype, "user", 2);
|
|
2525
2559
|
__decorateClass([
|
|
2526
|
-
(0,
|
|
2560
|
+
(0, import_typeorm19.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2527
2561
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2528
2562
|
__decorateClass([
|
|
2529
|
-
(0,
|
|
2563
|
+
(0, import_typeorm19.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2530
2564
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2531
2565
|
__decorateClass([
|
|
2532
|
-
(0,
|
|
2566
|
+
(0, import_typeorm19.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2533
2567
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2534
2568
|
__decorateClass([
|
|
2535
|
-
(0,
|
|
2569
|
+
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2536
2570
|
], FreelancerExperience.prototype, "description", 2);
|
|
2537
2571
|
FreelancerExperience = __decorateClass([
|
|
2538
|
-
(0,
|
|
2572
|
+
(0, import_typeorm19.Entity)("freelancer_experiences")
|
|
2539
2573
|
], FreelancerExperience);
|
|
2540
2574
|
|
|
2541
2575
|
// src/entities/freelancer-education.entity.ts
|
|
2542
|
-
var
|
|
2576
|
+
var import_typeorm20 = require("typeorm");
|
|
2543
2577
|
var FreelancerEducation = class extends BaseEntity {
|
|
2544
2578
|
};
|
|
2545
2579
|
// individual index to find education by user
|
|
2546
2580
|
__decorateClass([
|
|
2547
|
-
(0,
|
|
2548
|
-
(0,
|
|
2581
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2582
|
+
(0, import_typeorm20.Index)()
|
|
2549
2583
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2550
2584
|
__decorateClass([
|
|
2551
|
-
(0,
|
|
2552
|
-
(0,
|
|
2585
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2586
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2553
2587
|
], FreelancerEducation.prototype, "user", 2);
|
|
2554
2588
|
__decorateClass([
|
|
2555
|
-
(0,
|
|
2589
|
+
(0, import_typeorm20.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2556
2590
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2557
2591
|
__decorateClass([
|
|
2558
|
-
(0,
|
|
2592
|
+
(0, import_typeorm20.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2559
2593
|
], FreelancerEducation.prototype, "university", 2);
|
|
2560
2594
|
__decorateClass([
|
|
2561
|
-
(0,
|
|
2595
|
+
(0, import_typeorm20.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2562
2596
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2563
2597
|
FreelancerEducation = __decorateClass([
|
|
2564
|
-
(0,
|
|
2598
|
+
(0, import_typeorm20.Entity)("freelancer_educations")
|
|
2565
2599
|
], FreelancerEducation);
|
|
2566
2600
|
|
|
2567
2601
|
// src/entities/freelancer-project.entity.ts
|
|
2568
|
-
var
|
|
2602
|
+
var import_typeorm21 = require("typeorm");
|
|
2569
2603
|
var FreelancerProject = class extends BaseEntity {
|
|
2570
2604
|
};
|
|
2571
2605
|
// individual index to find project by user
|
|
2572
2606
|
__decorateClass([
|
|
2573
|
-
(0,
|
|
2574
|
-
(0,
|
|
2607
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2608
|
+
(0, import_typeorm21.Index)()
|
|
2575
2609
|
], FreelancerProject.prototype, "userId", 2);
|
|
2576
2610
|
__decorateClass([
|
|
2577
|
-
(0,
|
|
2578
|
-
(0,
|
|
2611
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2612
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2579
2613
|
], FreelancerProject.prototype, "user", 2);
|
|
2580
2614
|
__decorateClass([
|
|
2581
|
-
(0,
|
|
2615
|
+
(0, import_typeorm21.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2582
2616
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2583
2617
|
__decorateClass([
|
|
2584
|
-
(0,
|
|
2618
|
+
(0, import_typeorm21.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2585
2619
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2586
2620
|
__decorateClass([
|
|
2587
|
-
(0,
|
|
2621
|
+
(0, import_typeorm21.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2588
2622
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2589
2623
|
__decorateClass([
|
|
2590
|
-
(0,
|
|
2624
|
+
(0, import_typeorm21.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2591
2625
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2592
2626
|
__decorateClass([
|
|
2593
|
-
(0,
|
|
2627
|
+
(0, import_typeorm21.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2594
2628
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2595
2629
|
__decorateClass([
|
|
2596
|
-
(0,
|
|
2630
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2597
2631
|
], FreelancerProject.prototype, "description", 2);
|
|
2598
2632
|
FreelancerProject = __decorateClass([
|
|
2599
|
-
(0,
|
|
2633
|
+
(0, import_typeorm21.Entity)("freelancer_projects")
|
|
2600
2634
|
], FreelancerProject);
|
|
2601
2635
|
|
|
2602
2636
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2603
|
-
var
|
|
2637
|
+
var import_typeorm22 = require("typeorm");
|
|
2604
2638
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2605
2639
|
};
|
|
2606
2640
|
// individual index to find case study by user
|
|
2607
2641
|
__decorateClass([
|
|
2608
|
-
(0,
|
|
2609
|
-
(0,
|
|
2642
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2643
|
+
(0, import_typeorm22.Index)()
|
|
2610
2644
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2611
2645
|
__decorateClass([
|
|
2612
|
-
(0,
|
|
2613
|
-
(0,
|
|
2646
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2647
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2614
2648
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2615
2649
|
__decorateClass([
|
|
2616
|
-
(0,
|
|
2650
|
+
(0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2617
2651
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2618
2652
|
__decorateClass([
|
|
2619
|
-
(0,
|
|
2653
|
+
(0, import_typeorm22.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2620
2654
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2621
2655
|
__decorateClass([
|
|
2622
|
-
(0,
|
|
2656
|
+
(0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2623
2657
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2624
2658
|
FreelancerCaseStudy = __decorateClass([
|
|
2625
|
-
(0,
|
|
2659
|
+
(0, import_typeorm22.Entity)("freelancer_case_studies")
|
|
2626
2660
|
], FreelancerCaseStudy);
|
|
2627
2661
|
|
|
2628
2662
|
// src/entities/freelancer-skill.entity.ts
|
|
2629
|
-
var
|
|
2663
|
+
var import_typeorm23 = require("typeorm");
|
|
2630
2664
|
var FreelancerSkill = class extends BaseEntity {
|
|
2631
2665
|
};
|
|
2632
2666
|
// individual index to find core skills by user
|
|
2633
2667
|
__decorateClass([
|
|
2634
|
-
(0,
|
|
2635
|
-
(0,
|
|
2668
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2669
|
+
(0, import_typeorm23.Index)()
|
|
2636
2670
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2637
2671
|
__decorateClass([
|
|
2638
|
-
(0,
|
|
2639
|
-
(0,
|
|
2672
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
2673
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2640
2674
|
], FreelancerSkill.prototype, "user", 2);
|
|
2641
2675
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2676
|
+
(0, import_typeorm23.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2643
2677
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2644
2678
|
FreelancerSkill = __decorateClass([
|
|
2645
|
-
(0,
|
|
2679
|
+
(0, import_typeorm23.Entity)("freelancer_skills")
|
|
2646
2680
|
], FreelancerSkill);
|
|
2647
2681
|
|
|
2648
2682
|
// src/entities/freelancer-tool.entity.ts
|
|
2649
|
-
var
|
|
2683
|
+
var import_typeorm24 = require("typeorm");
|
|
2650
2684
|
var FreelancerTool = class extends BaseEntity {
|
|
2651
2685
|
};
|
|
2652
2686
|
// individual index to find tool by user
|
|
2653
2687
|
__decorateClass([
|
|
2654
|
-
(0,
|
|
2655
|
-
(0,
|
|
2688
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2689
|
+
(0, import_typeorm24.Index)()
|
|
2656
2690
|
], FreelancerTool.prototype, "userId", 2);
|
|
2657
2691
|
__decorateClass([
|
|
2658
|
-
(0,
|
|
2659
|
-
(0,
|
|
2692
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2693
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2660
2694
|
], FreelancerTool.prototype, "user", 2);
|
|
2661
2695
|
__decorateClass([
|
|
2662
|
-
(0,
|
|
2696
|
+
(0, import_typeorm24.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2663
2697
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2664
2698
|
FreelancerTool = __decorateClass([
|
|
2665
|
-
(0,
|
|
2699
|
+
(0, import_typeorm24.Entity)("freelancer_tools")
|
|
2666
2700
|
], FreelancerTool);
|
|
2667
2701
|
|
|
2668
2702
|
// src/entities/freelancer-framework.entity.ts
|
|
2669
|
-
var
|
|
2703
|
+
var import_typeorm25 = require("typeorm");
|
|
2670
2704
|
var FreelancerFramework = class extends BaseEntity {
|
|
2671
2705
|
};
|
|
2672
2706
|
// individual index to find framework by user
|
|
2673
2707
|
__decorateClass([
|
|
2674
|
-
(0,
|
|
2675
|
-
(0,
|
|
2708
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2709
|
+
(0, import_typeorm25.Index)()
|
|
2676
2710
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2677
2711
|
__decorateClass([
|
|
2678
|
-
(0,
|
|
2679
|
-
(0,
|
|
2712
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
2713
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2680
2714
|
], FreelancerFramework.prototype, "user", 2);
|
|
2681
2715
|
__decorateClass([
|
|
2682
|
-
(0,
|
|
2716
|
+
(0, import_typeorm25.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2683
2717
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2684
2718
|
FreelancerFramework = __decorateClass([
|
|
2685
|
-
(0,
|
|
2719
|
+
(0, import_typeorm25.Entity)("freelancer_frameworks")
|
|
2686
2720
|
], FreelancerFramework);
|
|
2687
2721
|
|
|
2688
2722
|
// src/entities/freelancer-assessment.entity.ts
|
|
2689
|
-
var
|
|
2723
|
+
var import_typeorm26 = require("typeorm");
|
|
2690
2724
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2691
2725
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2692
2726
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2702,30 +2736,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2702
2736
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2703
2737
|
};
|
|
2704
2738
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2706
|
-
(0,
|
|
2739
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2740
|
+
(0, import_typeorm26.Index)()
|
|
2707
2741
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2708
2742
|
__decorateClass([
|
|
2709
|
-
(0,
|
|
2710
|
-
(0,
|
|
2743
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.assessments),
|
|
2744
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2711
2745
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2712
2746
|
__decorateClass([
|
|
2713
|
-
(0,
|
|
2747
|
+
(0, import_typeorm26.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2714
2748
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2715
2749
|
__decorateClass([
|
|
2716
|
-
(0,
|
|
2750
|
+
(0, import_typeorm26.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2717
2751
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2718
2752
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2753
|
+
(0, import_typeorm26.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
2720
2754
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2721
2755
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2756
|
+
(0, import_typeorm26.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2723
2757
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2724
2758
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2759
|
+
(0, import_typeorm26.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2726
2760
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2727
2761
|
__decorateClass([
|
|
2728
|
-
(0,
|
|
2762
|
+
(0, import_typeorm26.Column)({
|
|
2729
2763
|
name: "status",
|
|
2730
2764
|
type: "enum",
|
|
2731
2765
|
enum: AssessmentStatusEnum,
|
|
@@ -2733,11 +2767,11 @@ __decorateClass([
|
|
|
2733
2767
|
})
|
|
2734
2768
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2735
2769
|
FreelancerAssessment = __decorateClass([
|
|
2736
|
-
(0,
|
|
2770
|
+
(0, import_typeorm26.Entity)("freelancer_assessments")
|
|
2737
2771
|
], FreelancerAssessment);
|
|
2738
2772
|
|
|
2739
2773
|
// src/entities/freelancer-declaration.entity.ts
|
|
2740
|
-
var
|
|
2774
|
+
var import_typeorm27 = require("typeorm");
|
|
2741
2775
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2742
2776
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2743
2777
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2749,15 +2783,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2749
2783
|
};
|
|
2750
2784
|
// individual index to find declaration by user
|
|
2751
2785
|
__decorateClass([
|
|
2752
|
-
(0,
|
|
2753
|
-
(0,
|
|
2786
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2787
|
+
(0, import_typeorm27.Index)()
|
|
2754
2788
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2755
2789
|
__decorateClass([
|
|
2756
|
-
(0,
|
|
2757
|
-
(0,
|
|
2790
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
2791
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
2758
2792
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2759
2793
|
__decorateClass([
|
|
2760
|
-
(0,
|
|
2794
|
+
(0, import_typeorm27.Column)({
|
|
2761
2795
|
name: "document_type",
|
|
2762
2796
|
type: "enum",
|
|
2763
2797
|
enum: DocumentType,
|
|
@@ -2765,144 +2799,144 @@ __decorateClass([
|
|
|
2765
2799
|
})
|
|
2766
2800
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2767
2801
|
__decorateClass([
|
|
2768
|
-
(0,
|
|
2802
|
+
(0, import_typeorm27.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2769
2803
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2770
2804
|
__decorateClass([
|
|
2771
|
-
(0,
|
|
2805
|
+
(0, import_typeorm27.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2772
2806
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2773
2807
|
__decorateClass([
|
|
2774
|
-
(0,
|
|
2808
|
+
(0, import_typeorm27.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2775
2809
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2776
2810
|
__decorateClass([
|
|
2777
|
-
(0,
|
|
2811
|
+
(0, import_typeorm27.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2778
2812
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2779
2813
|
FreelancerDeclaration = __decorateClass([
|
|
2780
|
-
(0,
|
|
2814
|
+
(0, import_typeorm27.Entity)("freelancer_declaration")
|
|
2781
2815
|
], FreelancerDeclaration);
|
|
2782
2816
|
|
|
2783
2817
|
// src/entities/company-members-roles.entity.ts
|
|
2784
|
-
var
|
|
2818
|
+
var import_typeorm31 = require("typeorm");
|
|
2785
2819
|
|
|
2786
2820
|
// src/entities/company-role.entity.ts
|
|
2787
|
-
var
|
|
2821
|
+
var import_typeorm30 = require("typeorm");
|
|
2788
2822
|
|
|
2789
2823
|
// src/entities/company-role-permission.entity.ts
|
|
2790
|
-
var
|
|
2824
|
+
var import_typeorm29 = require("typeorm");
|
|
2791
2825
|
|
|
2792
2826
|
// src/entities/permission.entity.ts
|
|
2793
|
-
var
|
|
2827
|
+
var import_typeorm28 = require("typeorm");
|
|
2794
2828
|
var Permission = class extends BaseEntity {
|
|
2795
2829
|
};
|
|
2796
2830
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2831
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2798
2832
|
], Permission.prototype, "name", 2);
|
|
2799
2833
|
__decorateClass([
|
|
2800
|
-
(0,
|
|
2801
|
-
(0,
|
|
2834
|
+
(0, import_typeorm28.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2835
|
+
(0, import_typeorm28.Index)()
|
|
2802
2836
|
], Permission.prototype, "slug", 2);
|
|
2803
2837
|
__decorateClass([
|
|
2804
|
-
(0,
|
|
2838
|
+
(0, import_typeorm28.Column)({ name: "description", type: "text", nullable: true })
|
|
2805
2839
|
], Permission.prototype, "description", 2);
|
|
2806
2840
|
__decorateClass([
|
|
2807
|
-
(0,
|
|
2841
|
+
(0, import_typeorm28.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2808
2842
|
], Permission.prototype, "isActive", 2);
|
|
2809
2843
|
Permission = __decorateClass([
|
|
2810
|
-
(0,
|
|
2844
|
+
(0, import_typeorm28.Entity)("permissions")
|
|
2811
2845
|
], Permission);
|
|
2812
2846
|
|
|
2813
2847
|
// src/entities/company-role-permission.entity.ts
|
|
2814
2848
|
var CompanyRolePermission = class extends BaseEntity {
|
|
2815
2849
|
};
|
|
2816
2850
|
__decorateClass([
|
|
2817
|
-
(0,
|
|
2818
|
-
(0,
|
|
2851
|
+
(0, import_typeorm29.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2852
|
+
(0, import_typeorm29.Index)()
|
|
2819
2853
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
2820
2854
|
__decorateClass([
|
|
2821
|
-
(0,
|
|
2855
|
+
(0, import_typeorm29.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
2822
2856
|
onDelete: "CASCADE"
|
|
2823
2857
|
}),
|
|
2824
|
-
(0,
|
|
2858
|
+
(0, import_typeorm29.JoinColumn)({ name: "company_role_id" })
|
|
2825
2859
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
2826
2860
|
__decorateClass([
|
|
2827
|
-
(0,
|
|
2828
|
-
(0,
|
|
2861
|
+
(0, import_typeorm29.Column)({ name: "permission_id", type: "integer" }),
|
|
2862
|
+
(0, import_typeorm29.Index)()
|
|
2829
2863
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
2830
2864
|
__decorateClass([
|
|
2831
|
-
(0,
|
|
2832
|
-
(0,
|
|
2865
|
+
(0, import_typeorm29.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
2866
|
+
(0, import_typeorm29.JoinColumn)({ name: "permission_id" })
|
|
2833
2867
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
2834
2868
|
__decorateClass([
|
|
2835
|
-
(0,
|
|
2869
|
+
(0, import_typeorm29.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2836
2870
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
2837
2871
|
CompanyRolePermission = __decorateClass([
|
|
2838
|
-
(0,
|
|
2872
|
+
(0, import_typeorm29.Entity)("company_role_permissions")
|
|
2839
2873
|
], CompanyRolePermission);
|
|
2840
2874
|
|
|
2841
2875
|
// src/entities/company-role.entity.ts
|
|
2842
2876
|
var CompanyRole = class extends BaseEntity {
|
|
2843
2877
|
};
|
|
2844
2878
|
__decorateClass([
|
|
2845
|
-
(0,
|
|
2846
|
-
(0,
|
|
2879
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2880
|
+
(0, import_typeorm30.Index)()
|
|
2847
2881
|
], CompanyRole.prototype, "userId", 2);
|
|
2848
2882
|
__decorateClass([
|
|
2849
|
-
(0,
|
|
2850
|
-
(0,
|
|
2883
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.otps),
|
|
2884
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
2851
2885
|
], CompanyRole.prototype, "user", 2);
|
|
2852
2886
|
__decorateClass([
|
|
2853
|
-
(0,
|
|
2887
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar" })
|
|
2854
2888
|
], CompanyRole.prototype, "name", 2);
|
|
2855
2889
|
__decorateClass([
|
|
2856
|
-
(0,
|
|
2857
|
-
(0,
|
|
2890
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
2891
|
+
(0, import_typeorm30.Index)()
|
|
2858
2892
|
], CompanyRole.prototype, "slug", 2);
|
|
2859
2893
|
__decorateClass([
|
|
2860
|
-
(0,
|
|
2894
|
+
(0, import_typeorm30.Column)({ name: "description", type: "text", nullable: true })
|
|
2861
2895
|
], CompanyRole.prototype, "description", 2);
|
|
2862
2896
|
__decorateClass([
|
|
2863
|
-
(0,
|
|
2897
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2864
2898
|
], CompanyRole.prototype, "isActive", 2);
|
|
2865
2899
|
__decorateClass([
|
|
2866
|
-
(0,
|
|
2900
|
+
(0, import_typeorm30.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
2867
2901
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
2868
2902
|
CompanyRole = __decorateClass([
|
|
2869
|
-
(0,
|
|
2903
|
+
(0, import_typeorm30.Entity)("company_roles")
|
|
2870
2904
|
], CompanyRole);
|
|
2871
2905
|
|
|
2872
2906
|
// src/entities/company-members-roles.entity.ts
|
|
2873
2907
|
var CompanyMemberRole = class extends BaseEntity {
|
|
2874
2908
|
};
|
|
2875
2909
|
__decorateClass([
|
|
2876
|
-
(0,
|
|
2877
|
-
(0,
|
|
2910
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2911
|
+
(0, import_typeorm31.Index)()
|
|
2878
2912
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
2879
2913
|
__decorateClass([
|
|
2880
|
-
(0,
|
|
2881
|
-
(0,
|
|
2914
|
+
(0, import_typeorm31.ManyToOne)(() => User),
|
|
2915
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
2882
2916
|
], CompanyMemberRole.prototype, "user", 2);
|
|
2883
2917
|
__decorateClass([
|
|
2884
|
-
(0,
|
|
2885
|
-
(0,
|
|
2918
|
+
(0, import_typeorm31.ManyToOne)(() => CompanyRole),
|
|
2919
|
+
(0, import_typeorm31.JoinColumn)({ name: "company_role_id" })
|
|
2886
2920
|
], CompanyMemberRole.prototype, "role", 2);
|
|
2887
2921
|
__decorateClass([
|
|
2888
|
-
(0,
|
|
2889
|
-
(0,
|
|
2922
|
+
(0, import_typeorm31.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2923
|
+
(0, import_typeorm31.Index)()
|
|
2890
2924
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
2891
2925
|
__decorateClass([
|
|
2892
|
-
(0,
|
|
2926
|
+
(0, import_typeorm31.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
2893
2927
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
2894
2928
|
CompanyMemberRole = __decorateClass([
|
|
2895
|
-
(0,
|
|
2929
|
+
(0, import_typeorm31.Entity)("company_member_roles")
|
|
2896
2930
|
], CompanyMemberRole);
|
|
2897
2931
|
|
|
2898
2932
|
// src/entities/assessment-answer.entity.ts
|
|
2899
|
-
var
|
|
2933
|
+
var import_typeorm34 = require("typeorm");
|
|
2900
2934
|
|
|
2901
2935
|
// src/entities/assessment-question.entity.ts
|
|
2902
|
-
var
|
|
2936
|
+
var import_typeorm33 = require("typeorm");
|
|
2903
2937
|
|
|
2904
2938
|
// src/entities/assessment-question-option.entity.ts
|
|
2905
|
-
var
|
|
2939
|
+
var import_typeorm32 = require("typeorm");
|
|
2906
2940
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2907
2941
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
2908
2942
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -2912,21 +2946,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
2912
2946
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2913
2947
|
};
|
|
2914
2948
|
__decorateClass([
|
|
2915
|
-
(0,
|
|
2916
|
-
(0,
|
|
2949
|
+
(0, import_typeorm32.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
2950
|
+
(0, import_typeorm32.Index)()
|
|
2917
2951
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2918
2952
|
__decorateClass([
|
|
2919
|
-
(0,
|
|
2953
|
+
(0, import_typeorm32.ManyToOne)(
|
|
2920
2954
|
() => AssessmetQuestion,
|
|
2921
2955
|
(assessmentQuestion) => assessmentQuestion.options
|
|
2922
2956
|
),
|
|
2923
|
-
(0,
|
|
2957
|
+
(0, import_typeorm32.JoinColumn)({ name: "question_id" })
|
|
2924
2958
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2925
2959
|
__decorateClass([
|
|
2926
|
-
(0,
|
|
2960
|
+
(0, import_typeorm32.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2927
2961
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2928
2962
|
__decorateClass([
|
|
2929
|
-
(0,
|
|
2963
|
+
(0, import_typeorm32.Column)({
|
|
2930
2964
|
name: "answer_type",
|
|
2931
2965
|
type: "enum",
|
|
2932
2966
|
enum: AnswerTypeEnum,
|
|
@@ -2934,13 +2968,13 @@ __decorateClass([
|
|
|
2934
2968
|
})
|
|
2935
2969
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2936
2970
|
__decorateClass([
|
|
2937
|
-
(0,
|
|
2971
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2938
2972
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2939
2973
|
__decorateClass([
|
|
2940
|
-
(0,
|
|
2974
|
+
(0, import_typeorm32.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2941
2975
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2942
2976
|
AssessmetQuestionOption = __decorateClass([
|
|
2943
|
-
(0,
|
|
2977
|
+
(0, import_typeorm32.Entity)("assessment_question_options")
|
|
2944
2978
|
], AssessmetQuestionOption);
|
|
2945
2979
|
|
|
2946
2980
|
// src/entities/assessment-question.entity.ts
|
|
@@ -2952,10 +2986,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
2952
2986
|
var AssessmetQuestion = class extends BaseEntity {
|
|
2953
2987
|
};
|
|
2954
2988
|
__decorateClass([
|
|
2955
|
-
(0,
|
|
2989
|
+
(0, import_typeorm33.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2956
2990
|
], AssessmetQuestion.prototype, "text", 2);
|
|
2957
2991
|
__decorateClass([
|
|
2958
|
-
(0,
|
|
2992
|
+
(0, import_typeorm33.Column)({
|
|
2959
2993
|
name: "question_for",
|
|
2960
2994
|
type: "enum",
|
|
2961
2995
|
enum: QuestionForEnum,
|
|
@@ -2963,16 +2997,16 @@ __decorateClass([
|
|
|
2963
2997
|
})
|
|
2964
2998
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2965
2999
|
__decorateClass([
|
|
2966
|
-
(0,
|
|
3000
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2967
3001
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2968
3002
|
__decorateClass([
|
|
2969
|
-
(0,
|
|
3003
|
+
(0, import_typeorm33.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2970
3004
|
], AssessmetQuestion.prototype, "options", 2);
|
|
2971
3005
|
__decorateClass([
|
|
2972
|
-
(0,
|
|
3006
|
+
(0, import_typeorm33.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2973
3007
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
2974
3008
|
AssessmetQuestion = __decorateClass([
|
|
2975
|
-
(0,
|
|
3009
|
+
(0, import_typeorm33.Entity)("assessment_questions")
|
|
2976
3010
|
], AssessmetQuestion);
|
|
2977
3011
|
|
|
2978
3012
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -2985,67 +3019,67 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
2985
3019
|
var AssessmentAnswer = class extends BaseEntity {
|
|
2986
3020
|
};
|
|
2987
3021
|
__decorateClass([
|
|
2988
|
-
(0,
|
|
2989
|
-
(0,
|
|
3022
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer" }),
|
|
3023
|
+
(0, import_typeorm34.Index)()
|
|
2990
3024
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
2991
3025
|
__decorateClass([
|
|
2992
|
-
(0,
|
|
2993
|
-
(0,
|
|
3026
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3027
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
2994
3028
|
], AssessmentAnswer.prototype, "user", 2);
|
|
2995
3029
|
__decorateClass([
|
|
2996
|
-
(0,
|
|
2997
|
-
(0,
|
|
3030
|
+
(0, import_typeorm34.Column)({ name: "question_id", type: "integer" }),
|
|
3031
|
+
(0, import_typeorm34.Index)()
|
|
2998
3032
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2999
3033
|
__decorateClass([
|
|
3000
|
-
(0,
|
|
3034
|
+
(0, import_typeorm34.ManyToOne)(
|
|
3001
3035
|
() => AssessmetQuestion,
|
|
3002
3036
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3003
3037
|
),
|
|
3004
|
-
(0,
|
|
3038
|
+
(0, import_typeorm34.JoinColumn)({ name: "question_id" })
|
|
3005
3039
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3006
3040
|
__decorateClass([
|
|
3007
|
-
(0,
|
|
3008
|
-
(0,
|
|
3041
|
+
(0, import_typeorm34.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3042
|
+
(0, import_typeorm34.Index)()
|
|
3009
3043
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3010
3044
|
__decorateClass([
|
|
3011
|
-
(0,
|
|
3045
|
+
(0, import_typeorm34.ManyToOne)(
|
|
3012
3046
|
() => AssessmetQuestionOption,
|
|
3013
3047
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3014
3048
|
),
|
|
3015
|
-
(0,
|
|
3049
|
+
(0, import_typeorm34.JoinColumn)({ name: "selected_option_id" })
|
|
3016
3050
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3017
3051
|
__decorateClass([
|
|
3018
|
-
(0,
|
|
3052
|
+
(0, import_typeorm34.Column)({
|
|
3019
3053
|
name: "selected_answer_type",
|
|
3020
3054
|
type: "enum",
|
|
3021
3055
|
enum: SelectedAnswerTypeEnum
|
|
3022
3056
|
})
|
|
3023
3057
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3024
3058
|
__decorateClass([
|
|
3025
|
-
(0,
|
|
3059
|
+
(0, import_typeorm34.Column)({ name: "score", type: "float" })
|
|
3026
3060
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3027
3061
|
AssessmentAnswer = __decorateClass([
|
|
3028
|
-
(0,
|
|
3062
|
+
(0, import_typeorm34.Entity)("assessment_answers")
|
|
3029
3063
|
], AssessmentAnswer);
|
|
3030
3064
|
|
|
3031
3065
|
// src/entities/company-skill.entity.ts
|
|
3032
|
-
var
|
|
3066
|
+
var import_typeorm35 = require("typeorm");
|
|
3033
3067
|
var CompanySkill = class extends BaseEntity {
|
|
3034
3068
|
};
|
|
3035
3069
|
// individual index to find core skills by user
|
|
3036
3070
|
__decorateClass([
|
|
3037
|
-
(0,
|
|
3038
|
-
(0,
|
|
3071
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3072
|
+
(0, import_typeorm35.Index)()
|
|
3039
3073
|
], CompanySkill.prototype, "userId", 2);
|
|
3040
3074
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3042
|
-
(0,
|
|
3075
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3076
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3043
3077
|
], CompanySkill.prototype, "user", 2);
|
|
3044
3078
|
__decorateClass([
|
|
3045
|
-
(0,
|
|
3079
|
+
(0, import_typeorm35.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3046
3080
|
], CompanySkill.prototype, "skillName", 2);
|
|
3047
3081
|
CompanySkill = __decorateClass([
|
|
3048
|
-
(0,
|
|
3082
|
+
(0, import_typeorm35.Entity)("company_skills")
|
|
3049
3083
|
], CompanySkill);
|
|
3050
3084
|
|
|
3051
3085
|
// src/entities/user.entity.ts
|
|
@@ -3073,51 +3107,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3073
3107
|
var User = class extends BaseEntity {
|
|
3074
3108
|
};
|
|
3075
3109
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3110
|
+
(0, import_typeorm36.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3077
3111
|
], User.prototype, "uniqueId", 2);
|
|
3078
3112
|
__decorateClass([
|
|
3079
|
-
(0,
|
|
3080
|
-
(0,
|
|
3113
|
+
(0, import_typeorm36.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3114
|
+
(0, import_typeorm36.Index)()
|
|
3081
3115
|
], User.prototype, "parentId", 2);
|
|
3082
3116
|
__decorateClass([
|
|
3083
|
-
(0,
|
|
3084
|
-
(0,
|
|
3117
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3118
|
+
(0, import_typeorm36.JoinColumn)({ name: "parent_id" })
|
|
3085
3119
|
], User.prototype, "parent", 2);
|
|
3086
3120
|
__decorateClass([
|
|
3087
|
-
(0,
|
|
3121
|
+
(0, import_typeorm36.OneToMany)(() => User, (user) => user.parent)
|
|
3088
3122
|
], User.prototype, "children", 2);
|
|
3089
3123
|
__decorateClass([
|
|
3090
|
-
(0,
|
|
3124
|
+
(0, import_typeorm36.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3091
3125
|
], User.prototype, "username", 2);
|
|
3092
3126
|
__decorateClass([
|
|
3093
|
-
(0,
|
|
3127
|
+
(0, import_typeorm36.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3094
3128
|
], User.prototype, "firstName", 2);
|
|
3095
3129
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3130
|
+
(0, import_typeorm36.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3097
3131
|
], User.prototype, "lastName", 2);
|
|
3098
3132
|
__decorateClass([
|
|
3099
|
-
(0,
|
|
3133
|
+
(0, import_typeorm36.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3100
3134
|
], User.prototype, "dateOfBirth", 2);
|
|
3101
3135
|
__decorateClass([
|
|
3102
|
-
(0,
|
|
3136
|
+
(0, import_typeorm36.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3103
3137
|
], User.prototype, "gender", 2);
|
|
3104
3138
|
__decorateClass([
|
|
3105
|
-
(0,
|
|
3139
|
+
(0, import_typeorm36.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3106
3140
|
], User.prototype, "profilePictureUrl", 2);
|
|
3107
3141
|
__decorateClass([
|
|
3108
|
-
(0,
|
|
3142
|
+
(0, import_typeorm36.Column)({ name: "email", type: "varchar", unique: true })
|
|
3109
3143
|
], User.prototype, "email", 2);
|
|
3110
3144
|
__decorateClass([
|
|
3111
|
-
(0,
|
|
3145
|
+
(0, import_typeorm36.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3112
3146
|
], User.prototype, "mobileCode", 2);
|
|
3113
3147
|
__decorateClass([
|
|
3114
|
-
(0,
|
|
3148
|
+
(0, import_typeorm36.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3115
3149
|
], User.prototype, "mobile", 2);
|
|
3116
3150
|
__decorateClass([
|
|
3117
|
-
(0,
|
|
3151
|
+
(0, import_typeorm36.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3118
3152
|
], User.prototype, "password", 2);
|
|
3119
3153
|
__decorateClass([
|
|
3120
|
-
(0,
|
|
3154
|
+
(0, import_typeorm36.Column)({
|
|
3121
3155
|
name: "account_type",
|
|
3122
3156
|
type: "enum",
|
|
3123
3157
|
enum: AccountType,
|
|
@@ -3125,7 +3159,7 @@ __decorateClass([
|
|
|
3125
3159
|
})
|
|
3126
3160
|
], User.prototype, "accountType", 2);
|
|
3127
3161
|
__decorateClass([
|
|
3128
|
-
(0,
|
|
3162
|
+
(0, import_typeorm36.Column)({
|
|
3129
3163
|
name: "account_status",
|
|
3130
3164
|
type: "enum",
|
|
3131
3165
|
enum: AccountStatus,
|
|
@@ -3133,36 +3167,36 @@ __decorateClass([
|
|
|
3133
3167
|
})
|
|
3134
3168
|
], User.prototype, "accountStatus", 2);
|
|
3135
3169
|
__decorateClass([
|
|
3136
|
-
(0,
|
|
3170
|
+
(0, import_typeorm36.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3137
3171
|
], User.prototype, "isEmailVerified", 2);
|
|
3138
3172
|
__decorateClass([
|
|
3139
|
-
(0,
|
|
3173
|
+
(0, import_typeorm36.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3140
3174
|
], User.prototype, "isMobileVerified", 2);
|
|
3141
3175
|
__decorateClass([
|
|
3142
|
-
(0,
|
|
3176
|
+
(0, import_typeorm36.Column)({
|
|
3143
3177
|
name: "last_login_at",
|
|
3144
3178
|
type: "timestamp with time zone",
|
|
3145
3179
|
nullable: true
|
|
3146
3180
|
})
|
|
3147
3181
|
], User.prototype, "lastLoginAt", 2);
|
|
3148
3182
|
__decorateClass([
|
|
3149
|
-
(0,
|
|
3183
|
+
(0, import_typeorm36.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3150
3184
|
], User.prototype, "lastLoginIp", 2);
|
|
3151
3185
|
__decorateClass([
|
|
3152
|
-
(0,
|
|
3186
|
+
(0, import_typeorm36.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3153
3187
|
], User.prototype, "resetToken", 2);
|
|
3154
3188
|
__decorateClass([
|
|
3155
|
-
(0,
|
|
3189
|
+
(0, import_typeorm36.Column)({
|
|
3156
3190
|
name: "reset_token_expire_at",
|
|
3157
3191
|
type: "timestamp with time zone",
|
|
3158
3192
|
nullable: true
|
|
3159
3193
|
})
|
|
3160
3194
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3161
3195
|
__decorateClass([
|
|
3162
|
-
(0,
|
|
3196
|
+
(0, import_typeorm36.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3163
3197
|
], User.prototype, "refreshTokens", 2);
|
|
3164
3198
|
__decorateClass([
|
|
3165
|
-
(0,
|
|
3199
|
+
(0, import_typeorm36.Column)({
|
|
3166
3200
|
name: "provider",
|
|
3167
3201
|
type: "enum",
|
|
3168
3202
|
enum: Provider,
|
|
@@ -3171,88 +3205,88 @@ __decorateClass([
|
|
|
3171
3205
|
})
|
|
3172
3206
|
], User.prototype, "provider", 2);
|
|
3173
3207
|
__decorateClass([
|
|
3174
|
-
(0,
|
|
3208
|
+
(0, import_typeorm36.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3175
3209
|
], User.prototype, "providerToken", 2);
|
|
3176
3210
|
__decorateClass([
|
|
3177
|
-
(0,
|
|
3211
|
+
(0, import_typeorm36.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3178
3212
|
], User.prototype, "linkedInId", 2);
|
|
3179
3213
|
__decorateClass([
|
|
3180
|
-
(0,
|
|
3214
|
+
(0, import_typeorm36.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3181
3215
|
], User.prototype, "googleId", 2);
|
|
3182
3216
|
__decorateClass([
|
|
3183
|
-
(0,
|
|
3217
|
+
(0, import_typeorm36.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3184
3218
|
], User.prototype, "gitLabsId", 2);
|
|
3185
3219
|
__decorateClass([
|
|
3186
|
-
(0,
|
|
3220
|
+
(0, import_typeorm36.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3187
3221
|
], User.prototype, "otps", 2);
|
|
3188
3222
|
__decorateClass([
|
|
3189
|
-
(0,
|
|
3223
|
+
(0, import_typeorm36.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3190
3224
|
], User.prototype, "senseloafLogs", 2);
|
|
3191
3225
|
__decorateClass([
|
|
3192
|
-
(0,
|
|
3226
|
+
(0, import_typeorm36.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
3193
3227
|
], User.prototype, "companyProfile", 2);
|
|
3194
3228
|
__decorateClass([
|
|
3195
|
-
(0,
|
|
3229
|
+
(0, import_typeorm36.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3196
3230
|
], User.prototype, "companySkills", 2);
|
|
3197
3231
|
__decorateClass([
|
|
3198
|
-
(0,
|
|
3232
|
+
(0, import_typeorm36.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3199
3233
|
], User.prototype, "companyMemberRoles", 2);
|
|
3200
3234
|
__decorateClass([
|
|
3201
|
-
(0,
|
|
3235
|
+
(0, import_typeorm36.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3202
3236
|
], User.prototype, "freelancerProfile", 2);
|
|
3203
3237
|
__decorateClass([
|
|
3204
|
-
(0,
|
|
3238
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3205
3239
|
], User.prototype, "assessments", 2);
|
|
3206
3240
|
__decorateClass([
|
|
3207
|
-
(0,
|
|
3241
|
+
(0, import_typeorm36.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3208
3242
|
], User.prototype, "assessmentAnswers", 2);
|
|
3209
3243
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3244
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3211
3245
|
], User.prototype, "freelancerSkills", 2);
|
|
3212
3246
|
__decorateClass([
|
|
3213
|
-
(0,
|
|
3247
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3214
3248
|
], User.prototype, "freelancerExperience", 2);
|
|
3215
3249
|
__decorateClass([
|
|
3216
|
-
(0,
|
|
3250
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3217
3251
|
], User.prototype, "freelancerEducation", 2);
|
|
3218
3252
|
__decorateClass([
|
|
3219
|
-
(0,
|
|
3253
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3220
3254
|
], User.prototype, "freelancerProject", 2);
|
|
3221
3255
|
__decorateClass([
|
|
3222
|
-
(0,
|
|
3256
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3223
3257
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3224
3258
|
__decorateClass([
|
|
3225
|
-
(0,
|
|
3259
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3226
3260
|
], User.prototype, "freelancerTool", 2);
|
|
3227
3261
|
__decorateClass([
|
|
3228
|
-
(0,
|
|
3262
|
+
(0, import_typeorm36.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3229
3263
|
], User.prototype, "freelancerFramework", 2);
|
|
3230
3264
|
__decorateClass([
|
|
3231
|
-
(0,
|
|
3265
|
+
(0, import_typeorm36.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3232
3266
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3233
3267
|
__decorateClass([
|
|
3234
|
-
(0,
|
|
3268
|
+
(0, import_typeorm36.OneToMany)(() => Job, (job) => job.user)
|
|
3235
3269
|
], User.prototype, "jobs", 2);
|
|
3236
3270
|
__decorateClass([
|
|
3237
|
-
(0,
|
|
3271
|
+
(0, import_typeorm36.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3238
3272
|
], User.prototype, "jobApplications", 2);
|
|
3239
3273
|
__decorateClass([
|
|
3240
|
-
(0,
|
|
3274
|
+
(0, import_typeorm36.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3241
3275
|
], User.prototype, "interviews", 2);
|
|
3242
3276
|
__decorateClass([
|
|
3243
|
-
(0,
|
|
3277
|
+
(0, import_typeorm36.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3244
3278
|
], User.prototype, "bankDetail", 2);
|
|
3245
3279
|
__decorateClass([
|
|
3246
|
-
(0,
|
|
3280
|
+
(0, import_typeorm36.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3247
3281
|
], User.prototype, "systemPreference", 2);
|
|
3248
3282
|
__decorateClass([
|
|
3249
|
-
(0,
|
|
3283
|
+
(0, import_typeorm36.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3250
3284
|
], User.prototype, "givenRatings", 2);
|
|
3251
3285
|
__decorateClass([
|
|
3252
|
-
(0,
|
|
3286
|
+
(0, import_typeorm36.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3253
3287
|
], User.prototype, "receivedRatings", 2);
|
|
3254
3288
|
User = __decorateClass([
|
|
3255
|
-
(0,
|
|
3289
|
+
(0, import_typeorm36.Entity)("users")
|
|
3256
3290
|
], User);
|
|
3257
3291
|
|
|
3258
3292
|
// src/entities/rating.entity.ts
|
|
@@ -3264,36 +3298,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3264
3298
|
var Rating = class extends BaseEntity {
|
|
3265
3299
|
};
|
|
3266
3300
|
__decorateClass([
|
|
3267
|
-
(0,
|
|
3268
|
-
(0,
|
|
3301
|
+
(0, import_typeorm37.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3302
|
+
(0, import_typeorm37.Index)()
|
|
3269
3303
|
], Rating.prototype, "reviewer_id", 2);
|
|
3270
3304
|
__decorateClass([
|
|
3271
|
-
(0,
|
|
3272
|
-
(0,
|
|
3305
|
+
(0, import_typeorm37.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3306
|
+
(0, import_typeorm37.JoinColumn)({ name: "reviewer_id" })
|
|
3273
3307
|
], Rating.prototype, "reviewer", 2);
|
|
3274
3308
|
__decorateClass([
|
|
3275
|
-
(0,
|
|
3276
|
-
(0,
|
|
3309
|
+
(0, import_typeorm37.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3310
|
+
(0, import_typeorm37.Index)()
|
|
3277
3311
|
], Rating.prototype, "reviewee_id", 2);
|
|
3278
3312
|
__decorateClass([
|
|
3279
|
-
(0,
|
|
3280
|
-
(0,
|
|
3313
|
+
(0, import_typeorm37.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3314
|
+
(0, import_typeorm37.JoinColumn)({ name: "reviewee_id" })
|
|
3281
3315
|
], Rating.prototype, "reviewee", 2);
|
|
3282
3316
|
__decorateClass([
|
|
3283
|
-
(0,
|
|
3317
|
+
(0, import_typeorm37.Column)({
|
|
3284
3318
|
type: "enum",
|
|
3285
3319
|
enum: RatingTypeEnum,
|
|
3286
3320
|
nullable: true
|
|
3287
3321
|
})
|
|
3288
3322
|
], Rating.prototype, "ratingType", 2);
|
|
3289
3323
|
__decorateClass([
|
|
3290
|
-
(0,
|
|
3324
|
+
(0, import_typeorm37.Column)({ type: "integer", nullable: true })
|
|
3291
3325
|
], Rating.prototype, "rating", 2);
|
|
3292
3326
|
__decorateClass([
|
|
3293
|
-
(0,
|
|
3327
|
+
(0, import_typeorm37.Column)({ type: "text", nullable: true })
|
|
3294
3328
|
], Rating.prototype, "review", 2);
|
|
3295
3329
|
Rating = __decorateClass([
|
|
3296
|
-
(0,
|
|
3330
|
+
(0, import_typeorm37.Entity)("ratings")
|
|
3297
3331
|
], Rating);
|
|
3298
3332
|
|
|
3299
3333
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4302,7 +4336,8 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4302
4336
|
adminCountRole: "admin.count.role",
|
|
4303
4337
|
adminCreateRole: "admin.create.role",
|
|
4304
4338
|
adminUpdateRole: "admin.update.role",
|
|
4305
|
-
adminDeleteRole: "admin.delete.role"
|
|
4339
|
+
adminDeleteRole: "admin.delete.role",
|
|
4340
|
+
attachPermissionsToRole: "attach.permissions.to.role"
|
|
4306
4341
|
};
|
|
4307
4342
|
|
|
4308
4343
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
@@ -4335,6 +4370,19 @@ __decorateClass([
|
|
|
4335
4370
|
(0, import_class_validator61.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4336
4371
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4337
4372
|
|
|
4373
|
+
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4374
|
+
var import_class_validator62 = require("class-validator");
|
|
4375
|
+
var AttachPermissionsToRoleDto = class {
|
|
4376
|
+
};
|
|
4377
|
+
__decorateClass([
|
|
4378
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
4379
|
+
(0, import_class_validator62.IsString)({ message: "Role ID must be a string." })
|
|
4380
|
+
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4381
|
+
__decorateClass([
|
|
4382
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
4383
|
+
(0, import_class_validator62.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
4384
|
+
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4385
|
+
|
|
4338
4386
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4339
4387
|
var import_dotenv = require("dotenv");
|
|
4340
4388
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -4552,11 +4600,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4552
4600
|
};
|
|
4553
4601
|
|
|
4554
4602
|
// src/entities/sequence-generator.entity.ts
|
|
4555
|
-
var
|
|
4603
|
+
var import_typeorm38 = require("typeorm");
|
|
4556
4604
|
var SequenceGenerator = class extends BaseEntity {
|
|
4557
4605
|
};
|
|
4558
4606
|
__decorateClass([
|
|
4559
|
-
(0,
|
|
4607
|
+
(0, import_typeorm38.Column)({
|
|
4560
4608
|
name: "module",
|
|
4561
4609
|
type: "varchar",
|
|
4562
4610
|
length: 50,
|
|
@@ -4565,7 +4613,7 @@ __decorateClass([
|
|
|
4565
4613
|
})
|
|
4566
4614
|
], SequenceGenerator.prototype, "module", 2);
|
|
4567
4615
|
__decorateClass([
|
|
4568
|
-
(0,
|
|
4616
|
+
(0, import_typeorm38.Column)({
|
|
4569
4617
|
name: "prefix",
|
|
4570
4618
|
type: "varchar",
|
|
4571
4619
|
length: 10,
|
|
@@ -4574,7 +4622,7 @@ __decorateClass([
|
|
|
4574
4622
|
})
|
|
4575
4623
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
4576
4624
|
__decorateClass([
|
|
4577
|
-
(0,
|
|
4625
|
+
(0, import_typeorm38.Column)({
|
|
4578
4626
|
name: "last_sequence",
|
|
4579
4627
|
type: "int",
|
|
4580
4628
|
nullable: false,
|
|
@@ -4582,7 +4630,7 @@ __decorateClass([
|
|
|
4582
4630
|
})
|
|
4583
4631
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
4584
4632
|
__decorateClass([
|
|
4585
|
-
(0,
|
|
4633
|
+
(0, import_typeorm38.Column)({
|
|
4586
4634
|
name: "year",
|
|
4587
4635
|
type: "int",
|
|
4588
4636
|
nullable: true,
|
|
@@ -4590,11 +4638,11 @@ __decorateClass([
|
|
|
4590
4638
|
})
|
|
4591
4639
|
], SequenceGenerator.prototype, "year", 2);
|
|
4592
4640
|
SequenceGenerator = __decorateClass([
|
|
4593
|
-
(0,
|
|
4641
|
+
(0, import_typeorm38.Entity)("sequence_generators")
|
|
4594
4642
|
], SequenceGenerator);
|
|
4595
4643
|
|
|
4596
4644
|
// src/entities/question.entity.ts
|
|
4597
|
-
var
|
|
4645
|
+
var import_typeorm39 = require("typeorm");
|
|
4598
4646
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
4599
4647
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
4600
4648
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -4603,16 +4651,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
4603
4651
|
var Question = class extends BaseEntity {
|
|
4604
4652
|
};
|
|
4605
4653
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4654
|
+
(0, import_typeorm39.Column)({ name: "question", type: "varchar" })
|
|
4607
4655
|
], Question.prototype, "question", 2);
|
|
4608
4656
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4657
|
+
(0, import_typeorm39.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
4610
4658
|
], Question.prototype, "hint", 2);
|
|
4611
4659
|
__decorateClass([
|
|
4612
|
-
(0,
|
|
4660
|
+
(0, import_typeorm39.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4613
4661
|
], Question.prototype, "slug", 2);
|
|
4614
4662
|
__decorateClass([
|
|
4615
|
-
(0,
|
|
4663
|
+
(0, import_typeorm39.Column)({
|
|
4616
4664
|
name: "question_for",
|
|
4617
4665
|
type: "enum",
|
|
4618
4666
|
enum: QuestionFor,
|
|
@@ -4620,100 +4668,100 @@ __decorateClass([
|
|
|
4620
4668
|
})
|
|
4621
4669
|
], Question.prototype, "questionFor", 2);
|
|
4622
4670
|
__decorateClass([
|
|
4623
|
-
(0,
|
|
4671
|
+
(0, import_typeorm39.Column)({ name: "type", type: "varchar", nullable: true })
|
|
4624
4672
|
], Question.prototype, "type", 2);
|
|
4625
4673
|
__decorateClass([
|
|
4626
|
-
(0,
|
|
4674
|
+
(0, import_typeorm39.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
4627
4675
|
], Question.prototype, "options", 2);
|
|
4628
4676
|
__decorateClass([
|
|
4629
|
-
(0,
|
|
4677
|
+
(0, import_typeorm39.Column)({ name: "is_active", type: "boolean", default: false })
|
|
4630
4678
|
], Question.prototype, "isActive", 2);
|
|
4631
4679
|
Question = __decorateClass([
|
|
4632
|
-
(0,
|
|
4680
|
+
(0, import_typeorm39.Entity)("questions")
|
|
4633
4681
|
], Question);
|
|
4634
4682
|
|
|
4635
4683
|
// src/entities/job-role.entity.ts
|
|
4636
|
-
var
|
|
4684
|
+
var import_typeorm40 = require("typeorm");
|
|
4637
4685
|
var JobRoles = class extends BaseEntity {
|
|
4638
4686
|
};
|
|
4639
4687
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4688
|
+
(0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4641
4689
|
], JobRoles.prototype, "slug", 2);
|
|
4642
4690
|
__decorateClass([
|
|
4643
|
-
(0,
|
|
4691
|
+
(0, import_typeorm40.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4644
4692
|
], JobRoles.prototype, "name", 2);
|
|
4645
4693
|
__decorateClass([
|
|
4646
|
-
(0,
|
|
4694
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4647
4695
|
], JobRoles.prototype, "isActive", 2);
|
|
4648
4696
|
JobRoles = __decorateClass([
|
|
4649
|
-
(0,
|
|
4697
|
+
(0, import_typeorm40.Entity)("job_roles")
|
|
4650
4698
|
], JobRoles);
|
|
4651
4699
|
|
|
4652
4700
|
// src/entities/plan.entity.ts
|
|
4653
|
-
var
|
|
4701
|
+
var import_typeorm42 = require("typeorm");
|
|
4654
4702
|
|
|
4655
4703
|
// src/entities/feature.entity.ts
|
|
4656
|
-
var
|
|
4704
|
+
var import_typeorm41 = require("typeorm");
|
|
4657
4705
|
var Feature = class extends BaseEntity {
|
|
4658
4706
|
};
|
|
4659
4707
|
__decorateClass([
|
|
4660
|
-
(0,
|
|
4708
|
+
(0, import_typeorm41.Column)({ name: "name", type: "varchar", unique: true })
|
|
4661
4709
|
], Feature.prototype, "name", 2);
|
|
4662
4710
|
__decorateClass([
|
|
4663
|
-
(0,
|
|
4711
|
+
(0, import_typeorm41.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
4664
4712
|
], Feature.prototype, "plans", 2);
|
|
4665
4713
|
Feature = __decorateClass([
|
|
4666
|
-
(0,
|
|
4714
|
+
(0, import_typeorm41.Entity)("features")
|
|
4667
4715
|
], Feature);
|
|
4668
4716
|
|
|
4669
4717
|
// src/entities/plan.entity.ts
|
|
4670
4718
|
var Plan = class extends BaseEntity {
|
|
4671
4719
|
};
|
|
4672
4720
|
__decorateClass([
|
|
4673
|
-
(0,
|
|
4721
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", unique: true })
|
|
4674
4722
|
], Plan.prototype, "name", 2);
|
|
4675
4723
|
__decorateClass([
|
|
4676
|
-
(0,
|
|
4724
|
+
(0, import_typeorm42.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4677
4725
|
], Plan.prototype, "description", 2);
|
|
4678
4726
|
__decorateClass([
|
|
4679
|
-
(0,
|
|
4727
|
+
(0, import_typeorm42.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4680
4728
|
], Plan.prototype, "price", 2);
|
|
4681
4729
|
__decorateClass([
|
|
4682
|
-
(0,
|
|
4730
|
+
(0, import_typeorm42.Column)({ name: "billing_period", type: "varchar" })
|
|
4683
4731
|
], Plan.prototype, "billingPeriod", 2);
|
|
4684
4732
|
__decorateClass([
|
|
4685
|
-
(0,
|
|
4733
|
+
(0, import_typeorm42.Column)({ name: "is_current", type: "boolean", default: false })
|
|
4686
4734
|
], Plan.prototype, "isCurrent", 2);
|
|
4687
4735
|
__decorateClass([
|
|
4688
|
-
(0,
|
|
4689
|
-
(0,
|
|
4736
|
+
(0, import_typeorm42.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4737
|
+
(0, import_typeorm42.JoinTable)()
|
|
4690
4738
|
], Plan.prototype, "features", 2);
|
|
4691
4739
|
Plan = __decorateClass([
|
|
4692
|
-
(0,
|
|
4740
|
+
(0, import_typeorm42.Entity)("plans")
|
|
4693
4741
|
], Plan);
|
|
4694
4742
|
|
|
4695
4743
|
// src/entities/cms.entity.ts
|
|
4696
|
-
var
|
|
4744
|
+
var import_typeorm43 = require("typeorm");
|
|
4697
4745
|
var Cms = class extends BaseEntity {
|
|
4698
4746
|
};
|
|
4699
4747
|
__decorateClass([
|
|
4700
|
-
(0,
|
|
4748
|
+
(0, import_typeorm43.Column)({ name: "title", type: "varchar", nullable: true })
|
|
4701
4749
|
], Cms.prototype, "title", 2);
|
|
4702
4750
|
__decorateClass([
|
|
4703
|
-
(0,
|
|
4751
|
+
(0, import_typeorm43.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4704
4752
|
], Cms.prototype, "slug", 2);
|
|
4705
4753
|
__decorateClass([
|
|
4706
|
-
(0,
|
|
4754
|
+
(0, import_typeorm43.Column)({ name: "content", type: "varchar", nullable: true })
|
|
4707
4755
|
], Cms.prototype, "content", 2);
|
|
4708
4756
|
__decorateClass([
|
|
4709
|
-
(0,
|
|
4757
|
+
(0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4710
4758
|
], Cms.prototype, "isActive", 2);
|
|
4711
4759
|
Cms = __decorateClass([
|
|
4712
|
-
(0,
|
|
4760
|
+
(0, import_typeorm43.Entity)("cms")
|
|
4713
4761
|
], Cms);
|
|
4714
4762
|
|
|
4715
4763
|
// src/entities/lead.entity.ts
|
|
4716
|
-
var
|
|
4764
|
+
var import_typeorm44 = require("typeorm");
|
|
4717
4765
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4718
4766
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
4719
4767
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -4722,22 +4770,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
4722
4770
|
var Lead = class extends BaseEntity {
|
|
4723
4771
|
};
|
|
4724
4772
|
__decorateClass([
|
|
4725
|
-
(0,
|
|
4773
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4726
4774
|
], Lead.prototype, "name", 2);
|
|
4727
4775
|
__decorateClass([
|
|
4728
|
-
(0,
|
|
4776
|
+
(0, import_typeorm44.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4729
4777
|
], Lead.prototype, "mobileCode", 2);
|
|
4730
4778
|
__decorateClass([
|
|
4731
|
-
(0,
|
|
4779
|
+
(0, import_typeorm44.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4732
4780
|
], Lead.prototype, "mobile", 2);
|
|
4733
4781
|
__decorateClass([
|
|
4734
|
-
(0,
|
|
4782
|
+
(0, import_typeorm44.Column)({ name: "email", type: "varchar", nullable: true })
|
|
4735
4783
|
], Lead.prototype, "email", 2);
|
|
4736
4784
|
__decorateClass([
|
|
4737
|
-
(0,
|
|
4785
|
+
(0, import_typeorm44.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4738
4786
|
], Lead.prototype, "description", 2);
|
|
4739
4787
|
__decorateClass([
|
|
4740
|
-
(0,
|
|
4788
|
+
(0, import_typeorm44.Column)({
|
|
4741
4789
|
name: "category",
|
|
4742
4790
|
type: "enum",
|
|
4743
4791
|
enum: CategoryEmum,
|
|
@@ -4745,99 +4793,99 @@ __decorateClass([
|
|
|
4745
4793
|
})
|
|
4746
4794
|
], Lead.prototype, "category", 2);
|
|
4747
4795
|
Lead = __decorateClass([
|
|
4748
|
-
(0,
|
|
4796
|
+
(0, import_typeorm44.Entity)("leads")
|
|
4749
4797
|
], Lead);
|
|
4750
4798
|
|
|
4751
4799
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
4752
|
-
var
|
|
4800
|
+
var import_typeorm45 = require("typeorm");
|
|
4753
4801
|
var JobFreelancerRecommendation = class {
|
|
4754
4802
|
};
|
|
4755
4803
|
__decorateClass([
|
|
4756
|
-
(0,
|
|
4804
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_id" })
|
|
4757
4805
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
4758
4806
|
__decorateClass([
|
|
4759
|
-
(0,
|
|
4807
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_uuid" })
|
|
4760
4808
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
4761
4809
|
__decorateClass([
|
|
4762
|
-
(0,
|
|
4810
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_unique_id" })
|
|
4763
4811
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
4764
4812
|
__decorateClass([
|
|
4765
|
-
(0,
|
|
4813
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_role" })
|
|
4766
4814
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
4767
4815
|
__decorateClass([
|
|
4768
|
-
(0,
|
|
4816
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_openings" })
|
|
4769
4817
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
4770
4818
|
__decorateClass([
|
|
4771
|
-
(0,
|
|
4819
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_location" })
|
|
4772
4820
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
4773
4821
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4822
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_employment_type" })
|
|
4775
4823
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
4776
4824
|
__decorateClass([
|
|
4777
|
-
(0,
|
|
4825
|
+
(0, import_typeorm45.ViewColumn)({ name: "application_received" })
|
|
4778
4826
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
4779
4827
|
__decorateClass([
|
|
4780
|
-
(0,
|
|
4828
|
+
(0, import_typeorm45.ViewColumn)({ name: "job_posted_at" })
|
|
4781
4829
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
4782
4830
|
__decorateClass([
|
|
4783
|
-
(0,
|
|
4831
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_id" })
|
|
4784
4832
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
4785
4833
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4834
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_uuid" })
|
|
4787
4835
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
4788
4836
|
__decorateClass([
|
|
4789
|
-
(0,
|
|
4837
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_unique_id" })
|
|
4790
4838
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
4791
4839
|
__decorateClass([
|
|
4792
|
-
(0,
|
|
4840
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_first_name" })
|
|
4793
4841
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
4794
4842
|
__decorateClass([
|
|
4795
|
-
(0,
|
|
4843
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_last_name" })
|
|
4796
4844
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
4797
4845
|
__decorateClass([
|
|
4798
|
-
(0,
|
|
4846
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelancer_email" })
|
|
4799
4847
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
4800
4848
|
__decorateClass([
|
|
4801
|
-
(0,
|
|
4849
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelacer_profile_picture" })
|
|
4802
4850
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
4803
4851
|
__decorateClass([
|
|
4804
|
-
(0,
|
|
4852
|
+
(0, import_typeorm45.ViewColumn)({ name: "freelacer_created_at" })
|
|
4805
4853
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
4806
4854
|
__decorateClass([
|
|
4807
|
-
(0,
|
|
4855
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_id" })
|
|
4808
4856
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
4809
4857
|
__decorateClass([
|
|
4810
|
-
(0,
|
|
4858
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_uuid" })
|
|
4811
4859
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
4812
4860
|
__decorateClass([
|
|
4813
|
-
(0,
|
|
4861
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_first_name" })
|
|
4814
4862
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
4815
4863
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4864
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_last_name" })
|
|
4817
4865
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
4818
4866
|
__decorateClass([
|
|
4819
|
-
(0,
|
|
4867
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_email" })
|
|
4820
4868
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
4821
4869
|
__decorateClass([
|
|
4822
|
-
(0,
|
|
4870
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_company_logo" })
|
|
4823
4871
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
4824
4872
|
__decorateClass([
|
|
4825
|
-
(0,
|
|
4873
|
+
(0, import_typeorm45.ViewColumn)({ name: "client_company_name" })
|
|
4826
4874
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
4827
4875
|
__decorateClass([
|
|
4828
|
-
(0,
|
|
4876
|
+
(0, import_typeorm45.ViewColumn)({ name: "matching_skills" })
|
|
4829
4877
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
4830
4878
|
__decorateClass([
|
|
4831
|
-
(0,
|
|
4879
|
+
(0, import_typeorm45.ViewColumn)({ name: "matching_skills_count" })
|
|
4832
4880
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
4833
4881
|
__decorateClass([
|
|
4834
|
-
(0,
|
|
4882
|
+
(0, import_typeorm45.ViewColumn)({ name: "required_skills" })
|
|
4835
4883
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
4836
4884
|
__decorateClass([
|
|
4837
|
-
(0,
|
|
4885
|
+
(0, import_typeorm45.ViewColumn)({ name: "required_skills_count" })
|
|
4838
4886
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
4839
4887
|
JobFreelancerRecommendation = __decorateClass([
|
|
4840
|
-
(0,
|
|
4888
|
+
(0, import_typeorm45.ViewEntity)({
|
|
4841
4889
|
name: "job_freelancer_recommendations",
|
|
4842
4890
|
materialized: true,
|
|
4843
4891
|
synchronize: false
|
|
@@ -4846,51 +4894,51 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4846
4894
|
], JobFreelancerRecommendation);
|
|
4847
4895
|
|
|
4848
4896
|
// src/entities/admin-role.entity.ts
|
|
4849
|
-
var
|
|
4897
|
+
var import_typeorm48 = require("typeorm");
|
|
4850
4898
|
|
|
4851
4899
|
// src/entities/admin-role-permission.entity.ts
|
|
4852
|
-
var
|
|
4900
|
+
var import_typeorm47 = require("typeorm");
|
|
4853
4901
|
|
|
4854
4902
|
// src/entities/admin-permission.entity.ts
|
|
4855
|
-
var
|
|
4903
|
+
var import_typeorm46 = require("typeorm");
|
|
4856
4904
|
var AdminPermission = class extends BaseEntity {
|
|
4857
4905
|
};
|
|
4858
4906
|
__decorateClass([
|
|
4859
|
-
(0,
|
|
4907
|
+
(0, import_typeorm46.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
4860
4908
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4861
4909
|
__decorateClass([
|
|
4862
|
-
(0,
|
|
4910
|
+
(0, import_typeorm46.Column)({
|
|
4863
4911
|
name: "permission_slug",
|
|
4864
4912
|
type: "varchar",
|
|
4865
4913
|
unique: true,
|
|
4866
4914
|
nullable: true
|
|
4867
4915
|
}),
|
|
4868
|
-
(0,
|
|
4916
|
+
(0, import_typeorm46.Index)()
|
|
4869
4917
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4870
4918
|
__decorateClass([
|
|
4871
|
-
(0,
|
|
4919
|
+
(0, import_typeorm46.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
4872
4920
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4873
4921
|
__decorateClass([
|
|
4874
|
-
(0,
|
|
4922
|
+
(0, import_typeorm46.Column)({ name: "module", type: "varchar", nullable: true })
|
|
4875
4923
|
], AdminPermission.prototype, "module", 2);
|
|
4876
4924
|
__decorateClass([
|
|
4877
|
-
(0,
|
|
4925
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4878
4926
|
], AdminPermission.prototype, "isActive", 2);
|
|
4879
4927
|
__decorateClass([
|
|
4880
|
-
(0,
|
|
4928
|
+
(0, import_typeorm46.OneToMany)(
|
|
4881
4929
|
() => AdminRolePermission,
|
|
4882
4930
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
4883
4931
|
)
|
|
4884
4932
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4885
4933
|
AdminPermission = __decorateClass([
|
|
4886
|
-
(0,
|
|
4934
|
+
(0, import_typeorm46.Entity)("admin_permissions")
|
|
4887
4935
|
], AdminPermission);
|
|
4888
4936
|
|
|
4889
4937
|
// src/entities/admin-role-permission.entity.ts
|
|
4890
4938
|
var AdminRolePermission = class extends BaseEntity {
|
|
4891
4939
|
};
|
|
4892
4940
|
__decorateClass([
|
|
4893
|
-
(0,
|
|
4941
|
+
(0, import_typeorm47.Column)({
|
|
4894
4942
|
name: "role_id",
|
|
4895
4943
|
type: "int",
|
|
4896
4944
|
nullable: true,
|
|
@@ -4898,11 +4946,11 @@ __decorateClass([
|
|
|
4898
4946
|
})
|
|
4899
4947
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4900
4948
|
__decorateClass([
|
|
4901
|
-
(0,
|
|
4902
|
-
(0,
|
|
4949
|
+
(0, import_typeorm47.ManyToOne)(() => AdminRole),
|
|
4950
|
+
(0, import_typeorm47.JoinColumn)({ name: "role_id" })
|
|
4903
4951
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4904
4952
|
__decorateClass([
|
|
4905
|
-
(0,
|
|
4953
|
+
(0, import_typeorm47.Column)({
|
|
4906
4954
|
name: "permission_id",
|
|
4907
4955
|
type: "int",
|
|
4908
4956
|
nullable: true,
|
|
@@ -4910,37 +4958,37 @@ __decorateClass([
|
|
|
4910
4958
|
})
|
|
4911
4959
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4912
4960
|
__decorateClass([
|
|
4913
|
-
(0,
|
|
4914
|
-
(0,
|
|
4961
|
+
(0, import_typeorm47.ManyToOne)(() => AdminPermission),
|
|
4962
|
+
(0, import_typeorm47.JoinColumn)({ name: "permission_id" })
|
|
4915
4963
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4916
4964
|
AdminRolePermission = __decorateClass([
|
|
4917
|
-
(0,
|
|
4965
|
+
(0, import_typeorm47.Entity)("admin_role_permissions")
|
|
4918
4966
|
], AdminRolePermission);
|
|
4919
4967
|
|
|
4920
4968
|
// src/entities/admin-role.entity.ts
|
|
4921
4969
|
var AdminRole = class extends BaseEntity {
|
|
4922
4970
|
};
|
|
4923
4971
|
__decorateClass([
|
|
4924
|
-
(0,
|
|
4972
|
+
(0, import_typeorm48.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
4925
4973
|
], AdminRole.prototype, "roleName", 2);
|
|
4926
4974
|
__decorateClass([
|
|
4927
|
-
(0,
|
|
4928
|
-
(0,
|
|
4975
|
+
(0, import_typeorm48.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4976
|
+
(0, import_typeorm48.Index)()
|
|
4929
4977
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4930
4978
|
__decorateClass([
|
|
4931
|
-
(0,
|
|
4979
|
+
(0, import_typeorm48.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
4932
4980
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4933
4981
|
__decorateClass([
|
|
4934
|
-
(0,
|
|
4982
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4935
4983
|
], AdminRole.prototype, "isActive", 2);
|
|
4936
4984
|
__decorateClass([
|
|
4937
|
-
(0,
|
|
4985
|
+
(0, import_typeorm48.OneToMany)(
|
|
4938
4986
|
() => AdminRolePermission,
|
|
4939
4987
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
4940
4988
|
)
|
|
4941
4989
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
4942
4990
|
AdminRole = __decorateClass([
|
|
4943
|
-
(0,
|
|
4991
|
+
(0, import_typeorm48.Entity)("admin_roles")
|
|
4944
4992
|
], AdminRole);
|
|
4945
4993
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4946
4994
|
0 && (module.exports = {
|
|
@@ -4963,6 +5011,7 @@ AdminRole = __decorateClass([
|
|
|
4963
5011
|
AssessmentStatusEnum,
|
|
4964
5012
|
AssessmetQuestion,
|
|
4965
5013
|
AssessmetQuestionOption,
|
|
5014
|
+
AttachPermissionsToRoleDto,
|
|
4966
5015
|
BANK_PATTERN,
|
|
4967
5016
|
BankAccountScope,
|
|
4968
5017
|
BankAccountScopeEnum,
|
|
@@ -5045,6 +5094,7 @@ AdminRole = __decorateClass([
|
|
|
5045
5094
|
FreelancerWorkShowcaseDto,
|
|
5046
5095
|
FromUsOn,
|
|
5047
5096
|
Interview,
|
|
5097
|
+
InterviewQuestion,
|
|
5048
5098
|
InterviewSkill,
|
|
5049
5099
|
InterviewStatusEnum,
|
|
5050
5100
|
JOB_PATTERN,
|