@experts_hub/shared 1.0.319 → 1.0.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/job-recommendation.entity.d.ts +10 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/index.d.mts +33 -21
- package/dist/index.d.ts +33 -21
- package/dist/index.js +665 -618
- package/dist/index.mjs +637 -585
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -159,6 +159,7 @@ __export(index_exports, {
|
|
|
159
159
|
JobLocationEnumDto: () => JobLocationEnumDto,
|
|
160
160
|
JobLocationEnums: () => JobLocationEnums,
|
|
161
161
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
162
|
+
JobRecommendation: () => JobRecommendation,
|
|
162
163
|
JobRoles: () => JobRoles,
|
|
163
164
|
JobSkill: () => JobSkill,
|
|
164
165
|
JobStatus: () => JobStatus,
|
|
@@ -1503,10 +1504,10 @@ var RATING_PATTERN = {
|
|
|
1503
1504
|
var import_class_validator40 = require("class-validator");
|
|
1504
1505
|
|
|
1505
1506
|
// src/entities/rating.entity.ts
|
|
1506
|
-
var
|
|
1507
|
+
var import_typeorm43 = require("typeorm");
|
|
1507
1508
|
|
|
1508
1509
|
// src/entities/user.entity.ts
|
|
1509
|
-
var
|
|
1510
|
+
var import_typeorm42 = require("typeorm");
|
|
1510
1511
|
|
|
1511
1512
|
// src/entities/base.entity.ts
|
|
1512
1513
|
var import_typeorm = require("typeorm");
|
|
@@ -2170,7 +2171,7 @@ CompanyProfile = __decorateClass([
|
|
|
2170
2171
|
], CompanyProfile);
|
|
2171
2172
|
|
|
2172
2173
|
// src/entities/job.entity.ts
|
|
2173
|
-
var
|
|
2174
|
+
var import_typeorm17 = require("typeorm");
|
|
2174
2175
|
|
|
2175
2176
|
// src/entities/job-skill.entity.ts
|
|
2176
2177
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2308,7 +2309,7 @@ JobApplication = __decorateClass([
|
|
|
2308
2309
|
], JobApplication);
|
|
2309
2310
|
|
|
2310
2311
|
// src/entities/interview.entity.ts
|
|
2311
|
-
var
|
|
2312
|
+
var import_typeorm15 = require("typeorm");
|
|
2312
2313
|
|
|
2313
2314
|
// src/entities/interview-skill.entity.ts
|
|
2314
2315
|
var import_typeorm12 = require("typeorm");
|
|
@@ -2361,6 +2362,105 @@ InterviewQuestion = __decorateClass([
|
|
|
2361
2362
|
(0, import_typeorm13.Entity)("interview_questions")
|
|
2362
2363
|
], InterviewQuestion);
|
|
2363
2364
|
|
|
2365
|
+
// src/entities/interview-invite.entity.ts
|
|
2366
|
+
var import_typeorm14 = require("typeorm");
|
|
2367
|
+
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
2368
|
+
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
2369
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
2370
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
2371
|
+
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2372
|
+
return InterviewInviteStatusEnum2;
|
|
2373
|
+
})(InterviewInviteStatusEnum || {});
|
|
2374
|
+
var InterviewInvite = class extends BaseEntity {
|
|
2375
|
+
};
|
|
2376
|
+
__decorateClass([
|
|
2377
|
+
(0, import_typeorm14.Column)({
|
|
2378
|
+
name: "interview_id",
|
|
2379
|
+
type: "integer",
|
|
2380
|
+
comment: "Column to specify interview id"
|
|
2381
|
+
}),
|
|
2382
|
+
(0, import_typeorm14.Index)()
|
|
2383
|
+
], InterviewInvite.prototype, "interviewId", 2);
|
|
2384
|
+
__decorateClass([
|
|
2385
|
+
(0, import_typeorm14.ManyToOne)(() => Interview, (interview) => interview.invites, { onDelete: "CASCADE" }),
|
|
2386
|
+
(0, import_typeorm14.JoinColumn)({ name: "interview_id" })
|
|
2387
|
+
], InterviewInvite.prototype, "interview", 2);
|
|
2388
|
+
__decorateClass([
|
|
2389
|
+
(0, import_typeorm14.Column)({
|
|
2390
|
+
name: "user_id",
|
|
2391
|
+
type: "integer",
|
|
2392
|
+
nullable: true,
|
|
2393
|
+
comment: "FK to User entity if candidate is already registered"
|
|
2394
|
+
}),
|
|
2395
|
+
(0, import_typeorm14.Index)()
|
|
2396
|
+
], InterviewInvite.prototype, "userId", 2);
|
|
2397
|
+
__decorateClass([
|
|
2398
|
+
(0, import_typeorm14.ManyToOne)(() => User),
|
|
2399
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
2400
|
+
], InterviewInvite.prototype, "user", 2);
|
|
2401
|
+
__decorateClass([
|
|
2402
|
+
(0, import_typeorm14.Column)({
|
|
2403
|
+
name: "full_name",
|
|
2404
|
+
type: "varchar",
|
|
2405
|
+
nullable: true,
|
|
2406
|
+
comment: "Candidate's full name (used in the email invitation)"
|
|
2407
|
+
})
|
|
2408
|
+
], InterviewInvite.prototype, "fullName", 2);
|
|
2409
|
+
__decorateClass([
|
|
2410
|
+
(0, import_typeorm14.Column)({
|
|
2411
|
+
name: "email",
|
|
2412
|
+
type: "varchar",
|
|
2413
|
+
comment: "Candidate's email address (must be unique per invite)"
|
|
2414
|
+
}),
|
|
2415
|
+
(0, import_typeorm14.Index)()
|
|
2416
|
+
], InterviewInvite.prototype, "email", 2);
|
|
2417
|
+
__decorateClass([
|
|
2418
|
+
(0, import_typeorm14.Column)({
|
|
2419
|
+
name: "status",
|
|
2420
|
+
type: "enum",
|
|
2421
|
+
enum: InterviewInviteStatusEnum,
|
|
2422
|
+
default: "PENDING" /* PENDING */,
|
|
2423
|
+
comment: "To manage invite status"
|
|
2424
|
+
})
|
|
2425
|
+
], InterviewInvite.prototype, "status", 2);
|
|
2426
|
+
__decorateClass([
|
|
2427
|
+
(0, import_typeorm14.Column)({
|
|
2428
|
+
name: "sent_at",
|
|
2429
|
+
type: "timestamp with time zone",
|
|
2430
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
2431
|
+
comment: "Timestamp when the invite was created/sent"
|
|
2432
|
+
})
|
|
2433
|
+
], InterviewInvite.prototype, "sentAt", 2);
|
|
2434
|
+
__decorateClass([
|
|
2435
|
+
(0, import_typeorm14.Column)({
|
|
2436
|
+
name: "expired_at",
|
|
2437
|
+
type: "timestamp with time zone",
|
|
2438
|
+
comment: "Automatically expires invite after 72 hours",
|
|
2439
|
+
nullable: true
|
|
2440
|
+
})
|
|
2441
|
+
], InterviewInvite.prototype, "expiresAt", 2);
|
|
2442
|
+
__decorateClass([
|
|
2443
|
+
(0, import_typeorm14.Column)({
|
|
2444
|
+
name: "responded_at",
|
|
2445
|
+
type: "timestamp with time zone",
|
|
2446
|
+
nullable: true,
|
|
2447
|
+
comment: "Timestamp when candidate responded."
|
|
2448
|
+
})
|
|
2449
|
+
], InterviewInvite.prototype, "respondedAt", 2);
|
|
2450
|
+
__decorateClass([
|
|
2451
|
+
(0, import_typeorm14.Column)({
|
|
2452
|
+
name: "token",
|
|
2453
|
+
type: "varchar",
|
|
2454
|
+
unique: true,
|
|
2455
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
2456
|
+
nullable: true
|
|
2457
|
+
}),
|
|
2458
|
+
(0, import_typeorm14.Index)()
|
|
2459
|
+
], InterviewInvite.prototype, "token", 2);
|
|
2460
|
+
InterviewInvite = __decorateClass([
|
|
2461
|
+
(0, import_typeorm14.Entity)("interview_invites")
|
|
2462
|
+
], InterviewInvite);
|
|
2463
|
+
|
|
2364
2464
|
// src/entities/interview.entity.ts
|
|
2365
2465
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2366
2466
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2373,38 +2473,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2373
2473
|
var Interview = class extends BaseEntity {
|
|
2374
2474
|
};
|
|
2375
2475
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2476
|
+
(0, import_typeorm15.Column)({
|
|
2377
2477
|
name: "interview_id",
|
|
2378
2478
|
type: "varchar",
|
|
2379
2479
|
unique: true,
|
|
2380
2480
|
nullable: true
|
|
2381
2481
|
}),
|
|
2382
|
-
(0,
|
|
2482
|
+
(0, import_typeorm15.Index)()
|
|
2383
2483
|
], Interview.prototype, "interviewId", 2);
|
|
2384
2484
|
__decorateClass([
|
|
2385
|
-
(0,
|
|
2386
|
-
(0,
|
|
2485
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2486
|
+
(0, import_typeorm15.Index)()
|
|
2387
2487
|
], Interview.prototype, "userId", 2);
|
|
2388
2488
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2390
|
-
(0,
|
|
2489
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.interviews),
|
|
2490
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2391
2491
|
], Interview.prototype, "user", 2);
|
|
2392
2492
|
__decorateClass([
|
|
2393
|
-
(0,
|
|
2493
|
+
(0, import_typeorm15.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2394
2494
|
], Interview.prototype, "interviewName", 2);
|
|
2395
2495
|
__decorateClass([
|
|
2396
|
-
(0,
|
|
2397
|
-
(0,
|
|
2496
|
+
(0, import_typeorm15.Column)({ name: "job_id", type: "integer" }),
|
|
2497
|
+
(0, import_typeorm15.Index)()
|
|
2398
2498
|
], Interview.prototype, "jobId", 2);
|
|
2399
2499
|
__decorateClass([
|
|
2400
|
-
(0,
|
|
2401
|
-
(0,
|
|
2500
|
+
(0, import_typeorm15.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2501
|
+
(0, import_typeorm15.JoinColumn)({ name: "job_id" })
|
|
2402
2502
|
], Interview.prototype, "job", 2);
|
|
2403
2503
|
__decorateClass([
|
|
2404
|
-
(0,
|
|
2504
|
+
(0, import_typeorm15.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2405
2505
|
], Interview.prototype, "interviewType", 2);
|
|
2406
2506
|
__decorateClass([
|
|
2407
|
-
(0,
|
|
2507
|
+
(0, import_typeorm15.Column)({
|
|
2408
2508
|
name: "status",
|
|
2409
2509
|
type: "enum",
|
|
2410
2510
|
enum: InterviewStatusEnum,
|
|
@@ -2412,23 +2512,63 @@ __decorateClass([
|
|
|
2412
2512
|
})
|
|
2413
2513
|
], Interview.prototype, "status", 2);
|
|
2414
2514
|
__decorateClass([
|
|
2415
|
-
(0,
|
|
2515
|
+
(0, import_typeorm15.OneToMany)(
|
|
2416
2516
|
() => InterviewSkill,
|
|
2417
2517
|
(interviewSkill) => interviewSkill.interview,
|
|
2418
2518
|
{ cascade: true }
|
|
2419
2519
|
)
|
|
2420
2520
|
], Interview.prototype, "interviewSkills", 2);
|
|
2421
2521
|
__decorateClass([
|
|
2422
|
-
(0,
|
|
2522
|
+
(0, import_typeorm15.OneToMany)(
|
|
2423
2523
|
() => InterviewQuestion,
|
|
2424
2524
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2425
2525
|
{ cascade: true }
|
|
2426
2526
|
)
|
|
2427
2527
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2528
|
+
__decorateClass([
|
|
2529
|
+
(0, import_typeorm15.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2530
|
+
], Interview.prototype, "invites", 2);
|
|
2428
2531
|
Interview = __decorateClass([
|
|
2429
|
-
(0,
|
|
2532
|
+
(0, import_typeorm15.Entity)("interviews")
|
|
2430
2533
|
], Interview);
|
|
2431
2534
|
|
|
2535
|
+
// src/entities/job-recommendation.entity.ts
|
|
2536
|
+
var import_typeorm16 = require("typeorm");
|
|
2537
|
+
var JobRecommendation = class {
|
|
2538
|
+
};
|
|
2539
|
+
__decorateClass([
|
|
2540
|
+
(0, import_typeorm16.Column)({ name: "job_id", type: "integer" }),
|
|
2541
|
+
(0, import_typeorm16.Index)()
|
|
2542
|
+
], JobRecommendation.prototype, "jobId", 2);
|
|
2543
|
+
__decorateClass([
|
|
2544
|
+
(0, import_typeorm16.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2545
|
+
(0, import_typeorm16.JoinColumn)({ name: "job_id" })
|
|
2546
|
+
], JobRecommendation.prototype, "job", 2);
|
|
2547
|
+
__decorateClass([
|
|
2548
|
+
(0, import_typeorm16.Column)({ name: "freelancer_id", type: "integer" }),
|
|
2549
|
+
(0, import_typeorm16.Index)()
|
|
2550
|
+
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2551
|
+
__decorateClass([
|
|
2552
|
+
(0, import_typeorm16.Column)({ name: "client_id", type: "integer" }),
|
|
2553
|
+
(0, import_typeorm16.Index)()
|
|
2554
|
+
], JobRecommendation.prototype, "clientId", 2);
|
|
2555
|
+
__decorateClass([
|
|
2556
|
+
(0, import_typeorm16.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2557
|
+
], JobRecommendation.prototype, "matchScore", 2);
|
|
2558
|
+
__decorateClass([
|
|
2559
|
+
(0, import_typeorm16.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2560
|
+
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2561
|
+
__decorateClass([
|
|
2562
|
+
(0, import_typeorm16.Column)({
|
|
2563
|
+
name: "last_calculated_at",
|
|
2564
|
+
type: "timestamp with local time zone",
|
|
2565
|
+
nullable: true
|
|
2566
|
+
})
|
|
2567
|
+
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2568
|
+
JobRecommendation = __decorateClass([
|
|
2569
|
+
(0, import_typeorm16.Entity)("job_recommendations")
|
|
2570
|
+
], JobRecommendation);
|
|
2571
|
+
|
|
2432
2572
|
// src/entities/job.entity.ts
|
|
2433
2573
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2434
2574
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -2466,49 +2606,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2466
2606
|
var Job = class extends BaseEntity {
|
|
2467
2607
|
};
|
|
2468
2608
|
__decorateClass([
|
|
2469
|
-
(0,
|
|
2609
|
+
(0, import_typeorm17.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2470
2610
|
], Job.prototype, "jobId", 2);
|
|
2471
2611
|
// individual index to find jobs by user
|
|
2472
2612
|
__decorateClass([
|
|
2473
|
-
(0,
|
|
2474
|
-
(0,
|
|
2613
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2614
|
+
(0, import_typeorm17.Index)()
|
|
2475
2615
|
], Job.prototype, "userId", 2);
|
|
2476
2616
|
__decorateClass([
|
|
2477
|
-
(0,
|
|
2478
|
-
(0,
|
|
2617
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.jobs),
|
|
2618
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2479
2619
|
], Job.prototype, "user", 2);
|
|
2480
2620
|
__decorateClass([
|
|
2481
|
-
(0,
|
|
2621
|
+
(0, import_typeorm17.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2482
2622
|
], Job.prototype, "countryId", 2);
|
|
2483
2623
|
__decorateClass([
|
|
2484
|
-
(0,
|
|
2485
|
-
(0,
|
|
2624
|
+
(0, import_typeorm17.ManyToOne)(() => Country),
|
|
2625
|
+
(0, import_typeorm17.JoinColumn)({ name: "country_id" })
|
|
2486
2626
|
], Job.prototype, "country", 2);
|
|
2487
2627
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2628
|
+
(0, import_typeorm17.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2489
2629
|
], Job.prototype, "stateId", 2);
|
|
2490
2630
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2492
|
-
(0,
|
|
2631
|
+
(0, import_typeorm17.ManyToOne)(() => State),
|
|
2632
|
+
(0, import_typeorm17.JoinColumn)({ name: "state_id" })
|
|
2493
2633
|
], Job.prototype, "state", 2);
|
|
2494
2634
|
__decorateClass([
|
|
2495
|
-
(0,
|
|
2635
|
+
(0, import_typeorm17.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2496
2636
|
], Job.prototype, "cityId", 2);
|
|
2497
2637
|
__decorateClass([
|
|
2498
|
-
(0,
|
|
2499
|
-
(0,
|
|
2638
|
+
(0, import_typeorm17.ManyToOne)(() => City),
|
|
2639
|
+
(0, import_typeorm17.JoinColumn)({ name: "city_id" })
|
|
2500
2640
|
], Job.prototype, "city", 2);
|
|
2501
2641
|
__decorateClass([
|
|
2502
|
-
(0,
|
|
2642
|
+
(0, import_typeorm17.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2503
2643
|
], Job.prototype, "jobRole", 2);
|
|
2504
2644
|
__decorateClass([
|
|
2505
|
-
(0,
|
|
2645
|
+
(0, import_typeorm17.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2506
2646
|
], Job.prototype, "note", 2);
|
|
2507
2647
|
__decorateClass([
|
|
2508
|
-
(0,
|
|
2648
|
+
(0, import_typeorm17.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2509
2649
|
], Job.prototype, "openings", 2);
|
|
2510
2650
|
__decorateClass([
|
|
2511
|
-
(0,
|
|
2651
|
+
(0, import_typeorm17.Column)({
|
|
2512
2652
|
name: "location",
|
|
2513
2653
|
type: "enum",
|
|
2514
2654
|
enum: JobLocationEnum,
|
|
@@ -2516,7 +2656,7 @@ __decorateClass([
|
|
|
2516
2656
|
})
|
|
2517
2657
|
], Job.prototype, "location", 2);
|
|
2518
2658
|
__decorateClass([
|
|
2519
|
-
(0,
|
|
2659
|
+
(0, import_typeorm17.Column)({
|
|
2520
2660
|
name: "type_of_employment",
|
|
2521
2661
|
type: "enum",
|
|
2522
2662
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2524,19 +2664,19 @@ __decorateClass([
|
|
|
2524
2664
|
})
|
|
2525
2665
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2526
2666
|
__decorateClass([
|
|
2527
|
-
(0,
|
|
2667
|
+
(0, import_typeorm17.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2528
2668
|
], Job.prototype, "academicQualification", 2);
|
|
2529
2669
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2670
|
+
(0, import_typeorm17.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2531
2671
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2532
2672
|
__decorateClass([
|
|
2533
|
-
(0,
|
|
2673
|
+
(0, import_typeorm17.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2534
2674
|
], Job.prototype, "businessIndustry", 2);
|
|
2535
2675
|
__decorateClass([
|
|
2536
|
-
(0,
|
|
2676
|
+
(0, import_typeorm17.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2537
2677
|
], Job.prototype, "currency", 2);
|
|
2538
2678
|
__decorateClass([
|
|
2539
|
-
(0,
|
|
2679
|
+
(0, import_typeorm17.Column)({
|
|
2540
2680
|
name: "expected_salary_from",
|
|
2541
2681
|
type: "decimal",
|
|
2542
2682
|
precision: 10,
|
|
@@ -2545,7 +2685,7 @@ __decorateClass([
|
|
|
2545
2685
|
})
|
|
2546
2686
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2547
2687
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2688
|
+
(0, import_typeorm17.Column)({
|
|
2549
2689
|
name: "expected_salary_to",
|
|
2550
2690
|
type: "decimal",
|
|
2551
2691
|
precision: 10,
|
|
@@ -2554,16 +2694,16 @@ __decorateClass([
|
|
|
2554
2694
|
})
|
|
2555
2695
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2556
2696
|
__decorateClass([
|
|
2557
|
-
(0,
|
|
2697
|
+
(0, import_typeorm17.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2558
2698
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2559
2699
|
__decorateClass([
|
|
2560
|
-
(0,
|
|
2700
|
+
(0, import_typeorm17.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2561
2701
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2562
2702
|
__decorateClass([
|
|
2563
|
-
(0,
|
|
2703
|
+
(0, import_typeorm17.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2564
2704
|
], Job.prototype, "duration", 2);
|
|
2565
2705
|
__decorateClass([
|
|
2566
|
-
(0,
|
|
2706
|
+
(0, import_typeorm17.Column)({
|
|
2567
2707
|
name: "duration_type",
|
|
2568
2708
|
type: "enum",
|
|
2569
2709
|
enum: DurationTypeEnum,
|
|
@@ -2571,13 +2711,13 @@ __decorateClass([
|
|
|
2571
2711
|
})
|
|
2572
2712
|
], Job.prototype, "durationType", 2);
|
|
2573
2713
|
__decorateClass([
|
|
2574
|
-
(0,
|
|
2714
|
+
(0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2575
2715
|
], Job.prototype, "description", 2);
|
|
2576
2716
|
__decorateClass([
|
|
2577
|
-
(0,
|
|
2717
|
+
(0, import_typeorm17.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2578
2718
|
], Job.prototype, "additionalComment", 2);
|
|
2579
2719
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2720
|
+
(0, import_typeorm17.Column)({
|
|
2581
2721
|
name: "onboarding_tat",
|
|
2582
2722
|
type: "varchar",
|
|
2583
2723
|
length: 50,
|
|
@@ -2585,14 +2725,14 @@ __decorateClass([
|
|
|
2585
2725
|
})
|
|
2586
2726
|
], Job.prototype, "onboardingTat", 2);
|
|
2587
2727
|
__decorateClass([
|
|
2588
|
-
(0,
|
|
2728
|
+
(0, import_typeorm17.Column)({
|
|
2589
2729
|
name: "candidate_communication_skills",
|
|
2590
2730
|
type: "varchar",
|
|
2591
2731
|
nullable: true
|
|
2592
2732
|
})
|
|
2593
2733
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2594
2734
|
__decorateClass([
|
|
2595
|
-
(0,
|
|
2735
|
+
(0, import_typeorm17.Column)({
|
|
2596
2736
|
name: "step_completed",
|
|
2597
2737
|
type: "enum",
|
|
2598
2738
|
enum: Step,
|
|
@@ -2600,7 +2740,7 @@ __decorateClass([
|
|
|
2600
2740
|
})
|
|
2601
2741
|
], Job.prototype, "stepCompleted", 2);
|
|
2602
2742
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2743
|
+
(0, import_typeorm17.Column)({
|
|
2604
2744
|
name: "status",
|
|
2605
2745
|
type: "enum",
|
|
2606
2746
|
enum: JobStatusEnum,
|
|
@@ -2608,30 +2748,35 @@ __decorateClass([
|
|
|
2608
2748
|
})
|
|
2609
2749
|
], Job.prototype, "status", 2);
|
|
2610
2750
|
__decorateClass([
|
|
2611
|
-
(0,
|
|
2751
|
+
(0, import_typeorm17.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2612
2752
|
], Job.prototype, "viewedCount", 2);
|
|
2613
2753
|
__decorateClass([
|
|
2614
|
-
(0,
|
|
2754
|
+
(0, import_typeorm17.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2615
2755
|
], Job.prototype, "applicationCount", 2);
|
|
2616
2756
|
__decorateClass([
|
|
2617
|
-
(0,
|
|
2757
|
+
(0, import_typeorm17.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2618
2758
|
], Job.prototype, "jobSkills", 2);
|
|
2619
2759
|
__decorateClass([
|
|
2620
|
-
(0,
|
|
2760
|
+
(0, import_typeorm17.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2621
2761
|
cascade: true
|
|
2622
2762
|
})
|
|
2623
2763
|
], Job.prototype, "jobApplications", 2);
|
|
2624
2764
|
__decorateClass([
|
|
2625
|
-
(0,
|
|
2765
|
+
(0, import_typeorm17.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2626
2766
|
cascade: true
|
|
2627
2767
|
})
|
|
2628
2768
|
], Job.prototype, "interviews", 2);
|
|
2769
|
+
__decorateClass([
|
|
2770
|
+
(0, import_typeorm17.OneToMany)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2771
|
+
cascade: true
|
|
2772
|
+
})
|
|
2773
|
+
], Job.prototype, "recommendations", 2);
|
|
2629
2774
|
Job = __decorateClass([
|
|
2630
|
-
(0,
|
|
2775
|
+
(0, import_typeorm17.Entity)("jobs")
|
|
2631
2776
|
], Job);
|
|
2632
2777
|
|
|
2633
2778
|
// src/entities/bank-details.entity.ts
|
|
2634
|
-
var
|
|
2779
|
+
var import_typeorm18 = require("typeorm");
|
|
2635
2780
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2636
2781
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2637
2782
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2646,48 +2791,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2646
2791
|
};
|
|
2647
2792
|
// individual index to find bank details by user
|
|
2648
2793
|
__decorateClass([
|
|
2649
|
-
(0,
|
|
2650
|
-
(0,
|
|
2794
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2795
|
+
(0, import_typeorm18.Index)()
|
|
2651
2796
|
], BankDetail.prototype, "userId", 2);
|
|
2652
2797
|
__decorateClass([
|
|
2653
|
-
(0,
|
|
2654
|
-
(0,
|
|
2798
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2799
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2655
2800
|
], BankDetail.prototype, "user", 2);
|
|
2656
2801
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2802
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2658
2803
|
], BankDetail.prototype, "name", 2);
|
|
2659
2804
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2805
|
+
(0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2661
2806
|
], BankDetail.prototype, "mobile", 2);
|
|
2662
2807
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2808
|
+
(0, import_typeorm18.Column)({ name: "email", type: "varchar", unique: true })
|
|
2664
2809
|
], BankDetail.prototype, "email", 2);
|
|
2665
2810
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2811
|
+
(0, import_typeorm18.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2667
2812
|
], BankDetail.prototype, "address", 2);
|
|
2668
2813
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2814
|
+
(0, import_typeorm18.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2670
2815
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2671
2816
|
__decorateClass([
|
|
2672
|
-
(0,
|
|
2817
|
+
(0, import_typeorm18.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2673
2818
|
], BankDetail.prototype, "bankName", 2);
|
|
2674
2819
|
__decorateClass([
|
|
2675
|
-
(0,
|
|
2820
|
+
(0, import_typeorm18.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2676
2821
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2677
2822
|
__decorateClass([
|
|
2678
|
-
(0,
|
|
2823
|
+
(0, import_typeorm18.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2679
2824
|
], BankDetail.prototype, "branchName", 2);
|
|
2680
2825
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2826
|
+
(0, import_typeorm18.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2682
2827
|
], BankDetail.prototype, "routingNo", 2);
|
|
2683
2828
|
__decorateClass([
|
|
2684
|
-
(0,
|
|
2829
|
+
(0, import_typeorm18.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2685
2830
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2686
2831
|
__decorateClass([
|
|
2687
|
-
(0,
|
|
2832
|
+
(0, import_typeorm18.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2688
2833
|
], BankDetail.prototype, "iban", 2);
|
|
2689
2834
|
__decorateClass([
|
|
2690
|
-
(0,
|
|
2835
|
+
(0, import_typeorm18.Column)({
|
|
2691
2836
|
name: "account_type",
|
|
2692
2837
|
type: "enum",
|
|
2693
2838
|
enum: BankAccountTypeEnum,
|
|
@@ -2695,7 +2840,7 @@ __decorateClass([
|
|
|
2695
2840
|
})
|
|
2696
2841
|
], BankDetail.prototype, "accountType", 2);
|
|
2697
2842
|
__decorateClass([
|
|
2698
|
-
(0,
|
|
2843
|
+
(0, import_typeorm18.Column)({
|
|
2699
2844
|
name: "account_scope",
|
|
2700
2845
|
type: "enum",
|
|
2701
2846
|
enum: BankAccountScopeEnum,
|
|
@@ -2703,210 +2848,210 @@ __decorateClass([
|
|
|
2703
2848
|
})
|
|
2704
2849
|
], BankDetail.prototype, "accountScope", 2);
|
|
2705
2850
|
BankDetail = __decorateClass([
|
|
2706
|
-
(0,
|
|
2851
|
+
(0, import_typeorm18.Entity)("bank_details")
|
|
2707
2852
|
], BankDetail);
|
|
2708
2853
|
|
|
2709
2854
|
// src/entities/system-preference.entity.ts
|
|
2710
|
-
var
|
|
2855
|
+
var import_typeorm19 = require("typeorm");
|
|
2711
2856
|
var SystemPreference = class extends BaseEntity {
|
|
2712
2857
|
};
|
|
2713
2858
|
// individual index to find system preference by user
|
|
2714
2859
|
__decorateClass([
|
|
2715
|
-
(0,
|
|
2716
|
-
(0,
|
|
2860
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2861
|
+
(0, import_typeorm19.Index)()
|
|
2717
2862
|
], SystemPreference.prototype, "userId", 2);
|
|
2718
2863
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2720
|
-
(0,
|
|
2864
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2865
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2721
2866
|
], SystemPreference.prototype, "user", 2);
|
|
2722
2867
|
__decorateClass([
|
|
2723
|
-
(0,
|
|
2868
|
+
(0, import_typeorm19.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2724
2869
|
], SystemPreference.prototype, "key", 2);
|
|
2725
2870
|
__decorateClass([
|
|
2726
|
-
(0,
|
|
2871
|
+
(0, import_typeorm19.Column)({ name: "value", type: "boolean", default: false })
|
|
2727
2872
|
], SystemPreference.prototype, "value", 2);
|
|
2728
2873
|
SystemPreference = __decorateClass([
|
|
2729
|
-
(0,
|
|
2874
|
+
(0, import_typeorm19.Entity)("system_preferences")
|
|
2730
2875
|
], SystemPreference);
|
|
2731
2876
|
|
|
2732
2877
|
// src/entities/freelancer-experience.entity.ts
|
|
2733
|
-
var
|
|
2878
|
+
var import_typeorm20 = require("typeorm");
|
|
2734
2879
|
var FreelancerExperience = class extends BaseEntity {
|
|
2735
2880
|
};
|
|
2736
2881
|
// individual index to find experence by user
|
|
2737
2882
|
__decorateClass([
|
|
2738
|
-
(0,
|
|
2739
|
-
(0,
|
|
2883
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2884
|
+
(0, import_typeorm20.Index)()
|
|
2740
2885
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2741
2886
|
__decorateClass([
|
|
2742
|
-
(0,
|
|
2743
|
-
(0,
|
|
2887
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2888
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2744
2889
|
], FreelancerExperience.prototype, "user", 2);
|
|
2745
2890
|
__decorateClass([
|
|
2746
|
-
(0,
|
|
2891
|
+
(0, import_typeorm20.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2747
2892
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2748
2893
|
__decorateClass([
|
|
2749
|
-
(0,
|
|
2894
|
+
(0, import_typeorm20.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2750
2895
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2751
2896
|
__decorateClass([
|
|
2752
|
-
(0,
|
|
2897
|
+
(0, import_typeorm20.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2753
2898
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2754
2899
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2900
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2756
2901
|
], FreelancerExperience.prototype, "description", 2);
|
|
2757
2902
|
FreelancerExperience = __decorateClass([
|
|
2758
|
-
(0,
|
|
2903
|
+
(0, import_typeorm20.Entity)("freelancer_experiences")
|
|
2759
2904
|
], FreelancerExperience);
|
|
2760
2905
|
|
|
2761
2906
|
// src/entities/freelancer-education.entity.ts
|
|
2762
|
-
var
|
|
2907
|
+
var import_typeorm21 = require("typeorm");
|
|
2763
2908
|
var FreelancerEducation = class extends BaseEntity {
|
|
2764
2909
|
};
|
|
2765
2910
|
// individual index to find education by user
|
|
2766
2911
|
__decorateClass([
|
|
2767
|
-
(0,
|
|
2768
|
-
(0,
|
|
2912
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2913
|
+
(0, import_typeorm21.Index)()
|
|
2769
2914
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2770
2915
|
__decorateClass([
|
|
2771
|
-
(0,
|
|
2772
|
-
(0,
|
|
2916
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2917
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2773
2918
|
], FreelancerEducation.prototype, "user", 2);
|
|
2774
2919
|
__decorateClass([
|
|
2775
|
-
(0,
|
|
2920
|
+
(0, import_typeorm21.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2776
2921
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2777
2922
|
__decorateClass([
|
|
2778
|
-
(0,
|
|
2923
|
+
(0, import_typeorm21.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2779
2924
|
], FreelancerEducation.prototype, "university", 2);
|
|
2780
2925
|
__decorateClass([
|
|
2781
|
-
(0,
|
|
2926
|
+
(0, import_typeorm21.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2782
2927
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2783
2928
|
FreelancerEducation = __decorateClass([
|
|
2784
|
-
(0,
|
|
2929
|
+
(0, import_typeorm21.Entity)("freelancer_educations")
|
|
2785
2930
|
], FreelancerEducation);
|
|
2786
2931
|
|
|
2787
2932
|
// src/entities/freelancer-project.entity.ts
|
|
2788
|
-
var
|
|
2933
|
+
var import_typeorm22 = require("typeorm");
|
|
2789
2934
|
var FreelancerProject = class extends BaseEntity {
|
|
2790
2935
|
};
|
|
2791
2936
|
// individual index to find project by user
|
|
2792
2937
|
__decorateClass([
|
|
2793
|
-
(0,
|
|
2794
|
-
(0,
|
|
2938
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2939
|
+
(0, import_typeorm22.Index)()
|
|
2795
2940
|
], FreelancerProject.prototype, "userId", 2);
|
|
2796
2941
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2798
|
-
(0,
|
|
2942
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2943
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2799
2944
|
], FreelancerProject.prototype, "user", 2);
|
|
2800
2945
|
__decorateClass([
|
|
2801
|
-
(0,
|
|
2946
|
+
(0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2802
2947
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2803
2948
|
__decorateClass([
|
|
2804
|
-
(0,
|
|
2949
|
+
(0, import_typeorm22.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2805
2950
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2806
2951
|
__decorateClass([
|
|
2807
|
-
(0,
|
|
2952
|
+
(0, import_typeorm22.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2808
2953
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2809
2954
|
__decorateClass([
|
|
2810
|
-
(0,
|
|
2955
|
+
(0, import_typeorm22.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2811
2956
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2812
2957
|
__decorateClass([
|
|
2813
|
-
(0,
|
|
2958
|
+
(0, import_typeorm22.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2814
2959
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2815
2960
|
__decorateClass([
|
|
2816
|
-
(0,
|
|
2961
|
+
(0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2817
2962
|
], FreelancerProject.prototype, "description", 2);
|
|
2818
2963
|
FreelancerProject = __decorateClass([
|
|
2819
|
-
(0,
|
|
2964
|
+
(0, import_typeorm22.Entity)("freelancer_projects")
|
|
2820
2965
|
], FreelancerProject);
|
|
2821
2966
|
|
|
2822
2967
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2823
|
-
var
|
|
2968
|
+
var import_typeorm23 = require("typeorm");
|
|
2824
2969
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2825
2970
|
};
|
|
2826
2971
|
// individual index to find case study by user
|
|
2827
2972
|
__decorateClass([
|
|
2828
|
-
(0,
|
|
2829
|
-
(0,
|
|
2973
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2974
|
+
(0, import_typeorm23.Index)()
|
|
2830
2975
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2831
2976
|
__decorateClass([
|
|
2832
|
-
(0,
|
|
2833
|
-
(0,
|
|
2977
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2978
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2834
2979
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2835
2980
|
__decorateClass([
|
|
2836
|
-
(0,
|
|
2981
|
+
(0, import_typeorm23.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2837
2982
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2838
2983
|
__decorateClass([
|
|
2839
|
-
(0,
|
|
2984
|
+
(0, import_typeorm23.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2840
2985
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2841
2986
|
__decorateClass([
|
|
2842
|
-
(0,
|
|
2987
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2843
2988
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2844
2989
|
FreelancerCaseStudy = __decorateClass([
|
|
2845
|
-
(0,
|
|
2990
|
+
(0, import_typeorm23.Entity)("freelancer_case_studies")
|
|
2846
2991
|
], FreelancerCaseStudy);
|
|
2847
2992
|
|
|
2848
2993
|
// src/entities/freelancer-skill.entity.ts
|
|
2849
|
-
var
|
|
2994
|
+
var import_typeorm24 = require("typeorm");
|
|
2850
2995
|
var FreelancerSkill = class extends BaseEntity {
|
|
2851
2996
|
};
|
|
2852
2997
|
// individual index to find core skills by user
|
|
2853
2998
|
__decorateClass([
|
|
2854
|
-
(0,
|
|
2855
|
-
(0,
|
|
2999
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3000
|
+
(0, import_typeorm24.Index)()
|
|
2856
3001
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2857
3002
|
__decorateClass([
|
|
2858
|
-
(0,
|
|
2859
|
-
(0,
|
|
3003
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3004
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2860
3005
|
], FreelancerSkill.prototype, "user", 2);
|
|
2861
3006
|
__decorateClass([
|
|
2862
|
-
(0,
|
|
3007
|
+
(0, import_typeorm24.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2863
3008
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2864
3009
|
FreelancerSkill = __decorateClass([
|
|
2865
|
-
(0,
|
|
3010
|
+
(0, import_typeorm24.Entity)("freelancer_skills")
|
|
2866
3011
|
], FreelancerSkill);
|
|
2867
3012
|
|
|
2868
3013
|
// src/entities/freelancer-tool.entity.ts
|
|
2869
|
-
var
|
|
3014
|
+
var import_typeorm25 = require("typeorm");
|
|
2870
3015
|
var FreelancerTool = class extends BaseEntity {
|
|
2871
3016
|
};
|
|
2872
3017
|
// individual index to find tool by user
|
|
2873
3018
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
2875
|
-
(0,
|
|
3019
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3020
|
+
(0, import_typeorm25.Index)()
|
|
2876
3021
|
], FreelancerTool.prototype, "userId", 2);
|
|
2877
3022
|
__decorateClass([
|
|
2878
|
-
(0,
|
|
2879
|
-
(0,
|
|
3023
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
3024
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2880
3025
|
], FreelancerTool.prototype, "user", 2);
|
|
2881
3026
|
__decorateClass([
|
|
2882
|
-
(0,
|
|
3027
|
+
(0, import_typeorm25.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2883
3028
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2884
3029
|
FreelancerTool = __decorateClass([
|
|
2885
|
-
(0,
|
|
3030
|
+
(0, import_typeorm25.Entity)("freelancer_tools")
|
|
2886
3031
|
], FreelancerTool);
|
|
2887
3032
|
|
|
2888
3033
|
// src/entities/freelancer-framework.entity.ts
|
|
2889
|
-
var
|
|
3034
|
+
var import_typeorm26 = require("typeorm");
|
|
2890
3035
|
var FreelancerFramework = class extends BaseEntity {
|
|
2891
3036
|
};
|
|
2892
3037
|
// individual index to find framework by user
|
|
2893
3038
|
__decorateClass([
|
|
2894
|
-
(0,
|
|
2895
|
-
(0,
|
|
3039
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3040
|
+
(0, import_typeorm26.Index)()
|
|
2896
3041
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2897
3042
|
__decorateClass([
|
|
2898
|
-
(0,
|
|
2899
|
-
(0,
|
|
3043
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3044
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2900
3045
|
], FreelancerFramework.prototype, "user", 2);
|
|
2901
3046
|
__decorateClass([
|
|
2902
|
-
(0,
|
|
3047
|
+
(0, import_typeorm26.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2903
3048
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2904
3049
|
FreelancerFramework = __decorateClass([
|
|
2905
|
-
(0,
|
|
3050
|
+
(0, import_typeorm26.Entity)("freelancer_frameworks")
|
|
2906
3051
|
], FreelancerFramework);
|
|
2907
3052
|
|
|
2908
3053
|
// src/entities/freelancer-assessment.entity.ts
|
|
2909
|
-
var
|
|
3054
|
+
var import_typeorm27 = require("typeorm");
|
|
2910
3055
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2911
3056
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2912
3057
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2922,30 +3067,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2922
3067
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2923
3068
|
};
|
|
2924
3069
|
__decorateClass([
|
|
2925
|
-
(0,
|
|
2926
|
-
(0,
|
|
3070
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3071
|
+
(0, import_typeorm27.Index)()
|
|
2927
3072
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2928
3073
|
__decorateClass([
|
|
2929
|
-
(0,
|
|
2930
|
-
(0,
|
|
3074
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.assessments),
|
|
3075
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
2931
3076
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2932
3077
|
__decorateClass([
|
|
2933
|
-
(0,
|
|
3078
|
+
(0, import_typeorm27.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2934
3079
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2935
3080
|
__decorateClass([
|
|
2936
|
-
(0,
|
|
3081
|
+
(0, import_typeorm27.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2937
3082
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2938
3083
|
__decorateClass([
|
|
2939
|
-
(0,
|
|
3084
|
+
(0, import_typeorm27.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
2940
3085
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2941
3086
|
__decorateClass([
|
|
2942
|
-
(0,
|
|
3087
|
+
(0, import_typeorm27.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2943
3088
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2944
3089
|
__decorateClass([
|
|
2945
|
-
(0,
|
|
3090
|
+
(0, import_typeorm27.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2946
3091
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2947
3092
|
__decorateClass([
|
|
2948
|
-
(0,
|
|
3093
|
+
(0, import_typeorm27.Column)({
|
|
2949
3094
|
name: "status",
|
|
2950
3095
|
type: "enum",
|
|
2951
3096
|
enum: AssessmentStatusEnum,
|
|
@@ -2953,11 +3098,11 @@ __decorateClass([
|
|
|
2953
3098
|
})
|
|
2954
3099
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2955
3100
|
FreelancerAssessment = __decorateClass([
|
|
2956
|
-
(0,
|
|
3101
|
+
(0, import_typeorm27.Entity)("freelancer_assessments")
|
|
2957
3102
|
], FreelancerAssessment);
|
|
2958
3103
|
|
|
2959
3104
|
// src/entities/freelancer-declaration.entity.ts
|
|
2960
|
-
var
|
|
3105
|
+
var import_typeorm28 = require("typeorm");
|
|
2961
3106
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2962
3107
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2963
3108
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2969,15 +3114,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2969
3114
|
};
|
|
2970
3115
|
// individual index to find declaration by user
|
|
2971
3116
|
__decorateClass([
|
|
2972
|
-
(0,
|
|
2973
|
-
(0,
|
|
3117
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3118
|
+
(0, import_typeorm28.Index)()
|
|
2974
3119
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2975
3120
|
__decorateClass([
|
|
2976
|
-
(0,
|
|
2977
|
-
(0,
|
|
3121
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3122
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
2978
3123
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2979
3124
|
__decorateClass([
|
|
2980
|
-
(0,
|
|
3125
|
+
(0, import_typeorm28.Column)({
|
|
2981
3126
|
name: "document_type",
|
|
2982
3127
|
type: "enum",
|
|
2983
3128
|
enum: DocumentType,
|
|
@@ -2985,144 +3130,144 @@ __decorateClass([
|
|
|
2985
3130
|
})
|
|
2986
3131
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2987
3132
|
__decorateClass([
|
|
2988
|
-
(0,
|
|
3133
|
+
(0, import_typeorm28.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2989
3134
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2990
3135
|
__decorateClass([
|
|
2991
|
-
(0,
|
|
3136
|
+
(0, import_typeorm28.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2992
3137
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2993
3138
|
__decorateClass([
|
|
2994
|
-
(0,
|
|
3139
|
+
(0, import_typeorm28.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2995
3140
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2996
3141
|
__decorateClass([
|
|
2997
|
-
(0,
|
|
3142
|
+
(0, import_typeorm28.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2998
3143
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2999
3144
|
FreelancerDeclaration = __decorateClass([
|
|
3000
|
-
(0,
|
|
3145
|
+
(0, import_typeorm28.Entity)("freelancer_declaration")
|
|
3001
3146
|
], FreelancerDeclaration);
|
|
3002
3147
|
|
|
3003
3148
|
// src/entities/company-members-roles.entity.ts
|
|
3004
|
-
var
|
|
3149
|
+
var import_typeorm32 = require("typeorm");
|
|
3005
3150
|
|
|
3006
3151
|
// src/entities/company-role.entity.ts
|
|
3007
|
-
var
|
|
3152
|
+
var import_typeorm31 = require("typeorm");
|
|
3008
3153
|
|
|
3009
3154
|
// src/entities/company-role-permission.entity.ts
|
|
3010
|
-
var
|
|
3155
|
+
var import_typeorm30 = require("typeorm");
|
|
3011
3156
|
|
|
3012
3157
|
// src/entities/permission.entity.ts
|
|
3013
|
-
var
|
|
3158
|
+
var import_typeorm29 = require("typeorm");
|
|
3014
3159
|
var Permission = class extends BaseEntity {
|
|
3015
3160
|
};
|
|
3016
3161
|
__decorateClass([
|
|
3017
|
-
(0,
|
|
3162
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3018
3163
|
], Permission.prototype, "name", 2);
|
|
3019
3164
|
__decorateClass([
|
|
3020
|
-
(0,
|
|
3021
|
-
(0,
|
|
3165
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3166
|
+
(0, import_typeorm29.Index)()
|
|
3022
3167
|
], Permission.prototype, "slug", 2);
|
|
3023
3168
|
__decorateClass([
|
|
3024
|
-
(0,
|
|
3169
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
3025
3170
|
], Permission.prototype, "description", 2);
|
|
3026
3171
|
__decorateClass([
|
|
3027
|
-
(0,
|
|
3172
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3028
3173
|
], Permission.prototype, "isActive", 2);
|
|
3029
3174
|
Permission = __decorateClass([
|
|
3030
|
-
(0,
|
|
3175
|
+
(0, import_typeorm29.Entity)("permissions")
|
|
3031
3176
|
], Permission);
|
|
3032
3177
|
|
|
3033
3178
|
// src/entities/company-role-permission.entity.ts
|
|
3034
3179
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3035
3180
|
};
|
|
3036
3181
|
__decorateClass([
|
|
3037
|
-
(0,
|
|
3038
|
-
(0,
|
|
3182
|
+
(0, import_typeorm30.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3183
|
+
(0, import_typeorm30.Index)()
|
|
3039
3184
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3040
3185
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3186
|
+
(0, import_typeorm30.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3042
3187
|
onDelete: "CASCADE"
|
|
3043
3188
|
}),
|
|
3044
|
-
(0,
|
|
3189
|
+
(0, import_typeorm30.JoinColumn)({ name: "company_role_id" })
|
|
3045
3190
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3046
3191
|
__decorateClass([
|
|
3047
|
-
(0,
|
|
3048
|
-
(0,
|
|
3192
|
+
(0, import_typeorm30.Column)({ name: "permission_id", type: "integer" }),
|
|
3193
|
+
(0, import_typeorm30.Index)()
|
|
3049
3194
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3050
3195
|
__decorateClass([
|
|
3051
|
-
(0,
|
|
3052
|
-
(0,
|
|
3196
|
+
(0, import_typeorm30.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3197
|
+
(0, import_typeorm30.JoinColumn)({ name: "permission_id" })
|
|
3053
3198
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3054
3199
|
__decorateClass([
|
|
3055
|
-
(0,
|
|
3200
|
+
(0, import_typeorm30.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3056
3201
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3057
3202
|
CompanyRolePermission = __decorateClass([
|
|
3058
|
-
(0,
|
|
3203
|
+
(0, import_typeorm30.Entity)("company_role_permissions")
|
|
3059
3204
|
], CompanyRolePermission);
|
|
3060
3205
|
|
|
3061
3206
|
// src/entities/company-role.entity.ts
|
|
3062
3207
|
var CompanyRole = class extends BaseEntity {
|
|
3063
3208
|
};
|
|
3064
3209
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3066
|
-
(0,
|
|
3210
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3211
|
+
(0, import_typeorm31.Index)()
|
|
3067
3212
|
], CompanyRole.prototype, "userId", 2);
|
|
3068
3213
|
__decorateClass([
|
|
3069
|
-
(0,
|
|
3070
|
-
(0,
|
|
3214
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.otps),
|
|
3215
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3071
3216
|
], CompanyRole.prototype, "user", 2);
|
|
3072
3217
|
__decorateClass([
|
|
3073
|
-
(0,
|
|
3218
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar" })
|
|
3074
3219
|
], CompanyRole.prototype, "name", 2);
|
|
3075
3220
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3077
|
-
(0,
|
|
3221
|
+
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3222
|
+
(0, import_typeorm31.Index)()
|
|
3078
3223
|
], CompanyRole.prototype, "slug", 2);
|
|
3079
3224
|
__decorateClass([
|
|
3080
|
-
(0,
|
|
3225
|
+
(0, import_typeorm31.Column)({ name: "description", type: "text", nullable: true })
|
|
3081
3226
|
], CompanyRole.prototype, "description", 2);
|
|
3082
3227
|
__decorateClass([
|
|
3083
|
-
(0,
|
|
3228
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3084
3229
|
], CompanyRole.prototype, "isActive", 2);
|
|
3085
3230
|
__decorateClass([
|
|
3086
|
-
(0,
|
|
3231
|
+
(0, import_typeorm31.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3087
3232
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3088
3233
|
CompanyRole = __decorateClass([
|
|
3089
|
-
(0,
|
|
3234
|
+
(0, import_typeorm31.Entity)("company_roles")
|
|
3090
3235
|
], CompanyRole);
|
|
3091
3236
|
|
|
3092
3237
|
// src/entities/company-members-roles.entity.ts
|
|
3093
3238
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3094
3239
|
};
|
|
3095
3240
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3097
|
-
(0,
|
|
3241
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3242
|
+
(0, import_typeorm32.Index)()
|
|
3098
3243
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3099
3244
|
__decorateClass([
|
|
3100
|
-
(0,
|
|
3101
|
-
(0,
|
|
3245
|
+
(0, import_typeorm32.ManyToOne)(() => User),
|
|
3246
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
3102
3247
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3103
3248
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3105
|
-
(0,
|
|
3249
|
+
(0, import_typeorm32.ManyToOne)(() => CompanyRole),
|
|
3250
|
+
(0, import_typeorm32.JoinColumn)({ name: "company_role_id" })
|
|
3106
3251
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3107
3252
|
__decorateClass([
|
|
3108
|
-
(0,
|
|
3109
|
-
(0,
|
|
3253
|
+
(0, import_typeorm32.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3254
|
+
(0, import_typeorm32.Index)()
|
|
3110
3255
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3111
3256
|
__decorateClass([
|
|
3112
|
-
(0,
|
|
3257
|
+
(0, import_typeorm32.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3113
3258
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3114
3259
|
CompanyMemberRole = __decorateClass([
|
|
3115
|
-
(0,
|
|
3260
|
+
(0, import_typeorm32.Entity)("company_member_roles")
|
|
3116
3261
|
], CompanyMemberRole);
|
|
3117
3262
|
|
|
3118
3263
|
// src/entities/assessment-answer.entity.ts
|
|
3119
|
-
var
|
|
3264
|
+
var import_typeorm35 = require("typeorm");
|
|
3120
3265
|
|
|
3121
3266
|
// src/entities/assessment-question.entity.ts
|
|
3122
|
-
var
|
|
3267
|
+
var import_typeorm34 = require("typeorm");
|
|
3123
3268
|
|
|
3124
3269
|
// src/entities/assessment-question-option.entity.ts
|
|
3125
|
-
var
|
|
3270
|
+
var import_typeorm33 = require("typeorm");
|
|
3126
3271
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3127
3272
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3128
3273
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3132,21 +3277,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3132
3277
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3133
3278
|
};
|
|
3134
3279
|
__decorateClass([
|
|
3135
|
-
(0,
|
|
3136
|
-
(0,
|
|
3280
|
+
(0, import_typeorm33.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3281
|
+
(0, import_typeorm33.Index)()
|
|
3137
3282
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3138
3283
|
__decorateClass([
|
|
3139
|
-
(0,
|
|
3284
|
+
(0, import_typeorm33.ManyToOne)(
|
|
3140
3285
|
() => AssessmetQuestion,
|
|
3141
3286
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3142
3287
|
),
|
|
3143
|
-
(0,
|
|
3288
|
+
(0, import_typeorm33.JoinColumn)({ name: "question_id" })
|
|
3144
3289
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3145
3290
|
__decorateClass([
|
|
3146
|
-
(0,
|
|
3291
|
+
(0, import_typeorm33.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3147
3292
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3148
3293
|
__decorateClass([
|
|
3149
|
-
(0,
|
|
3294
|
+
(0, import_typeorm33.Column)({
|
|
3150
3295
|
name: "answer_type",
|
|
3151
3296
|
type: "enum",
|
|
3152
3297
|
enum: AnswerTypeEnum,
|
|
@@ -3154,13 +3299,13 @@ __decorateClass([
|
|
|
3154
3299
|
})
|
|
3155
3300
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3156
3301
|
__decorateClass([
|
|
3157
|
-
(0,
|
|
3302
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3158
3303
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3159
3304
|
__decorateClass([
|
|
3160
|
-
(0,
|
|
3305
|
+
(0, import_typeorm33.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3161
3306
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3162
3307
|
AssessmetQuestionOption = __decorateClass([
|
|
3163
|
-
(0,
|
|
3308
|
+
(0, import_typeorm33.Entity)("assessment_question_options")
|
|
3164
3309
|
], AssessmetQuestionOption);
|
|
3165
3310
|
|
|
3166
3311
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3172,10 +3317,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3172
3317
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3173
3318
|
};
|
|
3174
3319
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3320
|
+
(0, import_typeorm34.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3176
3321
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3177
3322
|
__decorateClass([
|
|
3178
|
-
(0,
|
|
3323
|
+
(0, import_typeorm34.Column)({
|
|
3179
3324
|
name: "question_for",
|
|
3180
3325
|
type: "enum",
|
|
3181
3326
|
enum: QuestionForEnum,
|
|
@@ -3183,16 +3328,16 @@ __decorateClass([
|
|
|
3183
3328
|
})
|
|
3184
3329
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3185
3330
|
__decorateClass([
|
|
3186
|
-
(0,
|
|
3331
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3187
3332
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3188
3333
|
__decorateClass([
|
|
3189
|
-
(0,
|
|
3334
|
+
(0, import_typeorm34.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3190
3335
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3191
3336
|
__decorateClass([
|
|
3192
|
-
(0,
|
|
3337
|
+
(0, import_typeorm34.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3193
3338
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3194
3339
|
AssessmetQuestion = __decorateClass([
|
|
3195
|
-
(0,
|
|
3340
|
+
(0, import_typeorm34.Entity)("assessment_questions")
|
|
3196
3341
|
], AssessmetQuestion);
|
|
3197
3342
|
|
|
3198
3343
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3205,118 +3350,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3205
3350
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3206
3351
|
};
|
|
3207
3352
|
__decorateClass([
|
|
3208
|
-
(0,
|
|
3209
|
-
(0,
|
|
3353
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer" }),
|
|
3354
|
+
(0, import_typeorm35.Index)()
|
|
3210
3355
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3211
3356
|
__decorateClass([
|
|
3212
|
-
(0,
|
|
3213
|
-
(0,
|
|
3357
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3358
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3214
3359
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3215
3360
|
__decorateClass([
|
|
3216
|
-
(0,
|
|
3217
|
-
(0,
|
|
3361
|
+
(0, import_typeorm35.Column)({ name: "question_id", type: "integer" }),
|
|
3362
|
+
(0, import_typeorm35.Index)()
|
|
3218
3363
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3219
3364
|
__decorateClass([
|
|
3220
|
-
(0,
|
|
3365
|
+
(0, import_typeorm35.ManyToOne)(
|
|
3221
3366
|
() => AssessmetQuestion,
|
|
3222
3367
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3223
3368
|
),
|
|
3224
|
-
(0,
|
|
3369
|
+
(0, import_typeorm35.JoinColumn)({ name: "question_id" })
|
|
3225
3370
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3226
3371
|
__decorateClass([
|
|
3227
|
-
(0,
|
|
3228
|
-
(0,
|
|
3372
|
+
(0, import_typeorm35.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3373
|
+
(0, import_typeorm35.Index)()
|
|
3229
3374
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3230
3375
|
__decorateClass([
|
|
3231
|
-
(0,
|
|
3376
|
+
(0, import_typeorm35.ManyToOne)(
|
|
3232
3377
|
() => AssessmetQuestionOption,
|
|
3233
3378
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3234
3379
|
),
|
|
3235
|
-
(0,
|
|
3380
|
+
(0, import_typeorm35.JoinColumn)({ name: "selected_option_id" })
|
|
3236
3381
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3237
3382
|
__decorateClass([
|
|
3238
|
-
(0,
|
|
3383
|
+
(0, import_typeorm35.Column)({
|
|
3239
3384
|
name: "selected_answer_type",
|
|
3240
3385
|
type: "enum",
|
|
3241
3386
|
enum: SelectedAnswerTypeEnum
|
|
3242
3387
|
})
|
|
3243
3388
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3244
3389
|
__decorateClass([
|
|
3245
|
-
(0,
|
|
3390
|
+
(0, import_typeorm35.Column)({ name: "score", type: "float" })
|
|
3246
3391
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3247
3392
|
AssessmentAnswer = __decorateClass([
|
|
3248
|
-
(0,
|
|
3393
|
+
(0, import_typeorm35.Entity)("assessment_answers")
|
|
3249
3394
|
], AssessmentAnswer);
|
|
3250
3395
|
|
|
3251
3396
|
// src/entities/company-skill.entity.ts
|
|
3252
|
-
var
|
|
3397
|
+
var import_typeorm36 = require("typeorm");
|
|
3253
3398
|
var CompanySkill = class extends BaseEntity {
|
|
3254
3399
|
};
|
|
3255
3400
|
// individual index to find core skills by user
|
|
3256
3401
|
__decorateClass([
|
|
3257
|
-
(0,
|
|
3258
|
-
(0,
|
|
3402
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3403
|
+
(0, import_typeorm36.Index)()
|
|
3259
3404
|
], CompanySkill.prototype, "userId", 2);
|
|
3260
3405
|
__decorateClass([
|
|
3261
|
-
(0,
|
|
3262
|
-
(0,
|
|
3406
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3407
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
3263
3408
|
], CompanySkill.prototype, "user", 2);
|
|
3264
3409
|
__decorateClass([
|
|
3265
|
-
(0,
|
|
3410
|
+
(0, import_typeorm36.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3266
3411
|
], CompanySkill.prototype, "skillName", 2);
|
|
3267
3412
|
CompanySkill = __decorateClass([
|
|
3268
|
-
(0,
|
|
3413
|
+
(0, import_typeorm36.Entity)("company_skills")
|
|
3269
3414
|
], CompanySkill);
|
|
3270
3415
|
|
|
3271
3416
|
// src/entities/admin-user-role.entity.ts
|
|
3272
|
-
var
|
|
3417
|
+
var import_typeorm40 = require("typeorm");
|
|
3273
3418
|
|
|
3274
3419
|
// src/entities/admin-role.entity.ts
|
|
3275
|
-
var
|
|
3420
|
+
var import_typeorm39 = require("typeorm");
|
|
3276
3421
|
|
|
3277
3422
|
// src/entities/admin-role-permission.entity.ts
|
|
3278
|
-
var
|
|
3423
|
+
var import_typeorm38 = require("typeorm");
|
|
3279
3424
|
|
|
3280
3425
|
// src/entities/admin-permission.entity.ts
|
|
3281
|
-
var
|
|
3426
|
+
var import_typeorm37 = require("typeorm");
|
|
3282
3427
|
var AdminPermission = class extends BaseEntity {
|
|
3283
3428
|
};
|
|
3284
3429
|
__decorateClass([
|
|
3285
|
-
(0,
|
|
3430
|
+
(0, import_typeorm37.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3286
3431
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3287
3432
|
__decorateClass([
|
|
3288
|
-
(0,
|
|
3433
|
+
(0, import_typeorm37.Column)({
|
|
3289
3434
|
name: "permission_slug",
|
|
3290
3435
|
type: "varchar",
|
|
3291
3436
|
unique: true,
|
|
3292
3437
|
nullable: true
|
|
3293
3438
|
}),
|
|
3294
|
-
(0,
|
|
3439
|
+
(0, import_typeorm37.Index)()
|
|
3295
3440
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3296
3441
|
__decorateClass([
|
|
3297
|
-
(0,
|
|
3442
|
+
(0, import_typeorm37.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3298
3443
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3299
3444
|
__decorateClass([
|
|
3300
|
-
(0,
|
|
3445
|
+
(0, import_typeorm37.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3301
3446
|
], AdminPermission.prototype, "module", 2);
|
|
3302
3447
|
__decorateClass([
|
|
3303
|
-
(0,
|
|
3448
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3304
3449
|
], AdminPermission.prototype, "isActive", 2);
|
|
3305
3450
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3451
|
+
(0, import_typeorm37.OneToMany)(
|
|
3307
3452
|
() => AdminRolePermission,
|
|
3308
3453
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3309
3454
|
)
|
|
3310
3455
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3311
3456
|
AdminPermission = __decorateClass([
|
|
3312
|
-
(0,
|
|
3457
|
+
(0, import_typeorm37.Entity)("admin_permissions")
|
|
3313
3458
|
], AdminPermission);
|
|
3314
3459
|
|
|
3315
3460
|
// src/entities/admin-role-permission.entity.ts
|
|
3316
3461
|
var AdminRolePermission = class extends BaseEntity {
|
|
3317
3462
|
};
|
|
3318
3463
|
__decorateClass([
|
|
3319
|
-
(0,
|
|
3464
|
+
(0, import_typeorm38.Column)({
|
|
3320
3465
|
name: "role_id",
|
|
3321
3466
|
type: "int",
|
|
3322
3467
|
nullable: true,
|
|
@@ -3324,11 +3469,11 @@ __decorateClass([
|
|
|
3324
3469
|
})
|
|
3325
3470
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3326
3471
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3328
|
-
(0,
|
|
3472
|
+
(0, import_typeorm38.ManyToOne)(() => AdminRole),
|
|
3473
|
+
(0, import_typeorm38.JoinColumn)({ name: "role_id" })
|
|
3329
3474
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3330
3475
|
__decorateClass([
|
|
3331
|
-
(0,
|
|
3476
|
+
(0, import_typeorm38.Column)({
|
|
3332
3477
|
name: "permission_id",
|
|
3333
3478
|
type: "int",
|
|
3334
3479
|
nullable: true,
|
|
@@ -3336,47 +3481,47 @@ __decorateClass([
|
|
|
3336
3481
|
})
|
|
3337
3482
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3338
3483
|
__decorateClass([
|
|
3339
|
-
(0,
|
|
3340
|
-
(0,
|
|
3484
|
+
(0, import_typeorm38.ManyToOne)(() => AdminPermission),
|
|
3485
|
+
(0, import_typeorm38.JoinColumn)({ name: "permission_id" })
|
|
3341
3486
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3342
3487
|
AdminRolePermission = __decorateClass([
|
|
3343
|
-
(0,
|
|
3488
|
+
(0, import_typeorm38.Entity)("admin_role_permissions")
|
|
3344
3489
|
], AdminRolePermission);
|
|
3345
3490
|
|
|
3346
3491
|
// src/entities/admin-role.entity.ts
|
|
3347
3492
|
var AdminRole = class extends BaseEntity {
|
|
3348
3493
|
};
|
|
3349
3494
|
__decorateClass([
|
|
3350
|
-
(0,
|
|
3495
|
+
(0, import_typeorm39.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3351
3496
|
], AdminRole.prototype, "roleName", 2);
|
|
3352
3497
|
__decorateClass([
|
|
3353
|
-
(0,
|
|
3354
|
-
(0,
|
|
3498
|
+
(0, import_typeorm39.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3499
|
+
(0, import_typeorm39.Index)()
|
|
3355
3500
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3356
3501
|
__decorateClass([
|
|
3357
|
-
(0,
|
|
3502
|
+
(0, import_typeorm39.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3358
3503
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3359
3504
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3505
|
+
(0, import_typeorm39.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3361
3506
|
], AdminRole.prototype, "isActive", 2);
|
|
3362
3507
|
__decorateClass([
|
|
3363
|
-
(0,
|
|
3508
|
+
(0, import_typeorm39.OneToMany)(
|
|
3364
3509
|
() => AdminRolePermission,
|
|
3365
3510
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3366
3511
|
)
|
|
3367
3512
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3368
3513
|
__decorateClass([
|
|
3369
|
-
(0,
|
|
3514
|
+
(0, import_typeorm39.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3370
3515
|
], AdminRole.prototype, "userRoles", 2);
|
|
3371
3516
|
AdminRole = __decorateClass([
|
|
3372
|
-
(0,
|
|
3517
|
+
(0, import_typeorm39.Entity)("admin_roles")
|
|
3373
3518
|
], AdminRole);
|
|
3374
3519
|
|
|
3375
3520
|
// src/entities/admin-user-role.entity.ts
|
|
3376
3521
|
var AdminUserRole = class extends BaseEntity {
|
|
3377
3522
|
};
|
|
3378
3523
|
__decorateClass([
|
|
3379
|
-
(0,
|
|
3524
|
+
(0, import_typeorm40.Column)({
|
|
3380
3525
|
name: "user_id",
|
|
3381
3526
|
type: "int",
|
|
3382
3527
|
nullable: true,
|
|
@@ -3384,11 +3529,11 @@ __decorateClass([
|
|
|
3384
3529
|
})
|
|
3385
3530
|
], AdminUserRole.prototype, "userId", 2);
|
|
3386
3531
|
__decorateClass([
|
|
3387
|
-
(0,
|
|
3388
|
-
(0,
|
|
3532
|
+
(0, import_typeorm40.ManyToOne)(() => User),
|
|
3533
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
3389
3534
|
], AdminUserRole.prototype, "user", 2);
|
|
3390
3535
|
__decorateClass([
|
|
3391
|
-
(0,
|
|
3536
|
+
(0, import_typeorm40.Column)({
|
|
3392
3537
|
name: "role_id",
|
|
3393
3538
|
type: "int",
|
|
3394
3539
|
nullable: true,
|
|
@@ -3396,34 +3541,34 @@ __decorateClass([
|
|
|
3396
3541
|
})
|
|
3397
3542
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3398
3543
|
__decorateClass([
|
|
3399
|
-
(0,
|
|
3400
|
-
(0,
|
|
3544
|
+
(0, import_typeorm40.ManyToOne)(() => AdminRole),
|
|
3545
|
+
(0, import_typeorm40.JoinColumn)({ name: "role_id" })
|
|
3401
3546
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3402
3547
|
AdminUserRole = __decorateClass([
|
|
3403
|
-
(0,
|
|
3548
|
+
(0, import_typeorm40.Entity)("admin_user_roles")
|
|
3404
3549
|
], AdminUserRole);
|
|
3405
3550
|
|
|
3406
3551
|
// src/entities/freelancer-resume.entity.ts
|
|
3407
|
-
var
|
|
3552
|
+
var import_typeorm41 = require("typeorm");
|
|
3408
3553
|
var FreelancerResume = class extends BaseEntity {
|
|
3409
3554
|
};
|
|
3410
3555
|
// individual index to find profile by user
|
|
3411
3556
|
__decorateClass([
|
|
3412
|
-
(0,
|
|
3413
|
-
(0,
|
|
3557
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3558
|
+
(0, import_typeorm41.Index)()
|
|
3414
3559
|
], FreelancerResume.prototype, "userId", 2);
|
|
3415
3560
|
__decorateClass([
|
|
3416
|
-
(0,
|
|
3417
|
-
(0,
|
|
3561
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3562
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
3418
3563
|
], FreelancerResume.prototype, "user", 2);
|
|
3419
3564
|
__decorateClass([
|
|
3420
|
-
(0,
|
|
3565
|
+
(0, import_typeorm41.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3421
3566
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3422
3567
|
__decorateClass([
|
|
3423
|
-
(0,
|
|
3568
|
+
(0, import_typeorm41.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3424
3569
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3425
3570
|
FreelancerResume = __decorateClass([
|
|
3426
|
-
(0,
|
|
3571
|
+
(0, import_typeorm41.Entity)("freelancer_resumes")
|
|
3427
3572
|
], FreelancerResume);
|
|
3428
3573
|
|
|
3429
3574
|
// src/entities/user.entity.ts
|
|
@@ -3451,51 +3596,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3451
3596
|
var User = class extends BaseEntity {
|
|
3452
3597
|
};
|
|
3453
3598
|
__decorateClass([
|
|
3454
|
-
(0,
|
|
3599
|
+
(0, import_typeorm42.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3455
3600
|
], User.prototype, "uniqueId", 2);
|
|
3456
3601
|
__decorateClass([
|
|
3457
|
-
(0,
|
|
3458
|
-
(0,
|
|
3602
|
+
(0, import_typeorm42.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3603
|
+
(0, import_typeorm42.Index)()
|
|
3459
3604
|
], User.prototype, "parentId", 2);
|
|
3460
3605
|
__decorateClass([
|
|
3461
|
-
(0,
|
|
3462
|
-
(0,
|
|
3606
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3607
|
+
(0, import_typeorm42.JoinColumn)({ name: "parent_id" })
|
|
3463
3608
|
], User.prototype, "parent", 2);
|
|
3464
3609
|
__decorateClass([
|
|
3465
|
-
(0,
|
|
3610
|
+
(0, import_typeorm42.OneToMany)(() => User, (user) => user.parent)
|
|
3466
3611
|
], User.prototype, "children", 2);
|
|
3467
3612
|
__decorateClass([
|
|
3468
|
-
(0,
|
|
3613
|
+
(0, import_typeorm42.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3469
3614
|
], User.prototype, "username", 2);
|
|
3470
3615
|
__decorateClass([
|
|
3471
|
-
(0,
|
|
3616
|
+
(0, import_typeorm42.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3472
3617
|
], User.prototype, "firstName", 2);
|
|
3473
3618
|
__decorateClass([
|
|
3474
|
-
(0,
|
|
3619
|
+
(0, import_typeorm42.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3475
3620
|
], User.prototype, "lastName", 2);
|
|
3476
3621
|
__decorateClass([
|
|
3477
|
-
(0,
|
|
3622
|
+
(0, import_typeorm42.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3478
3623
|
], User.prototype, "dateOfBirth", 2);
|
|
3479
3624
|
__decorateClass([
|
|
3480
|
-
(0,
|
|
3625
|
+
(0, import_typeorm42.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3481
3626
|
], User.prototype, "gender", 2);
|
|
3482
3627
|
__decorateClass([
|
|
3483
|
-
(0,
|
|
3628
|
+
(0, import_typeorm42.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3484
3629
|
], User.prototype, "profilePictureUrl", 2);
|
|
3485
3630
|
__decorateClass([
|
|
3486
|
-
(0,
|
|
3631
|
+
(0, import_typeorm42.Column)({ name: "email", type: "varchar", unique: true })
|
|
3487
3632
|
], User.prototype, "email", 2);
|
|
3488
3633
|
__decorateClass([
|
|
3489
|
-
(0,
|
|
3634
|
+
(0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3490
3635
|
], User.prototype, "mobileCode", 2);
|
|
3491
3636
|
__decorateClass([
|
|
3492
|
-
(0,
|
|
3637
|
+
(0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3493
3638
|
], User.prototype, "mobile", 2);
|
|
3494
3639
|
__decorateClass([
|
|
3495
|
-
(0,
|
|
3640
|
+
(0, import_typeorm42.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3496
3641
|
], User.prototype, "password", 2);
|
|
3497
3642
|
__decorateClass([
|
|
3498
|
-
(0,
|
|
3643
|
+
(0, import_typeorm42.Column)({
|
|
3499
3644
|
name: "account_type",
|
|
3500
3645
|
type: "enum",
|
|
3501
3646
|
enum: AccountType,
|
|
@@ -3503,7 +3648,7 @@ __decorateClass([
|
|
|
3503
3648
|
})
|
|
3504
3649
|
], User.prototype, "accountType", 2);
|
|
3505
3650
|
__decorateClass([
|
|
3506
|
-
(0,
|
|
3651
|
+
(0, import_typeorm42.Column)({
|
|
3507
3652
|
name: "account_status",
|
|
3508
3653
|
type: "enum",
|
|
3509
3654
|
enum: AccountStatus,
|
|
@@ -3511,39 +3656,39 @@ __decorateClass([
|
|
|
3511
3656
|
})
|
|
3512
3657
|
], User.prototype, "accountStatus", 2);
|
|
3513
3658
|
__decorateClass([
|
|
3514
|
-
(0,
|
|
3659
|
+
(0, import_typeorm42.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3515
3660
|
], User.prototype, "isEmailVerified", 2);
|
|
3516
3661
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3662
|
+
(0, import_typeorm42.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3518
3663
|
], User.prototype, "isMobileVerified", 2);
|
|
3519
3664
|
__decorateClass([
|
|
3520
|
-
(0,
|
|
3665
|
+
(0, import_typeorm42.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3521
3666
|
], User.prototype, "isSocial", 2);
|
|
3522
3667
|
__decorateClass([
|
|
3523
|
-
(0,
|
|
3668
|
+
(0, import_typeorm42.Column)({
|
|
3524
3669
|
name: "last_login_at",
|
|
3525
3670
|
type: "timestamp with time zone",
|
|
3526
3671
|
nullable: true
|
|
3527
3672
|
})
|
|
3528
3673
|
], User.prototype, "lastLoginAt", 2);
|
|
3529
3674
|
__decorateClass([
|
|
3530
|
-
(0,
|
|
3675
|
+
(0, import_typeorm42.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3531
3676
|
], User.prototype, "lastLoginIp", 2);
|
|
3532
3677
|
__decorateClass([
|
|
3533
|
-
(0,
|
|
3678
|
+
(0, import_typeorm42.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3534
3679
|
], User.prototype, "resetToken", 2);
|
|
3535
3680
|
__decorateClass([
|
|
3536
|
-
(0,
|
|
3681
|
+
(0, import_typeorm42.Column)({
|
|
3537
3682
|
name: "reset_token_expire_at",
|
|
3538
3683
|
type: "timestamp with time zone",
|
|
3539
3684
|
nullable: true
|
|
3540
3685
|
})
|
|
3541
3686
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3542
3687
|
__decorateClass([
|
|
3543
|
-
(0,
|
|
3688
|
+
(0, import_typeorm42.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3544
3689
|
], User.prototype, "refreshTokens", 2);
|
|
3545
3690
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3691
|
+
(0, import_typeorm42.Column)({
|
|
3547
3692
|
name: "provider",
|
|
3548
3693
|
type: "enum",
|
|
3549
3694
|
enum: Provider,
|
|
@@ -3552,94 +3697,94 @@ __decorateClass([
|
|
|
3552
3697
|
})
|
|
3553
3698
|
], User.prototype, "provider", 2);
|
|
3554
3699
|
__decorateClass([
|
|
3555
|
-
(0,
|
|
3700
|
+
(0, import_typeorm42.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3556
3701
|
], User.prototype, "providerToken", 2);
|
|
3557
3702
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3703
|
+
(0, import_typeorm42.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3559
3704
|
], User.prototype, "linkedInId", 2);
|
|
3560
3705
|
__decorateClass([
|
|
3561
|
-
(0,
|
|
3706
|
+
(0, import_typeorm42.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3562
3707
|
], User.prototype, "googleId", 2);
|
|
3563
3708
|
__decorateClass([
|
|
3564
|
-
(0,
|
|
3709
|
+
(0, import_typeorm42.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3565
3710
|
], User.prototype, "gitLabsId", 2);
|
|
3566
3711
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3712
|
+
(0, import_typeorm42.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3568
3713
|
], User.prototype, "otps", 2);
|
|
3569
3714
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3715
|
+
(0, import_typeorm42.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3571
3716
|
], User.prototype, "senseloafLogs", 2);
|
|
3572
3717
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3718
|
+
(0, import_typeorm42.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3574
3719
|
], User.prototype, "companyProfile", 2);
|
|
3575
3720
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3721
|
+
(0, import_typeorm42.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3577
3722
|
], User.prototype, "companySkills", 2);
|
|
3578
3723
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3724
|
+
(0, import_typeorm42.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3580
3725
|
], User.prototype, "companyMemberRoles", 2);
|
|
3581
3726
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3727
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3583
3728
|
], User.prototype, "freelancerProfile", 2);
|
|
3584
3729
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3730
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3586
3731
|
], User.prototype, "freelancerResume", 2);
|
|
3587
3732
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3733
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3589
3734
|
], User.prototype, "assessments", 2);
|
|
3590
3735
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3736
|
+
(0, import_typeorm42.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3592
3737
|
], User.prototype, "assessmentAnswers", 2);
|
|
3593
3738
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3739
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3595
3740
|
], User.prototype, "freelancerSkills", 2);
|
|
3596
3741
|
__decorateClass([
|
|
3597
|
-
(0,
|
|
3742
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3598
3743
|
], User.prototype, "freelancerExperience", 2);
|
|
3599
3744
|
__decorateClass([
|
|
3600
|
-
(0,
|
|
3745
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3601
3746
|
], User.prototype, "freelancerEducation", 2);
|
|
3602
3747
|
__decorateClass([
|
|
3603
|
-
(0,
|
|
3748
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3604
3749
|
], User.prototype, "freelancerProject", 2);
|
|
3605
3750
|
__decorateClass([
|
|
3606
|
-
(0,
|
|
3751
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3607
3752
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3608
3753
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3754
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3610
3755
|
], User.prototype, "freelancerTool", 2);
|
|
3611
3756
|
__decorateClass([
|
|
3612
|
-
(0,
|
|
3757
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3613
3758
|
], User.prototype, "freelancerFramework", 2);
|
|
3614
3759
|
__decorateClass([
|
|
3615
|
-
(0,
|
|
3760
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3616
3761
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3617
3762
|
__decorateClass([
|
|
3618
|
-
(0,
|
|
3763
|
+
(0, import_typeorm42.OneToMany)(() => Job, (job) => job.user)
|
|
3619
3764
|
], User.prototype, "jobs", 2);
|
|
3620
3765
|
__decorateClass([
|
|
3621
|
-
(0,
|
|
3766
|
+
(0, import_typeorm42.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3622
3767
|
], User.prototype, "jobApplications", 2);
|
|
3623
3768
|
__decorateClass([
|
|
3624
|
-
(0,
|
|
3769
|
+
(0, import_typeorm42.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3625
3770
|
], User.prototype, "interviews", 2);
|
|
3626
3771
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3772
|
+
(0, import_typeorm42.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3628
3773
|
], User.prototype, "bankDetail", 2);
|
|
3629
3774
|
__decorateClass([
|
|
3630
|
-
(0,
|
|
3775
|
+
(0, import_typeorm42.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3631
3776
|
], User.prototype, "systemPreference", 2);
|
|
3632
3777
|
__decorateClass([
|
|
3633
|
-
(0,
|
|
3778
|
+
(0, import_typeorm42.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3634
3779
|
], User.prototype, "givenRatings", 2);
|
|
3635
3780
|
__decorateClass([
|
|
3636
|
-
(0,
|
|
3781
|
+
(0, import_typeorm42.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3637
3782
|
], User.prototype, "receivedRatings", 2);
|
|
3638
3783
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3784
|
+
(0, import_typeorm42.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3640
3785
|
], User.prototype, "adminUserRoles", 2);
|
|
3641
3786
|
User = __decorateClass([
|
|
3642
|
-
(0,
|
|
3787
|
+
(0, import_typeorm42.Entity)("users")
|
|
3643
3788
|
], User);
|
|
3644
3789
|
|
|
3645
3790
|
// src/entities/rating.entity.ts
|
|
@@ -3651,36 +3796,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3651
3796
|
var Rating = class extends BaseEntity {
|
|
3652
3797
|
};
|
|
3653
3798
|
__decorateClass([
|
|
3654
|
-
(0,
|
|
3655
|
-
(0,
|
|
3799
|
+
(0, import_typeorm43.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3800
|
+
(0, import_typeorm43.Index)()
|
|
3656
3801
|
], Rating.prototype, "reviewer_id", 2);
|
|
3657
3802
|
__decorateClass([
|
|
3658
|
-
(0,
|
|
3659
|
-
(0,
|
|
3803
|
+
(0, import_typeorm43.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3804
|
+
(0, import_typeorm43.JoinColumn)({ name: "reviewer_id" })
|
|
3660
3805
|
], Rating.prototype, "reviewer", 2);
|
|
3661
3806
|
__decorateClass([
|
|
3662
|
-
(0,
|
|
3663
|
-
(0,
|
|
3807
|
+
(0, import_typeorm43.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3808
|
+
(0, import_typeorm43.Index)()
|
|
3664
3809
|
], Rating.prototype, "reviewee_id", 2);
|
|
3665
3810
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3667
|
-
(0,
|
|
3811
|
+
(0, import_typeorm43.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3812
|
+
(0, import_typeorm43.JoinColumn)({ name: "reviewee_id" })
|
|
3668
3813
|
], Rating.prototype, "reviewee", 2);
|
|
3669
3814
|
__decorateClass([
|
|
3670
|
-
(0,
|
|
3815
|
+
(0, import_typeorm43.Column)({
|
|
3671
3816
|
type: "enum",
|
|
3672
3817
|
enum: RatingTypeEnum,
|
|
3673
3818
|
nullable: true
|
|
3674
3819
|
})
|
|
3675
3820
|
], Rating.prototype, "ratingType", 2);
|
|
3676
3821
|
__decorateClass([
|
|
3677
|
-
(0,
|
|
3822
|
+
(0, import_typeorm43.Column)({ type: "integer", nullable: true })
|
|
3678
3823
|
], Rating.prototype, "rating", 2);
|
|
3679
3824
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3825
|
+
(0, import_typeorm43.Column)({ type: "text", nullable: true })
|
|
3681
3826
|
], Rating.prototype, "review", 2);
|
|
3682
3827
|
Rating = __decorateClass([
|
|
3683
|
-
(0,
|
|
3828
|
+
(0, import_typeorm43.Entity)("ratings")
|
|
3684
3829
|
], Rating);
|
|
3685
3830
|
|
|
3686
3831
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4958,11 +5103,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4958
5103
|
};
|
|
4959
5104
|
|
|
4960
5105
|
// src/entities/sequence-generator.entity.ts
|
|
4961
|
-
var
|
|
5106
|
+
var import_typeorm44 = require("typeorm");
|
|
4962
5107
|
var SequenceGenerator = class extends BaseEntity {
|
|
4963
5108
|
};
|
|
4964
5109
|
__decorateClass([
|
|
4965
|
-
(0,
|
|
5110
|
+
(0, import_typeorm44.Column)({
|
|
4966
5111
|
name: "module",
|
|
4967
5112
|
type: "varchar",
|
|
4968
5113
|
length: 50,
|
|
@@ -4971,7 +5116,7 @@ __decorateClass([
|
|
|
4971
5116
|
})
|
|
4972
5117
|
], SequenceGenerator.prototype, "module", 2);
|
|
4973
5118
|
__decorateClass([
|
|
4974
|
-
(0,
|
|
5119
|
+
(0, import_typeorm44.Column)({
|
|
4975
5120
|
name: "prefix",
|
|
4976
5121
|
type: "varchar",
|
|
4977
5122
|
length: 10,
|
|
@@ -4980,7 +5125,7 @@ __decorateClass([
|
|
|
4980
5125
|
})
|
|
4981
5126
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
4982
5127
|
__decorateClass([
|
|
4983
|
-
(0,
|
|
5128
|
+
(0, import_typeorm44.Column)({
|
|
4984
5129
|
name: "last_sequence",
|
|
4985
5130
|
type: "int",
|
|
4986
5131
|
nullable: false,
|
|
@@ -4988,7 +5133,7 @@ __decorateClass([
|
|
|
4988
5133
|
})
|
|
4989
5134
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
4990
5135
|
__decorateClass([
|
|
4991
|
-
(0,
|
|
5136
|
+
(0, import_typeorm44.Column)({
|
|
4992
5137
|
name: "year",
|
|
4993
5138
|
type: "int",
|
|
4994
5139
|
nullable: true,
|
|
@@ -4996,11 +5141,11 @@ __decorateClass([
|
|
|
4996
5141
|
})
|
|
4997
5142
|
], SequenceGenerator.prototype, "year", 2);
|
|
4998
5143
|
SequenceGenerator = __decorateClass([
|
|
4999
|
-
(0,
|
|
5144
|
+
(0, import_typeorm44.Entity)("sequence_generators")
|
|
5000
5145
|
], SequenceGenerator);
|
|
5001
5146
|
|
|
5002
5147
|
// src/entities/question.entity.ts
|
|
5003
|
-
var
|
|
5148
|
+
var import_typeorm45 = require("typeorm");
|
|
5004
5149
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5005
5150
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5006
5151
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5009,16 +5154,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5009
5154
|
var Question = class extends BaseEntity {
|
|
5010
5155
|
};
|
|
5011
5156
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5157
|
+
(0, import_typeorm45.Column)({ name: "question", type: "varchar" })
|
|
5013
5158
|
], Question.prototype, "question", 2);
|
|
5014
5159
|
__decorateClass([
|
|
5015
|
-
(0,
|
|
5160
|
+
(0, import_typeorm45.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5016
5161
|
], Question.prototype, "hint", 2);
|
|
5017
5162
|
__decorateClass([
|
|
5018
|
-
(0,
|
|
5163
|
+
(0, import_typeorm45.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5019
5164
|
], Question.prototype, "slug", 2);
|
|
5020
5165
|
__decorateClass([
|
|
5021
|
-
(0,
|
|
5166
|
+
(0, import_typeorm45.Column)({
|
|
5022
5167
|
name: "question_for",
|
|
5023
5168
|
type: "enum",
|
|
5024
5169
|
enum: QuestionFor,
|
|
@@ -5026,153 +5171,54 @@ __decorateClass([
|
|
|
5026
5171
|
})
|
|
5027
5172
|
], Question.prototype, "questionFor", 2);
|
|
5028
5173
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5174
|
+
(0, import_typeorm45.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5030
5175
|
], Question.prototype, "type", 2);
|
|
5031
5176
|
__decorateClass([
|
|
5032
|
-
(0,
|
|
5177
|
+
(0, import_typeorm45.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5033
5178
|
], Question.prototype, "options", 2);
|
|
5034
5179
|
__decorateClass([
|
|
5035
|
-
(0,
|
|
5180
|
+
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5036
5181
|
], Question.prototype, "isActive", 2);
|
|
5037
5182
|
Question = __decorateClass([
|
|
5038
|
-
(0,
|
|
5183
|
+
(0, import_typeorm45.Entity)("questions")
|
|
5039
5184
|
], Question);
|
|
5040
5185
|
|
|
5041
5186
|
// src/entities/skill.entity.ts
|
|
5042
|
-
var
|
|
5187
|
+
var import_typeorm46 = require("typeorm");
|
|
5043
5188
|
var Skill = class extends BaseEntity {
|
|
5044
5189
|
};
|
|
5045
5190
|
__decorateClass([
|
|
5046
|
-
(0,
|
|
5191
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5047
5192
|
], Skill.prototype, "name", 2);
|
|
5048
5193
|
__decorateClass([
|
|
5049
|
-
(0,
|
|
5194
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5050
5195
|
], Skill.prototype, "slug", 2);
|
|
5051
5196
|
__decorateClass([
|
|
5052
|
-
(0,
|
|
5197
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5053
5198
|
], Skill.prototype, "isActive", 2);
|
|
5054
5199
|
Skill = __decorateClass([
|
|
5055
|
-
(0,
|
|
5200
|
+
(0, import_typeorm46.Entity)("skills")
|
|
5056
5201
|
], Skill);
|
|
5057
5202
|
|
|
5058
5203
|
// src/entities/job-role.entity.ts
|
|
5059
|
-
var
|
|
5204
|
+
var import_typeorm47 = require("typeorm");
|
|
5060
5205
|
var JobRoles = class extends BaseEntity {
|
|
5061
5206
|
};
|
|
5062
5207
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5208
|
+
(0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5064
5209
|
], JobRoles.prototype, "slug", 2);
|
|
5065
5210
|
__decorateClass([
|
|
5066
|
-
(0,
|
|
5211
|
+
(0, import_typeorm47.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5067
5212
|
], JobRoles.prototype, "name", 2);
|
|
5068
5213
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5214
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5070
5215
|
], JobRoles.prototype, "isActive", 2);
|
|
5071
5216
|
JobRoles = __decorateClass([
|
|
5072
|
-
(0,
|
|
5217
|
+
(0, import_typeorm47.Entity)("job_roles")
|
|
5073
5218
|
], JobRoles);
|
|
5074
5219
|
|
|
5075
|
-
// src/entities/interview-invite.entity.ts
|
|
5076
|
-
var import_typeorm46 = require("typeorm");
|
|
5077
|
-
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
5078
|
-
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
5079
|
-
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
5080
|
-
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
5081
|
-
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
5082
|
-
return InterviewInviteStatusEnum2;
|
|
5083
|
-
})(InterviewInviteStatusEnum || {});
|
|
5084
|
-
var InterviewInvite = class extends BaseEntity {
|
|
5085
|
-
};
|
|
5086
|
-
__decorateClass([
|
|
5087
|
-
(0, import_typeorm46.Column)({
|
|
5088
|
-
name: "interview_id",
|
|
5089
|
-
type: "integer",
|
|
5090
|
-
comment: "Column to specify interview id"
|
|
5091
|
-
}),
|
|
5092
|
-
(0, import_typeorm46.Index)()
|
|
5093
|
-
], InterviewInvite.prototype, "interviewId", 2);
|
|
5094
|
-
__decorateClass([
|
|
5095
|
-
(0, import_typeorm46.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5096
|
-
(0, import_typeorm46.JoinColumn)({ name: "interview_id" })
|
|
5097
|
-
], InterviewInvite.prototype, "interview", 2);
|
|
5098
|
-
__decorateClass([
|
|
5099
|
-
(0, import_typeorm46.Column)({
|
|
5100
|
-
name: "user_id",
|
|
5101
|
-
type: "integer",
|
|
5102
|
-
nullable: true,
|
|
5103
|
-
comment: "FK to User entity if candidate is already registered"
|
|
5104
|
-
}),
|
|
5105
|
-
(0, import_typeorm46.Index)()
|
|
5106
|
-
], InterviewInvite.prototype, "userId", 2);
|
|
5107
|
-
__decorateClass([
|
|
5108
|
-
(0, import_typeorm46.ManyToOne)(() => User),
|
|
5109
|
-
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5110
|
-
], InterviewInvite.prototype, "user", 2);
|
|
5111
|
-
__decorateClass([
|
|
5112
|
-
(0, import_typeorm46.Column)({
|
|
5113
|
-
name: "full_name",
|
|
5114
|
-
type: "varchar",
|
|
5115
|
-
nullable: true,
|
|
5116
|
-
comment: "Candidate's full name (used in the email invitation)"
|
|
5117
|
-
})
|
|
5118
|
-
], InterviewInvite.prototype, "fullName", 2);
|
|
5119
|
-
__decorateClass([
|
|
5120
|
-
(0, import_typeorm46.Column)({
|
|
5121
|
-
name: "email",
|
|
5122
|
-
type: "varchar",
|
|
5123
|
-
comment: "Candidate's email address (must be unique per invite)"
|
|
5124
|
-
}),
|
|
5125
|
-
(0, import_typeorm46.Index)()
|
|
5126
|
-
], InterviewInvite.prototype, "email", 2);
|
|
5127
|
-
__decorateClass([
|
|
5128
|
-
(0, import_typeorm46.Column)({
|
|
5129
|
-
name: "status",
|
|
5130
|
-
type: "enum",
|
|
5131
|
-
enum: InterviewInviteStatusEnum,
|
|
5132
|
-
default: "PENDING" /* PENDING */,
|
|
5133
|
-
comment: "To manage invite status"
|
|
5134
|
-
})
|
|
5135
|
-
], InterviewInvite.prototype, "status", 2);
|
|
5136
|
-
__decorateClass([
|
|
5137
|
-
(0, import_typeorm46.Column)({
|
|
5138
|
-
name: "sent_at",
|
|
5139
|
-
type: "timestamp with time zone",
|
|
5140
|
-
default: () => "CURRENT_TIMESTAMP",
|
|
5141
|
-
comment: "Timestamp when the invite was created/sent"
|
|
5142
|
-
})
|
|
5143
|
-
], InterviewInvite.prototype, "sentAt", 2);
|
|
5144
|
-
__decorateClass([
|
|
5145
|
-
(0, import_typeorm46.Column)({
|
|
5146
|
-
name: "expired_at",
|
|
5147
|
-
type: "timestamp with time zone",
|
|
5148
|
-
comment: "Automatically expires invite after 72 hours",
|
|
5149
|
-
nullable: true
|
|
5150
|
-
})
|
|
5151
|
-
], InterviewInvite.prototype, "expiresAt", 2);
|
|
5152
|
-
__decorateClass([
|
|
5153
|
-
(0, import_typeorm46.Column)({
|
|
5154
|
-
name: "responded_at",
|
|
5155
|
-
type: "timestamp with time zone",
|
|
5156
|
-
nullable: true,
|
|
5157
|
-
comment: "Timestamp when candidate responded."
|
|
5158
|
-
})
|
|
5159
|
-
], InterviewInvite.prototype, "respondedAt", 2);
|
|
5160
|
-
__decorateClass([
|
|
5161
|
-
(0, import_typeorm46.Column)({
|
|
5162
|
-
name: "token",
|
|
5163
|
-
type: "varchar",
|
|
5164
|
-
unique: true,
|
|
5165
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5166
|
-
nullable: true
|
|
5167
|
-
}),
|
|
5168
|
-
(0, import_typeorm46.Index)()
|
|
5169
|
-
], InterviewInvite.prototype, "token", 2);
|
|
5170
|
-
InterviewInvite = __decorateClass([
|
|
5171
|
-
(0, import_typeorm46.Entity)("interview_invites")
|
|
5172
|
-
], InterviewInvite);
|
|
5173
|
-
|
|
5174
5220
|
// src/entities/ai-interview.entity.ts
|
|
5175
|
-
var
|
|
5221
|
+
var import_typeorm48 = require("typeorm");
|
|
5176
5222
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5177
5223
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5178
5224
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5198,37 +5244,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5198
5244
|
var AIInterview = class extends BaseEntity {
|
|
5199
5245
|
};
|
|
5200
5246
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5247
|
+
(0, import_typeorm48.Column)({
|
|
5202
5248
|
name: "interview_id",
|
|
5203
5249
|
type: "integer",
|
|
5204
5250
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5205
5251
|
}),
|
|
5206
|
-
(0,
|
|
5252
|
+
(0, import_typeorm48.Index)()
|
|
5207
5253
|
], AIInterview.prototype, "interviewId", 2);
|
|
5208
5254
|
__decorateClass([
|
|
5209
|
-
(0,
|
|
5255
|
+
(0, import_typeorm48.Column)({
|
|
5210
5256
|
name: "interview_invite_id",
|
|
5211
5257
|
type: "integer",
|
|
5212
5258
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5213
5259
|
})
|
|
5214
5260
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5215
5261
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5262
|
+
(0, import_typeorm48.Column)({
|
|
5217
5263
|
name: "candidate_id",
|
|
5218
5264
|
type: "integer",
|
|
5219
5265
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5220
5266
|
}),
|
|
5221
|
-
(0,
|
|
5267
|
+
(0, import_typeorm48.Index)()
|
|
5222
5268
|
], AIInterview.prototype, "candidateId", 2);
|
|
5223
5269
|
__decorateClass([
|
|
5224
|
-
(0,
|
|
5270
|
+
(0, import_typeorm48.Column)({
|
|
5225
5271
|
name: "job_id",
|
|
5226
5272
|
type: "integer",
|
|
5227
5273
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5228
5274
|
})
|
|
5229
5275
|
], AIInterview.prototype, "jobId", 2);
|
|
5230
5276
|
__decorateClass([
|
|
5231
|
-
(0,
|
|
5277
|
+
(0, import_typeorm48.Column)({
|
|
5232
5278
|
name: "invite_token",
|
|
5233
5279
|
type: "varchar",
|
|
5234
5280
|
unique: true,
|
|
@@ -5237,38 +5283,38 @@ __decorateClass([
|
|
|
5237
5283
|
})
|
|
5238
5284
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5239
5285
|
__decorateClass([
|
|
5240
|
-
(0,
|
|
5286
|
+
(0, import_typeorm48.Column)({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5241
5287
|
], AIInterview.prototype, "interviewType", 2);
|
|
5242
5288
|
__decorateClass([
|
|
5243
|
-
(0,
|
|
5289
|
+
(0, import_typeorm48.Column)({
|
|
5244
5290
|
name: "interview_name",
|
|
5245
5291
|
type: "varchar",
|
|
5246
5292
|
comment: "Name of the interview"
|
|
5247
5293
|
})
|
|
5248
5294
|
], AIInterview.prototype, "interviewName", 2);
|
|
5249
5295
|
__decorateClass([
|
|
5250
|
-
(0,
|
|
5296
|
+
(0, import_typeorm48.Column)({
|
|
5251
5297
|
name: "job_title",
|
|
5252
5298
|
type: "varchar",
|
|
5253
5299
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5254
5300
|
})
|
|
5255
5301
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5256
5302
|
__decorateClass([
|
|
5257
|
-
(0,
|
|
5303
|
+
(0, import_typeorm48.Column)({
|
|
5258
5304
|
type: "enum",
|
|
5259
5305
|
enum: AIInterviewStatusEnum,
|
|
5260
5306
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5261
5307
|
})
|
|
5262
5308
|
], AIInterview.prototype, "status", 2);
|
|
5263
5309
|
__decorateClass([
|
|
5264
|
-
(0,
|
|
5310
|
+
(0, import_typeorm48.Column)({
|
|
5265
5311
|
name: "started_at",
|
|
5266
5312
|
type: "timestamp with time zone",
|
|
5267
5313
|
comment: "Timestamp when the interview was started"
|
|
5268
5314
|
})
|
|
5269
5315
|
], AIInterview.prototype, "startedAt", 2);
|
|
5270
5316
|
__decorateClass([
|
|
5271
|
-
(0,
|
|
5317
|
+
(0, import_typeorm48.Column)({
|
|
5272
5318
|
name: "completed_at",
|
|
5273
5319
|
type: "timestamp with time zone",
|
|
5274
5320
|
nullable: true,
|
|
@@ -5276,7 +5322,7 @@ __decorateClass([
|
|
|
5276
5322
|
})
|
|
5277
5323
|
], AIInterview.prototype, "completedAt", 2);
|
|
5278
5324
|
__decorateClass([
|
|
5279
|
-
(0,
|
|
5325
|
+
(0, import_typeorm48.Column)({
|
|
5280
5326
|
name: "duration_minutes",
|
|
5281
5327
|
type: "integer",
|
|
5282
5328
|
nullable: true,
|
|
@@ -5284,7 +5330,7 @@ __decorateClass([
|
|
|
5284
5330
|
})
|
|
5285
5331
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5286
5332
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5333
|
+
(0, import_typeorm48.Column)({
|
|
5288
5334
|
name: "overall_score",
|
|
5289
5335
|
type: "decimal",
|
|
5290
5336
|
precision: 5,
|
|
@@ -5294,90 +5340,90 @@ __decorateClass([
|
|
|
5294
5340
|
})
|
|
5295
5341
|
], AIInterview.prototype, "overallScore", 2);
|
|
5296
5342
|
__decorateClass([
|
|
5297
|
-
(0,
|
|
5298
|
-
(0,
|
|
5343
|
+
(0, import_typeorm48.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5344
|
+
(0, import_typeorm48.JoinColumn)({ name: "interview_id" })
|
|
5299
5345
|
], AIInterview.prototype, "interview", 2);
|
|
5300
5346
|
__decorateClass([
|
|
5301
|
-
(0,
|
|
5302
|
-
(0,
|
|
5347
|
+
(0, import_typeorm48.ManyToOne)(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5348
|
+
(0, import_typeorm48.JoinColumn)({ name: "interview_invite_id" })
|
|
5303
5349
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5304
5350
|
__decorateClass([
|
|
5305
|
-
(0,
|
|
5306
|
-
(0,
|
|
5351
|
+
(0, import_typeorm48.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5352
|
+
(0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
|
|
5307
5353
|
], AIInterview.prototype, "candidate", 2);
|
|
5308
5354
|
__decorateClass([
|
|
5309
|
-
(0,
|
|
5310
|
-
(0,
|
|
5355
|
+
(0, import_typeorm48.ManyToOne)(() => Job, { onDelete: "CASCADE" }),
|
|
5356
|
+
(0, import_typeorm48.JoinColumn)({ name: "job_id" })
|
|
5311
5357
|
], AIInterview.prototype, "job", 2);
|
|
5312
5358
|
AIInterview = __decorateClass([
|
|
5313
|
-
(0,
|
|
5359
|
+
(0, import_typeorm48.Entity)("ai_interviews")
|
|
5314
5360
|
], AIInterview);
|
|
5315
5361
|
|
|
5316
5362
|
// src/entities/plan.entity.ts
|
|
5317
|
-
var
|
|
5363
|
+
var import_typeorm50 = require("typeorm");
|
|
5318
5364
|
|
|
5319
5365
|
// src/entities/feature.entity.ts
|
|
5320
|
-
var
|
|
5366
|
+
var import_typeorm49 = require("typeorm");
|
|
5321
5367
|
var Feature = class extends BaseEntity {
|
|
5322
5368
|
};
|
|
5323
5369
|
__decorateClass([
|
|
5324
|
-
(0,
|
|
5370
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", unique: true })
|
|
5325
5371
|
], Feature.prototype, "name", 2);
|
|
5326
5372
|
__decorateClass([
|
|
5327
|
-
(0,
|
|
5373
|
+
(0, import_typeorm49.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5328
5374
|
], Feature.prototype, "plans", 2);
|
|
5329
5375
|
Feature = __decorateClass([
|
|
5330
|
-
(0,
|
|
5376
|
+
(0, import_typeorm49.Entity)("features")
|
|
5331
5377
|
], Feature);
|
|
5332
5378
|
|
|
5333
5379
|
// src/entities/plan.entity.ts
|
|
5334
5380
|
var Plan = class extends BaseEntity {
|
|
5335
5381
|
};
|
|
5336
5382
|
__decorateClass([
|
|
5337
|
-
(0,
|
|
5383
|
+
(0, import_typeorm50.Column)({ name: "name", type: "varchar", unique: true })
|
|
5338
5384
|
], Plan.prototype, "name", 2);
|
|
5339
5385
|
__decorateClass([
|
|
5340
|
-
(0,
|
|
5386
|
+
(0, import_typeorm50.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5341
5387
|
], Plan.prototype, "description", 2);
|
|
5342
5388
|
__decorateClass([
|
|
5343
|
-
(0,
|
|
5389
|
+
(0, import_typeorm50.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5344
5390
|
], Plan.prototype, "price", 2);
|
|
5345
5391
|
__decorateClass([
|
|
5346
|
-
(0,
|
|
5392
|
+
(0, import_typeorm50.Column)({ name: "billing_period", type: "varchar" })
|
|
5347
5393
|
], Plan.prototype, "billingPeriod", 2);
|
|
5348
5394
|
__decorateClass([
|
|
5349
|
-
(0,
|
|
5395
|
+
(0, import_typeorm50.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5350
5396
|
], Plan.prototype, "isCurrent", 2);
|
|
5351
5397
|
__decorateClass([
|
|
5352
|
-
(0,
|
|
5353
|
-
(0,
|
|
5398
|
+
(0, import_typeorm50.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5399
|
+
(0, import_typeorm50.JoinTable)()
|
|
5354
5400
|
], Plan.prototype, "features", 2);
|
|
5355
5401
|
Plan = __decorateClass([
|
|
5356
|
-
(0,
|
|
5402
|
+
(0, import_typeorm50.Entity)("plans")
|
|
5357
5403
|
], Plan);
|
|
5358
5404
|
|
|
5359
5405
|
// src/entities/cms.entity.ts
|
|
5360
|
-
var
|
|
5406
|
+
var import_typeorm51 = require("typeorm");
|
|
5361
5407
|
var Cms = class extends BaseEntity {
|
|
5362
5408
|
};
|
|
5363
5409
|
__decorateClass([
|
|
5364
|
-
(0,
|
|
5410
|
+
(0, import_typeorm51.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5365
5411
|
], Cms.prototype, "title", 2);
|
|
5366
5412
|
__decorateClass([
|
|
5367
|
-
(0,
|
|
5413
|
+
(0, import_typeorm51.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5368
5414
|
], Cms.prototype, "slug", 2);
|
|
5369
5415
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5416
|
+
(0, import_typeorm51.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5371
5417
|
], Cms.prototype, "content", 2);
|
|
5372
5418
|
__decorateClass([
|
|
5373
|
-
(0,
|
|
5419
|
+
(0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5374
5420
|
], Cms.prototype, "isActive", 2);
|
|
5375
5421
|
Cms = __decorateClass([
|
|
5376
|
-
(0,
|
|
5422
|
+
(0, import_typeorm51.Entity)("cms")
|
|
5377
5423
|
], Cms);
|
|
5378
5424
|
|
|
5379
5425
|
// src/entities/lead.entity.ts
|
|
5380
|
-
var
|
|
5426
|
+
var import_typeorm52 = require("typeorm");
|
|
5381
5427
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5382
5428
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5383
5429
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5386,22 +5432,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5386
5432
|
var Lead = class extends BaseEntity {
|
|
5387
5433
|
};
|
|
5388
5434
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5435
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5390
5436
|
], Lead.prototype, "name", 2);
|
|
5391
5437
|
__decorateClass([
|
|
5392
|
-
(0,
|
|
5438
|
+
(0, import_typeorm52.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5393
5439
|
], Lead.prototype, "mobileCode", 2);
|
|
5394
5440
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5441
|
+
(0, import_typeorm52.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5396
5442
|
], Lead.prototype, "mobile", 2);
|
|
5397
5443
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5444
|
+
(0, import_typeorm52.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5399
5445
|
], Lead.prototype, "email", 2);
|
|
5400
5446
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5447
|
+
(0, import_typeorm52.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5402
5448
|
], Lead.prototype, "description", 2);
|
|
5403
5449
|
__decorateClass([
|
|
5404
|
-
(0,
|
|
5450
|
+
(0, import_typeorm52.Column)({
|
|
5405
5451
|
name: "category",
|
|
5406
5452
|
type: "enum",
|
|
5407
5453
|
enum: CategoryEmum,
|
|
@@ -5409,129 +5455,129 @@ __decorateClass([
|
|
|
5409
5455
|
})
|
|
5410
5456
|
], Lead.prototype, "category", 2);
|
|
5411
5457
|
Lead = __decorateClass([
|
|
5412
|
-
(0,
|
|
5458
|
+
(0, import_typeorm52.Entity)("leads")
|
|
5413
5459
|
], Lead);
|
|
5414
5460
|
|
|
5415
5461
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5416
|
-
var
|
|
5462
|
+
var import_typeorm53 = require("typeorm");
|
|
5417
5463
|
var JobFreelancerRecommendation = class {
|
|
5418
5464
|
};
|
|
5419
5465
|
__decorateClass([
|
|
5420
|
-
(0,
|
|
5466
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_id" })
|
|
5421
5467
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5422
5468
|
__decorateClass([
|
|
5423
|
-
(0,
|
|
5469
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_uuid" })
|
|
5424
5470
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5425
5471
|
__decorateClass([
|
|
5426
|
-
(0,
|
|
5472
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_unique_id" })
|
|
5427
5473
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5428
5474
|
__decorateClass([
|
|
5429
|
-
(0,
|
|
5475
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_role" })
|
|
5430
5476
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5431
5477
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5478
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_openings" })
|
|
5433
5479
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5434
5480
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5481
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_location" })
|
|
5436
5482
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5437
5483
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5484
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_currency" })
|
|
5439
5485
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5440
5486
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5487
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_salary_from" })
|
|
5442
5488
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5443
5489
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5490
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_salary_to" })
|
|
5445
5491
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5446
5492
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5493
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_employment_type" })
|
|
5448
5494
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5449
5495
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5496
|
+
(0, import_typeorm53.ViewColumn)({ name: "application_received" })
|
|
5451
5497
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5452
5498
|
__decorateClass([
|
|
5453
|
-
(0,
|
|
5499
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_posted_at" })
|
|
5454
5500
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5455
5501
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5502
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_id" })
|
|
5457
5503
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5458
5504
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5505
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_uuid" })
|
|
5460
5506
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5461
5507
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5508
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5463
5509
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5464
5510
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5511
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_first_name" })
|
|
5466
5512
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5467
5513
|
__decorateClass([
|
|
5468
|
-
(0,
|
|
5514
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_last_name" })
|
|
5469
5515
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5470
5516
|
__decorateClass([
|
|
5471
|
-
(0,
|
|
5517
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_email" })
|
|
5472
5518
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5473
5519
|
__decorateClass([
|
|
5474
|
-
(0,
|
|
5520
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5475
5521
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5476
5522
|
__decorateClass([
|
|
5477
|
-
(0,
|
|
5523
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_is_social" })
|
|
5478
5524
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5479
5525
|
__decorateClass([
|
|
5480
|
-
(0,
|
|
5526
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_created_at" })
|
|
5481
5527
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5482
5528
|
__decorateClass([
|
|
5483
|
-
(0,
|
|
5529
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_designation" })
|
|
5484
5530
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5485
5531
|
__decorateClass([
|
|
5486
|
-
(0,
|
|
5532
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_experience" })
|
|
5487
5533
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5488
5534
|
__decorateClass([
|
|
5489
|
-
(0,
|
|
5535
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5490
5536
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5491
5537
|
__decorateClass([
|
|
5492
|
-
(0,
|
|
5538
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5493
5539
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5494
5540
|
__decorateClass([
|
|
5495
|
-
(0,
|
|
5541
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_country_name" })
|
|
5496
5542
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5497
5543
|
__decorateClass([
|
|
5498
|
-
(0,
|
|
5544
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5499
5545
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5500
5546
|
__decorateClass([
|
|
5501
|
-
(0,
|
|
5547
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_id" })
|
|
5502
5548
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5503
5549
|
__decorateClass([
|
|
5504
|
-
(0,
|
|
5550
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_uuid" })
|
|
5505
5551
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5506
5552
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5553
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_first_name" })
|
|
5508
5554
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5509
5555
|
__decorateClass([
|
|
5510
|
-
(0,
|
|
5556
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_last_name" })
|
|
5511
5557
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5512
5558
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5559
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_email" })
|
|
5514
5560
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5515
5561
|
__decorateClass([
|
|
5516
|
-
(0,
|
|
5562
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_company_logo" })
|
|
5517
5563
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5518
5564
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5565
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_company_name" })
|
|
5520
5566
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5521
5567
|
__decorateClass([
|
|
5522
|
-
(0,
|
|
5568
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills" })
|
|
5523
5569
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5524
5570
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5571
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills_count" })
|
|
5526
5572
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5527
5573
|
__decorateClass([
|
|
5528
|
-
(0,
|
|
5574
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills" })
|
|
5529
5575
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5530
5576
|
__decorateClass([
|
|
5531
|
-
(0,
|
|
5577
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills_count" })
|
|
5532
5578
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5533
5579
|
JobFreelancerRecommendation = __decorateClass([
|
|
5534
|
-
(0,
|
|
5580
|
+
(0, import_typeorm53.ViewEntity)({
|
|
5535
5581
|
name: "job_freelancer_recommendations",
|
|
5536
5582
|
materialized: true,
|
|
5537
5583
|
synchronize: false
|
|
@@ -5540,32 +5586,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5540
5586
|
], JobFreelancerRecommendation);
|
|
5541
5587
|
|
|
5542
5588
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5543
|
-
var
|
|
5589
|
+
var import_typeorm54 = require("typeorm");
|
|
5544
5590
|
var JobFreelancerRecommendationV2 = class {
|
|
5545
5591
|
};
|
|
5546
5592
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5593
|
+
(0, import_typeorm54.ViewColumn)({ name: "job_id" })
|
|
5548
5594
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5549
5595
|
__decorateClass([
|
|
5550
|
-
(0,
|
|
5596
|
+
(0, import_typeorm54.ViewColumn)({ name: "job_owner_id" })
|
|
5551
5597
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5552
5598
|
__decorateClass([
|
|
5553
|
-
(0,
|
|
5599
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_id" })
|
|
5554
5600
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5555
5601
|
__decorateClass([
|
|
5556
|
-
(0,
|
|
5602
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills" })
|
|
5557
5603
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5558
5604
|
__decorateClass([
|
|
5559
|
-
(0,
|
|
5605
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills_count" })
|
|
5560
5606
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5561
5607
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5608
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills" })
|
|
5563
5609
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5564
5610
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5611
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills_count" })
|
|
5566
5612
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5567
5613
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5568
|
-
(0,
|
|
5614
|
+
(0, import_typeorm54.ViewEntity)({
|
|
5569
5615
|
name: "job_freelancer_recommendations_v2",
|
|
5570
5616
|
materialized: true,
|
|
5571
5617
|
synchronize: false
|
|
@@ -5574,74 +5620,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5574
5620
|
], JobFreelancerRecommendationV2);
|
|
5575
5621
|
|
|
5576
5622
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5577
|
-
var
|
|
5623
|
+
var import_typeorm55 = require("typeorm");
|
|
5578
5624
|
var ClientFreelancerRecommendation = class {
|
|
5579
5625
|
};
|
|
5580
5626
|
__decorateClass([
|
|
5581
|
-
(0,
|
|
5627
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_id" })
|
|
5582
5628
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5583
5629
|
__decorateClass([
|
|
5584
|
-
(0,
|
|
5630
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_uuid" })
|
|
5585
5631
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5586
5632
|
__decorateClass([
|
|
5587
|
-
(0,
|
|
5633
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_id" })
|
|
5588
5634
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5589
5635
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5636
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_uuid" })
|
|
5591
5637
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5592
5638
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5639
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5594
5640
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5595
5641
|
__decorateClass([
|
|
5596
|
-
(0,
|
|
5642
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_first_name" })
|
|
5597
5643
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5598
5644
|
__decorateClass([
|
|
5599
|
-
(0,
|
|
5645
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_last_name" })
|
|
5600
5646
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5601
5647
|
__decorateClass([
|
|
5602
|
-
(0,
|
|
5648
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_email" })
|
|
5603
5649
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5604
5650
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5651
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5606
5652
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5607
5653
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5654
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_is_social" })
|
|
5609
5655
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5610
5656
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5657
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_created_at" })
|
|
5612
5658
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5613
5659
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5660
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_designation" })
|
|
5615
5661
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5616
5662
|
__decorateClass([
|
|
5617
|
-
(0,
|
|
5663
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_experience" })
|
|
5618
5664
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5619
5665
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5666
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5621
5667
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5622
5668
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5669
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5624
5670
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5625
5671
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5672
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_name" })
|
|
5627
5673
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5628
5674
|
__decorateClass([
|
|
5629
|
-
(0,
|
|
5675
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5630
5676
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5631
5677
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5678
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills" })
|
|
5633
5679
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5634
5680
|
__decorateClass([
|
|
5635
|
-
(0,
|
|
5681
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills_count" })
|
|
5636
5682
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5637
5683
|
__decorateClass([
|
|
5638
|
-
(0,
|
|
5684
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills" })
|
|
5639
5685
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5640
5686
|
__decorateClass([
|
|
5641
|
-
(0,
|
|
5687
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills_count" })
|
|
5642
5688
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5643
5689
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5644
|
-
(0,
|
|
5690
|
+
(0, import_typeorm55.ViewEntity)({
|
|
5645
5691
|
name: "client_freelancer_recommendations",
|
|
5646
5692
|
materialized: true,
|
|
5647
5693
|
synchronize: false
|
|
@@ -5650,7 +5696,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5650
5696
|
], ClientFreelancerRecommendation);
|
|
5651
5697
|
|
|
5652
5698
|
// src/entities/commission.entity.ts
|
|
5653
|
-
var
|
|
5699
|
+
var import_typeorm56 = require("typeorm");
|
|
5654
5700
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5655
5701
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5656
5702
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5659,7 +5705,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5659
5705
|
var Commission = class extends BaseEntity {
|
|
5660
5706
|
};
|
|
5661
5707
|
__decorateClass([
|
|
5662
|
-
(0,
|
|
5708
|
+
(0, import_typeorm56.Column)({
|
|
5663
5709
|
name: "freelancer_commission_type",
|
|
5664
5710
|
type: "enum",
|
|
5665
5711
|
enum: CommissionTypeEnum,
|
|
@@ -5667,10 +5713,10 @@ __decorateClass([
|
|
|
5667
5713
|
})
|
|
5668
5714
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5669
5715
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5716
|
+
(0, import_typeorm56.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5671
5717
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5672
5718
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5719
|
+
(0, import_typeorm56.Column)({
|
|
5674
5720
|
name: "client_commission_type",
|
|
5675
5721
|
type: "enum",
|
|
5676
5722
|
enum: CommissionTypeEnum,
|
|
@@ -5678,10 +5724,10 @@ __decorateClass([
|
|
|
5678
5724
|
})
|
|
5679
5725
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5680
5726
|
__decorateClass([
|
|
5681
|
-
(0,
|
|
5727
|
+
(0, import_typeorm56.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5682
5728
|
], Commission.prototype, "clientCommission", 2);
|
|
5683
5729
|
Commission = __decorateClass([
|
|
5684
|
-
(0,
|
|
5730
|
+
(0, import_typeorm56.Entity)("commissions")
|
|
5685
5731
|
], Commission);
|
|
5686
5732
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5687
5733
|
0 && (module.exports = {
|
|
@@ -5817,6 +5863,7 @@ Commission = __decorateClass([
|
|
|
5817
5863
|
JobLocationEnumDto,
|
|
5818
5864
|
JobLocationEnums,
|
|
5819
5865
|
JobRMQAdapter,
|
|
5866
|
+
JobRecommendation,
|
|
5820
5867
|
JobRoles,
|
|
5821
5868
|
JobSkill,
|
|
5822
5869
|
JobStatus,
|