@experts_hub/shared 1.0.336 → 1.0.337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/f2f-interview-reschedule-request.entity.d.ts +17 -0
- package/dist/entities/f2f-interview.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +602 -550
- package/dist/index.mjs +559 -503
- package/package.json +1 -1
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
|
|
1402
|
+
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40, Index as Index39 } from "typeorm";
|
|
1403
1403
|
|
|
1404
1404
|
// src/entities/user.entity.ts
|
|
1405
1405
|
import {
|
|
1406
|
-
Entity as
|
|
1407
|
-
Column as
|
|
1408
|
-
OneToMany as
|
|
1406
|
+
Entity as Entity45,
|
|
1407
|
+
Column as Column46,
|
|
1408
|
+
OneToMany as OneToMany15,
|
|
1409
1409
|
OneToOne as OneToOne3,
|
|
1410
1410
|
Index as Index38,
|
|
1411
|
-
ManyToOne as
|
|
1412
|
-
JoinColumn as
|
|
1411
|
+
ManyToOne as ManyToOne39,
|
|
1412
|
+
JoinColumn as JoinColumn39
|
|
1413
1413
|
} from "typeorm";
|
|
1414
1414
|
|
|
1415
1415
|
// src/entities/base.entity.ts
|
|
@@ -2124,12 +2124,12 @@ CompanyProfile = __decorateClass([
|
|
|
2124
2124
|
|
|
2125
2125
|
// src/entities/job.entity.ts
|
|
2126
2126
|
import {
|
|
2127
|
-
Entity as
|
|
2128
|
-
Column as
|
|
2127
|
+
Entity as Entity20,
|
|
2128
|
+
Column as Column21,
|
|
2129
2129
|
Index as Index14,
|
|
2130
|
-
ManyToOne as
|
|
2131
|
-
JoinColumn as
|
|
2132
|
-
OneToMany as
|
|
2130
|
+
ManyToOne as ManyToOne18,
|
|
2131
|
+
JoinColumn as JoinColumn18,
|
|
2132
|
+
OneToMany as OneToMany7
|
|
2133
2133
|
} from "typeorm";
|
|
2134
2134
|
|
|
2135
2135
|
// src/entities/job-skill.entity.ts
|
|
@@ -2275,12 +2275,12 @@ JobApplication = __decorateClass([
|
|
|
2275
2275
|
|
|
2276
2276
|
// src/entities/interview.entity.ts
|
|
2277
2277
|
import {
|
|
2278
|
-
Entity as
|
|
2279
|
-
Column as
|
|
2278
|
+
Entity as Entity18,
|
|
2279
|
+
Column as Column19,
|
|
2280
2280
|
Index as Index12,
|
|
2281
|
-
ManyToOne as
|
|
2282
|
-
JoinColumn as
|
|
2283
|
-
OneToMany as
|
|
2281
|
+
ManyToOne as ManyToOne16,
|
|
2282
|
+
JoinColumn as JoinColumn16,
|
|
2283
|
+
OneToMany as OneToMany6
|
|
2284
2284
|
} from "typeorm";
|
|
2285
2285
|
|
|
2286
2286
|
// src/entities/interview-skill.entity.ts
|
|
@@ -2492,11 +2492,12 @@ AiInterview = __decorateClass([
|
|
|
2492
2492
|
|
|
2493
2493
|
// src/entities/f2f-interview.entity.ts
|
|
2494
2494
|
import {
|
|
2495
|
-
Entity as
|
|
2496
|
-
Column as
|
|
2497
|
-
ManyToOne as
|
|
2498
|
-
JoinColumn as
|
|
2499
|
-
OneToOne as OneToOne2
|
|
2495
|
+
Entity as Entity17,
|
|
2496
|
+
Column as Column18,
|
|
2497
|
+
ManyToOne as ManyToOne15,
|
|
2498
|
+
JoinColumn as JoinColumn15,
|
|
2499
|
+
OneToOne as OneToOne2,
|
|
2500
|
+
OneToMany as OneToMany5
|
|
2500
2501
|
} from "typeorm";
|
|
2501
2502
|
|
|
2502
2503
|
// src/entities/calendly-meeting.entity.ts
|
|
@@ -2546,6 +2547,53 @@ CalendlyMeeting = __decorateClass([
|
|
|
2546
2547
|
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2547
2548
|
], CalendlyMeeting);
|
|
2548
2549
|
|
|
2550
|
+
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
2551
|
+
import {
|
|
2552
|
+
Entity as Entity16,
|
|
2553
|
+
Column as Column17,
|
|
2554
|
+
ManyToOne as ManyToOne14,
|
|
2555
|
+
JoinColumn as JoinColumn14
|
|
2556
|
+
} from "typeorm";
|
|
2557
|
+
var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewRescheduleRequestStatusEnum2) => {
|
|
2558
|
+
F2fInterviewRescheduleRequestStatusEnum2["PENDING"] = "PENDING";
|
|
2559
|
+
F2fInterviewRescheduleRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
2560
|
+
F2fInterviewRescheduleRequestStatusEnum2["REJECTED"] = "REJECTED";
|
|
2561
|
+
return F2fInterviewRescheduleRequestStatusEnum2;
|
|
2562
|
+
})(F2fInterviewRescheduleRequestStatusEnum || {});
|
|
2563
|
+
var F2fInterviewRescheduleRequest = class extends BaseEntity {
|
|
2564
|
+
};
|
|
2565
|
+
__decorateClass([
|
|
2566
|
+
Column17({ name: "candidate_id", type: "integer", nullable: true })
|
|
2567
|
+
], F2fInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
ManyToOne14(() => User, (user) => user.freelancerF2FInterviewRescheduleRequests, { nullable: true }),
|
|
2570
|
+
JoinColumn14({ name: "candidate_id" })
|
|
2571
|
+
], F2fInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
2572
|
+
__decorateClass([
|
|
2573
|
+
Column17({ name: "f2finterview_id", type: "integer", nullable: true })
|
|
2574
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterviewId", 2);
|
|
2575
|
+
__decorateClass([
|
|
2576
|
+
ManyToOne14(() => F2FInterview, (f2FInterview) => f2FInterview.rescheduleRequests),
|
|
2577
|
+
JoinColumn14({ name: "f2finterview_id" })
|
|
2578
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterview", 2);
|
|
2579
|
+
__decorateClass([
|
|
2580
|
+
Column17({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
2581
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
2582
|
+
__decorateClass([
|
|
2583
|
+
Column17({ name: "rescheduled_slot", type: "varchar", nullable: true })
|
|
2584
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledSlot", 2);
|
|
2585
|
+
__decorateClass([
|
|
2586
|
+
Column17({
|
|
2587
|
+
name: "status",
|
|
2588
|
+
type: "enum",
|
|
2589
|
+
enum: F2fInterviewRescheduleRequestStatusEnum,
|
|
2590
|
+
default: "PENDING" /* PENDING */
|
|
2591
|
+
})
|
|
2592
|
+
], F2fInterviewRescheduleRequest.prototype, "status", 2);
|
|
2593
|
+
F2fInterviewRescheduleRequest = __decorateClass([
|
|
2594
|
+
Entity16("f2f_interview_reschedule_requests")
|
|
2595
|
+
], F2fInterviewRescheduleRequest);
|
|
2596
|
+
|
|
2549
2597
|
// src/entities/f2f-interview.entity.ts
|
|
2550
2598
|
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2551
2599
|
F2fInterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2561,58 +2609,58 @@ var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
|
2561
2609
|
var F2FInterview = class extends BaseEntity {
|
|
2562
2610
|
};
|
|
2563
2611
|
__decorateClass([
|
|
2564
|
-
|
|
2612
|
+
Column18({ name: "interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2565
2613
|
], F2FInterview.prototype, "interviewUniqueId", 2);
|
|
2566
2614
|
__decorateClass([
|
|
2567
|
-
|
|
2615
|
+
Column18({ name: "interview_id", type: "integer", nullable: true })
|
|
2568
2616
|
], F2FInterview.prototype, "interviewId", 2);
|
|
2569
2617
|
__decorateClass([
|
|
2570
|
-
|
|
2571
|
-
|
|
2618
|
+
ManyToOne15(() => Interview, (interview) => interview.aiInterviews),
|
|
2619
|
+
JoinColumn15({ name: "interview_id" })
|
|
2572
2620
|
], F2FInterview.prototype, "interview", 2);
|
|
2573
2621
|
__decorateClass([
|
|
2574
|
-
|
|
2622
|
+
Column18({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2575
2623
|
], F2FInterview.prototype, "interviwerId", 2);
|
|
2576
2624
|
__decorateClass([
|
|
2577
|
-
|
|
2578
|
-
|
|
2625
|
+
ManyToOne15(() => User, (user) => user.clientF2FInterviews),
|
|
2626
|
+
JoinColumn15({ name: "interviwer_id" })
|
|
2579
2627
|
], F2FInterview.prototype, "interviwer", 2);
|
|
2580
2628
|
__decorateClass([
|
|
2581
|
-
|
|
2629
|
+
Column18({ name: "candidate_id", type: "integer", nullable: true })
|
|
2582
2630
|
], F2FInterview.prototype, "candidateId", 2);
|
|
2583
2631
|
__decorateClass([
|
|
2584
|
-
|
|
2585
|
-
|
|
2632
|
+
ManyToOne15(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2633
|
+
JoinColumn15({ name: "candidate_id" })
|
|
2586
2634
|
], F2FInterview.prototype, "candidate", 2);
|
|
2587
2635
|
__decorateClass([
|
|
2588
|
-
|
|
2636
|
+
Column18({ name: "invitee_email", type: "varchar", nullable: true })
|
|
2589
2637
|
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
2590
2638
|
__decorateClass([
|
|
2591
|
-
|
|
2639
|
+
Column18({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2592
2640
|
], F2FInterview.prototype, "inviteeName", 2);
|
|
2593
2641
|
__decorateClass([
|
|
2594
|
-
|
|
2642
|
+
Column18({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2595
2643
|
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2596
2644
|
__decorateClass([
|
|
2597
|
-
|
|
2645
|
+
Column18({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2598
2646
|
], F2FInterview.prototype, "meetingId", 2);
|
|
2599
2647
|
__decorateClass([
|
|
2600
|
-
|
|
2648
|
+
Column18({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2601
2649
|
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2602
2650
|
__decorateClass([
|
|
2603
|
-
|
|
2651
|
+
Column18({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2604
2652
|
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2605
2653
|
__decorateClass([
|
|
2606
|
-
|
|
2654
|
+
Column18({ name: "cancel_url", type: "varchar", nullable: true })
|
|
2607
2655
|
], F2FInterview.prototype, "cancelUrl", 2);
|
|
2608
2656
|
__decorateClass([
|
|
2609
|
-
|
|
2657
|
+
Column18({ name: "event_name", type: "varchar", nullable: true })
|
|
2610
2658
|
], F2FInterview.prototype, "eventName", 2);
|
|
2611
2659
|
__decorateClass([
|
|
2612
|
-
|
|
2660
|
+
Column18({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2613
2661
|
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2614
2662
|
__decorateClass([
|
|
2615
|
-
|
|
2663
|
+
Column18({
|
|
2616
2664
|
name: "status",
|
|
2617
2665
|
type: "enum",
|
|
2618
2666
|
enum: F2fInterviewStatusEnum,
|
|
@@ -2620,32 +2668,35 @@ __decorateClass([
|
|
|
2620
2668
|
})
|
|
2621
2669
|
], F2FInterview.prototype, "status", 2);
|
|
2622
2670
|
__decorateClass([
|
|
2623
|
-
|
|
2671
|
+
Column18({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2624
2672
|
], F2FInterview.prototype, "cancelledAt", 2);
|
|
2625
2673
|
__decorateClass([
|
|
2626
|
-
|
|
2674
|
+
Column18({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2627
2675
|
], F2FInterview.prototype, "cancelReason", 2);
|
|
2628
2676
|
__decorateClass([
|
|
2629
|
-
|
|
2677
|
+
Column18({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2630
2678
|
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
2631
2679
|
__decorateClass([
|
|
2632
|
-
|
|
2680
|
+
Column18({ name: "is_completed", type: "boolean", default: false })
|
|
2633
2681
|
], F2FInterview.prototype, "isCompleted", 2);
|
|
2634
2682
|
__decorateClass([
|
|
2635
|
-
|
|
2683
|
+
Column18({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2636
2684
|
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2637
2685
|
__decorateClass([
|
|
2638
|
-
|
|
2686
|
+
Column18({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
2639
2687
|
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2640
2688
|
__decorateClass([
|
|
2641
|
-
|
|
2689
|
+
Column18({ name: "calendly_meeting_id", type: "integer", nullable: true })
|
|
2642
2690
|
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2643
2691
|
__decorateClass([
|
|
2644
2692
|
OneToOne2(() => CalendlyMeeting),
|
|
2645
|
-
|
|
2693
|
+
JoinColumn15({ name: "calendly_meeting_id" })
|
|
2646
2694
|
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2695
|
+
__decorateClass([
|
|
2696
|
+
OneToMany5(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
2697
|
+
], F2FInterview.prototype, "rescheduleRequests", 2);
|
|
2647
2698
|
F2FInterview = __decorateClass([
|
|
2648
|
-
|
|
2699
|
+
Entity17("f2f_interviews")
|
|
2649
2700
|
], F2FInterview);
|
|
2650
2701
|
|
|
2651
2702
|
// src/entities/interview.entity.ts
|
|
@@ -2660,7 +2711,7 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2660
2711
|
var Interview = class extends BaseEntity {
|
|
2661
2712
|
};
|
|
2662
2713
|
__decorateClass([
|
|
2663
|
-
|
|
2714
|
+
Column19({
|
|
2664
2715
|
name: "interview_id",
|
|
2665
2716
|
type: "varchar",
|
|
2666
2717
|
unique: true,
|
|
@@ -2669,35 +2720,35 @@ __decorateClass([
|
|
|
2669
2720
|
Index12()
|
|
2670
2721
|
], Interview.prototype, "interviewId", 2);
|
|
2671
2722
|
__decorateClass([
|
|
2672
|
-
|
|
2723
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2673
2724
|
Index12()
|
|
2674
2725
|
], Interview.prototype, "userId", 2);
|
|
2675
2726
|
__decorateClass([
|
|
2676
|
-
|
|
2677
|
-
|
|
2727
|
+
ManyToOne16(() => User, (user) => user.interviews),
|
|
2728
|
+
JoinColumn16({ name: "user_id" })
|
|
2678
2729
|
], Interview.prototype, "user", 2);
|
|
2679
2730
|
__decorateClass([
|
|
2680
|
-
|
|
2731
|
+
Column19({ name: "interview_name", type: "varchar", nullable: true })
|
|
2681
2732
|
], Interview.prototype, "interviewName", 2);
|
|
2682
2733
|
__decorateClass([
|
|
2683
|
-
|
|
2734
|
+
Column19({ name: "job_id", type: "integer" }),
|
|
2684
2735
|
Index12()
|
|
2685
2736
|
], Interview.prototype, "jobId", 2);
|
|
2686
2737
|
__decorateClass([
|
|
2687
|
-
|
|
2688
|
-
|
|
2738
|
+
ManyToOne16(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2739
|
+
JoinColumn16({ name: "job_id" })
|
|
2689
2740
|
], Interview.prototype, "job", 2);
|
|
2690
2741
|
__decorateClass([
|
|
2691
|
-
|
|
2742
|
+
Column19({ name: "interview_type", type: "varchar", nullable: true })
|
|
2692
2743
|
], Interview.prototype, "interviewType", 2);
|
|
2693
2744
|
__decorateClass([
|
|
2694
|
-
|
|
2745
|
+
Column19({ name: "interview_language", type: "varchar", nullable: true })
|
|
2695
2746
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2696
2747
|
__decorateClass([
|
|
2697
|
-
|
|
2748
|
+
Column19({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2698
2749
|
], Interview.prototype, "allowProctoring", 2);
|
|
2699
2750
|
__decorateClass([
|
|
2700
|
-
|
|
2751
|
+
Column19({
|
|
2701
2752
|
name: "status",
|
|
2702
2753
|
type: "enum",
|
|
2703
2754
|
enum: InterviewStatusEnum,
|
|
@@ -2705,70 +2756,70 @@ __decorateClass([
|
|
|
2705
2756
|
})
|
|
2706
2757
|
], Interview.prototype, "status", 2);
|
|
2707
2758
|
__decorateClass([
|
|
2708
|
-
|
|
2759
|
+
OneToMany6(
|
|
2709
2760
|
() => InterviewSkill,
|
|
2710
2761
|
(interviewSkill) => interviewSkill.interview,
|
|
2711
2762
|
{ cascade: true }
|
|
2712
2763
|
)
|
|
2713
2764
|
], Interview.prototype, "interviewSkills", 2);
|
|
2714
2765
|
__decorateClass([
|
|
2715
|
-
|
|
2766
|
+
OneToMany6(
|
|
2716
2767
|
() => InterviewQuestion,
|
|
2717
2768
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2718
2769
|
{ cascade: true }
|
|
2719
2770
|
)
|
|
2720
2771
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2721
2772
|
__decorateClass([
|
|
2722
|
-
|
|
2773
|
+
OneToMany6(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2723
2774
|
], Interview.prototype, "invites", 2);
|
|
2724
2775
|
__decorateClass([
|
|
2725
|
-
|
|
2776
|
+
OneToMany6(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2726
2777
|
], Interview.prototype, "aiInterviews", 2);
|
|
2727
2778
|
__decorateClass([
|
|
2728
|
-
|
|
2779
|
+
OneToMany6(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2729
2780
|
], Interview.prototype, "f2fInterviews", 2);
|
|
2730
2781
|
Interview = __decorateClass([
|
|
2731
|
-
|
|
2782
|
+
Entity18("interviews")
|
|
2732
2783
|
], Interview);
|
|
2733
2784
|
|
|
2734
2785
|
// src/entities/job-recommendation.entity.ts
|
|
2735
|
-
import { Entity as
|
|
2786
|
+
import { Entity as Entity19, Column as Column20, Index as Index13, ManyToOne as ManyToOne17, JoinColumn as JoinColumn17, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2736
2787
|
var JobRecommendation = class {
|
|
2737
2788
|
};
|
|
2738
2789
|
__decorateClass([
|
|
2739
2790
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2740
2791
|
], JobRecommendation.prototype, "id", 2);
|
|
2741
2792
|
__decorateClass([
|
|
2742
|
-
|
|
2793
|
+
Column20({ name: "job_id", type: "integer" }),
|
|
2743
2794
|
Index13()
|
|
2744
2795
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2745
2796
|
__decorateClass([
|
|
2746
|
-
|
|
2747
|
-
|
|
2797
|
+
ManyToOne17(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2798
|
+
JoinColumn17({ name: "job_id" })
|
|
2748
2799
|
], JobRecommendation.prototype, "job", 2);
|
|
2749
2800
|
__decorateClass([
|
|
2750
|
-
|
|
2801
|
+
Column20({ name: "freelancer_id", type: "integer" }),
|
|
2751
2802
|
Index13()
|
|
2752
2803
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2753
2804
|
__decorateClass([
|
|
2754
|
-
|
|
2805
|
+
Column20({ name: "client_id", type: "integer" }),
|
|
2755
2806
|
Index13()
|
|
2756
2807
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2757
2808
|
__decorateClass([
|
|
2758
|
-
|
|
2809
|
+
Column20({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2759
2810
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2760
2811
|
__decorateClass([
|
|
2761
|
-
|
|
2812
|
+
Column20({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2762
2813
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2763
2814
|
__decorateClass([
|
|
2764
|
-
|
|
2815
|
+
Column20({
|
|
2765
2816
|
name: "last_calculated_at",
|
|
2766
2817
|
type: "timestamp with time zone",
|
|
2767
2818
|
nullable: true
|
|
2768
2819
|
})
|
|
2769
2820
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2770
2821
|
JobRecommendation = __decorateClass([
|
|
2771
|
-
|
|
2822
|
+
Entity19("job_recommendations")
|
|
2772
2823
|
], JobRecommendation);
|
|
2773
2824
|
|
|
2774
2825
|
// src/entities/job.entity.ts
|
|
@@ -2808,49 +2859,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2808
2859
|
var Job = class extends BaseEntity {
|
|
2809
2860
|
};
|
|
2810
2861
|
__decorateClass([
|
|
2811
|
-
|
|
2862
|
+
Column21({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2812
2863
|
], Job.prototype, "jobId", 2);
|
|
2813
2864
|
// individual index to find jobs by user
|
|
2814
2865
|
__decorateClass([
|
|
2815
|
-
|
|
2866
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2816
2867
|
Index14()
|
|
2817
2868
|
], Job.prototype, "userId", 2);
|
|
2818
2869
|
__decorateClass([
|
|
2819
|
-
|
|
2820
|
-
|
|
2870
|
+
ManyToOne18(() => User, (user) => user.jobs),
|
|
2871
|
+
JoinColumn18({ name: "user_id" })
|
|
2821
2872
|
], Job.prototype, "user", 2);
|
|
2822
2873
|
__decorateClass([
|
|
2823
|
-
|
|
2874
|
+
Column21({ name: "country_id", type: "int", nullable: true })
|
|
2824
2875
|
], Job.prototype, "countryId", 2);
|
|
2825
2876
|
__decorateClass([
|
|
2826
|
-
|
|
2827
|
-
|
|
2877
|
+
ManyToOne18(() => Country),
|
|
2878
|
+
JoinColumn18({ name: "country_id" })
|
|
2828
2879
|
], Job.prototype, "country", 2);
|
|
2829
2880
|
__decorateClass([
|
|
2830
|
-
|
|
2881
|
+
Column21({ name: "state_id", type: "int", nullable: true })
|
|
2831
2882
|
], Job.prototype, "stateId", 2);
|
|
2832
2883
|
__decorateClass([
|
|
2833
|
-
|
|
2834
|
-
|
|
2884
|
+
ManyToOne18(() => State),
|
|
2885
|
+
JoinColumn18({ name: "state_id" })
|
|
2835
2886
|
], Job.prototype, "state", 2);
|
|
2836
2887
|
__decorateClass([
|
|
2837
|
-
|
|
2888
|
+
Column21({ name: "city_id", type: "int", nullable: true })
|
|
2838
2889
|
], Job.prototype, "cityId", 2);
|
|
2839
2890
|
__decorateClass([
|
|
2840
|
-
|
|
2841
|
-
|
|
2891
|
+
ManyToOne18(() => City),
|
|
2892
|
+
JoinColumn18({ name: "city_id" })
|
|
2842
2893
|
], Job.prototype, "city", 2);
|
|
2843
2894
|
__decorateClass([
|
|
2844
|
-
|
|
2895
|
+
Column21({ name: "job_role", type: "varchar", nullable: true })
|
|
2845
2896
|
], Job.prototype, "jobRole", 2);
|
|
2846
2897
|
__decorateClass([
|
|
2847
|
-
|
|
2898
|
+
Column21({ name: "note", type: "varchar", nullable: true })
|
|
2848
2899
|
], Job.prototype, "note", 2);
|
|
2849
2900
|
__decorateClass([
|
|
2850
|
-
|
|
2901
|
+
Column21({ name: "openings", type: "integer", default: 0 })
|
|
2851
2902
|
], Job.prototype, "openings", 2);
|
|
2852
2903
|
__decorateClass([
|
|
2853
|
-
|
|
2904
|
+
Column21({
|
|
2854
2905
|
name: "location",
|
|
2855
2906
|
type: "enum",
|
|
2856
2907
|
enum: JobLocationEnum,
|
|
@@ -2858,7 +2909,7 @@ __decorateClass([
|
|
|
2858
2909
|
})
|
|
2859
2910
|
], Job.prototype, "location", 2);
|
|
2860
2911
|
__decorateClass([
|
|
2861
|
-
|
|
2912
|
+
Column21({
|
|
2862
2913
|
name: "type_of_employment",
|
|
2863
2914
|
type: "enum",
|
|
2864
2915
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2866,19 +2917,19 @@ __decorateClass([
|
|
|
2866
2917
|
})
|
|
2867
2918
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2868
2919
|
__decorateClass([
|
|
2869
|
-
|
|
2920
|
+
Column21({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2870
2921
|
], Job.prototype, "academicQualification", 2);
|
|
2871
2922
|
__decorateClass([
|
|
2872
|
-
|
|
2923
|
+
Column21({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2873
2924
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2874
2925
|
__decorateClass([
|
|
2875
|
-
|
|
2926
|
+
Column21({ name: "business_industry", type: "varchar", nullable: true })
|
|
2876
2927
|
], Job.prototype, "businessIndustry", 2);
|
|
2877
2928
|
__decorateClass([
|
|
2878
|
-
|
|
2929
|
+
Column21({ name: "currency", type: "varchar", default: "USD" })
|
|
2879
2930
|
], Job.prototype, "currency", 2);
|
|
2880
2931
|
__decorateClass([
|
|
2881
|
-
|
|
2932
|
+
Column21({
|
|
2882
2933
|
name: "expected_salary_from",
|
|
2883
2934
|
type: "decimal",
|
|
2884
2935
|
precision: 10,
|
|
@@ -2887,7 +2938,7 @@ __decorateClass([
|
|
|
2887
2938
|
})
|
|
2888
2939
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2889
2940
|
__decorateClass([
|
|
2890
|
-
|
|
2941
|
+
Column21({
|
|
2891
2942
|
name: "expected_salary_to",
|
|
2892
2943
|
type: "decimal",
|
|
2893
2944
|
precision: 10,
|
|
@@ -2896,16 +2947,16 @@ __decorateClass([
|
|
|
2896
2947
|
})
|
|
2897
2948
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2898
2949
|
__decorateClass([
|
|
2899
|
-
|
|
2950
|
+
Column21({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2900
2951
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2901
2952
|
__decorateClass([
|
|
2902
|
-
|
|
2953
|
+
Column21({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2903
2954
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2904
2955
|
__decorateClass([
|
|
2905
|
-
|
|
2956
|
+
Column21({ name: "duration", type: "varchar", nullable: true })
|
|
2906
2957
|
], Job.prototype, "duration", 2);
|
|
2907
2958
|
__decorateClass([
|
|
2908
|
-
|
|
2959
|
+
Column21({
|
|
2909
2960
|
name: "duration_type",
|
|
2910
2961
|
type: "enum",
|
|
2911
2962
|
enum: DurationTypeEnum,
|
|
@@ -2913,13 +2964,13 @@ __decorateClass([
|
|
|
2913
2964
|
})
|
|
2914
2965
|
], Job.prototype, "durationType", 2);
|
|
2915
2966
|
__decorateClass([
|
|
2916
|
-
|
|
2967
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2917
2968
|
], Job.prototype, "description", 2);
|
|
2918
2969
|
__decorateClass([
|
|
2919
|
-
|
|
2970
|
+
Column21({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2920
2971
|
], Job.prototype, "additionalComment", 2);
|
|
2921
2972
|
__decorateClass([
|
|
2922
|
-
|
|
2973
|
+
Column21({
|
|
2923
2974
|
name: "onboarding_tat",
|
|
2924
2975
|
type: "varchar",
|
|
2925
2976
|
length: 50,
|
|
@@ -2927,14 +2978,14 @@ __decorateClass([
|
|
|
2927
2978
|
})
|
|
2928
2979
|
], Job.prototype, "onboardingTat", 2);
|
|
2929
2980
|
__decorateClass([
|
|
2930
|
-
|
|
2981
|
+
Column21({
|
|
2931
2982
|
name: "candidate_communication_skills",
|
|
2932
2983
|
type: "varchar",
|
|
2933
2984
|
nullable: true
|
|
2934
2985
|
})
|
|
2935
2986
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2936
2987
|
__decorateClass([
|
|
2937
|
-
|
|
2988
|
+
Column21({
|
|
2938
2989
|
name: "step_completed",
|
|
2939
2990
|
type: "enum",
|
|
2940
2991
|
enum: Step,
|
|
@@ -2942,7 +2993,7 @@ __decorateClass([
|
|
|
2942
2993
|
})
|
|
2943
2994
|
], Job.prototype, "stepCompleted", 2);
|
|
2944
2995
|
__decorateClass([
|
|
2945
|
-
|
|
2996
|
+
Column21({
|
|
2946
2997
|
name: "status",
|
|
2947
2998
|
type: "enum",
|
|
2948
2999
|
enum: JobStatusEnum,
|
|
@@ -2950,40 +3001,40 @@ __decorateClass([
|
|
|
2950
3001
|
})
|
|
2951
3002
|
], Job.prototype, "status", 2);
|
|
2952
3003
|
__decorateClass([
|
|
2953
|
-
|
|
3004
|
+
Column21({ name: "viewed_count", type: "integer", default: 0 })
|
|
2954
3005
|
], Job.prototype, "viewedCount", 2);
|
|
2955
3006
|
__decorateClass([
|
|
2956
|
-
|
|
3007
|
+
Column21({ name: "application_count", type: "integer", default: 0 })
|
|
2957
3008
|
], Job.prototype, "applicationCount", 2);
|
|
2958
3009
|
__decorateClass([
|
|
2959
|
-
|
|
3010
|
+
OneToMany7(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2960
3011
|
], Job.prototype, "jobSkills", 2);
|
|
2961
3012
|
__decorateClass([
|
|
2962
|
-
|
|
3013
|
+
OneToMany7(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2963
3014
|
cascade: true
|
|
2964
3015
|
})
|
|
2965
3016
|
], Job.prototype, "jobApplications", 2);
|
|
2966
3017
|
__decorateClass([
|
|
2967
|
-
|
|
3018
|
+
OneToMany7(() => Interview, (interview) => interview.job, {
|
|
2968
3019
|
cascade: true
|
|
2969
3020
|
})
|
|
2970
3021
|
], Job.prototype, "interviews", 2);
|
|
2971
3022
|
__decorateClass([
|
|
2972
|
-
|
|
3023
|
+
OneToMany7(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2973
3024
|
cascade: true
|
|
2974
3025
|
})
|
|
2975
3026
|
], Job.prototype, "recommendations", 2);
|
|
2976
3027
|
Job = __decorateClass([
|
|
2977
|
-
|
|
3028
|
+
Entity20("jobs")
|
|
2978
3029
|
], Job);
|
|
2979
3030
|
|
|
2980
3031
|
// src/entities/bank-details.entity.ts
|
|
2981
3032
|
import {
|
|
2982
|
-
Entity as
|
|
2983
|
-
Column as
|
|
3033
|
+
Entity as Entity21,
|
|
3034
|
+
Column as Column22,
|
|
2984
3035
|
Index as Index15,
|
|
2985
|
-
ManyToOne as
|
|
2986
|
-
JoinColumn as
|
|
3036
|
+
ManyToOne as ManyToOne19,
|
|
3037
|
+
JoinColumn as JoinColumn19
|
|
2987
3038
|
} from "typeorm";
|
|
2988
3039
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2989
3040
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2999,48 +3050,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2999
3050
|
};
|
|
3000
3051
|
// individual index to find bank details by user
|
|
3001
3052
|
__decorateClass([
|
|
3002
|
-
|
|
3053
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
3003
3054
|
Index15()
|
|
3004
3055
|
], BankDetail.prototype, "userId", 2);
|
|
3005
3056
|
__decorateClass([
|
|
3006
|
-
|
|
3007
|
-
|
|
3057
|
+
ManyToOne19(() => User, (user) => user.bankDetail),
|
|
3058
|
+
JoinColumn19({ name: "user_id" })
|
|
3008
3059
|
], BankDetail.prototype, "user", 2);
|
|
3009
3060
|
__decorateClass([
|
|
3010
|
-
|
|
3061
|
+
Column22({ name: "name", type: "varchar", nullable: true })
|
|
3011
3062
|
], BankDetail.prototype, "name", 2);
|
|
3012
3063
|
__decorateClass([
|
|
3013
|
-
|
|
3064
|
+
Column22({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3014
3065
|
], BankDetail.prototype, "mobile", 2);
|
|
3015
3066
|
__decorateClass([
|
|
3016
|
-
|
|
3067
|
+
Column22({ name: "email", type: "varchar", unique: true })
|
|
3017
3068
|
], BankDetail.prototype, "email", 2);
|
|
3018
3069
|
__decorateClass([
|
|
3019
|
-
|
|
3070
|
+
Column22({ name: "address", type: "varchar", nullable: true })
|
|
3020
3071
|
], BankDetail.prototype, "address", 2);
|
|
3021
3072
|
__decorateClass([
|
|
3022
|
-
|
|
3073
|
+
Column22({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3023
3074
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3024
3075
|
__decorateClass([
|
|
3025
|
-
|
|
3076
|
+
Column22({ name: "bank_name", type: "varchar", nullable: true })
|
|
3026
3077
|
], BankDetail.prototype, "bankName", 2);
|
|
3027
3078
|
__decorateClass([
|
|
3028
|
-
|
|
3079
|
+
Column22({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3029
3080
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3030
3081
|
__decorateClass([
|
|
3031
|
-
|
|
3082
|
+
Column22({ name: "branch_name", type: "varchar", nullable: true })
|
|
3032
3083
|
], BankDetail.prototype, "branchName", 2);
|
|
3033
3084
|
__decorateClass([
|
|
3034
|
-
|
|
3085
|
+
Column22({ name: "routing_no", type: "varchar", nullable: true })
|
|
3035
3086
|
], BankDetail.prototype, "routingNo", 2);
|
|
3036
3087
|
__decorateClass([
|
|
3037
|
-
|
|
3088
|
+
Column22({ name: "aba_no", type: "varchar", nullable: true })
|
|
3038
3089
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3039
3090
|
__decorateClass([
|
|
3040
|
-
|
|
3091
|
+
Column22({ name: "iban", type: "varchar", nullable: true })
|
|
3041
3092
|
], BankDetail.prototype, "iban", 2);
|
|
3042
3093
|
__decorateClass([
|
|
3043
|
-
|
|
3094
|
+
Column22({
|
|
3044
3095
|
name: "account_type",
|
|
3045
3096
|
type: "enum",
|
|
3046
3097
|
enum: BankAccountTypeEnum,
|
|
@@ -3048,7 +3099,7 @@ __decorateClass([
|
|
|
3048
3099
|
})
|
|
3049
3100
|
], BankDetail.prototype, "accountType", 2);
|
|
3050
3101
|
__decorateClass([
|
|
3051
|
-
|
|
3102
|
+
Column22({
|
|
3052
3103
|
name: "account_scope",
|
|
3053
3104
|
type: "enum",
|
|
3054
3105
|
enum: BankAccountScopeEnum,
|
|
@@ -3056,263 +3107,263 @@ __decorateClass([
|
|
|
3056
3107
|
})
|
|
3057
3108
|
], BankDetail.prototype, "accountScope", 2);
|
|
3058
3109
|
BankDetail = __decorateClass([
|
|
3059
|
-
|
|
3110
|
+
Entity21("bank_details")
|
|
3060
3111
|
], BankDetail);
|
|
3061
3112
|
|
|
3062
3113
|
// src/entities/system-preference.entity.ts
|
|
3063
3114
|
import {
|
|
3064
|
-
Entity as
|
|
3065
|
-
Column as
|
|
3115
|
+
Entity as Entity22,
|
|
3116
|
+
Column as Column23,
|
|
3066
3117
|
Index as Index16,
|
|
3067
|
-
ManyToOne as
|
|
3068
|
-
JoinColumn as
|
|
3118
|
+
ManyToOne as ManyToOne20,
|
|
3119
|
+
JoinColumn as JoinColumn20
|
|
3069
3120
|
} from "typeorm";
|
|
3070
3121
|
var SystemPreference = class extends BaseEntity {
|
|
3071
3122
|
};
|
|
3072
3123
|
// individual index to find system preference by user
|
|
3073
3124
|
__decorateClass([
|
|
3074
|
-
|
|
3125
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
3075
3126
|
Index16()
|
|
3076
3127
|
], SystemPreference.prototype, "userId", 2);
|
|
3077
3128
|
__decorateClass([
|
|
3078
|
-
|
|
3079
|
-
|
|
3129
|
+
ManyToOne20(() => User, (user) => user.systemPreference),
|
|
3130
|
+
JoinColumn20({ name: "user_id" })
|
|
3080
3131
|
], SystemPreference.prototype, "user", 2);
|
|
3081
3132
|
__decorateClass([
|
|
3082
|
-
|
|
3133
|
+
Column23({ name: "key", type: "varchar", nullable: false })
|
|
3083
3134
|
], SystemPreference.prototype, "key", 2);
|
|
3084
3135
|
__decorateClass([
|
|
3085
|
-
|
|
3136
|
+
Column23({ name: "value", type: "boolean", default: false })
|
|
3086
3137
|
], SystemPreference.prototype, "value", 2);
|
|
3087
3138
|
SystemPreference = __decorateClass([
|
|
3088
|
-
|
|
3139
|
+
Entity22("system_preferences")
|
|
3089
3140
|
], SystemPreference);
|
|
3090
3141
|
|
|
3091
3142
|
// src/entities/freelancer-experience.entity.ts
|
|
3092
3143
|
import {
|
|
3093
|
-
Entity as
|
|
3094
|
-
Column as
|
|
3144
|
+
Entity as Entity23,
|
|
3145
|
+
Column as Column24,
|
|
3095
3146
|
Index as Index17,
|
|
3096
|
-
ManyToOne as
|
|
3097
|
-
JoinColumn as
|
|
3147
|
+
ManyToOne as ManyToOne21,
|
|
3148
|
+
JoinColumn as JoinColumn21
|
|
3098
3149
|
} from "typeorm";
|
|
3099
3150
|
var FreelancerExperience = class extends BaseEntity {
|
|
3100
3151
|
};
|
|
3101
3152
|
// individual index to find experence by user
|
|
3102
3153
|
__decorateClass([
|
|
3103
|
-
|
|
3154
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3104
3155
|
Index17()
|
|
3105
3156
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3106
3157
|
__decorateClass([
|
|
3107
|
-
|
|
3108
|
-
|
|
3158
|
+
ManyToOne21(() => User, (user) => user.freelancerExperience),
|
|
3159
|
+
JoinColumn21({ name: "user_id" })
|
|
3109
3160
|
], FreelancerExperience.prototype, "user", 2);
|
|
3110
3161
|
__decorateClass([
|
|
3111
|
-
|
|
3162
|
+
Column24({ name: "company_name", type: "varchar", nullable: true })
|
|
3112
3163
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3113
3164
|
__decorateClass([
|
|
3114
|
-
|
|
3165
|
+
Column24({ name: "designation", type: "varchar", nullable: true })
|
|
3115
3166
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3116
3167
|
__decorateClass([
|
|
3117
|
-
|
|
3168
|
+
Column24({ name: "job_duration", type: "varchar", nullable: true })
|
|
3118
3169
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3119
3170
|
__decorateClass([
|
|
3120
|
-
|
|
3171
|
+
Column24({ name: "description", type: "varchar", nullable: true })
|
|
3121
3172
|
], FreelancerExperience.prototype, "description", 2);
|
|
3122
3173
|
FreelancerExperience = __decorateClass([
|
|
3123
|
-
|
|
3174
|
+
Entity23("freelancer_experiences")
|
|
3124
3175
|
], FreelancerExperience);
|
|
3125
3176
|
|
|
3126
3177
|
// src/entities/freelancer-education.entity.ts
|
|
3127
3178
|
import {
|
|
3128
|
-
Entity as
|
|
3129
|
-
Column as
|
|
3179
|
+
Entity as Entity24,
|
|
3180
|
+
Column as Column25,
|
|
3130
3181
|
Index as Index18,
|
|
3131
|
-
ManyToOne as
|
|
3132
|
-
JoinColumn as
|
|
3182
|
+
ManyToOne as ManyToOne22,
|
|
3183
|
+
JoinColumn as JoinColumn22
|
|
3133
3184
|
} from "typeorm";
|
|
3134
3185
|
var FreelancerEducation = class extends BaseEntity {
|
|
3135
3186
|
};
|
|
3136
3187
|
// individual index to find education by user
|
|
3137
3188
|
__decorateClass([
|
|
3138
|
-
|
|
3189
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3139
3190
|
Index18()
|
|
3140
3191
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3141
3192
|
__decorateClass([
|
|
3142
|
-
|
|
3143
|
-
|
|
3193
|
+
ManyToOne22(() => User, (user) => user.freelancerEducation),
|
|
3194
|
+
JoinColumn22({ name: "user_id" })
|
|
3144
3195
|
], FreelancerEducation.prototype, "user", 2);
|
|
3145
3196
|
__decorateClass([
|
|
3146
|
-
|
|
3197
|
+
Column25({ name: "degree", type: "varchar", nullable: true })
|
|
3147
3198
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3148
3199
|
__decorateClass([
|
|
3149
|
-
|
|
3200
|
+
Column25({ name: "university", type: "varchar", nullable: true })
|
|
3150
3201
|
], FreelancerEducation.prototype, "university", 2);
|
|
3151
3202
|
__decorateClass([
|
|
3152
|
-
|
|
3203
|
+
Column25({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3153
3204
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3154
3205
|
FreelancerEducation = __decorateClass([
|
|
3155
|
-
|
|
3206
|
+
Entity24("freelancer_educations")
|
|
3156
3207
|
], FreelancerEducation);
|
|
3157
3208
|
|
|
3158
3209
|
// src/entities/freelancer-project.entity.ts
|
|
3159
3210
|
import {
|
|
3160
|
-
Entity as
|
|
3161
|
-
Column as
|
|
3211
|
+
Entity as Entity25,
|
|
3212
|
+
Column as Column26,
|
|
3162
3213
|
Index as Index19,
|
|
3163
|
-
ManyToOne as
|
|
3164
|
-
JoinColumn as
|
|
3214
|
+
ManyToOne as ManyToOne23,
|
|
3215
|
+
JoinColumn as JoinColumn23
|
|
3165
3216
|
} from "typeorm";
|
|
3166
3217
|
var FreelancerProject = class extends BaseEntity {
|
|
3167
3218
|
};
|
|
3168
3219
|
// individual index to find project by user
|
|
3169
3220
|
__decorateClass([
|
|
3170
|
-
|
|
3221
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3171
3222
|
Index19()
|
|
3172
3223
|
], FreelancerProject.prototype, "userId", 2);
|
|
3173
3224
|
__decorateClass([
|
|
3174
|
-
|
|
3175
|
-
|
|
3225
|
+
ManyToOne23(() => User, (user) => user.freelancerProject),
|
|
3226
|
+
JoinColumn23({ name: "user_id" })
|
|
3176
3227
|
], FreelancerProject.prototype, "user", 2);
|
|
3177
3228
|
__decorateClass([
|
|
3178
|
-
|
|
3229
|
+
Column26({ name: "project_name", type: "varchar", nullable: true })
|
|
3179
3230
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3180
3231
|
__decorateClass([
|
|
3181
|
-
|
|
3232
|
+
Column26({ name: "start_date", type: "date", nullable: true })
|
|
3182
3233
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3183
3234
|
__decorateClass([
|
|
3184
|
-
|
|
3235
|
+
Column26({ name: "end_date", type: "date", nullable: true })
|
|
3185
3236
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3186
3237
|
__decorateClass([
|
|
3187
|
-
|
|
3238
|
+
Column26({ name: "client_name", type: "varchar", nullable: true })
|
|
3188
3239
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3189
3240
|
__decorateClass([
|
|
3190
|
-
|
|
3241
|
+
Column26({ name: "git_link", type: "varchar", nullable: true })
|
|
3191
3242
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3192
3243
|
__decorateClass([
|
|
3193
|
-
|
|
3244
|
+
Column26({ name: "description", type: "varchar", nullable: true })
|
|
3194
3245
|
], FreelancerProject.prototype, "description", 2);
|
|
3195
3246
|
FreelancerProject = __decorateClass([
|
|
3196
|
-
|
|
3247
|
+
Entity25("freelancer_projects")
|
|
3197
3248
|
], FreelancerProject);
|
|
3198
3249
|
|
|
3199
3250
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3200
3251
|
import {
|
|
3201
|
-
Entity as
|
|
3202
|
-
Column as
|
|
3252
|
+
Entity as Entity26,
|
|
3253
|
+
Column as Column27,
|
|
3203
3254
|
Index as Index20,
|
|
3204
|
-
ManyToOne as
|
|
3205
|
-
JoinColumn as
|
|
3255
|
+
ManyToOne as ManyToOne24,
|
|
3256
|
+
JoinColumn as JoinColumn24
|
|
3206
3257
|
} from "typeorm";
|
|
3207
3258
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3208
3259
|
};
|
|
3209
3260
|
// individual index to find case study by user
|
|
3210
3261
|
__decorateClass([
|
|
3211
|
-
|
|
3262
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3212
3263
|
Index20()
|
|
3213
3264
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3214
3265
|
__decorateClass([
|
|
3215
|
-
|
|
3216
|
-
|
|
3266
|
+
ManyToOne24(() => User, (user) => user.freelancerCaseStudy),
|
|
3267
|
+
JoinColumn24({ name: "user_id" })
|
|
3217
3268
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3218
3269
|
__decorateClass([
|
|
3219
|
-
|
|
3270
|
+
Column27({ name: "project_name", type: "varchar", nullable: true })
|
|
3220
3271
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3221
3272
|
__decorateClass([
|
|
3222
|
-
|
|
3273
|
+
Column27({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3223
3274
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3224
3275
|
__decorateClass([
|
|
3225
|
-
|
|
3276
|
+
Column27({ name: "description", type: "varchar", nullable: true })
|
|
3226
3277
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3227
3278
|
FreelancerCaseStudy = __decorateClass([
|
|
3228
|
-
|
|
3279
|
+
Entity26("freelancer_case_studies")
|
|
3229
3280
|
], FreelancerCaseStudy);
|
|
3230
3281
|
|
|
3231
3282
|
// src/entities/freelancer-skill.entity.ts
|
|
3232
3283
|
import {
|
|
3233
|
-
Entity as
|
|
3234
|
-
Column as
|
|
3284
|
+
Entity as Entity27,
|
|
3285
|
+
Column as Column28,
|
|
3235
3286
|
Index as Index21,
|
|
3236
|
-
ManyToOne as
|
|
3237
|
-
JoinColumn as
|
|
3287
|
+
ManyToOne as ManyToOne25,
|
|
3288
|
+
JoinColumn as JoinColumn25
|
|
3238
3289
|
} from "typeorm";
|
|
3239
3290
|
var FreelancerSkill = class extends BaseEntity {
|
|
3240
3291
|
};
|
|
3241
3292
|
// individual index to find core skills by user
|
|
3242
3293
|
__decorateClass([
|
|
3243
|
-
|
|
3294
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3244
3295
|
Index21()
|
|
3245
3296
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3246
3297
|
__decorateClass([
|
|
3247
|
-
|
|
3248
|
-
|
|
3298
|
+
ManyToOne25(() => User, (user) => user.freelancerSkills),
|
|
3299
|
+
JoinColumn25({ name: "user_id" })
|
|
3249
3300
|
], FreelancerSkill.prototype, "user", 2);
|
|
3250
3301
|
__decorateClass([
|
|
3251
|
-
|
|
3302
|
+
Column28({ name: "skill_name", type: "varchar", nullable: true })
|
|
3252
3303
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3253
3304
|
FreelancerSkill = __decorateClass([
|
|
3254
|
-
|
|
3305
|
+
Entity27("freelancer_skills")
|
|
3255
3306
|
], FreelancerSkill);
|
|
3256
3307
|
|
|
3257
3308
|
// src/entities/freelancer-tool.entity.ts
|
|
3258
3309
|
import {
|
|
3259
|
-
Entity as
|
|
3260
|
-
Column as
|
|
3310
|
+
Entity as Entity28,
|
|
3311
|
+
Column as Column29,
|
|
3261
3312
|
Index as Index22,
|
|
3262
|
-
ManyToOne as
|
|
3263
|
-
JoinColumn as
|
|
3313
|
+
ManyToOne as ManyToOne26,
|
|
3314
|
+
JoinColumn as JoinColumn26
|
|
3264
3315
|
} from "typeorm";
|
|
3265
3316
|
var FreelancerTool = class extends BaseEntity {
|
|
3266
3317
|
};
|
|
3267
3318
|
// individual index to find tool by user
|
|
3268
3319
|
__decorateClass([
|
|
3269
|
-
|
|
3320
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3270
3321
|
Index22()
|
|
3271
3322
|
], FreelancerTool.prototype, "userId", 2);
|
|
3272
3323
|
__decorateClass([
|
|
3273
|
-
|
|
3274
|
-
|
|
3324
|
+
ManyToOne26(() => User, (user) => user.freelancerTool),
|
|
3325
|
+
JoinColumn26({ name: "user_id" })
|
|
3275
3326
|
], FreelancerTool.prototype, "user", 2);
|
|
3276
3327
|
__decorateClass([
|
|
3277
|
-
|
|
3328
|
+
Column29({ name: "tool_name", type: "varchar", nullable: true })
|
|
3278
3329
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3279
3330
|
FreelancerTool = __decorateClass([
|
|
3280
|
-
|
|
3331
|
+
Entity28("freelancer_tools")
|
|
3281
3332
|
], FreelancerTool);
|
|
3282
3333
|
|
|
3283
3334
|
// src/entities/freelancer-framework.entity.ts
|
|
3284
3335
|
import {
|
|
3285
|
-
Entity as
|
|
3286
|
-
Column as
|
|
3336
|
+
Entity as Entity29,
|
|
3337
|
+
Column as Column30,
|
|
3287
3338
|
Index as Index23,
|
|
3288
|
-
ManyToOne as
|
|
3289
|
-
JoinColumn as
|
|
3339
|
+
ManyToOne as ManyToOne27,
|
|
3340
|
+
JoinColumn as JoinColumn27
|
|
3290
3341
|
} from "typeorm";
|
|
3291
3342
|
var FreelancerFramework = class extends BaseEntity {
|
|
3292
3343
|
};
|
|
3293
3344
|
// individual index to find framework by user
|
|
3294
3345
|
__decorateClass([
|
|
3295
|
-
|
|
3346
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3296
3347
|
Index23()
|
|
3297
3348
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3298
3349
|
__decorateClass([
|
|
3299
|
-
|
|
3300
|
-
|
|
3350
|
+
ManyToOne27(() => User, (user) => user.freelancerFramework),
|
|
3351
|
+
JoinColumn27({ name: "user_id" })
|
|
3301
3352
|
], FreelancerFramework.prototype, "user", 2);
|
|
3302
3353
|
__decorateClass([
|
|
3303
|
-
|
|
3354
|
+
Column30({ name: "framework_name", type: "varchar", nullable: true })
|
|
3304
3355
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3305
3356
|
FreelancerFramework = __decorateClass([
|
|
3306
|
-
|
|
3357
|
+
Entity29("freelancer_frameworks")
|
|
3307
3358
|
], FreelancerFramework);
|
|
3308
3359
|
|
|
3309
3360
|
// src/entities/freelancer-assessment.entity.ts
|
|
3310
3361
|
import {
|
|
3311
|
-
Entity as
|
|
3312
|
-
Column as
|
|
3362
|
+
Entity as Entity30,
|
|
3363
|
+
Column as Column31,
|
|
3313
3364
|
Index as Index24,
|
|
3314
|
-
ManyToOne as
|
|
3315
|
-
JoinColumn as
|
|
3365
|
+
ManyToOne as ManyToOne28,
|
|
3366
|
+
JoinColumn as JoinColumn28
|
|
3316
3367
|
} from "typeorm";
|
|
3317
3368
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3318
3369
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3329,30 +3380,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3329
3380
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3330
3381
|
};
|
|
3331
3382
|
__decorateClass([
|
|
3332
|
-
|
|
3383
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3333
3384
|
Index24()
|
|
3334
3385
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3335
3386
|
__decorateClass([
|
|
3336
|
-
|
|
3337
|
-
|
|
3387
|
+
ManyToOne28(() => User, (user) => user.assessments),
|
|
3388
|
+
JoinColumn28({ name: "user_id" })
|
|
3338
3389
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3339
3390
|
__decorateClass([
|
|
3340
|
-
|
|
3391
|
+
Column31({ name: "interview_id", type: "varchar", nullable: true })
|
|
3341
3392
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3342
3393
|
__decorateClass([
|
|
3343
|
-
|
|
3394
|
+
Column31({ name: "interview_link", type: "text", nullable: true })
|
|
3344
3395
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3345
3396
|
__decorateClass([
|
|
3346
|
-
|
|
3397
|
+
Column31({ name: "recording_link", type: "text", nullable: true })
|
|
3347
3398
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3348
3399
|
__decorateClass([
|
|
3349
|
-
|
|
3400
|
+
Column31({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3350
3401
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3351
3402
|
__decorateClass([
|
|
3352
|
-
|
|
3403
|
+
Column31({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3353
3404
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3354
3405
|
__decorateClass([
|
|
3355
|
-
|
|
3406
|
+
Column31({
|
|
3356
3407
|
name: "status",
|
|
3357
3408
|
type: "enum",
|
|
3358
3409
|
enum: AssessmentStatusEnum,
|
|
@@ -3360,16 +3411,16 @@ __decorateClass([
|
|
|
3360
3411
|
})
|
|
3361
3412
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3362
3413
|
FreelancerAssessment = __decorateClass([
|
|
3363
|
-
|
|
3414
|
+
Entity30("freelancer_assessments")
|
|
3364
3415
|
], FreelancerAssessment);
|
|
3365
3416
|
|
|
3366
3417
|
// src/entities/freelancer-declaration.entity.ts
|
|
3367
3418
|
import {
|
|
3368
|
-
Entity as
|
|
3369
|
-
Column as
|
|
3419
|
+
Entity as Entity31,
|
|
3420
|
+
Column as Column32,
|
|
3370
3421
|
Index as Index25,
|
|
3371
|
-
ManyToOne as
|
|
3372
|
-
JoinColumn as
|
|
3422
|
+
ManyToOne as ManyToOne29,
|
|
3423
|
+
JoinColumn as JoinColumn29
|
|
3373
3424
|
} from "typeorm";
|
|
3374
3425
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3375
3426
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3382,15 +3433,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3382
3433
|
};
|
|
3383
3434
|
// individual index to find declaration by user
|
|
3384
3435
|
__decorateClass([
|
|
3385
|
-
|
|
3436
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3386
3437
|
Index25()
|
|
3387
3438
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3388
3439
|
__decorateClass([
|
|
3389
|
-
|
|
3390
|
-
|
|
3440
|
+
ManyToOne29(() => User, (user) => user.freelancerDeclaration),
|
|
3441
|
+
JoinColumn29({ name: "user_id" })
|
|
3391
3442
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3392
3443
|
__decorateClass([
|
|
3393
|
-
|
|
3444
|
+
Column32({
|
|
3394
3445
|
name: "document_type",
|
|
3395
3446
|
type: "enum",
|
|
3396
3447
|
enum: DocumentType,
|
|
@@ -3398,175 +3449,175 @@ __decorateClass([
|
|
|
3398
3449
|
})
|
|
3399
3450
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3400
3451
|
__decorateClass([
|
|
3401
|
-
|
|
3452
|
+
Column32({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3402
3453
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3403
3454
|
__decorateClass([
|
|
3404
|
-
|
|
3455
|
+
Column32({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3405
3456
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3406
3457
|
__decorateClass([
|
|
3407
|
-
|
|
3458
|
+
Column32({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3408
3459
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3409
3460
|
__decorateClass([
|
|
3410
|
-
|
|
3461
|
+
Column32({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3411
3462
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3412
3463
|
FreelancerDeclaration = __decorateClass([
|
|
3413
|
-
|
|
3464
|
+
Entity31("freelancer_declaration")
|
|
3414
3465
|
], FreelancerDeclaration);
|
|
3415
3466
|
|
|
3416
3467
|
// src/entities/company-members-roles.entity.ts
|
|
3417
3468
|
import {
|
|
3418
|
-
Column as
|
|
3419
|
-
Entity as
|
|
3420
|
-
ManyToOne as
|
|
3421
|
-
JoinColumn as
|
|
3469
|
+
Column as Column36,
|
|
3470
|
+
Entity as Entity35,
|
|
3471
|
+
ManyToOne as ManyToOne32,
|
|
3472
|
+
JoinColumn as JoinColumn32,
|
|
3422
3473
|
Index as Index29
|
|
3423
3474
|
} from "typeorm";
|
|
3424
3475
|
|
|
3425
3476
|
// src/entities/company-role.entity.ts
|
|
3426
3477
|
import {
|
|
3427
|
-
Column as
|
|
3428
|
-
Entity as
|
|
3478
|
+
Column as Column35,
|
|
3479
|
+
Entity as Entity34,
|
|
3429
3480
|
Index as Index28,
|
|
3430
|
-
JoinColumn as
|
|
3431
|
-
ManyToOne as
|
|
3432
|
-
OneToMany as
|
|
3481
|
+
JoinColumn as JoinColumn31,
|
|
3482
|
+
ManyToOne as ManyToOne31,
|
|
3483
|
+
OneToMany as OneToMany9
|
|
3433
3484
|
} from "typeorm";
|
|
3434
3485
|
|
|
3435
3486
|
// src/entities/company-role-permission.entity.ts
|
|
3436
3487
|
import {
|
|
3437
|
-
Column as
|
|
3438
|
-
Entity as
|
|
3439
|
-
ManyToOne as
|
|
3440
|
-
JoinColumn as
|
|
3488
|
+
Column as Column34,
|
|
3489
|
+
Entity as Entity33,
|
|
3490
|
+
ManyToOne as ManyToOne30,
|
|
3491
|
+
JoinColumn as JoinColumn30,
|
|
3441
3492
|
Index as Index27
|
|
3442
3493
|
} from "typeorm";
|
|
3443
3494
|
|
|
3444
3495
|
// src/entities/permission.entity.ts
|
|
3445
|
-
import { Column as
|
|
3496
|
+
import { Column as Column33, Entity as Entity32, Index as Index26 } from "typeorm";
|
|
3446
3497
|
var Permission = class extends BaseEntity {
|
|
3447
3498
|
};
|
|
3448
3499
|
__decorateClass([
|
|
3449
|
-
|
|
3500
|
+
Column33({ name: "name", type: "varchar", nullable: true })
|
|
3450
3501
|
], Permission.prototype, "name", 2);
|
|
3451
3502
|
__decorateClass([
|
|
3452
|
-
|
|
3503
|
+
Column33({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3453
3504
|
Index26()
|
|
3454
3505
|
], Permission.prototype, "slug", 2);
|
|
3455
3506
|
__decorateClass([
|
|
3456
|
-
|
|
3507
|
+
Column33({ name: "description", type: "text", nullable: true })
|
|
3457
3508
|
], Permission.prototype, "description", 2);
|
|
3458
3509
|
__decorateClass([
|
|
3459
|
-
|
|
3510
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3460
3511
|
], Permission.prototype, "isActive", 2);
|
|
3461
3512
|
Permission = __decorateClass([
|
|
3462
|
-
|
|
3513
|
+
Entity32("permissions")
|
|
3463
3514
|
], Permission);
|
|
3464
3515
|
|
|
3465
3516
|
// src/entities/company-role-permission.entity.ts
|
|
3466
3517
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3467
3518
|
};
|
|
3468
3519
|
__decorateClass([
|
|
3469
|
-
|
|
3520
|
+
Column34({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3470
3521
|
Index27()
|
|
3471
3522
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3472
3523
|
__decorateClass([
|
|
3473
|
-
|
|
3524
|
+
ManyToOne30(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3474
3525
|
onDelete: "CASCADE"
|
|
3475
3526
|
}),
|
|
3476
|
-
|
|
3527
|
+
JoinColumn30({ name: "company_role_id" })
|
|
3477
3528
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3478
3529
|
__decorateClass([
|
|
3479
|
-
|
|
3530
|
+
Column34({ name: "permission_id", type: "integer" }),
|
|
3480
3531
|
Index27()
|
|
3481
3532
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3482
3533
|
__decorateClass([
|
|
3483
|
-
|
|
3484
|
-
|
|
3534
|
+
ManyToOne30(() => Permission, { onDelete: "CASCADE" }),
|
|
3535
|
+
JoinColumn30({ name: "permission_id" })
|
|
3485
3536
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3486
3537
|
__decorateClass([
|
|
3487
|
-
|
|
3538
|
+
Column34({ name: "assigned_by", type: "integer", nullable: true })
|
|
3488
3539
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3489
3540
|
CompanyRolePermission = __decorateClass([
|
|
3490
|
-
|
|
3541
|
+
Entity33("company_role_permissions")
|
|
3491
3542
|
], CompanyRolePermission);
|
|
3492
3543
|
|
|
3493
3544
|
// src/entities/company-role.entity.ts
|
|
3494
3545
|
var CompanyRole = class extends BaseEntity {
|
|
3495
3546
|
};
|
|
3496
3547
|
__decorateClass([
|
|
3497
|
-
|
|
3548
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3498
3549
|
Index28()
|
|
3499
3550
|
], CompanyRole.prototype, "userId", 2);
|
|
3500
3551
|
__decorateClass([
|
|
3501
|
-
|
|
3502
|
-
|
|
3552
|
+
ManyToOne31(() => User, (user) => user.otps),
|
|
3553
|
+
JoinColumn31({ name: "user_id" })
|
|
3503
3554
|
], CompanyRole.prototype, "user", 2);
|
|
3504
3555
|
__decorateClass([
|
|
3505
|
-
|
|
3556
|
+
Column35({ name: "name", type: "varchar" })
|
|
3506
3557
|
], CompanyRole.prototype, "name", 2);
|
|
3507
3558
|
__decorateClass([
|
|
3508
|
-
|
|
3559
|
+
Column35({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3509
3560
|
Index28()
|
|
3510
3561
|
], CompanyRole.prototype, "slug", 2);
|
|
3511
3562
|
__decorateClass([
|
|
3512
|
-
|
|
3563
|
+
Column35({ name: "description", type: "text", nullable: true })
|
|
3513
3564
|
], CompanyRole.prototype, "description", 2);
|
|
3514
3565
|
__decorateClass([
|
|
3515
|
-
|
|
3566
|
+
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3516
3567
|
], CompanyRole.prototype, "isActive", 2);
|
|
3517
3568
|
__decorateClass([
|
|
3518
|
-
|
|
3569
|
+
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3519
3570
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3520
3571
|
CompanyRole = __decorateClass([
|
|
3521
|
-
|
|
3572
|
+
Entity34("company_roles")
|
|
3522
3573
|
], CompanyRole);
|
|
3523
3574
|
|
|
3524
3575
|
// src/entities/company-members-roles.entity.ts
|
|
3525
3576
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3526
3577
|
};
|
|
3527
3578
|
__decorateClass([
|
|
3528
|
-
|
|
3579
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3529
3580
|
Index29()
|
|
3530
3581
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3531
3582
|
__decorateClass([
|
|
3532
|
-
|
|
3533
|
-
|
|
3583
|
+
ManyToOne32(() => User),
|
|
3584
|
+
JoinColumn32({ name: "user_id" })
|
|
3534
3585
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3535
3586
|
__decorateClass([
|
|
3536
|
-
|
|
3537
|
-
|
|
3587
|
+
ManyToOne32(() => CompanyRole),
|
|
3588
|
+
JoinColumn32({ name: "company_role_id" })
|
|
3538
3589
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3539
3590
|
__decorateClass([
|
|
3540
|
-
|
|
3591
|
+
Column36({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3541
3592
|
Index29()
|
|
3542
3593
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3543
3594
|
__decorateClass([
|
|
3544
|
-
|
|
3595
|
+
Column36({ name: "assigned_by", type: "integer", nullable: true })
|
|
3545
3596
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3546
3597
|
CompanyMemberRole = __decorateClass([
|
|
3547
|
-
|
|
3598
|
+
Entity35("company_member_roles")
|
|
3548
3599
|
], CompanyMemberRole);
|
|
3549
3600
|
|
|
3550
3601
|
// src/entities/assessment-answer.entity.ts
|
|
3551
3602
|
import {
|
|
3552
|
-
Entity as
|
|
3553
|
-
Column as
|
|
3554
|
-
ManyToOne as
|
|
3603
|
+
Entity as Entity38,
|
|
3604
|
+
Column as Column39,
|
|
3605
|
+
ManyToOne as ManyToOne34,
|
|
3555
3606
|
Index as Index31,
|
|
3556
|
-
JoinColumn as
|
|
3607
|
+
JoinColumn as JoinColumn34
|
|
3557
3608
|
} from "typeorm";
|
|
3558
3609
|
|
|
3559
3610
|
// src/entities/assessment-question.entity.ts
|
|
3560
|
-
import { Entity as
|
|
3611
|
+
import { Entity as Entity37, Column as Column38, OneToMany as OneToMany11 } from "typeorm";
|
|
3561
3612
|
|
|
3562
3613
|
// src/entities/assessment-question-option.entity.ts
|
|
3563
3614
|
import {
|
|
3564
|
-
Entity as
|
|
3565
|
-
Column as
|
|
3566
|
-
OneToMany as
|
|
3567
|
-
ManyToOne as
|
|
3615
|
+
Entity as Entity36,
|
|
3616
|
+
Column as Column37,
|
|
3617
|
+
OneToMany as OneToMany10,
|
|
3618
|
+
ManyToOne as ManyToOne33,
|
|
3568
3619
|
Index as Index30,
|
|
3569
|
-
JoinColumn as
|
|
3620
|
+
JoinColumn as JoinColumn33
|
|
3570
3621
|
} from "typeorm";
|
|
3571
3622
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3572
3623
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3577,21 +3628,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3577
3628
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3578
3629
|
};
|
|
3579
3630
|
__decorateClass([
|
|
3580
|
-
|
|
3631
|
+
Column37({ name: "question_id", type: "integer", nullable: true }),
|
|
3581
3632
|
Index30()
|
|
3582
3633
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3583
3634
|
__decorateClass([
|
|
3584
|
-
|
|
3635
|
+
ManyToOne33(
|
|
3585
3636
|
() => AssessmetQuestion,
|
|
3586
3637
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3587
3638
|
),
|
|
3588
|
-
|
|
3639
|
+
JoinColumn33({ name: "question_id" })
|
|
3589
3640
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3590
3641
|
__decorateClass([
|
|
3591
|
-
|
|
3642
|
+
Column37({ name: "text", type: "varchar", nullable: true })
|
|
3592
3643
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3593
3644
|
__decorateClass([
|
|
3594
|
-
|
|
3645
|
+
Column37({
|
|
3595
3646
|
name: "answer_type",
|
|
3596
3647
|
type: "enum",
|
|
3597
3648
|
enum: AnswerTypeEnum,
|
|
@@ -3599,13 +3650,13 @@ __decorateClass([
|
|
|
3599
3650
|
})
|
|
3600
3651
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3601
3652
|
__decorateClass([
|
|
3602
|
-
|
|
3653
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3603
3654
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3604
3655
|
__decorateClass([
|
|
3605
|
-
|
|
3656
|
+
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3606
3657
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3607
3658
|
AssessmetQuestionOption = __decorateClass([
|
|
3608
|
-
|
|
3659
|
+
Entity36("assessment_question_options")
|
|
3609
3660
|
], AssessmetQuestionOption);
|
|
3610
3661
|
|
|
3611
3662
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3617,10 +3668,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3617
3668
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3618
3669
|
};
|
|
3619
3670
|
__decorateClass([
|
|
3620
|
-
|
|
3671
|
+
Column38({ name: "text", type: "varchar", nullable: true })
|
|
3621
3672
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3622
3673
|
__decorateClass([
|
|
3623
|
-
|
|
3674
|
+
Column38({
|
|
3624
3675
|
name: "question_for",
|
|
3625
3676
|
type: "enum",
|
|
3626
3677
|
enum: QuestionForEnum,
|
|
@@ -3628,16 +3679,16 @@ __decorateClass([
|
|
|
3628
3679
|
})
|
|
3629
3680
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3630
3681
|
__decorateClass([
|
|
3631
|
-
|
|
3682
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3632
3683
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3633
3684
|
__decorateClass([
|
|
3634
|
-
|
|
3685
|
+
OneToMany11(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3635
3686
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3636
3687
|
__decorateClass([
|
|
3637
|
-
|
|
3688
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3638
3689
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3639
3690
|
AssessmetQuestion = __decorateClass([
|
|
3640
|
-
|
|
3691
|
+
Entity37("assessment_questions")
|
|
3641
3692
|
], AssessmetQuestion);
|
|
3642
3693
|
|
|
3643
3694
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3650,87 +3701,87 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3650
3701
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3651
3702
|
};
|
|
3652
3703
|
__decorateClass([
|
|
3653
|
-
|
|
3704
|
+
Column39({ name: "user_id", type: "integer" }),
|
|
3654
3705
|
Index31()
|
|
3655
3706
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3656
3707
|
__decorateClass([
|
|
3657
|
-
|
|
3658
|
-
|
|
3708
|
+
ManyToOne34(() => User, (user) => user.assessmentAnswers),
|
|
3709
|
+
JoinColumn34({ name: "user_id" })
|
|
3659
3710
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3660
3711
|
__decorateClass([
|
|
3661
|
-
|
|
3712
|
+
Column39({ name: "question_id", type: "integer" }),
|
|
3662
3713
|
Index31()
|
|
3663
3714
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3664
3715
|
__decorateClass([
|
|
3665
|
-
|
|
3716
|
+
ManyToOne34(
|
|
3666
3717
|
() => AssessmetQuestion,
|
|
3667
3718
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3668
3719
|
),
|
|
3669
|
-
|
|
3720
|
+
JoinColumn34({ name: "question_id" })
|
|
3670
3721
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3671
3722
|
__decorateClass([
|
|
3672
|
-
|
|
3723
|
+
Column39({ name: "selected_option_id", type: "integer" }),
|
|
3673
3724
|
Index31()
|
|
3674
3725
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3675
3726
|
__decorateClass([
|
|
3676
|
-
|
|
3727
|
+
ManyToOne34(
|
|
3677
3728
|
() => AssessmetQuestionOption,
|
|
3678
3729
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3679
3730
|
),
|
|
3680
|
-
|
|
3731
|
+
JoinColumn34({ name: "selected_option_id" })
|
|
3681
3732
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3682
3733
|
__decorateClass([
|
|
3683
|
-
|
|
3734
|
+
Column39({
|
|
3684
3735
|
name: "selected_answer_type",
|
|
3685
3736
|
type: "enum",
|
|
3686
3737
|
enum: SelectedAnswerTypeEnum
|
|
3687
3738
|
})
|
|
3688
3739
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3689
3740
|
__decorateClass([
|
|
3690
|
-
|
|
3741
|
+
Column39({ name: "score", type: "float" })
|
|
3691
3742
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3692
3743
|
AssessmentAnswer = __decorateClass([
|
|
3693
|
-
|
|
3744
|
+
Entity38("assessment_answers")
|
|
3694
3745
|
], AssessmentAnswer);
|
|
3695
3746
|
|
|
3696
3747
|
// src/entities/company-skill.entity.ts
|
|
3697
|
-
import { Entity as
|
|
3748
|
+
import { Entity as Entity39, Column as Column40, Index as Index32, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3698
3749
|
var CompanySkill = class extends BaseEntity {
|
|
3699
3750
|
};
|
|
3700
3751
|
// individual index to find core skills by user
|
|
3701
3752
|
__decorateClass([
|
|
3702
|
-
|
|
3753
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3703
3754
|
Index32()
|
|
3704
3755
|
], CompanySkill.prototype, "userId", 2);
|
|
3705
3756
|
__decorateClass([
|
|
3706
|
-
|
|
3707
|
-
|
|
3757
|
+
ManyToOne35(() => User, (user) => user.freelancerSkills),
|
|
3758
|
+
JoinColumn35({ name: "user_id" })
|
|
3708
3759
|
], CompanySkill.prototype, "user", 2);
|
|
3709
3760
|
__decorateClass([
|
|
3710
|
-
|
|
3761
|
+
Column40({ name: "skill_name", type: "varchar", nullable: true })
|
|
3711
3762
|
], CompanySkill.prototype, "skillName", 2);
|
|
3712
3763
|
CompanySkill = __decorateClass([
|
|
3713
|
-
|
|
3764
|
+
Entity39("company_skills")
|
|
3714
3765
|
], CompanySkill);
|
|
3715
3766
|
|
|
3716
3767
|
// src/entities/admin-user-role.entity.ts
|
|
3717
|
-
import { Entity as
|
|
3768
|
+
import { Entity as Entity43, Column as Column44, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37 } from "typeorm";
|
|
3718
3769
|
|
|
3719
3770
|
// src/entities/admin-role.entity.ts
|
|
3720
|
-
import { Entity as
|
|
3771
|
+
import { Entity as Entity42, Column as Column43, Index as Index35, OneToMany as OneToMany14 } from "typeorm";
|
|
3721
3772
|
|
|
3722
3773
|
// src/entities/admin-role-permission.entity.ts
|
|
3723
|
-
import { Entity as
|
|
3774
|
+
import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36 } from "typeorm";
|
|
3724
3775
|
|
|
3725
3776
|
// src/entities/admin-permission.entity.ts
|
|
3726
|
-
import { Entity as
|
|
3777
|
+
import { Entity as Entity40, Column as Column41, Index as Index33, OneToMany as OneToMany13 } from "typeorm";
|
|
3727
3778
|
var AdminPermission = class extends BaseEntity {
|
|
3728
3779
|
};
|
|
3729
3780
|
__decorateClass([
|
|
3730
|
-
|
|
3781
|
+
Column41({ name: "permission_name", type: "varchar", nullable: true })
|
|
3731
3782
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3732
3783
|
__decorateClass([
|
|
3733
|
-
|
|
3784
|
+
Column41({
|
|
3734
3785
|
name: "permission_slug",
|
|
3735
3786
|
type: "varchar",
|
|
3736
3787
|
unique: true,
|
|
@@ -3739,29 +3790,29 @@ __decorateClass([
|
|
|
3739
3790
|
Index33()
|
|
3740
3791
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3741
3792
|
__decorateClass([
|
|
3742
|
-
|
|
3793
|
+
Column41({ name: "permission_description", type: "varchar", nullable: true })
|
|
3743
3794
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3744
3795
|
__decorateClass([
|
|
3745
|
-
|
|
3796
|
+
Column41({ name: "module", type: "varchar", nullable: true })
|
|
3746
3797
|
], AdminPermission.prototype, "module", 2);
|
|
3747
3798
|
__decorateClass([
|
|
3748
|
-
|
|
3799
|
+
Column41({ name: "is_active", type: "boolean", default: true })
|
|
3749
3800
|
], AdminPermission.prototype, "isActive", 2);
|
|
3750
3801
|
__decorateClass([
|
|
3751
|
-
|
|
3802
|
+
OneToMany13(
|
|
3752
3803
|
() => AdminRolePermission,
|
|
3753
3804
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3754
3805
|
)
|
|
3755
3806
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3756
3807
|
AdminPermission = __decorateClass([
|
|
3757
|
-
|
|
3808
|
+
Entity40("admin_permissions")
|
|
3758
3809
|
], AdminPermission);
|
|
3759
3810
|
|
|
3760
3811
|
// src/entities/admin-role-permission.entity.ts
|
|
3761
3812
|
var AdminRolePermission = class extends BaseEntity {
|
|
3762
3813
|
};
|
|
3763
3814
|
__decorateClass([
|
|
3764
|
-
|
|
3815
|
+
Column42({
|
|
3765
3816
|
name: "role_id",
|
|
3766
3817
|
type: "int",
|
|
3767
3818
|
nullable: true,
|
|
@@ -3769,11 +3820,11 @@ __decorateClass([
|
|
|
3769
3820
|
})
|
|
3770
3821
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3771
3822
|
__decorateClass([
|
|
3772
|
-
|
|
3773
|
-
|
|
3823
|
+
ManyToOne36(() => AdminRole),
|
|
3824
|
+
JoinColumn36({ name: "role_id" })
|
|
3774
3825
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3775
3826
|
__decorateClass([
|
|
3776
|
-
|
|
3827
|
+
Column42({
|
|
3777
3828
|
name: "permission_id",
|
|
3778
3829
|
type: "int",
|
|
3779
3830
|
nullable: true,
|
|
@@ -3781,47 +3832,47 @@ __decorateClass([
|
|
|
3781
3832
|
})
|
|
3782
3833
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3783
3834
|
__decorateClass([
|
|
3784
|
-
|
|
3785
|
-
|
|
3835
|
+
ManyToOne36(() => AdminPermission),
|
|
3836
|
+
JoinColumn36({ name: "permission_id" })
|
|
3786
3837
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3787
3838
|
AdminRolePermission = __decorateClass([
|
|
3788
|
-
|
|
3839
|
+
Entity41("admin_role_permissions")
|
|
3789
3840
|
], AdminRolePermission);
|
|
3790
3841
|
|
|
3791
3842
|
// src/entities/admin-role.entity.ts
|
|
3792
3843
|
var AdminRole = class extends BaseEntity {
|
|
3793
3844
|
};
|
|
3794
3845
|
__decorateClass([
|
|
3795
|
-
|
|
3846
|
+
Column43({ name: "role_name", type: "varchar", nullable: true })
|
|
3796
3847
|
], AdminRole.prototype, "roleName", 2);
|
|
3797
3848
|
__decorateClass([
|
|
3798
|
-
|
|
3849
|
+
Column43({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3799
3850
|
Index35()
|
|
3800
3851
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3801
3852
|
__decorateClass([
|
|
3802
|
-
|
|
3853
|
+
Column43({ name: "role_description", type: "varchar", nullable: true })
|
|
3803
3854
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3804
3855
|
__decorateClass([
|
|
3805
|
-
|
|
3856
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
3806
3857
|
], AdminRole.prototype, "isActive", 2);
|
|
3807
3858
|
__decorateClass([
|
|
3808
|
-
|
|
3859
|
+
OneToMany14(
|
|
3809
3860
|
() => AdminRolePermission,
|
|
3810
3861
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3811
3862
|
)
|
|
3812
3863
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3813
3864
|
__decorateClass([
|
|
3814
|
-
|
|
3865
|
+
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3815
3866
|
], AdminRole.prototype, "userRoles", 2);
|
|
3816
3867
|
AdminRole = __decorateClass([
|
|
3817
|
-
|
|
3868
|
+
Entity42("admin_roles")
|
|
3818
3869
|
], AdminRole);
|
|
3819
3870
|
|
|
3820
3871
|
// src/entities/admin-user-role.entity.ts
|
|
3821
3872
|
var AdminUserRole = class extends BaseEntity {
|
|
3822
3873
|
};
|
|
3823
3874
|
__decorateClass([
|
|
3824
|
-
|
|
3875
|
+
Column44({
|
|
3825
3876
|
name: "user_id",
|
|
3826
3877
|
type: "int",
|
|
3827
3878
|
nullable: true,
|
|
@@ -3829,11 +3880,11 @@ __decorateClass([
|
|
|
3829
3880
|
})
|
|
3830
3881
|
], AdminUserRole.prototype, "userId", 2);
|
|
3831
3882
|
__decorateClass([
|
|
3832
|
-
|
|
3833
|
-
|
|
3883
|
+
ManyToOne37(() => User),
|
|
3884
|
+
JoinColumn37({ name: "user_id" })
|
|
3834
3885
|
], AdminUserRole.prototype, "user", 2);
|
|
3835
3886
|
__decorateClass([
|
|
3836
|
-
|
|
3887
|
+
Column44({
|
|
3837
3888
|
name: "role_id",
|
|
3838
3889
|
type: "int",
|
|
3839
3890
|
nullable: true,
|
|
@@ -3841,40 +3892,40 @@ __decorateClass([
|
|
|
3841
3892
|
})
|
|
3842
3893
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3843
3894
|
__decorateClass([
|
|
3844
|
-
|
|
3845
|
-
|
|
3895
|
+
ManyToOne37(() => AdminRole),
|
|
3896
|
+
JoinColumn37({ name: "role_id" })
|
|
3846
3897
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3847
3898
|
AdminUserRole = __decorateClass([
|
|
3848
|
-
|
|
3899
|
+
Entity43("admin_user_roles")
|
|
3849
3900
|
], AdminUserRole);
|
|
3850
3901
|
|
|
3851
3902
|
// src/entities/freelancer-resume.entity.ts
|
|
3852
3903
|
import {
|
|
3853
|
-
Entity as
|
|
3854
|
-
Column as
|
|
3904
|
+
Entity as Entity44,
|
|
3905
|
+
Column as Column45,
|
|
3855
3906
|
Index as Index37,
|
|
3856
|
-
ManyToOne as
|
|
3857
|
-
JoinColumn as
|
|
3907
|
+
ManyToOne as ManyToOne38,
|
|
3908
|
+
JoinColumn as JoinColumn38
|
|
3858
3909
|
} from "typeorm";
|
|
3859
3910
|
var FreelancerResume = class extends BaseEntity {
|
|
3860
3911
|
};
|
|
3861
3912
|
// individual index to find profile by user
|
|
3862
3913
|
__decorateClass([
|
|
3863
|
-
|
|
3914
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
3864
3915
|
Index37()
|
|
3865
3916
|
], FreelancerResume.prototype, "userId", 2);
|
|
3866
3917
|
__decorateClass([
|
|
3867
|
-
|
|
3868
|
-
|
|
3918
|
+
ManyToOne38(() => User, (user) => user.freelancerProfile),
|
|
3919
|
+
JoinColumn38({ name: "user_id" })
|
|
3869
3920
|
], FreelancerResume.prototype, "user", 2);
|
|
3870
3921
|
__decorateClass([
|
|
3871
|
-
|
|
3922
|
+
Column45({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3872
3923
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3873
3924
|
__decorateClass([
|
|
3874
|
-
|
|
3925
|
+
Column45({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3875
3926
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3876
3927
|
FreelancerResume = __decorateClass([
|
|
3877
|
-
|
|
3928
|
+
Entity44("freelancer_resumes")
|
|
3878
3929
|
], FreelancerResume);
|
|
3879
3930
|
|
|
3880
3931
|
// src/entities/user.entity.ts
|
|
@@ -3902,51 +3953,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3902
3953
|
var User = class extends BaseEntity {
|
|
3903
3954
|
};
|
|
3904
3955
|
__decorateClass([
|
|
3905
|
-
|
|
3956
|
+
Column46({ name: "unique_id", type: "varchar", unique: true })
|
|
3906
3957
|
], User.prototype, "uniqueId", 2);
|
|
3907
3958
|
__decorateClass([
|
|
3908
|
-
|
|
3959
|
+
Column46({ name: "parent_id", type: "integer", nullable: true }),
|
|
3909
3960
|
Index38()
|
|
3910
3961
|
], User.prototype, "parentId", 2);
|
|
3911
3962
|
__decorateClass([
|
|
3912
|
-
|
|
3913
|
-
|
|
3963
|
+
ManyToOne39(() => User, (user) => user.children, { nullable: true }),
|
|
3964
|
+
JoinColumn39({ name: "parent_id" })
|
|
3914
3965
|
], User.prototype, "parent", 2);
|
|
3915
3966
|
__decorateClass([
|
|
3916
|
-
|
|
3967
|
+
OneToMany15(() => User, (user) => user.parent)
|
|
3917
3968
|
], User.prototype, "children", 2);
|
|
3918
3969
|
__decorateClass([
|
|
3919
|
-
|
|
3970
|
+
Column46({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3920
3971
|
], User.prototype, "username", 2);
|
|
3921
3972
|
__decorateClass([
|
|
3922
|
-
|
|
3973
|
+
Column46({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3923
3974
|
], User.prototype, "firstName", 2);
|
|
3924
3975
|
__decorateClass([
|
|
3925
|
-
|
|
3976
|
+
Column46({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3926
3977
|
], User.prototype, "lastName", 2);
|
|
3927
3978
|
__decorateClass([
|
|
3928
|
-
|
|
3979
|
+
Column46({ name: "date_of_birth", type: "date", nullable: true })
|
|
3929
3980
|
], User.prototype, "dateOfBirth", 2);
|
|
3930
3981
|
__decorateClass([
|
|
3931
|
-
|
|
3982
|
+
Column46({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3932
3983
|
], User.prototype, "gender", 2);
|
|
3933
3984
|
__decorateClass([
|
|
3934
|
-
|
|
3985
|
+
Column46({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3935
3986
|
], User.prototype, "profilePictureUrl", 2);
|
|
3936
3987
|
__decorateClass([
|
|
3937
|
-
|
|
3988
|
+
Column46({ name: "email", type: "varchar", unique: true })
|
|
3938
3989
|
], User.prototype, "email", 2);
|
|
3939
3990
|
__decorateClass([
|
|
3940
|
-
|
|
3991
|
+
Column46({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3941
3992
|
], User.prototype, "mobileCode", 2);
|
|
3942
3993
|
__decorateClass([
|
|
3943
|
-
|
|
3994
|
+
Column46({ name: "mobile", type: "varchar", nullable: true })
|
|
3944
3995
|
], User.prototype, "mobile", 2);
|
|
3945
3996
|
__decorateClass([
|
|
3946
|
-
|
|
3997
|
+
Column46({ name: "password", type: "varchar", nullable: true })
|
|
3947
3998
|
], User.prototype, "password", 2);
|
|
3948
3999
|
__decorateClass([
|
|
3949
|
-
|
|
4000
|
+
Column46({
|
|
3950
4001
|
name: "account_type",
|
|
3951
4002
|
type: "enum",
|
|
3952
4003
|
enum: AccountType,
|
|
@@ -3954,7 +4005,7 @@ __decorateClass([
|
|
|
3954
4005
|
})
|
|
3955
4006
|
], User.prototype, "accountType", 2);
|
|
3956
4007
|
__decorateClass([
|
|
3957
|
-
|
|
4008
|
+
Column46({
|
|
3958
4009
|
name: "account_status",
|
|
3959
4010
|
type: "enum",
|
|
3960
4011
|
enum: AccountStatus,
|
|
@@ -3962,39 +4013,39 @@ __decorateClass([
|
|
|
3962
4013
|
})
|
|
3963
4014
|
], User.prototype, "accountStatus", 2);
|
|
3964
4015
|
__decorateClass([
|
|
3965
|
-
|
|
4016
|
+
Column46({ name: "is_email_verified", type: "boolean", default: false })
|
|
3966
4017
|
], User.prototype, "isEmailVerified", 2);
|
|
3967
4018
|
__decorateClass([
|
|
3968
|
-
|
|
4019
|
+
Column46({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3969
4020
|
], User.prototype, "isMobileVerified", 2);
|
|
3970
4021
|
__decorateClass([
|
|
3971
|
-
|
|
4022
|
+
Column46({ name: "is_social", type: "boolean", default: false })
|
|
3972
4023
|
], User.prototype, "isSocial", 2);
|
|
3973
4024
|
__decorateClass([
|
|
3974
|
-
|
|
4025
|
+
Column46({
|
|
3975
4026
|
name: "last_login_at",
|
|
3976
4027
|
type: "timestamp with time zone",
|
|
3977
4028
|
nullable: true
|
|
3978
4029
|
})
|
|
3979
4030
|
], User.prototype, "lastLoginAt", 2);
|
|
3980
4031
|
__decorateClass([
|
|
3981
|
-
|
|
4032
|
+
Column46({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3982
4033
|
], User.prototype, "lastLoginIp", 2);
|
|
3983
4034
|
__decorateClass([
|
|
3984
|
-
|
|
4035
|
+
Column46({ name: "reset_token", type: "varchar", nullable: true })
|
|
3985
4036
|
], User.prototype, "resetToken", 2);
|
|
3986
4037
|
__decorateClass([
|
|
3987
|
-
|
|
4038
|
+
Column46({
|
|
3988
4039
|
name: "reset_token_expire_at",
|
|
3989
4040
|
type: "timestamp with time zone",
|
|
3990
4041
|
nullable: true
|
|
3991
4042
|
})
|
|
3992
4043
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3993
4044
|
__decorateClass([
|
|
3994
|
-
|
|
4045
|
+
OneToMany15(() => RefreshToken, (token) => token.user)
|
|
3995
4046
|
], User.prototype, "refreshTokens", 2);
|
|
3996
4047
|
__decorateClass([
|
|
3997
|
-
|
|
4048
|
+
Column46({
|
|
3998
4049
|
name: "provider",
|
|
3999
4050
|
type: "enum",
|
|
4000
4051
|
enum: Provider,
|
|
@@ -4003,40 +4054,40 @@ __decorateClass([
|
|
|
4003
4054
|
})
|
|
4004
4055
|
], User.prototype, "provider", 2);
|
|
4005
4056
|
__decorateClass([
|
|
4006
|
-
|
|
4057
|
+
Column46({ name: "provider_token", type: "varchar", nullable: true })
|
|
4007
4058
|
], User.prototype, "providerToken", 2);
|
|
4008
4059
|
__decorateClass([
|
|
4009
|
-
|
|
4060
|
+
Column46({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4010
4061
|
], User.prototype, "linkedInId", 2);
|
|
4011
4062
|
__decorateClass([
|
|
4012
|
-
|
|
4063
|
+
Column46({ name: "google_id", type: "varchar", nullable: true })
|
|
4013
4064
|
], User.prototype, "googleId", 2);
|
|
4014
4065
|
__decorateClass([
|
|
4015
|
-
|
|
4066
|
+
Column46({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4016
4067
|
], User.prototype, "gitLabsId", 2);
|
|
4017
4068
|
__decorateClass([
|
|
4018
|
-
|
|
4069
|
+
Column46({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4019
4070
|
], User.prototype, "onBoardedBy", 2);
|
|
4020
4071
|
__decorateClass([
|
|
4021
|
-
|
|
4072
|
+
OneToMany15(() => Otp, (otp) => otp.user)
|
|
4022
4073
|
], User.prototype, "otps", 2);
|
|
4023
4074
|
__decorateClass([
|
|
4024
|
-
|
|
4075
|
+
OneToMany15(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4025
4076
|
], User.prototype, "senseloafLogs", 2);
|
|
4026
4077
|
__decorateClass([
|
|
4027
4078
|
OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4028
4079
|
], User.prototype, "companyProfile", 2);
|
|
4029
4080
|
__decorateClass([
|
|
4030
|
-
|
|
4081
|
+
OneToMany15(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4031
4082
|
], User.prototype, "companySkills", 2);
|
|
4032
4083
|
__decorateClass([
|
|
4033
|
-
|
|
4084
|
+
OneToMany15(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
4034
4085
|
], User.prototype, "companyMemberRoles", 2);
|
|
4035
4086
|
__decorateClass([
|
|
4036
|
-
|
|
4087
|
+
OneToMany15(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4037
4088
|
], User.prototype, "companyAiInterview", 2);
|
|
4038
4089
|
__decorateClass([
|
|
4039
|
-
|
|
4090
|
+
OneToMany15(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4040
4091
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4041
4092
|
__decorateClass([
|
|
4042
4093
|
OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
@@ -4045,67 +4096,70 @@ __decorateClass([
|
|
|
4045
4096
|
OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4046
4097
|
], User.prototype, "freelancerResume", 2);
|
|
4047
4098
|
__decorateClass([
|
|
4048
|
-
|
|
4099
|
+
OneToMany15(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
4049
4100
|
], User.prototype, "assessments", 2);
|
|
4050
4101
|
__decorateClass([
|
|
4051
|
-
|
|
4102
|
+
OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
4052
4103
|
], User.prototype, "assessmentAnswers", 2);
|
|
4053
4104
|
__decorateClass([
|
|
4054
|
-
|
|
4105
|
+
OneToMany15(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4055
4106
|
], User.prototype, "freelancerSkills", 2);
|
|
4056
4107
|
__decorateClass([
|
|
4057
|
-
|
|
4108
|
+
OneToMany15(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
4058
4109
|
], User.prototype, "freelancerExperience", 2);
|
|
4059
4110
|
__decorateClass([
|
|
4060
|
-
|
|
4111
|
+
OneToMany15(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
4061
4112
|
], User.prototype, "freelancerEducation", 2);
|
|
4062
4113
|
__decorateClass([
|
|
4063
|
-
|
|
4114
|
+
OneToMany15(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
4064
4115
|
], User.prototype, "freelancerProject", 2);
|
|
4065
4116
|
__decorateClass([
|
|
4066
|
-
|
|
4117
|
+
OneToMany15(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
4067
4118
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4068
4119
|
__decorateClass([
|
|
4069
|
-
|
|
4120
|
+
OneToMany15(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4070
4121
|
], User.prototype, "freelancerTool", 2);
|
|
4071
4122
|
__decorateClass([
|
|
4072
|
-
|
|
4123
|
+
OneToMany15(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4073
4124
|
], User.prototype, "freelancerFramework", 2);
|
|
4074
4125
|
__decorateClass([
|
|
4075
4126
|
OneToOne3(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4076
4127
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4077
4128
|
__decorateClass([
|
|
4078
|
-
|
|
4129
|
+
OneToMany15(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4079
4130
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4080
4131
|
__decorateClass([
|
|
4081
|
-
|
|
4132
|
+
OneToMany15(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4082
4133
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4083
4134
|
__decorateClass([
|
|
4084
|
-
|
|
4135
|
+
OneToMany15(() => F2fInterviewRescheduleRequest, (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate)
|
|
4136
|
+
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4137
|
+
__decorateClass([
|
|
4138
|
+
OneToMany15(() => Job, (job) => job.user)
|
|
4085
4139
|
], User.prototype, "jobs", 2);
|
|
4086
4140
|
__decorateClass([
|
|
4087
|
-
|
|
4141
|
+
OneToMany15(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4088
4142
|
], User.prototype, "jobApplications", 2);
|
|
4089
4143
|
__decorateClass([
|
|
4090
|
-
|
|
4144
|
+
OneToMany15(() => Interview, (interview) => interview.user)
|
|
4091
4145
|
], User.prototype, "interviews", 2);
|
|
4092
4146
|
__decorateClass([
|
|
4093
|
-
|
|
4147
|
+
OneToMany15(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4094
4148
|
], User.prototype, "bankDetail", 2);
|
|
4095
4149
|
__decorateClass([
|
|
4096
|
-
|
|
4150
|
+
OneToMany15(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
4097
4151
|
], User.prototype, "systemPreference", 2);
|
|
4098
4152
|
__decorateClass([
|
|
4099
|
-
|
|
4153
|
+
OneToMany15(() => Rating, (rating) => rating.reviewer)
|
|
4100
4154
|
], User.prototype, "givenRatings", 2);
|
|
4101
4155
|
__decorateClass([
|
|
4102
|
-
|
|
4156
|
+
OneToMany15(() => Rating, (rating) => rating.reviewee)
|
|
4103
4157
|
], User.prototype, "receivedRatings", 2);
|
|
4104
4158
|
__decorateClass([
|
|
4105
|
-
|
|
4159
|
+
OneToMany15(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4106
4160
|
], User.prototype, "adminUserRoles", 2);
|
|
4107
4161
|
User = __decorateClass([
|
|
4108
|
-
|
|
4162
|
+
Entity45("users")
|
|
4109
4163
|
], User);
|
|
4110
4164
|
|
|
4111
4165
|
// src/entities/rating.entity.ts
|
|
@@ -4117,36 +4171,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4117
4171
|
var Rating = class extends BaseEntity {
|
|
4118
4172
|
};
|
|
4119
4173
|
__decorateClass([
|
|
4120
|
-
|
|
4174
|
+
Column47({ name: "reviewer_id", type: "integer" }),
|
|
4121
4175
|
Index39()
|
|
4122
4176
|
], Rating.prototype, "reviewer_id", 2);
|
|
4123
4177
|
__decorateClass([
|
|
4124
|
-
|
|
4125
|
-
|
|
4178
|
+
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
4179
|
+
JoinColumn40({ name: "reviewer_id" })
|
|
4126
4180
|
], Rating.prototype, "reviewer", 2);
|
|
4127
4181
|
__decorateClass([
|
|
4128
|
-
|
|
4182
|
+
Column47({ name: "reviewee_id", type: "integer" }),
|
|
4129
4183
|
Index39()
|
|
4130
4184
|
], Rating.prototype, "reviewee_id", 2);
|
|
4131
4185
|
__decorateClass([
|
|
4132
|
-
|
|
4133
|
-
|
|
4186
|
+
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
4187
|
+
JoinColumn40({ name: "reviewee_id" })
|
|
4134
4188
|
], Rating.prototype, "reviewee", 2);
|
|
4135
4189
|
__decorateClass([
|
|
4136
|
-
|
|
4190
|
+
Column47({
|
|
4137
4191
|
type: "enum",
|
|
4138
4192
|
enum: RatingTypeEnum,
|
|
4139
4193
|
nullable: true
|
|
4140
4194
|
})
|
|
4141
4195
|
], Rating.prototype, "ratingType", 2);
|
|
4142
4196
|
__decorateClass([
|
|
4143
|
-
|
|
4197
|
+
Column47({ type: "integer", nullable: true })
|
|
4144
4198
|
], Rating.prototype, "rating", 2);
|
|
4145
4199
|
__decorateClass([
|
|
4146
|
-
|
|
4200
|
+
Column47({ type: "text", nullable: true })
|
|
4147
4201
|
], Rating.prototype, "review", 2);
|
|
4148
4202
|
Rating = __decorateClass([
|
|
4149
|
-
|
|
4203
|
+
Entity46("ratings")
|
|
4150
4204
|
], Rating);
|
|
4151
4205
|
|
|
4152
4206
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5579,11 +5633,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5579
5633
|
};
|
|
5580
5634
|
|
|
5581
5635
|
// src/entities/sequence-generator.entity.ts
|
|
5582
|
-
import { Entity as
|
|
5636
|
+
import { Entity as Entity47, Column as Column48 } from "typeorm";
|
|
5583
5637
|
var SequenceGenerator = class extends BaseEntity {
|
|
5584
5638
|
};
|
|
5585
5639
|
__decorateClass([
|
|
5586
|
-
|
|
5640
|
+
Column48({
|
|
5587
5641
|
name: "module",
|
|
5588
5642
|
type: "varchar",
|
|
5589
5643
|
length: 50,
|
|
@@ -5592,7 +5646,7 @@ __decorateClass([
|
|
|
5592
5646
|
})
|
|
5593
5647
|
], SequenceGenerator.prototype, "module", 2);
|
|
5594
5648
|
__decorateClass([
|
|
5595
|
-
|
|
5649
|
+
Column48({
|
|
5596
5650
|
name: "prefix",
|
|
5597
5651
|
type: "varchar",
|
|
5598
5652
|
length: 10,
|
|
@@ -5601,7 +5655,7 @@ __decorateClass([
|
|
|
5601
5655
|
})
|
|
5602
5656
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5603
5657
|
__decorateClass([
|
|
5604
|
-
|
|
5658
|
+
Column48({
|
|
5605
5659
|
name: "last_sequence",
|
|
5606
5660
|
type: "int",
|
|
5607
5661
|
nullable: false,
|
|
@@ -5609,7 +5663,7 @@ __decorateClass([
|
|
|
5609
5663
|
})
|
|
5610
5664
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5611
5665
|
__decorateClass([
|
|
5612
|
-
|
|
5666
|
+
Column48({
|
|
5613
5667
|
name: "year",
|
|
5614
5668
|
type: "int",
|
|
5615
5669
|
nullable: true,
|
|
@@ -5617,11 +5671,11 @@ __decorateClass([
|
|
|
5617
5671
|
})
|
|
5618
5672
|
], SequenceGenerator.prototype, "year", 2);
|
|
5619
5673
|
SequenceGenerator = __decorateClass([
|
|
5620
|
-
|
|
5674
|
+
Entity47("sequence_generators")
|
|
5621
5675
|
], SequenceGenerator);
|
|
5622
5676
|
|
|
5623
5677
|
// src/entities/question.entity.ts
|
|
5624
|
-
import { Entity as
|
|
5678
|
+
import { Entity as Entity48, Column as Column49 } from "typeorm";
|
|
5625
5679
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5626
5680
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5627
5681
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5630,16 +5684,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5630
5684
|
var Question = class extends BaseEntity {
|
|
5631
5685
|
};
|
|
5632
5686
|
__decorateClass([
|
|
5633
|
-
|
|
5687
|
+
Column49({ name: "question", type: "varchar" })
|
|
5634
5688
|
], Question.prototype, "question", 2);
|
|
5635
5689
|
__decorateClass([
|
|
5636
|
-
|
|
5690
|
+
Column49({ name: "hint", type: "varchar", nullable: true })
|
|
5637
5691
|
], Question.prototype, "hint", 2);
|
|
5638
5692
|
__decorateClass([
|
|
5639
|
-
|
|
5693
|
+
Column49({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5640
5694
|
], Question.prototype, "slug", 2);
|
|
5641
5695
|
__decorateClass([
|
|
5642
|
-
|
|
5696
|
+
Column49({
|
|
5643
5697
|
name: "question_for",
|
|
5644
5698
|
type: "enum",
|
|
5645
5699
|
enum: QuestionFor,
|
|
@@ -5647,119 +5701,119 @@ __decorateClass([
|
|
|
5647
5701
|
})
|
|
5648
5702
|
], Question.prototype, "questionFor", 2);
|
|
5649
5703
|
__decorateClass([
|
|
5650
|
-
|
|
5704
|
+
Column49({ name: "type", type: "varchar", nullable: true })
|
|
5651
5705
|
], Question.prototype, "type", 2);
|
|
5652
5706
|
__decorateClass([
|
|
5653
|
-
|
|
5707
|
+
Column49({ name: "options", type: "jsonb", nullable: true })
|
|
5654
5708
|
], Question.prototype, "options", 2);
|
|
5655
5709
|
__decorateClass([
|
|
5656
|
-
|
|
5710
|
+
Column49({ name: "is_active", type: "boolean", default: false })
|
|
5657
5711
|
], Question.prototype, "isActive", 2);
|
|
5658
5712
|
Question = __decorateClass([
|
|
5659
|
-
|
|
5713
|
+
Entity48("questions")
|
|
5660
5714
|
], Question);
|
|
5661
5715
|
|
|
5662
5716
|
// src/entities/skill.entity.ts
|
|
5663
|
-
import { Entity as
|
|
5717
|
+
import { Entity as Entity49, Column as Column50 } from "typeorm";
|
|
5664
5718
|
var Skill = class extends BaseEntity {
|
|
5665
5719
|
};
|
|
5666
5720
|
__decorateClass([
|
|
5667
|
-
|
|
5721
|
+
Column50({ name: "name", type: "varchar", nullable: true })
|
|
5668
5722
|
], Skill.prototype, "name", 2);
|
|
5669
5723
|
__decorateClass([
|
|
5670
|
-
|
|
5724
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5671
5725
|
], Skill.prototype, "slug", 2);
|
|
5672
5726
|
__decorateClass([
|
|
5673
|
-
|
|
5727
|
+
Column50({ name: "is_active", type: "boolean", default: false })
|
|
5674
5728
|
], Skill.prototype, "isActive", 2);
|
|
5675
5729
|
Skill = __decorateClass([
|
|
5676
|
-
|
|
5730
|
+
Entity49("skills")
|
|
5677
5731
|
], Skill);
|
|
5678
5732
|
|
|
5679
5733
|
// src/entities/job-role.entity.ts
|
|
5680
|
-
import { Entity as
|
|
5734
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5681
5735
|
var JobRoles = class extends BaseEntity {
|
|
5682
5736
|
};
|
|
5683
5737
|
__decorateClass([
|
|
5684
|
-
|
|
5738
|
+
Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5685
5739
|
], JobRoles.prototype, "slug", 2);
|
|
5686
5740
|
__decorateClass([
|
|
5687
|
-
|
|
5741
|
+
Column51({ name: "name", type: "varchar", nullable: true })
|
|
5688
5742
|
], JobRoles.prototype, "name", 2);
|
|
5689
5743
|
__decorateClass([
|
|
5690
|
-
|
|
5744
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5691
5745
|
], JobRoles.prototype, "isActive", 2);
|
|
5692
5746
|
JobRoles = __decorateClass([
|
|
5693
|
-
|
|
5747
|
+
Entity50("job_roles")
|
|
5694
5748
|
], JobRoles);
|
|
5695
5749
|
|
|
5696
5750
|
// src/entities/plan.entity.ts
|
|
5697
|
-
import { Entity as
|
|
5751
|
+
import { Entity as Entity52, Column as Column53, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5698
5752
|
|
|
5699
5753
|
// src/entities/feature.entity.ts
|
|
5700
|
-
import { Entity as
|
|
5754
|
+
import { Entity as Entity51, Column as Column52, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5701
5755
|
var Feature = class extends BaseEntity {
|
|
5702
5756
|
};
|
|
5703
5757
|
__decorateClass([
|
|
5704
|
-
|
|
5758
|
+
Column52({ name: "name", type: "varchar", unique: true })
|
|
5705
5759
|
], Feature.prototype, "name", 2);
|
|
5706
5760
|
__decorateClass([
|
|
5707
5761
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5708
5762
|
], Feature.prototype, "plans", 2);
|
|
5709
5763
|
Feature = __decorateClass([
|
|
5710
|
-
|
|
5764
|
+
Entity51("features")
|
|
5711
5765
|
], Feature);
|
|
5712
5766
|
|
|
5713
5767
|
// src/entities/plan.entity.ts
|
|
5714
5768
|
var Plan = class extends BaseEntity {
|
|
5715
5769
|
};
|
|
5716
5770
|
__decorateClass([
|
|
5717
|
-
|
|
5771
|
+
Column53({ name: "name", type: "varchar", unique: true })
|
|
5718
5772
|
], Plan.prototype, "name", 2);
|
|
5719
5773
|
__decorateClass([
|
|
5720
|
-
|
|
5774
|
+
Column53({ name: "description", type: "varchar", nullable: true })
|
|
5721
5775
|
], Plan.prototype, "description", 2);
|
|
5722
5776
|
__decorateClass([
|
|
5723
|
-
|
|
5777
|
+
Column53({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5724
5778
|
], Plan.prototype, "price", 2);
|
|
5725
5779
|
__decorateClass([
|
|
5726
|
-
|
|
5780
|
+
Column53({ name: "billing_period", type: "varchar" })
|
|
5727
5781
|
], Plan.prototype, "billingPeriod", 2);
|
|
5728
5782
|
__decorateClass([
|
|
5729
|
-
|
|
5783
|
+
Column53({ name: "is_current", type: "boolean", default: false })
|
|
5730
5784
|
], Plan.prototype, "isCurrent", 2);
|
|
5731
5785
|
__decorateClass([
|
|
5732
5786
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5733
5787
|
JoinTable()
|
|
5734
5788
|
], Plan.prototype, "features", 2);
|
|
5735
5789
|
Plan = __decorateClass([
|
|
5736
|
-
|
|
5790
|
+
Entity52("plans")
|
|
5737
5791
|
], Plan);
|
|
5738
5792
|
|
|
5739
5793
|
// src/entities/cms.entity.ts
|
|
5740
|
-
import { Entity as
|
|
5794
|
+
import { Entity as Entity53, Column as Column54 } from "typeorm";
|
|
5741
5795
|
var Cms = class extends BaseEntity {
|
|
5742
5796
|
};
|
|
5743
5797
|
__decorateClass([
|
|
5744
|
-
|
|
5798
|
+
Column54({ name: "title", type: "varchar", nullable: true })
|
|
5745
5799
|
], Cms.prototype, "title", 2);
|
|
5746
5800
|
__decorateClass([
|
|
5747
|
-
|
|
5801
|
+
Column54({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5748
5802
|
], Cms.prototype, "slug", 2);
|
|
5749
5803
|
__decorateClass([
|
|
5750
|
-
|
|
5804
|
+
Column54({ name: "content", type: "varchar", nullable: true })
|
|
5751
5805
|
], Cms.prototype, "content", 2);
|
|
5752
5806
|
__decorateClass([
|
|
5753
|
-
|
|
5807
|
+
Column54({ name: "is_active", type: "boolean", default: true })
|
|
5754
5808
|
], Cms.prototype, "isActive", 2);
|
|
5755
5809
|
Cms = __decorateClass([
|
|
5756
|
-
|
|
5810
|
+
Entity53("cms")
|
|
5757
5811
|
], Cms);
|
|
5758
5812
|
|
|
5759
5813
|
// src/entities/lead.entity.ts
|
|
5760
5814
|
import {
|
|
5761
|
-
Entity as
|
|
5762
|
-
Column as
|
|
5815
|
+
Entity as Entity54,
|
|
5816
|
+
Column as Column55
|
|
5763
5817
|
} from "typeorm";
|
|
5764
5818
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5765
5819
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5769,22 +5823,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5769
5823
|
var Lead = class extends BaseEntity {
|
|
5770
5824
|
};
|
|
5771
5825
|
__decorateClass([
|
|
5772
|
-
|
|
5826
|
+
Column55({ name: "name", type: "varchar", nullable: true })
|
|
5773
5827
|
], Lead.prototype, "name", 2);
|
|
5774
5828
|
__decorateClass([
|
|
5775
|
-
|
|
5829
|
+
Column55({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5776
5830
|
], Lead.prototype, "mobileCode", 2);
|
|
5777
5831
|
__decorateClass([
|
|
5778
|
-
|
|
5832
|
+
Column55({ name: "mobile", type: "varchar", nullable: true })
|
|
5779
5833
|
], Lead.prototype, "mobile", 2);
|
|
5780
5834
|
__decorateClass([
|
|
5781
|
-
|
|
5835
|
+
Column55({ name: "email", type: "varchar", nullable: true })
|
|
5782
5836
|
], Lead.prototype, "email", 2);
|
|
5783
5837
|
__decorateClass([
|
|
5784
|
-
|
|
5838
|
+
Column55({ name: "description", type: "varchar", nullable: true })
|
|
5785
5839
|
], Lead.prototype, "description", 2);
|
|
5786
5840
|
__decorateClass([
|
|
5787
|
-
|
|
5841
|
+
Column55({
|
|
5788
5842
|
name: "category",
|
|
5789
5843
|
type: "enum",
|
|
5790
5844
|
enum: CategoryEmum,
|
|
@@ -5792,7 +5846,7 @@ __decorateClass([
|
|
|
5792
5846
|
})
|
|
5793
5847
|
], Lead.prototype, "category", 2);
|
|
5794
5848
|
Lead = __decorateClass([
|
|
5795
|
-
|
|
5849
|
+
Entity54("leads")
|
|
5796
5850
|
], Lead);
|
|
5797
5851
|
|
|
5798
5852
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -6033,7 +6087,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
6033
6087
|
], ClientFreelancerRecommendation);
|
|
6034
6088
|
|
|
6035
6089
|
// src/entities/commission.entity.ts
|
|
6036
|
-
import { Entity as
|
|
6090
|
+
import { Entity as Entity55, Column as Column56 } from "typeorm";
|
|
6037
6091
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
6038
6092
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
6039
6093
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -6042,7 +6096,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
6042
6096
|
var Commission = class extends BaseEntity {
|
|
6043
6097
|
};
|
|
6044
6098
|
__decorateClass([
|
|
6045
|
-
|
|
6099
|
+
Column56({
|
|
6046
6100
|
name: "freelancer_commission_type",
|
|
6047
6101
|
type: "enum",
|
|
6048
6102
|
enum: CommissionTypeEnum,
|
|
@@ -6050,10 +6104,10 @@ __decorateClass([
|
|
|
6050
6104
|
})
|
|
6051
6105
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
6052
6106
|
__decorateClass([
|
|
6053
|
-
|
|
6107
|
+
Column56({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
6054
6108
|
], Commission.prototype, "freelancerCommission", 2);
|
|
6055
6109
|
__decorateClass([
|
|
6056
|
-
|
|
6110
|
+
Column56({
|
|
6057
6111
|
name: "client_commission_type",
|
|
6058
6112
|
type: "enum",
|
|
6059
6113
|
enum: CommissionTypeEnum,
|
|
@@ -6061,10 +6115,10 @@ __decorateClass([
|
|
|
6061
6115
|
})
|
|
6062
6116
|
], Commission.prototype, "clientCommissionType", 2);
|
|
6063
6117
|
__decorateClass([
|
|
6064
|
-
|
|
6118
|
+
Column56({ name: "client_commission", type: "integer", default: 0 })
|
|
6065
6119
|
], Commission.prototype, "clientCommission", 2);
|
|
6066
6120
|
Commission = __decorateClass([
|
|
6067
|
-
|
|
6121
|
+
Entity55("commissions")
|
|
6068
6122
|
], Commission);
|
|
6069
6123
|
export {
|
|
6070
6124
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -6144,6 +6198,8 @@ export {
|
|
|
6144
6198
|
EmploymentType,
|
|
6145
6199
|
ExperienceDto,
|
|
6146
6200
|
F2FInterview,
|
|
6201
|
+
F2fInterviewRescheduleRequest,
|
|
6202
|
+
F2fInterviewRescheduleRequestStatusEnum,
|
|
6147
6203
|
F2fInterviewStatusEnum,
|
|
6148
6204
|
FREELANCER_DECLARATION_PATTERN,
|
|
6149
6205
|
FREELANCER_EDUCATION_PATTERN,
|