@experts_hub/shared 1.0.329 → 1.0.331
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/ai-interview.entity.d.ts +16 -35
- package/dist/entities/calendly-meeting.entity.d.ts +2 -20
- package/dist/entities/{freelancer-f2f-interview.entity.d.ts → f2f-interview.entity.d.ts} +7 -1
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +6 -0
- package/dist/index.d.mts +68 -40
- package/dist/index.d.ts +68 -40
- package/dist/index.js +707 -668
- package/dist/index.mjs +686 -633
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1391,17 +1391,17 @@ import {
|
|
|
1391
1391
|
} from "class-validator";
|
|
1392
1392
|
|
|
1393
1393
|
// src/entities/rating.entity.ts
|
|
1394
|
-
import { Entity as
|
|
1394
|
+
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne39, JoinColumn as JoinColumn39, Index as Index39 } from "typeorm";
|
|
1395
1395
|
|
|
1396
1396
|
// src/entities/user.entity.ts
|
|
1397
1397
|
import {
|
|
1398
|
-
Entity as
|
|
1399
|
-
Column as
|
|
1398
|
+
Entity as Entity44,
|
|
1399
|
+
Column as Column45,
|
|
1400
1400
|
OneToMany as OneToMany14,
|
|
1401
|
-
OneToOne,
|
|
1402
|
-
Index as
|
|
1403
|
-
ManyToOne as
|
|
1404
|
-
JoinColumn as
|
|
1401
|
+
OneToOne as OneToOne3,
|
|
1402
|
+
Index as Index38,
|
|
1403
|
+
ManyToOne as ManyToOne38,
|
|
1404
|
+
JoinColumn as JoinColumn38
|
|
1405
1405
|
} from "typeorm";
|
|
1406
1406
|
|
|
1407
1407
|
// src/entities/base.entity.ts
|
|
@@ -2116,11 +2116,11 @@ CompanyProfile = __decorateClass([
|
|
|
2116
2116
|
|
|
2117
2117
|
// src/entities/job.entity.ts
|
|
2118
2118
|
import {
|
|
2119
|
-
Entity as
|
|
2120
|
-
Column as
|
|
2121
|
-
Index as
|
|
2122
|
-
ManyToOne as
|
|
2123
|
-
JoinColumn as
|
|
2119
|
+
Entity as Entity17,
|
|
2120
|
+
Column as Column18,
|
|
2121
|
+
Index as Index13,
|
|
2122
|
+
ManyToOne as ManyToOne16,
|
|
2123
|
+
JoinColumn as JoinColumn16,
|
|
2124
2124
|
OneToMany as OneToMany6
|
|
2125
2125
|
} from "typeorm";
|
|
2126
2126
|
|
|
@@ -2267,11 +2267,11 @@ JobApplication = __decorateClass([
|
|
|
2267
2267
|
|
|
2268
2268
|
// src/entities/interview.entity.ts
|
|
2269
2269
|
import {
|
|
2270
|
-
Entity as
|
|
2271
|
-
Column as
|
|
2272
|
-
Index as
|
|
2273
|
-
ManyToOne as
|
|
2274
|
-
JoinColumn as
|
|
2270
|
+
Entity as Entity15,
|
|
2271
|
+
Column as Column16,
|
|
2272
|
+
Index as Index11,
|
|
2273
|
+
ManyToOne as ManyToOne14,
|
|
2274
|
+
JoinColumn as JoinColumn14,
|
|
2275
2275
|
OneToMany as OneToMany5
|
|
2276
2276
|
} from "typeorm";
|
|
2277
2277
|
|
|
@@ -2425,6 +2425,60 @@ InterviewInvite = __decorateClass([
|
|
|
2425
2425
|
Entity13("interview_invites")
|
|
2426
2426
|
], InterviewInvite);
|
|
2427
2427
|
|
|
2428
|
+
// src/entities/ai-interview.entity.ts
|
|
2429
|
+
import { Entity as Entity14, Column as Column15, Index as Index10, ManyToOne as ManyToOne13, JoinColumn as JoinColumn13 } from "typeorm";
|
|
2430
|
+
var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
2431
|
+
AiInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2432
|
+
AiInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2433
|
+
AiInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2434
|
+
AiInterviewStatusEnum2["PASSED"] = "PASSED";
|
|
2435
|
+
AiInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
2436
|
+
AiInterviewStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2437
|
+
AiInterviewStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2438
|
+
AiInterviewStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2439
|
+
AiInterviewStatusEnum2["EXITED"] = "EXITED";
|
|
2440
|
+
return AiInterviewStatusEnum2;
|
|
2441
|
+
})(AiInterviewStatusEnum || {});
|
|
2442
|
+
var AiInterview = class extends BaseEntity {
|
|
2443
|
+
};
|
|
2444
|
+
__decorateClass([
|
|
2445
|
+
Column15({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2446
|
+
Index10()
|
|
2447
|
+
], AiInterview.prototype, "candidateId", 2);
|
|
2448
|
+
__decorateClass([
|
|
2449
|
+
ManyToOne13(() => User, (user) => user.freelancerAiInterview),
|
|
2450
|
+
JoinColumn13({ name: "candidate_id" })
|
|
2451
|
+
], AiInterview.prototype, "candidate", 2);
|
|
2452
|
+
__decorateClass([
|
|
2453
|
+
Column15({ name: "interviwer_id", type: "integer", nullable: true }),
|
|
2454
|
+
Index10()
|
|
2455
|
+
], AiInterview.prototype, "interviwerId", 2);
|
|
2456
|
+
__decorateClass([
|
|
2457
|
+
ManyToOne13(() => User, (user) => user.companyAiInterview),
|
|
2458
|
+
JoinColumn13({ name: "interviwer_id" })
|
|
2459
|
+
], AiInterview.prototype, "interviwer", 2);
|
|
2460
|
+
__decorateClass([
|
|
2461
|
+
Column15({ name: "interview_id", type: "integer", nullable: true })
|
|
2462
|
+
], AiInterview.prototype, "interviewId", 2);
|
|
2463
|
+
__decorateClass([
|
|
2464
|
+
ManyToOne13(() => Interview, (interview) => interview.aiInterviews),
|
|
2465
|
+
JoinColumn13({ name: "interview_id" })
|
|
2466
|
+
], AiInterview.prototype, "interview", 2);
|
|
2467
|
+
__decorateClass([
|
|
2468
|
+
Column15({ name: "invite_id", type: "integer", nullable: true })
|
|
2469
|
+
], AiInterview.prototype, "inviteId", 2);
|
|
2470
|
+
__decorateClass([
|
|
2471
|
+
Column15({
|
|
2472
|
+
name: "status",
|
|
2473
|
+
type: "enum",
|
|
2474
|
+
enum: AiInterviewStatusEnum,
|
|
2475
|
+
nullable: true
|
|
2476
|
+
})
|
|
2477
|
+
], AiInterview.prototype, "status", 2);
|
|
2478
|
+
AiInterview = __decorateClass([
|
|
2479
|
+
Entity14("ai_interviews")
|
|
2480
|
+
], AiInterview);
|
|
2481
|
+
|
|
2428
2482
|
// src/entities/interview.entity.ts
|
|
2429
2483
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2430
2484
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2437,44 +2491,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2437
2491
|
var Interview = class extends BaseEntity {
|
|
2438
2492
|
};
|
|
2439
2493
|
__decorateClass([
|
|
2440
|
-
|
|
2494
|
+
Column16({
|
|
2441
2495
|
name: "interview_id",
|
|
2442
2496
|
type: "varchar",
|
|
2443
2497
|
unique: true,
|
|
2444
2498
|
nullable: true
|
|
2445
2499
|
}),
|
|
2446
|
-
|
|
2500
|
+
Index11()
|
|
2447
2501
|
], Interview.prototype, "interviewId", 2);
|
|
2448
2502
|
__decorateClass([
|
|
2449
|
-
|
|
2450
|
-
|
|
2503
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2504
|
+
Index11()
|
|
2451
2505
|
], Interview.prototype, "userId", 2);
|
|
2452
2506
|
__decorateClass([
|
|
2453
|
-
|
|
2454
|
-
|
|
2507
|
+
ManyToOne14(() => User, (user) => user.interviews),
|
|
2508
|
+
JoinColumn14({ name: "user_id" })
|
|
2455
2509
|
], Interview.prototype, "user", 2);
|
|
2456
2510
|
__decorateClass([
|
|
2457
|
-
|
|
2511
|
+
Column16({ name: "interview_name", type: "varchar", nullable: true })
|
|
2458
2512
|
], Interview.prototype, "interviewName", 2);
|
|
2459
2513
|
__decorateClass([
|
|
2460
|
-
|
|
2461
|
-
|
|
2514
|
+
Column16({ name: "job_id", type: "integer" }),
|
|
2515
|
+
Index11()
|
|
2462
2516
|
], Interview.prototype, "jobId", 2);
|
|
2463
2517
|
__decorateClass([
|
|
2464
|
-
|
|
2465
|
-
|
|
2518
|
+
ManyToOne14(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2519
|
+
JoinColumn14({ name: "job_id" })
|
|
2466
2520
|
], Interview.prototype, "job", 2);
|
|
2467
2521
|
__decorateClass([
|
|
2468
|
-
|
|
2522
|
+
Column16({ name: "interview_type", type: "varchar", nullable: true })
|
|
2469
2523
|
], Interview.prototype, "interviewType", 2);
|
|
2470
2524
|
__decorateClass([
|
|
2471
|
-
|
|
2525
|
+
Column16({ name: "interview_language", type: "varchar", nullable: true })
|
|
2472
2526
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2473
2527
|
__decorateClass([
|
|
2474
|
-
|
|
2528
|
+
Column16({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2475
2529
|
], Interview.prototype, "allowProctoring", 2);
|
|
2476
2530
|
__decorateClass([
|
|
2477
|
-
|
|
2531
|
+
Column16({
|
|
2478
2532
|
name: "status",
|
|
2479
2533
|
type: "enum",
|
|
2480
2534
|
enum: InterviewStatusEnum,
|
|
@@ -2498,48 +2552,51 @@ __decorateClass([
|
|
|
2498
2552
|
__decorateClass([
|
|
2499
2553
|
OneToMany5(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2500
2554
|
], Interview.prototype, "invites", 2);
|
|
2555
|
+
__decorateClass([
|
|
2556
|
+
OneToMany5(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2557
|
+
], Interview.prototype, "aiInterviews", 2);
|
|
2501
2558
|
Interview = __decorateClass([
|
|
2502
|
-
|
|
2559
|
+
Entity15("interviews")
|
|
2503
2560
|
], Interview);
|
|
2504
2561
|
|
|
2505
2562
|
// src/entities/job-recommendation.entity.ts
|
|
2506
|
-
import { Entity as
|
|
2563
|
+
import { Entity as Entity16, Column as Column17, Index as Index12, ManyToOne as ManyToOne15, JoinColumn as JoinColumn15, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2507
2564
|
var JobRecommendation = class {
|
|
2508
2565
|
};
|
|
2509
2566
|
__decorateClass([
|
|
2510
2567
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2511
2568
|
], JobRecommendation.prototype, "id", 2);
|
|
2512
2569
|
__decorateClass([
|
|
2513
|
-
|
|
2514
|
-
|
|
2570
|
+
Column17({ name: "job_id", type: "integer" }),
|
|
2571
|
+
Index12()
|
|
2515
2572
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2516
2573
|
__decorateClass([
|
|
2517
|
-
|
|
2518
|
-
|
|
2574
|
+
ManyToOne15(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2575
|
+
JoinColumn15({ name: "job_id" })
|
|
2519
2576
|
], JobRecommendation.prototype, "job", 2);
|
|
2520
2577
|
__decorateClass([
|
|
2521
|
-
|
|
2522
|
-
|
|
2578
|
+
Column17({ name: "freelancer_id", type: "integer" }),
|
|
2579
|
+
Index12()
|
|
2523
2580
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2524
2581
|
__decorateClass([
|
|
2525
|
-
|
|
2526
|
-
|
|
2582
|
+
Column17({ name: "client_id", type: "integer" }),
|
|
2583
|
+
Index12()
|
|
2527
2584
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2528
2585
|
__decorateClass([
|
|
2529
|
-
|
|
2586
|
+
Column17({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2530
2587
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2531
2588
|
__decorateClass([
|
|
2532
|
-
|
|
2589
|
+
Column17({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2533
2590
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2534
2591
|
__decorateClass([
|
|
2535
|
-
|
|
2592
|
+
Column17({
|
|
2536
2593
|
name: "last_calculated_at",
|
|
2537
2594
|
type: "timestamp with time zone",
|
|
2538
2595
|
nullable: true
|
|
2539
2596
|
})
|
|
2540
2597
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2541
2598
|
JobRecommendation = __decorateClass([
|
|
2542
|
-
|
|
2599
|
+
Entity16("job_recommendations")
|
|
2543
2600
|
], JobRecommendation);
|
|
2544
2601
|
|
|
2545
2602
|
// src/entities/job.entity.ts
|
|
@@ -2579,49 +2636,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2579
2636
|
var Job = class extends BaseEntity {
|
|
2580
2637
|
};
|
|
2581
2638
|
__decorateClass([
|
|
2582
|
-
|
|
2639
|
+
Column18({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2583
2640
|
], Job.prototype, "jobId", 2);
|
|
2584
2641
|
// individual index to find jobs by user
|
|
2585
2642
|
__decorateClass([
|
|
2586
|
-
|
|
2587
|
-
|
|
2643
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2644
|
+
Index13()
|
|
2588
2645
|
], Job.prototype, "userId", 2);
|
|
2589
2646
|
__decorateClass([
|
|
2590
|
-
|
|
2591
|
-
|
|
2647
|
+
ManyToOne16(() => User, (user) => user.jobs),
|
|
2648
|
+
JoinColumn16({ name: "user_id" })
|
|
2592
2649
|
], Job.prototype, "user", 2);
|
|
2593
2650
|
__decorateClass([
|
|
2594
|
-
|
|
2651
|
+
Column18({ name: "country_id", type: "int", nullable: true })
|
|
2595
2652
|
], Job.prototype, "countryId", 2);
|
|
2596
2653
|
__decorateClass([
|
|
2597
|
-
|
|
2598
|
-
|
|
2654
|
+
ManyToOne16(() => Country),
|
|
2655
|
+
JoinColumn16({ name: "country_id" })
|
|
2599
2656
|
], Job.prototype, "country", 2);
|
|
2600
2657
|
__decorateClass([
|
|
2601
|
-
|
|
2658
|
+
Column18({ name: "state_id", type: "int", nullable: true })
|
|
2602
2659
|
], Job.prototype, "stateId", 2);
|
|
2603
2660
|
__decorateClass([
|
|
2604
|
-
|
|
2605
|
-
|
|
2661
|
+
ManyToOne16(() => State),
|
|
2662
|
+
JoinColumn16({ name: "state_id" })
|
|
2606
2663
|
], Job.prototype, "state", 2);
|
|
2607
2664
|
__decorateClass([
|
|
2608
|
-
|
|
2665
|
+
Column18({ name: "city_id", type: "int", nullable: true })
|
|
2609
2666
|
], Job.prototype, "cityId", 2);
|
|
2610
2667
|
__decorateClass([
|
|
2611
|
-
|
|
2612
|
-
|
|
2668
|
+
ManyToOne16(() => City),
|
|
2669
|
+
JoinColumn16({ name: "city_id" })
|
|
2613
2670
|
], Job.prototype, "city", 2);
|
|
2614
2671
|
__decorateClass([
|
|
2615
|
-
|
|
2672
|
+
Column18({ name: "job_role", type: "varchar", nullable: true })
|
|
2616
2673
|
], Job.prototype, "jobRole", 2);
|
|
2617
2674
|
__decorateClass([
|
|
2618
|
-
|
|
2675
|
+
Column18({ name: "note", type: "varchar", nullable: true })
|
|
2619
2676
|
], Job.prototype, "note", 2);
|
|
2620
2677
|
__decorateClass([
|
|
2621
|
-
|
|
2678
|
+
Column18({ name: "openings", type: "integer", default: 0 })
|
|
2622
2679
|
], Job.prototype, "openings", 2);
|
|
2623
2680
|
__decorateClass([
|
|
2624
|
-
|
|
2681
|
+
Column18({
|
|
2625
2682
|
name: "location",
|
|
2626
2683
|
type: "enum",
|
|
2627
2684
|
enum: JobLocationEnum,
|
|
@@ -2629,7 +2686,7 @@ __decorateClass([
|
|
|
2629
2686
|
})
|
|
2630
2687
|
], Job.prototype, "location", 2);
|
|
2631
2688
|
__decorateClass([
|
|
2632
|
-
|
|
2689
|
+
Column18({
|
|
2633
2690
|
name: "type_of_employment",
|
|
2634
2691
|
type: "enum",
|
|
2635
2692
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2637,19 +2694,19 @@ __decorateClass([
|
|
|
2637
2694
|
})
|
|
2638
2695
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2639
2696
|
__decorateClass([
|
|
2640
|
-
|
|
2697
|
+
Column18({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2641
2698
|
], Job.prototype, "academicQualification", 2);
|
|
2642
2699
|
__decorateClass([
|
|
2643
|
-
|
|
2700
|
+
Column18({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2644
2701
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2645
2702
|
__decorateClass([
|
|
2646
|
-
|
|
2703
|
+
Column18({ name: "business_industry", type: "varchar", nullable: true })
|
|
2647
2704
|
], Job.prototype, "businessIndustry", 2);
|
|
2648
2705
|
__decorateClass([
|
|
2649
|
-
|
|
2706
|
+
Column18({ name: "currency", type: "varchar", default: "USD" })
|
|
2650
2707
|
], Job.prototype, "currency", 2);
|
|
2651
2708
|
__decorateClass([
|
|
2652
|
-
|
|
2709
|
+
Column18({
|
|
2653
2710
|
name: "expected_salary_from",
|
|
2654
2711
|
type: "decimal",
|
|
2655
2712
|
precision: 10,
|
|
@@ -2658,7 +2715,7 @@ __decorateClass([
|
|
|
2658
2715
|
})
|
|
2659
2716
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2660
2717
|
__decorateClass([
|
|
2661
|
-
|
|
2718
|
+
Column18({
|
|
2662
2719
|
name: "expected_salary_to",
|
|
2663
2720
|
type: "decimal",
|
|
2664
2721
|
precision: 10,
|
|
@@ -2667,16 +2724,16 @@ __decorateClass([
|
|
|
2667
2724
|
})
|
|
2668
2725
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2669
2726
|
__decorateClass([
|
|
2670
|
-
|
|
2727
|
+
Column18({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2671
2728
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2672
2729
|
__decorateClass([
|
|
2673
|
-
|
|
2730
|
+
Column18({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2674
2731
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2675
2732
|
__decorateClass([
|
|
2676
|
-
|
|
2733
|
+
Column18({ name: "duration", type: "varchar", nullable: true })
|
|
2677
2734
|
], Job.prototype, "duration", 2);
|
|
2678
2735
|
__decorateClass([
|
|
2679
|
-
|
|
2736
|
+
Column18({
|
|
2680
2737
|
name: "duration_type",
|
|
2681
2738
|
type: "enum",
|
|
2682
2739
|
enum: DurationTypeEnum,
|
|
@@ -2684,13 +2741,13 @@ __decorateClass([
|
|
|
2684
2741
|
})
|
|
2685
2742
|
], Job.prototype, "durationType", 2);
|
|
2686
2743
|
__decorateClass([
|
|
2687
|
-
|
|
2744
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2688
2745
|
], Job.prototype, "description", 2);
|
|
2689
2746
|
__decorateClass([
|
|
2690
|
-
|
|
2747
|
+
Column18({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2691
2748
|
], Job.prototype, "additionalComment", 2);
|
|
2692
2749
|
__decorateClass([
|
|
2693
|
-
|
|
2750
|
+
Column18({
|
|
2694
2751
|
name: "onboarding_tat",
|
|
2695
2752
|
type: "varchar",
|
|
2696
2753
|
length: 50,
|
|
@@ -2698,14 +2755,14 @@ __decorateClass([
|
|
|
2698
2755
|
})
|
|
2699
2756
|
], Job.prototype, "onboardingTat", 2);
|
|
2700
2757
|
__decorateClass([
|
|
2701
|
-
|
|
2758
|
+
Column18({
|
|
2702
2759
|
name: "candidate_communication_skills",
|
|
2703
2760
|
type: "varchar",
|
|
2704
2761
|
nullable: true
|
|
2705
2762
|
})
|
|
2706
2763
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2707
2764
|
__decorateClass([
|
|
2708
|
-
|
|
2765
|
+
Column18({
|
|
2709
2766
|
name: "step_completed",
|
|
2710
2767
|
type: "enum",
|
|
2711
2768
|
enum: Step,
|
|
@@ -2713,7 +2770,7 @@ __decorateClass([
|
|
|
2713
2770
|
})
|
|
2714
2771
|
], Job.prototype, "stepCompleted", 2);
|
|
2715
2772
|
__decorateClass([
|
|
2716
|
-
|
|
2773
|
+
Column18({
|
|
2717
2774
|
name: "status",
|
|
2718
2775
|
type: "enum",
|
|
2719
2776
|
enum: JobStatusEnum,
|
|
@@ -2721,10 +2778,10 @@ __decorateClass([
|
|
|
2721
2778
|
})
|
|
2722
2779
|
], Job.prototype, "status", 2);
|
|
2723
2780
|
__decorateClass([
|
|
2724
|
-
|
|
2781
|
+
Column18({ name: "viewed_count", type: "integer", default: 0 })
|
|
2725
2782
|
], Job.prototype, "viewedCount", 2);
|
|
2726
2783
|
__decorateClass([
|
|
2727
|
-
|
|
2784
|
+
Column18({ name: "application_count", type: "integer", default: 0 })
|
|
2728
2785
|
], Job.prototype, "applicationCount", 2);
|
|
2729
2786
|
__decorateClass([
|
|
2730
2787
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2745,16 +2802,16 @@ __decorateClass([
|
|
|
2745
2802
|
})
|
|
2746
2803
|
], Job.prototype, "recommendations", 2);
|
|
2747
2804
|
Job = __decorateClass([
|
|
2748
|
-
|
|
2805
|
+
Entity17("jobs")
|
|
2749
2806
|
], Job);
|
|
2750
2807
|
|
|
2751
2808
|
// src/entities/bank-details.entity.ts
|
|
2752
2809
|
import {
|
|
2753
|
-
Entity as
|
|
2754
|
-
Column as
|
|
2755
|
-
Index as
|
|
2756
|
-
ManyToOne as
|
|
2757
|
-
JoinColumn as
|
|
2810
|
+
Entity as Entity18,
|
|
2811
|
+
Column as Column19,
|
|
2812
|
+
Index as Index14,
|
|
2813
|
+
ManyToOne as ManyToOne17,
|
|
2814
|
+
JoinColumn as JoinColumn17
|
|
2758
2815
|
} from "typeorm";
|
|
2759
2816
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2760
2817
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2770,48 +2827,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2770
2827
|
};
|
|
2771
2828
|
// individual index to find bank details by user
|
|
2772
2829
|
__decorateClass([
|
|
2773
|
-
|
|
2774
|
-
|
|
2830
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2831
|
+
Index14()
|
|
2775
2832
|
], BankDetail.prototype, "userId", 2);
|
|
2776
2833
|
__decorateClass([
|
|
2777
|
-
|
|
2778
|
-
|
|
2834
|
+
ManyToOne17(() => User, (user) => user.bankDetail),
|
|
2835
|
+
JoinColumn17({ name: "user_id" })
|
|
2779
2836
|
], BankDetail.prototype, "user", 2);
|
|
2780
2837
|
__decorateClass([
|
|
2781
|
-
|
|
2838
|
+
Column19({ name: "name", type: "varchar", nullable: true })
|
|
2782
2839
|
], BankDetail.prototype, "name", 2);
|
|
2783
2840
|
__decorateClass([
|
|
2784
|
-
|
|
2841
|
+
Column19({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2785
2842
|
], BankDetail.prototype, "mobile", 2);
|
|
2786
2843
|
__decorateClass([
|
|
2787
|
-
|
|
2844
|
+
Column19({ name: "email", type: "varchar", unique: true })
|
|
2788
2845
|
], BankDetail.prototype, "email", 2);
|
|
2789
2846
|
__decorateClass([
|
|
2790
|
-
|
|
2847
|
+
Column19({ name: "address", type: "varchar", nullable: true })
|
|
2791
2848
|
], BankDetail.prototype, "address", 2);
|
|
2792
2849
|
__decorateClass([
|
|
2793
|
-
|
|
2850
|
+
Column19({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2794
2851
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2795
2852
|
__decorateClass([
|
|
2796
|
-
|
|
2853
|
+
Column19({ name: "bank_name", type: "varchar", nullable: true })
|
|
2797
2854
|
], BankDetail.prototype, "bankName", 2);
|
|
2798
2855
|
__decorateClass([
|
|
2799
|
-
|
|
2856
|
+
Column19({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2800
2857
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2801
2858
|
__decorateClass([
|
|
2802
|
-
|
|
2859
|
+
Column19({ name: "branch_name", type: "varchar", nullable: true })
|
|
2803
2860
|
], BankDetail.prototype, "branchName", 2);
|
|
2804
2861
|
__decorateClass([
|
|
2805
|
-
|
|
2862
|
+
Column19({ name: "routing_no", type: "varchar", nullable: true })
|
|
2806
2863
|
], BankDetail.prototype, "routingNo", 2);
|
|
2807
2864
|
__decorateClass([
|
|
2808
|
-
|
|
2865
|
+
Column19({ name: "aba_no", type: "varchar", nullable: true })
|
|
2809
2866
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2810
2867
|
__decorateClass([
|
|
2811
|
-
|
|
2868
|
+
Column19({ name: "iban", type: "varchar", nullable: true })
|
|
2812
2869
|
], BankDetail.prototype, "iban", 2);
|
|
2813
2870
|
__decorateClass([
|
|
2814
|
-
|
|
2871
|
+
Column19({
|
|
2815
2872
|
name: "account_type",
|
|
2816
2873
|
type: "enum",
|
|
2817
2874
|
enum: BankAccountTypeEnum,
|
|
@@ -2819,7 +2876,7 @@ __decorateClass([
|
|
|
2819
2876
|
})
|
|
2820
2877
|
], BankDetail.prototype, "accountType", 2);
|
|
2821
2878
|
__decorateClass([
|
|
2822
|
-
|
|
2879
|
+
Column19({
|
|
2823
2880
|
name: "account_scope",
|
|
2824
2881
|
type: "enum",
|
|
2825
2882
|
enum: BankAccountScopeEnum,
|
|
@@ -2827,263 +2884,263 @@ __decorateClass([
|
|
|
2827
2884
|
})
|
|
2828
2885
|
], BankDetail.prototype, "accountScope", 2);
|
|
2829
2886
|
BankDetail = __decorateClass([
|
|
2830
|
-
|
|
2887
|
+
Entity18("bank_details")
|
|
2831
2888
|
], BankDetail);
|
|
2832
2889
|
|
|
2833
2890
|
// src/entities/system-preference.entity.ts
|
|
2834
2891
|
import {
|
|
2835
|
-
Entity as
|
|
2836
|
-
Column as
|
|
2837
|
-
Index as
|
|
2838
|
-
ManyToOne as
|
|
2839
|
-
JoinColumn as
|
|
2892
|
+
Entity as Entity19,
|
|
2893
|
+
Column as Column20,
|
|
2894
|
+
Index as Index15,
|
|
2895
|
+
ManyToOne as ManyToOne18,
|
|
2896
|
+
JoinColumn as JoinColumn18
|
|
2840
2897
|
} from "typeorm";
|
|
2841
2898
|
var SystemPreference = class extends BaseEntity {
|
|
2842
2899
|
};
|
|
2843
2900
|
// individual index to find system preference by user
|
|
2844
2901
|
__decorateClass([
|
|
2845
|
-
|
|
2846
|
-
|
|
2902
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2903
|
+
Index15()
|
|
2847
2904
|
], SystemPreference.prototype, "userId", 2);
|
|
2848
2905
|
__decorateClass([
|
|
2849
|
-
|
|
2850
|
-
|
|
2906
|
+
ManyToOne18(() => User, (user) => user.systemPreference),
|
|
2907
|
+
JoinColumn18({ name: "user_id" })
|
|
2851
2908
|
], SystemPreference.prototype, "user", 2);
|
|
2852
2909
|
__decorateClass([
|
|
2853
|
-
|
|
2910
|
+
Column20({ name: "key", type: "varchar", nullable: false })
|
|
2854
2911
|
], SystemPreference.prototype, "key", 2);
|
|
2855
2912
|
__decorateClass([
|
|
2856
|
-
|
|
2913
|
+
Column20({ name: "value", type: "boolean", default: false })
|
|
2857
2914
|
], SystemPreference.prototype, "value", 2);
|
|
2858
2915
|
SystemPreference = __decorateClass([
|
|
2859
|
-
|
|
2916
|
+
Entity19("system_preferences")
|
|
2860
2917
|
], SystemPreference);
|
|
2861
2918
|
|
|
2862
2919
|
// src/entities/freelancer-experience.entity.ts
|
|
2863
2920
|
import {
|
|
2864
|
-
Entity as
|
|
2865
|
-
Column as
|
|
2866
|
-
Index as
|
|
2867
|
-
ManyToOne as
|
|
2868
|
-
JoinColumn as
|
|
2921
|
+
Entity as Entity20,
|
|
2922
|
+
Column as Column21,
|
|
2923
|
+
Index as Index16,
|
|
2924
|
+
ManyToOne as ManyToOne19,
|
|
2925
|
+
JoinColumn as JoinColumn19
|
|
2869
2926
|
} from "typeorm";
|
|
2870
2927
|
var FreelancerExperience = class extends BaseEntity {
|
|
2871
2928
|
};
|
|
2872
2929
|
// individual index to find experence by user
|
|
2873
2930
|
__decorateClass([
|
|
2874
|
-
|
|
2875
|
-
|
|
2931
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2932
|
+
Index16()
|
|
2876
2933
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2877
2934
|
__decorateClass([
|
|
2878
|
-
|
|
2879
|
-
|
|
2935
|
+
ManyToOne19(() => User, (user) => user.freelancerExperience),
|
|
2936
|
+
JoinColumn19({ name: "user_id" })
|
|
2880
2937
|
], FreelancerExperience.prototype, "user", 2);
|
|
2881
2938
|
__decorateClass([
|
|
2882
|
-
|
|
2939
|
+
Column21({ name: "company_name", type: "varchar", nullable: true })
|
|
2883
2940
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2884
2941
|
__decorateClass([
|
|
2885
|
-
|
|
2942
|
+
Column21({ name: "designation", type: "varchar", nullable: true })
|
|
2886
2943
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2887
2944
|
__decorateClass([
|
|
2888
|
-
|
|
2945
|
+
Column21({ name: "job_duration", type: "varchar", nullable: true })
|
|
2889
2946
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2890
2947
|
__decorateClass([
|
|
2891
|
-
|
|
2948
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2892
2949
|
], FreelancerExperience.prototype, "description", 2);
|
|
2893
2950
|
FreelancerExperience = __decorateClass([
|
|
2894
|
-
|
|
2951
|
+
Entity20("freelancer_experiences")
|
|
2895
2952
|
], FreelancerExperience);
|
|
2896
2953
|
|
|
2897
2954
|
// src/entities/freelancer-education.entity.ts
|
|
2898
2955
|
import {
|
|
2899
|
-
Entity as
|
|
2900
|
-
Column as
|
|
2901
|
-
Index as
|
|
2902
|
-
ManyToOne as
|
|
2903
|
-
JoinColumn as
|
|
2956
|
+
Entity as Entity21,
|
|
2957
|
+
Column as Column22,
|
|
2958
|
+
Index as Index17,
|
|
2959
|
+
ManyToOne as ManyToOne20,
|
|
2960
|
+
JoinColumn as JoinColumn20
|
|
2904
2961
|
} from "typeorm";
|
|
2905
2962
|
var FreelancerEducation = class extends BaseEntity {
|
|
2906
2963
|
};
|
|
2907
2964
|
// individual index to find education by user
|
|
2908
2965
|
__decorateClass([
|
|
2909
|
-
|
|
2910
|
-
|
|
2966
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2967
|
+
Index17()
|
|
2911
2968
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2912
2969
|
__decorateClass([
|
|
2913
|
-
|
|
2914
|
-
|
|
2970
|
+
ManyToOne20(() => User, (user) => user.freelancerEducation),
|
|
2971
|
+
JoinColumn20({ name: "user_id" })
|
|
2915
2972
|
], FreelancerEducation.prototype, "user", 2);
|
|
2916
2973
|
__decorateClass([
|
|
2917
|
-
|
|
2974
|
+
Column22({ name: "degree", type: "varchar", nullable: true })
|
|
2918
2975
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2919
2976
|
__decorateClass([
|
|
2920
|
-
|
|
2977
|
+
Column22({ name: "university", type: "varchar", nullable: true })
|
|
2921
2978
|
], FreelancerEducation.prototype, "university", 2);
|
|
2922
2979
|
__decorateClass([
|
|
2923
|
-
|
|
2980
|
+
Column22({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2924
2981
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2925
2982
|
FreelancerEducation = __decorateClass([
|
|
2926
|
-
|
|
2983
|
+
Entity21("freelancer_educations")
|
|
2927
2984
|
], FreelancerEducation);
|
|
2928
2985
|
|
|
2929
2986
|
// src/entities/freelancer-project.entity.ts
|
|
2930
2987
|
import {
|
|
2931
|
-
Entity as
|
|
2932
|
-
Column as
|
|
2933
|
-
Index as
|
|
2934
|
-
ManyToOne as
|
|
2935
|
-
JoinColumn as
|
|
2988
|
+
Entity as Entity22,
|
|
2989
|
+
Column as Column23,
|
|
2990
|
+
Index as Index18,
|
|
2991
|
+
ManyToOne as ManyToOne21,
|
|
2992
|
+
JoinColumn as JoinColumn21
|
|
2936
2993
|
} from "typeorm";
|
|
2937
2994
|
var FreelancerProject = class extends BaseEntity {
|
|
2938
2995
|
};
|
|
2939
2996
|
// individual index to find project by user
|
|
2940
2997
|
__decorateClass([
|
|
2941
|
-
|
|
2942
|
-
|
|
2998
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2999
|
+
Index18()
|
|
2943
3000
|
], FreelancerProject.prototype, "userId", 2);
|
|
2944
3001
|
__decorateClass([
|
|
2945
|
-
|
|
2946
|
-
|
|
3002
|
+
ManyToOne21(() => User, (user) => user.freelancerProject),
|
|
3003
|
+
JoinColumn21({ name: "user_id" })
|
|
2947
3004
|
], FreelancerProject.prototype, "user", 2);
|
|
2948
3005
|
__decorateClass([
|
|
2949
|
-
|
|
3006
|
+
Column23({ name: "project_name", type: "varchar", nullable: true })
|
|
2950
3007
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2951
3008
|
__decorateClass([
|
|
2952
|
-
|
|
3009
|
+
Column23({ name: "start_date", type: "date", nullable: true })
|
|
2953
3010
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2954
3011
|
__decorateClass([
|
|
2955
|
-
|
|
3012
|
+
Column23({ name: "end_date", type: "date", nullable: true })
|
|
2956
3013
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2957
3014
|
__decorateClass([
|
|
2958
|
-
|
|
3015
|
+
Column23({ name: "client_name", type: "varchar", nullable: true })
|
|
2959
3016
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2960
3017
|
__decorateClass([
|
|
2961
|
-
|
|
3018
|
+
Column23({ name: "git_link", type: "varchar", nullable: true })
|
|
2962
3019
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2963
3020
|
__decorateClass([
|
|
2964
|
-
|
|
3021
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2965
3022
|
], FreelancerProject.prototype, "description", 2);
|
|
2966
3023
|
FreelancerProject = __decorateClass([
|
|
2967
|
-
|
|
3024
|
+
Entity22("freelancer_projects")
|
|
2968
3025
|
], FreelancerProject);
|
|
2969
3026
|
|
|
2970
3027
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2971
3028
|
import {
|
|
2972
|
-
Entity as
|
|
2973
|
-
Column as
|
|
2974
|
-
Index as
|
|
2975
|
-
ManyToOne as
|
|
2976
|
-
JoinColumn as
|
|
3029
|
+
Entity as Entity23,
|
|
3030
|
+
Column as Column24,
|
|
3031
|
+
Index as Index19,
|
|
3032
|
+
ManyToOne as ManyToOne22,
|
|
3033
|
+
JoinColumn as JoinColumn22
|
|
2977
3034
|
} from "typeorm";
|
|
2978
3035
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2979
3036
|
};
|
|
2980
3037
|
// individual index to find case study by user
|
|
2981
3038
|
__decorateClass([
|
|
2982
|
-
|
|
2983
|
-
|
|
3039
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3040
|
+
Index19()
|
|
2984
3041
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2985
3042
|
__decorateClass([
|
|
2986
|
-
|
|
2987
|
-
|
|
3043
|
+
ManyToOne22(() => User, (user) => user.freelancerCaseStudy),
|
|
3044
|
+
JoinColumn22({ name: "user_id" })
|
|
2988
3045
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2989
3046
|
__decorateClass([
|
|
2990
|
-
|
|
3047
|
+
Column24({ name: "project_name", type: "varchar", nullable: true })
|
|
2991
3048
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2992
3049
|
__decorateClass([
|
|
2993
|
-
|
|
3050
|
+
Column24({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2994
3051
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2995
3052
|
__decorateClass([
|
|
2996
|
-
|
|
3053
|
+
Column24({ name: "description", type: "varchar", nullable: true })
|
|
2997
3054
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2998
3055
|
FreelancerCaseStudy = __decorateClass([
|
|
2999
|
-
|
|
3056
|
+
Entity23("freelancer_case_studies")
|
|
3000
3057
|
], FreelancerCaseStudy);
|
|
3001
3058
|
|
|
3002
3059
|
// src/entities/freelancer-skill.entity.ts
|
|
3003
3060
|
import {
|
|
3004
|
-
Entity as
|
|
3005
|
-
Column as
|
|
3006
|
-
Index as
|
|
3007
|
-
ManyToOne as
|
|
3008
|
-
JoinColumn as
|
|
3061
|
+
Entity as Entity24,
|
|
3062
|
+
Column as Column25,
|
|
3063
|
+
Index as Index20,
|
|
3064
|
+
ManyToOne as ManyToOne23,
|
|
3065
|
+
JoinColumn as JoinColumn23
|
|
3009
3066
|
} from "typeorm";
|
|
3010
3067
|
var FreelancerSkill = class extends BaseEntity {
|
|
3011
3068
|
};
|
|
3012
3069
|
// individual index to find core skills by user
|
|
3013
3070
|
__decorateClass([
|
|
3014
|
-
|
|
3015
|
-
|
|
3071
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3072
|
+
Index20()
|
|
3016
3073
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3017
3074
|
__decorateClass([
|
|
3018
|
-
|
|
3019
|
-
|
|
3075
|
+
ManyToOne23(() => User, (user) => user.freelancerSkills),
|
|
3076
|
+
JoinColumn23({ name: "user_id" })
|
|
3020
3077
|
], FreelancerSkill.prototype, "user", 2);
|
|
3021
3078
|
__decorateClass([
|
|
3022
|
-
|
|
3079
|
+
Column25({ name: "skill_name", type: "varchar", nullable: true })
|
|
3023
3080
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3024
3081
|
FreelancerSkill = __decorateClass([
|
|
3025
|
-
|
|
3082
|
+
Entity24("freelancer_skills")
|
|
3026
3083
|
], FreelancerSkill);
|
|
3027
3084
|
|
|
3028
3085
|
// src/entities/freelancer-tool.entity.ts
|
|
3029
3086
|
import {
|
|
3030
|
-
Entity as
|
|
3031
|
-
Column as
|
|
3032
|
-
Index as
|
|
3033
|
-
ManyToOne as
|
|
3034
|
-
JoinColumn as
|
|
3087
|
+
Entity as Entity25,
|
|
3088
|
+
Column as Column26,
|
|
3089
|
+
Index as Index21,
|
|
3090
|
+
ManyToOne as ManyToOne24,
|
|
3091
|
+
JoinColumn as JoinColumn24
|
|
3035
3092
|
} from "typeorm";
|
|
3036
3093
|
var FreelancerTool = class extends BaseEntity {
|
|
3037
3094
|
};
|
|
3038
3095
|
// individual index to find tool by user
|
|
3039
3096
|
__decorateClass([
|
|
3040
|
-
|
|
3041
|
-
|
|
3097
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3098
|
+
Index21()
|
|
3042
3099
|
], FreelancerTool.prototype, "userId", 2);
|
|
3043
3100
|
__decorateClass([
|
|
3044
|
-
|
|
3045
|
-
|
|
3101
|
+
ManyToOne24(() => User, (user) => user.freelancerTool),
|
|
3102
|
+
JoinColumn24({ name: "user_id" })
|
|
3046
3103
|
], FreelancerTool.prototype, "user", 2);
|
|
3047
3104
|
__decorateClass([
|
|
3048
|
-
|
|
3105
|
+
Column26({ name: "tool_name", type: "varchar", nullable: true })
|
|
3049
3106
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3050
3107
|
FreelancerTool = __decorateClass([
|
|
3051
|
-
|
|
3108
|
+
Entity25("freelancer_tools")
|
|
3052
3109
|
], FreelancerTool);
|
|
3053
3110
|
|
|
3054
3111
|
// src/entities/freelancer-framework.entity.ts
|
|
3055
3112
|
import {
|
|
3056
|
-
Entity as
|
|
3057
|
-
Column as
|
|
3058
|
-
Index as
|
|
3059
|
-
ManyToOne as
|
|
3060
|
-
JoinColumn as
|
|
3113
|
+
Entity as Entity26,
|
|
3114
|
+
Column as Column27,
|
|
3115
|
+
Index as Index22,
|
|
3116
|
+
ManyToOne as ManyToOne25,
|
|
3117
|
+
JoinColumn as JoinColumn25
|
|
3061
3118
|
} from "typeorm";
|
|
3062
3119
|
var FreelancerFramework = class extends BaseEntity {
|
|
3063
3120
|
};
|
|
3064
3121
|
// individual index to find framework by user
|
|
3065
3122
|
__decorateClass([
|
|
3066
|
-
|
|
3067
|
-
|
|
3123
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3124
|
+
Index22()
|
|
3068
3125
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3069
3126
|
__decorateClass([
|
|
3070
|
-
|
|
3071
|
-
|
|
3127
|
+
ManyToOne25(() => User, (user) => user.freelancerFramework),
|
|
3128
|
+
JoinColumn25({ name: "user_id" })
|
|
3072
3129
|
], FreelancerFramework.prototype, "user", 2);
|
|
3073
3130
|
__decorateClass([
|
|
3074
|
-
|
|
3131
|
+
Column27({ name: "framework_name", type: "varchar", nullable: true })
|
|
3075
3132
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3076
3133
|
FreelancerFramework = __decorateClass([
|
|
3077
|
-
|
|
3134
|
+
Entity26("freelancer_frameworks")
|
|
3078
3135
|
], FreelancerFramework);
|
|
3079
3136
|
|
|
3080
3137
|
// src/entities/freelancer-assessment.entity.ts
|
|
3081
3138
|
import {
|
|
3082
|
-
Entity as
|
|
3083
|
-
Column as
|
|
3084
|
-
Index as
|
|
3085
|
-
ManyToOne as
|
|
3086
|
-
JoinColumn as
|
|
3139
|
+
Entity as Entity27,
|
|
3140
|
+
Column as Column28,
|
|
3141
|
+
Index as Index23,
|
|
3142
|
+
ManyToOne as ManyToOne26,
|
|
3143
|
+
JoinColumn as JoinColumn26
|
|
3087
3144
|
} from "typeorm";
|
|
3088
3145
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3089
3146
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3100,30 +3157,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3100
3157
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3101
3158
|
};
|
|
3102
3159
|
__decorateClass([
|
|
3103
|
-
|
|
3104
|
-
|
|
3160
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3161
|
+
Index23()
|
|
3105
3162
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3106
3163
|
__decorateClass([
|
|
3107
|
-
|
|
3108
|
-
|
|
3164
|
+
ManyToOne26(() => User, (user) => user.assessments),
|
|
3165
|
+
JoinColumn26({ name: "user_id" })
|
|
3109
3166
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3110
3167
|
__decorateClass([
|
|
3111
|
-
|
|
3168
|
+
Column28({ name: "interview_id", type: "varchar", nullable: true })
|
|
3112
3169
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3113
3170
|
__decorateClass([
|
|
3114
|
-
|
|
3171
|
+
Column28({ name: "interview_link", type: "text", nullable: true })
|
|
3115
3172
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3116
3173
|
__decorateClass([
|
|
3117
|
-
|
|
3174
|
+
Column28({ name: "recording_link", type: "text", nullable: true })
|
|
3118
3175
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3119
3176
|
__decorateClass([
|
|
3120
|
-
|
|
3177
|
+
Column28({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3121
3178
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3122
3179
|
__decorateClass([
|
|
3123
|
-
|
|
3180
|
+
Column28({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3124
3181
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3125
3182
|
__decorateClass([
|
|
3126
|
-
|
|
3183
|
+
Column28({
|
|
3127
3184
|
name: "status",
|
|
3128
3185
|
type: "enum",
|
|
3129
3186
|
enum: AssessmentStatusEnum,
|
|
@@ -3131,16 +3188,16 @@ __decorateClass([
|
|
|
3131
3188
|
})
|
|
3132
3189
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3133
3190
|
FreelancerAssessment = __decorateClass([
|
|
3134
|
-
|
|
3191
|
+
Entity27("freelancer_assessments")
|
|
3135
3192
|
], FreelancerAssessment);
|
|
3136
3193
|
|
|
3137
3194
|
// src/entities/freelancer-declaration.entity.ts
|
|
3138
3195
|
import {
|
|
3139
|
-
Entity as
|
|
3140
|
-
Column as
|
|
3141
|
-
Index as
|
|
3142
|
-
ManyToOne as
|
|
3143
|
-
JoinColumn as
|
|
3196
|
+
Entity as Entity28,
|
|
3197
|
+
Column as Column29,
|
|
3198
|
+
Index as Index24,
|
|
3199
|
+
ManyToOne as ManyToOne27,
|
|
3200
|
+
JoinColumn as JoinColumn27
|
|
3144
3201
|
} from "typeorm";
|
|
3145
3202
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3146
3203
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3153,15 +3210,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3153
3210
|
};
|
|
3154
3211
|
// individual index to find declaration by user
|
|
3155
3212
|
__decorateClass([
|
|
3156
|
-
|
|
3157
|
-
|
|
3213
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3214
|
+
Index24()
|
|
3158
3215
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3159
3216
|
__decorateClass([
|
|
3160
|
-
|
|
3161
|
-
|
|
3217
|
+
ManyToOne27(() => User, (user) => user.freelancerDeclaration),
|
|
3218
|
+
JoinColumn27({ name: "user_id" })
|
|
3162
3219
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3163
3220
|
__decorateClass([
|
|
3164
|
-
|
|
3221
|
+
Column29({
|
|
3165
3222
|
name: "document_type",
|
|
3166
3223
|
type: "enum",
|
|
3167
3224
|
enum: DocumentType,
|
|
@@ -3169,175 +3226,175 @@ __decorateClass([
|
|
|
3169
3226
|
})
|
|
3170
3227
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3171
3228
|
__decorateClass([
|
|
3172
|
-
|
|
3229
|
+
Column29({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3173
3230
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3174
3231
|
__decorateClass([
|
|
3175
|
-
|
|
3232
|
+
Column29({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3176
3233
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3177
3234
|
__decorateClass([
|
|
3178
|
-
|
|
3235
|
+
Column29({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3179
3236
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3180
3237
|
__decorateClass([
|
|
3181
|
-
|
|
3238
|
+
Column29({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3182
3239
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3183
3240
|
FreelancerDeclaration = __decorateClass([
|
|
3184
|
-
|
|
3241
|
+
Entity28("freelancer_declaration")
|
|
3185
3242
|
], FreelancerDeclaration);
|
|
3186
3243
|
|
|
3187
3244
|
// src/entities/company-members-roles.entity.ts
|
|
3188
3245
|
import {
|
|
3189
|
-
Column as
|
|
3190
|
-
Entity as
|
|
3191
|
-
ManyToOne as
|
|
3192
|
-
JoinColumn as
|
|
3193
|
-
Index as
|
|
3246
|
+
Column as Column33,
|
|
3247
|
+
Entity as Entity32,
|
|
3248
|
+
ManyToOne as ManyToOne30,
|
|
3249
|
+
JoinColumn as JoinColumn30,
|
|
3250
|
+
Index as Index28
|
|
3194
3251
|
} from "typeorm";
|
|
3195
3252
|
|
|
3196
3253
|
// src/entities/company-role.entity.ts
|
|
3197
3254
|
import {
|
|
3198
|
-
Column as
|
|
3199
|
-
Entity as
|
|
3200
|
-
Index as
|
|
3201
|
-
JoinColumn as
|
|
3202
|
-
ManyToOne as
|
|
3255
|
+
Column as Column32,
|
|
3256
|
+
Entity as Entity31,
|
|
3257
|
+
Index as Index27,
|
|
3258
|
+
JoinColumn as JoinColumn29,
|
|
3259
|
+
ManyToOne as ManyToOne29,
|
|
3203
3260
|
OneToMany as OneToMany8
|
|
3204
3261
|
} from "typeorm";
|
|
3205
3262
|
|
|
3206
3263
|
// src/entities/company-role-permission.entity.ts
|
|
3207
3264
|
import {
|
|
3208
|
-
Column as
|
|
3209
|
-
Entity as
|
|
3210
|
-
ManyToOne as
|
|
3211
|
-
JoinColumn as
|
|
3212
|
-
Index as
|
|
3265
|
+
Column as Column31,
|
|
3266
|
+
Entity as Entity30,
|
|
3267
|
+
ManyToOne as ManyToOne28,
|
|
3268
|
+
JoinColumn as JoinColumn28,
|
|
3269
|
+
Index as Index26
|
|
3213
3270
|
} from "typeorm";
|
|
3214
3271
|
|
|
3215
3272
|
// src/entities/permission.entity.ts
|
|
3216
|
-
import { Column as
|
|
3273
|
+
import { Column as Column30, Entity as Entity29, Index as Index25 } from "typeorm";
|
|
3217
3274
|
var Permission = class extends BaseEntity {
|
|
3218
3275
|
};
|
|
3219
3276
|
__decorateClass([
|
|
3220
|
-
|
|
3277
|
+
Column30({ name: "name", type: "varchar", nullable: true })
|
|
3221
3278
|
], Permission.prototype, "name", 2);
|
|
3222
3279
|
__decorateClass([
|
|
3223
|
-
|
|
3224
|
-
|
|
3280
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3281
|
+
Index25()
|
|
3225
3282
|
], Permission.prototype, "slug", 2);
|
|
3226
3283
|
__decorateClass([
|
|
3227
|
-
|
|
3284
|
+
Column30({ name: "description", type: "text", nullable: true })
|
|
3228
3285
|
], Permission.prototype, "description", 2);
|
|
3229
3286
|
__decorateClass([
|
|
3230
|
-
|
|
3287
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
3231
3288
|
], Permission.prototype, "isActive", 2);
|
|
3232
3289
|
Permission = __decorateClass([
|
|
3233
|
-
|
|
3290
|
+
Entity29("permissions")
|
|
3234
3291
|
], Permission);
|
|
3235
3292
|
|
|
3236
3293
|
// src/entities/company-role-permission.entity.ts
|
|
3237
3294
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3238
3295
|
};
|
|
3239
3296
|
__decorateClass([
|
|
3240
|
-
|
|
3241
|
-
|
|
3297
|
+
Column31({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3298
|
+
Index26()
|
|
3242
3299
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3243
3300
|
__decorateClass([
|
|
3244
|
-
|
|
3301
|
+
ManyToOne28(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3245
3302
|
onDelete: "CASCADE"
|
|
3246
3303
|
}),
|
|
3247
|
-
|
|
3304
|
+
JoinColumn28({ name: "company_role_id" })
|
|
3248
3305
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3249
3306
|
__decorateClass([
|
|
3250
|
-
|
|
3251
|
-
|
|
3307
|
+
Column31({ name: "permission_id", type: "integer" }),
|
|
3308
|
+
Index26()
|
|
3252
3309
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3253
3310
|
__decorateClass([
|
|
3254
|
-
|
|
3255
|
-
|
|
3311
|
+
ManyToOne28(() => Permission, { onDelete: "CASCADE" }),
|
|
3312
|
+
JoinColumn28({ name: "permission_id" })
|
|
3256
3313
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3257
3314
|
__decorateClass([
|
|
3258
|
-
|
|
3315
|
+
Column31({ name: "assigned_by", type: "integer", nullable: true })
|
|
3259
3316
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3260
3317
|
CompanyRolePermission = __decorateClass([
|
|
3261
|
-
|
|
3318
|
+
Entity30("company_role_permissions")
|
|
3262
3319
|
], CompanyRolePermission);
|
|
3263
3320
|
|
|
3264
3321
|
// src/entities/company-role.entity.ts
|
|
3265
3322
|
var CompanyRole = class extends BaseEntity {
|
|
3266
3323
|
};
|
|
3267
3324
|
__decorateClass([
|
|
3268
|
-
|
|
3269
|
-
|
|
3325
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3326
|
+
Index27()
|
|
3270
3327
|
], CompanyRole.prototype, "userId", 2);
|
|
3271
3328
|
__decorateClass([
|
|
3272
|
-
|
|
3273
|
-
|
|
3329
|
+
ManyToOne29(() => User, (user) => user.otps),
|
|
3330
|
+
JoinColumn29({ name: "user_id" })
|
|
3274
3331
|
], CompanyRole.prototype, "user", 2);
|
|
3275
3332
|
__decorateClass([
|
|
3276
|
-
|
|
3333
|
+
Column32({ name: "name", type: "varchar" })
|
|
3277
3334
|
], CompanyRole.prototype, "name", 2);
|
|
3278
3335
|
__decorateClass([
|
|
3279
|
-
|
|
3280
|
-
|
|
3336
|
+
Column32({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3337
|
+
Index27()
|
|
3281
3338
|
], CompanyRole.prototype, "slug", 2);
|
|
3282
3339
|
__decorateClass([
|
|
3283
|
-
|
|
3340
|
+
Column32({ name: "description", type: "text", nullable: true })
|
|
3284
3341
|
], CompanyRole.prototype, "description", 2);
|
|
3285
3342
|
__decorateClass([
|
|
3286
|
-
|
|
3343
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
3287
3344
|
], CompanyRole.prototype, "isActive", 2);
|
|
3288
3345
|
__decorateClass([
|
|
3289
3346
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3290
3347
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3291
3348
|
CompanyRole = __decorateClass([
|
|
3292
|
-
|
|
3349
|
+
Entity31("company_roles")
|
|
3293
3350
|
], CompanyRole);
|
|
3294
3351
|
|
|
3295
3352
|
// src/entities/company-members-roles.entity.ts
|
|
3296
3353
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3297
3354
|
};
|
|
3298
3355
|
__decorateClass([
|
|
3299
|
-
|
|
3300
|
-
|
|
3356
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
3357
|
+
Index28()
|
|
3301
3358
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3302
3359
|
__decorateClass([
|
|
3303
|
-
|
|
3304
|
-
|
|
3360
|
+
ManyToOne30(() => User),
|
|
3361
|
+
JoinColumn30({ name: "user_id" })
|
|
3305
3362
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3306
3363
|
__decorateClass([
|
|
3307
|
-
|
|
3308
|
-
|
|
3364
|
+
ManyToOne30(() => CompanyRole),
|
|
3365
|
+
JoinColumn30({ name: "company_role_id" })
|
|
3309
3366
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3310
3367
|
__decorateClass([
|
|
3311
|
-
|
|
3312
|
-
|
|
3368
|
+
Column33({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3369
|
+
Index28()
|
|
3313
3370
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3314
3371
|
__decorateClass([
|
|
3315
|
-
|
|
3372
|
+
Column33({ name: "assigned_by", type: "integer", nullable: true })
|
|
3316
3373
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3317
3374
|
CompanyMemberRole = __decorateClass([
|
|
3318
|
-
|
|
3375
|
+
Entity32("company_member_roles")
|
|
3319
3376
|
], CompanyMemberRole);
|
|
3320
3377
|
|
|
3321
3378
|
// src/entities/assessment-answer.entity.ts
|
|
3322
3379
|
import {
|
|
3323
|
-
Entity as
|
|
3324
|
-
Column as
|
|
3325
|
-
ManyToOne as
|
|
3326
|
-
Index as
|
|
3327
|
-
JoinColumn as
|
|
3380
|
+
Entity as Entity35,
|
|
3381
|
+
Column as Column36,
|
|
3382
|
+
ManyToOne as ManyToOne32,
|
|
3383
|
+
Index as Index30,
|
|
3384
|
+
JoinColumn as JoinColumn32
|
|
3328
3385
|
} from "typeorm";
|
|
3329
3386
|
|
|
3330
3387
|
// src/entities/assessment-question.entity.ts
|
|
3331
|
-
import { Entity as
|
|
3388
|
+
import { Entity as Entity34, Column as Column35, OneToMany as OneToMany10 } from "typeorm";
|
|
3332
3389
|
|
|
3333
3390
|
// src/entities/assessment-question-option.entity.ts
|
|
3334
3391
|
import {
|
|
3335
|
-
Entity as
|
|
3336
|
-
Column as
|
|
3392
|
+
Entity as Entity33,
|
|
3393
|
+
Column as Column34,
|
|
3337
3394
|
OneToMany as OneToMany9,
|
|
3338
|
-
ManyToOne as
|
|
3339
|
-
Index as
|
|
3340
|
-
JoinColumn as
|
|
3395
|
+
ManyToOne as ManyToOne31,
|
|
3396
|
+
Index as Index29,
|
|
3397
|
+
JoinColumn as JoinColumn31
|
|
3341
3398
|
} from "typeorm";
|
|
3342
3399
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3343
3400
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3348,21 +3405,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3348
3405
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3349
3406
|
};
|
|
3350
3407
|
__decorateClass([
|
|
3351
|
-
|
|
3352
|
-
|
|
3408
|
+
Column34({ name: "question_id", type: "integer", nullable: true }),
|
|
3409
|
+
Index29()
|
|
3353
3410
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3354
3411
|
__decorateClass([
|
|
3355
|
-
|
|
3412
|
+
ManyToOne31(
|
|
3356
3413
|
() => AssessmetQuestion,
|
|
3357
3414
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3358
3415
|
),
|
|
3359
|
-
|
|
3416
|
+
JoinColumn31({ name: "question_id" })
|
|
3360
3417
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3361
3418
|
__decorateClass([
|
|
3362
|
-
|
|
3419
|
+
Column34({ name: "text", type: "varchar", nullable: true })
|
|
3363
3420
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3364
3421
|
__decorateClass([
|
|
3365
|
-
|
|
3422
|
+
Column34({
|
|
3366
3423
|
name: "answer_type",
|
|
3367
3424
|
type: "enum",
|
|
3368
3425
|
enum: AnswerTypeEnum,
|
|
@@ -3370,13 +3427,13 @@ __decorateClass([
|
|
|
3370
3427
|
})
|
|
3371
3428
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3372
3429
|
__decorateClass([
|
|
3373
|
-
|
|
3430
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3374
3431
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3375
3432
|
__decorateClass([
|
|
3376
3433
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3377
3434
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3378
3435
|
AssessmetQuestionOption = __decorateClass([
|
|
3379
|
-
|
|
3436
|
+
Entity33("assessment_question_options")
|
|
3380
3437
|
], AssessmetQuestionOption);
|
|
3381
3438
|
|
|
3382
3439
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3388,10 +3445,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3388
3445
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3389
3446
|
};
|
|
3390
3447
|
__decorateClass([
|
|
3391
|
-
|
|
3448
|
+
Column35({ name: "text", type: "varchar", nullable: true })
|
|
3392
3449
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3393
3450
|
__decorateClass([
|
|
3394
|
-
|
|
3451
|
+
Column35({
|
|
3395
3452
|
name: "question_for",
|
|
3396
3453
|
type: "enum",
|
|
3397
3454
|
enum: QuestionForEnum,
|
|
@@ -3399,7 +3456,7 @@ __decorateClass([
|
|
|
3399
3456
|
})
|
|
3400
3457
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3401
3458
|
__decorateClass([
|
|
3402
|
-
|
|
3459
|
+
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3403
3460
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3404
3461
|
__decorateClass([
|
|
3405
3462
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3408,7 +3465,7 @@ __decorateClass([
|
|
|
3408
3465
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3409
3466
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3410
3467
|
AssessmetQuestion = __decorateClass([
|
|
3411
|
-
|
|
3468
|
+
Entity34("assessment_questions")
|
|
3412
3469
|
], AssessmetQuestion);
|
|
3413
3470
|
|
|
3414
3471
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3421,102 +3478,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3421
3478
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3422
3479
|
};
|
|
3423
3480
|
__decorateClass([
|
|
3424
|
-
|
|
3425
|
-
|
|
3481
|
+
Column36({ name: "user_id", type: "integer" }),
|
|
3482
|
+
Index30()
|
|
3426
3483
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3427
3484
|
__decorateClass([
|
|
3428
|
-
|
|
3429
|
-
|
|
3485
|
+
ManyToOne32(() => User, (user) => user.assessmentAnswers),
|
|
3486
|
+
JoinColumn32({ name: "user_id" })
|
|
3430
3487
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3431
3488
|
__decorateClass([
|
|
3432
|
-
|
|
3433
|
-
|
|
3489
|
+
Column36({ name: "question_id", type: "integer" }),
|
|
3490
|
+
Index30()
|
|
3434
3491
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3435
3492
|
__decorateClass([
|
|
3436
|
-
|
|
3493
|
+
ManyToOne32(
|
|
3437
3494
|
() => AssessmetQuestion,
|
|
3438
3495
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3439
3496
|
),
|
|
3440
|
-
|
|
3497
|
+
JoinColumn32({ name: "question_id" })
|
|
3441
3498
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3442
3499
|
__decorateClass([
|
|
3443
|
-
|
|
3444
|
-
|
|
3500
|
+
Column36({ name: "selected_option_id", type: "integer" }),
|
|
3501
|
+
Index30()
|
|
3445
3502
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3446
3503
|
__decorateClass([
|
|
3447
|
-
|
|
3504
|
+
ManyToOne32(
|
|
3448
3505
|
() => AssessmetQuestionOption,
|
|
3449
3506
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3450
3507
|
),
|
|
3451
|
-
|
|
3508
|
+
JoinColumn32({ name: "selected_option_id" })
|
|
3452
3509
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3453
3510
|
__decorateClass([
|
|
3454
|
-
|
|
3511
|
+
Column36({
|
|
3455
3512
|
name: "selected_answer_type",
|
|
3456
3513
|
type: "enum",
|
|
3457
3514
|
enum: SelectedAnswerTypeEnum
|
|
3458
3515
|
})
|
|
3459
3516
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3460
3517
|
__decorateClass([
|
|
3461
|
-
|
|
3518
|
+
Column36({ name: "score", type: "float" })
|
|
3462
3519
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3463
3520
|
AssessmentAnswer = __decorateClass([
|
|
3464
|
-
|
|
3521
|
+
Entity35("assessment_answers")
|
|
3465
3522
|
], AssessmentAnswer);
|
|
3466
3523
|
|
|
3467
3524
|
// src/entities/company-skill.entity.ts
|
|
3468
|
-
import { Entity as
|
|
3525
|
+
import { Entity as Entity36, Column as Column37, Index as Index31, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3469
3526
|
var CompanySkill = class extends BaseEntity {
|
|
3470
3527
|
};
|
|
3471
3528
|
// individual index to find core skills by user
|
|
3472
3529
|
__decorateClass([
|
|
3473
|
-
|
|
3474
|
-
|
|
3530
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
3531
|
+
Index31()
|
|
3475
3532
|
], CompanySkill.prototype, "userId", 2);
|
|
3476
3533
|
__decorateClass([
|
|
3477
|
-
|
|
3478
|
-
|
|
3534
|
+
ManyToOne33(() => User, (user) => user.freelancerSkills),
|
|
3535
|
+
JoinColumn33({ name: "user_id" })
|
|
3479
3536
|
], CompanySkill.prototype, "user", 2);
|
|
3480
3537
|
__decorateClass([
|
|
3481
|
-
|
|
3538
|
+
Column37({ name: "skill_name", type: "varchar", nullable: true })
|
|
3482
3539
|
], CompanySkill.prototype, "skillName", 2);
|
|
3483
3540
|
CompanySkill = __decorateClass([
|
|
3484
|
-
|
|
3541
|
+
Entity36("company_skills")
|
|
3485
3542
|
], CompanySkill);
|
|
3486
3543
|
|
|
3487
3544
|
// src/entities/admin-user-role.entity.ts
|
|
3488
|
-
import { Entity as
|
|
3545
|
+
import { Entity as Entity40, Column as Column41, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3489
3546
|
|
|
3490
3547
|
// src/entities/admin-role.entity.ts
|
|
3491
|
-
import { Entity as
|
|
3548
|
+
import { Entity as Entity39, Column as Column40, Index as Index34, OneToMany as OneToMany13 } from "typeorm";
|
|
3492
3549
|
|
|
3493
3550
|
// src/entities/admin-role-permission.entity.ts
|
|
3494
|
-
import { Entity as
|
|
3551
|
+
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34 } from "typeorm";
|
|
3495
3552
|
|
|
3496
3553
|
// src/entities/admin-permission.entity.ts
|
|
3497
|
-
import { Entity as
|
|
3554
|
+
import { Entity as Entity37, Column as Column38, Index as Index32, OneToMany as OneToMany12 } from "typeorm";
|
|
3498
3555
|
var AdminPermission = class extends BaseEntity {
|
|
3499
3556
|
};
|
|
3500
3557
|
__decorateClass([
|
|
3501
|
-
|
|
3558
|
+
Column38({ name: "permission_name", type: "varchar", nullable: true })
|
|
3502
3559
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3503
3560
|
__decorateClass([
|
|
3504
|
-
|
|
3561
|
+
Column38({
|
|
3505
3562
|
name: "permission_slug",
|
|
3506
3563
|
type: "varchar",
|
|
3507
3564
|
unique: true,
|
|
3508
3565
|
nullable: true
|
|
3509
3566
|
}),
|
|
3510
|
-
|
|
3567
|
+
Index32()
|
|
3511
3568
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3512
3569
|
__decorateClass([
|
|
3513
|
-
|
|
3570
|
+
Column38({ name: "permission_description", type: "varchar", nullable: true })
|
|
3514
3571
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3515
3572
|
__decorateClass([
|
|
3516
|
-
|
|
3573
|
+
Column38({ name: "module", type: "varchar", nullable: true })
|
|
3517
3574
|
], AdminPermission.prototype, "module", 2);
|
|
3518
3575
|
__decorateClass([
|
|
3519
|
-
|
|
3576
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3520
3577
|
], AdminPermission.prototype, "isActive", 2);
|
|
3521
3578
|
__decorateClass([
|
|
3522
3579
|
OneToMany12(
|
|
@@ -3525,14 +3582,14 @@ __decorateClass([
|
|
|
3525
3582
|
)
|
|
3526
3583
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3527
3584
|
AdminPermission = __decorateClass([
|
|
3528
|
-
|
|
3585
|
+
Entity37("admin_permissions")
|
|
3529
3586
|
], AdminPermission);
|
|
3530
3587
|
|
|
3531
3588
|
// src/entities/admin-role-permission.entity.ts
|
|
3532
3589
|
var AdminRolePermission = class extends BaseEntity {
|
|
3533
3590
|
};
|
|
3534
3591
|
__decorateClass([
|
|
3535
|
-
|
|
3592
|
+
Column39({
|
|
3536
3593
|
name: "role_id",
|
|
3537
3594
|
type: "int",
|
|
3538
3595
|
nullable: true,
|
|
@@ -3540,11 +3597,11 @@ __decorateClass([
|
|
|
3540
3597
|
})
|
|
3541
3598
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3542
3599
|
__decorateClass([
|
|
3543
|
-
|
|
3544
|
-
|
|
3600
|
+
ManyToOne34(() => AdminRole),
|
|
3601
|
+
JoinColumn34({ name: "role_id" })
|
|
3545
3602
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3546
3603
|
__decorateClass([
|
|
3547
|
-
|
|
3604
|
+
Column39({
|
|
3548
3605
|
name: "permission_id",
|
|
3549
3606
|
type: "int",
|
|
3550
3607
|
nullable: true,
|
|
@@ -3552,28 +3609,28 @@ __decorateClass([
|
|
|
3552
3609
|
})
|
|
3553
3610
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3554
3611
|
__decorateClass([
|
|
3555
|
-
|
|
3556
|
-
|
|
3612
|
+
ManyToOne34(() => AdminPermission),
|
|
3613
|
+
JoinColumn34({ name: "permission_id" })
|
|
3557
3614
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3558
3615
|
AdminRolePermission = __decorateClass([
|
|
3559
|
-
|
|
3616
|
+
Entity38("admin_role_permissions")
|
|
3560
3617
|
], AdminRolePermission);
|
|
3561
3618
|
|
|
3562
3619
|
// src/entities/admin-role.entity.ts
|
|
3563
3620
|
var AdminRole = class extends BaseEntity {
|
|
3564
3621
|
};
|
|
3565
3622
|
__decorateClass([
|
|
3566
|
-
|
|
3623
|
+
Column40({ name: "role_name", type: "varchar", nullable: true })
|
|
3567
3624
|
], AdminRole.prototype, "roleName", 2);
|
|
3568
3625
|
__decorateClass([
|
|
3569
|
-
|
|
3570
|
-
|
|
3626
|
+
Column40({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3627
|
+
Index34()
|
|
3571
3628
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3572
3629
|
__decorateClass([
|
|
3573
|
-
|
|
3630
|
+
Column40({ name: "role_description", type: "varchar", nullable: true })
|
|
3574
3631
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3575
3632
|
__decorateClass([
|
|
3576
|
-
|
|
3633
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
3577
3634
|
], AdminRole.prototype, "isActive", 2);
|
|
3578
3635
|
__decorateClass([
|
|
3579
3636
|
OneToMany13(
|
|
@@ -3585,14 +3642,14 @@ __decorateClass([
|
|
|
3585
3642
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3586
3643
|
], AdminRole.prototype, "userRoles", 2);
|
|
3587
3644
|
AdminRole = __decorateClass([
|
|
3588
|
-
|
|
3645
|
+
Entity39("admin_roles")
|
|
3589
3646
|
], AdminRole);
|
|
3590
3647
|
|
|
3591
3648
|
// src/entities/admin-user-role.entity.ts
|
|
3592
3649
|
var AdminUserRole = class extends BaseEntity {
|
|
3593
3650
|
};
|
|
3594
3651
|
__decorateClass([
|
|
3595
|
-
|
|
3652
|
+
Column41({
|
|
3596
3653
|
name: "user_id",
|
|
3597
3654
|
type: "int",
|
|
3598
3655
|
nullable: true,
|
|
@@ -3600,11 +3657,11 @@ __decorateClass([
|
|
|
3600
3657
|
})
|
|
3601
3658
|
], AdminUserRole.prototype, "userId", 2);
|
|
3602
3659
|
__decorateClass([
|
|
3603
|
-
|
|
3604
|
-
|
|
3660
|
+
ManyToOne35(() => User),
|
|
3661
|
+
JoinColumn35({ name: "user_id" })
|
|
3605
3662
|
], AdminUserRole.prototype, "user", 2);
|
|
3606
3663
|
__decorateClass([
|
|
3607
|
-
|
|
3664
|
+
Column41({
|
|
3608
3665
|
name: "role_id",
|
|
3609
3666
|
type: "int",
|
|
3610
3667
|
nullable: true,
|
|
@@ -3612,42 +3669,176 @@ __decorateClass([
|
|
|
3612
3669
|
})
|
|
3613
3670
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3614
3671
|
__decorateClass([
|
|
3615
|
-
|
|
3616
|
-
|
|
3672
|
+
ManyToOne35(() => AdminRole),
|
|
3673
|
+
JoinColumn35({ name: "role_id" })
|
|
3617
3674
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3618
3675
|
AdminUserRole = __decorateClass([
|
|
3619
|
-
|
|
3676
|
+
Entity40("admin_user_roles")
|
|
3620
3677
|
], AdminUserRole);
|
|
3621
3678
|
|
|
3622
3679
|
// src/entities/freelancer-resume.entity.ts
|
|
3623
3680
|
import {
|
|
3624
|
-
Entity as
|
|
3625
|
-
Column as
|
|
3626
|
-
Index as
|
|
3627
|
-
ManyToOne as
|
|
3628
|
-
JoinColumn as
|
|
3681
|
+
Entity as Entity41,
|
|
3682
|
+
Column as Column42,
|
|
3683
|
+
Index as Index36,
|
|
3684
|
+
ManyToOne as ManyToOne36,
|
|
3685
|
+
JoinColumn as JoinColumn36
|
|
3629
3686
|
} from "typeorm";
|
|
3630
3687
|
var FreelancerResume = class extends BaseEntity {
|
|
3631
3688
|
};
|
|
3632
3689
|
// individual index to find profile by user
|
|
3633
3690
|
__decorateClass([
|
|
3634
|
-
|
|
3635
|
-
|
|
3691
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
3692
|
+
Index36()
|
|
3636
3693
|
], FreelancerResume.prototype, "userId", 2);
|
|
3637
3694
|
__decorateClass([
|
|
3638
|
-
|
|
3639
|
-
|
|
3695
|
+
ManyToOne36(() => User, (user) => user.freelancerProfile),
|
|
3696
|
+
JoinColumn36({ name: "user_id" })
|
|
3640
3697
|
], FreelancerResume.prototype, "user", 2);
|
|
3641
3698
|
__decorateClass([
|
|
3642
|
-
|
|
3699
|
+
Column42({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3643
3700
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3644
3701
|
__decorateClass([
|
|
3645
|
-
|
|
3702
|
+
Column42({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3646
3703
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3647
3704
|
FreelancerResume = __decorateClass([
|
|
3648
|
-
|
|
3705
|
+
Entity41("freelancer_resumes")
|
|
3649
3706
|
], FreelancerResume);
|
|
3650
3707
|
|
|
3708
|
+
// src/entities/f2f-interview.entity.ts
|
|
3709
|
+
import {
|
|
3710
|
+
Entity as Entity43,
|
|
3711
|
+
Column as Column44,
|
|
3712
|
+
ManyToOne as ManyToOne37,
|
|
3713
|
+
JoinColumn as JoinColumn37,
|
|
3714
|
+
OneToOne as OneToOne2
|
|
3715
|
+
} from "typeorm";
|
|
3716
|
+
|
|
3717
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3718
|
+
import {
|
|
3719
|
+
Entity as Entity42,
|
|
3720
|
+
Column as Column43,
|
|
3721
|
+
Index as Index37,
|
|
3722
|
+
Unique,
|
|
3723
|
+
OneToOne
|
|
3724
|
+
} from "typeorm";
|
|
3725
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3726
|
+
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3727
|
+
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3728
|
+
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3729
|
+
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3730
|
+
return CalendlyMeetingStatus2;
|
|
3731
|
+
})(CalendlyMeetingStatus || {});
|
|
3732
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
3733
|
+
};
|
|
3734
|
+
__decorateClass([
|
|
3735
|
+
OneToOne(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
3736
|
+
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
3737
|
+
__decorateClass([
|
|
3738
|
+
Column43({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3739
|
+
Index37()
|
|
3740
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3741
|
+
__decorateClass([
|
|
3742
|
+
Column43({ name: "event_name", type: "varchar", nullable: false })
|
|
3743
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3744
|
+
__decorateClass([
|
|
3745
|
+
Column43({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3746
|
+
Index37()
|
|
3747
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3748
|
+
__decorateClass([
|
|
3749
|
+
Column43({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3750
|
+
Index37()
|
|
3751
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3752
|
+
__decorateClass([
|
|
3753
|
+
Column43({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3754
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3755
|
+
__decorateClass([
|
|
3756
|
+
Column43({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3757
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3758
|
+
CalendlyMeeting = __decorateClass([
|
|
3759
|
+
Entity42("calendly_meetings"),
|
|
3760
|
+
Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3761
|
+
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3762
|
+
], CalendlyMeeting);
|
|
3763
|
+
|
|
3764
|
+
// src/entities/f2f-interview.entity.ts
|
|
3765
|
+
var F2FInterview = class extends BaseEntity {
|
|
3766
|
+
};
|
|
3767
|
+
__decorateClass([
|
|
3768
|
+
OneToOne2(() => CalendlyMeeting),
|
|
3769
|
+
JoinColumn37({ name: "calendly_meeting_id" })
|
|
3770
|
+
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
3771
|
+
__decorateClass([
|
|
3772
|
+
Column44({ name: "calendly_meeting_id", type: "integer" })
|
|
3773
|
+
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3774
|
+
__decorateClass([
|
|
3775
|
+
ManyToOne37(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3776
|
+
JoinColumn37({ name: "client_id" })
|
|
3777
|
+
], F2FInterview.prototype, "client", 2);
|
|
3778
|
+
__decorateClass([
|
|
3779
|
+
Column44({ name: "client_id", type: "integer", nullable: true })
|
|
3780
|
+
], F2FInterview.prototype, "clientId", 2);
|
|
3781
|
+
__decorateClass([
|
|
3782
|
+
ManyToOne37(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3783
|
+
JoinColumn37({ name: "freelancer_id" })
|
|
3784
|
+
], F2FInterview.prototype, "freelancer", 2);
|
|
3785
|
+
__decorateClass([
|
|
3786
|
+
Column44({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3787
|
+
], F2FInterview.prototype, "freelancerId", 2);
|
|
3788
|
+
__decorateClass([
|
|
3789
|
+
Column44({ name: "invitee_email", type: "varchar", nullable: false })
|
|
3790
|
+
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
3791
|
+
__decorateClass([
|
|
3792
|
+
Column44({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3793
|
+
], F2FInterview.prototype, "inviteeName", 2);
|
|
3794
|
+
__decorateClass([
|
|
3795
|
+
Column44({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3796
|
+
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
3797
|
+
__decorateClass([
|
|
3798
|
+
Column44({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3799
|
+
], F2FInterview.prototype, "meetingId", 2);
|
|
3800
|
+
__decorateClass([
|
|
3801
|
+
Column44({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3802
|
+
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
3803
|
+
__decorateClass([
|
|
3804
|
+
Column44({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3805
|
+
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
3806
|
+
__decorateClass([
|
|
3807
|
+
Column44({ name: "event_name", type: "varchar", nullable: false })
|
|
3808
|
+
], F2FInterview.prototype, "eventName", 2);
|
|
3809
|
+
__decorateClass([
|
|
3810
|
+
Column44({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3811
|
+
], F2FInterview.prototype, "isRescheduled", 2);
|
|
3812
|
+
__decorateClass([
|
|
3813
|
+
Column44({
|
|
3814
|
+
name: "status",
|
|
3815
|
+
type: "enum",
|
|
3816
|
+
enum: CalendlyMeetingStatus,
|
|
3817
|
+
default: "PENDING" /* PENDING */
|
|
3818
|
+
})
|
|
3819
|
+
], F2FInterview.prototype, "status", 2);
|
|
3820
|
+
__decorateClass([
|
|
3821
|
+
Column44({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3822
|
+
], F2FInterview.prototype, "cancelledAt", 2);
|
|
3823
|
+
__decorateClass([
|
|
3824
|
+
Column44({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3825
|
+
], F2FInterview.prototype, "cancelReason", 2);
|
|
3826
|
+
__decorateClass([
|
|
3827
|
+
Column44({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3828
|
+
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
3829
|
+
__decorateClass([
|
|
3830
|
+
Column44({ name: "is_completed", type: "boolean", default: false })
|
|
3831
|
+
], F2FInterview.prototype, "isCompleted", 2);
|
|
3832
|
+
__decorateClass([
|
|
3833
|
+
Column44({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3834
|
+
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
3835
|
+
__decorateClass([
|
|
3836
|
+
Column44({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3837
|
+
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
3838
|
+
F2FInterview = __decorateClass([
|
|
3839
|
+
Entity43("f2f_interviews")
|
|
3840
|
+
], F2FInterview);
|
|
3841
|
+
|
|
3651
3842
|
// src/entities/user.entity.ts
|
|
3652
3843
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3653
3844
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3671,59 +3862,53 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3671
3862
|
return Provider2;
|
|
3672
3863
|
})(Provider || {});
|
|
3673
3864
|
var User = class extends BaseEntity {
|
|
3674
|
-
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3675
|
-
// calendlyMeetings: CalendlyMeeting[];
|
|
3676
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3677
|
-
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3678
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3679
|
-
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3680
3865
|
};
|
|
3681
3866
|
__decorateClass([
|
|
3682
|
-
|
|
3867
|
+
Column45({ name: "unique_id", type: "varchar", unique: true })
|
|
3683
3868
|
], User.prototype, "uniqueId", 2);
|
|
3684
3869
|
__decorateClass([
|
|
3685
|
-
|
|
3686
|
-
|
|
3870
|
+
Column45({ name: "parent_id", type: "integer", nullable: true }),
|
|
3871
|
+
Index38()
|
|
3687
3872
|
], User.prototype, "parentId", 2);
|
|
3688
3873
|
__decorateClass([
|
|
3689
|
-
|
|
3690
|
-
|
|
3874
|
+
ManyToOne38(() => User, (user) => user.children, { nullable: true }),
|
|
3875
|
+
JoinColumn38({ name: "parent_id" })
|
|
3691
3876
|
], User.prototype, "parent", 2);
|
|
3692
3877
|
__decorateClass([
|
|
3693
3878
|
OneToMany14(() => User, (user) => user.parent)
|
|
3694
3879
|
], User.prototype, "children", 2);
|
|
3695
3880
|
__decorateClass([
|
|
3696
|
-
|
|
3881
|
+
Column45({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3697
3882
|
], User.prototype, "username", 2);
|
|
3698
3883
|
__decorateClass([
|
|
3699
|
-
|
|
3884
|
+
Column45({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3700
3885
|
], User.prototype, "firstName", 2);
|
|
3701
3886
|
__decorateClass([
|
|
3702
|
-
|
|
3887
|
+
Column45({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3703
3888
|
], User.prototype, "lastName", 2);
|
|
3704
3889
|
__decorateClass([
|
|
3705
|
-
|
|
3890
|
+
Column45({ name: "date_of_birth", type: "date", nullable: true })
|
|
3706
3891
|
], User.prototype, "dateOfBirth", 2);
|
|
3707
3892
|
__decorateClass([
|
|
3708
|
-
|
|
3893
|
+
Column45({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3709
3894
|
], User.prototype, "gender", 2);
|
|
3710
3895
|
__decorateClass([
|
|
3711
|
-
|
|
3896
|
+
Column45({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3712
3897
|
], User.prototype, "profilePictureUrl", 2);
|
|
3713
3898
|
__decorateClass([
|
|
3714
|
-
|
|
3899
|
+
Column45({ name: "email", type: "varchar", unique: true })
|
|
3715
3900
|
], User.prototype, "email", 2);
|
|
3716
3901
|
__decorateClass([
|
|
3717
|
-
|
|
3902
|
+
Column45({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3718
3903
|
], User.prototype, "mobileCode", 2);
|
|
3719
3904
|
__decorateClass([
|
|
3720
|
-
|
|
3905
|
+
Column45({ name: "mobile", type: "varchar", nullable: true })
|
|
3721
3906
|
], User.prototype, "mobile", 2);
|
|
3722
3907
|
__decorateClass([
|
|
3723
|
-
|
|
3908
|
+
Column45({ name: "password", type: "varchar", nullable: true })
|
|
3724
3909
|
], User.prototype, "password", 2);
|
|
3725
3910
|
__decorateClass([
|
|
3726
|
-
|
|
3911
|
+
Column45({
|
|
3727
3912
|
name: "account_type",
|
|
3728
3913
|
type: "enum",
|
|
3729
3914
|
enum: AccountType,
|
|
@@ -3731,7 +3916,7 @@ __decorateClass([
|
|
|
3731
3916
|
})
|
|
3732
3917
|
], User.prototype, "accountType", 2);
|
|
3733
3918
|
__decorateClass([
|
|
3734
|
-
|
|
3919
|
+
Column45({
|
|
3735
3920
|
name: "account_status",
|
|
3736
3921
|
type: "enum",
|
|
3737
3922
|
enum: AccountStatus,
|
|
@@ -3739,29 +3924,29 @@ __decorateClass([
|
|
|
3739
3924
|
})
|
|
3740
3925
|
], User.prototype, "accountStatus", 2);
|
|
3741
3926
|
__decorateClass([
|
|
3742
|
-
|
|
3927
|
+
Column45({ name: "is_email_verified", type: "boolean", default: false })
|
|
3743
3928
|
], User.prototype, "isEmailVerified", 2);
|
|
3744
3929
|
__decorateClass([
|
|
3745
|
-
|
|
3930
|
+
Column45({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3746
3931
|
], User.prototype, "isMobileVerified", 2);
|
|
3747
3932
|
__decorateClass([
|
|
3748
|
-
|
|
3933
|
+
Column45({ name: "is_social", type: "boolean", default: false })
|
|
3749
3934
|
], User.prototype, "isSocial", 2);
|
|
3750
3935
|
__decorateClass([
|
|
3751
|
-
|
|
3936
|
+
Column45({
|
|
3752
3937
|
name: "last_login_at",
|
|
3753
3938
|
type: "timestamp with time zone",
|
|
3754
3939
|
nullable: true
|
|
3755
3940
|
})
|
|
3756
3941
|
], User.prototype, "lastLoginAt", 2);
|
|
3757
3942
|
__decorateClass([
|
|
3758
|
-
|
|
3943
|
+
Column45({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3759
3944
|
], User.prototype, "lastLoginIp", 2);
|
|
3760
3945
|
__decorateClass([
|
|
3761
|
-
|
|
3946
|
+
Column45({ name: "reset_token", type: "varchar", nullable: true })
|
|
3762
3947
|
], User.prototype, "resetToken", 2);
|
|
3763
3948
|
__decorateClass([
|
|
3764
|
-
|
|
3949
|
+
Column45({
|
|
3765
3950
|
name: "reset_token_expire_at",
|
|
3766
3951
|
type: "timestamp with time zone",
|
|
3767
3952
|
nullable: true
|
|
@@ -3771,7 +3956,7 @@ __decorateClass([
|
|
|
3771
3956
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3772
3957
|
], User.prototype, "refreshTokens", 2);
|
|
3773
3958
|
__decorateClass([
|
|
3774
|
-
|
|
3959
|
+
Column45({
|
|
3775
3960
|
name: "provider",
|
|
3776
3961
|
type: "enum",
|
|
3777
3962
|
enum: Provider,
|
|
@@ -3780,16 +3965,16 @@ __decorateClass([
|
|
|
3780
3965
|
})
|
|
3781
3966
|
], User.prototype, "provider", 2);
|
|
3782
3967
|
__decorateClass([
|
|
3783
|
-
|
|
3968
|
+
Column45({ name: "provider_token", type: "varchar", nullable: true })
|
|
3784
3969
|
], User.prototype, "providerToken", 2);
|
|
3785
3970
|
__decorateClass([
|
|
3786
|
-
|
|
3971
|
+
Column45({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3787
3972
|
], User.prototype, "linkedInId", 2);
|
|
3788
3973
|
__decorateClass([
|
|
3789
|
-
|
|
3974
|
+
Column45({ name: "google_id", type: "varchar", nullable: true })
|
|
3790
3975
|
], User.prototype, "googleId", 2);
|
|
3791
3976
|
__decorateClass([
|
|
3792
|
-
|
|
3977
|
+
Column45({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3793
3978
|
], User.prototype, "gitLabsId", 2);
|
|
3794
3979
|
__decorateClass([
|
|
3795
3980
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3798,7 +3983,7 @@ __decorateClass([
|
|
|
3798
3983
|
OneToMany14(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3799
3984
|
], User.prototype, "senseloafLogs", 2);
|
|
3800
3985
|
__decorateClass([
|
|
3801
|
-
|
|
3986
|
+
OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3802
3987
|
], User.prototype, "companyProfile", 2);
|
|
3803
3988
|
__decorateClass([
|
|
3804
3989
|
OneToMany14(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -3807,10 +3992,13 @@ __decorateClass([
|
|
|
3807
3992
|
OneToMany14(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3808
3993
|
], User.prototype, "companyMemberRoles", 2);
|
|
3809
3994
|
__decorateClass([
|
|
3810
|
-
|
|
3995
|
+
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3996
|
+
], User.prototype, "companyAiInterview", 2);
|
|
3997
|
+
__decorateClass([
|
|
3998
|
+
OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3811
3999
|
], User.prototype, "freelancerProfile", 2);
|
|
3812
4000
|
__decorateClass([
|
|
3813
|
-
|
|
4001
|
+
OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3814
4002
|
], User.prototype, "freelancerResume", 2);
|
|
3815
4003
|
__decorateClass([
|
|
3816
4004
|
OneToMany14(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
@@ -3840,8 +4028,11 @@ __decorateClass([
|
|
|
3840
4028
|
OneToMany14(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3841
4029
|
], User.prototype, "freelancerFramework", 2);
|
|
3842
4030
|
__decorateClass([
|
|
3843
|
-
|
|
4031
|
+
OneToOne3(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3844
4032
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4033
|
+
__decorateClass([
|
|
4034
|
+
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4035
|
+
], User.prototype, "freelancerAiInterview", 2);
|
|
3845
4036
|
__decorateClass([
|
|
3846
4037
|
OneToMany14(() => Job, (job) => job.user)
|
|
3847
4038
|
], User.prototype, "jobs", 2);
|
|
@@ -3866,8 +4057,14 @@ __decorateClass([
|
|
|
3866
4057
|
__decorateClass([
|
|
3867
4058
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3868
4059
|
], User.prototype, "adminUserRoles", 2);
|
|
4060
|
+
__decorateClass([
|
|
4061
|
+
OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.client)
|
|
4062
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
4063
|
+
__decorateClass([
|
|
4064
|
+
OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.freelancer)
|
|
4065
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3869
4066
|
User = __decorateClass([
|
|
3870
|
-
|
|
4067
|
+
Entity44("users")
|
|
3871
4068
|
], User);
|
|
3872
4069
|
|
|
3873
4070
|
// src/entities/rating.entity.ts
|
|
@@ -3879,36 +4076,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3879
4076
|
var Rating = class extends BaseEntity {
|
|
3880
4077
|
};
|
|
3881
4078
|
__decorateClass([
|
|
3882
|
-
|
|
3883
|
-
|
|
4079
|
+
Column46({ name: "reviewer_id", type: "integer" }),
|
|
4080
|
+
Index39()
|
|
3884
4081
|
], Rating.prototype, "reviewer_id", 2);
|
|
3885
4082
|
__decorateClass([
|
|
3886
|
-
|
|
3887
|
-
|
|
4083
|
+
ManyToOne39(() => User, { onDelete: "CASCADE" }),
|
|
4084
|
+
JoinColumn39({ name: "reviewer_id" })
|
|
3888
4085
|
], Rating.prototype, "reviewer", 2);
|
|
3889
4086
|
__decorateClass([
|
|
3890
|
-
|
|
3891
|
-
|
|
4087
|
+
Column46({ name: "reviewee_id", type: "integer" }),
|
|
4088
|
+
Index39()
|
|
3892
4089
|
], Rating.prototype, "reviewee_id", 2);
|
|
3893
4090
|
__decorateClass([
|
|
3894
|
-
|
|
3895
|
-
|
|
4091
|
+
ManyToOne39(() => User, { onDelete: "CASCADE" }),
|
|
4092
|
+
JoinColumn39({ name: "reviewee_id" })
|
|
3896
4093
|
], Rating.prototype, "reviewee", 2);
|
|
3897
4094
|
__decorateClass([
|
|
3898
|
-
|
|
4095
|
+
Column46({
|
|
3899
4096
|
type: "enum",
|
|
3900
4097
|
enum: RatingTypeEnum,
|
|
3901
4098
|
nullable: true
|
|
3902
4099
|
})
|
|
3903
4100
|
], Rating.prototype, "ratingType", 2);
|
|
3904
4101
|
__decorateClass([
|
|
3905
|
-
|
|
4102
|
+
Column46({ type: "integer", nullable: true })
|
|
3906
4103
|
], Rating.prototype, "rating", 2);
|
|
3907
4104
|
__decorateClass([
|
|
3908
|
-
|
|
4105
|
+
Column46({ type: "text", nullable: true })
|
|
3909
4106
|
], Rating.prototype, "review", 2);
|
|
3910
4107
|
Rating = __decorateClass([
|
|
3911
|
-
|
|
4108
|
+
Entity45("ratings")
|
|
3912
4109
|
], Rating);
|
|
3913
4110
|
|
|
3914
4111
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5341,11 +5538,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5341
5538
|
};
|
|
5342
5539
|
|
|
5343
5540
|
// src/entities/sequence-generator.entity.ts
|
|
5344
|
-
import { Entity as
|
|
5541
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
5345
5542
|
var SequenceGenerator = class extends BaseEntity {
|
|
5346
5543
|
};
|
|
5347
5544
|
__decorateClass([
|
|
5348
|
-
|
|
5545
|
+
Column47({
|
|
5349
5546
|
name: "module",
|
|
5350
5547
|
type: "varchar",
|
|
5351
5548
|
length: 50,
|
|
@@ -5354,7 +5551,7 @@ __decorateClass([
|
|
|
5354
5551
|
})
|
|
5355
5552
|
], SequenceGenerator.prototype, "module", 2);
|
|
5356
5553
|
__decorateClass([
|
|
5357
|
-
|
|
5554
|
+
Column47({
|
|
5358
5555
|
name: "prefix",
|
|
5359
5556
|
type: "varchar",
|
|
5360
5557
|
length: 10,
|
|
@@ -5363,7 +5560,7 @@ __decorateClass([
|
|
|
5363
5560
|
})
|
|
5364
5561
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5365
5562
|
__decorateClass([
|
|
5366
|
-
|
|
5563
|
+
Column47({
|
|
5367
5564
|
name: "last_sequence",
|
|
5368
5565
|
type: "int",
|
|
5369
5566
|
nullable: false,
|
|
@@ -5371,7 +5568,7 @@ __decorateClass([
|
|
|
5371
5568
|
})
|
|
5372
5569
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5373
5570
|
__decorateClass([
|
|
5374
|
-
|
|
5571
|
+
Column47({
|
|
5375
5572
|
name: "year",
|
|
5376
5573
|
type: "int",
|
|
5377
5574
|
nullable: true,
|
|
@@ -5379,11 +5576,11 @@ __decorateClass([
|
|
|
5379
5576
|
})
|
|
5380
5577
|
], SequenceGenerator.prototype, "year", 2);
|
|
5381
5578
|
SequenceGenerator = __decorateClass([
|
|
5382
|
-
|
|
5579
|
+
Entity46("sequence_generators")
|
|
5383
5580
|
], SequenceGenerator);
|
|
5384
5581
|
|
|
5385
5582
|
// src/entities/question.entity.ts
|
|
5386
|
-
import { Entity as
|
|
5583
|
+
import { Entity as Entity47, Column as Column48 } from "typeorm";
|
|
5387
5584
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5388
5585
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5389
5586
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5392,16 +5589,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5392
5589
|
var Question = class extends BaseEntity {
|
|
5393
5590
|
};
|
|
5394
5591
|
__decorateClass([
|
|
5395
|
-
|
|
5592
|
+
Column48({ name: "question", type: "varchar" })
|
|
5396
5593
|
], Question.prototype, "question", 2);
|
|
5397
5594
|
__decorateClass([
|
|
5398
|
-
|
|
5595
|
+
Column48({ name: "hint", type: "varchar", nullable: true })
|
|
5399
5596
|
], Question.prototype, "hint", 2);
|
|
5400
5597
|
__decorateClass([
|
|
5401
|
-
|
|
5598
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5402
5599
|
], Question.prototype, "slug", 2);
|
|
5403
5600
|
__decorateClass([
|
|
5404
|
-
|
|
5601
|
+
Column48({
|
|
5405
5602
|
name: "question_for",
|
|
5406
5603
|
type: "enum",
|
|
5407
5604
|
enum: QuestionFor,
|
|
@@ -5409,261 +5606,119 @@ __decorateClass([
|
|
|
5409
5606
|
})
|
|
5410
5607
|
], Question.prototype, "questionFor", 2);
|
|
5411
5608
|
__decorateClass([
|
|
5412
|
-
|
|
5609
|
+
Column48({ name: "type", type: "varchar", nullable: true })
|
|
5413
5610
|
], Question.prototype, "type", 2);
|
|
5414
5611
|
__decorateClass([
|
|
5415
|
-
|
|
5612
|
+
Column48({ name: "options", type: "jsonb", nullable: true })
|
|
5416
5613
|
], Question.prototype, "options", 2);
|
|
5417
5614
|
__decorateClass([
|
|
5418
|
-
|
|
5615
|
+
Column48({ name: "is_active", type: "boolean", default: false })
|
|
5419
5616
|
], Question.prototype, "isActive", 2);
|
|
5420
5617
|
Question = __decorateClass([
|
|
5421
|
-
|
|
5618
|
+
Entity47("questions")
|
|
5422
5619
|
], Question);
|
|
5423
5620
|
|
|
5424
5621
|
// src/entities/skill.entity.ts
|
|
5425
|
-
import { Entity as
|
|
5622
|
+
import { Entity as Entity48, Column as Column49 } from "typeorm";
|
|
5426
5623
|
var Skill = class extends BaseEntity {
|
|
5427
5624
|
};
|
|
5428
5625
|
__decorateClass([
|
|
5429
|
-
|
|
5626
|
+
Column49({ name: "name", type: "varchar", nullable: true })
|
|
5430
5627
|
], Skill.prototype, "name", 2);
|
|
5431
5628
|
__decorateClass([
|
|
5432
|
-
|
|
5629
|
+
Column49({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5433
5630
|
], Skill.prototype, "slug", 2);
|
|
5434
5631
|
__decorateClass([
|
|
5435
|
-
|
|
5632
|
+
Column49({ name: "is_active", type: "boolean", default: false })
|
|
5436
5633
|
], Skill.prototype, "isActive", 2);
|
|
5437
5634
|
Skill = __decorateClass([
|
|
5438
|
-
|
|
5635
|
+
Entity48("skills")
|
|
5439
5636
|
], Skill);
|
|
5440
5637
|
|
|
5441
5638
|
// src/entities/job-role.entity.ts
|
|
5442
|
-
import { Entity as
|
|
5639
|
+
import { Entity as Entity49, Column as Column50 } from "typeorm";
|
|
5443
5640
|
var JobRoles = class extends BaseEntity {
|
|
5444
5641
|
};
|
|
5445
5642
|
__decorateClass([
|
|
5446
|
-
|
|
5643
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5447
5644
|
], JobRoles.prototype, "slug", 2);
|
|
5448
5645
|
__decorateClass([
|
|
5449
|
-
|
|
5646
|
+
Column50({ name: "name", type: "varchar", nullable: true })
|
|
5450
5647
|
], JobRoles.prototype, "name", 2);
|
|
5451
5648
|
__decorateClass([
|
|
5452
|
-
|
|
5649
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
5453
5650
|
], JobRoles.prototype, "isActive", 2);
|
|
5454
5651
|
JobRoles = __decorateClass([
|
|
5455
|
-
|
|
5652
|
+
Entity49("job_roles")
|
|
5456
5653
|
], JobRoles);
|
|
5457
5654
|
|
|
5458
|
-
// src/entities/ai-interview.entity.ts
|
|
5459
|
-
import { Entity as Entity47, Column as Column48, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index38 } from "typeorm";
|
|
5460
|
-
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5461
|
-
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5462
|
-
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5463
|
-
AIInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
5464
|
-
AIInterviewStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
5465
|
-
AIInterviewStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
5466
|
-
return AIInterviewStatusEnum2;
|
|
5467
|
-
})(AIInterviewStatusEnum || {});
|
|
5468
|
-
var AIInterviewTypeEnum = /* @__PURE__ */ ((AIInterviewTypeEnum2) => {
|
|
5469
|
-
AIInterviewTypeEnum2["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
5470
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE";
|
|
5471
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE";
|
|
5472
|
-
AIInterviewTypeEnum2["CODING_EXERCISE"] = "CODING_EXERCISE";
|
|
5473
|
-
return AIInterviewTypeEnum2;
|
|
5474
|
-
})(AIInterviewTypeEnum || {});
|
|
5475
|
-
var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
5476
|
-
AIInterviewResultEnum2["PASSED"] = "PASSED";
|
|
5477
|
-
AIInterviewResultEnum2["FAILED"] = "FAILED";
|
|
5478
|
-
AIInterviewResultEnum2["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
5479
|
-
AIInterviewResultEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
5480
|
-
return AIInterviewResultEnum2;
|
|
5481
|
-
})(AIInterviewResultEnum || {});
|
|
5482
|
-
var AIInterview = class extends BaseEntity {
|
|
5483
|
-
};
|
|
5484
|
-
__decorateClass([
|
|
5485
|
-
Column48({
|
|
5486
|
-
name: "interview_id",
|
|
5487
|
-
type: "integer",
|
|
5488
|
-
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5489
|
-
}),
|
|
5490
|
-
Index38()
|
|
5491
|
-
], AIInterview.prototype, "interviewId", 2);
|
|
5492
|
-
__decorateClass([
|
|
5493
|
-
Column48({
|
|
5494
|
-
name: "interview_invite_id",
|
|
5495
|
-
type: "integer",
|
|
5496
|
-
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5497
|
-
})
|
|
5498
|
-
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5499
|
-
__decorateClass([
|
|
5500
|
-
Column48({
|
|
5501
|
-
name: "candidate_id",
|
|
5502
|
-
type: "integer",
|
|
5503
|
-
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5504
|
-
}),
|
|
5505
|
-
Index38()
|
|
5506
|
-
], AIInterview.prototype, "candidateId", 2);
|
|
5507
|
-
__decorateClass([
|
|
5508
|
-
Column48({
|
|
5509
|
-
name: "job_id",
|
|
5510
|
-
type: "integer",
|
|
5511
|
-
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5512
|
-
})
|
|
5513
|
-
], AIInterview.prototype, "jobId", 2);
|
|
5514
|
-
__decorateClass([
|
|
5515
|
-
Column48({
|
|
5516
|
-
name: "invite_token",
|
|
5517
|
-
type: "varchar",
|
|
5518
|
-
unique: true,
|
|
5519
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5520
|
-
nullable: true
|
|
5521
|
-
})
|
|
5522
|
-
], AIInterview.prototype, "inviteToken", 2);
|
|
5523
|
-
__decorateClass([
|
|
5524
|
-
Column48({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5525
|
-
], AIInterview.prototype, "interviewType", 2);
|
|
5526
|
-
__decorateClass([
|
|
5527
|
-
Column48({
|
|
5528
|
-
name: "interview_name",
|
|
5529
|
-
type: "varchar",
|
|
5530
|
-
comment: "Name of the interview"
|
|
5531
|
-
})
|
|
5532
|
-
], AIInterview.prototype, "interviewName", 2);
|
|
5533
|
-
__decorateClass([
|
|
5534
|
-
Column48({
|
|
5535
|
-
name: "job_title",
|
|
5536
|
-
type: "varchar",
|
|
5537
|
-
comment: "Name of the job title for that the AI interview was conducted"
|
|
5538
|
-
})
|
|
5539
|
-
], AIInterview.prototype, "jobTitle", 2);
|
|
5540
|
-
__decorateClass([
|
|
5541
|
-
Column48({
|
|
5542
|
-
type: "enum",
|
|
5543
|
-
enum: AIInterviewStatusEnum,
|
|
5544
|
-
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5545
|
-
})
|
|
5546
|
-
], AIInterview.prototype, "status", 2);
|
|
5547
|
-
__decorateClass([
|
|
5548
|
-
Column48({
|
|
5549
|
-
name: "started_at",
|
|
5550
|
-
type: "timestamp with time zone",
|
|
5551
|
-
comment: "Timestamp when the interview was started"
|
|
5552
|
-
})
|
|
5553
|
-
], AIInterview.prototype, "startedAt", 2);
|
|
5554
|
-
__decorateClass([
|
|
5555
|
-
Column48({
|
|
5556
|
-
name: "completed_at",
|
|
5557
|
-
type: "timestamp with time zone",
|
|
5558
|
-
nullable: true,
|
|
5559
|
-
comment: "Timestamp when the interview was completed"
|
|
5560
|
-
})
|
|
5561
|
-
], AIInterview.prototype, "completedAt", 2);
|
|
5562
|
-
__decorateClass([
|
|
5563
|
-
Column48({
|
|
5564
|
-
name: "duration_minutes",
|
|
5565
|
-
type: "integer",
|
|
5566
|
-
nullable: true,
|
|
5567
|
-
comment: "Duration of the AI interview"
|
|
5568
|
-
})
|
|
5569
|
-
], AIInterview.prototype, "durationMinutes", 2);
|
|
5570
|
-
__decorateClass([
|
|
5571
|
-
Column48({
|
|
5572
|
-
name: "overall_score",
|
|
5573
|
-
type: "decimal",
|
|
5574
|
-
precision: 5,
|
|
5575
|
-
scale: 2,
|
|
5576
|
-
nullable: true,
|
|
5577
|
-
comment: "Overall score of the AI interview"
|
|
5578
|
-
})
|
|
5579
|
-
], AIInterview.prototype, "overallScore", 2);
|
|
5580
|
-
__decorateClass([
|
|
5581
|
-
ManyToOne38(() => Interview, { onDelete: "CASCADE" }),
|
|
5582
|
-
JoinColumn38({ name: "interview_id" })
|
|
5583
|
-
], AIInterview.prototype, "interview", 2);
|
|
5584
|
-
__decorateClass([
|
|
5585
|
-
ManyToOne38(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5586
|
-
JoinColumn38({ name: "interview_invite_id" })
|
|
5587
|
-
], AIInterview.prototype, "interviewInvite", 2);
|
|
5588
|
-
__decorateClass([
|
|
5589
|
-
ManyToOne38(() => User, { onDelete: "CASCADE" }),
|
|
5590
|
-
JoinColumn38({ name: "candidate_id" })
|
|
5591
|
-
], AIInterview.prototype, "candidate", 2);
|
|
5592
|
-
__decorateClass([
|
|
5593
|
-
ManyToOne38(() => Job, { onDelete: "CASCADE" }),
|
|
5594
|
-
JoinColumn38({ name: "job_id" })
|
|
5595
|
-
], AIInterview.prototype, "job", 2);
|
|
5596
|
-
AIInterview = __decorateClass([
|
|
5597
|
-
Entity47("ai_interviews")
|
|
5598
|
-
], AIInterview);
|
|
5599
|
-
|
|
5600
5655
|
// src/entities/plan.entity.ts
|
|
5601
|
-
import { Entity as
|
|
5656
|
+
import { Entity as Entity51, Column as Column52, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5602
5657
|
|
|
5603
5658
|
// src/entities/feature.entity.ts
|
|
5604
|
-
import { Entity as
|
|
5659
|
+
import { Entity as Entity50, Column as Column51, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5605
5660
|
var Feature = class extends BaseEntity {
|
|
5606
5661
|
};
|
|
5607
5662
|
__decorateClass([
|
|
5608
|
-
|
|
5663
|
+
Column51({ name: "name", type: "varchar", unique: true })
|
|
5609
5664
|
], Feature.prototype, "name", 2);
|
|
5610
5665
|
__decorateClass([
|
|
5611
5666
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5612
5667
|
], Feature.prototype, "plans", 2);
|
|
5613
5668
|
Feature = __decorateClass([
|
|
5614
|
-
|
|
5669
|
+
Entity50("features")
|
|
5615
5670
|
], Feature);
|
|
5616
5671
|
|
|
5617
5672
|
// src/entities/plan.entity.ts
|
|
5618
5673
|
var Plan = class extends BaseEntity {
|
|
5619
5674
|
};
|
|
5620
5675
|
__decorateClass([
|
|
5621
|
-
|
|
5676
|
+
Column52({ name: "name", type: "varchar", unique: true })
|
|
5622
5677
|
], Plan.prototype, "name", 2);
|
|
5623
5678
|
__decorateClass([
|
|
5624
|
-
|
|
5679
|
+
Column52({ name: "description", type: "varchar", nullable: true })
|
|
5625
5680
|
], Plan.prototype, "description", 2);
|
|
5626
5681
|
__decorateClass([
|
|
5627
|
-
|
|
5682
|
+
Column52({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5628
5683
|
], Plan.prototype, "price", 2);
|
|
5629
5684
|
__decorateClass([
|
|
5630
|
-
|
|
5685
|
+
Column52({ name: "billing_period", type: "varchar" })
|
|
5631
5686
|
], Plan.prototype, "billingPeriod", 2);
|
|
5632
5687
|
__decorateClass([
|
|
5633
|
-
|
|
5688
|
+
Column52({ name: "is_current", type: "boolean", default: false })
|
|
5634
5689
|
], Plan.prototype, "isCurrent", 2);
|
|
5635
5690
|
__decorateClass([
|
|
5636
5691
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5637
5692
|
JoinTable()
|
|
5638
5693
|
], Plan.prototype, "features", 2);
|
|
5639
5694
|
Plan = __decorateClass([
|
|
5640
|
-
|
|
5695
|
+
Entity51("plans")
|
|
5641
5696
|
], Plan);
|
|
5642
5697
|
|
|
5643
5698
|
// src/entities/cms.entity.ts
|
|
5644
|
-
import { Entity as
|
|
5699
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
5645
5700
|
var Cms = class extends BaseEntity {
|
|
5646
5701
|
};
|
|
5647
5702
|
__decorateClass([
|
|
5648
|
-
|
|
5703
|
+
Column53({ name: "title", type: "varchar", nullable: true })
|
|
5649
5704
|
], Cms.prototype, "title", 2);
|
|
5650
5705
|
__decorateClass([
|
|
5651
|
-
|
|
5706
|
+
Column53({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5652
5707
|
], Cms.prototype, "slug", 2);
|
|
5653
5708
|
__decorateClass([
|
|
5654
|
-
|
|
5709
|
+
Column53({ name: "content", type: "varchar", nullable: true })
|
|
5655
5710
|
], Cms.prototype, "content", 2);
|
|
5656
5711
|
__decorateClass([
|
|
5657
|
-
|
|
5712
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5658
5713
|
], Cms.prototype, "isActive", 2);
|
|
5659
5714
|
Cms = __decorateClass([
|
|
5660
|
-
|
|
5715
|
+
Entity52("cms")
|
|
5661
5716
|
], Cms);
|
|
5662
5717
|
|
|
5663
5718
|
// src/entities/lead.entity.ts
|
|
5664
5719
|
import {
|
|
5665
|
-
Entity as
|
|
5666
|
-
Column as
|
|
5720
|
+
Entity as Entity53,
|
|
5721
|
+
Column as Column54
|
|
5667
5722
|
} from "typeorm";
|
|
5668
5723
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5669
5724
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5673,22 +5728,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5673
5728
|
var Lead = class extends BaseEntity {
|
|
5674
5729
|
};
|
|
5675
5730
|
__decorateClass([
|
|
5676
|
-
|
|
5731
|
+
Column54({ name: "name", type: "varchar", nullable: true })
|
|
5677
5732
|
], Lead.prototype, "name", 2);
|
|
5678
5733
|
__decorateClass([
|
|
5679
|
-
|
|
5734
|
+
Column54({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5680
5735
|
], Lead.prototype, "mobileCode", 2);
|
|
5681
5736
|
__decorateClass([
|
|
5682
|
-
|
|
5737
|
+
Column54({ name: "mobile", type: "varchar", nullable: true })
|
|
5683
5738
|
], Lead.prototype, "mobile", 2);
|
|
5684
5739
|
__decorateClass([
|
|
5685
|
-
|
|
5740
|
+
Column54({ name: "email", type: "varchar", nullable: true })
|
|
5686
5741
|
], Lead.prototype, "email", 2);
|
|
5687
5742
|
__decorateClass([
|
|
5688
|
-
|
|
5743
|
+
Column54({ name: "description", type: "varchar", nullable: true })
|
|
5689
5744
|
], Lead.prototype, "description", 2);
|
|
5690
5745
|
__decorateClass([
|
|
5691
|
-
|
|
5746
|
+
Column54({
|
|
5692
5747
|
name: "category",
|
|
5693
5748
|
type: "enum",
|
|
5694
5749
|
enum: CategoryEmum,
|
|
@@ -5696,7 +5751,7 @@ __decorateClass([
|
|
|
5696
5751
|
})
|
|
5697
5752
|
], Lead.prototype, "category", 2);
|
|
5698
5753
|
Lead = __decorateClass([
|
|
5699
|
-
|
|
5754
|
+
Entity53("leads")
|
|
5700
5755
|
], Lead);
|
|
5701
5756
|
|
|
5702
5757
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5937,7 +5992,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5937
5992
|
], ClientFreelancerRecommendation);
|
|
5938
5993
|
|
|
5939
5994
|
// src/entities/commission.entity.ts
|
|
5940
|
-
import { Entity as
|
|
5995
|
+
import { Entity as Entity54, Column as Column55 } from "typeorm";
|
|
5941
5996
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5942
5997
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5943
5998
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5946,7 +6001,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5946
6001
|
var Commission = class extends BaseEntity {
|
|
5947
6002
|
};
|
|
5948
6003
|
__decorateClass([
|
|
5949
|
-
|
|
6004
|
+
Column55({
|
|
5950
6005
|
name: "freelancer_commission_type",
|
|
5951
6006
|
type: "enum",
|
|
5952
6007
|
enum: CommissionTypeEnum,
|
|
@@ -5954,10 +6009,10 @@ __decorateClass([
|
|
|
5954
6009
|
})
|
|
5955
6010
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5956
6011
|
__decorateClass([
|
|
5957
|
-
|
|
6012
|
+
Column55({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5958
6013
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5959
6014
|
__decorateClass([
|
|
5960
|
-
|
|
6015
|
+
Column55({
|
|
5961
6016
|
name: "client_commission_type",
|
|
5962
6017
|
type: "enum",
|
|
5963
6018
|
enum: CommissionTypeEnum,
|
|
@@ -5965,20 +6020,16 @@ __decorateClass([
|
|
|
5965
6020
|
})
|
|
5966
6021
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5967
6022
|
__decorateClass([
|
|
5968
|
-
|
|
6023
|
+
Column55({ name: "client_commission", type: "integer", default: 0 })
|
|
5969
6024
|
], Commission.prototype, "clientCommission", 2);
|
|
5970
6025
|
Commission = __decorateClass([
|
|
5971
|
-
|
|
6026
|
+
Entity54("commissions")
|
|
5972
6027
|
], Commission);
|
|
5973
6028
|
export {
|
|
5974
6029
|
ADMIN_FREELANCER_PATTERN,
|
|
5975
6030
|
ADMIN_JOB_PATTERN,
|
|
5976
6031
|
ADMIN_PERMISSION_PATTERN,
|
|
5977
6032
|
ADMIN_ROLE_PATTERN,
|
|
5978
|
-
AIInterview,
|
|
5979
|
-
AIInterviewResultEnum,
|
|
5980
|
-
AIInterviewStatusEnum,
|
|
5981
|
-
AIInterviewTypeEnum,
|
|
5982
6033
|
ASSESSMENT_QUESTION_PATTERN,
|
|
5983
6034
|
AUTHENTICATION_PATTERN,
|
|
5984
6035
|
AccountStatus,
|
|
@@ -5990,6 +6041,8 @@ export {
|
|
|
5990
6041
|
AdminUpdateJobInformationDto,
|
|
5991
6042
|
AdminUserRole,
|
|
5992
6043
|
AiAssessmentStatusEnum,
|
|
6044
|
+
AiInterview,
|
|
6045
|
+
AiInterviewStatusEnum,
|
|
5993
6046
|
AnswerTypeEnum,
|
|
5994
6047
|
ApplicationStatusEnum,
|
|
5995
6048
|
AssessmentAnswer,
|