@experts_hub/shared 1.0.331 → 1.0.332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/f2f-interview.entity.d.ts +21 -8
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +56 -43
- package/dist/index.d.ts +56 -43
- package/dist/index.js +471 -440
- package/dist/index.mjs +539 -512
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64,6 +64,8 @@ __export(index_exports, {
|
|
|
64
64
|
COMPANY_MEMBERS_PATTERNS: () => COMPANY_MEMBERS_PATTERNS,
|
|
65
65
|
COMPANY_ROLES_PATTERNS: () => COMPANY_ROLES_PATTERNS,
|
|
66
66
|
COUNTRY_PATTERN: () => COUNTRY_PATTERN,
|
|
67
|
+
CalendlyMeeting: () => CalendlyMeeting,
|
|
68
|
+
CalendlyMeetingStatus: () => CalendlyMeetingStatus,
|
|
67
69
|
CandidateType: () => CandidateType,
|
|
68
70
|
CaseStudyDto: () => CaseStudyDto,
|
|
69
71
|
CategoryEmum: () => CategoryEmum,
|
|
@@ -101,6 +103,8 @@ __export(index_exports, {
|
|
|
101
103
|
EducationDto: () => EducationDto,
|
|
102
104
|
EmploymentType: () => EmploymentType,
|
|
103
105
|
ExperienceDto: () => ExperienceDto,
|
|
106
|
+
F2FInterview: () => F2FInterview,
|
|
107
|
+
F2fInterviewStatusEnum: () => F2fInterviewStatusEnum,
|
|
104
108
|
FREELANCER_DECLARATION_PATTERN: () => FREELANCER_DECLARATION_PATTERN,
|
|
105
109
|
FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
|
|
106
110
|
FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
|
|
@@ -2182,7 +2186,7 @@ CompanyProfile = __decorateClass([
|
|
|
2182
2186
|
], CompanyProfile);
|
|
2183
2187
|
|
|
2184
2188
|
// src/entities/job.entity.ts
|
|
2185
|
-
var
|
|
2189
|
+
var import_typeorm20 = require("typeorm");
|
|
2186
2190
|
|
|
2187
2191
|
// src/entities/job-skill.entity.ts
|
|
2188
2192
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2320,7 +2324,7 @@ JobApplication = __decorateClass([
|
|
|
2320
2324
|
], JobApplication);
|
|
2321
2325
|
|
|
2322
2326
|
// src/entities/interview.entity.ts
|
|
2323
|
-
var
|
|
2327
|
+
var import_typeorm18 = require("typeorm");
|
|
2324
2328
|
|
|
2325
2329
|
// src/entities/interview-skill.entity.ts
|
|
2326
2330
|
var import_typeorm12 = require("typeorm");
|
|
@@ -2526,6 +2530,148 @@ AiInterview = __decorateClass([
|
|
|
2526
2530
|
(0, import_typeorm15.Entity)("ai_interviews")
|
|
2527
2531
|
], AiInterview);
|
|
2528
2532
|
|
|
2533
|
+
// src/entities/f2f-interview.entity.ts
|
|
2534
|
+
var import_typeorm17 = require("typeorm");
|
|
2535
|
+
|
|
2536
|
+
// src/entities/calendly-meeting.entity.ts
|
|
2537
|
+
var import_typeorm16 = require("typeorm");
|
|
2538
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus3) => {
|
|
2539
|
+
CalendlyMeetingStatus3["PENDING"] = "PENDING";
|
|
2540
|
+
CalendlyMeetingStatus3["CONFIRMED"] = "CONFIRMED";
|
|
2541
|
+
CalendlyMeetingStatus3["CANCELED"] = "CANCELED";
|
|
2542
|
+
CalendlyMeetingStatus3["COMPLETED"] = "COMPLETED";
|
|
2543
|
+
return CalendlyMeetingStatus3;
|
|
2544
|
+
})(CalendlyMeetingStatus || {});
|
|
2545
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
2546
|
+
};
|
|
2547
|
+
__decorateClass([
|
|
2548
|
+
(0, import_typeorm16.OneToOne)(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
2549
|
+
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
2550
|
+
__decorateClass([
|
|
2551
|
+
(0, import_typeorm16.Column)({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
2552
|
+
(0, import_typeorm16.Index)()
|
|
2553
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
2554
|
+
__decorateClass([
|
|
2555
|
+
(0, import_typeorm16.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
2556
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
2557
|
+
__decorateClass([
|
|
2558
|
+
(0, import_typeorm16.Column)({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
2559
|
+
(0, import_typeorm16.Index)()
|
|
2560
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
2561
|
+
__decorateClass([
|
|
2562
|
+
(0, import_typeorm16.Column)({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
2563
|
+
(0, import_typeorm16.Index)()
|
|
2564
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
2565
|
+
__decorateClass([
|
|
2566
|
+
(0, import_typeorm16.Column)({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
2567
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
(0, import_typeorm16.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
2570
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
2571
|
+
CalendlyMeeting = __decorateClass([
|
|
2572
|
+
(0, import_typeorm16.Entity)("calendly_meetings"),
|
|
2573
|
+
(0, import_typeorm16.Unique)("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
2574
|
+
(0, import_typeorm16.Unique)("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2575
|
+
], CalendlyMeeting);
|
|
2576
|
+
|
|
2577
|
+
// src/entities/f2f-interview.entity.ts
|
|
2578
|
+
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2579
|
+
F2fInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2580
|
+
F2fInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2581
|
+
F2fInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2582
|
+
F2fInterviewStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2583
|
+
F2fInterviewStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2584
|
+
F2fInterviewStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2585
|
+
F2fInterviewStatusEnum2["EXITED"] = "EXITED";
|
|
2586
|
+
return F2fInterviewStatusEnum2;
|
|
2587
|
+
})(F2fInterviewStatusEnum || {});
|
|
2588
|
+
var F2FInterview = class extends BaseEntity {
|
|
2589
|
+
};
|
|
2590
|
+
__decorateClass([
|
|
2591
|
+
(0, import_typeorm17.Column)({ name: "unique_id", type: "varchar", nullable: true, unique: true })
|
|
2592
|
+
], F2FInterview.prototype, "uniqueId", 2);
|
|
2593
|
+
__decorateClass([
|
|
2594
|
+
(0, import_typeorm17.Column)({ name: "interview_id", type: "integer", nullable: true })
|
|
2595
|
+
], F2FInterview.prototype, "interviewId", 2);
|
|
2596
|
+
__decorateClass([
|
|
2597
|
+
(0, import_typeorm17.ManyToOne)(() => Interview, (interview) => interview.aiInterviews),
|
|
2598
|
+
(0, import_typeorm17.JoinColumn)({ name: "interview_id" })
|
|
2599
|
+
], F2FInterview.prototype, "interview", 2);
|
|
2600
|
+
__decorateClass([
|
|
2601
|
+
(0, import_typeorm17.Column)({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2602
|
+
], F2FInterview.prototype, "interviwerId", 2);
|
|
2603
|
+
__decorateClass([
|
|
2604
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.clientF2FInterviews),
|
|
2605
|
+
(0, import_typeorm17.JoinColumn)({ name: "interviwer_id" })
|
|
2606
|
+
], F2FInterview.prototype, "interviwer", 2);
|
|
2607
|
+
__decorateClass([
|
|
2608
|
+
(0, import_typeorm17.Column)({ name: "candidate_id", type: "integer", nullable: true })
|
|
2609
|
+
], F2FInterview.prototype, "candidateId", 2);
|
|
2610
|
+
__decorateClass([
|
|
2611
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2612
|
+
(0, import_typeorm17.JoinColumn)({ name: "candidate_id" })
|
|
2613
|
+
], F2FInterview.prototype, "candidate", 2);
|
|
2614
|
+
__decorateClass([
|
|
2615
|
+
(0, import_typeorm17.Column)({ name: "invitee_email", type: "varchar", nullable: false })
|
|
2616
|
+
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
2617
|
+
__decorateClass([
|
|
2618
|
+
(0, import_typeorm17.Column)({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2619
|
+
], F2FInterview.prototype, "inviteeName", 2);
|
|
2620
|
+
__decorateClass([
|
|
2621
|
+
(0, import_typeorm17.Column)({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2622
|
+
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2623
|
+
__decorateClass([
|
|
2624
|
+
(0, import_typeorm17.Column)({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2625
|
+
], F2FInterview.prototype, "meetingId", 2);
|
|
2626
|
+
__decorateClass([
|
|
2627
|
+
(0, import_typeorm17.Column)({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2628
|
+
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2629
|
+
__decorateClass([
|
|
2630
|
+
(0, import_typeorm17.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2631
|
+
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2632
|
+
__decorateClass([
|
|
2633
|
+
(0, import_typeorm17.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
2634
|
+
], F2FInterview.prototype, "eventName", 2);
|
|
2635
|
+
__decorateClass([
|
|
2636
|
+
(0, import_typeorm17.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2637
|
+
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2638
|
+
__decorateClass([
|
|
2639
|
+
(0, import_typeorm17.Column)({
|
|
2640
|
+
name: "status",
|
|
2641
|
+
type: "enum",
|
|
2642
|
+
enum: F2fInterviewStatusEnum,
|
|
2643
|
+
default: "ACTIVE" /* ACTIVE */
|
|
2644
|
+
})
|
|
2645
|
+
], F2FInterview.prototype, "status", 2);
|
|
2646
|
+
__decorateClass([
|
|
2647
|
+
(0, import_typeorm17.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2648
|
+
], F2FInterview.prototype, "cancelledAt", 2);
|
|
2649
|
+
__decorateClass([
|
|
2650
|
+
(0, import_typeorm17.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2651
|
+
], F2FInterview.prototype, "cancelReason", 2);
|
|
2652
|
+
__decorateClass([
|
|
2653
|
+
(0, import_typeorm17.Column)({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2654
|
+
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
2655
|
+
__decorateClass([
|
|
2656
|
+
(0, import_typeorm17.Column)({ name: "is_completed", type: "boolean", default: false })
|
|
2657
|
+
], F2FInterview.prototype, "isCompleted", 2);
|
|
2658
|
+
__decorateClass([
|
|
2659
|
+
(0, import_typeorm17.Column)({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2660
|
+
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2661
|
+
__decorateClass([
|
|
2662
|
+
(0, import_typeorm17.Column)({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
2663
|
+
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2664
|
+
__decorateClass([
|
|
2665
|
+
(0, import_typeorm17.Column)({ name: "calendly_meeting_id", type: "integer" })
|
|
2666
|
+
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2667
|
+
__decorateClass([
|
|
2668
|
+
(0, import_typeorm17.OneToOne)(() => CalendlyMeeting),
|
|
2669
|
+
(0, import_typeorm17.JoinColumn)({ name: "calendly_meeting_id" })
|
|
2670
|
+
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2671
|
+
F2FInterview = __decorateClass([
|
|
2672
|
+
(0, import_typeorm17.Entity)("f2f_interviews")
|
|
2673
|
+
], F2FInterview);
|
|
2674
|
+
|
|
2529
2675
|
// src/entities/interview.entity.ts
|
|
2530
2676
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2531
2677
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2538,44 +2684,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2538
2684
|
var Interview = class extends BaseEntity {
|
|
2539
2685
|
};
|
|
2540
2686
|
__decorateClass([
|
|
2541
|
-
(0,
|
|
2687
|
+
(0, import_typeorm18.Column)({
|
|
2542
2688
|
name: "interview_id",
|
|
2543
2689
|
type: "varchar",
|
|
2544
2690
|
unique: true,
|
|
2545
2691
|
nullable: true
|
|
2546
2692
|
}),
|
|
2547
|
-
(0,
|
|
2693
|
+
(0, import_typeorm18.Index)()
|
|
2548
2694
|
], Interview.prototype, "interviewId", 2);
|
|
2549
2695
|
__decorateClass([
|
|
2550
|
-
(0,
|
|
2551
|
-
(0,
|
|
2696
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2697
|
+
(0, import_typeorm18.Index)()
|
|
2552
2698
|
], Interview.prototype, "userId", 2);
|
|
2553
2699
|
__decorateClass([
|
|
2554
|
-
(0,
|
|
2555
|
-
(0,
|
|
2700
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.interviews),
|
|
2701
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2556
2702
|
], Interview.prototype, "user", 2);
|
|
2557
2703
|
__decorateClass([
|
|
2558
|
-
(0,
|
|
2704
|
+
(0, import_typeorm18.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2559
2705
|
], Interview.prototype, "interviewName", 2);
|
|
2560
2706
|
__decorateClass([
|
|
2561
|
-
(0,
|
|
2562
|
-
(0,
|
|
2707
|
+
(0, import_typeorm18.Column)({ name: "job_id", type: "integer" }),
|
|
2708
|
+
(0, import_typeorm18.Index)()
|
|
2563
2709
|
], Interview.prototype, "jobId", 2);
|
|
2564
2710
|
__decorateClass([
|
|
2565
|
-
(0,
|
|
2566
|
-
(0,
|
|
2711
|
+
(0, import_typeorm18.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2712
|
+
(0, import_typeorm18.JoinColumn)({ name: "job_id" })
|
|
2567
2713
|
], Interview.prototype, "job", 2);
|
|
2568
2714
|
__decorateClass([
|
|
2569
|
-
(0,
|
|
2715
|
+
(0, import_typeorm18.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2570
2716
|
], Interview.prototype, "interviewType", 2);
|
|
2571
2717
|
__decorateClass([
|
|
2572
|
-
(0,
|
|
2718
|
+
(0, import_typeorm18.Column)({ name: "interview_language", type: "varchar", nullable: true })
|
|
2573
2719
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2574
2720
|
__decorateClass([
|
|
2575
|
-
(0,
|
|
2721
|
+
(0, import_typeorm18.Column)({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2576
2722
|
], Interview.prototype, "allowProctoring", 2);
|
|
2577
2723
|
__decorateClass([
|
|
2578
|
-
(0,
|
|
2724
|
+
(0, import_typeorm18.Column)({
|
|
2579
2725
|
name: "status",
|
|
2580
2726
|
type: "enum",
|
|
2581
2727
|
enum: InterviewStatusEnum,
|
|
@@ -2583,67 +2729,70 @@ __decorateClass([
|
|
|
2583
2729
|
})
|
|
2584
2730
|
], Interview.prototype, "status", 2);
|
|
2585
2731
|
__decorateClass([
|
|
2586
|
-
(0,
|
|
2732
|
+
(0, import_typeorm18.OneToMany)(
|
|
2587
2733
|
() => InterviewSkill,
|
|
2588
2734
|
(interviewSkill) => interviewSkill.interview,
|
|
2589
2735
|
{ cascade: true }
|
|
2590
2736
|
)
|
|
2591
2737
|
], Interview.prototype, "interviewSkills", 2);
|
|
2592
2738
|
__decorateClass([
|
|
2593
|
-
(0,
|
|
2739
|
+
(0, import_typeorm18.OneToMany)(
|
|
2594
2740
|
() => InterviewQuestion,
|
|
2595
2741
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2596
2742
|
{ cascade: true }
|
|
2597
2743
|
)
|
|
2598
2744
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2599
2745
|
__decorateClass([
|
|
2600
|
-
(0,
|
|
2746
|
+
(0, import_typeorm18.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2601
2747
|
], Interview.prototype, "invites", 2);
|
|
2602
2748
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2749
|
+
(0, import_typeorm18.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2604
2750
|
], Interview.prototype, "aiInterviews", 2);
|
|
2751
|
+
__decorateClass([
|
|
2752
|
+
(0, import_typeorm18.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2753
|
+
], Interview.prototype, "f2fInterviews", 2);
|
|
2605
2754
|
Interview = __decorateClass([
|
|
2606
|
-
(0,
|
|
2755
|
+
(0, import_typeorm18.Entity)("interviews")
|
|
2607
2756
|
], Interview);
|
|
2608
2757
|
|
|
2609
2758
|
// src/entities/job-recommendation.entity.ts
|
|
2610
|
-
var
|
|
2759
|
+
var import_typeorm19 = require("typeorm");
|
|
2611
2760
|
var JobRecommendation = class {
|
|
2612
2761
|
};
|
|
2613
2762
|
__decorateClass([
|
|
2614
|
-
(0,
|
|
2763
|
+
(0, import_typeorm19.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
2615
2764
|
], JobRecommendation.prototype, "id", 2);
|
|
2616
2765
|
__decorateClass([
|
|
2617
|
-
(0,
|
|
2618
|
-
(0,
|
|
2766
|
+
(0, import_typeorm19.Column)({ name: "job_id", type: "integer" }),
|
|
2767
|
+
(0, import_typeorm19.Index)()
|
|
2619
2768
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2620
2769
|
__decorateClass([
|
|
2621
|
-
(0,
|
|
2622
|
-
(0,
|
|
2770
|
+
(0, import_typeorm19.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2771
|
+
(0, import_typeorm19.JoinColumn)({ name: "job_id" })
|
|
2623
2772
|
], JobRecommendation.prototype, "job", 2);
|
|
2624
2773
|
__decorateClass([
|
|
2625
|
-
(0,
|
|
2626
|
-
(0,
|
|
2774
|
+
(0, import_typeorm19.Column)({ name: "freelancer_id", type: "integer" }),
|
|
2775
|
+
(0, import_typeorm19.Index)()
|
|
2627
2776
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2628
2777
|
__decorateClass([
|
|
2629
|
-
(0,
|
|
2630
|
-
(0,
|
|
2778
|
+
(0, import_typeorm19.Column)({ name: "client_id", type: "integer" }),
|
|
2779
|
+
(0, import_typeorm19.Index)()
|
|
2631
2780
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2632
2781
|
__decorateClass([
|
|
2633
|
-
(0,
|
|
2782
|
+
(0, import_typeorm19.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2634
2783
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2635
2784
|
__decorateClass([
|
|
2636
|
-
(0,
|
|
2785
|
+
(0, import_typeorm19.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2637
2786
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2638
2787
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2788
|
+
(0, import_typeorm19.Column)({
|
|
2640
2789
|
name: "last_calculated_at",
|
|
2641
2790
|
type: "timestamp with time zone",
|
|
2642
2791
|
nullable: true
|
|
2643
2792
|
})
|
|
2644
2793
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2645
2794
|
JobRecommendation = __decorateClass([
|
|
2646
|
-
(0,
|
|
2795
|
+
(0, import_typeorm19.Entity)("job_recommendations")
|
|
2647
2796
|
], JobRecommendation);
|
|
2648
2797
|
|
|
2649
2798
|
// src/entities/job.entity.ts
|
|
@@ -2683,49 +2832,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2683
2832
|
var Job = class extends BaseEntity {
|
|
2684
2833
|
};
|
|
2685
2834
|
__decorateClass([
|
|
2686
|
-
(0,
|
|
2835
|
+
(0, import_typeorm20.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2687
2836
|
], Job.prototype, "jobId", 2);
|
|
2688
2837
|
// individual index to find jobs by user
|
|
2689
2838
|
__decorateClass([
|
|
2690
|
-
(0,
|
|
2691
|
-
(0,
|
|
2839
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2840
|
+
(0, import_typeorm20.Index)()
|
|
2692
2841
|
], Job.prototype, "userId", 2);
|
|
2693
2842
|
__decorateClass([
|
|
2694
|
-
(0,
|
|
2695
|
-
(0,
|
|
2843
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.jobs),
|
|
2844
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2696
2845
|
], Job.prototype, "user", 2);
|
|
2697
2846
|
__decorateClass([
|
|
2698
|
-
(0,
|
|
2847
|
+
(0, import_typeorm20.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2699
2848
|
], Job.prototype, "countryId", 2);
|
|
2700
2849
|
__decorateClass([
|
|
2701
|
-
(0,
|
|
2702
|
-
(0,
|
|
2850
|
+
(0, import_typeorm20.ManyToOne)(() => Country),
|
|
2851
|
+
(0, import_typeorm20.JoinColumn)({ name: "country_id" })
|
|
2703
2852
|
], Job.prototype, "country", 2);
|
|
2704
2853
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2854
|
+
(0, import_typeorm20.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2706
2855
|
], Job.prototype, "stateId", 2);
|
|
2707
2856
|
__decorateClass([
|
|
2708
|
-
(0,
|
|
2709
|
-
(0,
|
|
2857
|
+
(0, import_typeorm20.ManyToOne)(() => State),
|
|
2858
|
+
(0, import_typeorm20.JoinColumn)({ name: "state_id" })
|
|
2710
2859
|
], Job.prototype, "state", 2);
|
|
2711
2860
|
__decorateClass([
|
|
2712
|
-
(0,
|
|
2861
|
+
(0, import_typeorm20.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2713
2862
|
], Job.prototype, "cityId", 2);
|
|
2714
2863
|
__decorateClass([
|
|
2715
|
-
(0,
|
|
2716
|
-
(0,
|
|
2864
|
+
(0, import_typeorm20.ManyToOne)(() => City),
|
|
2865
|
+
(0, import_typeorm20.JoinColumn)({ name: "city_id" })
|
|
2717
2866
|
], Job.prototype, "city", 2);
|
|
2718
2867
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2868
|
+
(0, import_typeorm20.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2720
2869
|
], Job.prototype, "jobRole", 2);
|
|
2721
2870
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2871
|
+
(0, import_typeorm20.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2723
2872
|
], Job.prototype, "note", 2);
|
|
2724
2873
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2874
|
+
(0, import_typeorm20.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2726
2875
|
], Job.prototype, "openings", 2);
|
|
2727
2876
|
__decorateClass([
|
|
2728
|
-
(0,
|
|
2877
|
+
(0, import_typeorm20.Column)({
|
|
2729
2878
|
name: "location",
|
|
2730
2879
|
type: "enum",
|
|
2731
2880
|
enum: JobLocationEnum,
|
|
@@ -2733,7 +2882,7 @@ __decorateClass([
|
|
|
2733
2882
|
})
|
|
2734
2883
|
], Job.prototype, "location", 2);
|
|
2735
2884
|
__decorateClass([
|
|
2736
|
-
(0,
|
|
2885
|
+
(0, import_typeorm20.Column)({
|
|
2737
2886
|
name: "type_of_employment",
|
|
2738
2887
|
type: "enum",
|
|
2739
2888
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2741,19 +2890,19 @@ __decorateClass([
|
|
|
2741
2890
|
})
|
|
2742
2891
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2743
2892
|
__decorateClass([
|
|
2744
|
-
(0,
|
|
2893
|
+
(0, import_typeorm20.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2745
2894
|
], Job.prototype, "academicQualification", 2);
|
|
2746
2895
|
__decorateClass([
|
|
2747
|
-
(0,
|
|
2896
|
+
(0, import_typeorm20.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2748
2897
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2749
2898
|
__decorateClass([
|
|
2750
|
-
(0,
|
|
2899
|
+
(0, import_typeorm20.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2751
2900
|
], Job.prototype, "businessIndustry", 2);
|
|
2752
2901
|
__decorateClass([
|
|
2753
|
-
(0,
|
|
2902
|
+
(0, import_typeorm20.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2754
2903
|
], Job.prototype, "currency", 2);
|
|
2755
2904
|
__decorateClass([
|
|
2756
|
-
(0,
|
|
2905
|
+
(0, import_typeorm20.Column)({
|
|
2757
2906
|
name: "expected_salary_from",
|
|
2758
2907
|
type: "decimal",
|
|
2759
2908
|
precision: 10,
|
|
@@ -2762,7 +2911,7 @@ __decorateClass([
|
|
|
2762
2911
|
})
|
|
2763
2912
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2764
2913
|
__decorateClass([
|
|
2765
|
-
(0,
|
|
2914
|
+
(0, import_typeorm20.Column)({
|
|
2766
2915
|
name: "expected_salary_to",
|
|
2767
2916
|
type: "decimal",
|
|
2768
2917
|
precision: 10,
|
|
@@ -2771,16 +2920,16 @@ __decorateClass([
|
|
|
2771
2920
|
})
|
|
2772
2921
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2773
2922
|
__decorateClass([
|
|
2774
|
-
(0,
|
|
2923
|
+
(0, import_typeorm20.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2775
2924
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2776
2925
|
__decorateClass([
|
|
2777
|
-
(0,
|
|
2926
|
+
(0, import_typeorm20.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2778
2927
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2779
2928
|
__decorateClass([
|
|
2780
|
-
(0,
|
|
2929
|
+
(0, import_typeorm20.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2781
2930
|
], Job.prototype, "duration", 2);
|
|
2782
2931
|
__decorateClass([
|
|
2783
|
-
(0,
|
|
2932
|
+
(0, import_typeorm20.Column)({
|
|
2784
2933
|
name: "duration_type",
|
|
2785
2934
|
type: "enum",
|
|
2786
2935
|
enum: DurationTypeEnum,
|
|
@@ -2788,13 +2937,13 @@ __decorateClass([
|
|
|
2788
2937
|
})
|
|
2789
2938
|
], Job.prototype, "durationType", 2);
|
|
2790
2939
|
__decorateClass([
|
|
2791
|
-
(0,
|
|
2940
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2792
2941
|
], Job.prototype, "description", 2);
|
|
2793
2942
|
__decorateClass([
|
|
2794
|
-
(0,
|
|
2943
|
+
(0, import_typeorm20.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2795
2944
|
], Job.prototype, "additionalComment", 2);
|
|
2796
2945
|
__decorateClass([
|
|
2797
|
-
(0,
|
|
2946
|
+
(0, import_typeorm20.Column)({
|
|
2798
2947
|
name: "onboarding_tat",
|
|
2799
2948
|
type: "varchar",
|
|
2800
2949
|
length: 50,
|
|
@@ -2802,14 +2951,14 @@ __decorateClass([
|
|
|
2802
2951
|
})
|
|
2803
2952
|
], Job.prototype, "onboardingTat", 2);
|
|
2804
2953
|
__decorateClass([
|
|
2805
|
-
(0,
|
|
2954
|
+
(0, import_typeorm20.Column)({
|
|
2806
2955
|
name: "candidate_communication_skills",
|
|
2807
2956
|
type: "varchar",
|
|
2808
2957
|
nullable: true
|
|
2809
2958
|
})
|
|
2810
2959
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2811
2960
|
__decorateClass([
|
|
2812
|
-
(0,
|
|
2961
|
+
(0, import_typeorm20.Column)({
|
|
2813
2962
|
name: "step_completed",
|
|
2814
2963
|
type: "enum",
|
|
2815
2964
|
enum: Step,
|
|
@@ -2817,7 +2966,7 @@ __decorateClass([
|
|
|
2817
2966
|
})
|
|
2818
2967
|
], Job.prototype, "stepCompleted", 2);
|
|
2819
2968
|
__decorateClass([
|
|
2820
|
-
(0,
|
|
2969
|
+
(0, import_typeorm20.Column)({
|
|
2821
2970
|
name: "status",
|
|
2822
2971
|
type: "enum",
|
|
2823
2972
|
enum: JobStatusEnum,
|
|
@@ -2825,35 +2974,35 @@ __decorateClass([
|
|
|
2825
2974
|
})
|
|
2826
2975
|
], Job.prototype, "status", 2);
|
|
2827
2976
|
__decorateClass([
|
|
2828
|
-
(0,
|
|
2977
|
+
(0, import_typeorm20.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2829
2978
|
], Job.prototype, "viewedCount", 2);
|
|
2830
2979
|
__decorateClass([
|
|
2831
|
-
(0,
|
|
2980
|
+
(0, import_typeorm20.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2832
2981
|
], Job.prototype, "applicationCount", 2);
|
|
2833
2982
|
__decorateClass([
|
|
2834
|
-
(0,
|
|
2983
|
+
(0, import_typeorm20.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2835
2984
|
], Job.prototype, "jobSkills", 2);
|
|
2836
2985
|
__decorateClass([
|
|
2837
|
-
(0,
|
|
2986
|
+
(0, import_typeorm20.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2838
2987
|
cascade: true
|
|
2839
2988
|
})
|
|
2840
2989
|
], Job.prototype, "jobApplications", 2);
|
|
2841
2990
|
__decorateClass([
|
|
2842
|
-
(0,
|
|
2991
|
+
(0, import_typeorm20.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2843
2992
|
cascade: true
|
|
2844
2993
|
})
|
|
2845
2994
|
], Job.prototype, "interviews", 2);
|
|
2846
2995
|
__decorateClass([
|
|
2847
|
-
(0,
|
|
2996
|
+
(0, import_typeorm20.OneToMany)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2848
2997
|
cascade: true
|
|
2849
2998
|
})
|
|
2850
2999
|
], Job.prototype, "recommendations", 2);
|
|
2851
3000
|
Job = __decorateClass([
|
|
2852
|
-
(0,
|
|
3001
|
+
(0, import_typeorm20.Entity)("jobs")
|
|
2853
3002
|
], Job);
|
|
2854
3003
|
|
|
2855
3004
|
// src/entities/bank-details.entity.ts
|
|
2856
|
-
var
|
|
3005
|
+
var import_typeorm21 = require("typeorm");
|
|
2857
3006
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2858
3007
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2859
3008
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2868,48 +3017,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2868
3017
|
};
|
|
2869
3018
|
// individual index to find bank details by user
|
|
2870
3019
|
__decorateClass([
|
|
2871
|
-
(0,
|
|
2872
|
-
(0,
|
|
3020
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3021
|
+
(0, import_typeorm21.Index)()
|
|
2873
3022
|
], BankDetail.prototype, "userId", 2);
|
|
2874
3023
|
__decorateClass([
|
|
2875
|
-
(0,
|
|
2876
|
-
(0,
|
|
3024
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
3025
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2877
3026
|
], BankDetail.prototype, "user", 2);
|
|
2878
3027
|
__decorateClass([
|
|
2879
|
-
(0,
|
|
3028
|
+
(0, import_typeorm21.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2880
3029
|
], BankDetail.prototype, "name", 2);
|
|
2881
3030
|
__decorateClass([
|
|
2882
|
-
(0,
|
|
3031
|
+
(0, import_typeorm21.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2883
3032
|
], BankDetail.prototype, "mobile", 2);
|
|
2884
3033
|
__decorateClass([
|
|
2885
|
-
(0,
|
|
3034
|
+
(0, import_typeorm21.Column)({ name: "email", type: "varchar", unique: true })
|
|
2886
3035
|
], BankDetail.prototype, "email", 2);
|
|
2887
3036
|
__decorateClass([
|
|
2888
|
-
(0,
|
|
3037
|
+
(0, import_typeorm21.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2889
3038
|
], BankDetail.prototype, "address", 2);
|
|
2890
3039
|
__decorateClass([
|
|
2891
|
-
(0,
|
|
3040
|
+
(0, import_typeorm21.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2892
3041
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2893
3042
|
__decorateClass([
|
|
2894
|
-
(0,
|
|
3043
|
+
(0, import_typeorm21.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2895
3044
|
], BankDetail.prototype, "bankName", 2);
|
|
2896
3045
|
__decorateClass([
|
|
2897
|
-
(0,
|
|
3046
|
+
(0, import_typeorm21.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2898
3047
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2899
3048
|
__decorateClass([
|
|
2900
|
-
(0,
|
|
3049
|
+
(0, import_typeorm21.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2901
3050
|
], BankDetail.prototype, "branchName", 2);
|
|
2902
3051
|
__decorateClass([
|
|
2903
|
-
(0,
|
|
3052
|
+
(0, import_typeorm21.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2904
3053
|
], BankDetail.prototype, "routingNo", 2);
|
|
2905
3054
|
__decorateClass([
|
|
2906
|
-
(0,
|
|
3055
|
+
(0, import_typeorm21.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2907
3056
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2908
3057
|
__decorateClass([
|
|
2909
|
-
(0,
|
|
3058
|
+
(0, import_typeorm21.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2910
3059
|
], BankDetail.prototype, "iban", 2);
|
|
2911
3060
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
3061
|
+
(0, import_typeorm21.Column)({
|
|
2913
3062
|
name: "account_type",
|
|
2914
3063
|
type: "enum",
|
|
2915
3064
|
enum: BankAccountTypeEnum,
|
|
@@ -2917,7 +3066,7 @@ __decorateClass([
|
|
|
2917
3066
|
})
|
|
2918
3067
|
], BankDetail.prototype, "accountType", 2);
|
|
2919
3068
|
__decorateClass([
|
|
2920
|
-
(0,
|
|
3069
|
+
(0, import_typeorm21.Column)({
|
|
2921
3070
|
name: "account_scope",
|
|
2922
3071
|
type: "enum",
|
|
2923
3072
|
enum: BankAccountScopeEnum,
|
|
@@ -2925,210 +3074,210 @@ __decorateClass([
|
|
|
2925
3074
|
})
|
|
2926
3075
|
], BankDetail.prototype, "accountScope", 2);
|
|
2927
3076
|
BankDetail = __decorateClass([
|
|
2928
|
-
(0,
|
|
3077
|
+
(0, import_typeorm21.Entity)("bank_details")
|
|
2929
3078
|
], BankDetail);
|
|
2930
3079
|
|
|
2931
3080
|
// src/entities/system-preference.entity.ts
|
|
2932
|
-
var
|
|
3081
|
+
var import_typeorm22 = require("typeorm");
|
|
2933
3082
|
var SystemPreference = class extends BaseEntity {
|
|
2934
3083
|
};
|
|
2935
3084
|
// individual index to find system preference by user
|
|
2936
3085
|
__decorateClass([
|
|
2937
|
-
(0,
|
|
2938
|
-
(0,
|
|
3086
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3087
|
+
(0, import_typeorm22.Index)()
|
|
2939
3088
|
], SystemPreference.prototype, "userId", 2);
|
|
2940
3089
|
__decorateClass([
|
|
2941
|
-
(0,
|
|
2942
|
-
(0,
|
|
3090
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
3091
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2943
3092
|
], SystemPreference.prototype, "user", 2);
|
|
2944
3093
|
__decorateClass([
|
|
2945
|
-
(0,
|
|
3094
|
+
(0, import_typeorm22.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2946
3095
|
], SystemPreference.prototype, "key", 2);
|
|
2947
3096
|
__decorateClass([
|
|
2948
|
-
(0,
|
|
3097
|
+
(0, import_typeorm22.Column)({ name: "value", type: "boolean", default: false })
|
|
2949
3098
|
], SystemPreference.prototype, "value", 2);
|
|
2950
3099
|
SystemPreference = __decorateClass([
|
|
2951
|
-
(0,
|
|
3100
|
+
(0, import_typeorm22.Entity)("system_preferences")
|
|
2952
3101
|
], SystemPreference);
|
|
2953
3102
|
|
|
2954
3103
|
// src/entities/freelancer-experience.entity.ts
|
|
2955
|
-
var
|
|
3104
|
+
var import_typeorm23 = require("typeorm");
|
|
2956
3105
|
var FreelancerExperience = class extends BaseEntity {
|
|
2957
3106
|
};
|
|
2958
3107
|
// individual index to find experence by user
|
|
2959
3108
|
__decorateClass([
|
|
2960
|
-
(0,
|
|
2961
|
-
(0,
|
|
3109
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3110
|
+
(0, import_typeorm23.Index)()
|
|
2962
3111
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2963
3112
|
__decorateClass([
|
|
2964
|
-
(0,
|
|
2965
|
-
(0,
|
|
3113
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
3114
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2966
3115
|
], FreelancerExperience.prototype, "user", 2);
|
|
2967
3116
|
__decorateClass([
|
|
2968
|
-
(0,
|
|
3117
|
+
(0, import_typeorm23.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2969
3118
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2970
3119
|
__decorateClass([
|
|
2971
|
-
(0,
|
|
3120
|
+
(0, import_typeorm23.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2972
3121
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2973
3122
|
__decorateClass([
|
|
2974
|
-
(0,
|
|
3123
|
+
(0, import_typeorm23.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2975
3124
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2976
3125
|
__decorateClass([
|
|
2977
|
-
(0,
|
|
3126
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2978
3127
|
], FreelancerExperience.prototype, "description", 2);
|
|
2979
3128
|
FreelancerExperience = __decorateClass([
|
|
2980
|
-
(0,
|
|
3129
|
+
(0, import_typeorm23.Entity)("freelancer_experiences")
|
|
2981
3130
|
], FreelancerExperience);
|
|
2982
3131
|
|
|
2983
3132
|
// src/entities/freelancer-education.entity.ts
|
|
2984
|
-
var
|
|
3133
|
+
var import_typeorm24 = require("typeorm");
|
|
2985
3134
|
var FreelancerEducation = class extends BaseEntity {
|
|
2986
3135
|
};
|
|
2987
3136
|
// individual index to find education by user
|
|
2988
3137
|
__decorateClass([
|
|
2989
|
-
(0,
|
|
2990
|
-
(0,
|
|
3138
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3139
|
+
(0, import_typeorm24.Index)()
|
|
2991
3140
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2992
3141
|
__decorateClass([
|
|
2993
|
-
(0,
|
|
2994
|
-
(0,
|
|
3142
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
3143
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2995
3144
|
], FreelancerEducation.prototype, "user", 2);
|
|
2996
3145
|
__decorateClass([
|
|
2997
|
-
(0,
|
|
3146
|
+
(0, import_typeorm24.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2998
3147
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2999
3148
|
__decorateClass([
|
|
3000
|
-
(0,
|
|
3149
|
+
(0, import_typeorm24.Column)({ name: "university", type: "varchar", nullable: true })
|
|
3001
3150
|
], FreelancerEducation.prototype, "university", 2);
|
|
3002
3151
|
__decorateClass([
|
|
3003
|
-
(0,
|
|
3152
|
+
(0, import_typeorm24.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3004
3153
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3005
3154
|
FreelancerEducation = __decorateClass([
|
|
3006
|
-
(0,
|
|
3155
|
+
(0, import_typeorm24.Entity)("freelancer_educations")
|
|
3007
3156
|
], FreelancerEducation);
|
|
3008
3157
|
|
|
3009
3158
|
// src/entities/freelancer-project.entity.ts
|
|
3010
|
-
var
|
|
3159
|
+
var import_typeorm25 = require("typeorm");
|
|
3011
3160
|
var FreelancerProject = class extends BaseEntity {
|
|
3012
3161
|
};
|
|
3013
3162
|
// individual index to find project by user
|
|
3014
3163
|
__decorateClass([
|
|
3015
|
-
(0,
|
|
3016
|
-
(0,
|
|
3164
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3165
|
+
(0, import_typeorm25.Index)()
|
|
3017
3166
|
], FreelancerProject.prototype, "userId", 2);
|
|
3018
3167
|
__decorateClass([
|
|
3019
|
-
(0,
|
|
3020
|
-
(0,
|
|
3168
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
3169
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
3021
3170
|
], FreelancerProject.prototype, "user", 2);
|
|
3022
3171
|
__decorateClass([
|
|
3023
|
-
(0,
|
|
3172
|
+
(0, import_typeorm25.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3024
3173
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3025
3174
|
__decorateClass([
|
|
3026
|
-
(0,
|
|
3175
|
+
(0, import_typeorm25.Column)({ name: "start_date", type: "date", nullable: true })
|
|
3027
3176
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3028
3177
|
__decorateClass([
|
|
3029
|
-
(0,
|
|
3178
|
+
(0, import_typeorm25.Column)({ name: "end_date", type: "date", nullable: true })
|
|
3030
3179
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3031
3180
|
__decorateClass([
|
|
3032
|
-
(0,
|
|
3181
|
+
(0, import_typeorm25.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
3033
3182
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3034
3183
|
__decorateClass([
|
|
3035
|
-
(0,
|
|
3184
|
+
(0, import_typeorm25.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
3036
3185
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3037
3186
|
__decorateClass([
|
|
3038
|
-
(0,
|
|
3187
|
+
(0, import_typeorm25.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3039
3188
|
], FreelancerProject.prototype, "description", 2);
|
|
3040
3189
|
FreelancerProject = __decorateClass([
|
|
3041
|
-
(0,
|
|
3190
|
+
(0, import_typeorm25.Entity)("freelancer_projects")
|
|
3042
3191
|
], FreelancerProject);
|
|
3043
3192
|
|
|
3044
3193
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3045
|
-
var
|
|
3194
|
+
var import_typeorm26 = require("typeorm");
|
|
3046
3195
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3047
3196
|
};
|
|
3048
3197
|
// individual index to find case study by user
|
|
3049
3198
|
__decorateClass([
|
|
3050
|
-
(0,
|
|
3051
|
-
(0,
|
|
3199
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3200
|
+
(0, import_typeorm26.Index)()
|
|
3052
3201
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3053
3202
|
__decorateClass([
|
|
3054
|
-
(0,
|
|
3055
|
-
(0,
|
|
3203
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
3204
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
3056
3205
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3057
3206
|
__decorateClass([
|
|
3058
|
-
(0,
|
|
3207
|
+
(0, import_typeorm26.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3059
3208
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3060
3209
|
__decorateClass([
|
|
3061
|
-
(0,
|
|
3210
|
+
(0, import_typeorm26.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3062
3211
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3063
3212
|
__decorateClass([
|
|
3064
|
-
(0,
|
|
3213
|
+
(0, import_typeorm26.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3065
3214
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3066
3215
|
FreelancerCaseStudy = __decorateClass([
|
|
3067
|
-
(0,
|
|
3216
|
+
(0, import_typeorm26.Entity)("freelancer_case_studies")
|
|
3068
3217
|
], FreelancerCaseStudy);
|
|
3069
3218
|
|
|
3070
3219
|
// src/entities/freelancer-skill.entity.ts
|
|
3071
|
-
var
|
|
3220
|
+
var import_typeorm27 = require("typeorm");
|
|
3072
3221
|
var FreelancerSkill = class extends BaseEntity {
|
|
3073
3222
|
};
|
|
3074
3223
|
// individual index to find core skills by user
|
|
3075
3224
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3077
|
-
(0,
|
|
3225
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3226
|
+
(0, import_typeorm27.Index)()
|
|
3078
3227
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3079
3228
|
__decorateClass([
|
|
3080
|
-
(0,
|
|
3081
|
-
(0,
|
|
3229
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3230
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
3082
3231
|
], FreelancerSkill.prototype, "user", 2);
|
|
3083
3232
|
__decorateClass([
|
|
3084
|
-
(0,
|
|
3233
|
+
(0, import_typeorm27.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3085
3234
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3086
3235
|
FreelancerSkill = __decorateClass([
|
|
3087
|
-
(0,
|
|
3236
|
+
(0, import_typeorm27.Entity)("freelancer_skills")
|
|
3088
3237
|
], FreelancerSkill);
|
|
3089
3238
|
|
|
3090
3239
|
// src/entities/freelancer-tool.entity.ts
|
|
3091
|
-
var
|
|
3240
|
+
var import_typeorm28 = require("typeorm");
|
|
3092
3241
|
var FreelancerTool = class extends BaseEntity {
|
|
3093
3242
|
};
|
|
3094
3243
|
// individual index to find tool by user
|
|
3095
3244
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3097
|
-
(0,
|
|
3245
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3246
|
+
(0, import_typeorm28.Index)()
|
|
3098
3247
|
], FreelancerTool.prototype, "userId", 2);
|
|
3099
3248
|
__decorateClass([
|
|
3100
|
-
(0,
|
|
3101
|
-
(0,
|
|
3249
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
3250
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
3102
3251
|
], FreelancerTool.prototype, "user", 2);
|
|
3103
3252
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3253
|
+
(0, import_typeorm28.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
3105
3254
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3106
3255
|
FreelancerTool = __decorateClass([
|
|
3107
|
-
(0,
|
|
3256
|
+
(0, import_typeorm28.Entity)("freelancer_tools")
|
|
3108
3257
|
], FreelancerTool);
|
|
3109
3258
|
|
|
3110
3259
|
// src/entities/freelancer-framework.entity.ts
|
|
3111
|
-
var
|
|
3260
|
+
var import_typeorm29 = require("typeorm");
|
|
3112
3261
|
var FreelancerFramework = class extends BaseEntity {
|
|
3113
3262
|
};
|
|
3114
3263
|
// individual index to find framework by user
|
|
3115
3264
|
__decorateClass([
|
|
3116
|
-
(0,
|
|
3117
|
-
(0,
|
|
3265
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3266
|
+
(0, import_typeorm29.Index)()
|
|
3118
3267
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3119
3268
|
__decorateClass([
|
|
3120
|
-
(0,
|
|
3121
|
-
(0,
|
|
3269
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3270
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
3122
3271
|
], FreelancerFramework.prototype, "user", 2);
|
|
3123
3272
|
__decorateClass([
|
|
3124
|
-
(0,
|
|
3273
|
+
(0, import_typeorm29.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
3125
3274
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3126
3275
|
FreelancerFramework = __decorateClass([
|
|
3127
|
-
(0,
|
|
3276
|
+
(0, import_typeorm29.Entity)("freelancer_frameworks")
|
|
3128
3277
|
], FreelancerFramework);
|
|
3129
3278
|
|
|
3130
3279
|
// src/entities/freelancer-assessment.entity.ts
|
|
3131
|
-
var
|
|
3280
|
+
var import_typeorm30 = require("typeorm");
|
|
3132
3281
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3133
3282
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
3134
3283
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -3144,30 +3293,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3144
3293
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3145
3294
|
};
|
|
3146
3295
|
__decorateClass([
|
|
3147
|
-
(0,
|
|
3148
|
-
(0,
|
|
3296
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3297
|
+
(0, import_typeorm30.Index)()
|
|
3149
3298
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3150
3299
|
__decorateClass([
|
|
3151
|
-
(0,
|
|
3152
|
-
(0,
|
|
3300
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.assessments),
|
|
3301
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3153
3302
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3154
3303
|
__decorateClass([
|
|
3155
|
-
(0,
|
|
3304
|
+
(0, import_typeorm30.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
3156
3305
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3157
3306
|
__decorateClass([
|
|
3158
|
-
(0,
|
|
3307
|
+
(0, import_typeorm30.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
3159
3308
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3160
3309
|
__decorateClass([
|
|
3161
|
-
(0,
|
|
3310
|
+
(0, import_typeorm30.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
3162
3311
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3163
3312
|
__decorateClass([
|
|
3164
|
-
(0,
|
|
3313
|
+
(0, import_typeorm30.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3165
3314
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3166
3315
|
__decorateClass([
|
|
3167
|
-
(0,
|
|
3316
|
+
(0, import_typeorm30.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3168
3317
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3169
3318
|
__decorateClass([
|
|
3170
|
-
(0,
|
|
3319
|
+
(0, import_typeorm30.Column)({
|
|
3171
3320
|
name: "status",
|
|
3172
3321
|
type: "enum",
|
|
3173
3322
|
enum: AssessmentStatusEnum,
|
|
@@ -3175,11 +3324,11 @@ __decorateClass([
|
|
|
3175
3324
|
})
|
|
3176
3325
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3177
3326
|
FreelancerAssessment = __decorateClass([
|
|
3178
|
-
(0,
|
|
3327
|
+
(0, import_typeorm30.Entity)("freelancer_assessments")
|
|
3179
3328
|
], FreelancerAssessment);
|
|
3180
3329
|
|
|
3181
3330
|
// src/entities/freelancer-declaration.entity.ts
|
|
3182
|
-
var
|
|
3331
|
+
var import_typeorm31 = require("typeorm");
|
|
3183
3332
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3184
3333
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3185
3334
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3191,15 +3340,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3191
3340
|
};
|
|
3192
3341
|
// individual index to find declaration by user
|
|
3193
3342
|
__decorateClass([
|
|
3194
|
-
(0,
|
|
3195
|
-
(0,
|
|
3343
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3344
|
+
(0, import_typeorm31.Index)()
|
|
3196
3345
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3197
3346
|
__decorateClass([
|
|
3198
|
-
(0,
|
|
3199
|
-
(0,
|
|
3347
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3348
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3200
3349
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3201
3350
|
__decorateClass([
|
|
3202
|
-
(0,
|
|
3351
|
+
(0, import_typeorm31.Column)({
|
|
3203
3352
|
name: "document_type",
|
|
3204
3353
|
type: "enum",
|
|
3205
3354
|
enum: DocumentType,
|
|
@@ -3207,144 +3356,144 @@ __decorateClass([
|
|
|
3207
3356
|
})
|
|
3208
3357
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3209
3358
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3359
|
+
(0, import_typeorm31.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3211
3360
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3212
3361
|
__decorateClass([
|
|
3213
|
-
(0,
|
|
3362
|
+
(0, import_typeorm31.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3214
3363
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3215
3364
|
__decorateClass([
|
|
3216
|
-
(0,
|
|
3365
|
+
(0, import_typeorm31.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3217
3366
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3218
3367
|
__decorateClass([
|
|
3219
|
-
(0,
|
|
3368
|
+
(0, import_typeorm31.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3220
3369
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3221
3370
|
FreelancerDeclaration = __decorateClass([
|
|
3222
|
-
(0,
|
|
3371
|
+
(0, import_typeorm31.Entity)("freelancer_declaration")
|
|
3223
3372
|
], FreelancerDeclaration);
|
|
3224
3373
|
|
|
3225
3374
|
// src/entities/company-members-roles.entity.ts
|
|
3226
|
-
var
|
|
3375
|
+
var import_typeorm35 = require("typeorm");
|
|
3227
3376
|
|
|
3228
3377
|
// src/entities/company-role.entity.ts
|
|
3229
|
-
var
|
|
3378
|
+
var import_typeorm34 = require("typeorm");
|
|
3230
3379
|
|
|
3231
3380
|
// src/entities/company-role-permission.entity.ts
|
|
3232
|
-
var
|
|
3381
|
+
var import_typeorm33 = require("typeorm");
|
|
3233
3382
|
|
|
3234
3383
|
// src/entities/permission.entity.ts
|
|
3235
|
-
var
|
|
3384
|
+
var import_typeorm32 = require("typeorm");
|
|
3236
3385
|
var Permission = class extends BaseEntity {
|
|
3237
3386
|
};
|
|
3238
3387
|
__decorateClass([
|
|
3239
|
-
(0,
|
|
3388
|
+
(0, import_typeorm32.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3240
3389
|
], Permission.prototype, "name", 2);
|
|
3241
3390
|
__decorateClass([
|
|
3242
|
-
(0,
|
|
3243
|
-
(0,
|
|
3391
|
+
(0, import_typeorm32.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3392
|
+
(0, import_typeorm32.Index)()
|
|
3244
3393
|
], Permission.prototype, "slug", 2);
|
|
3245
3394
|
__decorateClass([
|
|
3246
|
-
(0,
|
|
3395
|
+
(0, import_typeorm32.Column)({ name: "description", type: "text", nullable: true })
|
|
3247
3396
|
], Permission.prototype, "description", 2);
|
|
3248
3397
|
__decorateClass([
|
|
3249
|
-
(0,
|
|
3398
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3250
3399
|
], Permission.prototype, "isActive", 2);
|
|
3251
3400
|
Permission = __decorateClass([
|
|
3252
|
-
(0,
|
|
3401
|
+
(0, import_typeorm32.Entity)("permissions")
|
|
3253
3402
|
], Permission);
|
|
3254
3403
|
|
|
3255
3404
|
// src/entities/company-role-permission.entity.ts
|
|
3256
3405
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3257
3406
|
};
|
|
3258
3407
|
__decorateClass([
|
|
3259
|
-
(0,
|
|
3260
|
-
(0,
|
|
3408
|
+
(0, import_typeorm33.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3409
|
+
(0, import_typeorm33.Index)()
|
|
3261
3410
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3262
3411
|
__decorateClass([
|
|
3263
|
-
(0,
|
|
3412
|
+
(0, import_typeorm33.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3264
3413
|
onDelete: "CASCADE"
|
|
3265
3414
|
}),
|
|
3266
|
-
(0,
|
|
3415
|
+
(0, import_typeorm33.JoinColumn)({ name: "company_role_id" })
|
|
3267
3416
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3268
3417
|
__decorateClass([
|
|
3269
|
-
(0,
|
|
3270
|
-
(0,
|
|
3418
|
+
(0, import_typeorm33.Column)({ name: "permission_id", type: "integer" }),
|
|
3419
|
+
(0, import_typeorm33.Index)()
|
|
3271
3420
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3272
3421
|
__decorateClass([
|
|
3273
|
-
(0,
|
|
3274
|
-
(0,
|
|
3422
|
+
(0, import_typeorm33.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3423
|
+
(0, import_typeorm33.JoinColumn)({ name: "permission_id" })
|
|
3275
3424
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3276
3425
|
__decorateClass([
|
|
3277
|
-
(0,
|
|
3426
|
+
(0, import_typeorm33.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3278
3427
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3279
3428
|
CompanyRolePermission = __decorateClass([
|
|
3280
|
-
(0,
|
|
3429
|
+
(0, import_typeorm33.Entity)("company_role_permissions")
|
|
3281
3430
|
], CompanyRolePermission);
|
|
3282
3431
|
|
|
3283
3432
|
// src/entities/company-role.entity.ts
|
|
3284
3433
|
var CompanyRole = class extends BaseEntity {
|
|
3285
3434
|
};
|
|
3286
3435
|
__decorateClass([
|
|
3287
|
-
(0,
|
|
3288
|
-
(0,
|
|
3436
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3437
|
+
(0, import_typeorm34.Index)()
|
|
3289
3438
|
], CompanyRole.prototype, "userId", 2);
|
|
3290
3439
|
__decorateClass([
|
|
3291
|
-
(0,
|
|
3292
|
-
(0,
|
|
3440
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.otps),
|
|
3441
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
3293
3442
|
], CompanyRole.prototype, "user", 2);
|
|
3294
3443
|
__decorateClass([
|
|
3295
|
-
(0,
|
|
3444
|
+
(0, import_typeorm34.Column)({ name: "name", type: "varchar" })
|
|
3296
3445
|
], CompanyRole.prototype, "name", 2);
|
|
3297
3446
|
__decorateClass([
|
|
3298
|
-
(0,
|
|
3299
|
-
(0,
|
|
3447
|
+
(0, import_typeorm34.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3448
|
+
(0, import_typeorm34.Index)()
|
|
3300
3449
|
], CompanyRole.prototype, "slug", 2);
|
|
3301
3450
|
__decorateClass([
|
|
3302
|
-
(0,
|
|
3451
|
+
(0, import_typeorm34.Column)({ name: "description", type: "text", nullable: true })
|
|
3303
3452
|
], CompanyRole.prototype, "description", 2);
|
|
3304
3453
|
__decorateClass([
|
|
3305
|
-
(0,
|
|
3454
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3306
3455
|
], CompanyRole.prototype, "isActive", 2);
|
|
3307
3456
|
__decorateClass([
|
|
3308
|
-
(0,
|
|
3457
|
+
(0, import_typeorm34.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3309
3458
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3310
3459
|
CompanyRole = __decorateClass([
|
|
3311
|
-
(0,
|
|
3460
|
+
(0, import_typeorm34.Entity)("company_roles")
|
|
3312
3461
|
], CompanyRole);
|
|
3313
3462
|
|
|
3314
3463
|
// src/entities/company-members-roles.entity.ts
|
|
3315
3464
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3316
3465
|
};
|
|
3317
3466
|
__decorateClass([
|
|
3318
|
-
(0,
|
|
3319
|
-
(0,
|
|
3467
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3468
|
+
(0, import_typeorm35.Index)()
|
|
3320
3469
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3321
3470
|
__decorateClass([
|
|
3322
|
-
(0,
|
|
3323
|
-
(0,
|
|
3471
|
+
(0, import_typeorm35.ManyToOne)(() => User),
|
|
3472
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3324
3473
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3325
3474
|
__decorateClass([
|
|
3326
|
-
(0,
|
|
3327
|
-
(0,
|
|
3475
|
+
(0, import_typeorm35.ManyToOne)(() => CompanyRole),
|
|
3476
|
+
(0, import_typeorm35.JoinColumn)({ name: "company_role_id" })
|
|
3328
3477
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3329
3478
|
__decorateClass([
|
|
3330
|
-
(0,
|
|
3331
|
-
(0,
|
|
3479
|
+
(0, import_typeorm35.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3480
|
+
(0, import_typeorm35.Index)()
|
|
3332
3481
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3333
3482
|
__decorateClass([
|
|
3334
|
-
(0,
|
|
3483
|
+
(0, import_typeorm35.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3335
3484
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3336
3485
|
CompanyMemberRole = __decorateClass([
|
|
3337
|
-
(0,
|
|
3486
|
+
(0, import_typeorm35.Entity)("company_member_roles")
|
|
3338
3487
|
], CompanyMemberRole);
|
|
3339
3488
|
|
|
3340
3489
|
// src/entities/assessment-answer.entity.ts
|
|
3341
|
-
var
|
|
3490
|
+
var import_typeorm38 = require("typeorm");
|
|
3342
3491
|
|
|
3343
3492
|
// src/entities/assessment-question.entity.ts
|
|
3344
|
-
var
|
|
3493
|
+
var import_typeorm37 = require("typeorm");
|
|
3345
3494
|
|
|
3346
3495
|
// src/entities/assessment-question-option.entity.ts
|
|
3347
|
-
var
|
|
3496
|
+
var import_typeorm36 = require("typeorm");
|
|
3348
3497
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3349
3498
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3350
3499
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3354,21 +3503,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3354
3503
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3355
3504
|
};
|
|
3356
3505
|
__decorateClass([
|
|
3357
|
-
(0,
|
|
3358
|
-
(0,
|
|
3506
|
+
(0, import_typeorm36.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3507
|
+
(0, import_typeorm36.Index)()
|
|
3359
3508
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3360
3509
|
__decorateClass([
|
|
3361
|
-
(0,
|
|
3510
|
+
(0, import_typeorm36.ManyToOne)(
|
|
3362
3511
|
() => AssessmetQuestion,
|
|
3363
3512
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3364
3513
|
),
|
|
3365
|
-
(0,
|
|
3514
|
+
(0, import_typeorm36.JoinColumn)({ name: "question_id" })
|
|
3366
3515
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3367
3516
|
__decorateClass([
|
|
3368
|
-
(0,
|
|
3517
|
+
(0, import_typeorm36.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3369
3518
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3370
3519
|
__decorateClass([
|
|
3371
|
-
(0,
|
|
3520
|
+
(0, import_typeorm36.Column)({
|
|
3372
3521
|
name: "answer_type",
|
|
3373
3522
|
type: "enum",
|
|
3374
3523
|
enum: AnswerTypeEnum,
|
|
@@ -3376,13 +3525,13 @@ __decorateClass([
|
|
|
3376
3525
|
})
|
|
3377
3526
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3378
3527
|
__decorateClass([
|
|
3379
|
-
(0,
|
|
3528
|
+
(0, import_typeorm36.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3380
3529
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3381
3530
|
__decorateClass([
|
|
3382
|
-
(0,
|
|
3531
|
+
(0, import_typeorm36.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3383
3532
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3384
3533
|
AssessmetQuestionOption = __decorateClass([
|
|
3385
|
-
(0,
|
|
3534
|
+
(0, import_typeorm36.Entity)("assessment_question_options")
|
|
3386
3535
|
], AssessmetQuestionOption);
|
|
3387
3536
|
|
|
3388
3537
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3394,10 +3543,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3394
3543
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3395
3544
|
};
|
|
3396
3545
|
__decorateClass([
|
|
3397
|
-
(0,
|
|
3546
|
+
(0, import_typeorm37.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3398
3547
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3399
3548
|
__decorateClass([
|
|
3400
|
-
(0,
|
|
3549
|
+
(0, import_typeorm37.Column)({
|
|
3401
3550
|
name: "question_for",
|
|
3402
3551
|
type: "enum",
|
|
3403
3552
|
enum: QuestionForEnum,
|
|
@@ -3405,16 +3554,16 @@ __decorateClass([
|
|
|
3405
3554
|
})
|
|
3406
3555
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3407
3556
|
__decorateClass([
|
|
3408
|
-
(0,
|
|
3557
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3409
3558
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3410
3559
|
__decorateClass([
|
|
3411
|
-
(0,
|
|
3560
|
+
(0, import_typeorm37.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3412
3561
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3413
3562
|
__decorateClass([
|
|
3414
|
-
(0,
|
|
3563
|
+
(0, import_typeorm37.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3415
3564
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3416
3565
|
AssessmetQuestion = __decorateClass([
|
|
3417
|
-
(0,
|
|
3566
|
+
(0, import_typeorm37.Entity)("assessment_questions")
|
|
3418
3567
|
], AssessmetQuestion);
|
|
3419
3568
|
|
|
3420
3569
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3427,118 +3576,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3427
3576
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3428
3577
|
};
|
|
3429
3578
|
__decorateClass([
|
|
3430
|
-
(0,
|
|
3431
|
-
(0,
|
|
3579
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer" }),
|
|
3580
|
+
(0, import_typeorm38.Index)()
|
|
3432
3581
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3433
3582
|
__decorateClass([
|
|
3434
|
-
(0,
|
|
3435
|
-
(0,
|
|
3583
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3584
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
3436
3585
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3437
3586
|
__decorateClass([
|
|
3438
|
-
(0,
|
|
3439
|
-
(0,
|
|
3587
|
+
(0, import_typeorm38.Column)({ name: "question_id", type: "integer" }),
|
|
3588
|
+
(0, import_typeorm38.Index)()
|
|
3440
3589
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3441
3590
|
__decorateClass([
|
|
3442
|
-
(0,
|
|
3591
|
+
(0, import_typeorm38.ManyToOne)(
|
|
3443
3592
|
() => AssessmetQuestion,
|
|
3444
3593
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3445
3594
|
),
|
|
3446
|
-
(0,
|
|
3595
|
+
(0, import_typeorm38.JoinColumn)({ name: "question_id" })
|
|
3447
3596
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3448
3597
|
__decorateClass([
|
|
3449
|
-
(0,
|
|
3450
|
-
(0,
|
|
3598
|
+
(0, import_typeorm38.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3599
|
+
(0, import_typeorm38.Index)()
|
|
3451
3600
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3452
3601
|
__decorateClass([
|
|
3453
|
-
(0,
|
|
3602
|
+
(0, import_typeorm38.ManyToOne)(
|
|
3454
3603
|
() => AssessmetQuestionOption,
|
|
3455
3604
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3456
3605
|
),
|
|
3457
|
-
(0,
|
|
3606
|
+
(0, import_typeorm38.JoinColumn)({ name: "selected_option_id" })
|
|
3458
3607
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3459
3608
|
__decorateClass([
|
|
3460
|
-
(0,
|
|
3609
|
+
(0, import_typeorm38.Column)({
|
|
3461
3610
|
name: "selected_answer_type",
|
|
3462
3611
|
type: "enum",
|
|
3463
3612
|
enum: SelectedAnswerTypeEnum
|
|
3464
3613
|
})
|
|
3465
3614
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3466
3615
|
__decorateClass([
|
|
3467
|
-
(0,
|
|
3616
|
+
(0, import_typeorm38.Column)({ name: "score", type: "float" })
|
|
3468
3617
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3469
3618
|
AssessmentAnswer = __decorateClass([
|
|
3470
|
-
(0,
|
|
3619
|
+
(0, import_typeorm38.Entity)("assessment_answers")
|
|
3471
3620
|
], AssessmentAnswer);
|
|
3472
3621
|
|
|
3473
3622
|
// src/entities/company-skill.entity.ts
|
|
3474
|
-
var
|
|
3623
|
+
var import_typeorm39 = require("typeorm");
|
|
3475
3624
|
var CompanySkill = class extends BaseEntity {
|
|
3476
3625
|
};
|
|
3477
3626
|
// individual index to find core skills by user
|
|
3478
3627
|
__decorateClass([
|
|
3479
|
-
(0,
|
|
3480
|
-
(0,
|
|
3628
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3629
|
+
(0, import_typeorm39.Index)()
|
|
3481
3630
|
], CompanySkill.prototype, "userId", 2);
|
|
3482
3631
|
__decorateClass([
|
|
3483
|
-
(0,
|
|
3484
|
-
(0,
|
|
3632
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3633
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
3485
3634
|
], CompanySkill.prototype, "user", 2);
|
|
3486
3635
|
__decorateClass([
|
|
3487
|
-
(0,
|
|
3636
|
+
(0, import_typeorm39.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3488
3637
|
], CompanySkill.prototype, "skillName", 2);
|
|
3489
3638
|
CompanySkill = __decorateClass([
|
|
3490
|
-
(0,
|
|
3639
|
+
(0, import_typeorm39.Entity)("company_skills")
|
|
3491
3640
|
], CompanySkill);
|
|
3492
3641
|
|
|
3493
3642
|
// src/entities/admin-user-role.entity.ts
|
|
3494
|
-
var
|
|
3643
|
+
var import_typeorm43 = require("typeorm");
|
|
3495
3644
|
|
|
3496
3645
|
// src/entities/admin-role.entity.ts
|
|
3497
|
-
var
|
|
3646
|
+
var import_typeorm42 = require("typeorm");
|
|
3498
3647
|
|
|
3499
3648
|
// src/entities/admin-role-permission.entity.ts
|
|
3500
|
-
var
|
|
3649
|
+
var import_typeorm41 = require("typeorm");
|
|
3501
3650
|
|
|
3502
3651
|
// src/entities/admin-permission.entity.ts
|
|
3503
|
-
var
|
|
3652
|
+
var import_typeorm40 = require("typeorm");
|
|
3504
3653
|
var AdminPermission = class extends BaseEntity {
|
|
3505
3654
|
};
|
|
3506
3655
|
__decorateClass([
|
|
3507
|
-
(0,
|
|
3656
|
+
(0, import_typeorm40.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3508
3657
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3509
3658
|
__decorateClass([
|
|
3510
|
-
(0,
|
|
3659
|
+
(0, import_typeorm40.Column)({
|
|
3511
3660
|
name: "permission_slug",
|
|
3512
3661
|
type: "varchar",
|
|
3513
3662
|
unique: true,
|
|
3514
3663
|
nullable: true
|
|
3515
3664
|
}),
|
|
3516
|
-
(0,
|
|
3665
|
+
(0, import_typeorm40.Index)()
|
|
3517
3666
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3518
3667
|
__decorateClass([
|
|
3519
|
-
(0,
|
|
3668
|
+
(0, import_typeorm40.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3520
3669
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3521
3670
|
__decorateClass([
|
|
3522
|
-
(0,
|
|
3671
|
+
(0, import_typeorm40.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3523
3672
|
], AdminPermission.prototype, "module", 2);
|
|
3524
3673
|
__decorateClass([
|
|
3525
|
-
(0,
|
|
3674
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3526
3675
|
], AdminPermission.prototype, "isActive", 2);
|
|
3527
3676
|
__decorateClass([
|
|
3528
|
-
(0,
|
|
3677
|
+
(0, import_typeorm40.OneToMany)(
|
|
3529
3678
|
() => AdminRolePermission,
|
|
3530
3679
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3531
3680
|
)
|
|
3532
3681
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3533
3682
|
AdminPermission = __decorateClass([
|
|
3534
|
-
(0,
|
|
3683
|
+
(0, import_typeorm40.Entity)("admin_permissions")
|
|
3535
3684
|
], AdminPermission);
|
|
3536
3685
|
|
|
3537
3686
|
// src/entities/admin-role-permission.entity.ts
|
|
3538
3687
|
var AdminRolePermission = class extends BaseEntity {
|
|
3539
3688
|
};
|
|
3540
3689
|
__decorateClass([
|
|
3541
|
-
(0,
|
|
3690
|
+
(0, import_typeorm41.Column)({
|
|
3542
3691
|
name: "role_id",
|
|
3543
3692
|
type: "int",
|
|
3544
3693
|
nullable: true,
|
|
@@ -3546,11 +3695,11 @@ __decorateClass([
|
|
|
3546
3695
|
})
|
|
3547
3696
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3548
3697
|
__decorateClass([
|
|
3549
|
-
(0,
|
|
3550
|
-
(0,
|
|
3698
|
+
(0, import_typeorm41.ManyToOne)(() => AdminRole),
|
|
3699
|
+
(0, import_typeorm41.JoinColumn)({ name: "role_id" })
|
|
3551
3700
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3552
3701
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3702
|
+
(0, import_typeorm41.Column)({
|
|
3554
3703
|
name: "permission_id",
|
|
3555
3704
|
type: "int",
|
|
3556
3705
|
nullable: true,
|
|
@@ -3558,47 +3707,47 @@ __decorateClass([
|
|
|
3558
3707
|
})
|
|
3559
3708
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3560
3709
|
__decorateClass([
|
|
3561
|
-
(0,
|
|
3562
|
-
(0,
|
|
3710
|
+
(0, import_typeorm41.ManyToOne)(() => AdminPermission),
|
|
3711
|
+
(0, import_typeorm41.JoinColumn)({ name: "permission_id" })
|
|
3563
3712
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3564
3713
|
AdminRolePermission = __decorateClass([
|
|
3565
|
-
(0,
|
|
3714
|
+
(0, import_typeorm41.Entity)("admin_role_permissions")
|
|
3566
3715
|
], AdminRolePermission);
|
|
3567
3716
|
|
|
3568
3717
|
// src/entities/admin-role.entity.ts
|
|
3569
3718
|
var AdminRole = class extends BaseEntity {
|
|
3570
3719
|
};
|
|
3571
3720
|
__decorateClass([
|
|
3572
|
-
(0,
|
|
3721
|
+
(0, import_typeorm42.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3573
3722
|
], AdminRole.prototype, "roleName", 2);
|
|
3574
3723
|
__decorateClass([
|
|
3575
|
-
(0,
|
|
3576
|
-
(0,
|
|
3724
|
+
(0, import_typeorm42.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3725
|
+
(0, import_typeorm42.Index)()
|
|
3577
3726
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3578
3727
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3728
|
+
(0, import_typeorm42.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3580
3729
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3581
3730
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3731
|
+
(0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3583
3732
|
], AdminRole.prototype, "isActive", 2);
|
|
3584
3733
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3734
|
+
(0, import_typeorm42.OneToMany)(
|
|
3586
3735
|
() => AdminRolePermission,
|
|
3587
3736
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3588
3737
|
)
|
|
3589
3738
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3590
3739
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3740
|
+
(0, import_typeorm42.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3592
3741
|
], AdminRole.prototype, "userRoles", 2);
|
|
3593
3742
|
AdminRole = __decorateClass([
|
|
3594
|
-
(0,
|
|
3743
|
+
(0, import_typeorm42.Entity)("admin_roles")
|
|
3595
3744
|
], AdminRole);
|
|
3596
3745
|
|
|
3597
3746
|
// src/entities/admin-user-role.entity.ts
|
|
3598
3747
|
var AdminUserRole = class extends BaseEntity {
|
|
3599
3748
|
};
|
|
3600
3749
|
__decorateClass([
|
|
3601
|
-
(0,
|
|
3750
|
+
(0, import_typeorm43.Column)({
|
|
3602
3751
|
name: "user_id",
|
|
3603
3752
|
type: "int",
|
|
3604
3753
|
nullable: true,
|
|
@@ -3606,11 +3755,11 @@ __decorateClass([
|
|
|
3606
3755
|
})
|
|
3607
3756
|
], AdminUserRole.prototype, "userId", 2);
|
|
3608
3757
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3610
|
-
(0,
|
|
3758
|
+
(0, import_typeorm43.ManyToOne)(() => User),
|
|
3759
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
3611
3760
|
], AdminUserRole.prototype, "user", 2);
|
|
3612
3761
|
__decorateClass([
|
|
3613
|
-
(0,
|
|
3762
|
+
(0, import_typeorm43.Column)({
|
|
3614
3763
|
name: "role_id",
|
|
3615
3764
|
type: "int",
|
|
3616
3765
|
nullable: true,
|
|
@@ -3618,158 +3767,36 @@ __decorateClass([
|
|
|
3618
3767
|
})
|
|
3619
3768
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3620
3769
|
__decorateClass([
|
|
3621
|
-
(0,
|
|
3622
|
-
(0,
|
|
3770
|
+
(0, import_typeorm43.ManyToOne)(() => AdminRole),
|
|
3771
|
+
(0, import_typeorm43.JoinColumn)({ name: "role_id" })
|
|
3623
3772
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3624
3773
|
AdminUserRole = __decorateClass([
|
|
3625
|
-
(0,
|
|
3774
|
+
(0, import_typeorm43.Entity)("admin_user_roles")
|
|
3626
3775
|
], AdminUserRole);
|
|
3627
3776
|
|
|
3628
3777
|
// src/entities/freelancer-resume.entity.ts
|
|
3629
|
-
var
|
|
3778
|
+
var import_typeorm44 = require("typeorm");
|
|
3630
3779
|
var FreelancerResume = class extends BaseEntity {
|
|
3631
3780
|
};
|
|
3632
3781
|
// individual index to find profile by user
|
|
3633
3782
|
__decorateClass([
|
|
3634
|
-
(0,
|
|
3635
|
-
(0,
|
|
3783
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3784
|
+
(0, import_typeorm44.Index)()
|
|
3636
3785
|
], FreelancerResume.prototype, "userId", 2);
|
|
3637
3786
|
__decorateClass([
|
|
3638
|
-
(0,
|
|
3639
|
-
(0,
|
|
3787
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3788
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
3640
3789
|
], FreelancerResume.prototype, "user", 2);
|
|
3641
3790
|
__decorateClass([
|
|
3642
|
-
(0,
|
|
3791
|
+
(0, import_typeorm44.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3643
3792
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3644
3793
|
__decorateClass([
|
|
3645
|
-
(0,
|
|
3794
|
+
(0, import_typeorm44.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3646
3795
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3647
3796
|
FreelancerResume = __decorateClass([
|
|
3648
|
-
(0,
|
|
3797
|
+
(0, import_typeorm44.Entity)("freelancer_resumes")
|
|
3649
3798
|
], FreelancerResume);
|
|
3650
3799
|
|
|
3651
|
-
// src/entities/f2f-interview.entity.ts
|
|
3652
|
-
var import_typeorm44 = require("typeorm");
|
|
3653
|
-
|
|
3654
|
-
// src/entities/calendly-meeting.entity.ts
|
|
3655
|
-
var import_typeorm43 = require("typeorm");
|
|
3656
|
-
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3657
|
-
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3658
|
-
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3659
|
-
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3660
|
-
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3661
|
-
return CalendlyMeetingStatus2;
|
|
3662
|
-
})(CalendlyMeetingStatus || {});
|
|
3663
|
-
var CalendlyMeeting = class extends BaseEntity {
|
|
3664
|
-
};
|
|
3665
|
-
__decorateClass([
|
|
3666
|
-
(0, import_typeorm43.OneToOne)(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
3667
|
-
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
3668
|
-
__decorateClass([
|
|
3669
|
-
(0, import_typeorm43.Column)({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3670
|
-
(0, import_typeorm43.Index)()
|
|
3671
|
-
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3672
|
-
__decorateClass([
|
|
3673
|
-
(0, import_typeorm43.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
3674
|
-
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3675
|
-
__decorateClass([
|
|
3676
|
-
(0, import_typeorm43.Column)({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3677
|
-
(0, import_typeorm43.Index)()
|
|
3678
|
-
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3679
|
-
__decorateClass([
|
|
3680
|
-
(0, import_typeorm43.Column)({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3681
|
-
(0, import_typeorm43.Index)()
|
|
3682
|
-
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3683
|
-
__decorateClass([
|
|
3684
|
-
(0, import_typeorm43.Column)({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3685
|
-
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3686
|
-
__decorateClass([
|
|
3687
|
-
(0, import_typeorm43.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3688
|
-
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3689
|
-
CalendlyMeeting = __decorateClass([
|
|
3690
|
-
(0, import_typeorm43.Entity)("calendly_meetings"),
|
|
3691
|
-
(0, import_typeorm43.Unique)("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3692
|
-
(0, import_typeorm43.Unique)("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3693
|
-
], CalendlyMeeting);
|
|
3694
|
-
|
|
3695
|
-
// src/entities/f2f-interview.entity.ts
|
|
3696
|
-
var F2FInterview = class extends BaseEntity {
|
|
3697
|
-
};
|
|
3698
|
-
__decorateClass([
|
|
3699
|
-
(0, import_typeorm44.OneToOne)(() => CalendlyMeeting),
|
|
3700
|
-
(0, import_typeorm44.JoinColumn)({ name: "calendly_meeting_id" })
|
|
3701
|
-
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
3702
|
-
__decorateClass([
|
|
3703
|
-
(0, import_typeorm44.Column)({ name: "calendly_meeting_id", type: "integer" })
|
|
3704
|
-
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3705
|
-
__decorateClass([
|
|
3706
|
-
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3707
|
-
(0, import_typeorm44.JoinColumn)({ name: "client_id" })
|
|
3708
|
-
], F2FInterview.prototype, "client", 2);
|
|
3709
|
-
__decorateClass([
|
|
3710
|
-
(0, import_typeorm44.Column)({ name: "client_id", type: "integer", nullable: true })
|
|
3711
|
-
], F2FInterview.prototype, "clientId", 2);
|
|
3712
|
-
__decorateClass([
|
|
3713
|
-
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3714
|
-
(0, import_typeorm44.JoinColumn)({ name: "freelancer_id" })
|
|
3715
|
-
], F2FInterview.prototype, "freelancer", 2);
|
|
3716
|
-
__decorateClass([
|
|
3717
|
-
(0, import_typeorm44.Column)({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3718
|
-
], F2FInterview.prototype, "freelancerId", 2);
|
|
3719
|
-
__decorateClass([
|
|
3720
|
-
(0, import_typeorm44.Column)({ name: "invitee_email", type: "varchar", nullable: false })
|
|
3721
|
-
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
3722
|
-
__decorateClass([
|
|
3723
|
-
(0, import_typeorm44.Column)({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3724
|
-
], F2FInterview.prototype, "inviteeName", 2);
|
|
3725
|
-
__decorateClass([
|
|
3726
|
-
(0, import_typeorm44.Column)({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3727
|
-
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
3728
|
-
__decorateClass([
|
|
3729
|
-
(0, import_typeorm44.Column)({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3730
|
-
], F2FInterview.prototype, "meetingId", 2);
|
|
3731
|
-
__decorateClass([
|
|
3732
|
-
(0, import_typeorm44.Column)({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3733
|
-
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
3734
|
-
__decorateClass([
|
|
3735
|
-
(0, import_typeorm44.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3736
|
-
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
3737
|
-
__decorateClass([
|
|
3738
|
-
(0, import_typeorm44.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
3739
|
-
], F2FInterview.prototype, "eventName", 2);
|
|
3740
|
-
__decorateClass([
|
|
3741
|
-
(0, import_typeorm44.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3742
|
-
], F2FInterview.prototype, "isRescheduled", 2);
|
|
3743
|
-
__decorateClass([
|
|
3744
|
-
(0, import_typeorm44.Column)({
|
|
3745
|
-
name: "status",
|
|
3746
|
-
type: "enum",
|
|
3747
|
-
enum: CalendlyMeetingStatus,
|
|
3748
|
-
default: "PENDING" /* PENDING */
|
|
3749
|
-
})
|
|
3750
|
-
], F2FInterview.prototype, "status", 2);
|
|
3751
|
-
__decorateClass([
|
|
3752
|
-
(0, import_typeorm44.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3753
|
-
], F2FInterview.prototype, "cancelledAt", 2);
|
|
3754
|
-
__decorateClass([
|
|
3755
|
-
(0, import_typeorm44.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3756
|
-
], F2FInterview.prototype, "cancelReason", 2);
|
|
3757
|
-
__decorateClass([
|
|
3758
|
-
(0, import_typeorm44.Column)({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3759
|
-
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
3760
|
-
__decorateClass([
|
|
3761
|
-
(0, import_typeorm44.Column)({ name: "is_completed", type: "boolean", default: false })
|
|
3762
|
-
], F2FInterview.prototype, "isCompleted", 2);
|
|
3763
|
-
__decorateClass([
|
|
3764
|
-
(0, import_typeorm44.Column)({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3765
|
-
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
3766
|
-
__decorateClass([
|
|
3767
|
-
(0, import_typeorm44.Column)({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3768
|
-
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
3769
|
-
F2FInterview = __decorateClass([
|
|
3770
|
-
(0, import_typeorm44.Entity)("f2f_interviews")
|
|
3771
|
-
], F2FInterview);
|
|
3772
|
-
|
|
3773
3800
|
// src/entities/user.entity.ts
|
|
3774
3801
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3775
3802
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3925,6 +3952,9 @@ __decorateClass([
|
|
|
3925
3952
|
__decorateClass([
|
|
3926
3953
|
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3927
3954
|
], User.prototype, "companyAiInterview", 2);
|
|
3955
|
+
__decorateClass([
|
|
3956
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
3957
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
3928
3958
|
__decorateClass([
|
|
3929
3959
|
(0, import_typeorm45.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3930
3960
|
], User.prototype, "freelancerProfile", 2);
|
|
@@ -3964,6 +3994,9 @@ __decorateClass([
|
|
|
3964
3994
|
__decorateClass([
|
|
3965
3995
|
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
3966
3996
|
], User.prototype, "freelancerAiInterview", 2);
|
|
3997
|
+
__decorateClass([
|
|
3998
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
3999
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3967
4000
|
__decorateClass([
|
|
3968
4001
|
(0, import_typeorm45.OneToMany)(() => Job, (job) => job.user)
|
|
3969
4002
|
], User.prototype, "jobs", 2);
|
|
@@ -3988,12 +4021,6 @@ __decorateClass([
|
|
|
3988
4021
|
__decorateClass([
|
|
3989
4022
|
(0, import_typeorm45.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3990
4023
|
], User.prototype, "adminUserRoles", 2);
|
|
3991
|
-
__decorateClass([
|
|
3992
|
-
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.client)
|
|
3993
|
-
], User.prototype, "clientF2FInterviews", 2);
|
|
3994
|
-
__decorateClass([
|
|
3995
|
-
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.freelancer)
|
|
3996
|
-
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3997
4024
|
User = __decorateClass([
|
|
3998
4025
|
(0, import_typeorm45.Entity)("users")
|
|
3999
4026
|
], User);
|
|
@@ -5905,6 +5932,8 @@ Commission = __decorateClass([
|
|
|
5905
5932
|
COMPANY_MEMBERS_PATTERNS,
|
|
5906
5933
|
COMPANY_ROLES_PATTERNS,
|
|
5907
5934
|
COUNTRY_PATTERN,
|
|
5935
|
+
CalendlyMeeting,
|
|
5936
|
+
CalendlyMeetingStatus,
|
|
5908
5937
|
CandidateType,
|
|
5909
5938
|
CaseStudyDto,
|
|
5910
5939
|
CategoryEmum,
|
|
@@ -5942,6 +5971,8 @@ Commission = __decorateClass([
|
|
|
5942
5971
|
EducationDto,
|
|
5943
5972
|
EmploymentType,
|
|
5944
5973
|
ExperienceDto,
|
|
5974
|
+
F2FInterview,
|
|
5975
|
+
F2fInterviewStatusEnum,
|
|
5945
5976
|
FREELANCER_DECLARATION_PATTERN,
|
|
5946
5977
|
FREELANCER_EDUCATION_PATTERN,
|
|
5947
5978
|
FREELANCER_EXPERIENCE_PATTERN,
|