@experts_hub/shared 1.0.338 → 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 +56 -29
- package/dist/index.d.ts +56 -29
- package/dist/index.js +156 -90
- package/dist/index.mjs +403 -336
- package/dist/modules/interview/dto/create-f2f-interview-reschedule-request.dto.d.ts +5 -0
- package/dist/modules/interview/dto/create-f2f-interview.dto.d.ts +6 -0
- package/dist/modules/interview/dto/index.d.ts +2 -0
- package/dist/modules/interview/pattern/pattern.d.ts +12 -0
- 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, "
|
|
2684
|
+
Column18({ name: "provider", type: "varchar", nullable: true })
|
|
2685
|
+
], F2FInterview.prototype, "provider", 2);
|
|
2679
2686
|
__decorateClass([
|
|
2680
|
-
Column18({ name: "
|
|
2681
|
-
], F2FInterview.prototype, "
|
|
2687
|
+
Column18({ name: "provider_event_id", type: "varchar", nullable: true })
|
|
2688
|
+
], F2FInterview.prototype, "providerEventId", 2);
|
|
2682
2689
|
__decorateClass([
|
|
2683
|
-
|
|
2684
|
-
], F2FInterview.prototype, "
|
|
2690
|
+
OneToMany6(() => F2FInterviewSchedule, (f2fInterviewSchedule) => f2fInterviewSchedule.f2fInterview)
|
|
2691
|
+
], F2FInterview.prototype, "schedules", 2);
|
|
2685
2692
|
__decorateClass([
|
|
2686
|
-
|
|
2687
|
-
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2688
|
-
__decorateClass([
|
|
2689
|
-
Column18({ name: "calendly_meeting_id", type: "integer", nullable: true })
|
|
2690
|
-
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2691
|
-
__decorateClass([
|
|
2692
|
-
OneToOne2(() => CalendlyMeeting),
|
|
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,13 +3412,7 @@ FreelancerAssessment = __decorateClass([
|
|
|
3415
3412
|
], FreelancerAssessment);
|
|
3416
3413
|
|
|
3417
3414
|
// src/entities/freelancer-declaration.entity.ts
|
|
3418
|
-
import {
|
|
3419
|
-
Entity as Entity31,
|
|
3420
|
-
Column as Column32,
|
|
3421
|
-
Index as Index25,
|
|
3422
|
-
ManyToOne as ManyToOne29,
|
|
3423
|
-
JoinColumn as JoinColumn29
|
|
3424
|
-
} from "typeorm";
|
|
3415
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
|
|
3425
3416
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3426
3417
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3427
3418
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3434,11 +3425,11 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3434
3425
|
// individual index to find declaration by user
|
|
3435
3426
|
__decorateClass([
|
|
3436
3427
|
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3437
|
-
|
|
3428
|
+
Index24()
|
|
3438
3429
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3439
3430
|
__decorateClass([
|
|
3440
|
-
|
|
3441
|
-
|
|
3431
|
+
ManyToOne30(() => User, (user) => user.freelancerDeclaration),
|
|
3432
|
+
JoinColumn30({ name: "user_id" })
|
|
3442
3433
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3443
3434
|
__decorateClass([
|
|
3444
3435
|
Column32({
|
|
@@ -3468,32 +3459,32 @@ FreelancerDeclaration = __decorateClass([
|
|
|
3468
3459
|
import {
|
|
3469
3460
|
Column as Column36,
|
|
3470
3461
|
Entity as Entity35,
|
|
3471
|
-
ManyToOne as
|
|
3472
|
-
JoinColumn as
|
|
3473
|
-
Index as
|
|
3462
|
+
ManyToOne as ManyToOne33,
|
|
3463
|
+
JoinColumn as JoinColumn33,
|
|
3464
|
+
Index as Index28
|
|
3474
3465
|
} from "typeorm";
|
|
3475
3466
|
|
|
3476
3467
|
// src/entities/company-role.entity.ts
|
|
3477
3468
|
import {
|
|
3478
3469
|
Column as Column35,
|
|
3479
3470
|
Entity as Entity34,
|
|
3480
|
-
Index as
|
|
3481
|
-
JoinColumn as
|
|
3482
|
-
ManyToOne as
|
|
3483
|
-
OneToMany as
|
|
3471
|
+
Index as Index27,
|
|
3472
|
+
JoinColumn as JoinColumn32,
|
|
3473
|
+
ManyToOne as ManyToOne32,
|
|
3474
|
+
OneToMany as OneToMany10
|
|
3484
3475
|
} from "typeorm";
|
|
3485
3476
|
|
|
3486
3477
|
// src/entities/company-role-permission.entity.ts
|
|
3487
3478
|
import {
|
|
3488
3479
|
Column as Column34,
|
|
3489
3480
|
Entity as Entity33,
|
|
3490
|
-
ManyToOne as
|
|
3491
|
-
JoinColumn as
|
|
3492
|
-
Index as
|
|
3481
|
+
ManyToOne as ManyToOne31,
|
|
3482
|
+
JoinColumn as JoinColumn31,
|
|
3483
|
+
Index as Index26
|
|
3493
3484
|
} from "typeorm";
|
|
3494
3485
|
|
|
3495
3486
|
// src/entities/permission.entity.ts
|
|
3496
|
-
import { Column as Column33, Entity as Entity32, Index as
|
|
3487
|
+
import { Column as Column33, Entity as Entity32, Index as Index25 } from "typeorm";
|
|
3497
3488
|
var Permission = class extends BaseEntity {
|
|
3498
3489
|
};
|
|
3499
3490
|
__decorateClass([
|
|
@@ -3501,7 +3492,7 @@ __decorateClass([
|
|
|
3501
3492
|
], Permission.prototype, "name", 2);
|
|
3502
3493
|
__decorateClass([
|
|
3503
3494
|
Column33({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3504
|
-
|
|
3495
|
+
Index25()
|
|
3505
3496
|
], Permission.prototype, "slug", 2);
|
|
3506
3497
|
__decorateClass([
|
|
3507
3498
|
Column33({ name: "description", type: "text", nullable: true })
|
|
@@ -3518,21 +3509,21 @@ var CompanyRolePermission = class extends BaseEntity {
|
|
|
3518
3509
|
};
|
|
3519
3510
|
__decorateClass([
|
|
3520
3511
|
Column34({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3521
|
-
|
|
3512
|
+
Index26()
|
|
3522
3513
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3523
3514
|
__decorateClass([
|
|
3524
|
-
|
|
3515
|
+
ManyToOne31(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3525
3516
|
onDelete: "CASCADE"
|
|
3526
3517
|
}),
|
|
3527
|
-
|
|
3518
|
+
JoinColumn31({ name: "company_role_id" })
|
|
3528
3519
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3529
3520
|
__decorateClass([
|
|
3530
3521
|
Column34({ name: "permission_id", type: "integer" }),
|
|
3531
|
-
|
|
3522
|
+
Index26()
|
|
3532
3523
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3533
3524
|
__decorateClass([
|
|
3534
|
-
|
|
3535
|
-
|
|
3525
|
+
ManyToOne31(() => Permission, { onDelete: "CASCADE" }),
|
|
3526
|
+
JoinColumn31({ name: "permission_id" })
|
|
3536
3527
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3537
3528
|
__decorateClass([
|
|
3538
3529
|
Column34({ name: "assigned_by", type: "integer", nullable: true })
|
|
@@ -3546,18 +3537,18 @@ var CompanyRole = class extends BaseEntity {
|
|
|
3546
3537
|
};
|
|
3547
3538
|
__decorateClass([
|
|
3548
3539
|
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3549
|
-
|
|
3540
|
+
Index27()
|
|
3550
3541
|
], CompanyRole.prototype, "userId", 2);
|
|
3551
3542
|
__decorateClass([
|
|
3552
|
-
|
|
3553
|
-
|
|
3543
|
+
ManyToOne32(() => User, (user) => user.otps),
|
|
3544
|
+
JoinColumn32({ name: "user_id" })
|
|
3554
3545
|
], CompanyRole.prototype, "user", 2);
|
|
3555
3546
|
__decorateClass([
|
|
3556
3547
|
Column35({ name: "name", type: "varchar" })
|
|
3557
3548
|
], CompanyRole.prototype, "name", 2);
|
|
3558
3549
|
__decorateClass([
|
|
3559
3550
|
Column35({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3560
|
-
|
|
3551
|
+
Index27()
|
|
3561
3552
|
], CompanyRole.prototype, "slug", 2);
|
|
3562
3553
|
__decorateClass([
|
|
3563
3554
|
Column35({ name: "description", type: "text", nullable: true })
|
|
@@ -3566,7 +3557,7 @@ __decorateClass([
|
|
|
3566
3557
|
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3567
3558
|
], CompanyRole.prototype, "isActive", 2);
|
|
3568
3559
|
__decorateClass([
|
|
3569
|
-
|
|
3560
|
+
OneToMany10(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3570
3561
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3571
3562
|
CompanyRole = __decorateClass([
|
|
3572
3563
|
Entity34("company_roles")
|
|
@@ -3577,19 +3568,19 @@ var CompanyMemberRole = class extends BaseEntity {
|
|
|
3577
3568
|
};
|
|
3578
3569
|
__decorateClass([
|
|
3579
3570
|
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3580
|
-
|
|
3571
|
+
Index28()
|
|
3581
3572
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3582
3573
|
__decorateClass([
|
|
3583
|
-
|
|
3584
|
-
|
|
3574
|
+
ManyToOne33(() => User),
|
|
3575
|
+
JoinColumn33({ name: "user_id" })
|
|
3585
3576
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3586
3577
|
__decorateClass([
|
|
3587
|
-
|
|
3588
|
-
|
|
3578
|
+
ManyToOne33(() => CompanyRole),
|
|
3579
|
+
JoinColumn33({ name: "company_role_id" })
|
|
3589
3580
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3590
3581
|
__decorateClass([
|
|
3591
3582
|
Column36({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3592
|
-
|
|
3583
|
+
Index28()
|
|
3593
3584
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3594
3585
|
__decorateClass([
|
|
3595
3586
|
Column36({ name: "assigned_by", type: "integer", nullable: true })
|
|
@@ -3602,22 +3593,22 @@ CompanyMemberRole = __decorateClass([
|
|
|
3602
3593
|
import {
|
|
3603
3594
|
Entity as Entity38,
|
|
3604
3595
|
Column as Column39,
|
|
3605
|
-
ManyToOne as
|
|
3606
|
-
Index as
|
|
3607
|
-
JoinColumn as
|
|
3596
|
+
ManyToOne as ManyToOne35,
|
|
3597
|
+
Index as Index30,
|
|
3598
|
+
JoinColumn as JoinColumn35
|
|
3608
3599
|
} from "typeorm";
|
|
3609
3600
|
|
|
3610
3601
|
// src/entities/assessment-question.entity.ts
|
|
3611
|
-
import { Entity as Entity37, Column as Column38, OneToMany as
|
|
3602
|
+
import { Entity as Entity37, Column as Column38, OneToMany as OneToMany12 } from "typeorm";
|
|
3612
3603
|
|
|
3613
3604
|
// src/entities/assessment-question-option.entity.ts
|
|
3614
3605
|
import {
|
|
3615
3606
|
Entity as Entity36,
|
|
3616
3607
|
Column as Column37,
|
|
3617
|
-
OneToMany as
|
|
3618
|
-
ManyToOne as
|
|
3619
|
-
Index as
|
|
3620
|
-
JoinColumn as
|
|
3608
|
+
OneToMany as OneToMany11,
|
|
3609
|
+
ManyToOne as ManyToOne34,
|
|
3610
|
+
Index as Index29,
|
|
3611
|
+
JoinColumn as JoinColumn34
|
|
3621
3612
|
} from "typeorm";
|
|
3622
3613
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3623
3614
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3629,14 +3620,14 @@ var AssessmetQuestionOption = class extends BaseEntity {
|
|
|
3629
3620
|
};
|
|
3630
3621
|
__decorateClass([
|
|
3631
3622
|
Column37({ name: "question_id", type: "integer", nullable: true }),
|
|
3632
|
-
|
|
3623
|
+
Index29()
|
|
3633
3624
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3634
3625
|
__decorateClass([
|
|
3635
|
-
|
|
3626
|
+
ManyToOne34(
|
|
3636
3627
|
() => AssessmetQuestion,
|
|
3637
3628
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3638
3629
|
),
|
|
3639
|
-
|
|
3630
|
+
JoinColumn34({ name: "question_id" })
|
|
3640
3631
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3641
3632
|
__decorateClass([
|
|
3642
3633
|
Column37({ name: "text", type: "varchar", nullable: true })
|
|
@@ -3653,7 +3644,7 @@ __decorateClass([
|
|
|
3653
3644
|
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3654
3645
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3655
3646
|
__decorateClass([
|
|
3656
|
-
|
|
3647
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3657
3648
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3658
3649
|
AssessmetQuestionOption = __decorateClass([
|
|
3659
3650
|
Entity36("assessment_question_options")
|
|
@@ -3682,10 +3673,10 @@ __decorateClass([
|
|
|
3682
3673
|
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3683
3674
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3684
3675
|
__decorateClass([
|
|
3685
|
-
|
|
3676
|
+
OneToMany12(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3686
3677
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3687
3678
|
__decorateClass([
|
|
3688
|
-
|
|
3679
|
+
OneToMany12(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3689
3680
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3690
3681
|
AssessmetQuestion = __decorateClass([
|
|
3691
3682
|
Entity37("assessment_questions")
|
|
@@ -3702,33 +3693,33 @@ var AssessmentAnswer = class extends BaseEntity {
|
|
|
3702
3693
|
};
|
|
3703
3694
|
__decorateClass([
|
|
3704
3695
|
Column39({ name: "user_id", type: "integer" }),
|
|
3705
|
-
|
|
3696
|
+
Index30()
|
|
3706
3697
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3707
3698
|
__decorateClass([
|
|
3708
|
-
|
|
3709
|
-
|
|
3699
|
+
ManyToOne35(() => User, (user) => user.assessmentAnswers),
|
|
3700
|
+
JoinColumn35({ name: "user_id" })
|
|
3710
3701
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3711
3702
|
__decorateClass([
|
|
3712
3703
|
Column39({ name: "question_id", type: "integer" }),
|
|
3713
|
-
|
|
3704
|
+
Index30()
|
|
3714
3705
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3715
3706
|
__decorateClass([
|
|
3716
|
-
|
|
3707
|
+
ManyToOne35(
|
|
3717
3708
|
() => AssessmetQuestion,
|
|
3718
3709
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3719
3710
|
),
|
|
3720
|
-
|
|
3711
|
+
JoinColumn35({ name: "question_id" })
|
|
3721
3712
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3722
3713
|
__decorateClass([
|
|
3723
3714
|
Column39({ name: "selected_option_id", type: "integer" }),
|
|
3724
|
-
|
|
3715
|
+
Index30()
|
|
3725
3716
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3726
3717
|
__decorateClass([
|
|
3727
|
-
|
|
3718
|
+
ManyToOne35(
|
|
3728
3719
|
() => AssessmetQuestionOption,
|
|
3729
3720
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3730
3721
|
),
|
|
3731
|
-
|
|
3722
|
+
JoinColumn35({ name: "selected_option_id" })
|
|
3732
3723
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3733
3724
|
__decorateClass([
|
|
3734
3725
|
Column39({
|
|
@@ -3745,17 +3736,17 @@ AssessmentAnswer = __decorateClass([
|
|
|
3745
3736
|
], AssessmentAnswer);
|
|
3746
3737
|
|
|
3747
3738
|
// src/entities/company-skill.entity.ts
|
|
3748
|
-
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";
|
|
3749
3740
|
var CompanySkill = class extends BaseEntity {
|
|
3750
3741
|
};
|
|
3751
3742
|
// individual index to find core skills by user
|
|
3752
3743
|
__decorateClass([
|
|
3753
3744
|
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3754
|
-
|
|
3745
|
+
Index31()
|
|
3755
3746
|
], CompanySkill.prototype, "userId", 2);
|
|
3756
3747
|
__decorateClass([
|
|
3757
|
-
|
|
3758
|
-
|
|
3748
|
+
ManyToOne36(() => User, (user) => user.freelancerSkills),
|
|
3749
|
+
JoinColumn36({ name: "user_id" })
|
|
3759
3750
|
], CompanySkill.prototype, "user", 2);
|
|
3760
3751
|
__decorateClass([
|
|
3761
3752
|
Column40({ name: "skill_name", type: "varchar", nullable: true })
|
|
@@ -3765,16 +3756,16 @@ CompanySkill = __decorateClass([
|
|
|
3765
3756
|
], CompanySkill);
|
|
3766
3757
|
|
|
3767
3758
|
// src/entities/admin-user-role.entity.ts
|
|
3768
|
-
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";
|
|
3769
3760
|
|
|
3770
3761
|
// src/entities/admin-role.entity.ts
|
|
3771
|
-
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";
|
|
3772
3763
|
|
|
3773
3764
|
// src/entities/admin-role-permission.entity.ts
|
|
3774
|
-
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";
|
|
3775
3766
|
|
|
3776
3767
|
// src/entities/admin-permission.entity.ts
|
|
3777
|
-
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";
|
|
3778
3769
|
var AdminPermission = class extends BaseEntity {
|
|
3779
3770
|
};
|
|
3780
3771
|
__decorateClass([
|
|
@@ -3787,7 +3778,7 @@ __decorateClass([
|
|
|
3787
3778
|
unique: true,
|
|
3788
3779
|
nullable: true
|
|
3789
3780
|
}),
|
|
3790
|
-
|
|
3781
|
+
Index32()
|
|
3791
3782
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3792
3783
|
__decorateClass([
|
|
3793
3784
|
Column41({ name: "permission_description", type: "varchar", nullable: true })
|
|
@@ -3799,7 +3790,7 @@ __decorateClass([
|
|
|
3799
3790
|
Column41({ name: "is_active", type: "boolean", default: true })
|
|
3800
3791
|
], AdminPermission.prototype, "isActive", 2);
|
|
3801
3792
|
__decorateClass([
|
|
3802
|
-
|
|
3793
|
+
OneToMany14(
|
|
3803
3794
|
() => AdminRolePermission,
|
|
3804
3795
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3805
3796
|
)
|
|
@@ -3820,8 +3811,8 @@ __decorateClass([
|
|
|
3820
3811
|
})
|
|
3821
3812
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3822
3813
|
__decorateClass([
|
|
3823
|
-
|
|
3824
|
-
|
|
3814
|
+
ManyToOne37(() => AdminRole),
|
|
3815
|
+
JoinColumn37({ name: "role_id" })
|
|
3825
3816
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3826
3817
|
__decorateClass([
|
|
3827
3818
|
Column42({
|
|
@@ -3832,8 +3823,8 @@ __decorateClass([
|
|
|
3832
3823
|
})
|
|
3833
3824
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3834
3825
|
__decorateClass([
|
|
3835
|
-
|
|
3836
|
-
|
|
3826
|
+
ManyToOne37(() => AdminPermission),
|
|
3827
|
+
JoinColumn37({ name: "permission_id" })
|
|
3837
3828
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3838
3829
|
AdminRolePermission = __decorateClass([
|
|
3839
3830
|
Entity41("admin_role_permissions")
|
|
@@ -3847,7 +3838,7 @@ __decorateClass([
|
|
|
3847
3838
|
], AdminRole.prototype, "roleName", 2);
|
|
3848
3839
|
__decorateClass([
|
|
3849
3840
|
Column43({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3850
|
-
|
|
3841
|
+
Index34()
|
|
3851
3842
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3852
3843
|
__decorateClass([
|
|
3853
3844
|
Column43({ name: "role_description", type: "varchar", nullable: true })
|
|
@@ -3856,13 +3847,13 @@ __decorateClass([
|
|
|
3856
3847
|
Column43({ name: "is_active", type: "boolean", default: true })
|
|
3857
3848
|
], AdminRole.prototype, "isActive", 2);
|
|
3858
3849
|
__decorateClass([
|
|
3859
|
-
|
|
3850
|
+
OneToMany15(
|
|
3860
3851
|
() => AdminRolePermission,
|
|
3861
3852
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3862
3853
|
)
|
|
3863
3854
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3864
3855
|
__decorateClass([
|
|
3865
|
-
|
|
3856
|
+
OneToMany15(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3866
3857
|
], AdminRole.prototype, "userRoles", 2);
|
|
3867
3858
|
AdminRole = __decorateClass([
|
|
3868
3859
|
Entity42("admin_roles")
|
|
@@ -3880,8 +3871,8 @@ __decorateClass([
|
|
|
3880
3871
|
})
|
|
3881
3872
|
], AdminUserRole.prototype, "userId", 2);
|
|
3882
3873
|
__decorateClass([
|
|
3883
|
-
|
|
3884
|
-
|
|
3874
|
+
ManyToOne38(() => User),
|
|
3875
|
+
JoinColumn38({ name: "user_id" })
|
|
3885
3876
|
], AdminUserRole.prototype, "user", 2);
|
|
3886
3877
|
__decorateClass([
|
|
3887
3878
|
Column44({
|
|
@@ -3892,8 +3883,8 @@ __decorateClass([
|
|
|
3892
3883
|
})
|
|
3893
3884
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3894
3885
|
__decorateClass([
|
|
3895
|
-
|
|
3896
|
-
|
|
3886
|
+
ManyToOne38(() => AdminRole),
|
|
3887
|
+
JoinColumn38({ name: "role_id" })
|
|
3897
3888
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3898
3889
|
AdminUserRole = __decorateClass([
|
|
3899
3890
|
Entity43("admin_user_roles")
|
|
@@ -3903,20 +3894,20 @@ AdminUserRole = __decorateClass([
|
|
|
3903
3894
|
import {
|
|
3904
3895
|
Entity as Entity44,
|
|
3905
3896
|
Column as Column45,
|
|
3906
|
-
Index as
|
|
3907
|
-
ManyToOne as
|
|
3908
|
-
JoinColumn as
|
|
3897
|
+
Index as Index36,
|
|
3898
|
+
ManyToOne as ManyToOne39,
|
|
3899
|
+
JoinColumn as JoinColumn39
|
|
3909
3900
|
} from "typeorm";
|
|
3910
3901
|
var FreelancerResume = class extends BaseEntity {
|
|
3911
3902
|
};
|
|
3912
3903
|
// individual index to find profile by user
|
|
3913
3904
|
__decorateClass([
|
|
3914
3905
|
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
3915
|
-
|
|
3906
|
+
Index36()
|
|
3916
3907
|
], FreelancerResume.prototype, "userId", 2);
|
|
3917
3908
|
__decorateClass([
|
|
3918
|
-
|
|
3919
|
-
|
|
3909
|
+
ManyToOne39(() => User, (user) => user.freelancerProfile),
|
|
3910
|
+
JoinColumn39({ name: "user_id" })
|
|
3920
3911
|
], FreelancerResume.prototype, "user", 2);
|
|
3921
3912
|
__decorateClass([
|
|
3922
3913
|
Column45({ name: "resume_data", type: "jsonb", nullable: true })
|
|
@@ -3957,14 +3948,14 @@ __decorateClass([
|
|
|
3957
3948
|
], User.prototype, "uniqueId", 2);
|
|
3958
3949
|
__decorateClass([
|
|
3959
3950
|
Column46({ name: "parent_id", type: "integer", nullable: true }),
|
|
3960
|
-
|
|
3951
|
+
Index37()
|
|
3961
3952
|
], User.prototype, "parentId", 2);
|
|
3962
3953
|
__decorateClass([
|
|
3963
|
-
|
|
3964
|
-
|
|
3954
|
+
ManyToOne40(() => User, (user) => user.children, { nullable: true }),
|
|
3955
|
+
JoinColumn40({ name: "parent_id" })
|
|
3965
3956
|
], User.prototype, "parent", 2);
|
|
3966
3957
|
__decorateClass([
|
|
3967
|
-
|
|
3958
|
+
OneToMany16(() => User, (user) => user.parent)
|
|
3968
3959
|
], User.prototype, "children", 2);
|
|
3969
3960
|
__decorateClass([
|
|
3970
3961
|
Column46({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
@@ -4042,7 +4033,7 @@ __decorateClass([
|
|
|
4042
4033
|
})
|
|
4043
4034
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4044
4035
|
__decorateClass([
|
|
4045
|
-
|
|
4036
|
+
OneToMany16(() => RefreshToken, (token) => token.user)
|
|
4046
4037
|
], User.prototype, "refreshTokens", 2);
|
|
4047
4038
|
__decorateClass([
|
|
4048
4039
|
Column46({
|
|
@@ -4069,94 +4060,94 @@ __decorateClass([
|
|
|
4069
4060
|
Column46({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4070
4061
|
], User.prototype, "onBoardedBy", 2);
|
|
4071
4062
|
__decorateClass([
|
|
4072
|
-
|
|
4063
|
+
OneToMany16(() => Otp, (otp) => otp.user)
|
|
4073
4064
|
], User.prototype, "otps", 2);
|
|
4074
4065
|
__decorateClass([
|
|
4075
|
-
|
|
4066
|
+
OneToMany16(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4076
4067
|
], User.prototype, "senseloafLogs", 2);
|
|
4077
4068
|
__decorateClass([
|
|
4078
|
-
|
|
4069
|
+
OneToOne2(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4079
4070
|
], User.prototype, "companyProfile", 2);
|
|
4080
4071
|
__decorateClass([
|
|
4081
|
-
|
|
4072
|
+
OneToMany16(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4082
4073
|
], User.prototype, "companySkills", 2);
|
|
4083
4074
|
__decorateClass([
|
|
4084
|
-
|
|
4075
|
+
OneToMany16(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
4085
4076
|
], User.prototype, "companyMemberRoles", 2);
|
|
4086
4077
|
__decorateClass([
|
|
4087
|
-
|
|
4078
|
+
OneToMany16(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4088
4079
|
], User.prototype, "companyAiInterview", 2);
|
|
4089
4080
|
__decorateClass([
|
|
4090
|
-
|
|
4081
|
+
OneToMany16(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4091
4082
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4092
4083
|
__decorateClass([
|
|
4093
|
-
|
|
4084
|
+
OneToOne2(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
4094
4085
|
], User.prototype, "freelancerProfile", 2);
|
|
4095
4086
|
__decorateClass([
|
|
4096
|
-
|
|
4087
|
+
OneToOne2(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4097
4088
|
], User.prototype, "freelancerResume", 2);
|
|
4098
4089
|
__decorateClass([
|
|
4099
|
-
|
|
4090
|
+
OneToMany16(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
4100
4091
|
], User.prototype, "assessments", 2);
|
|
4101
4092
|
__decorateClass([
|
|
4102
|
-
|
|
4093
|
+
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
4103
4094
|
], User.prototype, "assessmentAnswers", 2);
|
|
4104
4095
|
__decorateClass([
|
|
4105
|
-
|
|
4096
|
+
OneToMany16(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4106
4097
|
], User.prototype, "freelancerSkills", 2);
|
|
4107
4098
|
__decorateClass([
|
|
4108
|
-
|
|
4099
|
+
OneToMany16(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
4109
4100
|
], User.prototype, "freelancerExperience", 2);
|
|
4110
4101
|
__decorateClass([
|
|
4111
|
-
|
|
4102
|
+
OneToMany16(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
4112
4103
|
], User.prototype, "freelancerEducation", 2);
|
|
4113
4104
|
__decorateClass([
|
|
4114
|
-
|
|
4105
|
+
OneToMany16(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
4115
4106
|
], User.prototype, "freelancerProject", 2);
|
|
4116
4107
|
__decorateClass([
|
|
4117
|
-
|
|
4108
|
+
OneToMany16(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
4118
4109
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4119
4110
|
__decorateClass([
|
|
4120
|
-
|
|
4111
|
+
OneToMany16(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4121
4112
|
], User.prototype, "freelancerTool", 2);
|
|
4122
4113
|
__decorateClass([
|
|
4123
|
-
|
|
4114
|
+
OneToMany16(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4124
4115
|
], User.prototype, "freelancerFramework", 2);
|
|
4125
4116
|
__decorateClass([
|
|
4126
|
-
|
|
4117
|
+
OneToOne2(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4127
4118
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4128
4119
|
__decorateClass([
|
|
4129
|
-
|
|
4120
|
+
OneToMany16(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4130
4121
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4131
4122
|
__decorateClass([
|
|
4132
|
-
|
|
4123
|
+
OneToMany16(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4133
4124
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4134
4125
|
__decorateClass([
|
|
4135
|
-
|
|
4126
|
+
OneToMany16(() => F2fInterviewRescheduleRequest, (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate)
|
|
4136
4127
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4137
4128
|
__decorateClass([
|
|
4138
|
-
|
|
4129
|
+
OneToMany16(() => Job, (job) => job.user)
|
|
4139
4130
|
], User.prototype, "jobs", 2);
|
|
4140
4131
|
__decorateClass([
|
|
4141
|
-
|
|
4132
|
+
OneToMany16(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4142
4133
|
], User.prototype, "jobApplications", 2);
|
|
4143
4134
|
__decorateClass([
|
|
4144
|
-
|
|
4135
|
+
OneToMany16(() => Interview, (interview) => interview.user)
|
|
4145
4136
|
], User.prototype, "interviews", 2);
|
|
4146
4137
|
__decorateClass([
|
|
4147
|
-
|
|
4138
|
+
OneToMany16(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4148
4139
|
], User.prototype, "bankDetail", 2);
|
|
4149
4140
|
__decorateClass([
|
|
4150
|
-
|
|
4141
|
+
OneToMany16(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
4151
4142
|
], User.prototype, "systemPreference", 2);
|
|
4152
4143
|
__decorateClass([
|
|
4153
|
-
|
|
4144
|
+
OneToMany16(() => Rating, (rating) => rating.reviewer)
|
|
4154
4145
|
], User.prototype, "givenRatings", 2);
|
|
4155
4146
|
__decorateClass([
|
|
4156
|
-
|
|
4147
|
+
OneToMany16(() => Rating, (rating) => rating.reviewee)
|
|
4157
4148
|
], User.prototype, "receivedRatings", 2);
|
|
4158
4149
|
__decorateClass([
|
|
4159
|
-
|
|
4150
|
+
OneToMany16(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4160
4151
|
], User.prototype, "adminUserRoles", 2);
|
|
4161
4152
|
User = __decorateClass([
|
|
4162
4153
|
Entity45("users")
|
|
@@ -4172,19 +4163,19 @@ var Rating = class extends BaseEntity {
|
|
|
4172
4163
|
};
|
|
4173
4164
|
__decorateClass([
|
|
4174
4165
|
Column47({ name: "reviewer_id", type: "integer" }),
|
|
4175
|
-
|
|
4166
|
+
Index38()
|
|
4176
4167
|
], Rating.prototype, "reviewer_id", 2);
|
|
4177
4168
|
__decorateClass([
|
|
4178
|
-
|
|
4179
|
-
|
|
4169
|
+
ManyToOne41(() => User, { onDelete: "CASCADE" }),
|
|
4170
|
+
JoinColumn41({ name: "reviewer_id" })
|
|
4180
4171
|
], Rating.prototype, "reviewer", 2);
|
|
4181
4172
|
__decorateClass([
|
|
4182
4173
|
Column47({ name: "reviewee_id", type: "integer" }),
|
|
4183
|
-
|
|
4174
|
+
Index38()
|
|
4184
4175
|
], Rating.prototype, "reviewee_id", 2);
|
|
4185
4176
|
__decorateClass([
|
|
4186
|
-
|
|
4187
|
-
|
|
4177
|
+
ManyToOne41(() => User, { onDelete: "CASCADE" }),
|
|
4178
|
+
JoinColumn41({ name: "reviewee_id" })
|
|
4188
4179
|
], Rating.prototype, "reviewee", 2);
|
|
4189
4180
|
__decorateClass([
|
|
4190
4181
|
Column47({
|
|
@@ -5363,6 +5354,18 @@ var ADMIN_PERMISSION_PATTERN = {
|
|
|
5363
5354
|
var INTERVIEW_INVITE_PATTERN = {
|
|
5364
5355
|
sendInterviewInvite: "send.interview.invite"
|
|
5365
5356
|
};
|
|
5357
|
+
var F2F_INTERVIEW_PATTERN = {
|
|
5358
|
+
fetchBookings: "fetch.bookings",
|
|
5359
|
+
fetchBookingById: "fetch.booking.by.id",
|
|
5360
|
+
fetchInterviewsByInterviewerId: "fetch.interviews.by.interviewer.id",
|
|
5361
|
+
fetchInterviewsByCandidateId: "fetch.interviews.by.candidate.id",
|
|
5362
|
+
createF2FInterview: "create.f2f.interview",
|
|
5363
|
+
createF2FInterviewRescheduleRequest: "create.f2f.interview.reschedule.request",
|
|
5364
|
+
rejectF2FInterviewRescheduleRequest: "reject.f2f.interview.reschedule.request"
|
|
5365
|
+
};
|
|
5366
|
+
var CALENDLY_PATTERN = {
|
|
5367
|
+
handleCalendlyWebhook: "handle.calendly.webhook"
|
|
5368
|
+
};
|
|
5366
5369
|
|
|
5367
5370
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
5368
5371
|
import {
|
|
@@ -5434,6 +5437,48 @@ __decorateClass([
|
|
|
5434
5437
|
Type10(() => CandidatesDto)
|
|
5435
5438
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
5436
5439
|
|
|
5440
|
+
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
5441
|
+
import {
|
|
5442
|
+
IsString as IsString38,
|
|
5443
|
+
IsNotEmpty as IsNotEmpty56,
|
|
5444
|
+
IsEmail as IsEmail16,
|
|
5445
|
+
IsNumber as IsNumber7
|
|
5446
|
+
} from "class-validator";
|
|
5447
|
+
var CreateF2FInterviewDto = class {
|
|
5448
|
+
};
|
|
5449
|
+
__decorateClass([
|
|
5450
|
+
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
5451
|
+
IsNotEmpty56({ message: "Invitee email is required." })
|
|
5452
|
+
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
5453
|
+
__decorateClass([
|
|
5454
|
+
IsString38({ message: "Invitee name must be a string." }),
|
|
5455
|
+
IsNotEmpty56({ message: "Invitee name is required." })
|
|
5456
|
+
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
5457
|
+
__decorateClass([
|
|
5458
|
+
IsNumber7({}, { message: "Interview ID must be a number." })
|
|
5459
|
+
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
5460
|
+
__decorateClass([
|
|
5461
|
+
IsNumber7({}, { message: "Candidate ID must be a number." })
|
|
5462
|
+
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
5463
|
+
|
|
5464
|
+
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
5465
|
+
import {
|
|
5466
|
+
IsString as IsString39,
|
|
5467
|
+
IsNotEmpty as IsNotEmpty57
|
|
5468
|
+
} from "class-validator";
|
|
5469
|
+
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
5470
|
+
};
|
|
5471
|
+
__decorateClass([
|
|
5472
|
+
IsNotEmpty57({ message: "F2F Interview ID is required." })
|
|
5473
|
+
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
5474
|
+
__decorateClass([
|
|
5475
|
+
IsNotEmpty57({ message: "Rescheduled date is required." })
|
|
5476
|
+
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
5477
|
+
__decorateClass([
|
|
5478
|
+
IsString39({ message: "Rescheduled slot must be a string." }),
|
|
5479
|
+
IsNotEmpty57({ message: "Rescheduled slot is required." })
|
|
5480
|
+
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
5481
|
+
|
|
5437
5482
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
5438
5483
|
import { config } from "dotenv";
|
|
5439
5484
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -6138,6 +6183,25 @@ __decorateClass([
|
|
|
6138
6183
|
Commission = __decorateClass([
|
|
6139
6184
|
Entity55("commissions")
|
|
6140
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);
|
|
6141
6205
|
export {
|
|
6142
6206
|
ADMIN_FREELANCER_PATTERN,
|
|
6143
6207
|
ADMIN_JOB_PATTERN,
|
|
@@ -6169,6 +6233,7 @@ export {
|
|
|
6169
6233
|
BankAccountTypeEnum,
|
|
6170
6234
|
BankDetail,
|
|
6171
6235
|
BaseEntity,
|
|
6236
|
+
CALENDLY_PATTERN,
|
|
6172
6237
|
CITY_PATTERN,
|
|
6173
6238
|
CLIENT_ADMIN_PATTERNS,
|
|
6174
6239
|
CLIENT_PROFILE_PATTERN,
|
|
@@ -6176,8 +6241,7 @@ export {
|
|
|
6176
6241
|
COMPANY_MEMBERS_PATTERNS,
|
|
6177
6242
|
COMPANY_ROLES_PATTERNS,
|
|
6178
6243
|
COUNTRY_PATTERN,
|
|
6179
|
-
|
|
6180
|
-
CalendlyMeetingStatus,
|
|
6244
|
+
CalendlyMeetingLog,
|
|
6181
6245
|
CandidateType,
|
|
6182
6246
|
CaseStudyDto,
|
|
6183
6247
|
CategoryEmum,
|
|
@@ -6204,6 +6268,8 @@ export {
|
|
|
6204
6268
|
CreateCmsDto,
|
|
6205
6269
|
CreateCompanyMemberDto,
|
|
6206
6270
|
CreateCompanyRoleDto,
|
|
6271
|
+
CreateF2FInterviewDto,
|
|
6272
|
+
CreateF2FInterviewRescheduleRequestDto,
|
|
6207
6273
|
CreateFreelancerDto,
|
|
6208
6274
|
CreateLeadDto,
|
|
6209
6275
|
CreateQuestionDto,
|
|
@@ -6216,6 +6282,7 @@ export {
|
|
|
6216
6282
|
EmploymentType,
|
|
6217
6283
|
ExperienceDto,
|
|
6218
6284
|
F2FInterview,
|
|
6285
|
+
F2F_INTERVIEW_PATTERN,
|
|
6219
6286
|
F2fInterviewRescheduleRequest,
|
|
6220
6287
|
F2fInterviewRescheduleRequestStatusEnum,
|
|
6221
6288
|
F2fInterviewStatusEnum,
|