@experts_hub/shared 1.0.330 → 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/calendly-meeting.entity.d.ts +2 -20
- package/dist/entities/f2f-interview.entity.d.ts +39 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +56 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +674 -521
- package/dist/index.mjs +648 -487
- package/package.json +1 -1
- package/dist/entities/freelancer-f2f-interview.entity.d.ts +0 -20
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,
|
|
@@ -1512,10 +1516,10 @@ var RATING_PATTERN = {
|
|
|
1512
1516
|
var import_class_validator40 = require("class-validator");
|
|
1513
1517
|
|
|
1514
1518
|
// src/entities/rating.entity.ts
|
|
1515
|
-
var
|
|
1519
|
+
var import_typeorm46 = require("typeorm");
|
|
1516
1520
|
|
|
1517
1521
|
// src/entities/user.entity.ts
|
|
1518
|
-
var
|
|
1522
|
+
var import_typeorm45 = require("typeorm");
|
|
1519
1523
|
|
|
1520
1524
|
// src/entities/base.entity.ts
|
|
1521
1525
|
var import_typeorm = require("typeorm");
|
|
@@ -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,34 +3767,34 @@ __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
3800
|
// src/entities/user.entity.ts
|
|
@@ -3671,59 +3820,53 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3671
3820
|
return Provider2;
|
|
3672
3821
|
})(Provider || {});
|
|
3673
3822
|
var User = class extends BaseEntity {
|
|
3674
|
-
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3675
|
-
// calendlyMeetings: CalendlyMeeting[];
|
|
3676
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3677
|
-
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3678
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3679
|
-
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3680
3823
|
};
|
|
3681
3824
|
__decorateClass([
|
|
3682
|
-
(0,
|
|
3825
|
+
(0, import_typeorm45.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3683
3826
|
], User.prototype, "uniqueId", 2);
|
|
3684
3827
|
__decorateClass([
|
|
3685
|
-
(0,
|
|
3686
|
-
(0,
|
|
3828
|
+
(0, import_typeorm45.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3829
|
+
(0, import_typeorm45.Index)()
|
|
3687
3830
|
], User.prototype, "parentId", 2);
|
|
3688
3831
|
__decorateClass([
|
|
3689
|
-
(0,
|
|
3690
|
-
(0,
|
|
3832
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3833
|
+
(0, import_typeorm45.JoinColumn)({ name: "parent_id" })
|
|
3691
3834
|
], User.prototype, "parent", 2);
|
|
3692
3835
|
__decorateClass([
|
|
3693
|
-
(0,
|
|
3836
|
+
(0, import_typeorm45.OneToMany)(() => User, (user) => user.parent)
|
|
3694
3837
|
], User.prototype, "children", 2);
|
|
3695
3838
|
__decorateClass([
|
|
3696
|
-
(0,
|
|
3839
|
+
(0, import_typeorm45.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3697
3840
|
], User.prototype, "username", 2);
|
|
3698
3841
|
__decorateClass([
|
|
3699
|
-
(0,
|
|
3842
|
+
(0, import_typeorm45.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3700
3843
|
], User.prototype, "firstName", 2);
|
|
3701
3844
|
__decorateClass([
|
|
3702
|
-
(0,
|
|
3845
|
+
(0, import_typeorm45.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3703
3846
|
], User.prototype, "lastName", 2);
|
|
3704
3847
|
__decorateClass([
|
|
3705
|
-
(0,
|
|
3848
|
+
(0, import_typeorm45.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3706
3849
|
], User.prototype, "dateOfBirth", 2);
|
|
3707
3850
|
__decorateClass([
|
|
3708
|
-
(0,
|
|
3851
|
+
(0, import_typeorm45.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3709
3852
|
], User.prototype, "gender", 2);
|
|
3710
3853
|
__decorateClass([
|
|
3711
|
-
(0,
|
|
3854
|
+
(0, import_typeorm45.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3712
3855
|
], User.prototype, "profilePictureUrl", 2);
|
|
3713
3856
|
__decorateClass([
|
|
3714
|
-
(0,
|
|
3857
|
+
(0, import_typeorm45.Column)({ name: "email", type: "varchar", unique: true })
|
|
3715
3858
|
], User.prototype, "email", 2);
|
|
3716
3859
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3860
|
+
(0, import_typeorm45.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3718
3861
|
], User.prototype, "mobileCode", 2);
|
|
3719
3862
|
__decorateClass([
|
|
3720
|
-
(0,
|
|
3863
|
+
(0, import_typeorm45.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3721
3864
|
], User.prototype, "mobile", 2);
|
|
3722
3865
|
__decorateClass([
|
|
3723
|
-
(0,
|
|
3866
|
+
(0, import_typeorm45.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3724
3867
|
], User.prototype, "password", 2);
|
|
3725
3868
|
__decorateClass([
|
|
3726
|
-
(0,
|
|
3869
|
+
(0, import_typeorm45.Column)({
|
|
3727
3870
|
name: "account_type",
|
|
3728
3871
|
type: "enum",
|
|
3729
3872
|
enum: AccountType,
|
|
@@ -3731,7 +3874,7 @@ __decorateClass([
|
|
|
3731
3874
|
})
|
|
3732
3875
|
], User.prototype, "accountType", 2);
|
|
3733
3876
|
__decorateClass([
|
|
3734
|
-
(0,
|
|
3877
|
+
(0, import_typeorm45.Column)({
|
|
3735
3878
|
name: "account_status",
|
|
3736
3879
|
type: "enum",
|
|
3737
3880
|
enum: AccountStatus,
|
|
@@ -3739,39 +3882,39 @@ __decorateClass([
|
|
|
3739
3882
|
})
|
|
3740
3883
|
], User.prototype, "accountStatus", 2);
|
|
3741
3884
|
__decorateClass([
|
|
3742
|
-
(0,
|
|
3885
|
+
(0, import_typeorm45.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3743
3886
|
], User.prototype, "isEmailVerified", 2);
|
|
3744
3887
|
__decorateClass([
|
|
3745
|
-
(0,
|
|
3888
|
+
(0, import_typeorm45.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3746
3889
|
], User.prototype, "isMobileVerified", 2);
|
|
3747
3890
|
__decorateClass([
|
|
3748
|
-
(0,
|
|
3891
|
+
(0, import_typeorm45.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3749
3892
|
], User.prototype, "isSocial", 2);
|
|
3750
3893
|
__decorateClass([
|
|
3751
|
-
(0,
|
|
3894
|
+
(0, import_typeorm45.Column)({
|
|
3752
3895
|
name: "last_login_at",
|
|
3753
3896
|
type: "timestamp with time zone",
|
|
3754
3897
|
nullable: true
|
|
3755
3898
|
})
|
|
3756
3899
|
], User.prototype, "lastLoginAt", 2);
|
|
3757
3900
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3901
|
+
(0, import_typeorm45.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3759
3902
|
], User.prototype, "lastLoginIp", 2);
|
|
3760
3903
|
__decorateClass([
|
|
3761
|
-
(0,
|
|
3904
|
+
(0, import_typeorm45.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3762
3905
|
], User.prototype, "resetToken", 2);
|
|
3763
3906
|
__decorateClass([
|
|
3764
|
-
(0,
|
|
3907
|
+
(0, import_typeorm45.Column)({
|
|
3765
3908
|
name: "reset_token_expire_at",
|
|
3766
3909
|
type: "timestamp with time zone",
|
|
3767
3910
|
nullable: true
|
|
3768
3911
|
})
|
|
3769
3912
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3770
3913
|
__decorateClass([
|
|
3771
|
-
(0,
|
|
3914
|
+
(0, import_typeorm45.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3772
3915
|
], User.prototype, "refreshTokens", 2);
|
|
3773
3916
|
__decorateClass([
|
|
3774
|
-
(0,
|
|
3917
|
+
(0, import_typeorm45.Column)({
|
|
3775
3918
|
name: "provider",
|
|
3776
3919
|
type: "enum",
|
|
3777
3920
|
enum: Provider,
|
|
@@ -3780,100 +3923,106 @@ __decorateClass([
|
|
|
3780
3923
|
})
|
|
3781
3924
|
], User.prototype, "provider", 2);
|
|
3782
3925
|
__decorateClass([
|
|
3783
|
-
(0,
|
|
3926
|
+
(0, import_typeorm45.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3784
3927
|
], User.prototype, "providerToken", 2);
|
|
3785
3928
|
__decorateClass([
|
|
3786
|
-
(0,
|
|
3929
|
+
(0, import_typeorm45.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3787
3930
|
], User.prototype, "linkedInId", 2);
|
|
3788
3931
|
__decorateClass([
|
|
3789
|
-
(0,
|
|
3932
|
+
(0, import_typeorm45.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3790
3933
|
], User.prototype, "googleId", 2);
|
|
3791
3934
|
__decorateClass([
|
|
3792
|
-
(0,
|
|
3935
|
+
(0, import_typeorm45.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3793
3936
|
], User.prototype, "gitLabsId", 2);
|
|
3794
3937
|
__decorateClass([
|
|
3795
|
-
(0,
|
|
3938
|
+
(0, import_typeorm45.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3796
3939
|
], User.prototype, "otps", 2);
|
|
3797
3940
|
__decorateClass([
|
|
3798
|
-
(0,
|
|
3941
|
+
(0, import_typeorm45.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3799
3942
|
], User.prototype, "senseloafLogs", 2);
|
|
3800
3943
|
__decorateClass([
|
|
3801
|
-
(0,
|
|
3944
|
+
(0, import_typeorm45.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3802
3945
|
], User.prototype, "companyProfile", 2);
|
|
3803
3946
|
__decorateClass([
|
|
3804
|
-
(0,
|
|
3947
|
+
(0, import_typeorm45.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3805
3948
|
], User.prototype, "companySkills", 2);
|
|
3806
3949
|
__decorateClass([
|
|
3807
|
-
(0,
|
|
3950
|
+
(0, import_typeorm45.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3808
3951
|
], User.prototype, "companyMemberRoles", 2);
|
|
3809
3952
|
__decorateClass([
|
|
3810
|
-
(0,
|
|
3953
|
+
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3811
3954
|
], User.prototype, "companyAiInterview", 2);
|
|
3812
3955
|
__decorateClass([
|
|
3813
|
-
(0,
|
|
3956
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
3957
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
3958
|
+
__decorateClass([
|
|
3959
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3814
3960
|
], User.prototype, "freelancerProfile", 2);
|
|
3815
3961
|
__decorateClass([
|
|
3816
|
-
(0,
|
|
3962
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3817
3963
|
], User.prototype, "freelancerResume", 2);
|
|
3818
3964
|
__decorateClass([
|
|
3819
|
-
(0,
|
|
3965
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3820
3966
|
], User.prototype, "assessments", 2);
|
|
3821
3967
|
__decorateClass([
|
|
3822
|
-
(0,
|
|
3968
|
+
(0, import_typeorm45.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3823
3969
|
], User.prototype, "assessmentAnswers", 2);
|
|
3824
3970
|
__decorateClass([
|
|
3825
|
-
(0,
|
|
3971
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3826
3972
|
], User.prototype, "freelancerSkills", 2);
|
|
3827
3973
|
__decorateClass([
|
|
3828
|
-
(0,
|
|
3974
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3829
3975
|
], User.prototype, "freelancerExperience", 2);
|
|
3830
3976
|
__decorateClass([
|
|
3831
|
-
(0,
|
|
3977
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3832
3978
|
], User.prototype, "freelancerEducation", 2);
|
|
3833
3979
|
__decorateClass([
|
|
3834
|
-
(0,
|
|
3980
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3835
3981
|
], User.prototype, "freelancerProject", 2);
|
|
3836
3982
|
__decorateClass([
|
|
3837
|
-
(0,
|
|
3983
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3838
3984
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3839
3985
|
__decorateClass([
|
|
3840
|
-
(0,
|
|
3986
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3841
3987
|
], User.prototype, "freelancerTool", 2);
|
|
3842
3988
|
__decorateClass([
|
|
3843
|
-
(0,
|
|
3989
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3844
3990
|
], User.prototype, "freelancerFramework", 2);
|
|
3845
3991
|
__decorateClass([
|
|
3846
|
-
(0,
|
|
3992
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3847
3993
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3848
3994
|
__decorateClass([
|
|
3849
|
-
(0,
|
|
3995
|
+
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
3850
3996
|
], User.prototype, "freelancerAiInterview", 2);
|
|
3851
3997
|
__decorateClass([
|
|
3852
|
-
(0,
|
|
3998
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
3999
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4000
|
+
__decorateClass([
|
|
4001
|
+
(0, import_typeorm45.OneToMany)(() => Job, (job) => job.user)
|
|
3853
4002
|
], User.prototype, "jobs", 2);
|
|
3854
4003
|
__decorateClass([
|
|
3855
|
-
(0,
|
|
4004
|
+
(0, import_typeorm45.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3856
4005
|
], User.prototype, "jobApplications", 2);
|
|
3857
4006
|
__decorateClass([
|
|
3858
|
-
(0,
|
|
4007
|
+
(0, import_typeorm45.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3859
4008
|
], User.prototype, "interviews", 2);
|
|
3860
4009
|
__decorateClass([
|
|
3861
|
-
(0,
|
|
4010
|
+
(0, import_typeorm45.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3862
4011
|
], User.prototype, "bankDetail", 2);
|
|
3863
4012
|
__decorateClass([
|
|
3864
|
-
(0,
|
|
4013
|
+
(0, import_typeorm45.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3865
4014
|
], User.prototype, "systemPreference", 2);
|
|
3866
4015
|
__decorateClass([
|
|
3867
|
-
(0,
|
|
4016
|
+
(0, import_typeorm45.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3868
4017
|
], User.prototype, "givenRatings", 2);
|
|
3869
4018
|
__decorateClass([
|
|
3870
|
-
(0,
|
|
4019
|
+
(0, import_typeorm45.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3871
4020
|
], User.prototype, "receivedRatings", 2);
|
|
3872
4021
|
__decorateClass([
|
|
3873
|
-
(0,
|
|
4022
|
+
(0, import_typeorm45.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3874
4023
|
], User.prototype, "adminUserRoles", 2);
|
|
3875
4024
|
User = __decorateClass([
|
|
3876
|
-
(0,
|
|
4025
|
+
(0, import_typeorm45.Entity)("users")
|
|
3877
4026
|
], User);
|
|
3878
4027
|
|
|
3879
4028
|
// src/entities/rating.entity.ts
|
|
@@ -3885,36 +4034,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3885
4034
|
var Rating = class extends BaseEntity {
|
|
3886
4035
|
};
|
|
3887
4036
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
3889
|
-
(0,
|
|
4037
|
+
(0, import_typeorm46.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4038
|
+
(0, import_typeorm46.Index)()
|
|
3890
4039
|
], Rating.prototype, "reviewer_id", 2);
|
|
3891
4040
|
__decorateClass([
|
|
3892
|
-
(0,
|
|
3893
|
-
(0,
|
|
4041
|
+
(0, import_typeorm46.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4042
|
+
(0, import_typeorm46.JoinColumn)({ name: "reviewer_id" })
|
|
3894
4043
|
], Rating.prototype, "reviewer", 2);
|
|
3895
4044
|
__decorateClass([
|
|
3896
|
-
(0,
|
|
3897
|
-
(0,
|
|
4045
|
+
(0, import_typeorm46.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4046
|
+
(0, import_typeorm46.Index)()
|
|
3898
4047
|
], Rating.prototype, "reviewee_id", 2);
|
|
3899
4048
|
__decorateClass([
|
|
3900
|
-
(0,
|
|
3901
|
-
(0,
|
|
4049
|
+
(0, import_typeorm46.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4050
|
+
(0, import_typeorm46.JoinColumn)({ name: "reviewee_id" })
|
|
3902
4051
|
], Rating.prototype, "reviewee", 2);
|
|
3903
4052
|
__decorateClass([
|
|
3904
|
-
(0,
|
|
4053
|
+
(0, import_typeorm46.Column)({
|
|
3905
4054
|
type: "enum",
|
|
3906
4055
|
enum: RatingTypeEnum,
|
|
3907
4056
|
nullable: true
|
|
3908
4057
|
})
|
|
3909
4058
|
], Rating.prototype, "ratingType", 2);
|
|
3910
4059
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
4060
|
+
(0, import_typeorm46.Column)({ type: "integer", nullable: true })
|
|
3912
4061
|
], Rating.prototype, "rating", 2);
|
|
3913
4062
|
__decorateClass([
|
|
3914
|
-
(0,
|
|
4063
|
+
(0, import_typeorm46.Column)({ type: "text", nullable: true })
|
|
3915
4064
|
], Rating.prototype, "review", 2);
|
|
3916
4065
|
Rating = __decorateClass([
|
|
3917
|
-
(0,
|
|
4066
|
+
(0, import_typeorm46.Entity)("ratings")
|
|
3918
4067
|
], Rating);
|
|
3919
4068
|
|
|
3920
4069
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5260,11 +5409,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5260
5409
|
};
|
|
5261
5410
|
|
|
5262
5411
|
// src/entities/sequence-generator.entity.ts
|
|
5263
|
-
var
|
|
5412
|
+
var import_typeorm47 = require("typeorm");
|
|
5264
5413
|
var SequenceGenerator = class extends BaseEntity {
|
|
5265
5414
|
};
|
|
5266
5415
|
__decorateClass([
|
|
5267
|
-
(0,
|
|
5416
|
+
(0, import_typeorm47.Column)({
|
|
5268
5417
|
name: "module",
|
|
5269
5418
|
type: "varchar",
|
|
5270
5419
|
length: 50,
|
|
@@ -5273,7 +5422,7 @@ __decorateClass([
|
|
|
5273
5422
|
})
|
|
5274
5423
|
], SequenceGenerator.prototype, "module", 2);
|
|
5275
5424
|
__decorateClass([
|
|
5276
|
-
(0,
|
|
5425
|
+
(0, import_typeorm47.Column)({
|
|
5277
5426
|
name: "prefix",
|
|
5278
5427
|
type: "varchar",
|
|
5279
5428
|
length: 10,
|
|
@@ -5282,7 +5431,7 @@ __decorateClass([
|
|
|
5282
5431
|
})
|
|
5283
5432
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5284
5433
|
__decorateClass([
|
|
5285
|
-
(0,
|
|
5434
|
+
(0, import_typeorm47.Column)({
|
|
5286
5435
|
name: "last_sequence",
|
|
5287
5436
|
type: "int",
|
|
5288
5437
|
nullable: false,
|
|
@@ -5290,7 +5439,7 @@ __decorateClass([
|
|
|
5290
5439
|
})
|
|
5291
5440
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5292
5441
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5442
|
+
(0, import_typeorm47.Column)({
|
|
5294
5443
|
name: "year",
|
|
5295
5444
|
type: "int",
|
|
5296
5445
|
nullable: true,
|
|
@@ -5298,11 +5447,11 @@ __decorateClass([
|
|
|
5298
5447
|
})
|
|
5299
5448
|
], SequenceGenerator.prototype, "year", 2);
|
|
5300
5449
|
SequenceGenerator = __decorateClass([
|
|
5301
|
-
(0,
|
|
5450
|
+
(0, import_typeorm47.Entity)("sequence_generators")
|
|
5302
5451
|
], SequenceGenerator);
|
|
5303
5452
|
|
|
5304
5453
|
// src/entities/question.entity.ts
|
|
5305
|
-
var
|
|
5454
|
+
var import_typeorm48 = require("typeorm");
|
|
5306
5455
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5307
5456
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5308
5457
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5311,16 +5460,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5311
5460
|
var Question = class extends BaseEntity {
|
|
5312
5461
|
};
|
|
5313
5462
|
__decorateClass([
|
|
5314
|
-
(0,
|
|
5463
|
+
(0, import_typeorm48.Column)({ name: "question", type: "varchar" })
|
|
5315
5464
|
], Question.prototype, "question", 2);
|
|
5316
5465
|
__decorateClass([
|
|
5317
|
-
(0,
|
|
5466
|
+
(0, import_typeorm48.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5318
5467
|
], Question.prototype, "hint", 2);
|
|
5319
5468
|
__decorateClass([
|
|
5320
|
-
(0,
|
|
5469
|
+
(0, import_typeorm48.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5321
5470
|
], Question.prototype, "slug", 2);
|
|
5322
5471
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5472
|
+
(0, import_typeorm48.Column)({
|
|
5324
5473
|
name: "question_for",
|
|
5325
5474
|
type: "enum",
|
|
5326
5475
|
enum: QuestionFor,
|
|
@@ -5328,117 +5477,117 @@ __decorateClass([
|
|
|
5328
5477
|
})
|
|
5329
5478
|
], Question.prototype, "questionFor", 2);
|
|
5330
5479
|
__decorateClass([
|
|
5331
|
-
(0,
|
|
5480
|
+
(0, import_typeorm48.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5332
5481
|
], Question.prototype, "type", 2);
|
|
5333
5482
|
__decorateClass([
|
|
5334
|
-
(0,
|
|
5483
|
+
(0, import_typeorm48.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5335
5484
|
], Question.prototype, "options", 2);
|
|
5336
5485
|
__decorateClass([
|
|
5337
|
-
(0,
|
|
5486
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5338
5487
|
], Question.prototype, "isActive", 2);
|
|
5339
5488
|
Question = __decorateClass([
|
|
5340
|
-
(0,
|
|
5489
|
+
(0, import_typeorm48.Entity)("questions")
|
|
5341
5490
|
], Question);
|
|
5342
5491
|
|
|
5343
5492
|
// src/entities/skill.entity.ts
|
|
5344
|
-
var
|
|
5493
|
+
var import_typeorm49 = require("typeorm");
|
|
5345
5494
|
var Skill = class extends BaseEntity {
|
|
5346
5495
|
};
|
|
5347
5496
|
__decorateClass([
|
|
5348
|
-
(0,
|
|
5497
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5349
5498
|
], Skill.prototype, "name", 2);
|
|
5350
5499
|
__decorateClass([
|
|
5351
|
-
(0,
|
|
5500
|
+
(0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5352
5501
|
], Skill.prototype, "slug", 2);
|
|
5353
5502
|
__decorateClass([
|
|
5354
|
-
(0,
|
|
5503
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5355
5504
|
], Skill.prototype, "isActive", 2);
|
|
5356
5505
|
Skill = __decorateClass([
|
|
5357
|
-
(0,
|
|
5506
|
+
(0, import_typeorm49.Entity)("skills")
|
|
5358
5507
|
], Skill);
|
|
5359
5508
|
|
|
5360
5509
|
// src/entities/job-role.entity.ts
|
|
5361
|
-
var
|
|
5510
|
+
var import_typeorm50 = require("typeorm");
|
|
5362
5511
|
var JobRoles = class extends BaseEntity {
|
|
5363
5512
|
};
|
|
5364
5513
|
__decorateClass([
|
|
5365
|
-
(0,
|
|
5514
|
+
(0, import_typeorm50.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5366
5515
|
], JobRoles.prototype, "slug", 2);
|
|
5367
5516
|
__decorateClass([
|
|
5368
|
-
(0,
|
|
5517
|
+
(0, import_typeorm50.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5369
5518
|
], JobRoles.prototype, "name", 2);
|
|
5370
5519
|
__decorateClass([
|
|
5371
|
-
(0,
|
|
5520
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5372
5521
|
], JobRoles.prototype, "isActive", 2);
|
|
5373
5522
|
JobRoles = __decorateClass([
|
|
5374
|
-
(0,
|
|
5523
|
+
(0, import_typeorm50.Entity)("job_roles")
|
|
5375
5524
|
], JobRoles);
|
|
5376
5525
|
|
|
5377
5526
|
// src/entities/plan.entity.ts
|
|
5378
|
-
var
|
|
5527
|
+
var import_typeorm52 = require("typeorm");
|
|
5379
5528
|
|
|
5380
5529
|
// src/entities/feature.entity.ts
|
|
5381
|
-
var
|
|
5530
|
+
var import_typeorm51 = require("typeorm");
|
|
5382
5531
|
var Feature = class extends BaseEntity {
|
|
5383
5532
|
};
|
|
5384
5533
|
__decorateClass([
|
|
5385
|
-
(0,
|
|
5534
|
+
(0, import_typeorm51.Column)({ name: "name", type: "varchar", unique: true })
|
|
5386
5535
|
], Feature.prototype, "name", 2);
|
|
5387
5536
|
__decorateClass([
|
|
5388
|
-
(0,
|
|
5537
|
+
(0, import_typeorm51.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5389
5538
|
], Feature.prototype, "plans", 2);
|
|
5390
5539
|
Feature = __decorateClass([
|
|
5391
|
-
(0,
|
|
5540
|
+
(0, import_typeorm51.Entity)("features")
|
|
5392
5541
|
], Feature);
|
|
5393
5542
|
|
|
5394
5543
|
// src/entities/plan.entity.ts
|
|
5395
5544
|
var Plan = class extends BaseEntity {
|
|
5396
5545
|
};
|
|
5397
5546
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5547
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", unique: true })
|
|
5399
5548
|
], Plan.prototype, "name", 2);
|
|
5400
5549
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5550
|
+
(0, import_typeorm52.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5402
5551
|
], Plan.prototype, "description", 2);
|
|
5403
5552
|
__decorateClass([
|
|
5404
|
-
(0,
|
|
5553
|
+
(0, import_typeorm52.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5405
5554
|
], Plan.prototype, "price", 2);
|
|
5406
5555
|
__decorateClass([
|
|
5407
|
-
(0,
|
|
5556
|
+
(0, import_typeorm52.Column)({ name: "billing_period", type: "varchar" })
|
|
5408
5557
|
], Plan.prototype, "billingPeriod", 2);
|
|
5409
5558
|
__decorateClass([
|
|
5410
|
-
(0,
|
|
5559
|
+
(0, import_typeorm52.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5411
5560
|
], Plan.prototype, "isCurrent", 2);
|
|
5412
5561
|
__decorateClass([
|
|
5413
|
-
(0,
|
|
5414
|
-
(0,
|
|
5562
|
+
(0, import_typeorm52.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5563
|
+
(0, import_typeorm52.JoinTable)()
|
|
5415
5564
|
], Plan.prototype, "features", 2);
|
|
5416
5565
|
Plan = __decorateClass([
|
|
5417
|
-
(0,
|
|
5566
|
+
(0, import_typeorm52.Entity)("plans")
|
|
5418
5567
|
], Plan);
|
|
5419
5568
|
|
|
5420
5569
|
// src/entities/cms.entity.ts
|
|
5421
|
-
var
|
|
5570
|
+
var import_typeorm53 = require("typeorm");
|
|
5422
5571
|
var Cms = class extends BaseEntity {
|
|
5423
5572
|
};
|
|
5424
5573
|
__decorateClass([
|
|
5425
|
-
(0,
|
|
5574
|
+
(0, import_typeorm53.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5426
5575
|
], Cms.prototype, "title", 2);
|
|
5427
5576
|
__decorateClass([
|
|
5428
|
-
(0,
|
|
5577
|
+
(0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5429
5578
|
], Cms.prototype, "slug", 2);
|
|
5430
5579
|
__decorateClass([
|
|
5431
|
-
(0,
|
|
5580
|
+
(0, import_typeorm53.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5432
5581
|
], Cms.prototype, "content", 2);
|
|
5433
5582
|
__decorateClass([
|
|
5434
|
-
(0,
|
|
5583
|
+
(0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5435
5584
|
], Cms.prototype, "isActive", 2);
|
|
5436
5585
|
Cms = __decorateClass([
|
|
5437
|
-
(0,
|
|
5586
|
+
(0, import_typeorm53.Entity)("cms")
|
|
5438
5587
|
], Cms);
|
|
5439
5588
|
|
|
5440
5589
|
// src/entities/lead.entity.ts
|
|
5441
|
-
var
|
|
5590
|
+
var import_typeorm54 = require("typeorm");
|
|
5442
5591
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5443
5592
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5444
5593
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5447,22 +5596,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5447
5596
|
var Lead = class extends BaseEntity {
|
|
5448
5597
|
};
|
|
5449
5598
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5599
|
+
(0, import_typeorm54.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5451
5600
|
], Lead.prototype, "name", 2);
|
|
5452
5601
|
__decorateClass([
|
|
5453
|
-
(0,
|
|
5602
|
+
(0, import_typeorm54.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5454
5603
|
], Lead.prototype, "mobileCode", 2);
|
|
5455
5604
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5605
|
+
(0, import_typeorm54.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5457
5606
|
], Lead.prototype, "mobile", 2);
|
|
5458
5607
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5608
|
+
(0, import_typeorm54.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5460
5609
|
], Lead.prototype, "email", 2);
|
|
5461
5610
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5611
|
+
(0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5463
5612
|
], Lead.prototype, "description", 2);
|
|
5464
5613
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5614
|
+
(0, import_typeorm54.Column)({
|
|
5466
5615
|
name: "category",
|
|
5467
5616
|
type: "enum",
|
|
5468
5617
|
enum: CategoryEmum,
|
|
@@ -5470,129 +5619,129 @@ __decorateClass([
|
|
|
5470
5619
|
})
|
|
5471
5620
|
], Lead.prototype, "category", 2);
|
|
5472
5621
|
Lead = __decorateClass([
|
|
5473
|
-
(0,
|
|
5622
|
+
(0, import_typeorm54.Entity)("leads")
|
|
5474
5623
|
], Lead);
|
|
5475
5624
|
|
|
5476
5625
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5477
|
-
var
|
|
5626
|
+
var import_typeorm55 = require("typeorm");
|
|
5478
5627
|
var JobFreelancerRecommendation = class {
|
|
5479
5628
|
};
|
|
5480
5629
|
__decorateClass([
|
|
5481
|
-
(0,
|
|
5630
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_id" })
|
|
5482
5631
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5483
5632
|
__decorateClass([
|
|
5484
|
-
(0,
|
|
5633
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_uuid" })
|
|
5485
5634
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5486
5635
|
__decorateClass([
|
|
5487
|
-
(0,
|
|
5636
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_unique_id" })
|
|
5488
5637
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5489
5638
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5639
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_role" })
|
|
5491
5640
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5492
5641
|
__decorateClass([
|
|
5493
|
-
(0,
|
|
5642
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_openings" })
|
|
5494
5643
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5495
5644
|
__decorateClass([
|
|
5496
|
-
(0,
|
|
5645
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_location" })
|
|
5497
5646
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5498
5647
|
__decorateClass([
|
|
5499
|
-
(0,
|
|
5648
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_currency" })
|
|
5500
5649
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5501
5650
|
__decorateClass([
|
|
5502
|
-
(0,
|
|
5651
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_from" })
|
|
5503
5652
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5504
5653
|
__decorateClass([
|
|
5505
|
-
(0,
|
|
5654
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_to" })
|
|
5506
5655
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5507
5656
|
__decorateClass([
|
|
5508
|
-
(0,
|
|
5657
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_employment_type" })
|
|
5509
5658
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5510
5659
|
__decorateClass([
|
|
5511
|
-
(0,
|
|
5660
|
+
(0, import_typeorm55.ViewColumn)({ name: "application_received" })
|
|
5512
5661
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5513
5662
|
__decorateClass([
|
|
5514
|
-
(0,
|
|
5663
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_posted_at" })
|
|
5515
5664
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5516
5665
|
__decorateClass([
|
|
5517
|
-
(0,
|
|
5666
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_id" })
|
|
5518
5667
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5519
5668
|
__decorateClass([
|
|
5520
|
-
(0,
|
|
5669
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_uuid" })
|
|
5521
5670
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5522
5671
|
__decorateClass([
|
|
5523
|
-
(0,
|
|
5672
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5524
5673
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5525
5674
|
__decorateClass([
|
|
5526
|
-
(0,
|
|
5675
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_first_name" })
|
|
5527
5676
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5528
5677
|
__decorateClass([
|
|
5529
|
-
(0,
|
|
5678
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_last_name" })
|
|
5530
5679
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5531
5680
|
__decorateClass([
|
|
5532
|
-
(0,
|
|
5681
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_email" })
|
|
5533
5682
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5534
5683
|
__decorateClass([
|
|
5535
|
-
(0,
|
|
5684
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5536
5685
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5537
5686
|
__decorateClass([
|
|
5538
|
-
(0,
|
|
5687
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_is_social" })
|
|
5539
5688
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5540
5689
|
__decorateClass([
|
|
5541
|
-
(0,
|
|
5690
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_created_at" })
|
|
5542
5691
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5543
5692
|
__decorateClass([
|
|
5544
|
-
(0,
|
|
5693
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_designation" })
|
|
5545
5694
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5546
5695
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5696
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_experience" })
|
|
5548
5697
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5549
5698
|
__decorateClass([
|
|
5550
|
-
(0,
|
|
5699
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5551
5700
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5552
5701
|
__decorateClass([
|
|
5553
|
-
(0,
|
|
5702
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5554
5703
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5555
5704
|
__decorateClass([
|
|
5556
|
-
(0,
|
|
5705
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_name" })
|
|
5557
5706
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5558
5707
|
__decorateClass([
|
|
5559
|
-
(0,
|
|
5708
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5560
5709
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5561
5710
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5711
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_id" })
|
|
5563
5712
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5564
5713
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5714
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_uuid" })
|
|
5566
5715
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5567
5716
|
__decorateClass([
|
|
5568
|
-
(0,
|
|
5717
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_first_name" })
|
|
5569
5718
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5570
5719
|
__decorateClass([
|
|
5571
|
-
(0,
|
|
5720
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_last_name" })
|
|
5572
5721
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5573
5722
|
__decorateClass([
|
|
5574
|
-
(0,
|
|
5723
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_email" })
|
|
5575
5724
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5576
5725
|
__decorateClass([
|
|
5577
|
-
(0,
|
|
5726
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_logo" })
|
|
5578
5727
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5579
5728
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5729
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_name" })
|
|
5581
5730
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5582
5731
|
__decorateClass([
|
|
5583
|
-
(0,
|
|
5732
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills" })
|
|
5584
5733
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5585
5734
|
__decorateClass([
|
|
5586
|
-
(0,
|
|
5735
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills_count" })
|
|
5587
5736
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5588
5737
|
__decorateClass([
|
|
5589
|
-
(0,
|
|
5738
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills" })
|
|
5590
5739
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5591
5740
|
__decorateClass([
|
|
5592
|
-
(0,
|
|
5741
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills_count" })
|
|
5593
5742
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5594
5743
|
JobFreelancerRecommendation = __decorateClass([
|
|
5595
|
-
(0,
|
|
5744
|
+
(0, import_typeorm55.ViewEntity)({
|
|
5596
5745
|
name: "job_freelancer_recommendations",
|
|
5597
5746
|
materialized: true,
|
|
5598
5747
|
synchronize: false
|
|
@@ -5601,32 +5750,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5601
5750
|
], JobFreelancerRecommendation);
|
|
5602
5751
|
|
|
5603
5752
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5604
|
-
var
|
|
5753
|
+
var import_typeorm56 = require("typeorm");
|
|
5605
5754
|
var JobFreelancerRecommendationV2 = class {
|
|
5606
5755
|
};
|
|
5607
5756
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5757
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_id" })
|
|
5609
5758
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5610
5759
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5760
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_owner_id" })
|
|
5612
5761
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5613
5762
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5763
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_id" })
|
|
5615
5764
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5616
5765
|
__decorateClass([
|
|
5617
|
-
(0,
|
|
5766
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills" })
|
|
5618
5767
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5619
5768
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5769
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills_count" })
|
|
5621
5770
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5622
5771
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5772
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills" })
|
|
5624
5773
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5625
5774
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5775
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills_count" })
|
|
5627
5776
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5628
5777
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5629
|
-
(0,
|
|
5778
|
+
(0, import_typeorm56.ViewEntity)({
|
|
5630
5779
|
name: "job_freelancer_recommendations_v2",
|
|
5631
5780
|
materialized: true,
|
|
5632
5781
|
synchronize: false
|
|
@@ -5635,74 +5784,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5635
5784
|
], JobFreelancerRecommendationV2);
|
|
5636
5785
|
|
|
5637
5786
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5638
|
-
var
|
|
5787
|
+
var import_typeorm57 = require("typeorm");
|
|
5639
5788
|
var ClientFreelancerRecommendation = class {
|
|
5640
5789
|
};
|
|
5641
5790
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5791
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_id" })
|
|
5643
5792
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5644
5793
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5794
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_uuid" })
|
|
5646
5795
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5647
5796
|
__decorateClass([
|
|
5648
|
-
(0,
|
|
5797
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_id" })
|
|
5649
5798
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5650
5799
|
__decorateClass([
|
|
5651
|
-
(0,
|
|
5800
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_uuid" })
|
|
5652
5801
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5653
5802
|
__decorateClass([
|
|
5654
|
-
(0,
|
|
5803
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5655
5804
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5656
5805
|
__decorateClass([
|
|
5657
|
-
(0,
|
|
5806
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_first_name" })
|
|
5658
5807
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5659
5808
|
__decorateClass([
|
|
5660
|
-
(0,
|
|
5809
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_last_name" })
|
|
5661
5810
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5662
5811
|
__decorateClass([
|
|
5663
|
-
(0,
|
|
5812
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_email" })
|
|
5664
5813
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5665
5814
|
__decorateClass([
|
|
5666
|
-
(0,
|
|
5815
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5667
5816
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5668
5817
|
__decorateClass([
|
|
5669
|
-
(0,
|
|
5818
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_is_social" })
|
|
5670
5819
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5671
5820
|
__decorateClass([
|
|
5672
|
-
(0,
|
|
5821
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_created_at" })
|
|
5673
5822
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5674
5823
|
__decorateClass([
|
|
5675
|
-
(0,
|
|
5824
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_designation" })
|
|
5676
5825
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5677
5826
|
__decorateClass([
|
|
5678
|
-
(0,
|
|
5827
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_experience" })
|
|
5679
5828
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5680
5829
|
__decorateClass([
|
|
5681
|
-
(0,
|
|
5830
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5682
5831
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5683
5832
|
__decorateClass([
|
|
5684
|
-
(0,
|
|
5833
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5685
5834
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5686
5835
|
__decorateClass([
|
|
5687
|
-
(0,
|
|
5836
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_name" })
|
|
5688
5837
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5689
5838
|
__decorateClass([
|
|
5690
|
-
(0,
|
|
5839
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5691
5840
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5692
5841
|
__decorateClass([
|
|
5693
|
-
(0,
|
|
5842
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills" })
|
|
5694
5843
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5695
5844
|
__decorateClass([
|
|
5696
|
-
(0,
|
|
5845
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills_count" })
|
|
5697
5846
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5698
5847
|
__decorateClass([
|
|
5699
|
-
(0,
|
|
5848
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills" })
|
|
5700
5849
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5701
5850
|
__decorateClass([
|
|
5702
|
-
(0,
|
|
5851
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills_count" })
|
|
5703
5852
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5704
5853
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5705
|
-
(0,
|
|
5854
|
+
(0, import_typeorm57.ViewEntity)({
|
|
5706
5855
|
name: "client_freelancer_recommendations",
|
|
5707
5856
|
materialized: true,
|
|
5708
5857
|
synchronize: false
|
|
@@ -5711,7 +5860,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5711
5860
|
], ClientFreelancerRecommendation);
|
|
5712
5861
|
|
|
5713
5862
|
// src/entities/commission.entity.ts
|
|
5714
|
-
var
|
|
5863
|
+
var import_typeorm58 = require("typeorm");
|
|
5715
5864
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5716
5865
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5717
5866
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5720,7 +5869,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5720
5869
|
var Commission = class extends BaseEntity {
|
|
5721
5870
|
};
|
|
5722
5871
|
__decorateClass([
|
|
5723
|
-
(0,
|
|
5872
|
+
(0, import_typeorm58.Column)({
|
|
5724
5873
|
name: "freelancer_commission_type",
|
|
5725
5874
|
type: "enum",
|
|
5726
5875
|
enum: CommissionTypeEnum,
|
|
@@ -5728,10 +5877,10 @@ __decorateClass([
|
|
|
5728
5877
|
})
|
|
5729
5878
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5730
5879
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5880
|
+
(0, import_typeorm58.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5732
5881
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5733
5882
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5883
|
+
(0, import_typeorm58.Column)({
|
|
5735
5884
|
name: "client_commission_type",
|
|
5736
5885
|
type: "enum",
|
|
5737
5886
|
enum: CommissionTypeEnum,
|
|
@@ -5739,10 +5888,10 @@ __decorateClass([
|
|
|
5739
5888
|
})
|
|
5740
5889
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5741
5890
|
__decorateClass([
|
|
5742
|
-
(0,
|
|
5891
|
+
(0, import_typeorm58.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5743
5892
|
], Commission.prototype, "clientCommission", 2);
|
|
5744
5893
|
Commission = __decorateClass([
|
|
5745
|
-
(0,
|
|
5894
|
+
(0, import_typeorm58.Entity)("commissions")
|
|
5746
5895
|
], Commission);
|
|
5747
5896
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5748
5897
|
0 && (module.exports = {
|
|
@@ -5783,6 +5932,8 @@ Commission = __decorateClass([
|
|
|
5783
5932
|
COMPANY_MEMBERS_PATTERNS,
|
|
5784
5933
|
COMPANY_ROLES_PATTERNS,
|
|
5785
5934
|
COUNTRY_PATTERN,
|
|
5935
|
+
CalendlyMeeting,
|
|
5936
|
+
CalendlyMeetingStatus,
|
|
5786
5937
|
CandidateType,
|
|
5787
5938
|
CaseStudyDto,
|
|
5788
5939
|
CategoryEmum,
|
|
@@ -5820,6 +5971,8 @@ Commission = __decorateClass([
|
|
|
5820
5971
|
EducationDto,
|
|
5821
5972
|
EmploymentType,
|
|
5822
5973
|
ExperienceDto,
|
|
5974
|
+
F2FInterview,
|
|
5975
|
+
F2fInterviewStatusEnum,
|
|
5823
5976
|
FREELANCER_DECLARATION_PATTERN,
|
|
5824
5977
|
FREELANCER_EDUCATION_PATTERN,
|
|
5825
5978
|
FREELANCER_EXPERIENCE_PATTERN,
|