@experts_hub/shared 1.0.331 → 1.0.332
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/f2f-interview.entity.d.ts +21 -8
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +56 -43
- package/dist/index.d.ts +56 -43
- package/dist/index.js +471 -440
- package/dist/index.mjs +539 -512
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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 Entity19,
|
|
2120
|
+
Column as Column20,
|
|
2121
|
+
Index as Index14,
|
|
2122
|
+
ManyToOne as ManyToOne17,
|
|
2123
|
+
JoinColumn as JoinColumn17,
|
|
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 Entity17,
|
|
2271
|
+
Column as Column18,
|
|
2272
|
+
Index as Index12,
|
|
2273
|
+
ManyToOne as ManyToOne15,
|
|
2274
|
+
JoinColumn as JoinColumn15,
|
|
2275
2275
|
OneToMany as OneToMany5
|
|
2276
2276
|
} from "typeorm";
|
|
2277
2277
|
|
|
@@ -2479,6 +2479,160 @@ AiInterview = __decorateClass([
|
|
|
2479
2479
|
Entity14("ai_interviews")
|
|
2480
2480
|
], AiInterview);
|
|
2481
2481
|
|
|
2482
|
+
// src/entities/f2f-interview.entity.ts
|
|
2483
|
+
import {
|
|
2484
|
+
Entity as Entity16,
|
|
2485
|
+
Column as Column17,
|
|
2486
|
+
ManyToOne as ManyToOne14,
|
|
2487
|
+
JoinColumn as JoinColumn14,
|
|
2488
|
+
OneToOne as OneToOne2
|
|
2489
|
+
} from "typeorm";
|
|
2490
|
+
|
|
2491
|
+
// src/entities/calendly-meeting.entity.ts
|
|
2492
|
+
import {
|
|
2493
|
+
Entity as Entity15,
|
|
2494
|
+
Column as Column16,
|
|
2495
|
+
Index as Index11,
|
|
2496
|
+
Unique,
|
|
2497
|
+
OneToOne
|
|
2498
|
+
} from "typeorm";
|
|
2499
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus3) => {
|
|
2500
|
+
CalendlyMeetingStatus3["PENDING"] = "PENDING";
|
|
2501
|
+
CalendlyMeetingStatus3["CONFIRMED"] = "CONFIRMED";
|
|
2502
|
+
CalendlyMeetingStatus3["CANCELED"] = "CANCELED";
|
|
2503
|
+
CalendlyMeetingStatus3["COMPLETED"] = "COMPLETED";
|
|
2504
|
+
return CalendlyMeetingStatus3;
|
|
2505
|
+
})(CalendlyMeetingStatus || {});
|
|
2506
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
2507
|
+
};
|
|
2508
|
+
__decorateClass([
|
|
2509
|
+
OneToOne(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
2510
|
+
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
2511
|
+
__decorateClass([
|
|
2512
|
+
Column16({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
2513
|
+
Index11()
|
|
2514
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
2515
|
+
__decorateClass([
|
|
2516
|
+
Column16({ name: "event_name", type: "varchar", nullable: false })
|
|
2517
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
2518
|
+
__decorateClass([
|
|
2519
|
+
Column16({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
2520
|
+
Index11()
|
|
2521
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
2522
|
+
__decorateClass([
|
|
2523
|
+
Column16({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
2524
|
+
Index11()
|
|
2525
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
2526
|
+
__decorateClass([
|
|
2527
|
+
Column16({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
2528
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
2529
|
+
__decorateClass([
|
|
2530
|
+
Column16({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
2531
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
2532
|
+
CalendlyMeeting = __decorateClass([
|
|
2533
|
+
Entity15("calendly_meetings"),
|
|
2534
|
+
Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
2535
|
+
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2536
|
+
], CalendlyMeeting);
|
|
2537
|
+
|
|
2538
|
+
// src/entities/f2f-interview.entity.ts
|
|
2539
|
+
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2540
|
+
F2fInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2541
|
+
F2fInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2542
|
+
F2fInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2543
|
+
F2fInterviewStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2544
|
+
F2fInterviewStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2545
|
+
F2fInterviewStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2546
|
+
F2fInterviewStatusEnum2["EXITED"] = "EXITED";
|
|
2547
|
+
return F2fInterviewStatusEnum2;
|
|
2548
|
+
})(F2fInterviewStatusEnum || {});
|
|
2549
|
+
var F2FInterview = class extends BaseEntity {
|
|
2550
|
+
};
|
|
2551
|
+
__decorateClass([
|
|
2552
|
+
Column17({ name: "unique_id", type: "varchar", nullable: true, unique: true })
|
|
2553
|
+
], F2FInterview.prototype, "uniqueId", 2);
|
|
2554
|
+
__decorateClass([
|
|
2555
|
+
Column17({ name: "interview_id", type: "integer", nullable: true })
|
|
2556
|
+
], F2FInterview.prototype, "interviewId", 2);
|
|
2557
|
+
__decorateClass([
|
|
2558
|
+
ManyToOne14(() => Interview, (interview) => interview.aiInterviews),
|
|
2559
|
+
JoinColumn14({ name: "interview_id" })
|
|
2560
|
+
], F2FInterview.prototype, "interview", 2);
|
|
2561
|
+
__decorateClass([
|
|
2562
|
+
Column17({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2563
|
+
], F2FInterview.prototype, "interviwerId", 2);
|
|
2564
|
+
__decorateClass([
|
|
2565
|
+
ManyToOne14(() => User, (user) => user.clientF2FInterviews),
|
|
2566
|
+
JoinColumn14({ name: "interviwer_id" })
|
|
2567
|
+
], F2FInterview.prototype, "interviwer", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
Column17({ name: "candidate_id", type: "integer", nullable: true })
|
|
2570
|
+
], F2FInterview.prototype, "candidateId", 2);
|
|
2571
|
+
__decorateClass([
|
|
2572
|
+
ManyToOne14(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2573
|
+
JoinColumn14({ name: "candidate_id" })
|
|
2574
|
+
], F2FInterview.prototype, "candidate", 2);
|
|
2575
|
+
__decorateClass([
|
|
2576
|
+
Column17({ name: "invitee_email", type: "varchar", nullable: false })
|
|
2577
|
+
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
2578
|
+
__decorateClass([
|
|
2579
|
+
Column17({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2580
|
+
], F2FInterview.prototype, "inviteeName", 2);
|
|
2581
|
+
__decorateClass([
|
|
2582
|
+
Column17({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2583
|
+
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2584
|
+
__decorateClass([
|
|
2585
|
+
Column17({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2586
|
+
], F2FInterview.prototype, "meetingId", 2);
|
|
2587
|
+
__decorateClass([
|
|
2588
|
+
Column17({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2589
|
+
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2590
|
+
__decorateClass([
|
|
2591
|
+
Column17({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2592
|
+
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2593
|
+
__decorateClass([
|
|
2594
|
+
Column17({ name: "event_name", type: "varchar", nullable: false })
|
|
2595
|
+
], F2FInterview.prototype, "eventName", 2);
|
|
2596
|
+
__decorateClass([
|
|
2597
|
+
Column17({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2598
|
+
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2599
|
+
__decorateClass([
|
|
2600
|
+
Column17({
|
|
2601
|
+
name: "status",
|
|
2602
|
+
type: "enum",
|
|
2603
|
+
enum: F2fInterviewStatusEnum,
|
|
2604
|
+
default: "ACTIVE" /* ACTIVE */
|
|
2605
|
+
})
|
|
2606
|
+
], F2FInterview.prototype, "status", 2);
|
|
2607
|
+
__decorateClass([
|
|
2608
|
+
Column17({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2609
|
+
], F2FInterview.prototype, "cancelledAt", 2);
|
|
2610
|
+
__decorateClass([
|
|
2611
|
+
Column17({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2612
|
+
], F2FInterview.prototype, "cancelReason", 2);
|
|
2613
|
+
__decorateClass([
|
|
2614
|
+
Column17({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2615
|
+
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
2616
|
+
__decorateClass([
|
|
2617
|
+
Column17({ name: "is_completed", type: "boolean", default: false })
|
|
2618
|
+
], F2FInterview.prototype, "isCompleted", 2);
|
|
2619
|
+
__decorateClass([
|
|
2620
|
+
Column17({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2621
|
+
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2622
|
+
__decorateClass([
|
|
2623
|
+
Column17({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
2624
|
+
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2625
|
+
__decorateClass([
|
|
2626
|
+
Column17({ name: "calendly_meeting_id", type: "integer" })
|
|
2627
|
+
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2628
|
+
__decorateClass([
|
|
2629
|
+
OneToOne2(() => CalendlyMeeting),
|
|
2630
|
+
JoinColumn14({ name: "calendly_meeting_id" })
|
|
2631
|
+
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2632
|
+
F2FInterview = __decorateClass([
|
|
2633
|
+
Entity16("f2f_interviews")
|
|
2634
|
+
], F2FInterview);
|
|
2635
|
+
|
|
2482
2636
|
// src/entities/interview.entity.ts
|
|
2483
2637
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2484
2638
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2491,44 +2645,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2491
2645
|
var Interview = class extends BaseEntity {
|
|
2492
2646
|
};
|
|
2493
2647
|
__decorateClass([
|
|
2494
|
-
|
|
2648
|
+
Column18({
|
|
2495
2649
|
name: "interview_id",
|
|
2496
2650
|
type: "varchar",
|
|
2497
2651
|
unique: true,
|
|
2498
2652
|
nullable: true
|
|
2499
2653
|
}),
|
|
2500
|
-
|
|
2654
|
+
Index12()
|
|
2501
2655
|
], Interview.prototype, "interviewId", 2);
|
|
2502
2656
|
__decorateClass([
|
|
2503
|
-
|
|
2504
|
-
|
|
2657
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2658
|
+
Index12()
|
|
2505
2659
|
], Interview.prototype, "userId", 2);
|
|
2506
2660
|
__decorateClass([
|
|
2507
|
-
|
|
2508
|
-
|
|
2661
|
+
ManyToOne15(() => User, (user) => user.interviews),
|
|
2662
|
+
JoinColumn15({ name: "user_id" })
|
|
2509
2663
|
], Interview.prototype, "user", 2);
|
|
2510
2664
|
__decorateClass([
|
|
2511
|
-
|
|
2665
|
+
Column18({ name: "interview_name", type: "varchar", nullable: true })
|
|
2512
2666
|
], Interview.prototype, "interviewName", 2);
|
|
2513
2667
|
__decorateClass([
|
|
2514
|
-
|
|
2515
|
-
|
|
2668
|
+
Column18({ name: "job_id", type: "integer" }),
|
|
2669
|
+
Index12()
|
|
2516
2670
|
], Interview.prototype, "jobId", 2);
|
|
2517
2671
|
__decorateClass([
|
|
2518
|
-
|
|
2519
|
-
|
|
2672
|
+
ManyToOne15(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2673
|
+
JoinColumn15({ name: "job_id" })
|
|
2520
2674
|
], Interview.prototype, "job", 2);
|
|
2521
2675
|
__decorateClass([
|
|
2522
|
-
|
|
2676
|
+
Column18({ name: "interview_type", type: "varchar", nullable: true })
|
|
2523
2677
|
], Interview.prototype, "interviewType", 2);
|
|
2524
2678
|
__decorateClass([
|
|
2525
|
-
|
|
2679
|
+
Column18({ name: "interview_language", type: "varchar", nullable: true })
|
|
2526
2680
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2527
2681
|
__decorateClass([
|
|
2528
|
-
|
|
2682
|
+
Column18({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2529
2683
|
], Interview.prototype, "allowProctoring", 2);
|
|
2530
2684
|
__decorateClass([
|
|
2531
|
-
|
|
2685
|
+
Column18({
|
|
2532
2686
|
name: "status",
|
|
2533
2687
|
type: "enum",
|
|
2534
2688
|
enum: InterviewStatusEnum,
|
|
@@ -2555,48 +2709,51 @@ __decorateClass([
|
|
|
2555
2709
|
__decorateClass([
|
|
2556
2710
|
OneToMany5(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2557
2711
|
], Interview.prototype, "aiInterviews", 2);
|
|
2712
|
+
__decorateClass([
|
|
2713
|
+
OneToMany5(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2714
|
+
], Interview.prototype, "f2fInterviews", 2);
|
|
2558
2715
|
Interview = __decorateClass([
|
|
2559
|
-
|
|
2716
|
+
Entity17("interviews")
|
|
2560
2717
|
], Interview);
|
|
2561
2718
|
|
|
2562
2719
|
// src/entities/job-recommendation.entity.ts
|
|
2563
|
-
import { Entity as
|
|
2720
|
+
import { Entity as Entity18, Column as Column19, Index as Index13, ManyToOne as ManyToOne16, JoinColumn as JoinColumn16, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2564
2721
|
var JobRecommendation = class {
|
|
2565
2722
|
};
|
|
2566
2723
|
__decorateClass([
|
|
2567
2724
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2568
2725
|
], JobRecommendation.prototype, "id", 2);
|
|
2569
2726
|
__decorateClass([
|
|
2570
|
-
|
|
2571
|
-
|
|
2727
|
+
Column19({ name: "job_id", type: "integer" }),
|
|
2728
|
+
Index13()
|
|
2572
2729
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2573
2730
|
__decorateClass([
|
|
2574
|
-
|
|
2575
|
-
|
|
2731
|
+
ManyToOne16(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2732
|
+
JoinColumn16({ name: "job_id" })
|
|
2576
2733
|
], JobRecommendation.prototype, "job", 2);
|
|
2577
2734
|
__decorateClass([
|
|
2578
|
-
|
|
2579
|
-
|
|
2735
|
+
Column19({ name: "freelancer_id", type: "integer" }),
|
|
2736
|
+
Index13()
|
|
2580
2737
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2581
2738
|
__decorateClass([
|
|
2582
|
-
|
|
2583
|
-
|
|
2739
|
+
Column19({ name: "client_id", type: "integer" }),
|
|
2740
|
+
Index13()
|
|
2584
2741
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2585
2742
|
__decorateClass([
|
|
2586
|
-
|
|
2743
|
+
Column19({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2587
2744
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2588
2745
|
__decorateClass([
|
|
2589
|
-
|
|
2746
|
+
Column19({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2590
2747
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2591
2748
|
__decorateClass([
|
|
2592
|
-
|
|
2749
|
+
Column19({
|
|
2593
2750
|
name: "last_calculated_at",
|
|
2594
2751
|
type: "timestamp with time zone",
|
|
2595
2752
|
nullable: true
|
|
2596
2753
|
})
|
|
2597
2754
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2598
2755
|
JobRecommendation = __decorateClass([
|
|
2599
|
-
|
|
2756
|
+
Entity18("job_recommendations")
|
|
2600
2757
|
], JobRecommendation);
|
|
2601
2758
|
|
|
2602
2759
|
// src/entities/job.entity.ts
|
|
@@ -2636,49 +2793,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2636
2793
|
var Job = class extends BaseEntity {
|
|
2637
2794
|
};
|
|
2638
2795
|
__decorateClass([
|
|
2639
|
-
|
|
2796
|
+
Column20({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2640
2797
|
], Job.prototype, "jobId", 2);
|
|
2641
2798
|
// individual index to find jobs by user
|
|
2642
2799
|
__decorateClass([
|
|
2643
|
-
|
|
2644
|
-
|
|
2800
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2801
|
+
Index14()
|
|
2645
2802
|
], Job.prototype, "userId", 2);
|
|
2646
2803
|
__decorateClass([
|
|
2647
|
-
|
|
2648
|
-
|
|
2804
|
+
ManyToOne17(() => User, (user) => user.jobs),
|
|
2805
|
+
JoinColumn17({ name: "user_id" })
|
|
2649
2806
|
], Job.prototype, "user", 2);
|
|
2650
2807
|
__decorateClass([
|
|
2651
|
-
|
|
2808
|
+
Column20({ name: "country_id", type: "int", nullable: true })
|
|
2652
2809
|
], Job.prototype, "countryId", 2);
|
|
2653
2810
|
__decorateClass([
|
|
2654
|
-
|
|
2655
|
-
|
|
2811
|
+
ManyToOne17(() => Country),
|
|
2812
|
+
JoinColumn17({ name: "country_id" })
|
|
2656
2813
|
], Job.prototype, "country", 2);
|
|
2657
2814
|
__decorateClass([
|
|
2658
|
-
|
|
2815
|
+
Column20({ name: "state_id", type: "int", nullable: true })
|
|
2659
2816
|
], Job.prototype, "stateId", 2);
|
|
2660
2817
|
__decorateClass([
|
|
2661
|
-
|
|
2662
|
-
|
|
2818
|
+
ManyToOne17(() => State),
|
|
2819
|
+
JoinColumn17({ name: "state_id" })
|
|
2663
2820
|
], Job.prototype, "state", 2);
|
|
2664
2821
|
__decorateClass([
|
|
2665
|
-
|
|
2822
|
+
Column20({ name: "city_id", type: "int", nullable: true })
|
|
2666
2823
|
], Job.prototype, "cityId", 2);
|
|
2667
2824
|
__decorateClass([
|
|
2668
|
-
|
|
2669
|
-
|
|
2825
|
+
ManyToOne17(() => City),
|
|
2826
|
+
JoinColumn17({ name: "city_id" })
|
|
2670
2827
|
], Job.prototype, "city", 2);
|
|
2671
2828
|
__decorateClass([
|
|
2672
|
-
|
|
2829
|
+
Column20({ name: "job_role", type: "varchar", nullable: true })
|
|
2673
2830
|
], Job.prototype, "jobRole", 2);
|
|
2674
2831
|
__decorateClass([
|
|
2675
|
-
|
|
2832
|
+
Column20({ name: "note", type: "varchar", nullable: true })
|
|
2676
2833
|
], Job.prototype, "note", 2);
|
|
2677
2834
|
__decorateClass([
|
|
2678
|
-
|
|
2835
|
+
Column20({ name: "openings", type: "integer", default: 0 })
|
|
2679
2836
|
], Job.prototype, "openings", 2);
|
|
2680
2837
|
__decorateClass([
|
|
2681
|
-
|
|
2838
|
+
Column20({
|
|
2682
2839
|
name: "location",
|
|
2683
2840
|
type: "enum",
|
|
2684
2841
|
enum: JobLocationEnum,
|
|
@@ -2686,7 +2843,7 @@ __decorateClass([
|
|
|
2686
2843
|
})
|
|
2687
2844
|
], Job.prototype, "location", 2);
|
|
2688
2845
|
__decorateClass([
|
|
2689
|
-
|
|
2846
|
+
Column20({
|
|
2690
2847
|
name: "type_of_employment",
|
|
2691
2848
|
type: "enum",
|
|
2692
2849
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2694,19 +2851,19 @@ __decorateClass([
|
|
|
2694
2851
|
})
|
|
2695
2852
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2696
2853
|
__decorateClass([
|
|
2697
|
-
|
|
2854
|
+
Column20({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2698
2855
|
], Job.prototype, "academicQualification", 2);
|
|
2699
2856
|
__decorateClass([
|
|
2700
|
-
|
|
2857
|
+
Column20({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2701
2858
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2702
2859
|
__decorateClass([
|
|
2703
|
-
|
|
2860
|
+
Column20({ name: "business_industry", type: "varchar", nullable: true })
|
|
2704
2861
|
], Job.prototype, "businessIndustry", 2);
|
|
2705
2862
|
__decorateClass([
|
|
2706
|
-
|
|
2863
|
+
Column20({ name: "currency", type: "varchar", default: "USD" })
|
|
2707
2864
|
], Job.prototype, "currency", 2);
|
|
2708
2865
|
__decorateClass([
|
|
2709
|
-
|
|
2866
|
+
Column20({
|
|
2710
2867
|
name: "expected_salary_from",
|
|
2711
2868
|
type: "decimal",
|
|
2712
2869
|
precision: 10,
|
|
@@ -2715,7 +2872,7 @@ __decorateClass([
|
|
|
2715
2872
|
})
|
|
2716
2873
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2717
2874
|
__decorateClass([
|
|
2718
|
-
|
|
2875
|
+
Column20({
|
|
2719
2876
|
name: "expected_salary_to",
|
|
2720
2877
|
type: "decimal",
|
|
2721
2878
|
precision: 10,
|
|
@@ -2724,16 +2881,16 @@ __decorateClass([
|
|
|
2724
2881
|
})
|
|
2725
2882
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2726
2883
|
__decorateClass([
|
|
2727
|
-
|
|
2884
|
+
Column20({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2728
2885
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2729
2886
|
__decorateClass([
|
|
2730
|
-
|
|
2887
|
+
Column20({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2731
2888
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2732
2889
|
__decorateClass([
|
|
2733
|
-
|
|
2890
|
+
Column20({ name: "duration", type: "varchar", nullable: true })
|
|
2734
2891
|
], Job.prototype, "duration", 2);
|
|
2735
2892
|
__decorateClass([
|
|
2736
|
-
|
|
2893
|
+
Column20({
|
|
2737
2894
|
name: "duration_type",
|
|
2738
2895
|
type: "enum",
|
|
2739
2896
|
enum: DurationTypeEnum,
|
|
@@ -2741,13 +2898,13 @@ __decorateClass([
|
|
|
2741
2898
|
})
|
|
2742
2899
|
], Job.prototype, "durationType", 2);
|
|
2743
2900
|
__decorateClass([
|
|
2744
|
-
|
|
2901
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2745
2902
|
], Job.prototype, "description", 2);
|
|
2746
2903
|
__decorateClass([
|
|
2747
|
-
|
|
2904
|
+
Column20({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2748
2905
|
], Job.prototype, "additionalComment", 2);
|
|
2749
2906
|
__decorateClass([
|
|
2750
|
-
|
|
2907
|
+
Column20({
|
|
2751
2908
|
name: "onboarding_tat",
|
|
2752
2909
|
type: "varchar",
|
|
2753
2910
|
length: 50,
|
|
@@ -2755,14 +2912,14 @@ __decorateClass([
|
|
|
2755
2912
|
})
|
|
2756
2913
|
], Job.prototype, "onboardingTat", 2);
|
|
2757
2914
|
__decorateClass([
|
|
2758
|
-
|
|
2915
|
+
Column20({
|
|
2759
2916
|
name: "candidate_communication_skills",
|
|
2760
2917
|
type: "varchar",
|
|
2761
2918
|
nullable: true
|
|
2762
2919
|
})
|
|
2763
2920
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2764
2921
|
__decorateClass([
|
|
2765
|
-
|
|
2922
|
+
Column20({
|
|
2766
2923
|
name: "step_completed",
|
|
2767
2924
|
type: "enum",
|
|
2768
2925
|
enum: Step,
|
|
@@ -2770,7 +2927,7 @@ __decorateClass([
|
|
|
2770
2927
|
})
|
|
2771
2928
|
], Job.prototype, "stepCompleted", 2);
|
|
2772
2929
|
__decorateClass([
|
|
2773
|
-
|
|
2930
|
+
Column20({
|
|
2774
2931
|
name: "status",
|
|
2775
2932
|
type: "enum",
|
|
2776
2933
|
enum: JobStatusEnum,
|
|
@@ -2778,10 +2935,10 @@ __decorateClass([
|
|
|
2778
2935
|
})
|
|
2779
2936
|
], Job.prototype, "status", 2);
|
|
2780
2937
|
__decorateClass([
|
|
2781
|
-
|
|
2938
|
+
Column20({ name: "viewed_count", type: "integer", default: 0 })
|
|
2782
2939
|
], Job.prototype, "viewedCount", 2);
|
|
2783
2940
|
__decorateClass([
|
|
2784
|
-
|
|
2941
|
+
Column20({ name: "application_count", type: "integer", default: 0 })
|
|
2785
2942
|
], Job.prototype, "applicationCount", 2);
|
|
2786
2943
|
__decorateClass([
|
|
2787
2944
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2802,16 +2959,16 @@ __decorateClass([
|
|
|
2802
2959
|
})
|
|
2803
2960
|
], Job.prototype, "recommendations", 2);
|
|
2804
2961
|
Job = __decorateClass([
|
|
2805
|
-
|
|
2962
|
+
Entity19("jobs")
|
|
2806
2963
|
], Job);
|
|
2807
2964
|
|
|
2808
2965
|
// src/entities/bank-details.entity.ts
|
|
2809
2966
|
import {
|
|
2810
|
-
Entity as
|
|
2811
|
-
Column as
|
|
2812
|
-
Index as
|
|
2813
|
-
ManyToOne as
|
|
2814
|
-
JoinColumn as
|
|
2967
|
+
Entity as Entity20,
|
|
2968
|
+
Column as Column21,
|
|
2969
|
+
Index as Index15,
|
|
2970
|
+
ManyToOne as ManyToOne18,
|
|
2971
|
+
JoinColumn as JoinColumn18
|
|
2815
2972
|
} from "typeorm";
|
|
2816
2973
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2817
2974
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2827,48 +2984,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2827
2984
|
};
|
|
2828
2985
|
// individual index to find bank details by user
|
|
2829
2986
|
__decorateClass([
|
|
2830
|
-
|
|
2831
|
-
|
|
2987
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2988
|
+
Index15()
|
|
2832
2989
|
], BankDetail.prototype, "userId", 2);
|
|
2833
2990
|
__decorateClass([
|
|
2834
|
-
|
|
2835
|
-
|
|
2991
|
+
ManyToOne18(() => User, (user) => user.bankDetail),
|
|
2992
|
+
JoinColumn18({ name: "user_id" })
|
|
2836
2993
|
], BankDetail.prototype, "user", 2);
|
|
2837
2994
|
__decorateClass([
|
|
2838
|
-
|
|
2995
|
+
Column21({ name: "name", type: "varchar", nullable: true })
|
|
2839
2996
|
], BankDetail.prototype, "name", 2);
|
|
2840
2997
|
__decorateClass([
|
|
2841
|
-
|
|
2998
|
+
Column21({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2842
2999
|
], BankDetail.prototype, "mobile", 2);
|
|
2843
3000
|
__decorateClass([
|
|
2844
|
-
|
|
3001
|
+
Column21({ name: "email", type: "varchar", unique: true })
|
|
2845
3002
|
], BankDetail.prototype, "email", 2);
|
|
2846
3003
|
__decorateClass([
|
|
2847
|
-
|
|
3004
|
+
Column21({ name: "address", type: "varchar", nullable: true })
|
|
2848
3005
|
], BankDetail.prototype, "address", 2);
|
|
2849
3006
|
__decorateClass([
|
|
2850
|
-
|
|
3007
|
+
Column21({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2851
3008
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2852
3009
|
__decorateClass([
|
|
2853
|
-
|
|
3010
|
+
Column21({ name: "bank_name", type: "varchar", nullable: true })
|
|
2854
3011
|
], BankDetail.prototype, "bankName", 2);
|
|
2855
3012
|
__decorateClass([
|
|
2856
|
-
|
|
3013
|
+
Column21({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2857
3014
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2858
3015
|
__decorateClass([
|
|
2859
|
-
|
|
3016
|
+
Column21({ name: "branch_name", type: "varchar", nullable: true })
|
|
2860
3017
|
], BankDetail.prototype, "branchName", 2);
|
|
2861
3018
|
__decorateClass([
|
|
2862
|
-
|
|
3019
|
+
Column21({ name: "routing_no", type: "varchar", nullable: true })
|
|
2863
3020
|
], BankDetail.prototype, "routingNo", 2);
|
|
2864
3021
|
__decorateClass([
|
|
2865
|
-
|
|
3022
|
+
Column21({ name: "aba_no", type: "varchar", nullable: true })
|
|
2866
3023
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2867
3024
|
__decorateClass([
|
|
2868
|
-
|
|
3025
|
+
Column21({ name: "iban", type: "varchar", nullable: true })
|
|
2869
3026
|
], BankDetail.prototype, "iban", 2);
|
|
2870
3027
|
__decorateClass([
|
|
2871
|
-
|
|
3028
|
+
Column21({
|
|
2872
3029
|
name: "account_type",
|
|
2873
3030
|
type: "enum",
|
|
2874
3031
|
enum: BankAccountTypeEnum,
|
|
@@ -2876,7 +3033,7 @@ __decorateClass([
|
|
|
2876
3033
|
})
|
|
2877
3034
|
], BankDetail.prototype, "accountType", 2);
|
|
2878
3035
|
__decorateClass([
|
|
2879
|
-
|
|
3036
|
+
Column21({
|
|
2880
3037
|
name: "account_scope",
|
|
2881
3038
|
type: "enum",
|
|
2882
3039
|
enum: BankAccountScopeEnum,
|
|
@@ -2884,263 +3041,263 @@ __decorateClass([
|
|
|
2884
3041
|
})
|
|
2885
3042
|
], BankDetail.prototype, "accountScope", 2);
|
|
2886
3043
|
BankDetail = __decorateClass([
|
|
2887
|
-
|
|
3044
|
+
Entity20("bank_details")
|
|
2888
3045
|
], BankDetail);
|
|
2889
3046
|
|
|
2890
3047
|
// src/entities/system-preference.entity.ts
|
|
2891
3048
|
import {
|
|
2892
|
-
Entity as
|
|
2893
|
-
Column as
|
|
2894
|
-
Index as
|
|
2895
|
-
ManyToOne as
|
|
2896
|
-
JoinColumn as
|
|
3049
|
+
Entity as Entity21,
|
|
3050
|
+
Column as Column22,
|
|
3051
|
+
Index as Index16,
|
|
3052
|
+
ManyToOne as ManyToOne19,
|
|
3053
|
+
JoinColumn as JoinColumn19
|
|
2897
3054
|
} from "typeorm";
|
|
2898
3055
|
var SystemPreference = class extends BaseEntity {
|
|
2899
3056
|
};
|
|
2900
3057
|
// individual index to find system preference by user
|
|
2901
3058
|
__decorateClass([
|
|
2902
|
-
|
|
2903
|
-
|
|
3059
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
3060
|
+
Index16()
|
|
2904
3061
|
], SystemPreference.prototype, "userId", 2);
|
|
2905
3062
|
__decorateClass([
|
|
2906
|
-
|
|
2907
|
-
|
|
3063
|
+
ManyToOne19(() => User, (user) => user.systemPreference),
|
|
3064
|
+
JoinColumn19({ name: "user_id" })
|
|
2908
3065
|
], SystemPreference.prototype, "user", 2);
|
|
2909
3066
|
__decorateClass([
|
|
2910
|
-
|
|
3067
|
+
Column22({ name: "key", type: "varchar", nullable: false })
|
|
2911
3068
|
], SystemPreference.prototype, "key", 2);
|
|
2912
3069
|
__decorateClass([
|
|
2913
|
-
|
|
3070
|
+
Column22({ name: "value", type: "boolean", default: false })
|
|
2914
3071
|
], SystemPreference.prototype, "value", 2);
|
|
2915
3072
|
SystemPreference = __decorateClass([
|
|
2916
|
-
|
|
3073
|
+
Entity21("system_preferences")
|
|
2917
3074
|
], SystemPreference);
|
|
2918
3075
|
|
|
2919
3076
|
// src/entities/freelancer-experience.entity.ts
|
|
2920
3077
|
import {
|
|
2921
|
-
Entity as
|
|
2922
|
-
Column as
|
|
2923
|
-
Index as
|
|
2924
|
-
ManyToOne as
|
|
2925
|
-
JoinColumn as
|
|
3078
|
+
Entity as Entity22,
|
|
3079
|
+
Column as Column23,
|
|
3080
|
+
Index as Index17,
|
|
3081
|
+
ManyToOne as ManyToOne20,
|
|
3082
|
+
JoinColumn as JoinColumn20
|
|
2926
3083
|
} from "typeorm";
|
|
2927
3084
|
var FreelancerExperience = class extends BaseEntity {
|
|
2928
3085
|
};
|
|
2929
3086
|
// individual index to find experence by user
|
|
2930
3087
|
__decorateClass([
|
|
2931
|
-
|
|
2932
|
-
|
|
3088
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
3089
|
+
Index17()
|
|
2933
3090
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2934
3091
|
__decorateClass([
|
|
2935
|
-
|
|
2936
|
-
|
|
3092
|
+
ManyToOne20(() => User, (user) => user.freelancerExperience),
|
|
3093
|
+
JoinColumn20({ name: "user_id" })
|
|
2937
3094
|
], FreelancerExperience.prototype, "user", 2);
|
|
2938
3095
|
__decorateClass([
|
|
2939
|
-
|
|
3096
|
+
Column23({ name: "company_name", type: "varchar", nullable: true })
|
|
2940
3097
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2941
3098
|
__decorateClass([
|
|
2942
|
-
|
|
3099
|
+
Column23({ name: "designation", type: "varchar", nullable: true })
|
|
2943
3100
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2944
3101
|
__decorateClass([
|
|
2945
|
-
|
|
3102
|
+
Column23({ name: "job_duration", type: "varchar", nullable: true })
|
|
2946
3103
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2947
3104
|
__decorateClass([
|
|
2948
|
-
|
|
3105
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2949
3106
|
], FreelancerExperience.prototype, "description", 2);
|
|
2950
3107
|
FreelancerExperience = __decorateClass([
|
|
2951
|
-
|
|
3108
|
+
Entity22("freelancer_experiences")
|
|
2952
3109
|
], FreelancerExperience);
|
|
2953
3110
|
|
|
2954
3111
|
// src/entities/freelancer-education.entity.ts
|
|
2955
3112
|
import {
|
|
2956
|
-
Entity as
|
|
2957
|
-
Column as
|
|
2958
|
-
Index as
|
|
2959
|
-
ManyToOne as
|
|
2960
|
-
JoinColumn as
|
|
3113
|
+
Entity as Entity23,
|
|
3114
|
+
Column as Column24,
|
|
3115
|
+
Index as Index18,
|
|
3116
|
+
ManyToOne as ManyToOne21,
|
|
3117
|
+
JoinColumn as JoinColumn21
|
|
2961
3118
|
} from "typeorm";
|
|
2962
3119
|
var FreelancerEducation = class extends BaseEntity {
|
|
2963
3120
|
};
|
|
2964
3121
|
// individual index to find education by user
|
|
2965
3122
|
__decorateClass([
|
|
2966
|
-
|
|
2967
|
-
|
|
3123
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3124
|
+
Index18()
|
|
2968
3125
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2969
3126
|
__decorateClass([
|
|
2970
|
-
|
|
2971
|
-
|
|
3127
|
+
ManyToOne21(() => User, (user) => user.freelancerEducation),
|
|
3128
|
+
JoinColumn21({ name: "user_id" })
|
|
2972
3129
|
], FreelancerEducation.prototype, "user", 2);
|
|
2973
3130
|
__decorateClass([
|
|
2974
|
-
|
|
3131
|
+
Column24({ name: "degree", type: "varchar", nullable: true })
|
|
2975
3132
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2976
3133
|
__decorateClass([
|
|
2977
|
-
|
|
3134
|
+
Column24({ name: "university", type: "varchar", nullable: true })
|
|
2978
3135
|
], FreelancerEducation.prototype, "university", 2);
|
|
2979
3136
|
__decorateClass([
|
|
2980
|
-
|
|
3137
|
+
Column24({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2981
3138
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2982
3139
|
FreelancerEducation = __decorateClass([
|
|
2983
|
-
|
|
3140
|
+
Entity23("freelancer_educations")
|
|
2984
3141
|
], FreelancerEducation);
|
|
2985
3142
|
|
|
2986
3143
|
// src/entities/freelancer-project.entity.ts
|
|
2987
3144
|
import {
|
|
2988
|
-
Entity as
|
|
2989
|
-
Column as
|
|
2990
|
-
Index as
|
|
2991
|
-
ManyToOne as
|
|
2992
|
-
JoinColumn as
|
|
3145
|
+
Entity as Entity24,
|
|
3146
|
+
Column as Column25,
|
|
3147
|
+
Index as Index19,
|
|
3148
|
+
ManyToOne as ManyToOne22,
|
|
3149
|
+
JoinColumn as JoinColumn22
|
|
2993
3150
|
} from "typeorm";
|
|
2994
3151
|
var FreelancerProject = class extends BaseEntity {
|
|
2995
3152
|
};
|
|
2996
3153
|
// individual index to find project by user
|
|
2997
3154
|
__decorateClass([
|
|
2998
|
-
|
|
2999
|
-
|
|
3155
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3156
|
+
Index19()
|
|
3000
3157
|
], FreelancerProject.prototype, "userId", 2);
|
|
3001
3158
|
__decorateClass([
|
|
3002
|
-
|
|
3003
|
-
|
|
3159
|
+
ManyToOne22(() => User, (user) => user.freelancerProject),
|
|
3160
|
+
JoinColumn22({ name: "user_id" })
|
|
3004
3161
|
], FreelancerProject.prototype, "user", 2);
|
|
3005
3162
|
__decorateClass([
|
|
3006
|
-
|
|
3163
|
+
Column25({ name: "project_name", type: "varchar", nullable: true })
|
|
3007
3164
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3008
3165
|
__decorateClass([
|
|
3009
|
-
|
|
3166
|
+
Column25({ name: "start_date", type: "date", nullable: true })
|
|
3010
3167
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3011
3168
|
__decorateClass([
|
|
3012
|
-
|
|
3169
|
+
Column25({ name: "end_date", type: "date", nullable: true })
|
|
3013
3170
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3014
3171
|
__decorateClass([
|
|
3015
|
-
|
|
3172
|
+
Column25({ name: "client_name", type: "varchar", nullable: true })
|
|
3016
3173
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3017
3174
|
__decorateClass([
|
|
3018
|
-
|
|
3175
|
+
Column25({ name: "git_link", type: "varchar", nullable: true })
|
|
3019
3176
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3020
3177
|
__decorateClass([
|
|
3021
|
-
|
|
3178
|
+
Column25({ name: "description", type: "varchar", nullable: true })
|
|
3022
3179
|
], FreelancerProject.prototype, "description", 2);
|
|
3023
3180
|
FreelancerProject = __decorateClass([
|
|
3024
|
-
|
|
3181
|
+
Entity24("freelancer_projects")
|
|
3025
3182
|
], FreelancerProject);
|
|
3026
3183
|
|
|
3027
3184
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3028
3185
|
import {
|
|
3029
|
-
Entity as
|
|
3030
|
-
Column as
|
|
3031
|
-
Index as
|
|
3032
|
-
ManyToOne as
|
|
3033
|
-
JoinColumn as
|
|
3186
|
+
Entity as Entity25,
|
|
3187
|
+
Column as Column26,
|
|
3188
|
+
Index as Index20,
|
|
3189
|
+
ManyToOne as ManyToOne23,
|
|
3190
|
+
JoinColumn as JoinColumn23
|
|
3034
3191
|
} from "typeorm";
|
|
3035
3192
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3036
3193
|
};
|
|
3037
3194
|
// individual index to find case study by user
|
|
3038
3195
|
__decorateClass([
|
|
3039
|
-
|
|
3040
|
-
|
|
3196
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3197
|
+
Index20()
|
|
3041
3198
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3042
3199
|
__decorateClass([
|
|
3043
|
-
|
|
3044
|
-
|
|
3200
|
+
ManyToOne23(() => User, (user) => user.freelancerCaseStudy),
|
|
3201
|
+
JoinColumn23({ name: "user_id" })
|
|
3045
3202
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3046
3203
|
__decorateClass([
|
|
3047
|
-
|
|
3204
|
+
Column26({ name: "project_name", type: "varchar", nullable: true })
|
|
3048
3205
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3049
3206
|
__decorateClass([
|
|
3050
|
-
|
|
3207
|
+
Column26({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3051
3208
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3052
3209
|
__decorateClass([
|
|
3053
|
-
|
|
3210
|
+
Column26({ name: "description", type: "varchar", nullable: true })
|
|
3054
3211
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3055
3212
|
FreelancerCaseStudy = __decorateClass([
|
|
3056
|
-
|
|
3213
|
+
Entity25("freelancer_case_studies")
|
|
3057
3214
|
], FreelancerCaseStudy);
|
|
3058
3215
|
|
|
3059
3216
|
// src/entities/freelancer-skill.entity.ts
|
|
3060
3217
|
import {
|
|
3061
|
-
Entity as
|
|
3062
|
-
Column as
|
|
3063
|
-
Index as
|
|
3064
|
-
ManyToOne as
|
|
3065
|
-
JoinColumn as
|
|
3218
|
+
Entity as Entity26,
|
|
3219
|
+
Column as Column27,
|
|
3220
|
+
Index as Index21,
|
|
3221
|
+
ManyToOne as ManyToOne24,
|
|
3222
|
+
JoinColumn as JoinColumn24
|
|
3066
3223
|
} from "typeorm";
|
|
3067
3224
|
var FreelancerSkill = class extends BaseEntity {
|
|
3068
3225
|
};
|
|
3069
3226
|
// individual index to find core skills by user
|
|
3070
3227
|
__decorateClass([
|
|
3071
|
-
|
|
3072
|
-
|
|
3228
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3229
|
+
Index21()
|
|
3073
3230
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3074
3231
|
__decorateClass([
|
|
3075
|
-
|
|
3076
|
-
|
|
3232
|
+
ManyToOne24(() => User, (user) => user.freelancerSkills),
|
|
3233
|
+
JoinColumn24({ name: "user_id" })
|
|
3077
3234
|
], FreelancerSkill.prototype, "user", 2);
|
|
3078
3235
|
__decorateClass([
|
|
3079
|
-
|
|
3236
|
+
Column27({ name: "skill_name", type: "varchar", nullable: true })
|
|
3080
3237
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3081
3238
|
FreelancerSkill = __decorateClass([
|
|
3082
|
-
|
|
3239
|
+
Entity26("freelancer_skills")
|
|
3083
3240
|
], FreelancerSkill);
|
|
3084
3241
|
|
|
3085
3242
|
// src/entities/freelancer-tool.entity.ts
|
|
3086
3243
|
import {
|
|
3087
|
-
Entity as
|
|
3088
|
-
Column as
|
|
3089
|
-
Index as
|
|
3090
|
-
ManyToOne as
|
|
3091
|
-
JoinColumn as
|
|
3244
|
+
Entity as Entity27,
|
|
3245
|
+
Column as Column28,
|
|
3246
|
+
Index as Index22,
|
|
3247
|
+
ManyToOne as ManyToOne25,
|
|
3248
|
+
JoinColumn as JoinColumn25
|
|
3092
3249
|
} from "typeorm";
|
|
3093
3250
|
var FreelancerTool = class extends BaseEntity {
|
|
3094
3251
|
};
|
|
3095
3252
|
// individual index to find tool by user
|
|
3096
3253
|
__decorateClass([
|
|
3097
|
-
|
|
3098
|
-
|
|
3254
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3255
|
+
Index22()
|
|
3099
3256
|
], FreelancerTool.prototype, "userId", 2);
|
|
3100
3257
|
__decorateClass([
|
|
3101
|
-
|
|
3102
|
-
|
|
3258
|
+
ManyToOne25(() => User, (user) => user.freelancerTool),
|
|
3259
|
+
JoinColumn25({ name: "user_id" })
|
|
3103
3260
|
], FreelancerTool.prototype, "user", 2);
|
|
3104
3261
|
__decorateClass([
|
|
3105
|
-
|
|
3262
|
+
Column28({ name: "tool_name", type: "varchar", nullable: true })
|
|
3106
3263
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3107
3264
|
FreelancerTool = __decorateClass([
|
|
3108
|
-
|
|
3265
|
+
Entity27("freelancer_tools")
|
|
3109
3266
|
], FreelancerTool);
|
|
3110
3267
|
|
|
3111
3268
|
// src/entities/freelancer-framework.entity.ts
|
|
3112
3269
|
import {
|
|
3113
|
-
Entity as
|
|
3114
|
-
Column as
|
|
3115
|
-
Index as
|
|
3116
|
-
ManyToOne as
|
|
3117
|
-
JoinColumn as
|
|
3270
|
+
Entity as Entity28,
|
|
3271
|
+
Column as Column29,
|
|
3272
|
+
Index as Index23,
|
|
3273
|
+
ManyToOne as ManyToOne26,
|
|
3274
|
+
JoinColumn as JoinColumn26
|
|
3118
3275
|
} from "typeorm";
|
|
3119
3276
|
var FreelancerFramework = class extends BaseEntity {
|
|
3120
3277
|
};
|
|
3121
3278
|
// individual index to find framework by user
|
|
3122
3279
|
__decorateClass([
|
|
3123
|
-
|
|
3124
|
-
|
|
3280
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3281
|
+
Index23()
|
|
3125
3282
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3126
3283
|
__decorateClass([
|
|
3127
|
-
|
|
3128
|
-
|
|
3284
|
+
ManyToOne26(() => User, (user) => user.freelancerFramework),
|
|
3285
|
+
JoinColumn26({ name: "user_id" })
|
|
3129
3286
|
], FreelancerFramework.prototype, "user", 2);
|
|
3130
3287
|
__decorateClass([
|
|
3131
|
-
|
|
3288
|
+
Column29({ name: "framework_name", type: "varchar", nullable: true })
|
|
3132
3289
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3133
3290
|
FreelancerFramework = __decorateClass([
|
|
3134
|
-
|
|
3291
|
+
Entity28("freelancer_frameworks")
|
|
3135
3292
|
], FreelancerFramework);
|
|
3136
3293
|
|
|
3137
3294
|
// src/entities/freelancer-assessment.entity.ts
|
|
3138
3295
|
import {
|
|
3139
|
-
Entity as
|
|
3140
|
-
Column as
|
|
3141
|
-
Index as
|
|
3142
|
-
ManyToOne as
|
|
3143
|
-
JoinColumn as
|
|
3296
|
+
Entity as Entity29,
|
|
3297
|
+
Column as Column30,
|
|
3298
|
+
Index as Index24,
|
|
3299
|
+
ManyToOne as ManyToOne27,
|
|
3300
|
+
JoinColumn as JoinColumn27
|
|
3144
3301
|
} from "typeorm";
|
|
3145
3302
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3146
3303
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3157,30 +3314,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3157
3314
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3158
3315
|
};
|
|
3159
3316
|
__decorateClass([
|
|
3160
|
-
|
|
3161
|
-
|
|
3317
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3318
|
+
Index24()
|
|
3162
3319
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3163
3320
|
__decorateClass([
|
|
3164
|
-
|
|
3165
|
-
|
|
3321
|
+
ManyToOne27(() => User, (user) => user.assessments),
|
|
3322
|
+
JoinColumn27({ name: "user_id" })
|
|
3166
3323
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3167
3324
|
__decorateClass([
|
|
3168
|
-
|
|
3325
|
+
Column30({ name: "interview_id", type: "varchar", nullable: true })
|
|
3169
3326
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3170
3327
|
__decorateClass([
|
|
3171
|
-
|
|
3328
|
+
Column30({ name: "interview_link", type: "text", nullable: true })
|
|
3172
3329
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3173
3330
|
__decorateClass([
|
|
3174
|
-
|
|
3331
|
+
Column30({ name: "recording_link", type: "text", nullable: true })
|
|
3175
3332
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3176
3333
|
__decorateClass([
|
|
3177
|
-
|
|
3334
|
+
Column30({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3178
3335
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3179
3336
|
__decorateClass([
|
|
3180
|
-
|
|
3337
|
+
Column30({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3181
3338
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3182
3339
|
__decorateClass([
|
|
3183
|
-
|
|
3340
|
+
Column30({
|
|
3184
3341
|
name: "status",
|
|
3185
3342
|
type: "enum",
|
|
3186
3343
|
enum: AssessmentStatusEnum,
|
|
@@ -3188,16 +3345,16 @@ __decorateClass([
|
|
|
3188
3345
|
})
|
|
3189
3346
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3190
3347
|
FreelancerAssessment = __decorateClass([
|
|
3191
|
-
|
|
3348
|
+
Entity29("freelancer_assessments")
|
|
3192
3349
|
], FreelancerAssessment);
|
|
3193
3350
|
|
|
3194
3351
|
// src/entities/freelancer-declaration.entity.ts
|
|
3195
3352
|
import {
|
|
3196
|
-
Entity as
|
|
3197
|
-
Column as
|
|
3198
|
-
Index as
|
|
3199
|
-
ManyToOne as
|
|
3200
|
-
JoinColumn as
|
|
3353
|
+
Entity as Entity30,
|
|
3354
|
+
Column as Column31,
|
|
3355
|
+
Index as Index25,
|
|
3356
|
+
ManyToOne as ManyToOne28,
|
|
3357
|
+
JoinColumn as JoinColumn28
|
|
3201
3358
|
} from "typeorm";
|
|
3202
3359
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3203
3360
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3210,15 +3367,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3210
3367
|
};
|
|
3211
3368
|
// individual index to find declaration by user
|
|
3212
3369
|
__decorateClass([
|
|
3213
|
-
|
|
3214
|
-
|
|
3370
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3371
|
+
Index25()
|
|
3215
3372
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3216
3373
|
__decorateClass([
|
|
3217
|
-
|
|
3218
|
-
|
|
3374
|
+
ManyToOne28(() => User, (user) => user.freelancerDeclaration),
|
|
3375
|
+
JoinColumn28({ name: "user_id" })
|
|
3219
3376
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3220
3377
|
__decorateClass([
|
|
3221
|
-
|
|
3378
|
+
Column31({
|
|
3222
3379
|
name: "document_type",
|
|
3223
3380
|
type: "enum",
|
|
3224
3381
|
enum: DocumentType,
|
|
@@ -3226,175 +3383,175 @@ __decorateClass([
|
|
|
3226
3383
|
})
|
|
3227
3384
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3228
3385
|
__decorateClass([
|
|
3229
|
-
|
|
3386
|
+
Column31({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3230
3387
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3231
3388
|
__decorateClass([
|
|
3232
|
-
|
|
3389
|
+
Column31({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3233
3390
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3234
3391
|
__decorateClass([
|
|
3235
|
-
|
|
3392
|
+
Column31({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3236
3393
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3237
3394
|
__decorateClass([
|
|
3238
|
-
|
|
3395
|
+
Column31({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3239
3396
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3240
3397
|
FreelancerDeclaration = __decorateClass([
|
|
3241
|
-
|
|
3398
|
+
Entity30("freelancer_declaration")
|
|
3242
3399
|
], FreelancerDeclaration);
|
|
3243
3400
|
|
|
3244
3401
|
// src/entities/company-members-roles.entity.ts
|
|
3245
3402
|
import {
|
|
3246
|
-
Column as
|
|
3247
|
-
Entity as
|
|
3248
|
-
ManyToOne as
|
|
3249
|
-
JoinColumn as
|
|
3250
|
-
Index as
|
|
3403
|
+
Column as Column35,
|
|
3404
|
+
Entity as Entity34,
|
|
3405
|
+
ManyToOne as ManyToOne31,
|
|
3406
|
+
JoinColumn as JoinColumn31,
|
|
3407
|
+
Index as Index29
|
|
3251
3408
|
} from "typeorm";
|
|
3252
3409
|
|
|
3253
3410
|
// src/entities/company-role.entity.ts
|
|
3254
3411
|
import {
|
|
3255
|
-
Column as
|
|
3256
|
-
Entity as
|
|
3257
|
-
Index as
|
|
3258
|
-
JoinColumn as
|
|
3259
|
-
ManyToOne as
|
|
3412
|
+
Column as Column34,
|
|
3413
|
+
Entity as Entity33,
|
|
3414
|
+
Index as Index28,
|
|
3415
|
+
JoinColumn as JoinColumn30,
|
|
3416
|
+
ManyToOne as ManyToOne30,
|
|
3260
3417
|
OneToMany as OneToMany8
|
|
3261
3418
|
} from "typeorm";
|
|
3262
3419
|
|
|
3263
3420
|
// src/entities/company-role-permission.entity.ts
|
|
3264
3421
|
import {
|
|
3265
|
-
Column as
|
|
3266
|
-
Entity as
|
|
3267
|
-
ManyToOne as
|
|
3268
|
-
JoinColumn as
|
|
3269
|
-
Index as
|
|
3422
|
+
Column as Column33,
|
|
3423
|
+
Entity as Entity32,
|
|
3424
|
+
ManyToOne as ManyToOne29,
|
|
3425
|
+
JoinColumn as JoinColumn29,
|
|
3426
|
+
Index as Index27
|
|
3270
3427
|
} from "typeorm";
|
|
3271
3428
|
|
|
3272
3429
|
// src/entities/permission.entity.ts
|
|
3273
|
-
import { Column as
|
|
3430
|
+
import { Column as Column32, Entity as Entity31, Index as Index26 } from "typeorm";
|
|
3274
3431
|
var Permission = class extends BaseEntity {
|
|
3275
3432
|
};
|
|
3276
3433
|
__decorateClass([
|
|
3277
|
-
|
|
3434
|
+
Column32({ name: "name", type: "varchar", nullable: true })
|
|
3278
3435
|
], Permission.prototype, "name", 2);
|
|
3279
3436
|
__decorateClass([
|
|
3280
|
-
|
|
3281
|
-
|
|
3437
|
+
Column32({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3438
|
+
Index26()
|
|
3282
3439
|
], Permission.prototype, "slug", 2);
|
|
3283
3440
|
__decorateClass([
|
|
3284
|
-
|
|
3441
|
+
Column32({ name: "description", type: "text", nullable: true })
|
|
3285
3442
|
], Permission.prototype, "description", 2);
|
|
3286
3443
|
__decorateClass([
|
|
3287
|
-
|
|
3444
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
3288
3445
|
], Permission.prototype, "isActive", 2);
|
|
3289
3446
|
Permission = __decorateClass([
|
|
3290
|
-
|
|
3447
|
+
Entity31("permissions")
|
|
3291
3448
|
], Permission);
|
|
3292
3449
|
|
|
3293
3450
|
// src/entities/company-role-permission.entity.ts
|
|
3294
3451
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3295
3452
|
};
|
|
3296
3453
|
__decorateClass([
|
|
3297
|
-
|
|
3298
|
-
|
|
3454
|
+
Column33({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3455
|
+
Index27()
|
|
3299
3456
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3300
3457
|
__decorateClass([
|
|
3301
|
-
|
|
3458
|
+
ManyToOne29(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3302
3459
|
onDelete: "CASCADE"
|
|
3303
3460
|
}),
|
|
3304
|
-
|
|
3461
|
+
JoinColumn29({ name: "company_role_id" })
|
|
3305
3462
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3306
3463
|
__decorateClass([
|
|
3307
|
-
|
|
3308
|
-
|
|
3464
|
+
Column33({ name: "permission_id", type: "integer" }),
|
|
3465
|
+
Index27()
|
|
3309
3466
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3310
3467
|
__decorateClass([
|
|
3311
|
-
|
|
3312
|
-
|
|
3468
|
+
ManyToOne29(() => Permission, { onDelete: "CASCADE" }),
|
|
3469
|
+
JoinColumn29({ name: "permission_id" })
|
|
3313
3470
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3314
3471
|
__decorateClass([
|
|
3315
|
-
|
|
3472
|
+
Column33({ name: "assigned_by", type: "integer", nullable: true })
|
|
3316
3473
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3317
3474
|
CompanyRolePermission = __decorateClass([
|
|
3318
|
-
|
|
3475
|
+
Entity32("company_role_permissions")
|
|
3319
3476
|
], CompanyRolePermission);
|
|
3320
3477
|
|
|
3321
3478
|
// src/entities/company-role.entity.ts
|
|
3322
3479
|
var CompanyRole = class extends BaseEntity {
|
|
3323
3480
|
};
|
|
3324
3481
|
__decorateClass([
|
|
3325
|
-
|
|
3326
|
-
|
|
3482
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
3483
|
+
Index28()
|
|
3327
3484
|
], CompanyRole.prototype, "userId", 2);
|
|
3328
3485
|
__decorateClass([
|
|
3329
|
-
|
|
3330
|
-
|
|
3486
|
+
ManyToOne30(() => User, (user) => user.otps),
|
|
3487
|
+
JoinColumn30({ name: "user_id" })
|
|
3331
3488
|
], CompanyRole.prototype, "user", 2);
|
|
3332
3489
|
__decorateClass([
|
|
3333
|
-
|
|
3490
|
+
Column34({ name: "name", type: "varchar" })
|
|
3334
3491
|
], CompanyRole.prototype, "name", 2);
|
|
3335
3492
|
__decorateClass([
|
|
3336
|
-
|
|
3337
|
-
|
|
3493
|
+
Column34({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3494
|
+
Index28()
|
|
3338
3495
|
], CompanyRole.prototype, "slug", 2);
|
|
3339
3496
|
__decorateClass([
|
|
3340
|
-
|
|
3497
|
+
Column34({ name: "description", type: "text", nullable: true })
|
|
3341
3498
|
], CompanyRole.prototype, "description", 2);
|
|
3342
3499
|
__decorateClass([
|
|
3343
|
-
|
|
3500
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3344
3501
|
], CompanyRole.prototype, "isActive", 2);
|
|
3345
3502
|
__decorateClass([
|
|
3346
3503
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3347
3504
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3348
3505
|
CompanyRole = __decorateClass([
|
|
3349
|
-
|
|
3506
|
+
Entity33("company_roles")
|
|
3350
3507
|
], CompanyRole);
|
|
3351
3508
|
|
|
3352
3509
|
// src/entities/company-members-roles.entity.ts
|
|
3353
3510
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3354
3511
|
};
|
|
3355
3512
|
__decorateClass([
|
|
3356
|
-
|
|
3357
|
-
|
|
3513
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3514
|
+
Index29()
|
|
3358
3515
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3359
3516
|
__decorateClass([
|
|
3360
|
-
|
|
3361
|
-
|
|
3517
|
+
ManyToOne31(() => User),
|
|
3518
|
+
JoinColumn31({ name: "user_id" })
|
|
3362
3519
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3363
3520
|
__decorateClass([
|
|
3364
|
-
|
|
3365
|
-
|
|
3521
|
+
ManyToOne31(() => CompanyRole),
|
|
3522
|
+
JoinColumn31({ name: "company_role_id" })
|
|
3366
3523
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3367
3524
|
__decorateClass([
|
|
3368
|
-
|
|
3369
|
-
|
|
3525
|
+
Column35({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3526
|
+
Index29()
|
|
3370
3527
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3371
3528
|
__decorateClass([
|
|
3372
|
-
|
|
3529
|
+
Column35({ name: "assigned_by", type: "integer", nullable: true })
|
|
3373
3530
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3374
3531
|
CompanyMemberRole = __decorateClass([
|
|
3375
|
-
|
|
3532
|
+
Entity34("company_member_roles")
|
|
3376
3533
|
], CompanyMemberRole);
|
|
3377
3534
|
|
|
3378
3535
|
// src/entities/assessment-answer.entity.ts
|
|
3379
3536
|
import {
|
|
3380
|
-
Entity as
|
|
3381
|
-
Column as
|
|
3382
|
-
ManyToOne as
|
|
3383
|
-
Index as
|
|
3384
|
-
JoinColumn as
|
|
3537
|
+
Entity as Entity37,
|
|
3538
|
+
Column as Column38,
|
|
3539
|
+
ManyToOne as ManyToOne33,
|
|
3540
|
+
Index as Index31,
|
|
3541
|
+
JoinColumn as JoinColumn33
|
|
3385
3542
|
} from "typeorm";
|
|
3386
3543
|
|
|
3387
3544
|
// src/entities/assessment-question.entity.ts
|
|
3388
|
-
import { Entity as
|
|
3545
|
+
import { Entity as Entity36, Column as Column37, OneToMany as OneToMany10 } from "typeorm";
|
|
3389
3546
|
|
|
3390
3547
|
// src/entities/assessment-question-option.entity.ts
|
|
3391
3548
|
import {
|
|
3392
|
-
Entity as
|
|
3393
|
-
Column as
|
|
3549
|
+
Entity as Entity35,
|
|
3550
|
+
Column as Column36,
|
|
3394
3551
|
OneToMany as OneToMany9,
|
|
3395
|
-
ManyToOne as
|
|
3396
|
-
Index as
|
|
3397
|
-
JoinColumn as
|
|
3552
|
+
ManyToOne as ManyToOne32,
|
|
3553
|
+
Index as Index30,
|
|
3554
|
+
JoinColumn as JoinColumn32
|
|
3398
3555
|
} from "typeorm";
|
|
3399
3556
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3400
3557
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3405,21 +3562,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3405
3562
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3406
3563
|
};
|
|
3407
3564
|
__decorateClass([
|
|
3408
|
-
|
|
3409
|
-
|
|
3565
|
+
Column36({ name: "question_id", type: "integer", nullable: true }),
|
|
3566
|
+
Index30()
|
|
3410
3567
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3411
3568
|
__decorateClass([
|
|
3412
|
-
|
|
3569
|
+
ManyToOne32(
|
|
3413
3570
|
() => AssessmetQuestion,
|
|
3414
3571
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3415
3572
|
),
|
|
3416
|
-
|
|
3573
|
+
JoinColumn32({ name: "question_id" })
|
|
3417
3574
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3418
3575
|
__decorateClass([
|
|
3419
|
-
|
|
3576
|
+
Column36({ name: "text", type: "varchar", nullable: true })
|
|
3420
3577
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3421
3578
|
__decorateClass([
|
|
3422
|
-
|
|
3579
|
+
Column36({
|
|
3423
3580
|
name: "answer_type",
|
|
3424
3581
|
type: "enum",
|
|
3425
3582
|
enum: AnswerTypeEnum,
|
|
@@ -3427,13 +3584,13 @@ __decorateClass([
|
|
|
3427
3584
|
})
|
|
3428
3585
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3429
3586
|
__decorateClass([
|
|
3430
|
-
|
|
3587
|
+
Column36({ name: "is_active", type: "boolean", default: true })
|
|
3431
3588
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3432
3589
|
__decorateClass([
|
|
3433
3590
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3434
3591
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3435
3592
|
AssessmetQuestionOption = __decorateClass([
|
|
3436
|
-
|
|
3593
|
+
Entity35("assessment_question_options")
|
|
3437
3594
|
], AssessmetQuestionOption);
|
|
3438
3595
|
|
|
3439
3596
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3445,10 +3602,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3445
3602
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3446
3603
|
};
|
|
3447
3604
|
__decorateClass([
|
|
3448
|
-
|
|
3605
|
+
Column37({ name: "text", type: "varchar", nullable: true })
|
|
3449
3606
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3450
3607
|
__decorateClass([
|
|
3451
|
-
|
|
3608
|
+
Column37({
|
|
3452
3609
|
name: "question_for",
|
|
3453
3610
|
type: "enum",
|
|
3454
3611
|
enum: QuestionForEnum,
|
|
@@ -3456,7 +3613,7 @@ __decorateClass([
|
|
|
3456
3613
|
})
|
|
3457
3614
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3458
3615
|
__decorateClass([
|
|
3459
|
-
|
|
3616
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3460
3617
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3461
3618
|
__decorateClass([
|
|
3462
3619
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3465,7 +3622,7 @@ __decorateClass([
|
|
|
3465
3622
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3466
3623
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3467
3624
|
AssessmetQuestion = __decorateClass([
|
|
3468
|
-
|
|
3625
|
+
Entity36("assessment_questions")
|
|
3469
3626
|
], AssessmetQuestion);
|
|
3470
3627
|
|
|
3471
3628
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3478,102 +3635,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3478
3635
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3479
3636
|
};
|
|
3480
3637
|
__decorateClass([
|
|
3481
|
-
|
|
3482
|
-
|
|
3638
|
+
Column38({ name: "user_id", type: "integer" }),
|
|
3639
|
+
Index31()
|
|
3483
3640
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3484
3641
|
__decorateClass([
|
|
3485
|
-
|
|
3486
|
-
|
|
3642
|
+
ManyToOne33(() => User, (user) => user.assessmentAnswers),
|
|
3643
|
+
JoinColumn33({ name: "user_id" })
|
|
3487
3644
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3488
3645
|
__decorateClass([
|
|
3489
|
-
|
|
3490
|
-
|
|
3646
|
+
Column38({ name: "question_id", type: "integer" }),
|
|
3647
|
+
Index31()
|
|
3491
3648
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3492
3649
|
__decorateClass([
|
|
3493
|
-
|
|
3650
|
+
ManyToOne33(
|
|
3494
3651
|
() => AssessmetQuestion,
|
|
3495
3652
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3496
3653
|
),
|
|
3497
|
-
|
|
3654
|
+
JoinColumn33({ name: "question_id" })
|
|
3498
3655
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3499
3656
|
__decorateClass([
|
|
3500
|
-
|
|
3501
|
-
|
|
3657
|
+
Column38({ name: "selected_option_id", type: "integer" }),
|
|
3658
|
+
Index31()
|
|
3502
3659
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3503
3660
|
__decorateClass([
|
|
3504
|
-
|
|
3661
|
+
ManyToOne33(
|
|
3505
3662
|
() => AssessmetQuestionOption,
|
|
3506
3663
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3507
3664
|
),
|
|
3508
|
-
|
|
3665
|
+
JoinColumn33({ name: "selected_option_id" })
|
|
3509
3666
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3510
3667
|
__decorateClass([
|
|
3511
|
-
|
|
3668
|
+
Column38({
|
|
3512
3669
|
name: "selected_answer_type",
|
|
3513
3670
|
type: "enum",
|
|
3514
3671
|
enum: SelectedAnswerTypeEnum
|
|
3515
3672
|
})
|
|
3516
3673
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3517
3674
|
__decorateClass([
|
|
3518
|
-
|
|
3675
|
+
Column38({ name: "score", type: "float" })
|
|
3519
3676
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3520
3677
|
AssessmentAnswer = __decorateClass([
|
|
3521
|
-
|
|
3678
|
+
Entity37("assessment_answers")
|
|
3522
3679
|
], AssessmentAnswer);
|
|
3523
3680
|
|
|
3524
3681
|
// src/entities/company-skill.entity.ts
|
|
3525
|
-
import { Entity as
|
|
3682
|
+
import { Entity as Entity38, Column as Column39, Index as Index32, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34 } from "typeorm";
|
|
3526
3683
|
var CompanySkill = class extends BaseEntity {
|
|
3527
3684
|
};
|
|
3528
3685
|
// individual index to find core skills by user
|
|
3529
3686
|
__decorateClass([
|
|
3530
|
-
|
|
3531
|
-
|
|
3687
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
3688
|
+
Index32()
|
|
3532
3689
|
], CompanySkill.prototype, "userId", 2);
|
|
3533
3690
|
__decorateClass([
|
|
3534
|
-
|
|
3535
|
-
|
|
3691
|
+
ManyToOne34(() => User, (user) => user.freelancerSkills),
|
|
3692
|
+
JoinColumn34({ name: "user_id" })
|
|
3536
3693
|
], CompanySkill.prototype, "user", 2);
|
|
3537
3694
|
__decorateClass([
|
|
3538
|
-
|
|
3695
|
+
Column39({ name: "skill_name", type: "varchar", nullable: true })
|
|
3539
3696
|
], CompanySkill.prototype, "skillName", 2);
|
|
3540
3697
|
CompanySkill = __decorateClass([
|
|
3541
|
-
|
|
3698
|
+
Entity38("company_skills")
|
|
3542
3699
|
], CompanySkill);
|
|
3543
3700
|
|
|
3544
3701
|
// src/entities/admin-user-role.entity.ts
|
|
3545
|
-
import { Entity as
|
|
3702
|
+
import { Entity as Entity42, Column as Column43, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36 } from "typeorm";
|
|
3546
3703
|
|
|
3547
3704
|
// src/entities/admin-role.entity.ts
|
|
3548
|
-
import { Entity as
|
|
3705
|
+
import { Entity as Entity41, Column as Column42, Index as Index35, OneToMany as OneToMany13 } from "typeorm";
|
|
3549
3706
|
|
|
3550
3707
|
// src/entities/admin-role-permission.entity.ts
|
|
3551
|
-
import { Entity as
|
|
3708
|
+
import { Entity as Entity40, Column as Column41, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3552
3709
|
|
|
3553
3710
|
// src/entities/admin-permission.entity.ts
|
|
3554
|
-
import { Entity as
|
|
3711
|
+
import { Entity as Entity39, Column as Column40, Index as Index33, OneToMany as OneToMany12 } from "typeorm";
|
|
3555
3712
|
var AdminPermission = class extends BaseEntity {
|
|
3556
3713
|
};
|
|
3557
3714
|
__decorateClass([
|
|
3558
|
-
|
|
3715
|
+
Column40({ name: "permission_name", type: "varchar", nullable: true })
|
|
3559
3716
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3560
3717
|
__decorateClass([
|
|
3561
|
-
|
|
3718
|
+
Column40({
|
|
3562
3719
|
name: "permission_slug",
|
|
3563
3720
|
type: "varchar",
|
|
3564
3721
|
unique: true,
|
|
3565
3722
|
nullable: true
|
|
3566
3723
|
}),
|
|
3567
|
-
|
|
3724
|
+
Index33()
|
|
3568
3725
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3569
3726
|
__decorateClass([
|
|
3570
|
-
|
|
3727
|
+
Column40({ name: "permission_description", type: "varchar", nullable: true })
|
|
3571
3728
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3572
3729
|
__decorateClass([
|
|
3573
|
-
|
|
3730
|
+
Column40({ name: "module", type: "varchar", nullable: true })
|
|
3574
3731
|
], AdminPermission.prototype, "module", 2);
|
|
3575
3732
|
__decorateClass([
|
|
3576
|
-
|
|
3733
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
3577
3734
|
], AdminPermission.prototype, "isActive", 2);
|
|
3578
3735
|
__decorateClass([
|
|
3579
3736
|
OneToMany12(
|
|
@@ -3582,14 +3739,14 @@ __decorateClass([
|
|
|
3582
3739
|
)
|
|
3583
3740
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3584
3741
|
AdminPermission = __decorateClass([
|
|
3585
|
-
|
|
3742
|
+
Entity39("admin_permissions")
|
|
3586
3743
|
], AdminPermission);
|
|
3587
3744
|
|
|
3588
3745
|
// src/entities/admin-role-permission.entity.ts
|
|
3589
3746
|
var AdminRolePermission = class extends BaseEntity {
|
|
3590
3747
|
};
|
|
3591
3748
|
__decorateClass([
|
|
3592
|
-
|
|
3749
|
+
Column41({
|
|
3593
3750
|
name: "role_id",
|
|
3594
3751
|
type: "int",
|
|
3595
3752
|
nullable: true,
|
|
@@ -3597,11 +3754,11 @@ __decorateClass([
|
|
|
3597
3754
|
})
|
|
3598
3755
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3599
3756
|
__decorateClass([
|
|
3600
|
-
|
|
3601
|
-
|
|
3757
|
+
ManyToOne35(() => AdminRole),
|
|
3758
|
+
JoinColumn35({ name: "role_id" })
|
|
3602
3759
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3603
3760
|
__decorateClass([
|
|
3604
|
-
|
|
3761
|
+
Column41({
|
|
3605
3762
|
name: "permission_id",
|
|
3606
3763
|
type: "int",
|
|
3607
3764
|
nullable: true,
|
|
@@ -3609,28 +3766,28 @@ __decorateClass([
|
|
|
3609
3766
|
})
|
|
3610
3767
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3611
3768
|
__decorateClass([
|
|
3612
|
-
|
|
3613
|
-
|
|
3769
|
+
ManyToOne35(() => AdminPermission),
|
|
3770
|
+
JoinColumn35({ name: "permission_id" })
|
|
3614
3771
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3615
3772
|
AdminRolePermission = __decorateClass([
|
|
3616
|
-
|
|
3773
|
+
Entity40("admin_role_permissions")
|
|
3617
3774
|
], AdminRolePermission);
|
|
3618
3775
|
|
|
3619
3776
|
// src/entities/admin-role.entity.ts
|
|
3620
3777
|
var AdminRole = class extends BaseEntity {
|
|
3621
3778
|
};
|
|
3622
3779
|
__decorateClass([
|
|
3623
|
-
|
|
3780
|
+
Column42({ name: "role_name", type: "varchar", nullable: true })
|
|
3624
3781
|
], AdminRole.prototype, "roleName", 2);
|
|
3625
3782
|
__decorateClass([
|
|
3626
|
-
|
|
3627
|
-
|
|
3783
|
+
Column42({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3784
|
+
Index35()
|
|
3628
3785
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3629
3786
|
__decorateClass([
|
|
3630
|
-
|
|
3787
|
+
Column42({ name: "role_description", type: "varchar", nullable: true })
|
|
3631
3788
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3632
3789
|
__decorateClass([
|
|
3633
|
-
|
|
3790
|
+
Column42({ name: "is_active", type: "boolean", default: true })
|
|
3634
3791
|
], AdminRole.prototype, "isActive", 2);
|
|
3635
3792
|
__decorateClass([
|
|
3636
3793
|
OneToMany13(
|
|
@@ -3642,14 +3799,14 @@ __decorateClass([
|
|
|
3642
3799
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3643
3800
|
], AdminRole.prototype, "userRoles", 2);
|
|
3644
3801
|
AdminRole = __decorateClass([
|
|
3645
|
-
|
|
3802
|
+
Entity41("admin_roles")
|
|
3646
3803
|
], AdminRole);
|
|
3647
3804
|
|
|
3648
3805
|
// src/entities/admin-user-role.entity.ts
|
|
3649
3806
|
var AdminUserRole = class extends BaseEntity {
|
|
3650
3807
|
};
|
|
3651
3808
|
__decorateClass([
|
|
3652
|
-
|
|
3809
|
+
Column43({
|
|
3653
3810
|
name: "user_id",
|
|
3654
3811
|
type: "int",
|
|
3655
3812
|
nullable: true,
|
|
@@ -3657,11 +3814,11 @@ __decorateClass([
|
|
|
3657
3814
|
})
|
|
3658
3815
|
], AdminUserRole.prototype, "userId", 2);
|
|
3659
3816
|
__decorateClass([
|
|
3660
|
-
|
|
3661
|
-
|
|
3817
|
+
ManyToOne36(() => User),
|
|
3818
|
+
JoinColumn36({ name: "user_id" })
|
|
3662
3819
|
], AdminUserRole.prototype, "user", 2);
|
|
3663
3820
|
__decorateClass([
|
|
3664
|
-
|
|
3821
|
+
Column43({
|
|
3665
3822
|
name: "role_id",
|
|
3666
3823
|
type: "int",
|
|
3667
3824
|
nullable: true,
|
|
@@ -3669,176 +3826,42 @@ __decorateClass([
|
|
|
3669
3826
|
})
|
|
3670
3827
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3671
3828
|
__decorateClass([
|
|
3672
|
-
|
|
3673
|
-
|
|
3829
|
+
ManyToOne36(() => AdminRole),
|
|
3830
|
+
JoinColumn36({ name: "role_id" })
|
|
3674
3831
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3675
3832
|
AdminUserRole = __decorateClass([
|
|
3676
|
-
|
|
3833
|
+
Entity42("admin_user_roles")
|
|
3677
3834
|
], AdminUserRole);
|
|
3678
3835
|
|
|
3679
3836
|
// src/entities/freelancer-resume.entity.ts
|
|
3680
3837
|
import {
|
|
3681
|
-
Entity as
|
|
3682
|
-
Column as
|
|
3683
|
-
Index as
|
|
3684
|
-
ManyToOne as
|
|
3685
|
-
JoinColumn as
|
|
3838
|
+
Entity as Entity43,
|
|
3839
|
+
Column as Column44,
|
|
3840
|
+
Index as Index37,
|
|
3841
|
+
ManyToOne as ManyToOne37,
|
|
3842
|
+
JoinColumn as JoinColumn37
|
|
3686
3843
|
} from "typeorm";
|
|
3687
3844
|
var FreelancerResume = class extends BaseEntity {
|
|
3688
3845
|
};
|
|
3689
3846
|
// individual index to find profile by user
|
|
3690
3847
|
__decorateClass([
|
|
3691
|
-
|
|
3692
|
-
|
|
3848
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
3849
|
+
Index37()
|
|
3693
3850
|
], FreelancerResume.prototype, "userId", 2);
|
|
3694
3851
|
__decorateClass([
|
|
3695
|
-
|
|
3696
|
-
|
|
3852
|
+
ManyToOne37(() => User, (user) => user.freelancerProfile),
|
|
3853
|
+
JoinColumn37({ name: "user_id" })
|
|
3697
3854
|
], FreelancerResume.prototype, "user", 2);
|
|
3698
3855
|
__decorateClass([
|
|
3699
|
-
|
|
3856
|
+
Column44({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3700
3857
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3701
3858
|
__decorateClass([
|
|
3702
|
-
|
|
3859
|
+
Column44({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3703
3860
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3704
3861
|
FreelancerResume = __decorateClass([
|
|
3705
|
-
|
|
3862
|
+
Entity43("freelancer_resumes")
|
|
3706
3863
|
], FreelancerResume);
|
|
3707
3864
|
|
|
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
|
-
|
|
3842
3865
|
// src/entities/user.entity.ts
|
|
3843
3866
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3844
3867
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3994,6 +4017,9 @@ __decorateClass([
|
|
|
3994
4017
|
__decorateClass([
|
|
3995
4018
|
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3996
4019
|
], User.prototype, "companyAiInterview", 2);
|
|
4020
|
+
__decorateClass([
|
|
4021
|
+
OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4022
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
3997
4023
|
__decorateClass([
|
|
3998
4024
|
OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3999
4025
|
], User.prototype, "freelancerProfile", 2);
|
|
@@ -4033,6 +4059,9 @@ __decorateClass([
|
|
|
4033
4059
|
__decorateClass([
|
|
4034
4060
|
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4035
4061
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4062
|
+
__decorateClass([
|
|
4063
|
+
OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4064
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4036
4065
|
__decorateClass([
|
|
4037
4066
|
OneToMany14(() => Job, (job) => job.user)
|
|
4038
4067
|
], User.prototype, "jobs", 2);
|
|
@@ -4057,12 +4086,6 @@ __decorateClass([
|
|
|
4057
4086
|
__decorateClass([
|
|
4058
4087
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4059
4088
|
], 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);
|
|
4066
4089
|
User = __decorateClass([
|
|
4067
4090
|
Entity44("users")
|
|
4068
4091
|
], User);
|
|
@@ -6063,6 +6086,8 @@ export {
|
|
|
6063
6086
|
COMPANY_MEMBERS_PATTERNS,
|
|
6064
6087
|
COMPANY_ROLES_PATTERNS,
|
|
6065
6088
|
COUNTRY_PATTERN,
|
|
6089
|
+
CalendlyMeeting,
|
|
6090
|
+
CalendlyMeetingStatus,
|
|
6066
6091
|
CandidateType,
|
|
6067
6092
|
CaseStudyDto,
|
|
6068
6093
|
CategoryEmum,
|
|
@@ -6100,6 +6125,8 @@ export {
|
|
|
6100
6125
|
EducationDto,
|
|
6101
6126
|
EmploymentType,
|
|
6102
6127
|
ExperienceDto,
|
|
6128
|
+
F2FInterview,
|
|
6129
|
+
F2fInterviewStatusEnum,
|
|
6103
6130
|
FREELANCER_DECLARATION_PATTERN,
|
|
6104
6131
|
FREELANCER_EDUCATION_PATTERN,
|
|
6105
6132
|
FREELANCER_EXPERIENCE_PATTERN,
|