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