@experts_hub/shared 1.0.319 → 1.0.320
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/interview.entity.d.ts +2 -0
- package/dist/index.d.mts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +491 -488
- package/dist/index.mjs +532 -529
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1503,10 +1503,10 @@ var RATING_PATTERN = {
|
|
|
1503
1503
|
var import_class_validator40 = require("class-validator");
|
|
1504
1504
|
|
|
1505
1505
|
// src/entities/rating.entity.ts
|
|
1506
|
-
var
|
|
1506
|
+
var import_typeorm42 = require("typeorm");
|
|
1507
1507
|
|
|
1508
1508
|
// src/entities/user.entity.ts
|
|
1509
|
-
var
|
|
1509
|
+
var import_typeorm41 = require("typeorm");
|
|
1510
1510
|
|
|
1511
1511
|
// src/entities/base.entity.ts
|
|
1512
1512
|
var import_typeorm = require("typeorm");
|
|
@@ -2170,7 +2170,7 @@ CompanyProfile = __decorateClass([
|
|
|
2170
2170
|
], CompanyProfile);
|
|
2171
2171
|
|
|
2172
2172
|
// src/entities/job.entity.ts
|
|
2173
|
-
var
|
|
2173
|
+
var import_typeorm16 = require("typeorm");
|
|
2174
2174
|
|
|
2175
2175
|
// src/entities/job-skill.entity.ts
|
|
2176
2176
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2308,7 +2308,7 @@ JobApplication = __decorateClass([
|
|
|
2308
2308
|
], JobApplication);
|
|
2309
2309
|
|
|
2310
2310
|
// src/entities/interview.entity.ts
|
|
2311
|
-
var
|
|
2311
|
+
var import_typeorm15 = require("typeorm");
|
|
2312
2312
|
|
|
2313
2313
|
// src/entities/interview-skill.entity.ts
|
|
2314
2314
|
var import_typeorm12 = require("typeorm");
|
|
@@ -2361,6 +2361,105 @@ InterviewQuestion = __decorateClass([
|
|
|
2361
2361
|
(0, import_typeorm13.Entity)("interview_questions")
|
|
2362
2362
|
], InterviewQuestion);
|
|
2363
2363
|
|
|
2364
|
+
// src/entities/interview-invite.entity.ts
|
|
2365
|
+
var import_typeorm14 = require("typeorm");
|
|
2366
|
+
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
2367
|
+
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
2368
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
2369
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
2370
|
+
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2371
|
+
return InterviewInviteStatusEnum2;
|
|
2372
|
+
})(InterviewInviteStatusEnum || {});
|
|
2373
|
+
var InterviewInvite = class extends BaseEntity {
|
|
2374
|
+
};
|
|
2375
|
+
__decorateClass([
|
|
2376
|
+
(0, import_typeorm14.Column)({
|
|
2377
|
+
name: "interview_id",
|
|
2378
|
+
type: "integer",
|
|
2379
|
+
comment: "Column to specify interview id"
|
|
2380
|
+
}),
|
|
2381
|
+
(0, import_typeorm14.Index)()
|
|
2382
|
+
], InterviewInvite.prototype, "interviewId", 2);
|
|
2383
|
+
__decorateClass([
|
|
2384
|
+
(0, import_typeorm14.ManyToOne)(() => Interview, (interview) => interview.invites, { onDelete: "CASCADE" }),
|
|
2385
|
+
(0, import_typeorm14.JoinColumn)({ name: "interview_id" })
|
|
2386
|
+
], InterviewInvite.prototype, "interview", 2);
|
|
2387
|
+
__decorateClass([
|
|
2388
|
+
(0, import_typeorm14.Column)({
|
|
2389
|
+
name: "user_id",
|
|
2390
|
+
type: "integer",
|
|
2391
|
+
nullable: true,
|
|
2392
|
+
comment: "FK to User entity if candidate is already registered"
|
|
2393
|
+
}),
|
|
2394
|
+
(0, import_typeorm14.Index)()
|
|
2395
|
+
], InterviewInvite.prototype, "userId", 2);
|
|
2396
|
+
__decorateClass([
|
|
2397
|
+
(0, import_typeorm14.ManyToOne)(() => User),
|
|
2398
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
2399
|
+
], InterviewInvite.prototype, "user", 2);
|
|
2400
|
+
__decorateClass([
|
|
2401
|
+
(0, import_typeorm14.Column)({
|
|
2402
|
+
name: "full_name",
|
|
2403
|
+
type: "varchar",
|
|
2404
|
+
nullable: true,
|
|
2405
|
+
comment: "Candidate's full name (used in the email invitation)"
|
|
2406
|
+
})
|
|
2407
|
+
], InterviewInvite.prototype, "fullName", 2);
|
|
2408
|
+
__decorateClass([
|
|
2409
|
+
(0, import_typeorm14.Column)({
|
|
2410
|
+
name: "email",
|
|
2411
|
+
type: "varchar",
|
|
2412
|
+
comment: "Candidate's email address (must be unique per invite)"
|
|
2413
|
+
}),
|
|
2414
|
+
(0, import_typeorm14.Index)()
|
|
2415
|
+
], InterviewInvite.prototype, "email", 2);
|
|
2416
|
+
__decorateClass([
|
|
2417
|
+
(0, import_typeorm14.Column)({
|
|
2418
|
+
name: "status",
|
|
2419
|
+
type: "enum",
|
|
2420
|
+
enum: InterviewInviteStatusEnum,
|
|
2421
|
+
default: "PENDING" /* PENDING */,
|
|
2422
|
+
comment: "To manage invite status"
|
|
2423
|
+
})
|
|
2424
|
+
], InterviewInvite.prototype, "status", 2);
|
|
2425
|
+
__decorateClass([
|
|
2426
|
+
(0, import_typeorm14.Column)({
|
|
2427
|
+
name: "sent_at",
|
|
2428
|
+
type: "timestamp with time zone",
|
|
2429
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
2430
|
+
comment: "Timestamp when the invite was created/sent"
|
|
2431
|
+
})
|
|
2432
|
+
], InterviewInvite.prototype, "sentAt", 2);
|
|
2433
|
+
__decorateClass([
|
|
2434
|
+
(0, import_typeorm14.Column)({
|
|
2435
|
+
name: "expired_at",
|
|
2436
|
+
type: "timestamp with time zone",
|
|
2437
|
+
comment: "Automatically expires invite after 72 hours",
|
|
2438
|
+
nullable: true
|
|
2439
|
+
})
|
|
2440
|
+
], InterviewInvite.prototype, "expiresAt", 2);
|
|
2441
|
+
__decorateClass([
|
|
2442
|
+
(0, import_typeorm14.Column)({
|
|
2443
|
+
name: "responded_at",
|
|
2444
|
+
type: "timestamp with time zone",
|
|
2445
|
+
nullable: true,
|
|
2446
|
+
comment: "Timestamp when candidate responded."
|
|
2447
|
+
})
|
|
2448
|
+
], InterviewInvite.prototype, "respondedAt", 2);
|
|
2449
|
+
__decorateClass([
|
|
2450
|
+
(0, import_typeorm14.Column)({
|
|
2451
|
+
name: "token",
|
|
2452
|
+
type: "varchar",
|
|
2453
|
+
unique: true,
|
|
2454
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
2455
|
+
nullable: true
|
|
2456
|
+
}),
|
|
2457
|
+
(0, import_typeorm14.Index)()
|
|
2458
|
+
], InterviewInvite.prototype, "token", 2);
|
|
2459
|
+
InterviewInvite = __decorateClass([
|
|
2460
|
+
(0, import_typeorm14.Entity)("interview_invites")
|
|
2461
|
+
], InterviewInvite);
|
|
2462
|
+
|
|
2364
2463
|
// src/entities/interview.entity.ts
|
|
2365
2464
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2366
2465
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2373,38 +2472,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2373
2472
|
var Interview = class extends BaseEntity {
|
|
2374
2473
|
};
|
|
2375
2474
|
__decorateClass([
|
|
2376
|
-
(0,
|
|
2475
|
+
(0, import_typeorm15.Column)({
|
|
2377
2476
|
name: "interview_id",
|
|
2378
2477
|
type: "varchar",
|
|
2379
2478
|
unique: true,
|
|
2380
2479
|
nullable: true
|
|
2381
2480
|
}),
|
|
2382
|
-
(0,
|
|
2481
|
+
(0, import_typeorm15.Index)()
|
|
2383
2482
|
], Interview.prototype, "interviewId", 2);
|
|
2384
2483
|
__decorateClass([
|
|
2385
|
-
(0,
|
|
2386
|
-
(0,
|
|
2484
|
+
(0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2485
|
+
(0, import_typeorm15.Index)()
|
|
2387
2486
|
], Interview.prototype, "userId", 2);
|
|
2388
2487
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2390
|
-
(0,
|
|
2488
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.interviews),
|
|
2489
|
+
(0, import_typeorm15.JoinColumn)({ name: "user_id" })
|
|
2391
2490
|
], Interview.prototype, "user", 2);
|
|
2392
2491
|
__decorateClass([
|
|
2393
|
-
(0,
|
|
2492
|
+
(0, import_typeorm15.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2394
2493
|
], Interview.prototype, "interviewName", 2);
|
|
2395
2494
|
__decorateClass([
|
|
2396
|
-
(0,
|
|
2397
|
-
(0,
|
|
2495
|
+
(0, import_typeorm15.Column)({ name: "job_id", type: "integer" }),
|
|
2496
|
+
(0, import_typeorm15.Index)()
|
|
2398
2497
|
], Interview.prototype, "jobId", 2);
|
|
2399
2498
|
__decorateClass([
|
|
2400
|
-
(0,
|
|
2401
|
-
(0,
|
|
2499
|
+
(0, import_typeorm15.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2500
|
+
(0, import_typeorm15.JoinColumn)({ name: "job_id" })
|
|
2402
2501
|
], Interview.prototype, "job", 2);
|
|
2403
2502
|
__decorateClass([
|
|
2404
|
-
(0,
|
|
2503
|
+
(0, import_typeorm15.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2405
2504
|
], Interview.prototype, "interviewType", 2);
|
|
2406
2505
|
__decorateClass([
|
|
2407
|
-
(0,
|
|
2506
|
+
(0, import_typeorm15.Column)({
|
|
2408
2507
|
name: "status",
|
|
2409
2508
|
type: "enum",
|
|
2410
2509
|
enum: InterviewStatusEnum,
|
|
@@ -2412,21 +2511,24 @@ __decorateClass([
|
|
|
2412
2511
|
})
|
|
2413
2512
|
], Interview.prototype, "status", 2);
|
|
2414
2513
|
__decorateClass([
|
|
2415
|
-
(0,
|
|
2514
|
+
(0, import_typeorm15.OneToMany)(
|
|
2416
2515
|
() => InterviewSkill,
|
|
2417
2516
|
(interviewSkill) => interviewSkill.interview,
|
|
2418
2517
|
{ cascade: true }
|
|
2419
2518
|
)
|
|
2420
2519
|
], Interview.prototype, "interviewSkills", 2);
|
|
2421
2520
|
__decorateClass([
|
|
2422
|
-
(0,
|
|
2521
|
+
(0, import_typeorm15.OneToMany)(
|
|
2423
2522
|
() => InterviewQuestion,
|
|
2424
2523
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2425
2524
|
{ cascade: true }
|
|
2426
2525
|
)
|
|
2427
2526
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2527
|
+
__decorateClass([
|
|
2528
|
+
(0, import_typeorm15.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2529
|
+
], Interview.prototype, "invites", 2);
|
|
2428
2530
|
Interview = __decorateClass([
|
|
2429
|
-
(0,
|
|
2531
|
+
(0, import_typeorm15.Entity)("interviews")
|
|
2430
2532
|
], Interview);
|
|
2431
2533
|
|
|
2432
2534
|
// src/entities/job.entity.ts
|
|
@@ -2466,49 +2568,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2466
2568
|
var Job = class extends BaseEntity {
|
|
2467
2569
|
};
|
|
2468
2570
|
__decorateClass([
|
|
2469
|
-
(0,
|
|
2571
|
+
(0, import_typeorm16.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2470
2572
|
], Job.prototype, "jobId", 2);
|
|
2471
2573
|
// individual index to find jobs by user
|
|
2472
2574
|
__decorateClass([
|
|
2473
|
-
(0,
|
|
2474
|
-
(0,
|
|
2575
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2576
|
+
(0, import_typeorm16.Index)()
|
|
2475
2577
|
], Job.prototype, "userId", 2);
|
|
2476
2578
|
__decorateClass([
|
|
2477
|
-
(0,
|
|
2478
|
-
(0,
|
|
2579
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.jobs),
|
|
2580
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2479
2581
|
], Job.prototype, "user", 2);
|
|
2480
2582
|
__decorateClass([
|
|
2481
|
-
(0,
|
|
2583
|
+
(0, import_typeorm16.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2482
2584
|
], Job.prototype, "countryId", 2);
|
|
2483
2585
|
__decorateClass([
|
|
2484
|
-
(0,
|
|
2485
|
-
(0,
|
|
2586
|
+
(0, import_typeorm16.ManyToOne)(() => Country),
|
|
2587
|
+
(0, import_typeorm16.JoinColumn)({ name: "country_id" })
|
|
2486
2588
|
], Job.prototype, "country", 2);
|
|
2487
2589
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2590
|
+
(0, import_typeorm16.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2489
2591
|
], Job.prototype, "stateId", 2);
|
|
2490
2592
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2492
|
-
(0,
|
|
2593
|
+
(0, import_typeorm16.ManyToOne)(() => State),
|
|
2594
|
+
(0, import_typeorm16.JoinColumn)({ name: "state_id" })
|
|
2493
2595
|
], Job.prototype, "state", 2);
|
|
2494
2596
|
__decorateClass([
|
|
2495
|
-
(0,
|
|
2597
|
+
(0, import_typeorm16.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2496
2598
|
], Job.prototype, "cityId", 2);
|
|
2497
2599
|
__decorateClass([
|
|
2498
|
-
(0,
|
|
2499
|
-
(0,
|
|
2600
|
+
(0, import_typeorm16.ManyToOne)(() => City),
|
|
2601
|
+
(0, import_typeorm16.JoinColumn)({ name: "city_id" })
|
|
2500
2602
|
], Job.prototype, "city", 2);
|
|
2501
2603
|
__decorateClass([
|
|
2502
|
-
(0,
|
|
2604
|
+
(0, import_typeorm16.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2503
2605
|
], Job.prototype, "jobRole", 2);
|
|
2504
2606
|
__decorateClass([
|
|
2505
|
-
(0,
|
|
2607
|
+
(0, import_typeorm16.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2506
2608
|
], Job.prototype, "note", 2);
|
|
2507
2609
|
__decorateClass([
|
|
2508
|
-
(0,
|
|
2610
|
+
(0, import_typeorm16.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2509
2611
|
], Job.prototype, "openings", 2);
|
|
2510
2612
|
__decorateClass([
|
|
2511
|
-
(0,
|
|
2613
|
+
(0, import_typeorm16.Column)({
|
|
2512
2614
|
name: "location",
|
|
2513
2615
|
type: "enum",
|
|
2514
2616
|
enum: JobLocationEnum,
|
|
@@ -2516,7 +2618,7 @@ __decorateClass([
|
|
|
2516
2618
|
})
|
|
2517
2619
|
], Job.prototype, "location", 2);
|
|
2518
2620
|
__decorateClass([
|
|
2519
|
-
(0,
|
|
2621
|
+
(0, import_typeorm16.Column)({
|
|
2520
2622
|
name: "type_of_employment",
|
|
2521
2623
|
type: "enum",
|
|
2522
2624
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2524,19 +2626,19 @@ __decorateClass([
|
|
|
2524
2626
|
})
|
|
2525
2627
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2526
2628
|
__decorateClass([
|
|
2527
|
-
(0,
|
|
2629
|
+
(0, import_typeorm16.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2528
2630
|
], Job.prototype, "academicQualification", 2);
|
|
2529
2631
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2632
|
+
(0, import_typeorm16.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2531
2633
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2532
2634
|
__decorateClass([
|
|
2533
|
-
(0,
|
|
2635
|
+
(0, import_typeorm16.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2534
2636
|
], Job.prototype, "businessIndustry", 2);
|
|
2535
2637
|
__decorateClass([
|
|
2536
|
-
(0,
|
|
2638
|
+
(0, import_typeorm16.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2537
2639
|
], Job.prototype, "currency", 2);
|
|
2538
2640
|
__decorateClass([
|
|
2539
|
-
(0,
|
|
2641
|
+
(0, import_typeorm16.Column)({
|
|
2540
2642
|
name: "expected_salary_from",
|
|
2541
2643
|
type: "decimal",
|
|
2542
2644
|
precision: 10,
|
|
@@ -2545,7 +2647,7 @@ __decorateClass([
|
|
|
2545
2647
|
})
|
|
2546
2648
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2547
2649
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2650
|
+
(0, import_typeorm16.Column)({
|
|
2549
2651
|
name: "expected_salary_to",
|
|
2550
2652
|
type: "decimal",
|
|
2551
2653
|
precision: 10,
|
|
@@ -2554,16 +2656,16 @@ __decorateClass([
|
|
|
2554
2656
|
})
|
|
2555
2657
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2556
2658
|
__decorateClass([
|
|
2557
|
-
(0,
|
|
2659
|
+
(0, import_typeorm16.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2558
2660
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2559
2661
|
__decorateClass([
|
|
2560
|
-
(0,
|
|
2662
|
+
(0, import_typeorm16.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2561
2663
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2562
2664
|
__decorateClass([
|
|
2563
|
-
(0,
|
|
2665
|
+
(0, import_typeorm16.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2564
2666
|
], Job.prototype, "duration", 2);
|
|
2565
2667
|
__decorateClass([
|
|
2566
|
-
(0,
|
|
2668
|
+
(0, import_typeorm16.Column)({
|
|
2567
2669
|
name: "duration_type",
|
|
2568
2670
|
type: "enum",
|
|
2569
2671
|
enum: DurationTypeEnum,
|
|
@@ -2571,13 +2673,13 @@ __decorateClass([
|
|
|
2571
2673
|
})
|
|
2572
2674
|
], Job.prototype, "durationType", 2);
|
|
2573
2675
|
__decorateClass([
|
|
2574
|
-
(0,
|
|
2676
|
+
(0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2575
2677
|
], Job.prototype, "description", 2);
|
|
2576
2678
|
__decorateClass([
|
|
2577
|
-
(0,
|
|
2679
|
+
(0, import_typeorm16.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2578
2680
|
], Job.prototype, "additionalComment", 2);
|
|
2579
2681
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2682
|
+
(0, import_typeorm16.Column)({
|
|
2581
2683
|
name: "onboarding_tat",
|
|
2582
2684
|
type: "varchar",
|
|
2583
2685
|
length: 50,
|
|
@@ -2585,14 +2687,14 @@ __decorateClass([
|
|
|
2585
2687
|
})
|
|
2586
2688
|
], Job.prototype, "onboardingTat", 2);
|
|
2587
2689
|
__decorateClass([
|
|
2588
|
-
(0,
|
|
2690
|
+
(0, import_typeorm16.Column)({
|
|
2589
2691
|
name: "candidate_communication_skills",
|
|
2590
2692
|
type: "varchar",
|
|
2591
2693
|
nullable: true
|
|
2592
2694
|
})
|
|
2593
2695
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2594
2696
|
__decorateClass([
|
|
2595
|
-
(0,
|
|
2697
|
+
(0, import_typeorm16.Column)({
|
|
2596
2698
|
name: "step_completed",
|
|
2597
2699
|
type: "enum",
|
|
2598
2700
|
enum: Step,
|
|
@@ -2600,7 +2702,7 @@ __decorateClass([
|
|
|
2600
2702
|
})
|
|
2601
2703
|
], Job.prototype, "stepCompleted", 2);
|
|
2602
2704
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2705
|
+
(0, import_typeorm16.Column)({
|
|
2604
2706
|
name: "status",
|
|
2605
2707
|
type: "enum",
|
|
2606
2708
|
enum: JobStatusEnum,
|
|
@@ -2608,30 +2710,30 @@ __decorateClass([
|
|
|
2608
2710
|
})
|
|
2609
2711
|
], Job.prototype, "status", 2);
|
|
2610
2712
|
__decorateClass([
|
|
2611
|
-
(0,
|
|
2713
|
+
(0, import_typeorm16.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2612
2714
|
], Job.prototype, "viewedCount", 2);
|
|
2613
2715
|
__decorateClass([
|
|
2614
|
-
(0,
|
|
2716
|
+
(0, import_typeorm16.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2615
2717
|
], Job.prototype, "applicationCount", 2);
|
|
2616
2718
|
__decorateClass([
|
|
2617
|
-
(0,
|
|
2719
|
+
(0, import_typeorm16.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2618
2720
|
], Job.prototype, "jobSkills", 2);
|
|
2619
2721
|
__decorateClass([
|
|
2620
|
-
(0,
|
|
2722
|
+
(0, import_typeorm16.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2621
2723
|
cascade: true
|
|
2622
2724
|
})
|
|
2623
2725
|
], Job.prototype, "jobApplications", 2);
|
|
2624
2726
|
__decorateClass([
|
|
2625
|
-
(0,
|
|
2727
|
+
(0, import_typeorm16.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2626
2728
|
cascade: true
|
|
2627
2729
|
})
|
|
2628
2730
|
], Job.prototype, "interviews", 2);
|
|
2629
2731
|
Job = __decorateClass([
|
|
2630
|
-
(0,
|
|
2732
|
+
(0, import_typeorm16.Entity)("jobs")
|
|
2631
2733
|
], Job);
|
|
2632
2734
|
|
|
2633
2735
|
// src/entities/bank-details.entity.ts
|
|
2634
|
-
var
|
|
2736
|
+
var import_typeorm17 = require("typeorm");
|
|
2635
2737
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2636
2738
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2637
2739
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2646,48 +2748,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2646
2748
|
};
|
|
2647
2749
|
// individual index to find bank details by user
|
|
2648
2750
|
__decorateClass([
|
|
2649
|
-
(0,
|
|
2650
|
-
(0,
|
|
2751
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2752
|
+
(0, import_typeorm17.Index)()
|
|
2651
2753
|
], BankDetail.prototype, "userId", 2);
|
|
2652
2754
|
__decorateClass([
|
|
2653
|
-
(0,
|
|
2654
|
-
(0,
|
|
2755
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2756
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2655
2757
|
], BankDetail.prototype, "user", 2);
|
|
2656
2758
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2759
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2658
2760
|
], BankDetail.prototype, "name", 2);
|
|
2659
2761
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2762
|
+
(0, import_typeorm17.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2661
2763
|
], BankDetail.prototype, "mobile", 2);
|
|
2662
2764
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2765
|
+
(0, import_typeorm17.Column)({ name: "email", type: "varchar", unique: true })
|
|
2664
2766
|
], BankDetail.prototype, "email", 2);
|
|
2665
2767
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2768
|
+
(0, import_typeorm17.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2667
2769
|
], BankDetail.prototype, "address", 2);
|
|
2668
2770
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2771
|
+
(0, import_typeorm17.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2670
2772
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2671
2773
|
__decorateClass([
|
|
2672
|
-
(0,
|
|
2774
|
+
(0, import_typeorm17.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2673
2775
|
], BankDetail.prototype, "bankName", 2);
|
|
2674
2776
|
__decorateClass([
|
|
2675
|
-
(0,
|
|
2777
|
+
(0, import_typeorm17.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2676
2778
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2677
2779
|
__decorateClass([
|
|
2678
|
-
(0,
|
|
2780
|
+
(0, import_typeorm17.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2679
2781
|
], BankDetail.prototype, "branchName", 2);
|
|
2680
2782
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2783
|
+
(0, import_typeorm17.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2682
2784
|
], BankDetail.prototype, "routingNo", 2);
|
|
2683
2785
|
__decorateClass([
|
|
2684
|
-
(0,
|
|
2786
|
+
(0, import_typeorm17.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2685
2787
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2686
2788
|
__decorateClass([
|
|
2687
|
-
(0,
|
|
2789
|
+
(0, import_typeorm17.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2688
2790
|
], BankDetail.prototype, "iban", 2);
|
|
2689
2791
|
__decorateClass([
|
|
2690
|
-
(0,
|
|
2792
|
+
(0, import_typeorm17.Column)({
|
|
2691
2793
|
name: "account_type",
|
|
2692
2794
|
type: "enum",
|
|
2693
2795
|
enum: BankAccountTypeEnum,
|
|
@@ -2695,7 +2797,7 @@ __decorateClass([
|
|
|
2695
2797
|
})
|
|
2696
2798
|
], BankDetail.prototype, "accountType", 2);
|
|
2697
2799
|
__decorateClass([
|
|
2698
|
-
(0,
|
|
2800
|
+
(0, import_typeorm17.Column)({
|
|
2699
2801
|
name: "account_scope",
|
|
2700
2802
|
type: "enum",
|
|
2701
2803
|
enum: BankAccountScopeEnum,
|
|
@@ -2703,210 +2805,210 @@ __decorateClass([
|
|
|
2703
2805
|
})
|
|
2704
2806
|
], BankDetail.prototype, "accountScope", 2);
|
|
2705
2807
|
BankDetail = __decorateClass([
|
|
2706
|
-
(0,
|
|
2808
|
+
(0, import_typeorm17.Entity)("bank_details")
|
|
2707
2809
|
], BankDetail);
|
|
2708
2810
|
|
|
2709
2811
|
// src/entities/system-preference.entity.ts
|
|
2710
|
-
var
|
|
2812
|
+
var import_typeorm18 = require("typeorm");
|
|
2711
2813
|
var SystemPreference = class extends BaseEntity {
|
|
2712
2814
|
};
|
|
2713
2815
|
// individual index to find system preference by user
|
|
2714
2816
|
__decorateClass([
|
|
2715
|
-
(0,
|
|
2716
|
-
(0,
|
|
2817
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2818
|
+
(0, import_typeorm18.Index)()
|
|
2717
2819
|
], SystemPreference.prototype, "userId", 2);
|
|
2718
2820
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2720
|
-
(0,
|
|
2821
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2822
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2721
2823
|
], SystemPreference.prototype, "user", 2);
|
|
2722
2824
|
__decorateClass([
|
|
2723
|
-
(0,
|
|
2825
|
+
(0, import_typeorm18.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2724
2826
|
], SystemPreference.prototype, "key", 2);
|
|
2725
2827
|
__decorateClass([
|
|
2726
|
-
(0,
|
|
2828
|
+
(0, import_typeorm18.Column)({ name: "value", type: "boolean", default: false })
|
|
2727
2829
|
], SystemPreference.prototype, "value", 2);
|
|
2728
2830
|
SystemPreference = __decorateClass([
|
|
2729
|
-
(0,
|
|
2831
|
+
(0, import_typeorm18.Entity)("system_preferences")
|
|
2730
2832
|
], SystemPreference);
|
|
2731
2833
|
|
|
2732
2834
|
// src/entities/freelancer-experience.entity.ts
|
|
2733
|
-
var
|
|
2835
|
+
var import_typeorm19 = require("typeorm");
|
|
2734
2836
|
var FreelancerExperience = class extends BaseEntity {
|
|
2735
2837
|
};
|
|
2736
2838
|
// individual index to find experence by user
|
|
2737
2839
|
__decorateClass([
|
|
2738
|
-
(0,
|
|
2739
|
-
(0,
|
|
2840
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2841
|
+
(0, import_typeorm19.Index)()
|
|
2740
2842
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2741
2843
|
__decorateClass([
|
|
2742
|
-
(0,
|
|
2743
|
-
(0,
|
|
2844
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2845
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2744
2846
|
], FreelancerExperience.prototype, "user", 2);
|
|
2745
2847
|
__decorateClass([
|
|
2746
|
-
(0,
|
|
2848
|
+
(0, import_typeorm19.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2747
2849
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2748
2850
|
__decorateClass([
|
|
2749
|
-
(0,
|
|
2851
|
+
(0, import_typeorm19.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2750
2852
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2751
2853
|
__decorateClass([
|
|
2752
|
-
(0,
|
|
2854
|
+
(0, import_typeorm19.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2753
2855
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2754
2856
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2857
|
+
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2756
2858
|
], FreelancerExperience.prototype, "description", 2);
|
|
2757
2859
|
FreelancerExperience = __decorateClass([
|
|
2758
|
-
(0,
|
|
2860
|
+
(0, import_typeorm19.Entity)("freelancer_experiences")
|
|
2759
2861
|
], FreelancerExperience);
|
|
2760
2862
|
|
|
2761
2863
|
// src/entities/freelancer-education.entity.ts
|
|
2762
|
-
var
|
|
2864
|
+
var import_typeorm20 = require("typeorm");
|
|
2763
2865
|
var FreelancerEducation = class extends BaseEntity {
|
|
2764
2866
|
};
|
|
2765
2867
|
// individual index to find education by user
|
|
2766
2868
|
__decorateClass([
|
|
2767
|
-
(0,
|
|
2768
|
-
(0,
|
|
2869
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2870
|
+
(0, import_typeorm20.Index)()
|
|
2769
2871
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2770
2872
|
__decorateClass([
|
|
2771
|
-
(0,
|
|
2772
|
-
(0,
|
|
2873
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2874
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2773
2875
|
], FreelancerEducation.prototype, "user", 2);
|
|
2774
2876
|
__decorateClass([
|
|
2775
|
-
(0,
|
|
2877
|
+
(0, import_typeorm20.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2776
2878
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2777
2879
|
__decorateClass([
|
|
2778
|
-
(0,
|
|
2880
|
+
(0, import_typeorm20.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2779
2881
|
], FreelancerEducation.prototype, "university", 2);
|
|
2780
2882
|
__decorateClass([
|
|
2781
|
-
(0,
|
|
2883
|
+
(0, import_typeorm20.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2782
2884
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2783
2885
|
FreelancerEducation = __decorateClass([
|
|
2784
|
-
(0,
|
|
2886
|
+
(0, import_typeorm20.Entity)("freelancer_educations")
|
|
2785
2887
|
], FreelancerEducation);
|
|
2786
2888
|
|
|
2787
2889
|
// src/entities/freelancer-project.entity.ts
|
|
2788
|
-
var
|
|
2890
|
+
var import_typeorm21 = require("typeorm");
|
|
2789
2891
|
var FreelancerProject = class extends BaseEntity {
|
|
2790
2892
|
};
|
|
2791
2893
|
// individual index to find project by user
|
|
2792
2894
|
__decorateClass([
|
|
2793
|
-
(0,
|
|
2794
|
-
(0,
|
|
2895
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2896
|
+
(0, import_typeorm21.Index)()
|
|
2795
2897
|
], FreelancerProject.prototype, "userId", 2);
|
|
2796
2898
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2798
|
-
(0,
|
|
2899
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2900
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2799
2901
|
], FreelancerProject.prototype, "user", 2);
|
|
2800
2902
|
__decorateClass([
|
|
2801
|
-
(0,
|
|
2903
|
+
(0, import_typeorm21.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2802
2904
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2803
2905
|
__decorateClass([
|
|
2804
|
-
(0,
|
|
2906
|
+
(0, import_typeorm21.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2805
2907
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2806
2908
|
__decorateClass([
|
|
2807
|
-
(0,
|
|
2909
|
+
(0, import_typeorm21.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2808
2910
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2809
2911
|
__decorateClass([
|
|
2810
|
-
(0,
|
|
2912
|
+
(0, import_typeorm21.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2811
2913
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2812
2914
|
__decorateClass([
|
|
2813
|
-
(0,
|
|
2915
|
+
(0, import_typeorm21.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2814
2916
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2815
2917
|
__decorateClass([
|
|
2816
|
-
(0,
|
|
2918
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2817
2919
|
], FreelancerProject.prototype, "description", 2);
|
|
2818
2920
|
FreelancerProject = __decorateClass([
|
|
2819
|
-
(0,
|
|
2921
|
+
(0, import_typeorm21.Entity)("freelancer_projects")
|
|
2820
2922
|
], FreelancerProject);
|
|
2821
2923
|
|
|
2822
2924
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2823
|
-
var
|
|
2925
|
+
var import_typeorm22 = require("typeorm");
|
|
2824
2926
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2825
2927
|
};
|
|
2826
2928
|
// individual index to find case study by user
|
|
2827
2929
|
__decorateClass([
|
|
2828
|
-
(0,
|
|
2829
|
-
(0,
|
|
2930
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2931
|
+
(0, import_typeorm22.Index)()
|
|
2830
2932
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2831
2933
|
__decorateClass([
|
|
2832
|
-
(0,
|
|
2833
|
-
(0,
|
|
2934
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2935
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2834
2936
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2835
2937
|
__decorateClass([
|
|
2836
|
-
(0,
|
|
2938
|
+
(0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2837
2939
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2838
2940
|
__decorateClass([
|
|
2839
|
-
(0,
|
|
2941
|
+
(0, import_typeorm22.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2840
2942
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2841
2943
|
__decorateClass([
|
|
2842
|
-
(0,
|
|
2944
|
+
(0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2843
2945
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2844
2946
|
FreelancerCaseStudy = __decorateClass([
|
|
2845
|
-
(0,
|
|
2947
|
+
(0, import_typeorm22.Entity)("freelancer_case_studies")
|
|
2846
2948
|
], FreelancerCaseStudy);
|
|
2847
2949
|
|
|
2848
2950
|
// src/entities/freelancer-skill.entity.ts
|
|
2849
|
-
var
|
|
2951
|
+
var import_typeorm23 = require("typeorm");
|
|
2850
2952
|
var FreelancerSkill = class extends BaseEntity {
|
|
2851
2953
|
};
|
|
2852
2954
|
// individual index to find core skills by user
|
|
2853
2955
|
__decorateClass([
|
|
2854
|
-
(0,
|
|
2855
|
-
(0,
|
|
2956
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2957
|
+
(0, import_typeorm23.Index)()
|
|
2856
2958
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2857
2959
|
__decorateClass([
|
|
2858
|
-
(0,
|
|
2859
|
-
(0,
|
|
2960
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
2961
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2860
2962
|
], FreelancerSkill.prototype, "user", 2);
|
|
2861
2963
|
__decorateClass([
|
|
2862
|
-
(0,
|
|
2964
|
+
(0, import_typeorm23.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2863
2965
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2864
2966
|
FreelancerSkill = __decorateClass([
|
|
2865
|
-
(0,
|
|
2967
|
+
(0, import_typeorm23.Entity)("freelancer_skills")
|
|
2866
2968
|
], FreelancerSkill);
|
|
2867
2969
|
|
|
2868
2970
|
// src/entities/freelancer-tool.entity.ts
|
|
2869
|
-
var
|
|
2971
|
+
var import_typeorm24 = require("typeorm");
|
|
2870
2972
|
var FreelancerTool = class extends BaseEntity {
|
|
2871
2973
|
};
|
|
2872
2974
|
// individual index to find tool by user
|
|
2873
2975
|
__decorateClass([
|
|
2874
|
-
(0,
|
|
2875
|
-
(0,
|
|
2976
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2977
|
+
(0, import_typeorm24.Index)()
|
|
2876
2978
|
], FreelancerTool.prototype, "userId", 2);
|
|
2877
2979
|
__decorateClass([
|
|
2878
|
-
(0,
|
|
2879
|
-
(0,
|
|
2980
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
2981
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2880
2982
|
], FreelancerTool.prototype, "user", 2);
|
|
2881
2983
|
__decorateClass([
|
|
2882
|
-
(0,
|
|
2984
|
+
(0, import_typeorm24.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2883
2985
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2884
2986
|
FreelancerTool = __decorateClass([
|
|
2885
|
-
(0,
|
|
2987
|
+
(0, import_typeorm24.Entity)("freelancer_tools")
|
|
2886
2988
|
], FreelancerTool);
|
|
2887
2989
|
|
|
2888
2990
|
// src/entities/freelancer-framework.entity.ts
|
|
2889
|
-
var
|
|
2991
|
+
var import_typeorm25 = require("typeorm");
|
|
2890
2992
|
var FreelancerFramework = class extends BaseEntity {
|
|
2891
2993
|
};
|
|
2892
2994
|
// individual index to find framework by user
|
|
2893
2995
|
__decorateClass([
|
|
2894
|
-
(0,
|
|
2895
|
-
(0,
|
|
2996
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2997
|
+
(0, import_typeorm25.Index)()
|
|
2896
2998
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2897
2999
|
__decorateClass([
|
|
2898
|
-
(0,
|
|
2899
|
-
(0,
|
|
3000
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3001
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2900
3002
|
], FreelancerFramework.prototype, "user", 2);
|
|
2901
3003
|
__decorateClass([
|
|
2902
|
-
(0,
|
|
3004
|
+
(0, import_typeorm25.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
2903
3005
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2904
3006
|
FreelancerFramework = __decorateClass([
|
|
2905
|
-
(0,
|
|
3007
|
+
(0, import_typeorm25.Entity)("freelancer_frameworks")
|
|
2906
3008
|
], FreelancerFramework);
|
|
2907
3009
|
|
|
2908
3010
|
// src/entities/freelancer-assessment.entity.ts
|
|
2909
|
-
var
|
|
3011
|
+
var import_typeorm26 = require("typeorm");
|
|
2910
3012
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2911
3013
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2912
3014
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -2922,30 +3024,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2922
3024
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2923
3025
|
};
|
|
2924
3026
|
__decorateClass([
|
|
2925
|
-
(0,
|
|
2926
|
-
(0,
|
|
3027
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3028
|
+
(0, import_typeorm26.Index)()
|
|
2927
3029
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2928
3030
|
__decorateClass([
|
|
2929
|
-
(0,
|
|
2930
|
-
(0,
|
|
3031
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.assessments),
|
|
3032
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
2931
3033
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2932
3034
|
__decorateClass([
|
|
2933
|
-
(0,
|
|
3035
|
+
(0, import_typeorm26.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2934
3036
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2935
3037
|
__decorateClass([
|
|
2936
|
-
(0,
|
|
3038
|
+
(0, import_typeorm26.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2937
3039
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2938
3040
|
__decorateClass([
|
|
2939
|
-
(0,
|
|
3041
|
+
(0, import_typeorm26.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
2940
3042
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2941
3043
|
__decorateClass([
|
|
2942
|
-
(0,
|
|
3044
|
+
(0, import_typeorm26.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2943
3045
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2944
3046
|
__decorateClass([
|
|
2945
|
-
(0,
|
|
3047
|
+
(0, import_typeorm26.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2946
3048
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2947
3049
|
__decorateClass([
|
|
2948
|
-
(0,
|
|
3050
|
+
(0, import_typeorm26.Column)({
|
|
2949
3051
|
name: "status",
|
|
2950
3052
|
type: "enum",
|
|
2951
3053
|
enum: AssessmentStatusEnum,
|
|
@@ -2953,11 +3055,11 @@ __decorateClass([
|
|
|
2953
3055
|
})
|
|
2954
3056
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2955
3057
|
FreelancerAssessment = __decorateClass([
|
|
2956
|
-
(0,
|
|
3058
|
+
(0, import_typeorm26.Entity)("freelancer_assessments")
|
|
2957
3059
|
], FreelancerAssessment);
|
|
2958
3060
|
|
|
2959
3061
|
// src/entities/freelancer-declaration.entity.ts
|
|
2960
|
-
var
|
|
3062
|
+
var import_typeorm27 = require("typeorm");
|
|
2961
3063
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2962
3064
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
2963
3065
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -2969,15 +3071,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2969
3071
|
};
|
|
2970
3072
|
// individual index to find declaration by user
|
|
2971
3073
|
__decorateClass([
|
|
2972
|
-
(0,
|
|
2973
|
-
(0,
|
|
3074
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3075
|
+
(0, import_typeorm27.Index)()
|
|
2974
3076
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2975
3077
|
__decorateClass([
|
|
2976
|
-
(0,
|
|
2977
|
-
(0,
|
|
3078
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3079
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
2978
3080
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
2979
3081
|
__decorateClass([
|
|
2980
|
-
(0,
|
|
3082
|
+
(0, import_typeorm27.Column)({
|
|
2981
3083
|
name: "document_type",
|
|
2982
3084
|
type: "enum",
|
|
2983
3085
|
enum: DocumentType,
|
|
@@ -2985,144 +3087,144 @@ __decorateClass([
|
|
|
2985
3087
|
})
|
|
2986
3088
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
2987
3089
|
__decorateClass([
|
|
2988
|
-
(0,
|
|
3090
|
+
(0, import_typeorm27.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
2989
3091
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
2990
3092
|
__decorateClass([
|
|
2991
|
-
(0,
|
|
3093
|
+
(0, import_typeorm27.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
2992
3094
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
2993
3095
|
__decorateClass([
|
|
2994
|
-
(0,
|
|
3096
|
+
(0, import_typeorm27.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
2995
3097
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
2996
3098
|
__decorateClass([
|
|
2997
|
-
(0,
|
|
3099
|
+
(0, import_typeorm27.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
2998
3100
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
2999
3101
|
FreelancerDeclaration = __decorateClass([
|
|
3000
|
-
(0,
|
|
3102
|
+
(0, import_typeorm27.Entity)("freelancer_declaration")
|
|
3001
3103
|
], FreelancerDeclaration);
|
|
3002
3104
|
|
|
3003
3105
|
// src/entities/company-members-roles.entity.ts
|
|
3004
|
-
var
|
|
3106
|
+
var import_typeorm31 = require("typeorm");
|
|
3005
3107
|
|
|
3006
3108
|
// src/entities/company-role.entity.ts
|
|
3007
|
-
var
|
|
3109
|
+
var import_typeorm30 = require("typeorm");
|
|
3008
3110
|
|
|
3009
3111
|
// src/entities/company-role-permission.entity.ts
|
|
3010
|
-
var
|
|
3112
|
+
var import_typeorm29 = require("typeorm");
|
|
3011
3113
|
|
|
3012
3114
|
// src/entities/permission.entity.ts
|
|
3013
|
-
var
|
|
3115
|
+
var import_typeorm28 = require("typeorm");
|
|
3014
3116
|
var Permission = class extends BaseEntity {
|
|
3015
3117
|
};
|
|
3016
3118
|
__decorateClass([
|
|
3017
|
-
(0,
|
|
3119
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3018
3120
|
], Permission.prototype, "name", 2);
|
|
3019
3121
|
__decorateClass([
|
|
3020
|
-
(0,
|
|
3021
|
-
(0,
|
|
3122
|
+
(0, import_typeorm28.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3123
|
+
(0, import_typeorm28.Index)()
|
|
3022
3124
|
], Permission.prototype, "slug", 2);
|
|
3023
3125
|
__decorateClass([
|
|
3024
|
-
(0,
|
|
3126
|
+
(0, import_typeorm28.Column)({ name: "description", type: "text", nullable: true })
|
|
3025
3127
|
], Permission.prototype, "description", 2);
|
|
3026
3128
|
__decorateClass([
|
|
3027
|
-
(0,
|
|
3129
|
+
(0, import_typeorm28.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3028
3130
|
], Permission.prototype, "isActive", 2);
|
|
3029
3131
|
Permission = __decorateClass([
|
|
3030
|
-
(0,
|
|
3132
|
+
(0, import_typeorm28.Entity)("permissions")
|
|
3031
3133
|
], Permission);
|
|
3032
3134
|
|
|
3033
3135
|
// src/entities/company-role-permission.entity.ts
|
|
3034
3136
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3035
3137
|
};
|
|
3036
3138
|
__decorateClass([
|
|
3037
|
-
(0,
|
|
3038
|
-
(0,
|
|
3139
|
+
(0, import_typeorm29.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3140
|
+
(0, import_typeorm29.Index)()
|
|
3039
3141
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3040
3142
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3143
|
+
(0, import_typeorm29.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3042
3144
|
onDelete: "CASCADE"
|
|
3043
3145
|
}),
|
|
3044
|
-
(0,
|
|
3146
|
+
(0, import_typeorm29.JoinColumn)({ name: "company_role_id" })
|
|
3045
3147
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3046
3148
|
__decorateClass([
|
|
3047
|
-
(0,
|
|
3048
|
-
(0,
|
|
3149
|
+
(0, import_typeorm29.Column)({ name: "permission_id", type: "integer" }),
|
|
3150
|
+
(0, import_typeorm29.Index)()
|
|
3049
3151
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3050
3152
|
__decorateClass([
|
|
3051
|
-
(0,
|
|
3052
|
-
(0,
|
|
3153
|
+
(0, import_typeorm29.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3154
|
+
(0, import_typeorm29.JoinColumn)({ name: "permission_id" })
|
|
3053
3155
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3054
3156
|
__decorateClass([
|
|
3055
|
-
(0,
|
|
3157
|
+
(0, import_typeorm29.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3056
3158
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3057
3159
|
CompanyRolePermission = __decorateClass([
|
|
3058
|
-
(0,
|
|
3160
|
+
(0, import_typeorm29.Entity)("company_role_permissions")
|
|
3059
3161
|
], CompanyRolePermission);
|
|
3060
3162
|
|
|
3061
3163
|
// src/entities/company-role.entity.ts
|
|
3062
3164
|
var CompanyRole = class extends BaseEntity {
|
|
3063
3165
|
};
|
|
3064
3166
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3066
|
-
(0,
|
|
3167
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3168
|
+
(0, import_typeorm30.Index)()
|
|
3067
3169
|
], CompanyRole.prototype, "userId", 2);
|
|
3068
3170
|
__decorateClass([
|
|
3069
|
-
(0,
|
|
3070
|
-
(0,
|
|
3171
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.otps),
|
|
3172
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3071
3173
|
], CompanyRole.prototype, "user", 2);
|
|
3072
3174
|
__decorateClass([
|
|
3073
|
-
(0,
|
|
3175
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar" })
|
|
3074
3176
|
], CompanyRole.prototype, "name", 2);
|
|
3075
3177
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3077
|
-
(0,
|
|
3178
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3179
|
+
(0, import_typeorm30.Index)()
|
|
3078
3180
|
], CompanyRole.prototype, "slug", 2);
|
|
3079
3181
|
__decorateClass([
|
|
3080
|
-
(0,
|
|
3182
|
+
(0, import_typeorm30.Column)({ name: "description", type: "text", nullable: true })
|
|
3081
3183
|
], CompanyRole.prototype, "description", 2);
|
|
3082
3184
|
__decorateClass([
|
|
3083
|
-
(0,
|
|
3185
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3084
3186
|
], CompanyRole.prototype, "isActive", 2);
|
|
3085
3187
|
__decorateClass([
|
|
3086
|
-
(0,
|
|
3188
|
+
(0, import_typeorm30.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3087
3189
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3088
3190
|
CompanyRole = __decorateClass([
|
|
3089
|
-
(0,
|
|
3191
|
+
(0, import_typeorm30.Entity)("company_roles")
|
|
3090
3192
|
], CompanyRole);
|
|
3091
3193
|
|
|
3092
3194
|
// src/entities/company-members-roles.entity.ts
|
|
3093
3195
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3094
3196
|
};
|
|
3095
3197
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3097
|
-
(0,
|
|
3198
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3199
|
+
(0, import_typeorm31.Index)()
|
|
3098
3200
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3099
3201
|
__decorateClass([
|
|
3100
|
-
(0,
|
|
3101
|
-
(0,
|
|
3202
|
+
(0, import_typeorm31.ManyToOne)(() => User),
|
|
3203
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3102
3204
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3103
3205
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3105
|
-
(0,
|
|
3206
|
+
(0, import_typeorm31.ManyToOne)(() => CompanyRole),
|
|
3207
|
+
(0, import_typeorm31.JoinColumn)({ name: "company_role_id" })
|
|
3106
3208
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3107
3209
|
__decorateClass([
|
|
3108
|
-
(0,
|
|
3109
|
-
(0,
|
|
3210
|
+
(0, import_typeorm31.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3211
|
+
(0, import_typeorm31.Index)()
|
|
3110
3212
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3111
3213
|
__decorateClass([
|
|
3112
|
-
(0,
|
|
3214
|
+
(0, import_typeorm31.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3113
3215
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3114
3216
|
CompanyMemberRole = __decorateClass([
|
|
3115
|
-
(0,
|
|
3217
|
+
(0, import_typeorm31.Entity)("company_member_roles")
|
|
3116
3218
|
], CompanyMemberRole);
|
|
3117
3219
|
|
|
3118
3220
|
// src/entities/assessment-answer.entity.ts
|
|
3119
|
-
var
|
|
3221
|
+
var import_typeorm34 = require("typeorm");
|
|
3120
3222
|
|
|
3121
3223
|
// src/entities/assessment-question.entity.ts
|
|
3122
|
-
var
|
|
3224
|
+
var import_typeorm33 = require("typeorm");
|
|
3123
3225
|
|
|
3124
3226
|
// src/entities/assessment-question-option.entity.ts
|
|
3125
|
-
var
|
|
3227
|
+
var import_typeorm32 = require("typeorm");
|
|
3126
3228
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3127
3229
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3128
3230
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3132,21 +3234,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3132
3234
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3133
3235
|
};
|
|
3134
3236
|
__decorateClass([
|
|
3135
|
-
(0,
|
|
3136
|
-
(0,
|
|
3237
|
+
(0, import_typeorm32.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3238
|
+
(0, import_typeorm32.Index)()
|
|
3137
3239
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3138
3240
|
__decorateClass([
|
|
3139
|
-
(0,
|
|
3241
|
+
(0, import_typeorm32.ManyToOne)(
|
|
3140
3242
|
() => AssessmetQuestion,
|
|
3141
3243
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3142
3244
|
),
|
|
3143
|
-
(0,
|
|
3245
|
+
(0, import_typeorm32.JoinColumn)({ name: "question_id" })
|
|
3144
3246
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3145
3247
|
__decorateClass([
|
|
3146
|
-
(0,
|
|
3248
|
+
(0, import_typeorm32.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3147
3249
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3148
3250
|
__decorateClass([
|
|
3149
|
-
(0,
|
|
3251
|
+
(0, import_typeorm32.Column)({
|
|
3150
3252
|
name: "answer_type",
|
|
3151
3253
|
type: "enum",
|
|
3152
3254
|
enum: AnswerTypeEnum,
|
|
@@ -3154,13 +3256,13 @@ __decorateClass([
|
|
|
3154
3256
|
})
|
|
3155
3257
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3156
3258
|
__decorateClass([
|
|
3157
|
-
(0,
|
|
3259
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3158
3260
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3159
3261
|
__decorateClass([
|
|
3160
|
-
(0,
|
|
3262
|
+
(0, import_typeorm32.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3161
3263
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3162
3264
|
AssessmetQuestionOption = __decorateClass([
|
|
3163
|
-
(0,
|
|
3265
|
+
(0, import_typeorm32.Entity)("assessment_question_options")
|
|
3164
3266
|
], AssessmetQuestionOption);
|
|
3165
3267
|
|
|
3166
3268
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3172,10 +3274,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3172
3274
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3173
3275
|
};
|
|
3174
3276
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3277
|
+
(0, import_typeorm33.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3176
3278
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3177
3279
|
__decorateClass([
|
|
3178
|
-
(0,
|
|
3280
|
+
(0, import_typeorm33.Column)({
|
|
3179
3281
|
name: "question_for",
|
|
3180
3282
|
type: "enum",
|
|
3181
3283
|
enum: QuestionForEnum,
|
|
@@ -3183,16 +3285,16 @@ __decorateClass([
|
|
|
3183
3285
|
})
|
|
3184
3286
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3185
3287
|
__decorateClass([
|
|
3186
|
-
(0,
|
|
3288
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3187
3289
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3188
3290
|
__decorateClass([
|
|
3189
|
-
(0,
|
|
3291
|
+
(0, import_typeorm33.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3190
3292
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3191
3293
|
__decorateClass([
|
|
3192
|
-
(0,
|
|
3294
|
+
(0, import_typeorm33.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3193
3295
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3194
3296
|
AssessmetQuestion = __decorateClass([
|
|
3195
|
-
(0,
|
|
3297
|
+
(0, import_typeorm33.Entity)("assessment_questions")
|
|
3196
3298
|
], AssessmetQuestion);
|
|
3197
3299
|
|
|
3198
3300
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3205,118 +3307,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3205
3307
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3206
3308
|
};
|
|
3207
3309
|
__decorateClass([
|
|
3208
|
-
(0,
|
|
3209
|
-
(0,
|
|
3310
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer" }),
|
|
3311
|
+
(0, import_typeorm34.Index)()
|
|
3210
3312
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3211
3313
|
__decorateClass([
|
|
3212
|
-
(0,
|
|
3213
|
-
(0,
|
|
3314
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3315
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
3214
3316
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3215
3317
|
__decorateClass([
|
|
3216
|
-
(0,
|
|
3217
|
-
(0,
|
|
3318
|
+
(0, import_typeorm34.Column)({ name: "question_id", type: "integer" }),
|
|
3319
|
+
(0, import_typeorm34.Index)()
|
|
3218
3320
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3219
3321
|
__decorateClass([
|
|
3220
|
-
(0,
|
|
3322
|
+
(0, import_typeorm34.ManyToOne)(
|
|
3221
3323
|
() => AssessmetQuestion,
|
|
3222
3324
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3223
3325
|
),
|
|
3224
|
-
(0,
|
|
3326
|
+
(0, import_typeorm34.JoinColumn)({ name: "question_id" })
|
|
3225
3327
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3226
3328
|
__decorateClass([
|
|
3227
|
-
(0,
|
|
3228
|
-
(0,
|
|
3329
|
+
(0, import_typeorm34.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3330
|
+
(0, import_typeorm34.Index)()
|
|
3229
3331
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3230
3332
|
__decorateClass([
|
|
3231
|
-
(0,
|
|
3333
|
+
(0, import_typeorm34.ManyToOne)(
|
|
3232
3334
|
() => AssessmetQuestionOption,
|
|
3233
3335
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3234
3336
|
),
|
|
3235
|
-
(0,
|
|
3337
|
+
(0, import_typeorm34.JoinColumn)({ name: "selected_option_id" })
|
|
3236
3338
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3237
3339
|
__decorateClass([
|
|
3238
|
-
(0,
|
|
3340
|
+
(0, import_typeorm34.Column)({
|
|
3239
3341
|
name: "selected_answer_type",
|
|
3240
3342
|
type: "enum",
|
|
3241
3343
|
enum: SelectedAnswerTypeEnum
|
|
3242
3344
|
})
|
|
3243
3345
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3244
3346
|
__decorateClass([
|
|
3245
|
-
(0,
|
|
3347
|
+
(0, import_typeorm34.Column)({ name: "score", type: "float" })
|
|
3246
3348
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3247
3349
|
AssessmentAnswer = __decorateClass([
|
|
3248
|
-
(0,
|
|
3350
|
+
(0, import_typeorm34.Entity)("assessment_answers")
|
|
3249
3351
|
], AssessmentAnswer);
|
|
3250
3352
|
|
|
3251
3353
|
// src/entities/company-skill.entity.ts
|
|
3252
|
-
var
|
|
3354
|
+
var import_typeorm35 = require("typeorm");
|
|
3253
3355
|
var CompanySkill = class extends BaseEntity {
|
|
3254
3356
|
};
|
|
3255
3357
|
// individual index to find core skills by user
|
|
3256
3358
|
__decorateClass([
|
|
3257
|
-
(0,
|
|
3258
|
-
(0,
|
|
3359
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3360
|
+
(0, import_typeorm35.Index)()
|
|
3259
3361
|
], CompanySkill.prototype, "userId", 2);
|
|
3260
3362
|
__decorateClass([
|
|
3261
|
-
(0,
|
|
3262
|
-
(0,
|
|
3363
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3364
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3263
3365
|
], CompanySkill.prototype, "user", 2);
|
|
3264
3366
|
__decorateClass([
|
|
3265
|
-
(0,
|
|
3367
|
+
(0, import_typeorm35.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3266
3368
|
], CompanySkill.prototype, "skillName", 2);
|
|
3267
3369
|
CompanySkill = __decorateClass([
|
|
3268
|
-
(0,
|
|
3370
|
+
(0, import_typeorm35.Entity)("company_skills")
|
|
3269
3371
|
], CompanySkill);
|
|
3270
3372
|
|
|
3271
3373
|
// src/entities/admin-user-role.entity.ts
|
|
3272
|
-
var
|
|
3374
|
+
var import_typeorm39 = require("typeorm");
|
|
3273
3375
|
|
|
3274
3376
|
// src/entities/admin-role.entity.ts
|
|
3275
|
-
var
|
|
3377
|
+
var import_typeorm38 = require("typeorm");
|
|
3276
3378
|
|
|
3277
3379
|
// src/entities/admin-role-permission.entity.ts
|
|
3278
|
-
var
|
|
3380
|
+
var import_typeorm37 = require("typeorm");
|
|
3279
3381
|
|
|
3280
3382
|
// src/entities/admin-permission.entity.ts
|
|
3281
|
-
var
|
|
3383
|
+
var import_typeorm36 = require("typeorm");
|
|
3282
3384
|
var AdminPermission = class extends BaseEntity {
|
|
3283
3385
|
};
|
|
3284
3386
|
__decorateClass([
|
|
3285
|
-
(0,
|
|
3387
|
+
(0, import_typeorm36.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3286
3388
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3287
3389
|
__decorateClass([
|
|
3288
|
-
(0,
|
|
3390
|
+
(0, import_typeorm36.Column)({
|
|
3289
3391
|
name: "permission_slug",
|
|
3290
3392
|
type: "varchar",
|
|
3291
3393
|
unique: true,
|
|
3292
3394
|
nullable: true
|
|
3293
3395
|
}),
|
|
3294
|
-
(0,
|
|
3396
|
+
(0, import_typeorm36.Index)()
|
|
3295
3397
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3296
3398
|
__decorateClass([
|
|
3297
|
-
(0,
|
|
3399
|
+
(0, import_typeorm36.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3298
3400
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3299
3401
|
__decorateClass([
|
|
3300
|
-
(0,
|
|
3402
|
+
(0, import_typeorm36.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3301
3403
|
], AdminPermission.prototype, "module", 2);
|
|
3302
3404
|
__decorateClass([
|
|
3303
|
-
(0,
|
|
3405
|
+
(0, import_typeorm36.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3304
3406
|
], AdminPermission.prototype, "isActive", 2);
|
|
3305
3407
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3408
|
+
(0, import_typeorm36.OneToMany)(
|
|
3307
3409
|
() => AdminRolePermission,
|
|
3308
3410
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3309
3411
|
)
|
|
3310
3412
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3311
3413
|
AdminPermission = __decorateClass([
|
|
3312
|
-
(0,
|
|
3414
|
+
(0, import_typeorm36.Entity)("admin_permissions")
|
|
3313
3415
|
], AdminPermission);
|
|
3314
3416
|
|
|
3315
3417
|
// src/entities/admin-role-permission.entity.ts
|
|
3316
3418
|
var AdminRolePermission = class extends BaseEntity {
|
|
3317
3419
|
};
|
|
3318
3420
|
__decorateClass([
|
|
3319
|
-
(0,
|
|
3421
|
+
(0, import_typeorm37.Column)({
|
|
3320
3422
|
name: "role_id",
|
|
3321
3423
|
type: "int",
|
|
3322
3424
|
nullable: true,
|
|
@@ -3324,11 +3426,11 @@ __decorateClass([
|
|
|
3324
3426
|
})
|
|
3325
3427
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3326
3428
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3328
|
-
(0,
|
|
3429
|
+
(0, import_typeorm37.ManyToOne)(() => AdminRole),
|
|
3430
|
+
(0, import_typeorm37.JoinColumn)({ name: "role_id" })
|
|
3329
3431
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3330
3432
|
__decorateClass([
|
|
3331
|
-
(0,
|
|
3433
|
+
(0, import_typeorm37.Column)({
|
|
3332
3434
|
name: "permission_id",
|
|
3333
3435
|
type: "int",
|
|
3334
3436
|
nullable: true,
|
|
@@ -3336,47 +3438,47 @@ __decorateClass([
|
|
|
3336
3438
|
})
|
|
3337
3439
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3338
3440
|
__decorateClass([
|
|
3339
|
-
(0,
|
|
3340
|
-
(0,
|
|
3441
|
+
(0, import_typeorm37.ManyToOne)(() => AdminPermission),
|
|
3442
|
+
(0, import_typeorm37.JoinColumn)({ name: "permission_id" })
|
|
3341
3443
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3342
3444
|
AdminRolePermission = __decorateClass([
|
|
3343
|
-
(0,
|
|
3445
|
+
(0, import_typeorm37.Entity)("admin_role_permissions")
|
|
3344
3446
|
], AdminRolePermission);
|
|
3345
3447
|
|
|
3346
3448
|
// src/entities/admin-role.entity.ts
|
|
3347
3449
|
var AdminRole = class extends BaseEntity {
|
|
3348
3450
|
};
|
|
3349
3451
|
__decorateClass([
|
|
3350
|
-
(0,
|
|
3452
|
+
(0, import_typeorm38.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3351
3453
|
], AdminRole.prototype, "roleName", 2);
|
|
3352
3454
|
__decorateClass([
|
|
3353
|
-
(0,
|
|
3354
|
-
(0,
|
|
3455
|
+
(0, import_typeorm38.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3456
|
+
(0, import_typeorm38.Index)()
|
|
3355
3457
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3356
3458
|
__decorateClass([
|
|
3357
|
-
(0,
|
|
3459
|
+
(0, import_typeorm38.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3358
3460
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3359
3461
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3462
|
+
(0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3361
3463
|
], AdminRole.prototype, "isActive", 2);
|
|
3362
3464
|
__decorateClass([
|
|
3363
|
-
(0,
|
|
3465
|
+
(0, import_typeorm38.OneToMany)(
|
|
3364
3466
|
() => AdminRolePermission,
|
|
3365
3467
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3366
3468
|
)
|
|
3367
3469
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3368
3470
|
__decorateClass([
|
|
3369
|
-
(0,
|
|
3471
|
+
(0, import_typeorm38.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3370
3472
|
], AdminRole.prototype, "userRoles", 2);
|
|
3371
3473
|
AdminRole = __decorateClass([
|
|
3372
|
-
(0,
|
|
3474
|
+
(0, import_typeorm38.Entity)("admin_roles")
|
|
3373
3475
|
], AdminRole);
|
|
3374
3476
|
|
|
3375
3477
|
// src/entities/admin-user-role.entity.ts
|
|
3376
3478
|
var AdminUserRole = class extends BaseEntity {
|
|
3377
3479
|
};
|
|
3378
3480
|
__decorateClass([
|
|
3379
|
-
(0,
|
|
3481
|
+
(0, import_typeorm39.Column)({
|
|
3380
3482
|
name: "user_id",
|
|
3381
3483
|
type: "int",
|
|
3382
3484
|
nullable: true,
|
|
@@ -3384,11 +3486,11 @@ __decorateClass([
|
|
|
3384
3486
|
})
|
|
3385
3487
|
], AdminUserRole.prototype, "userId", 2);
|
|
3386
3488
|
__decorateClass([
|
|
3387
|
-
(0,
|
|
3388
|
-
(0,
|
|
3489
|
+
(0, import_typeorm39.ManyToOne)(() => User),
|
|
3490
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
3389
3491
|
], AdminUserRole.prototype, "user", 2);
|
|
3390
3492
|
__decorateClass([
|
|
3391
|
-
(0,
|
|
3493
|
+
(0, import_typeorm39.Column)({
|
|
3392
3494
|
name: "role_id",
|
|
3393
3495
|
type: "int",
|
|
3394
3496
|
nullable: true,
|
|
@@ -3396,34 +3498,34 @@ __decorateClass([
|
|
|
3396
3498
|
})
|
|
3397
3499
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3398
3500
|
__decorateClass([
|
|
3399
|
-
(0,
|
|
3400
|
-
(0,
|
|
3501
|
+
(0, import_typeorm39.ManyToOne)(() => AdminRole),
|
|
3502
|
+
(0, import_typeorm39.JoinColumn)({ name: "role_id" })
|
|
3401
3503
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3402
3504
|
AdminUserRole = __decorateClass([
|
|
3403
|
-
(0,
|
|
3505
|
+
(0, import_typeorm39.Entity)("admin_user_roles")
|
|
3404
3506
|
], AdminUserRole);
|
|
3405
3507
|
|
|
3406
3508
|
// src/entities/freelancer-resume.entity.ts
|
|
3407
|
-
var
|
|
3509
|
+
var import_typeorm40 = require("typeorm");
|
|
3408
3510
|
var FreelancerResume = class extends BaseEntity {
|
|
3409
3511
|
};
|
|
3410
3512
|
// individual index to find profile by user
|
|
3411
3513
|
__decorateClass([
|
|
3412
|
-
(0,
|
|
3413
|
-
(0,
|
|
3514
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3515
|
+
(0, import_typeorm40.Index)()
|
|
3414
3516
|
], FreelancerResume.prototype, "userId", 2);
|
|
3415
3517
|
__decorateClass([
|
|
3416
|
-
(0,
|
|
3417
|
-
(0,
|
|
3518
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3519
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
3418
3520
|
], FreelancerResume.prototype, "user", 2);
|
|
3419
3521
|
__decorateClass([
|
|
3420
|
-
(0,
|
|
3522
|
+
(0, import_typeorm40.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3421
3523
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3422
3524
|
__decorateClass([
|
|
3423
|
-
(0,
|
|
3525
|
+
(0, import_typeorm40.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3424
3526
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3425
3527
|
FreelancerResume = __decorateClass([
|
|
3426
|
-
(0,
|
|
3528
|
+
(0, import_typeorm40.Entity)("freelancer_resumes")
|
|
3427
3529
|
], FreelancerResume);
|
|
3428
3530
|
|
|
3429
3531
|
// src/entities/user.entity.ts
|
|
@@ -3451,51 +3553,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3451
3553
|
var User = class extends BaseEntity {
|
|
3452
3554
|
};
|
|
3453
3555
|
__decorateClass([
|
|
3454
|
-
(0,
|
|
3556
|
+
(0, import_typeorm41.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3455
3557
|
], User.prototype, "uniqueId", 2);
|
|
3456
3558
|
__decorateClass([
|
|
3457
|
-
(0,
|
|
3458
|
-
(0,
|
|
3559
|
+
(0, import_typeorm41.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3560
|
+
(0, import_typeorm41.Index)()
|
|
3459
3561
|
], User.prototype, "parentId", 2);
|
|
3460
3562
|
__decorateClass([
|
|
3461
|
-
(0,
|
|
3462
|
-
(0,
|
|
3563
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3564
|
+
(0, import_typeorm41.JoinColumn)({ name: "parent_id" })
|
|
3463
3565
|
], User.prototype, "parent", 2);
|
|
3464
3566
|
__decorateClass([
|
|
3465
|
-
(0,
|
|
3567
|
+
(0, import_typeorm41.OneToMany)(() => User, (user) => user.parent)
|
|
3466
3568
|
], User.prototype, "children", 2);
|
|
3467
3569
|
__decorateClass([
|
|
3468
|
-
(0,
|
|
3570
|
+
(0, import_typeorm41.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3469
3571
|
], User.prototype, "username", 2);
|
|
3470
3572
|
__decorateClass([
|
|
3471
|
-
(0,
|
|
3573
|
+
(0, import_typeorm41.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3472
3574
|
], User.prototype, "firstName", 2);
|
|
3473
3575
|
__decorateClass([
|
|
3474
|
-
(0,
|
|
3576
|
+
(0, import_typeorm41.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3475
3577
|
], User.prototype, "lastName", 2);
|
|
3476
3578
|
__decorateClass([
|
|
3477
|
-
(0,
|
|
3579
|
+
(0, import_typeorm41.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3478
3580
|
], User.prototype, "dateOfBirth", 2);
|
|
3479
3581
|
__decorateClass([
|
|
3480
|
-
(0,
|
|
3582
|
+
(0, import_typeorm41.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3481
3583
|
], User.prototype, "gender", 2);
|
|
3482
3584
|
__decorateClass([
|
|
3483
|
-
(0,
|
|
3585
|
+
(0, import_typeorm41.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3484
3586
|
], User.prototype, "profilePictureUrl", 2);
|
|
3485
3587
|
__decorateClass([
|
|
3486
|
-
(0,
|
|
3588
|
+
(0, import_typeorm41.Column)({ name: "email", type: "varchar", unique: true })
|
|
3487
3589
|
], User.prototype, "email", 2);
|
|
3488
3590
|
__decorateClass([
|
|
3489
|
-
(0,
|
|
3591
|
+
(0, import_typeorm41.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3490
3592
|
], User.prototype, "mobileCode", 2);
|
|
3491
3593
|
__decorateClass([
|
|
3492
|
-
(0,
|
|
3594
|
+
(0, import_typeorm41.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3493
3595
|
], User.prototype, "mobile", 2);
|
|
3494
3596
|
__decorateClass([
|
|
3495
|
-
(0,
|
|
3597
|
+
(0, import_typeorm41.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3496
3598
|
], User.prototype, "password", 2);
|
|
3497
3599
|
__decorateClass([
|
|
3498
|
-
(0,
|
|
3600
|
+
(0, import_typeorm41.Column)({
|
|
3499
3601
|
name: "account_type",
|
|
3500
3602
|
type: "enum",
|
|
3501
3603
|
enum: AccountType,
|
|
@@ -3503,7 +3605,7 @@ __decorateClass([
|
|
|
3503
3605
|
})
|
|
3504
3606
|
], User.prototype, "accountType", 2);
|
|
3505
3607
|
__decorateClass([
|
|
3506
|
-
(0,
|
|
3608
|
+
(0, import_typeorm41.Column)({
|
|
3507
3609
|
name: "account_status",
|
|
3508
3610
|
type: "enum",
|
|
3509
3611
|
enum: AccountStatus,
|
|
@@ -3511,39 +3613,39 @@ __decorateClass([
|
|
|
3511
3613
|
})
|
|
3512
3614
|
], User.prototype, "accountStatus", 2);
|
|
3513
3615
|
__decorateClass([
|
|
3514
|
-
(0,
|
|
3616
|
+
(0, import_typeorm41.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3515
3617
|
], User.prototype, "isEmailVerified", 2);
|
|
3516
3618
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3619
|
+
(0, import_typeorm41.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3518
3620
|
], User.prototype, "isMobileVerified", 2);
|
|
3519
3621
|
__decorateClass([
|
|
3520
|
-
(0,
|
|
3622
|
+
(0, import_typeorm41.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3521
3623
|
], User.prototype, "isSocial", 2);
|
|
3522
3624
|
__decorateClass([
|
|
3523
|
-
(0,
|
|
3625
|
+
(0, import_typeorm41.Column)({
|
|
3524
3626
|
name: "last_login_at",
|
|
3525
3627
|
type: "timestamp with time zone",
|
|
3526
3628
|
nullable: true
|
|
3527
3629
|
})
|
|
3528
3630
|
], User.prototype, "lastLoginAt", 2);
|
|
3529
3631
|
__decorateClass([
|
|
3530
|
-
(0,
|
|
3632
|
+
(0, import_typeorm41.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3531
3633
|
], User.prototype, "lastLoginIp", 2);
|
|
3532
3634
|
__decorateClass([
|
|
3533
|
-
(0,
|
|
3635
|
+
(0, import_typeorm41.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3534
3636
|
], User.prototype, "resetToken", 2);
|
|
3535
3637
|
__decorateClass([
|
|
3536
|
-
(0,
|
|
3638
|
+
(0, import_typeorm41.Column)({
|
|
3537
3639
|
name: "reset_token_expire_at",
|
|
3538
3640
|
type: "timestamp with time zone",
|
|
3539
3641
|
nullable: true
|
|
3540
3642
|
})
|
|
3541
3643
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3542
3644
|
__decorateClass([
|
|
3543
|
-
(0,
|
|
3645
|
+
(0, import_typeorm41.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3544
3646
|
], User.prototype, "refreshTokens", 2);
|
|
3545
3647
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3648
|
+
(0, import_typeorm41.Column)({
|
|
3547
3649
|
name: "provider",
|
|
3548
3650
|
type: "enum",
|
|
3549
3651
|
enum: Provider,
|
|
@@ -3552,94 +3654,94 @@ __decorateClass([
|
|
|
3552
3654
|
})
|
|
3553
3655
|
], User.prototype, "provider", 2);
|
|
3554
3656
|
__decorateClass([
|
|
3555
|
-
(0,
|
|
3657
|
+
(0, import_typeorm41.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3556
3658
|
], User.prototype, "providerToken", 2);
|
|
3557
3659
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3660
|
+
(0, import_typeorm41.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3559
3661
|
], User.prototype, "linkedInId", 2);
|
|
3560
3662
|
__decorateClass([
|
|
3561
|
-
(0,
|
|
3663
|
+
(0, import_typeorm41.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3562
3664
|
], User.prototype, "googleId", 2);
|
|
3563
3665
|
__decorateClass([
|
|
3564
|
-
(0,
|
|
3666
|
+
(0, import_typeorm41.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3565
3667
|
], User.prototype, "gitLabsId", 2);
|
|
3566
3668
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3669
|
+
(0, import_typeorm41.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3568
3670
|
], User.prototype, "otps", 2);
|
|
3569
3671
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3672
|
+
(0, import_typeorm41.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3571
3673
|
], User.prototype, "senseloafLogs", 2);
|
|
3572
3674
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3675
|
+
(0, import_typeorm41.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3574
3676
|
], User.prototype, "companyProfile", 2);
|
|
3575
3677
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3678
|
+
(0, import_typeorm41.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3577
3679
|
], User.prototype, "companySkills", 2);
|
|
3578
3680
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3681
|
+
(0, import_typeorm41.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3580
3682
|
], User.prototype, "companyMemberRoles", 2);
|
|
3581
3683
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3684
|
+
(0, import_typeorm41.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3583
3685
|
], User.prototype, "freelancerProfile", 2);
|
|
3584
3686
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3687
|
+
(0, import_typeorm41.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3586
3688
|
], User.prototype, "freelancerResume", 2);
|
|
3587
3689
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3690
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3589
3691
|
], User.prototype, "assessments", 2);
|
|
3590
3692
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3693
|
+
(0, import_typeorm41.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3592
3694
|
], User.prototype, "assessmentAnswers", 2);
|
|
3593
3695
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3696
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3595
3697
|
], User.prototype, "freelancerSkills", 2);
|
|
3596
3698
|
__decorateClass([
|
|
3597
|
-
(0,
|
|
3699
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3598
3700
|
], User.prototype, "freelancerExperience", 2);
|
|
3599
3701
|
__decorateClass([
|
|
3600
|
-
(0,
|
|
3702
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3601
3703
|
], User.prototype, "freelancerEducation", 2);
|
|
3602
3704
|
__decorateClass([
|
|
3603
|
-
(0,
|
|
3705
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3604
3706
|
], User.prototype, "freelancerProject", 2);
|
|
3605
3707
|
__decorateClass([
|
|
3606
|
-
(0,
|
|
3708
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3607
3709
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3608
3710
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3711
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3610
3712
|
], User.prototype, "freelancerTool", 2);
|
|
3611
3713
|
__decorateClass([
|
|
3612
|
-
(0,
|
|
3714
|
+
(0, import_typeorm41.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3613
3715
|
], User.prototype, "freelancerFramework", 2);
|
|
3614
3716
|
__decorateClass([
|
|
3615
|
-
(0,
|
|
3717
|
+
(0, import_typeorm41.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3616
3718
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3617
3719
|
__decorateClass([
|
|
3618
|
-
(0,
|
|
3720
|
+
(0, import_typeorm41.OneToMany)(() => Job, (job) => job.user)
|
|
3619
3721
|
], User.prototype, "jobs", 2);
|
|
3620
3722
|
__decorateClass([
|
|
3621
|
-
(0,
|
|
3723
|
+
(0, import_typeorm41.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3622
3724
|
], User.prototype, "jobApplications", 2);
|
|
3623
3725
|
__decorateClass([
|
|
3624
|
-
(0,
|
|
3726
|
+
(0, import_typeorm41.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3625
3727
|
], User.prototype, "interviews", 2);
|
|
3626
3728
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3729
|
+
(0, import_typeorm41.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3628
3730
|
], User.prototype, "bankDetail", 2);
|
|
3629
3731
|
__decorateClass([
|
|
3630
|
-
(0,
|
|
3732
|
+
(0, import_typeorm41.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3631
3733
|
], User.prototype, "systemPreference", 2);
|
|
3632
3734
|
__decorateClass([
|
|
3633
|
-
(0,
|
|
3735
|
+
(0, import_typeorm41.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3634
3736
|
], User.prototype, "givenRatings", 2);
|
|
3635
3737
|
__decorateClass([
|
|
3636
|
-
(0,
|
|
3738
|
+
(0, import_typeorm41.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3637
3739
|
], User.prototype, "receivedRatings", 2);
|
|
3638
3740
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3741
|
+
(0, import_typeorm41.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3640
3742
|
], User.prototype, "adminUserRoles", 2);
|
|
3641
3743
|
User = __decorateClass([
|
|
3642
|
-
(0,
|
|
3744
|
+
(0, import_typeorm41.Entity)("users")
|
|
3643
3745
|
], User);
|
|
3644
3746
|
|
|
3645
3747
|
// src/entities/rating.entity.ts
|
|
@@ -3651,36 +3753,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3651
3753
|
var Rating = class extends BaseEntity {
|
|
3652
3754
|
};
|
|
3653
3755
|
__decorateClass([
|
|
3654
|
-
(0,
|
|
3655
|
-
(0,
|
|
3756
|
+
(0, import_typeorm42.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3757
|
+
(0, import_typeorm42.Index)()
|
|
3656
3758
|
], Rating.prototype, "reviewer_id", 2);
|
|
3657
3759
|
__decorateClass([
|
|
3658
|
-
(0,
|
|
3659
|
-
(0,
|
|
3760
|
+
(0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3761
|
+
(0, import_typeorm42.JoinColumn)({ name: "reviewer_id" })
|
|
3660
3762
|
], Rating.prototype, "reviewer", 2);
|
|
3661
3763
|
__decorateClass([
|
|
3662
|
-
(0,
|
|
3663
|
-
(0,
|
|
3764
|
+
(0, import_typeorm42.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3765
|
+
(0, import_typeorm42.Index)()
|
|
3664
3766
|
], Rating.prototype, "reviewee_id", 2);
|
|
3665
3767
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3667
|
-
(0,
|
|
3768
|
+
(0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3769
|
+
(0, import_typeorm42.JoinColumn)({ name: "reviewee_id" })
|
|
3668
3770
|
], Rating.prototype, "reviewee", 2);
|
|
3669
3771
|
__decorateClass([
|
|
3670
|
-
(0,
|
|
3772
|
+
(0, import_typeorm42.Column)({
|
|
3671
3773
|
type: "enum",
|
|
3672
3774
|
enum: RatingTypeEnum,
|
|
3673
3775
|
nullable: true
|
|
3674
3776
|
})
|
|
3675
3777
|
], Rating.prototype, "ratingType", 2);
|
|
3676
3778
|
__decorateClass([
|
|
3677
|
-
(0,
|
|
3779
|
+
(0, import_typeorm42.Column)({ type: "integer", nullable: true })
|
|
3678
3780
|
], Rating.prototype, "rating", 2);
|
|
3679
3781
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3782
|
+
(0, import_typeorm42.Column)({ type: "text", nullable: true })
|
|
3681
3783
|
], Rating.prototype, "review", 2);
|
|
3682
3784
|
Rating = __decorateClass([
|
|
3683
|
-
(0,
|
|
3785
|
+
(0, import_typeorm42.Entity)("ratings")
|
|
3684
3786
|
], Rating);
|
|
3685
3787
|
|
|
3686
3788
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4958,11 +5060,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4958
5060
|
};
|
|
4959
5061
|
|
|
4960
5062
|
// src/entities/sequence-generator.entity.ts
|
|
4961
|
-
var
|
|
5063
|
+
var import_typeorm43 = require("typeorm");
|
|
4962
5064
|
var SequenceGenerator = class extends BaseEntity {
|
|
4963
5065
|
};
|
|
4964
5066
|
__decorateClass([
|
|
4965
|
-
(0,
|
|
5067
|
+
(0, import_typeorm43.Column)({
|
|
4966
5068
|
name: "module",
|
|
4967
5069
|
type: "varchar",
|
|
4968
5070
|
length: 50,
|
|
@@ -4971,7 +5073,7 @@ __decorateClass([
|
|
|
4971
5073
|
})
|
|
4972
5074
|
], SequenceGenerator.prototype, "module", 2);
|
|
4973
5075
|
__decorateClass([
|
|
4974
|
-
(0,
|
|
5076
|
+
(0, import_typeorm43.Column)({
|
|
4975
5077
|
name: "prefix",
|
|
4976
5078
|
type: "varchar",
|
|
4977
5079
|
length: 10,
|
|
@@ -4980,7 +5082,7 @@ __decorateClass([
|
|
|
4980
5082
|
})
|
|
4981
5083
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
4982
5084
|
__decorateClass([
|
|
4983
|
-
(0,
|
|
5085
|
+
(0, import_typeorm43.Column)({
|
|
4984
5086
|
name: "last_sequence",
|
|
4985
5087
|
type: "int",
|
|
4986
5088
|
nullable: false,
|
|
@@ -4988,7 +5090,7 @@ __decorateClass([
|
|
|
4988
5090
|
})
|
|
4989
5091
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
4990
5092
|
__decorateClass([
|
|
4991
|
-
(0,
|
|
5093
|
+
(0, import_typeorm43.Column)({
|
|
4992
5094
|
name: "year",
|
|
4993
5095
|
type: "int",
|
|
4994
5096
|
nullable: true,
|
|
@@ -4996,11 +5098,11 @@ __decorateClass([
|
|
|
4996
5098
|
})
|
|
4997
5099
|
], SequenceGenerator.prototype, "year", 2);
|
|
4998
5100
|
SequenceGenerator = __decorateClass([
|
|
4999
|
-
(0,
|
|
5101
|
+
(0, import_typeorm43.Entity)("sequence_generators")
|
|
5000
5102
|
], SequenceGenerator);
|
|
5001
5103
|
|
|
5002
5104
|
// src/entities/question.entity.ts
|
|
5003
|
-
var
|
|
5105
|
+
var import_typeorm44 = require("typeorm");
|
|
5004
5106
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5005
5107
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5006
5108
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5009,16 +5111,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5009
5111
|
var Question = class extends BaseEntity {
|
|
5010
5112
|
};
|
|
5011
5113
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5114
|
+
(0, import_typeorm44.Column)({ name: "question", type: "varchar" })
|
|
5013
5115
|
], Question.prototype, "question", 2);
|
|
5014
5116
|
__decorateClass([
|
|
5015
|
-
(0,
|
|
5117
|
+
(0, import_typeorm44.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5016
5118
|
], Question.prototype, "hint", 2);
|
|
5017
5119
|
__decorateClass([
|
|
5018
|
-
(0,
|
|
5120
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5019
5121
|
], Question.prototype, "slug", 2);
|
|
5020
5122
|
__decorateClass([
|
|
5021
|
-
(0,
|
|
5123
|
+
(0, import_typeorm44.Column)({
|
|
5022
5124
|
name: "question_for",
|
|
5023
5125
|
type: "enum",
|
|
5024
5126
|
enum: QuestionFor,
|
|
@@ -5026,151 +5128,52 @@ __decorateClass([
|
|
|
5026
5128
|
})
|
|
5027
5129
|
], Question.prototype, "questionFor", 2);
|
|
5028
5130
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5131
|
+
(0, import_typeorm44.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5030
5132
|
], Question.prototype, "type", 2);
|
|
5031
5133
|
__decorateClass([
|
|
5032
|
-
(0,
|
|
5134
|
+
(0, import_typeorm44.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5033
5135
|
], Question.prototype, "options", 2);
|
|
5034
5136
|
__decorateClass([
|
|
5035
|
-
(0,
|
|
5137
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5036
5138
|
], Question.prototype, "isActive", 2);
|
|
5037
5139
|
Question = __decorateClass([
|
|
5038
|
-
(0,
|
|
5140
|
+
(0, import_typeorm44.Entity)("questions")
|
|
5039
5141
|
], Question);
|
|
5040
5142
|
|
|
5041
5143
|
// src/entities/skill.entity.ts
|
|
5042
|
-
var
|
|
5144
|
+
var import_typeorm45 = require("typeorm");
|
|
5043
5145
|
var Skill = class extends BaseEntity {
|
|
5044
5146
|
};
|
|
5045
5147
|
__decorateClass([
|
|
5046
|
-
(0,
|
|
5148
|
+
(0, import_typeorm45.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5047
5149
|
], Skill.prototype, "name", 2);
|
|
5048
5150
|
__decorateClass([
|
|
5049
|
-
(0,
|
|
5151
|
+
(0, import_typeorm45.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5050
5152
|
], Skill.prototype, "slug", 2);
|
|
5051
5153
|
__decorateClass([
|
|
5052
|
-
(0,
|
|
5154
|
+
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5053
5155
|
], Skill.prototype, "isActive", 2);
|
|
5054
5156
|
Skill = __decorateClass([
|
|
5055
|
-
(0,
|
|
5157
|
+
(0, import_typeorm45.Entity)("skills")
|
|
5056
5158
|
], Skill);
|
|
5057
5159
|
|
|
5058
5160
|
// src/entities/job-role.entity.ts
|
|
5059
|
-
var
|
|
5161
|
+
var import_typeorm46 = require("typeorm");
|
|
5060
5162
|
var JobRoles = class extends BaseEntity {
|
|
5061
5163
|
};
|
|
5062
5164
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5165
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5064
5166
|
], JobRoles.prototype, "slug", 2);
|
|
5065
5167
|
__decorateClass([
|
|
5066
|
-
(0,
|
|
5168
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5067
5169
|
], JobRoles.prototype, "name", 2);
|
|
5068
5170
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5171
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5070
5172
|
], JobRoles.prototype, "isActive", 2);
|
|
5071
5173
|
JobRoles = __decorateClass([
|
|
5072
|
-
(0,
|
|
5174
|
+
(0, import_typeorm46.Entity)("job_roles")
|
|
5073
5175
|
], JobRoles);
|
|
5074
5176
|
|
|
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
5177
|
// src/entities/ai-interview.entity.ts
|
|
5175
5178
|
var import_typeorm47 = require("typeorm");
|
|
5176
5179
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|