@experts_hub/shared 1.0.339 → 1.0.340
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/calendly-meeting-log.entity.d.ts +5 -0
- package/dist/entities/f2f-interview-schedule.entity.d.ts +20 -0
- package/dist/entities/f2f-interview.entity.d.ts +7 -13
- package/dist/entities/index.d.ts +1 -1
- package/dist/index.d.mts +31 -29
- package/dist/index.d.ts +31 -29
- package/dist/index.js +102 -90
- package/dist/index.mjs +345 -330
- package/package.json +1 -1
- package/dist/entities/calendly-meeting.entity.d.ts +0 -17
package/dist/index.mjs
CHANGED
|
@@ -1399,17 +1399,17 @@ import {
|
|
|
1399
1399
|
} from "class-validator";
|
|
1400
1400
|
|
|
1401
1401
|
// src/entities/rating.entity.ts
|
|
1402
|
-
import { Entity as Entity46, Column as Column47, ManyToOne as
|
|
1402
|
+
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41, Index as Index38 } from "typeorm";
|
|
1403
1403
|
|
|
1404
1404
|
// src/entities/user.entity.ts
|
|
1405
1405
|
import {
|
|
1406
1406
|
Entity as Entity45,
|
|
1407
1407
|
Column as Column46,
|
|
1408
|
-
OneToMany as
|
|
1409
|
-
OneToOne as
|
|
1410
|
-
Index as
|
|
1411
|
-
ManyToOne as
|
|
1412
|
-
JoinColumn as
|
|
1408
|
+
OneToMany as OneToMany16,
|
|
1409
|
+
OneToOne as OneToOne2,
|
|
1410
|
+
Index as Index37,
|
|
1411
|
+
ManyToOne as ManyToOne40,
|
|
1412
|
+
JoinColumn as JoinColumn40
|
|
1413
1413
|
} from "typeorm";
|
|
1414
1414
|
|
|
1415
1415
|
// src/entities/base.entity.ts
|
|
@@ -2126,10 +2126,10 @@ CompanyProfile = __decorateClass([
|
|
|
2126
2126
|
import {
|
|
2127
2127
|
Entity as Entity20,
|
|
2128
2128
|
Column as Column21,
|
|
2129
|
-
Index as
|
|
2130
|
-
ManyToOne as
|
|
2131
|
-
JoinColumn as
|
|
2132
|
-
OneToMany as
|
|
2129
|
+
Index as Index13,
|
|
2130
|
+
ManyToOne as ManyToOne19,
|
|
2131
|
+
JoinColumn as JoinColumn19,
|
|
2132
|
+
OneToMany as OneToMany8
|
|
2133
2133
|
} from "typeorm";
|
|
2134
2134
|
|
|
2135
2135
|
// src/entities/job-skill.entity.ts
|
|
@@ -2277,10 +2277,10 @@ JobApplication = __decorateClass([
|
|
|
2277
2277
|
import {
|
|
2278
2278
|
Entity as Entity18,
|
|
2279
2279
|
Column as Column19,
|
|
2280
|
-
Index as
|
|
2281
|
-
ManyToOne as
|
|
2282
|
-
JoinColumn as
|
|
2283
|
-
OneToMany as
|
|
2280
|
+
Index as Index11,
|
|
2281
|
+
ManyToOne as ManyToOne17,
|
|
2282
|
+
JoinColumn as JoinColumn17,
|
|
2283
|
+
OneToMany as OneToMany7
|
|
2284
2284
|
} from "typeorm";
|
|
2285
2285
|
|
|
2286
2286
|
// src/entities/interview-skill.entity.ts
|
|
@@ -2494,63 +2494,15 @@ AiInterview = __decorateClass([
|
|
|
2494
2494
|
import {
|
|
2495
2495
|
Entity as Entity17,
|
|
2496
2496
|
Column as Column18,
|
|
2497
|
-
ManyToOne as
|
|
2498
|
-
JoinColumn as
|
|
2499
|
-
|
|
2500
|
-
OneToMany as OneToMany5
|
|
2497
|
+
ManyToOne as ManyToOne16,
|
|
2498
|
+
JoinColumn as JoinColumn16,
|
|
2499
|
+
OneToMany as OneToMany6
|
|
2501
2500
|
} from "typeorm";
|
|
2502
2501
|
|
|
2503
|
-
// src/entities/
|
|
2502
|
+
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
2504
2503
|
import {
|
|
2505
2504
|
Entity as Entity15,
|
|
2506
2505
|
Column as Column16,
|
|
2507
|
-
Index as Index11,
|
|
2508
|
-
Unique,
|
|
2509
|
-
OneToOne
|
|
2510
|
-
} from "typeorm";
|
|
2511
|
-
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
2512
|
-
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
2513
|
-
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
2514
|
-
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
2515
|
-
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
2516
|
-
return CalendlyMeetingStatus2;
|
|
2517
|
-
})(CalendlyMeetingStatus || {});
|
|
2518
|
-
var CalendlyMeeting = class extends BaseEntity {
|
|
2519
|
-
};
|
|
2520
|
-
__decorateClass([
|
|
2521
|
-
OneToOne(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
2522
|
-
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
2523
|
-
__decorateClass([
|
|
2524
|
-
Column16({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
2525
|
-
Index11()
|
|
2526
|
-
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
2527
|
-
__decorateClass([
|
|
2528
|
-
Column16({ name: "event_name", type: "varchar", nullable: true })
|
|
2529
|
-
], CalendlyMeeting.prototype, "eventName", 2);
|
|
2530
|
-
__decorateClass([
|
|
2531
|
-
Column16({ name: "invitee_email", type: "varchar", nullable: true }),
|
|
2532
|
-
Index11()
|
|
2533
|
-
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
2534
|
-
__decorateClass([
|
|
2535
|
-
Column16({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
2536
|
-
Index11()
|
|
2537
|
-
], CalendlyMeeting.prototype, "startTime", 2);
|
|
2538
|
-
__decorateClass([
|
|
2539
|
-
Column16({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
2540
|
-
], CalendlyMeeting.prototype, "endTime", 2);
|
|
2541
|
-
__decorateClass([
|
|
2542
|
-
Column16({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
2543
|
-
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
2544
|
-
CalendlyMeeting = __decorateClass([
|
|
2545
|
-
Entity15("calendly_meetings"),
|
|
2546
|
-
Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
2547
|
-
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2548
|
-
], CalendlyMeeting);
|
|
2549
|
-
|
|
2550
|
-
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
2551
|
-
import {
|
|
2552
|
-
Entity as Entity16,
|
|
2553
|
-
Column as Column17,
|
|
2554
2506
|
ManyToOne as ManyToOne14,
|
|
2555
2507
|
JoinColumn as JoinColumn14
|
|
2556
2508
|
} from "typeorm";
|
|
@@ -2563,27 +2515,27 @@ var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewResc
|
|
|
2563
2515
|
var F2fInterviewRescheduleRequest = class extends BaseEntity {
|
|
2564
2516
|
};
|
|
2565
2517
|
__decorateClass([
|
|
2566
|
-
|
|
2518
|
+
Column16({ name: "candidate_id", type: "integer", nullable: true })
|
|
2567
2519
|
], F2fInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
2568
2520
|
__decorateClass([
|
|
2569
2521
|
ManyToOne14(() => User, (user) => user.freelancerF2FInterviewRescheduleRequests, { nullable: true }),
|
|
2570
2522
|
JoinColumn14({ name: "candidate_id" })
|
|
2571
2523
|
], F2fInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
2572
2524
|
__decorateClass([
|
|
2573
|
-
|
|
2525
|
+
Column16({ name: "f2finterview_id", type: "integer", nullable: true })
|
|
2574
2526
|
], F2fInterviewRescheduleRequest.prototype, "f2fInterviewId", 2);
|
|
2575
2527
|
__decorateClass([
|
|
2576
2528
|
ManyToOne14(() => F2FInterview, (f2FInterview) => f2FInterview.rescheduleRequests),
|
|
2577
2529
|
JoinColumn14({ name: "f2finterview_id" })
|
|
2578
2530
|
], F2fInterviewRescheduleRequest.prototype, "f2fInterview", 2);
|
|
2579
2531
|
__decorateClass([
|
|
2580
|
-
|
|
2532
|
+
Column16({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
2581
2533
|
], F2fInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
2582
2534
|
__decorateClass([
|
|
2583
|
-
|
|
2535
|
+
Column16({ name: "rescheduled_slot", type: "varchar", nullable: true })
|
|
2584
2536
|
], F2fInterviewRescheduleRequest.prototype, "rescheduledSlot", 2);
|
|
2585
2537
|
__decorateClass([
|
|
2586
|
-
|
|
2538
|
+
Column16({
|
|
2587
2539
|
name: "status",
|
|
2588
2540
|
type: "enum",
|
|
2589
2541
|
enum: F2fInterviewRescheduleRequestStatusEnum,
|
|
@@ -2591,9 +2543,73 @@ __decorateClass([
|
|
|
2591
2543
|
})
|
|
2592
2544
|
], F2fInterviewRescheduleRequest.prototype, "status", 2);
|
|
2593
2545
|
F2fInterviewRescheduleRequest = __decorateClass([
|
|
2594
|
-
|
|
2546
|
+
Entity15("f2f_interview_reschedule_requests")
|
|
2595
2547
|
], F2fInterviewRescheduleRequest);
|
|
2596
2548
|
|
|
2549
|
+
// src/entities/f2f-interview-schedule.entity.ts
|
|
2550
|
+
import {
|
|
2551
|
+
Entity as Entity16,
|
|
2552
|
+
Column as Column17,
|
|
2553
|
+
ManyToOne as ManyToOne15,
|
|
2554
|
+
JoinColumn as JoinColumn15
|
|
2555
|
+
} from "typeorm";
|
|
2556
|
+
var F2fInterviewScheduleStatusEnum = /* @__PURE__ */ ((F2fInterviewScheduleStatusEnum2) => {
|
|
2557
|
+
F2fInterviewScheduleStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2558
|
+
F2fInterviewScheduleStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2559
|
+
F2fInterviewScheduleStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2560
|
+
F2fInterviewScheduleStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
2561
|
+
return F2fInterviewScheduleStatusEnum2;
|
|
2562
|
+
})(F2fInterviewScheduleStatusEnum || {});
|
|
2563
|
+
var F2FInterviewSchedule = class extends BaseEntity {
|
|
2564
|
+
};
|
|
2565
|
+
__decorateClass([
|
|
2566
|
+
Column17({ name: "f2f_interview_id", type: "integer", nullable: true })
|
|
2567
|
+
], F2FInterviewSchedule.prototype, "f2fInterviewId", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
ManyToOne15(() => F2FInterview, (f2fInterview) => f2fInterview.schedules),
|
|
2570
|
+
JoinColumn15({ name: "f2f_interview_id" })
|
|
2571
|
+
], F2FInterviewSchedule.prototype, "f2fInterview", 2);
|
|
2572
|
+
__decorateClass([
|
|
2573
|
+
Column17({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2574
|
+
], F2FInterviewSchedule.prototype, "meetingZoomLink", 2);
|
|
2575
|
+
__decorateClass([
|
|
2576
|
+
Column17({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2577
|
+
], F2FInterviewSchedule.prototype, "meetingId", 2);
|
|
2578
|
+
__decorateClass([
|
|
2579
|
+
Column17({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2580
|
+
], F2FInterviewSchedule.prototype, "meetingPasscode", 2);
|
|
2581
|
+
__decorateClass([
|
|
2582
|
+
Column17({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2583
|
+
], F2FInterviewSchedule.prototype, "rescheduleUrl", 2);
|
|
2584
|
+
__decorateClass([
|
|
2585
|
+
Column17({ name: "cancel_url", type: "varchar", nullable: true })
|
|
2586
|
+
], F2FInterviewSchedule.prototype, "cancelUrl", 2);
|
|
2587
|
+
__decorateClass([
|
|
2588
|
+
Column17({
|
|
2589
|
+
name: "status",
|
|
2590
|
+
type: "enum",
|
|
2591
|
+
enum: F2fInterviewScheduleStatusEnum,
|
|
2592
|
+
default: "ACTIVE" /* ACTIVE */
|
|
2593
|
+
})
|
|
2594
|
+
], F2FInterviewSchedule.prototype, "status", 2);
|
|
2595
|
+
__decorateClass([
|
|
2596
|
+
Column17({
|
|
2597
|
+
name: "meeting_start_time",
|
|
2598
|
+
type: "timestamp with time zone",
|
|
2599
|
+
nullable: true
|
|
2600
|
+
})
|
|
2601
|
+
], F2FInterviewSchedule.prototype, "meetingStartTime", 2);
|
|
2602
|
+
__decorateClass([
|
|
2603
|
+
Column17({
|
|
2604
|
+
name: "meeting_end_time",
|
|
2605
|
+
type: "timestamp with time zone",
|
|
2606
|
+
nullable: true
|
|
2607
|
+
})
|
|
2608
|
+
], F2FInterviewSchedule.prototype, "meetingEndTime", 2);
|
|
2609
|
+
F2FInterviewSchedule = __decorateClass([
|
|
2610
|
+
Entity16("f2f_interview_schedules")
|
|
2611
|
+
], F2FInterviewSchedule);
|
|
2612
|
+
|
|
2597
2613
|
// src/entities/f2f-interview.entity.ts
|
|
2598
2614
|
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2599
2615
|
F2fInterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2611,26 +2627,29 @@ var F2FInterview = class extends BaseEntity {
|
|
|
2611
2627
|
__decorateClass([
|
|
2612
2628
|
Column18({ name: "interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2613
2629
|
], F2FInterview.prototype, "interviewUniqueId", 2);
|
|
2630
|
+
__decorateClass([
|
|
2631
|
+
Column18({ name: "round", type: "varchar", nullable: true })
|
|
2632
|
+
], F2FInterview.prototype, "round", 2);
|
|
2614
2633
|
__decorateClass([
|
|
2615
2634
|
Column18({ name: "interview_id", type: "integer", nullable: true })
|
|
2616
2635
|
], F2FInterview.prototype, "interviewId", 2);
|
|
2617
2636
|
__decorateClass([
|
|
2618
|
-
|
|
2619
|
-
|
|
2637
|
+
ManyToOne16(() => Interview, (interview) => interview.aiInterviews),
|
|
2638
|
+
JoinColumn16({ name: "interview_id" })
|
|
2620
2639
|
], F2FInterview.prototype, "interview", 2);
|
|
2621
2640
|
__decorateClass([
|
|
2622
2641
|
Column18({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2623
2642
|
], F2FInterview.prototype, "interviwerId", 2);
|
|
2624
2643
|
__decorateClass([
|
|
2625
|
-
|
|
2626
|
-
|
|
2644
|
+
ManyToOne16(() => User, (user) => user.clientF2FInterviews),
|
|
2645
|
+
JoinColumn16({ name: "interviwer_id" })
|
|
2627
2646
|
], F2FInterview.prototype, "interviwer", 2);
|
|
2628
2647
|
__decorateClass([
|
|
2629
2648
|
Column18({ name: "candidate_id", type: "integer", nullable: true })
|
|
2630
2649
|
], F2FInterview.prototype, "candidateId", 2);
|
|
2631
2650
|
__decorateClass([
|
|
2632
|
-
|
|
2633
|
-
|
|
2651
|
+
ManyToOne16(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2652
|
+
JoinColumn16({ name: "candidate_id" })
|
|
2634
2653
|
], F2FInterview.prototype, "candidate", 2);
|
|
2635
2654
|
__decorateClass([
|
|
2636
2655
|
Column18({ name: "invitee_email", type: "varchar", nullable: true })
|
|
@@ -2638,27 +2657,9 @@ __decorateClass([
|
|
|
2638
2657
|
__decorateClass([
|
|
2639
2658
|
Column18({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2640
2659
|
], F2FInterview.prototype, "inviteeName", 2);
|
|
2641
|
-
__decorateClass([
|
|
2642
|
-
Column18({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2643
|
-
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2644
|
-
__decorateClass([
|
|
2645
|
-
Column18({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2646
|
-
], F2FInterview.prototype, "meetingId", 2);
|
|
2647
|
-
__decorateClass([
|
|
2648
|
-
Column18({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2649
|
-
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2650
|
-
__decorateClass([
|
|
2651
|
-
Column18({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2652
|
-
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2653
|
-
__decorateClass([
|
|
2654
|
-
Column18({ name: "cancel_url", type: "varchar", nullable: true })
|
|
2655
|
-
], F2FInterview.prototype, "cancelUrl", 2);
|
|
2656
2660
|
__decorateClass([
|
|
2657
2661
|
Column18({ name: "event_name", type: "varchar", nullable: true })
|
|
2658
2662
|
], F2FInterview.prototype, "eventName", 2);
|
|
2659
|
-
__decorateClass([
|
|
2660
|
-
Column18({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2661
|
-
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2662
2663
|
__decorateClass([
|
|
2663
2664
|
Column18({
|
|
2664
2665
|
name: "status",
|
|
@@ -2667,6 +2668,12 @@ __decorateClass([
|
|
|
2667
2668
|
default: "ACTIVE" /* ACTIVE */
|
|
2668
2669
|
})
|
|
2669
2670
|
], F2FInterview.prototype, "status", 2);
|
|
2671
|
+
__decorateClass([
|
|
2672
|
+
Column18({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2673
|
+
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2674
|
+
__decorateClass([
|
|
2675
|
+
Column18({ name: "last_rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2676
|
+
], F2FInterview.prototype, "lastRescheduledAt", 2);
|
|
2670
2677
|
__decorateClass([
|
|
2671
2678
|
Column18({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2672
2679
|
], F2FInterview.prototype, "cancelledAt", 2);
|
|
@@ -2674,26 +2681,16 @@ __decorateClass([
|
|
|
2674
2681
|
Column18({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2675
2682
|
], F2FInterview.prototype, "cancelReason", 2);
|
|
2676
2683
|
__decorateClass([
|
|
2677
|
-
Column18({ name: "
|
|
2678
|
-
], F2FInterview.prototype, "
|
|
2679
|
-
__decorateClass([
|
|
2680
|
-
Column18({ name: "is_completed", type: "boolean", default: false })
|
|
2681
|
-
], F2FInterview.prototype, "isCompleted", 2);
|
|
2682
|
-
__decorateClass([
|
|
2683
|
-
Column18({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2684
|
-
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2684
|
+
Column18({ name: "provider", type: "varchar", nullable: true })
|
|
2685
|
+
], F2FInterview.prototype, "provider", 2);
|
|
2685
2686
|
__decorateClass([
|
|
2686
|
-
Column18({ name: "
|
|
2687
|
-
], F2FInterview.prototype, "
|
|
2687
|
+
Column18({ name: "provider_event_id", type: "varchar", nullable: true })
|
|
2688
|
+
], F2FInterview.prototype, "providerEventId", 2);
|
|
2688
2689
|
__decorateClass([
|
|
2689
|
-
|
|
2690
|
-
], F2FInterview.prototype, "
|
|
2690
|
+
OneToMany6(() => F2FInterviewSchedule, (f2fInterviewSchedule) => f2fInterviewSchedule.f2fInterview)
|
|
2691
|
+
], F2FInterview.prototype, "schedules", 2);
|
|
2691
2692
|
__decorateClass([
|
|
2692
|
-
|
|
2693
|
-
JoinColumn15({ name: "calendly_meeting_id" })
|
|
2694
|
-
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2695
|
-
__decorateClass([
|
|
2696
|
-
OneToMany5(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
2693
|
+
OneToMany6(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
2697
2694
|
], F2FInterview.prototype, "rescheduleRequests", 2);
|
|
2698
2695
|
F2FInterview = __decorateClass([
|
|
2699
2696
|
Entity17("f2f_interviews")
|
|
@@ -2717,26 +2714,26 @@ __decorateClass([
|
|
|
2717
2714
|
unique: true,
|
|
2718
2715
|
nullable: true
|
|
2719
2716
|
}),
|
|
2720
|
-
|
|
2717
|
+
Index11()
|
|
2721
2718
|
], Interview.prototype, "interviewId", 2);
|
|
2722
2719
|
__decorateClass([
|
|
2723
2720
|
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2724
|
-
|
|
2721
|
+
Index11()
|
|
2725
2722
|
], Interview.prototype, "userId", 2);
|
|
2726
2723
|
__decorateClass([
|
|
2727
|
-
|
|
2728
|
-
|
|
2724
|
+
ManyToOne17(() => User, (user) => user.interviews),
|
|
2725
|
+
JoinColumn17({ name: "user_id" })
|
|
2729
2726
|
], Interview.prototype, "user", 2);
|
|
2730
2727
|
__decorateClass([
|
|
2731
2728
|
Column19({ name: "interview_name", type: "varchar", nullable: true })
|
|
2732
2729
|
], Interview.prototype, "interviewName", 2);
|
|
2733
2730
|
__decorateClass([
|
|
2734
2731
|
Column19({ name: "job_id", type: "integer" }),
|
|
2735
|
-
|
|
2732
|
+
Index11()
|
|
2736
2733
|
], Interview.prototype, "jobId", 2);
|
|
2737
2734
|
__decorateClass([
|
|
2738
|
-
|
|
2739
|
-
|
|
2735
|
+
ManyToOne17(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2736
|
+
JoinColumn17({ name: "job_id" })
|
|
2740
2737
|
], Interview.prototype, "job", 2);
|
|
2741
2738
|
__decorateClass([
|
|
2742
2739
|
Column19({ name: "interview_type", type: "varchar", nullable: true })
|
|
@@ -2756,34 +2753,34 @@ __decorateClass([
|
|
|
2756
2753
|
})
|
|
2757
2754
|
], Interview.prototype, "status", 2);
|
|
2758
2755
|
__decorateClass([
|
|
2759
|
-
|
|
2756
|
+
OneToMany7(
|
|
2760
2757
|
() => InterviewSkill,
|
|
2761
2758
|
(interviewSkill) => interviewSkill.interview,
|
|
2762
2759
|
{ cascade: true }
|
|
2763
2760
|
)
|
|
2764
2761
|
], Interview.prototype, "interviewSkills", 2);
|
|
2765
2762
|
__decorateClass([
|
|
2766
|
-
|
|
2763
|
+
OneToMany7(
|
|
2767
2764
|
() => InterviewQuestion,
|
|
2768
2765
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2769
2766
|
{ cascade: true }
|
|
2770
2767
|
)
|
|
2771
2768
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2772
2769
|
__decorateClass([
|
|
2773
|
-
|
|
2770
|
+
OneToMany7(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2774
2771
|
], Interview.prototype, "invites", 2);
|
|
2775
2772
|
__decorateClass([
|
|
2776
|
-
|
|
2773
|
+
OneToMany7(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2777
2774
|
], Interview.prototype, "aiInterviews", 2);
|
|
2778
2775
|
__decorateClass([
|
|
2779
|
-
|
|
2776
|
+
OneToMany7(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2780
2777
|
], Interview.prototype, "f2fInterviews", 2);
|
|
2781
2778
|
Interview = __decorateClass([
|
|
2782
2779
|
Entity18("interviews")
|
|
2783
2780
|
], Interview);
|
|
2784
2781
|
|
|
2785
2782
|
// src/entities/job-recommendation.entity.ts
|
|
2786
|
-
import { Entity as Entity19, Column as Column20, Index as
|
|
2783
|
+
import { Entity as Entity19, Column as Column20, Index as Index12, ManyToOne as ManyToOne18, JoinColumn as JoinColumn18, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2787
2784
|
var JobRecommendation = class {
|
|
2788
2785
|
};
|
|
2789
2786
|
__decorateClass([
|
|
@@ -2791,19 +2788,19 @@ __decorateClass([
|
|
|
2791
2788
|
], JobRecommendation.prototype, "id", 2);
|
|
2792
2789
|
__decorateClass([
|
|
2793
2790
|
Column20({ name: "job_id", type: "integer" }),
|
|
2794
|
-
|
|
2791
|
+
Index12()
|
|
2795
2792
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2796
2793
|
__decorateClass([
|
|
2797
|
-
|
|
2798
|
-
|
|
2794
|
+
ManyToOne18(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2795
|
+
JoinColumn18({ name: "job_id" })
|
|
2799
2796
|
], JobRecommendation.prototype, "job", 2);
|
|
2800
2797
|
__decorateClass([
|
|
2801
2798
|
Column20({ name: "freelancer_id", type: "integer" }),
|
|
2802
|
-
|
|
2799
|
+
Index12()
|
|
2803
2800
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2804
2801
|
__decorateClass([
|
|
2805
2802
|
Column20({ name: "client_id", type: "integer" }),
|
|
2806
|
-
|
|
2803
|
+
Index12()
|
|
2807
2804
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2808
2805
|
__decorateClass([
|
|
2809
2806
|
Column20({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
@@ -2864,32 +2861,32 @@ __decorateClass([
|
|
|
2864
2861
|
// individual index to find jobs by user
|
|
2865
2862
|
__decorateClass([
|
|
2866
2863
|
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2867
|
-
|
|
2864
|
+
Index13()
|
|
2868
2865
|
], Job.prototype, "userId", 2);
|
|
2869
2866
|
__decorateClass([
|
|
2870
|
-
|
|
2871
|
-
|
|
2867
|
+
ManyToOne19(() => User, (user) => user.jobs),
|
|
2868
|
+
JoinColumn19({ name: "user_id" })
|
|
2872
2869
|
], Job.prototype, "user", 2);
|
|
2873
2870
|
__decorateClass([
|
|
2874
2871
|
Column21({ name: "country_id", type: "int", nullable: true })
|
|
2875
2872
|
], Job.prototype, "countryId", 2);
|
|
2876
2873
|
__decorateClass([
|
|
2877
|
-
|
|
2878
|
-
|
|
2874
|
+
ManyToOne19(() => Country),
|
|
2875
|
+
JoinColumn19({ name: "country_id" })
|
|
2879
2876
|
], Job.prototype, "country", 2);
|
|
2880
2877
|
__decorateClass([
|
|
2881
2878
|
Column21({ name: "state_id", type: "int", nullable: true })
|
|
2882
2879
|
], Job.prototype, "stateId", 2);
|
|
2883
2880
|
__decorateClass([
|
|
2884
|
-
|
|
2885
|
-
|
|
2881
|
+
ManyToOne19(() => State),
|
|
2882
|
+
JoinColumn19({ name: "state_id" })
|
|
2886
2883
|
], Job.prototype, "state", 2);
|
|
2887
2884
|
__decorateClass([
|
|
2888
2885
|
Column21({ name: "city_id", type: "int", nullable: true })
|
|
2889
2886
|
], Job.prototype, "cityId", 2);
|
|
2890
2887
|
__decorateClass([
|
|
2891
|
-
|
|
2892
|
-
|
|
2888
|
+
ManyToOne19(() => City),
|
|
2889
|
+
JoinColumn19({ name: "city_id" })
|
|
2893
2890
|
], Job.prototype, "city", 2);
|
|
2894
2891
|
__decorateClass([
|
|
2895
2892
|
Column21({ name: "job_role", type: "varchar", nullable: true })
|
|
@@ -3007,20 +3004,20 @@ __decorateClass([
|
|
|
3007
3004
|
Column21({ name: "application_count", type: "integer", default: 0 })
|
|
3008
3005
|
], Job.prototype, "applicationCount", 2);
|
|
3009
3006
|
__decorateClass([
|
|
3010
|
-
|
|
3007
|
+
OneToMany8(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
3011
3008
|
], Job.prototype, "jobSkills", 2);
|
|
3012
3009
|
__decorateClass([
|
|
3013
|
-
|
|
3010
|
+
OneToMany8(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
3014
3011
|
cascade: true
|
|
3015
3012
|
})
|
|
3016
3013
|
], Job.prototype, "jobApplications", 2);
|
|
3017
3014
|
__decorateClass([
|
|
3018
|
-
|
|
3015
|
+
OneToMany8(() => Interview, (interview) => interview.job, {
|
|
3019
3016
|
cascade: true
|
|
3020
3017
|
})
|
|
3021
3018
|
], Job.prototype, "interviews", 2);
|
|
3022
3019
|
__decorateClass([
|
|
3023
|
-
|
|
3020
|
+
OneToMany8(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
3024
3021
|
cascade: true
|
|
3025
3022
|
})
|
|
3026
3023
|
], Job.prototype, "recommendations", 2);
|
|
@@ -3032,9 +3029,9 @@ Job = __decorateClass([
|
|
|
3032
3029
|
import {
|
|
3033
3030
|
Entity as Entity21,
|
|
3034
3031
|
Column as Column22,
|
|
3035
|
-
Index as
|
|
3036
|
-
ManyToOne as
|
|
3037
|
-
JoinColumn as
|
|
3032
|
+
Index as Index14,
|
|
3033
|
+
ManyToOne as ManyToOne20,
|
|
3034
|
+
JoinColumn as JoinColumn20
|
|
3038
3035
|
} from "typeorm";
|
|
3039
3036
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3040
3037
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -3051,11 +3048,11 @@ var BankDetail = class extends BaseEntity {
|
|
|
3051
3048
|
// individual index to find bank details by user
|
|
3052
3049
|
__decorateClass([
|
|
3053
3050
|
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
3054
|
-
|
|
3051
|
+
Index14()
|
|
3055
3052
|
], BankDetail.prototype, "userId", 2);
|
|
3056
3053
|
__decorateClass([
|
|
3057
|
-
|
|
3058
|
-
|
|
3054
|
+
ManyToOne20(() => User, (user) => user.bankDetail),
|
|
3055
|
+
JoinColumn20({ name: "user_id" })
|
|
3059
3056
|
], BankDetail.prototype, "user", 2);
|
|
3060
3057
|
__decorateClass([
|
|
3061
3058
|
Column22({ name: "name", type: "varchar", nullable: true })
|
|
@@ -3114,20 +3111,20 @@ BankDetail = __decorateClass([
|
|
|
3114
3111
|
import {
|
|
3115
3112
|
Entity as Entity22,
|
|
3116
3113
|
Column as Column23,
|
|
3117
|
-
Index as
|
|
3118
|
-
ManyToOne as
|
|
3119
|
-
JoinColumn as
|
|
3114
|
+
Index as Index15,
|
|
3115
|
+
ManyToOne as ManyToOne21,
|
|
3116
|
+
JoinColumn as JoinColumn21
|
|
3120
3117
|
} from "typeorm";
|
|
3121
3118
|
var SystemPreference = class extends BaseEntity {
|
|
3122
3119
|
};
|
|
3123
3120
|
// individual index to find system preference by user
|
|
3124
3121
|
__decorateClass([
|
|
3125
3122
|
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
3126
|
-
|
|
3123
|
+
Index15()
|
|
3127
3124
|
], SystemPreference.prototype, "userId", 2);
|
|
3128
3125
|
__decorateClass([
|
|
3129
|
-
|
|
3130
|
-
|
|
3126
|
+
ManyToOne21(() => User, (user) => user.systemPreference),
|
|
3127
|
+
JoinColumn21({ name: "user_id" })
|
|
3131
3128
|
], SystemPreference.prototype, "user", 2);
|
|
3132
3129
|
__decorateClass([
|
|
3133
3130
|
Column23({ name: "key", type: "varchar", nullable: false })
|
|
@@ -3143,20 +3140,20 @@ SystemPreference = __decorateClass([
|
|
|
3143
3140
|
import {
|
|
3144
3141
|
Entity as Entity23,
|
|
3145
3142
|
Column as Column24,
|
|
3146
|
-
Index as
|
|
3147
|
-
ManyToOne as
|
|
3148
|
-
JoinColumn as
|
|
3143
|
+
Index as Index16,
|
|
3144
|
+
ManyToOne as ManyToOne22,
|
|
3145
|
+
JoinColumn as JoinColumn22
|
|
3149
3146
|
} from "typeorm";
|
|
3150
3147
|
var FreelancerExperience = class extends BaseEntity {
|
|
3151
3148
|
};
|
|
3152
3149
|
// individual index to find experence by user
|
|
3153
3150
|
__decorateClass([
|
|
3154
3151
|
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3155
|
-
|
|
3152
|
+
Index16()
|
|
3156
3153
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3157
3154
|
__decorateClass([
|
|
3158
|
-
|
|
3159
|
-
|
|
3155
|
+
ManyToOne22(() => User, (user) => user.freelancerExperience),
|
|
3156
|
+
JoinColumn22({ name: "user_id" })
|
|
3160
3157
|
], FreelancerExperience.prototype, "user", 2);
|
|
3161
3158
|
__decorateClass([
|
|
3162
3159
|
Column24({ name: "company_name", type: "varchar", nullable: true })
|
|
@@ -3178,20 +3175,20 @@ FreelancerExperience = __decorateClass([
|
|
|
3178
3175
|
import {
|
|
3179
3176
|
Entity as Entity24,
|
|
3180
3177
|
Column as Column25,
|
|
3181
|
-
Index as
|
|
3182
|
-
ManyToOne as
|
|
3183
|
-
JoinColumn as
|
|
3178
|
+
Index as Index17,
|
|
3179
|
+
ManyToOne as ManyToOne23,
|
|
3180
|
+
JoinColumn as JoinColumn23
|
|
3184
3181
|
} from "typeorm";
|
|
3185
3182
|
var FreelancerEducation = class extends BaseEntity {
|
|
3186
3183
|
};
|
|
3187
3184
|
// individual index to find education by user
|
|
3188
3185
|
__decorateClass([
|
|
3189
3186
|
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3190
|
-
|
|
3187
|
+
Index17()
|
|
3191
3188
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3192
3189
|
__decorateClass([
|
|
3193
|
-
|
|
3194
|
-
|
|
3190
|
+
ManyToOne23(() => User, (user) => user.freelancerEducation),
|
|
3191
|
+
JoinColumn23({ name: "user_id" })
|
|
3195
3192
|
], FreelancerEducation.prototype, "user", 2);
|
|
3196
3193
|
__decorateClass([
|
|
3197
3194
|
Column25({ name: "degree", type: "varchar", nullable: true })
|
|
@@ -3210,20 +3207,20 @@ FreelancerEducation = __decorateClass([
|
|
|
3210
3207
|
import {
|
|
3211
3208
|
Entity as Entity25,
|
|
3212
3209
|
Column as Column26,
|
|
3213
|
-
Index as
|
|
3214
|
-
ManyToOne as
|
|
3215
|
-
JoinColumn as
|
|
3210
|
+
Index as Index18,
|
|
3211
|
+
ManyToOne as ManyToOne24,
|
|
3212
|
+
JoinColumn as JoinColumn24
|
|
3216
3213
|
} from "typeorm";
|
|
3217
3214
|
var FreelancerProject = class extends BaseEntity {
|
|
3218
3215
|
};
|
|
3219
3216
|
// individual index to find project by user
|
|
3220
3217
|
__decorateClass([
|
|
3221
3218
|
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3222
|
-
|
|
3219
|
+
Index18()
|
|
3223
3220
|
], FreelancerProject.prototype, "userId", 2);
|
|
3224
3221
|
__decorateClass([
|
|
3225
|
-
|
|
3226
|
-
|
|
3222
|
+
ManyToOne24(() => User, (user) => user.freelancerProject),
|
|
3223
|
+
JoinColumn24({ name: "user_id" })
|
|
3227
3224
|
], FreelancerProject.prototype, "user", 2);
|
|
3228
3225
|
__decorateClass([
|
|
3229
3226
|
Column26({ name: "project_name", type: "varchar", nullable: true })
|
|
@@ -3251,20 +3248,20 @@ FreelancerProject = __decorateClass([
|
|
|
3251
3248
|
import {
|
|
3252
3249
|
Entity as Entity26,
|
|
3253
3250
|
Column as Column27,
|
|
3254
|
-
Index as
|
|
3255
|
-
ManyToOne as
|
|
3256
|
-
JoinColumn as
|
|
3251
|
+
Index as Index19,
|
|
3252
|
+
ManyToOne as ManyToOne25,
|
|
3253
|
+
JoinColumn as JoinColumn25
|
|
3257
3254
|
} from "typeorm";
|
|
3258
3255
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3259
3256
|
};
|
|
3260
3257
|
// individual index to find case study by user
|
|
3261
3258
|
__decorateClass([
|
|
3262
3259
|
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3263
|
-
|
|
3260
|
+
Index19()
|
|
3264
3261
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3265
3262
|
__decorateClass([
|
|
3266
|
-
|
|
3267
|
-
|
|
3263
|
+
ManyToOne25(() => User, (user) => user.freelancerCaseStudy),
|
|
3264
|
+
JoinColumn25({ name: "user_id" })
|
|
3268
3265
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3269
3266
|
__decorateClass([
|
|
3270
3267
|
Column27({ name: "project_name", type: "varchar", nullable: true })
|
|
@@ -3283,20 +3280,20 @@ FreelancerCaseStudy = __decorateClass([
|
|
|
3283
3280
|
import {
|
|
3284
3281
|
Entity as Entity27,
|
|
3285
3282
|
Column as Column28,
|
|
3286
|
-
Index as
|
|
3287
|
-
ManyToOne as
|
|
3288
|
-
JoinColumn as
|
|
3283
|
+
Index as Index20,
|
|
3284
|
+
ManyToOne as ManyToOne26,
|
|
3285
|
+
JoinColumn as JoinColumn26
|
|
3289
3286
|
} from "typeorm";
|
|
3290
3287
|
var FreelancerSkill = class extends BaseEntity {
|
|
3291
3288
|
};
|
|
3292
3289
|
// individual index to find core skills by user
|
|
3293
3290
|
__decorateClass([
|
|
3294
3291
|
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3295
|
-
|
|
3292
|
+
Index20()
|
|
3296
3293
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3297
3294
|
__decorateClass([
|
|
3298
|
-
|
|
3299
|
-
|
|
3295
|
+
ManyToOne26(() => User, (user) => user.freelancerSkills),
|
|
3296
|
+
JoinColumn26({ name: "user_id" })
|
|
3300
3297
|
], FreelancerSkill.prototype, "user", 2);
|
|
3301
3298
|
__decorateClass([
|
|
3302
3299
|
Column28({ name: "skill_name", type: "varchar", nullable: true })
|
|
@@ -3309,20 +3306,20 @@ FreelancerSkill = __decorateClass([
|
|
|
3309
3306
|
import {
|
|
3310
3307
|
Entity as Entity28,
|
|
3311
3308
|
Column as Column29,
|
|
3312
|
-
Index as
|
|
3313
|
-
ManyToOne as
|
|
3314
|
-
JoinColumn as
|
|
3309
|
+
Index as Index21,
|
|
3310
|
+
ManyToOne as ManyToOne27,
|
|
3311
|
+
JoinColumn as JoinColumn27
|
|
3315
3312
|
} from "typeorm";
|
|
3316
3313
|
var FreelancerTool = class extends BaseEntity {
|
|
3317
3314
|
};
|
|
3318
3315
|
// individual index to find tool by user
|
|
3319
3316
|
__decorateClass([
|
|
3320
3317
|
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3321
|
-
|
|
3318
|
+
Index21()
|
|
3322
3319
|
], FreelancerTool.prototype, "userId", 2);
|
|
3323
3320
|
__decorateClass([
|
|
3324
|
-
|
|
3325
|
-
|
|
3321
|
+
ManyToOne27(() => User, (user) => user.freelancerTool),
|
|
3322
|
+
JoinColumn27({ name: "user_id" })
|
|
3326
3323
|
], FreelancerTool.prototype, "user", 2);
|
|
3327
3324
|
__decorateClass([
|
|
3328
3325
|
Column29({ name: "tool_name", type: "varchar", nullable: true })
|
|
@@ -3335,20 +3332,20 @@ FreelancerTool = __decorateClass([
|
|
|
3335
3332
|
import {
|
|
3336
3333
|
Entity as Entity29,
|
|
3337
3334
|
Column as Column30,
|
|
3338
|
-
Index as
|
|
3339
|
-
ManyToOne as
|
|
3340
|
-
JoinColumn as
|
|
3335
|
+
Index as Index22,
|
|
3336
|
+
ManyToOne as ManyToOne28,
|
|
3337
|
+
JoinColumn as JoinColumn28
|
|
3341
3338
|
} from "typeorm";
|
|
3342
3339
|
var FreelancerFramework = class extends BaseEntity {
|
|
3343
3340
|
};
|
|
3344
3341
|
// individual index to find framework by user
|
|
3345
3342
|
__decorateClass([
|
|
3346
3343
|
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3347
|
-
|
|
3344
|
+
Index22()
|
|
3348
3345
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3349
3346
|
__decorateClass([
|
|
3350
|
-
|
|
3351
|
-
|
|
3347
|
+
ManyToOne28(() => User, (user) => user.freelancerFramework),
|
|
3348
|
+
JoinColumn28({ name: "user_id" })
|
|
3352
3349
|
], FreelancerFramework.prototype, "user", 2);
|
|
3353
3350
|
__decorateClass([
|
|
3354
3351
|
Column30({ name: "framework_name", type: "varchar", nullable: true })
|
|
@@ -3361,9 +3358,9 @@ FreelancerFramework = __decorateClass([
|
|
|
3361
3358
|
import {
|
|
3362
3359
|
Entity as Entity30,
|
|
3363
3360
|
Column as Column31,
|
|
3364
|
-
Index as
|
|
3365
|
-
ManyToOne as
|
|
3366
|
-
JoinColumn as
|
|
3361
|
+
Index as Index23,
|
|
3362
|
+
ManyToOne as ManyToOne29,
|
|
3363
|
+
JoinColumn as JoinColumn29
|
|
3367
3364
|
} from "typeorm";
|
|
3368
3365
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3369
3366
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3381,11 +3378,11 @@ var FreelancerAssessment = class extends BaseEntity {
|
|
|
3381
3378
|
};
|
|
3382
3379
|
__decorateClass([
|
|
3383
3380
|
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3384
|
-
|
|
3381
|
+
Index23()
|
|
3385
3382
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3386
3383
|
__decorateClass([
|
|
3387
|
-
|
|
3388
|
-
|
|
3384
|
+
ManyToOne29(() => User, (user) => user.assessments),
|
|
3385
|
+
JoinColumn29({ name: "user_id" })
|
|
3389
3386
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3390
3387
|
__decorateClass([
|
|
3391
3388
|
Column31({ name: "interview_id", type: "varchar", nullable: true })
|
|
@@ -3415,7 +3412,7 @@ FreelancerAssessment = __decorateClass([
|
|
|
3415
3412
|
], FreelancerAssessment);
|
|
3416
3413
|
|
|
3417
3414
|
// src/entities/freelancer-declaration.entity.ts
|
|
3418
|
-
import { Entity as Entity31, Column as Column32, Index as
|
|
3415
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
|
|
3419
3416
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3420
3417
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3421
3418
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3428,11 +3425,11 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3428
3425
|
// individual index to find declaration by user
|
|
3429
3426
|
__decorateClass([
|
|
3430
3427
|
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3431
|
-
|
|
3428
|
+
Index24()
|
|
3432
3429
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3433
3430
|
__decorateClass([
|
|
3434
|
-
|
|
3435
|
-
|
|
3431
|
+
ManyToOne30(() => User, (user) => user.freelancerDeclaration),
|
|
3432
|
+
JoinColumn30({ name: "user_id" })
|
|
3436
3433
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3437
3434
|
__decorateClass([
|
|
3438
3435
|
Column32({
|
|
@@ -3462,32 +3459,32 @@ FreelancerDeclaration = __decorateClass([
|
|
|
3462
3459
|
import {
|
|
3463
3460
|
Column as Column36,
|
|
3464
3461
|
Entity as Entity35,
|
|
3465
|
-
ManyToOne as
|
|
3466
|
-
JoinColumn as
|
|
3467
|
-
Index as
|
|
3462
|
+
ManyToOne as ManyToOne33,
|
|
3463
|
+
JoinColumn as JoinColumn33,
|
|
3464
|
+
Index as Index28
|
|
3468
3465
|
} from "typeorm";
|
|
3469
3466
|
|
|
3470
3467
|
// src/entities/company-role.entity.ts
|
|
3471
3468
|
import {
|
|
3472
3469
|
Column as Column35,
|
|
3473
3470
|
Entity as Entity34,
|
|
3474
|
-
Index as
|
|
3475
|
-
JoinColumn as
|
|
3476
|
-
ManyToOne as
|
|
3477
|
-
OneToMany as
|
|
3471
|
+
Index as Index27,
|
|
3472
|
+
JoinColumn as JoinColumn32,
|
|
3473
|
+
ManyToOne as ManyToOne32,
|
|
3474
|
+
OneToMany as OneToMany10
|
|
3478
3475
|
} from "typeorm";
|
|
3479
3476
|
|
|
3480
3477
|
// src/entities/company-role-permission.entity.ts
|
|
3481
3478
|
import {
|
|
3482
3479
|
Column as Column34,
|
|
3483
3480
|
Entity as Entity33,
|
|
3484
|
-
ManyToOne as
|
|
3485
|
-
JoinColumn as
|
|
3486
|
-
Index as
|
|
3481
|
+
ManyToOne as ManyToOne31,
|
|
3482
|
+
JoinColumn as JoinColumn31,
|
|
3483
|
+
Index as Index26
|
|
3487
3484
|
} from "typeorm";
|
|
3488
3485
|
|
|
3489
3486
|
// src/entities/permission.entity.ts
|
|
3490
|
-
import { Column as Column33, Entity as Entity32, Index as
|
|
3487
|
+
import { Column as Column33, Entity as Entity32, Index as Index25 } from "typeorm";
|
|
3491
3488
|
var Permission = class extends BaseEntity {
|
|
3492
3489
|
};
|
|
3493
3490
|
__decorateClass([
|
|
@@ -3495,7 +3492,7 @@ __decorateClass([
|
|
|
3495
3492
|
], Permission.prototype, "name", 2);
|
|
3496
3493
|
__decorateClass([
|
|
3497
3494
|
Column33({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3498
|
-
|
|
3495
|
+
Index25()
|
|
3499
3496
|
], Permission.prototype, "slug", 2);
|
|
3500
3497
|
__decorateClass([
|
|
3501
3498
|
Column33({ name: "description", type: "text", nullable: true })
|
|
@@ -3512,21 +3509,21 @@ var CompanyRolePermission = class extends BaseEntity {
|
|
|
3512
3509
|
};
|
|
3513
3510
|
__decorateClass([
|
|
3514
3511
|
Column34({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3515
|
-
|
|
3512
|
+
Index26()
|
|
3516
3513
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3517
3514
|
__decorateClass([
|
|
3518
|
-
|
|
3515
|
+
ManyToOne31(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3519
3516
|
onDelete: "CASCADE"
|
|
3520
3517
|
}),
|
|
3521
|
-
|
|
3518
|
+
JoinColumn31({ name: "company_role_id" })
|
|
3522
3519
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3523
3520
|
__decorateClass([
|
|
3524
3521
|
Column34({ name: "permission_id", type: "integer" }),
|
|
3525
|
-
|
|
3522
|
+
Index26()
|
|
3526
3523
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3527
3524
|
__decorateClass([
|
|
3528
|
-
|
|
3529
|
-
|
|
3525
|
+
ManyToOne31(() => Permission, { onDelete: "CASCADE" }),
|
|
3526
|
+
JoinColumn31({ name: "permission_id" })
|
|
3530
3527
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3531
3528
|
__decorateClass([
|
|
3532
3529
|
Column34({ name: "assigned_by", type: "integer", nullable: true })
|
|
@@ -3540,18 +3537,18 @@ var CompanyRole = class extends BaseEntity {
|
|
|
3540
3537
|
};
|
|
3541
3538
|
__decorateClass([
|
|
3542
3539
|
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3543
|
-
|
|
3540
|
+
Index27()
|
|
3544
3541
|
], CompanyRole.prototype, "userId", 2);
|
|
3545
3542
|
__decorateClass([
|
|
3546
|
-
|
|
3547
|
-
|
|
3543
|
+
ManyToOne32(() => User, (user) => user.otps),
|
|
3544
|
+
JoinColumn32({ name: "user_id" })
|
|
3548
3545
|
], CompanyRole.prototype, "user", 2);
|
|
3549
3546
|
__decorateClass([
|
|
3550
3547
|
Column35({ name: "name", type: "varchar" })
|
|
3551
3548
|
], CompanyRole.prototype, "name", 2);
|
|
3552
3549
|
__decorateClass([
|
|
3553
3550
|
Column35({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3554
|
-
|
|
3551
|
+
Index27()
|
|
3555
3552
|
], CompanyRole.prototype, "slug", 2);
|
|
3556
3553
|
__decorateClass([
|
|
3557
3554
|
Column35({ name: "description", type: "text", nullable: true })
|
|
@@ -3560,7 +3557,7 @@ __decorateClass([
|
|
|
3560
3557
|
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3561
3558
|
], CompanyRole.prototype, "isActive", 2);
|
|
3562
3559
|
__decorateClass([
|
|
3563
|
-
|
|
3560
|
+
OneToMany10(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3564
3561
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3565
3562
|
CompanyRole = __decorateClass([
|
|
3566
3563
|
Entity34("company_roles")
|
|
@@ -3571,19 +3568,19 @@ var CompanyMemberRole = class extends BaseEntity {
|
|
|
3571
3568
|
};
|
|
3572
3569
|
__decorateClass([
|
|
3573
3570
|
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3574
|
-
|
|
3571
|
+
Index28()
|
|
3575
3572
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3576
3573
|
__decorateClass([
|
|
3577
|
-
|
|
3578
|
-
|
|
3574
|
+
ManyToOne33(() => User),
|
|
3575
|
+
JoinColumn33({ name: "user_id" })
|
|
3579
3576
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3580
3577
|
__decorateClass([
|
|
3581
|
-
|
|
3582
|
-
|
|
3578
|
+
ManyToOne33(() => CompanyRole),
|
|
3579
|
+
JoinColumn33({ name: "company_role_id" })
|
|
3583
3580
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3584
3581
|
__decorateClass([
|
|
3585
3582
|
Column36({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3586
|
-
|
|
3583
|
+
Index28()
|
|
3587
3584
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3588
3585
|
__decorateClass([
|
|
3589
3586
|
Column36({ name: "assigned_by", type: "integer", nullable: true })
|
|
@@ -3596,22 +3593,22 @@ CompanyMemberRole = __decorateClass([
|
|
|
3596
3593
|
import {
|
|
3597
3594
|
Entity as Entity38,
|
|
3598
3595
|
Column as Column39,
|
|
3599
|
-
ManyToOne as
|
|
3600
|
-
Index as
|
|
3601
|
-
JoinColumn as
|
|
3596
|
+
ManyToOne as ManyToOne35,
|
|
3597
|
+
Index as Index30,
|
|
3598
|
+
JoinColumn as JoinColumn35
|
|
3602
3599
|
} from "typeorm";
|
|
3603
3600
|
|
|
3604
3601
|
// src/entities/assessment-question.entity.ts
|
|
3605
|
-
import { Entity as Entity37, Column as Column38, OneToMany as
|
|
3602
|
+
import { Entity as Entity37, Column as Column38, OneToMany as OneToMany12 } from "typeorm";
|
|
3606
3603
|
|
|
3607
3604
|
// src/entities/assessment-question-option.entity.ts
|
|
3608
3605
|
import {
|
|
3609
3606
|
Entity as Entity36,
|
|
3610
3607
|
Column as Column37,
|
|
3611
|
-
OneToMany as
|
|
3612
|
-
ManyToOne as
|
|
3613
|
-
Index as
|
|
3614
|
-
JoinColumn as
|
|
3608
|
+
OneToMany as OneToMany11,
|
|
3609
|
+
ManyToOne as ManyToOne34,
|
|
3610
|
+
Index as Index29,
|
|
3611
|
+
JoinColumn as JoinColumn34
|
|
3615
3612
|
} from "typeorm";
|
|
3616
3613
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3617
3614
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3623,14 +3620,14 @@ var AssessmetQuestionOption = class extends BaseEntity {
|
|
|
3623
3620
|
};
|
|
3624
3621
|
__decorateClass([
|
|
3625
3622
|
Column37({ name: "question_id", type: "integer", nullable: true }),
|
|
3626
|
-
|
|
3623
|
+
Index29()
|
|
3627
3624
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3628
3625
|
__decorateClass([
|
|
3629
|
-
|
|
3626
|
+
ManyToOne34(
|
|
3630
3627
|
() => AssessmetQuestion,
|
|
3631
3628
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3632
3629
|
),
|
|
3633
|
-
|
|
3630
|
+
JoinColumn34({ name: "question_id" })
|
|
3634
3631
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3635
3632
|
__decorateClass([
|
|
3636
3633
|
Column37({ name: "text", type: "varchar", nullable: true })
|
|
@@ -3647,7 +3644,7 @@ __decorateClass([
|
|
|
3647
3644
|
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3648
3645
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3649
3646
|
__decorateClass([
|
|
3650
|
-
|
|
3647
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3651
3648
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3652
3649
|
AssessmetQuestionOption = __decorateClass([
|
|
3653
3650
|
Entity36("assessment_question_options")
|
|
@@ -3676,10 +3673,10 @@ __decorateClass([
|
|
|
3676
3673
|
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3677
3674
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3678
3675
|
__decorateClass([
|
|
3679
|
-
|
|
3676
|
+
OneToMany12(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3680
3677
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3681
3678
|
__decorateClass([
|
|
3682
|
-
|
|
3679
|
+
OneToMany12(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3683
3680
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3684
3681
|
AssessmetQuestion = __decorateClass([
|
|
3685
3682
|
Entity37("assessment_questions")
|
|
@@ -3696,33 +3693,33 @@ var AssessmentAnswer = class extends BaseEntity {
|
|
|
3696
3693
|
};
|
|
3697
3694
|
__decorateClass([
|
|
3698
3695
|
Column39({ name: "user_id", type: "integer" }),
|
|
3699
|
-
|
|
3696
|
+
Index30()
|
|
3700
3697
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3701
3698
|
__decorateClass([
|
|
3702
|
-
|
|
3703
|
-
|
|
3699
|
+
ManyToOne35(() => User, (user) => user.assessmentAnswers),
|
|
3700
|
+
JoinColumn35({ name: "user_id" })
|
|
3704
3701
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3705
3702
|
__decorateClass([
|
|
3706
3703
|
Column39({ name: "question_id", type: "integer" }),
|
|
3707
|
-
|
|
3704
|
+
Index30()
|
|
3708
3705
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3709
3706
|
__decorateClass([
|
|
3710
|
-
|
|
3707
|
+
ManyToOne35(
|
|
3711
3708
|
() => AssessmetQuestion,
|
|
3712
3709
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3713
3710
|
),
|
|
3714
|
-
|
|
3711
|
+
JoinColumn35({ name: "question_id" })
|
|
3715
3712
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3716
3713
|
__decorateClass([
|
|
3717
3714
|
Column39({ name: "selected_option_id", type: "integer" }),
|
|
3718
|
-
|
|
3715
|
+
Index30()
|
|
3719
3716
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3720
3717
|
__decorateClass([
|
|
3721
|
-
|
|
3718
|
+
ManyToOne35(
|
|
3722
3719
|
() => AssessmetQuestionOption,
|
|
3723
3720
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3724
3721
|
),
|
|
3725
|
-
|
|
3722
|
+
JoinColumn35({ name: "selected_option_id" })
|
|
3726
3723
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3727
3724
|
__decorateClass([
|
|
3728
3725
|
Column39({
|
|
@@ -3739,17 +3736,17 @@ AssessmentAnswer = __decorateClass([
|
|
|
3739
3736
|
], AssessmentAnswer);
|
|
3740
3737
|
|
|
3741
3738
|
// src/entities/company-skill.entity.ts
|
|
3742
|
-
import { Entity as Entity39, Column as Column40, Index as
|
|
3739
|
+
import { Entity as Entity39, Column as Column40, Index as Index31, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36 } from "typeorm";
|
|
3743
3740
|
var CompanySkill = class extends BaseEntity {
|
|
3744
3741
|
};
|
|
3745
3742
|
// individual index to find core skills by user
|
|
3746
3743
|
__decorateClass([
|
|
3747
3744
|
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3748
|
-
|
|
3745
|
+
Index31()
|
|
3749
3746
|
], CompanySkill.prototype, "userId", 2);
|
|
3750
3747
|
__decorateClass([
|
|
3751
|
-
|
|
3752
|
-
|
|
3748
|
+
ManyToOne36(() => User, (user) => user.freelancerSkills),
|
|
3749
|
+
JoinColumn36({ name: "user_id" })
|
|
3753
3750
|
], CompanySkill.prototype, "user", 2);
|
|
3754
3751
|
__decorateClass([
|
|
3755
3752
|
Column40({ name: "skill_name", type: "varchar", nullable: true })
|
|
@@ -3759,16 +3756,16 @@ CompanySkill = __decorateClass([
|
|
|
3759
3756
|
], CompanySkill);
|
|
3760
3757
|
|
|
3761
3758
|
// src/entities/admin-user-role.entity.ts
|
|
3762
|
-
import { Entity as Entity43, Column as Column44, ManyToOne as
|
|
3759
|
+
import { Entity as Entity43, Column as Column44, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38 } from "typeorm";
|
|
3763
3760
|
|
|
3764
3761
|
// src/entities/admin-role.entity.ts
|
|
3765
|
-
import { Entity as Entity42, Column as Column43, Index as
|
|
3762
|
+
import { Entity as Entity42, Column as Column43, Index as Index34, OneToMany as OneToMany15 } from "typeorm";
|
|
3766
3763
|
|
|
3767
3764
|
// src/entities/admin-role-permission.entity.ts
|
|
3768
|
-
import { Entity as Entity41, Column as Column42, ManyToOne as
|
|
3765
|
+
import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37 } from "typeorm";
|
|
3769
3766
|
|
|
3770
3767
|
// src/entities/admin-permission.entity.ts
|
|
3771
|
-
import { Entity as Entity40, Column as Column41, Index as
|
|
3768
|
+
import { Entity as Entity40, Column as Column41, Index as Index32, OneToMany as OneToMany14 } from "typeorm";
|
|
3772
3769
|
var AdminPermission = class extends BaseEntity {
|
|
3773
3770
|
};
|
|
3774
3771
|
__decorateClass([
|
|
@@ -3781,7 +3778,7 @@ __decorateClass([
|
|
|
3781
3778
|
unique: true,
|
|
3782
3779
|
nullable: true
|
|
3783
3780
|
}),
|
|
3784
|
-
|
|
3781
|
+
Index32()
|
|
3785
3782
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3786
3783
|
__decorateClass([
|
|
3787
3784
|
Column41({ name: "permission_description", type: "varchar", nullable: true })
|
|
@@ -3793,7 +3790,7 @@ __decorateClass([
|
|
|
3793
3790
|
Column41({ name: "is_active", type: "boolean", default: true })
|
|
3794
3791
|
], AdminPermission.prototype, "isActive", 2);
|
|
3795
3792
|
__decorateClass([
|
|
3796
|
-
|
|
3793
|
+
OneToMany14(
|
|
3797
3794
|
() => AdminRolePermission,
|
|
3798
3795
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3799
3796
|
)
|
|
@@ -3814,8 +3811,8 @@ __decorateClass([
|
|
|
3814
3811
|
})
|
|
3815
3812
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3816
3813
|
__decorateClass([
|
|
3817
|
-
|
|
3818
|
-
|
|
3814
|
+
ManyToOne37(() => AdminRole),
|
|
3815
|
+
JoinColumn37({ name: "role_id" })
|
|
3819
3816
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3820
3817
|
__decorateClass([
|
|
3821
3818
|
Column42({
|
|
@@ -3826,8 +3823,8 @@ __decorateClass([
|
|
|
3826
3823
|
})
|
|
3827
3824
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3828
3825
|
__decorateClass([
|
|
3829
|
-
|
|
3830
|
-
|
|
3826
|
+
ManyToOne37(() => AdminPermission),
|
|
3827
|
+
JoinColumn37({ name: "permission_id" })
|
|
3831
3828
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3832
3829
|
AdminRolePermission = __decorateClass([
|
|
3833
3830
|
Entity41("admin_role_permissions")
|
|
@@ -3841,7 +3838,7 @@ __decorateClass([
|
|
|
3841
3838
|
], AdminRole.prototype, "roleName", 2);
|
|
3842
3839
|
__decorateClass([
|
|
3843
3840
|
Column43({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3844
|
-
|
|
3841
|
+
Index34()
|
|
3845
3842
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3846
3843
|
__decorateClass([
|
|
3847
3844
|
Column43({ name: "role_description", type: "varchar", nullable: true })
|
|
@@ -3850,13 +3847,13 @@ __decorateClass([
|
|
|
3850
3847
|
Column43({ name: "is_active", type: "boolean", default: true })
|
|
3851
3848
|
], AdminRole.prototype, "isActive", 2);
|
|
3852
3849
|
__decorateClass([
|
|
3853
|
-
|
|
3850
|
+
OneToMany15(
|
|
3854
3851
|
() => AdminRolePermission,
|
|
3855
3852
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3856
3853
|
)
|
|
3857
3854
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3858
3855
|
__decorateClass([
|
|
3859
|
-
|
|
3856
|
+
OneToMany15(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3860
3857
|
], AdminRole.prototype, "userRoles", 2);
|
|
3861
3858
|
AdminRole = __decorateClass([
|
|
3862
3859
|
Entity42("admin_roles")
|
|
@@ -3874,8 +3871,8 @@ __decorateClass([
|
|
|
3874
3871
|
})
|
|
3875
3872
|
], AdminUserRole.prototype, "userId", 2);
|
|
3876
3873
|
__decorateClass([
|
|
3877
|
-
|
|
3878
|
-
|
|
3874
|
+
ManyToOne38(() => User),
|
|
3875
|
+
JoinColumn38({ name: "user_id" })
|
|
3879
3876
|
], AdminUserRole.prototype, "user", 2);
|
|
3880
3877
|
__decorateClass([
|
|
3881
3878
|
Column44({
|
|
@@ -3886,8 +3883,8 @@ __decorateClass([
|
|
|
3886
3883
|
})
|
|
3887
3884
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3888
3885
|
__decorateClass([
|
|
3889
|
-
|
|
3890
|
-
|
|
3886
|
+
ManyToOne38(() => AdminRole),
|
|
3887
|
+
JoinColumn38({ name: "role_id" })
|
|
3891
3888
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3892
3889
|
AdminUserRole = __decorateClass([
|
|
3893
3890
|
Entity43("admin_user_roles")
|
|
@@ -3897,20 +3894,20 @@ AdminUserRole = __decorateClass([
|
|
|
3897
3894
|
import {
|
|
3898
3895
|
Entity as Entity44,
|
|
3899
3896
|
Column as Column45,
|
|
3900
|
-
Index as
|
|
3901
|
-
ManyToOne as
|
|
3902
|
-
JoinColumn as
|
|
3897
|
+
Index as Index36,
|
|
3898
|
+
ManyToOne as ManyToOne39,
|
|
3899
|
+
JoinColumn as JoinColumn39
|
|
3903
3900
|
} from "typeorm";
|
|
3904
3901
|
var FreelancerResume = class extends BaseEntity {
|
|
3905
3902
|
};
|
|
3906
3903
|
// individual index to find profile by user
|
|
3907
3904
|
__decorateClass([
|
|
3908
3905
|
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
3909
|
-
|
|
3906
|
+
Index36()
|
|
3910
3907
|
], FreelancerResume.prototype, "userId", 2);
|
|
3911
3908
|
__decorateClass([
|
|
3912
|
-
|
|
3913
|
-
|
|
3909
|
+
ManyToOne39(() => User, (user) => user.freelancerProfile),
|
|
3910
|
+
JoinColumn39({ name: "user_id" })
|
|
3914
3911
|
], FreelancerResume.prototype, "user", 2);
|
|
3915
3912
|
__decorateClass([
|
|
3916
3913
|
Column45({ name: "resume_data", type: "jsonb", nullable: true })
|
|
@@ -3951,14 +3948,14 @@ __decorateClass([
|
|
|
3951
3948
|
], User.prototype, "uniqueId", 2);
|
|
3952
3949
|
__decorateClass([
|
|
3953
3950
|
Column46({ name: "parent_id", type: "integer", nullable: true }),
|
|
3954
|
-
|
|
3951
|
+
Index37()
|
|
3955
3952
|
], User.prototype, "parentId", 2);
|
|
3956
3953
|
__decorateClass([
|
|
3957
|
-
|
|
3958
|
-
|
|
3954
|
+
ManyToOne40(() => User, (user) => user.children, { nullable: true }),
|
|
3955
|
+
JoinColumn40({ name: "parent_id" })
|
|
3959
3956
|
], User.prototype, "parent", 2);
|
|
3960
3957
|
__decorateClass([
|
|
3961
|
-
|
|
3958
|
+
OneToMany16(() => User, (user) => user.parent)
|
|
3962
3959
|
], User.prototype, "children", 2);
|
|
3963
3960
|
__decorateClass([
|
|
3964
3961
|
Column46({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
@@ -4036,7 +4033,7 @@ __decorateClass([
|
|
|
4036
4033
|
})
|
|
4037
4034
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4038
4035
|
__decorateClass([
|
|
4039
|
-
|
|
4036
|
+
OneToMany16(() => RefreshToken, (token) => token.user)
|
|
4040
4037
|
], User.prototype, "refreshTokens", 2);
|
|
4041
4038
|
__decorateClass([
|
|
4042
4039
|
Column46({
|
|
@@ -4063,94 +4060,94 @@ __decorateClass([
|
|
|
4063
4060
|
Column46({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4064
4061
|
], User.prototype, "onBoardedBy", 2);
|
|
4065
4062
|
__decorateClass([
|
|
4066
|
-
|
|
4063
|
+
OneToMany16(() => Otp, (otp) => otp.user)
|
|
4067
4064
|
], User.prototype, "otps", 2);
|
|
4068
4065
|
__decorateClass([
|
|
4069
|
-
|
|
4066
|
+
OneToMany16(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4070
4067
|
], User.prototype, "senseloafLogs", 2);
|
|
4071
4068
|
__decorateClass([
|
|
4072
|
-
|
|
4069
|
+
OneToOne2(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4073
4070
|
], User.prototype, "companyProfile", 2);
|
|
4074
4071
|
__decorateClass([
|
|
4075
|
-
|
|
4072
|
+
OneToMany16(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4076
4073
|
], User.prototype, "companySkills", 2);
|
|
4077
4074
|
__decorateClass([
|
|
4078
|
-
|
|
4075
|
+
OneToMany16(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
4079
4076
|
], User.prototype, "companyMemberRoles", 2);
|
|
4080
4077
|
__decorateClass([
|
|
4081
|
-
|
|
4078
|
+
OneToMany16(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4082
4079
|
], User.prototype, "companyAiInterview", 2);
|
|
4083
4080
|
__decorateClass([
|
|
4084
|
-
|
|
4081
|
+
OneToMany16(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4085
4082
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4086
4083
|
__decorateClass([
|
|
4087
|
-
|
|
4084
|
+
OneToOne2(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
4088
4085
|
], User.prototype, "freelancerProfile", 2);
|
|
4089
4086
|
__decorateClass([
|
|
4090
|
-
|
|
4087
|
+
OneToOne2(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4091
4088
|
], User.prototype, "freelancerResume", 2);
|
|
4092
4089
|
__decorateClass([
|
|
4093
|
-
|
|
4090
|
+
OneToMany16(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
4094
4091
|
], User.prototype, "assessments", 2);
|
|
4095
4092
|
__decorateClass([
|
|
4096
|
-
|
|
4093
|
+
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
4097
4094
|
], User.prototype, "assessmentAnswers", 2);
|
|
4098
4095
|
__decorateClass([
|
|
4099
|
-
|
|
4096
|
+
OneToMany16(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4100
4097
|
], User.prototype, "freelancerSkills", 2);
|
|
4101
4098
|
__decorateClass([
|
|
4102
|
-
|
|
4099
|
+
OneToMany16(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
4103
4100
|
], User.prototype, "freelancerExperience", 2);
|
|
4104
4101
|
__decorateClass([
|
|
4105
|
-
|
|
4102
|
+
OneToMany16(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
4106
4103
|
], User.prototype, "freelancerEducation", 2);
|
|
4107
4104
|
__decorateClass([
|
|
4108
|
-
|
|
4105
|
+
OneToMany16(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
4109
4106
|
], User.prototype, "freelancerProject", 2);
|
|
4110
4107
|
__decorateClass([
|
|
4111
|
-
|
|
4108
|
+
OneToMany16(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
4112
4109
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4113
4110
|
__decorateClass([
|
|
4114
|
-
|
|
4111
|
+
OneToMany16(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4115
4112
|
], User.prototype, "freelancerTool", 2);
|
|
4116
4113
|
__decorateClass([
|
|
4117
|
-
|
|
4114
|
+
OneToMany16(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4118
4115
|
], User.prototype, "freelancerFramework", 2);
|
|
4119
4116
|
__decorateClass([
|
|
4120
|
-
|
|
4117
|
+
OneToOne2(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4121
4118
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4122
4119
|
__decorateClass([
|
|
4123
|
-
|
|
4120
|
+
OneToMany16(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4124
4121
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4125
4122
|
__decorateClass([
|
|
4126
|
-
|
|
4123
|
+
OneToMany16(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4127
4124
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4128
4125
|
__decorateClass([
|
|
4129
|
-
|
|
4126
|
+
OneToMany16(() => F2fInterviewRescheduleRequest, (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate)
|
|
4130
4127
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4131
4128
|
__decorateClass([
|
|
4132
|
-
|
|
4129
|
+
OneToMany16(() => Job, (job) => job.user)
|
|
4133
4130
|
], User.prototype, "jobs", 2);
|
|
4134
4131
|
__decorateClass([
|
|
4135
|
-
|
|
4132
|
+
OneToMany16(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4136
4133
|
], User.prototype, "jobApplications", 2);
|
|
4137
4134
|
__decorateClass([
|
|
4138
|
-
|
|
4135
|
+
OneToMany16(() => Interview, (interview) => interview.user)
|
|
4139
4136
|
], User.prototype, "interviews", 2);
|
|
4140
4137
|
__decorateClass([
|
|
4141
|
-
|
|
4138
|
+
OneToMany16(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4142
4139
|
], User.prototype, "bankDetail", 2);
|
|
4143
4140
|
__decorateClass([
|
|
4144
|
-
|
|
4141
|
+
OneToMany16(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
4145
4142
|
], User.prototype, "systemPreference", 2);
|
|
4146
4143
|
__decorateClass([
|
|
4147
|
-
|
|
4144
|
+
OneToMany16(() => Rating, (rating) => rating.reviewer)
|
|
4148
4145
|
], User.prototype, "givenRatings", 2);
|
|
4149
4146
|
__decorateClass([
|
|
4150
|
-
|
|
4147
|
+
OneToMany16(() => Rating, (rating) => rating.reviewee)
|
|
4151
4148
|
], User.prototype, "receivedRatings", 2);
|
|
4152
4149
|
__decorateClass([
|
|
4153
|
-
|
|
4150
|
+
OneToMany16(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4154
4151
|
], User.prototype, "adminUserRoles", 2);
|
|
4155
4152
|
User = __decorateClass([
|
|
4156
4153
|
Entity45("users")
|
|
@@ -4166,19 +4163,19 @@ var Rating = class extends BaseEntity {
|
|
|
4166
4163
|
};
|
|
4167
4164
|
__decorateClass([
|
|
4168
4165
|
Column47({ name: "reviewer_id", type: "integer" }),
|
|
4169
|
-
|
|
4166
|
+
Index38()
|
|
4170
4167
|
], Rating.prototype, "reviewer_id", 2);
|
|
4171
4168
|
__decorateClass([
|
|
4172
|
-
|
|
4173
|
-
|
|
4169
|
+
ManyToOne41(() => User, { onDelete: "CASCADE" }),
|
|
4170
|
+
JoinColumn41({ name: "reviewer_id" })
|
|
4174
4171
|
], Rating.prototype, "reviewer", 2);
|
|
4175
4172
|
__decorateClass([
|
|
4176
4173
|
Column47({ name: "reviewee_id", type: "integer" }),
|
|
4177
|
-
|
|
4174
|
+
Index38()
|
|
4178
4175
|
], Rating.prototype, "reviewee_id", 2);
|
|
4179
4176
|
__decorateClass([
|
|
4180
|
-
|
|
4181
|
-
|
|
4177
|
+
ManyToOne41(() => User, { onDelete: "CASCADE" }),
|
|
4178
|
+
JoinColumn41({ name: "reviewee_id" })
|
|
4182
4179
|
], Rating.prototype, "reviewee", 2);
|
|
4183
4180
|
__decorateClass([
|
|
4184
4181
|
Column47({
|
|
@@ -6186,6 +6183,25 @@ __decorateClass([
|
|
|
6186
6183
|
Commission = __decorateClass([
|
|
6187
6184
|
Entity55("commissions")
|
|
6188
6185
|
], Commission);
|
|
6186
|
+
|
|
6187
|
+
// src/entities/calendly-meeting-log.entity.ts
|
|
6188
|
+
import {
|
|
6189
|
+
Entity as Entity56,
|
|
6190
|
+
Column as Column57,
|
|
6191
|
+
Index as Index39
|
|
6192
|
+
} from "typeorm";
|
|
6193
|
+
var CalendlyMeetingLog = class extends BaseEntity {
|
|
6194
|
+
};
|
|
6195
|
+
__decorateClass([
|
|
6196
|
+
Column57({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
6197
|
+
Index39()
|
|
6198
|
+
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
6199
|
+
__decorateClass([
|
|
6200
|
+
Column57({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
6201
|
+
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
6202
|
+
CalendlyMeetingLog = __decorateClass([
|
|
6203
|
+
Entity56("calendly_meeting_logs")
|
|
6204
|
+
], CalendlyMeetingLog);
|
|
6189
6205
|
export {
|
|
6190
6206
|
ADMIN_FREELANCER_PATTERN,
|
|
6191
6207
|
ADMIN_JOB_PATTERN,
|
|
@@ -6225,8 +6241,7 @@ export {
|
|
|
6225
6241
|
COMPANY_MEMBERS_PATTERNS,
|
|
6226
6242
|
COMPANY_ROLES_PATTERNS,
|
|
6227
6243
|
COUNTRY_PATTERN,
|
|
6228
|
-
|
|
6229
|
-
CalendlyMeetingStatus,
|
|
6244
|
+
CalendlyMeetingLog,
|
|
6230
6245
|
CandidateType,
|
|
6231
6246
|
CaseStudyDto,
|
|
6232
6247
|
CategoryEmum,
|