@experts_hub/shared 1.0.335 → 1.0.337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/f2f-interview-reschedule-request.entity.d.ts +17 -0
- package/dist/entities/f2f-interview.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +608 -550
- package/dist/index.mjs +677 -613
- package/dist/modules/onboarding/dto/client-create-account.dto.d.ts +1 -0
- package/dist/modules/onboarding/dto/freelancer-create-account.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,6 +104,8 @@ __export(index_exports, {
|
|
|
104
104
|
EmploymentType: () => EmploymentType,
|
|
105
105
|
ExperienceDto: () => ExperienceDto,
|
|
106
106
|
F2FInterview: () => F2FInterview,
|
|
107
|
+
F2fInterviewRescheduleRequest: () => F2fInterviewRescheduleRequest,
|
|
108
|
+
F2fInterviewRescheduleRequestStatusEnum: () => F2fInterviewRescheduleRequestStatusEnum,
|
|
107
109
|
F2fInterviewStatusEnum: () => F2fInterviewStatusEnum,
|
|
108
110
|
FREELANCER_DECLARATION_PATTERN: () => FREELANCER_DECLARATION_PATTERN,
|
|
109
111
|
FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
|
|
@@ -661,6 +663,9 @@ __decorateClass([
|
|
|
661
663
|
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
662
664
|
Match("password", { message: "Passwords do not match" })
|
|
663
665
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
666
|
+
__decorateClass([
|
|
667
|
+
(0, import_class_validator13.IsOptional)()
|
|
668
|
+
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
664
669
|
|
|
665
670
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
666
671
|
var import_class_validator14 = require("class-validator");
|
|
@@ -880,6 +885,9 @@ __decorateClass([
|
|
|
880
885
|
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
881
886
|
Match("password", { message: "Passwords do not match" })
|
|
882
887
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
888
|
+
__decorateClass([
|
|
889
|
+
(0, import_class_validator24.IsOptional)()
|
|
890
|
+
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
883
891
|
|
|
884
892
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
885
893
|
var RESUME_PARSER_PATTERN = {
|
|
@@ -1516,10 +1524,10 @@ var RATING_PATTERN = {
|
|
|
1516
1524
|
var import_class_validator40 = require("class-validator");
|
|
1517
1525
|
|
|
1518
1526
|
// src/entities/rating.entity.ts
|
|
1519
|
-
var
|
|
1527
|
+
var import_typeorm47 = require("typeorm");
|
|
1520
1528
|
|
|
1521
1529
|
// src/entities/user.entity.ts
|
|
1522
|
-
var
|
|
1530
|
+
var import_typeorm46 = require("typeorm");
|
|
1523
1531
|
|
|
1524
1532
|
// src/entities/base.entity.ts
|
|
1525
1533
|
var import_typeorm = require("typeorm");
|
|
@@ -2186,7 +2194,7 @@ CompanyProfile = __decorateClass([
|
|
|
2186
2194
|
], CompanyProfile);
|
|
2187
2195
|
|
|
2188
2196
|
// src/entities/job.entity.ts
|
|
2189
|
-
var
|
|
2197
|
+
var import_typeorm21 = require("typeorm");
|
|
2190
2198
|
|
|
2191
2199
|
// src/entities/job-skill.entity.ts
|
|
2192
2200
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2324,7 +2332,7 @@ JobApplication = __decorateClass([
|
|
|
2324
2332
|
], JobApplication);
|
|
2325
2333
|
|
|
2326
2334
|
// src/entities/interview.entity.ts
|
|
2327
|
-
var
|
|
2335
|
+
var import_typeorm19 = require("typeorm");
|
|
2328
2336
|
|
|
2329
2337
|
// src/entities/interview-skill.entity.ts
|
|
2330
2338
|
var import_typeorm12 = require("typeorm");
|
|
@@ -2534,7 +2542,7 @@ AiInterview = __decorateClass([
|
|
|
2534
2542
|
], AiInterview);
|
|
2535
2543
|
|
|
2536
2544
|
// src/entities/f2f-interview.entity.ts
|
|
2537
|
-
var
|
|
2545
|
+
var import_typeorm18 = require("typeorm");
|
|
2538
2546
|
|
|
2539
2547
|
// src/entities/calendly-meeting.entity.ts
|
|
2540
2548
|
var import_typeorm16 = require("typeorm");
|
|
@@ -2577,6 +2585,48 @@ CalendlyMeeting = __decorateClass([
|
|
|
2577
2585
|
(0, import_typeorm16.Unique)("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2578
2586
|
], CalendlyMeeting);
|
|
2579
2587
|
|
|
2588
|
+
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
2589
|
+
var import_typeorm17 = require("typeorm");
|
|
2590
|
+
var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewRescheduleRequestStatusEnum2) => {
|
|
2591
|
+
F2fInterviewRescheduleRequestStatusEnum2["PENDING"] = "PENDING";
|
|
2592
|
+
F2fInterviewRescheduleRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
2593
|
+
F2fInterviewRescheduleRequestStatusEnum2["REJECTED"] = "REJECTED";
|
|
2594
|
+
return F2fInterviewRescheduleRequestStatusEnum2;
|
|
2595
|
+
})(F2fInterviewRescheduleRequestStatusEnum || {});
|
|
2596
|
+
var F2fInterviewRescheduleRequest = class extends BaseEntity {
|
|
2597
|
+
};
|
|
2598
|
+
__decorateClass([
|
|
2599
|
+
(0, import_typeorm17.Column)({ name: "candidate_id", type: "integer", nullable: true })
|
|
2600
|
+
], F2fInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
2601
|
+
__decorateClass([
|
|
2602
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.freelancerF2FInterviewRescheduleRequests, { nullable: true }),
|
|
2603
|
+
(0, import_typeorm17.JoinColumn)({ name: "candidate_id" })
|
|
2604
|
+
], F2fInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
2605
|
+
__decorateClass([
|
|
2606
|
+
(0, import_typeorm17.Column)({ name: "f2finterview_id", type: "integer", nullable: true })
|
|
2607
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterviewId", 2);
|
|
2608
|
+
__decorateClass([
|
|
2609
|
+
(0, import_typeorm17.ManyToOne)(() => F2FInterview, (f2FInterview) => f2FInterview.rescheduleRequests),
|
|
2610
|
+
(0, import_typeorm17.JoinColumn)({ name: "f2finterview_id" })
|
|
2611
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterview", 2);
|
|
2612
|
+
__decorateClass([
|
|
2613
|
+
(0, import_typeorm17.Column)({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
2614
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
2615
|
+
__decorateClass([
|
|
2616
|
+
(0, import_typeorm17.Column)({ name: "rescheduled_slot", type: "varchar", nullable: true })
|
|
2617
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledSlot", 2);
|
|
2618
|
+
__decorateClass([
|
|
2619
|
+
(0, import_typeorm17.Column)({
|
|
2620
|
+
name: "status",
|
|
2621
|
+
type: "enum",
|
|
2622
|
+
enum: F2fInterviewRescheduleRequestStatusEnum,
|
|
2623
|
+
default: "PENDING" /* PENDING */
|
|
2624
|
+
})
|
|
2625
|
+
], F2fInterviewRescheduleRequest.prototype, "status", 2);
|
|
2626
|
+
F2fInterviewRescheduleRequest = __decorateClass([
|
|
2627
|
+
(0, import_typeorm17.Entity)("f2f_interview_reschedule_requests")
|
|
2628
|
+
], F2fInterviewRescheduleRequest);
|
|
2629
|
+
|
|
2580
2630
|
// src/entities/f2f-interview.entity.ts
|
|
2581
2631
|
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2582
2632
|
F2fInterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2592,58 +2642,58 @@ var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
|
2592
2642
|
var F2FInterview = class extends BaseEntity {
|
|
2593
2643
|
};
|
|
2594
2644
|
__decorateClass([
|
|
2595
|
-
(0,
|
|
2645
|
+
(0, import_typeorm18.Column)({ name: "interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2596
2646
|
], F2FInterview.prototype, "interviewUniqueId", 2);
|
|
2597
2647
|
__decorateClass([
|
|
2598
|
-
(0,
|
|
2648
|
+
(0, import_typeorm18.Column)({ name: "interview_id", type: "integer", nullable: true })
|
|
2599
2649
|
], F2FInterview.prototype, "interviewId", 2);
|
|
2600
2650
|
__decorateClass([
|
|
2601
|
-
(0,
|
|
2602
|
-
(0,
|
|
2651
|
+
(0, import_typeorm18.ManyToOne)(() => Interview, (interview) => interview.aiInterviews),
|
|
2652
|
+
(0, import_typeorm18.JoinColumn)({ name: "interview_id" })
|
|
2603
2653
|
], F2FInterview.prototype, "interview", 2);
|
|
2604
2654
|
__decorateClass([
|
|
2605
|
-
(0,
|
|
2655
|
+
(0, import_typeorm18.Column)({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2606
2656
|
], F2FInterview.prototype, "interviwerId", 2);
|
|
2607
2657
|
__decorateClass([
|
|
2608
|
-
(0,
|
|
2609
|
-
(0,
|
|
2658
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.clientF2FInterviews),
|
|
2659
|
+
(0, import_typeorm18.JoinColumn)({ name: "interviwer_id" })
|
|
2610
2660
|
], F2FInterview.prototype, "interviwer", 2);
|
|
2611
2661
|
__decorateClass([
|
|
2612
|
-
(0,
|
|
2662
|
+
(0, import_typeorm18.Column)({ name: "candidate_id", type: "integer", nullable: true })
|
|
2613
2663
|
], F2FInterview.prototype, "candidateId", 2);
|
|
2614
2664
|
__decorateClass([
|
|
2615
|
-
(0,
|
|
2616
|
-
(0,
|
|
2665
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2666
|
+
(0, import_typeorm18.JoinColumn)({ name: "candidate_id" })
|
|
2617
2667
|
], F2FInterview.prototype, "candidate", 2);
|
|
2618
2668
|
__decorateClass([
|
|
2619
|
-
(0,
|
|
2669
|
+
(0, import_typeorm18.Column)({ name: "invitee_email", type: "varchar", nullable: true })
|
|
2620
2670
|
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
2621
2671
|
__decorateClass([
|
|
2622
|
-
(0,
|
|
2672
|
+
(0, import_typeorm18.Column)({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2623
2673
|
], F2FInterview.prototype, "inviteeName", 2);
|
|
2624
2674
|
__decorateClass([
|
|
2625
|
-
(0,
|
|
2675
|
+
(0, import_typeorm18.Column)({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2626
2676
|
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2627
2677
|
__decorateClass([
|
|
2628
|
-
(0,
|
|
2678
|
+
(0, import_typeorm18.Column)({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2629
2679
|
], F2FInterview.prototype, "meetingId", 2);
|
|
2630
2680
|
__decorateClass([
|
|
2631
|
-
(0,
|
|
2681
|
+
(0, import_typeorm18.Column)({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2632
2682
|
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2633
2683
|
__decorateClass([
|
|
2634
|
-
(0,
|
|
2684
|
+
(0, import_typeorm18.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2635
2685
|
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2636
2686
|
__decorateClass([
|
|
2637
|
-
(0,
|
|
2687
|
+
(0, import_typeorm18.Column)({ name: "cancel_url", type: "varchar", nullable: true })
|
|
2638
2688
|
], F2FInterview.prototype, "cancelUrl", 2);
|
|
2639
2689
|
__decorateClass([
|
|
2640
|
-
(0,
|
|
2690
|
+
(0, import_typeorm18.Column)({ name: "event_name", type: "varchar", nullable: true })
|
|
2641
2691
|
], F2FInterview.prototype, "eventName", 2);
|
|
2642
2692
|
__decorateClass([
|
|
2643
|
-
(0,
|
|
2693
|
+
(0, import_typeorm18.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2644
2694
|
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2645
2695
|
__decorateClass([
|
|
2646
|
-
(0,
|
|
2696
|
+
(0, import_typeorm18.Column)({
|
|
2647
2697
|
name: "status",
|
|
2648
2698
|
type: "enum",
|
|
2649
2699
|
enum: F2fInterviewStatusEnum,
|
|
@@ -2651,32 +2701,35 @@ __decorateClass([
|
|
|
2651
2701
|
})
|
|
2652
2702
|
], F2FInterview.prototype, "status", 2);
|
|
2653
2703
|
__decorateClass([
|
|
2654
|
-
(0,
|
|
2704
|
+
(0, import_typeorm18.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2655
2705
|
], F2FInterview.prototype, "cancelledAt", 2);
|
|
2656
2706
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2707
|
+
(0, import_typeorm18.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2658
2708
|
], F2FInterview.prototype, "cancelReason", 2);
|
|
2659
2709
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2710
|
+
(0, import_typeorm18.Column)({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2661
2711
|
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
2662
2712
|
__decorateClass([
|
|
2663
|
-
(0,
|
|
2713
|
+
(0, import_typeorm18.Column)({ name: "is_completed", type: "boolean", default: false })
|
|
2664
2714
|
], F2FInterview.prototype, "isCompleted", 2);
|
|
2665
2715
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2716
|
+
(0, import_typeorm18.Column)({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2667
2717
|
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2668
2718
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2719
|
+
(0, import_typeorm18.Column)({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
2670
2720
|
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2671
2721
|
__decorateClass([
|
|
2672
|
-
(0,
|
|
2722
|
+
(0, import_typeorm18.Column)({ name: "calendly_meeting_id", type: "integer", nullable: true })
|
|
2673
2723
|
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2674
2724
|
__decorateClass([
|
|
2675
|
-
(0,
|
|
2676
|
-
(0,
|
|
2725
|
+
(0, import_typeorm18.OneToOne)(() => CalendlyMeeting),
|
|
2726
|
+
(0, import_typeorm18.JoinColumn)({ name: "calendly_meeting_id" })
|
|
2677
2727
|
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2728
|
+
__decorateClass([
|
|
2729
|
+
(0, import_typeorm18.OneToMany)(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
2730
|
+
], F2FInterview.prototype, "rescheduleRequests", 2);
|
|
2678
2731
|
F2FInterview = __decorateClass([
|
|
2679
|
-
(0,
|
|
2732
|
+
(0, import_typeorm18.Entity)("f2f_interviews")
|
|
2680
2733
|
], F2FInterview);
|
|
2681
2734
|
|
|
2682
2735
|
// src/entities/interview.entity.ts
|
|
@@ -2691,44 +2744,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2691
2744
|
var Interview = class extends BaseEntity {
|
|
2692
2745
|
};
|
|
2693
2746
|
__decorateClass([
|
|
2694
|
-
(0,
|
|
2747
|
+
(0, import_typeorm19.Column)({
|
|
2695
2748
|
name: "interview_id",
|
|
2696
2749
|
type: "varchar",
|
|
2697
2750
|
unique: true,
|
|
2698
2751
|
nullable: true
|
|
2699
2752
|
}),
|
|
2700
|
-
(0,
|
|
2753
|
+
(0, import_typeorm19.Index)()
|
|
2701
2754
|
], Interview.prototype, "interviewId", 2);
|
|
2702
2755
|
__decorateClass([
|
|
2703
|
-
(0,
|
|
2704
|
-
(0,
|
|
2756
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2757
|
+
(0, import_typeorm19.Index)()
|
|
2705
2758
|
], Interview.prototype, "userId", 2);
|
|
2706
2759
|
__decorateClass([
|
|
2707
|
-
(0,
|
|
2708
|
-
(0,
|
|
2760
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.interviews),
|
|
2761
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2709
2762
|
], Interview.prototype, "user", 2);
|
|
2710
2763
|
__decorateClass([
|
|
2711
|
-
(0,
|
|
2764
|
+
(0, import_typeorm19.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2712
2765
|
], Interview.prototype, "interviewName", 2);
|
|
2713
2766
|
__decorateClass([
|
|
2714
|
-
(0,
|
|
2715
|
-
(0,
|
|
2767
|
+
(0, import_typeorm19.Column)({ name: "job_id", type: "integer" }),
|
|
2768
|
+
(0, import_typeorm19.Index)()
|
|
2716
2769
|
], Interview.prototype, "jobId", 2);
|
|
2717
2770
|
__decorateClass([
|
|
2718
|
-
(0,
|
|
2719
|
-
(0,
|
|
2771
|
+
(0, import_typeorm19.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2772
|
+
(0, import_typeorm19.JoinColumn)({ name: "job_id" })
|
|
2720
2773
|
], Interview.prototype, "job", 2);
|
|
2721
2774
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2775
|
+
(0, import_typeorm19.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2723
2776
|
], Interview.prototype, "interviewType", 2);
|
|
2724
2777
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2778
|
+
(0, import_typeorm19.Column)({ name: "interview_language", type: "varchar", nullable: true })
|
|
2726
2779
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2727
2780
|
__decorateClass([
|
|
2728
|
-
(0,
|
|
2781
|
+
(0, import_typeorm19.Column)({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2729
2782
|
], Interview.prototype, "allowProctoring", 2);
|
|
2730
2783
|
__decorateClass([
|
|
2731
|
-
(0,
|
|
2784
|
+
(0, import_typeorm19.Column)({
|
|
2732
2785
|
name: "status",
|
|
2733
2786
|
type: "enum",
|
|
2734
2787
|
enum: InterviewStatusEnum,
|
|
@@ -2736,70 +2789,70 @@ __decorateClass([
|
|
|
2736
2789
|
})
|
|
2737
2790
|
], Interview.prototype, "status", 2);
|
|
2738
2791
|
__decorateClass([
|
|
2739
|
-
(0,
|
|
2792
|
+
(0, import_typeorm19.OneToMany)(
|
|
2740
2793
|
() => InterviewSkill,
|
|
2741
2794
|
(interviewSkill) => interviewSkill.interview,
|
|
2742
2795
|
{ cascade: true }
|
|
2743
2796
|
)
|
|
2744
2797
|
], Interview.prototype, "interviewSkills", 2);
|
|
2745
2798
|
__decorateClass([
|
|
2746
|
-
(0,
|
|
2799
|
+
(0, import_typeorm19.OneToMany)(
|
|
2747
2800
|
() => InterviewQuestion,
|
|
2748
2801
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2749
2802
|
{ cascade: true }
|
|
2750
2803
|
)
|
|
2751
2804
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2752
2805
|
__decorateClass([
|
|
2753
|
-
(0,
|
|
2806
|
+
(0, import_typeorm19.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2754
2807
|
], Interview.prototype, "invites", 2);
|
|
2755
2808
|
__decorateClass([
|
|
2756
|
-
(0,
|
|
2809
|
+
(0, import_typeorm19.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2757
2810
|
], Interview.prototype, "aiInterviews", 2);
|
|
2758
2811
|
__decorateClass([
|
|
2759
|
-
(0,
|
|
2812
|
+
(0, import_typeorm19.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2760
2813
|
], Interview.prototype, "f2fInterviews", 2);
|
|
2761
2814
|
Interview = __decorateClass([
|
|
2762
|
-
(0,
|
|
2815
|
+
(0, import_typeorm19.Entity)("interviews")
|
|
2763
2816
|
], Interview);
|
|
2764
2817
|
|
|
2765
2818
|
// src/entities/job-recommendation.entity.ts
|
|
2766
|
-
var
|
|
2819
|
+
var import_typeorm20 = require("typeorm");
|
|
2767
2820
|
var JobRecommendation = class {
|
|
2768
2821
|
};
|
|
2769
2822
|
__decorateClass([
|
|
2770
|
-
(0,
|
|
2823
|
+
(0, import_typeorm20.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
2771
2824
|
], JobRecommendation.prototype, "id", 2);
|
|
2772
2825
|
__decorateClass([
|
|
2773
|
-
(0,
|
|
2774
|
-
(0,
|
|
2826
|
+
(0, import_typeorm20.Column)({ name: "job_id", type: "integer" }),
|
|
2827
|
+
(0, import_typeorm20.Index)()
|
|
2775
2828
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2776
2829
|
__decorateClass([
|
|
2777
|
-
(0,
|
|
2778
|
-
(0,
|
|
2830
|
+
(0, import_typeorm20.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2831
|
+
(0, import_typeorm20.JoinColumn)({ name: "job_id" })
|
|
2779
2832
|
], JobRecommendation.prototype, "job", 2);
|
|
2780
2833
|
__decorateClass([
|
|
2781
|
-
(0,
|
|
2782
|
-
(0,
|
|
2834
|
+
(0, import_typeorm20.Column)({ name: "freelancer_id", type: "integer" }),
|
|
2835
|
+
(0, import_typeorm20.Index)()
|
|
2783
2836
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2784
2837
|
__decorateClass([
|
|
2785
|
-
(0,
|
|
2786
|
-
(0,
|
|
2838
|
+
(0, import_typeorm20.Column)({ name: "client_id", type: "integer" }),
|
|
2839
|
+
(0, import_typeorm20.Index)()
|
|
2787
2840
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2788
2841
|
__decorateClass([
|
|
2789
|
-
(0,
|
|
2842
|
+
(0, import_typeorm20.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2790
2843
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2791
2844
|
__decorateClass([
|
|
2792
|
-
(0,
|
|
2845
|
+
(0, import_typeorm20.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2793
2846
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2794
2847
|
__decorateClass([
|
|
2795
|
-
(0,
|
|
2848
|
+
(0, import_typeorm20.Column)({
|
|
2796
2849
|
name: "last_calculated_at",
|
|
2797
2850
|
type: "timestamp with time zone",
|
|
2798
2851
|
nullable: true
|
|
2799
2852
|
})
|
|
2800
2853
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2801
2854
|
JobRecommendation = __decorateClass([
|
|
2802
|
-
(0,
|
|
2855
|
+
(0, import_typeorm20.Entity)("job_recommendations")
|
|
2803
2856
|
], JobRecommendation);
|
|
2804
2857
|
|
|
2805
2858
|
// src/entities/job.entity.ts
|
|
@@ -2839,49 +2892,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2839
2892
|
var Job = class extends BaseEntity {
|
|
2840
2893
|
};
|
|
2841
2894
|
__decorateClass([
|
|
2842
|
-
(0,
|
|
2895
|
+
(0, import_typeorm21.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2843
2896
|
], Job.prototype, "jobId", 2);
|
|
2844
2897
|
// individual index to find jobs by user
|
|
2845
2898
|
__decorateClass([
|
|
2846
|
-
(0,
|
|
2847
|
-
(0,
|
|
2899
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2900
|
+
(0, import_typeorm21.Index)()
|
|
2848
2901
|
], Job.prototype, "userId", 2);
|
|
2849
2902
|
__decorateClass([
|
|
2850
|
-
(0,
|
|
2851
|
-
(0,
|
|
2903
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.jobs),
|
|
2904
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2852
2905
|
], Job.prototype, "user", 2);
|
|
2853
2906
|
__decorateClass([
|
|
2854
|
-
(0,
|
|
2907
|
+
(0, import_typeorm21.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2855
2908
|
], Job.prototype, "countryId", 2);
|
|
2856
2909
|
__decorateClass([
|
|
2857
|
-
(0,
|
|
2858
|
-
(0,
|
|
2910
|
+
(0, import_typeorm21.ManyToOne)(() => Country),
|
|
2911
|
+
(0, import_typeorm21.JoinColumn)({ name: "country_id" })
|
|
2859
2912
|
], Job.prototype, "country", 2);
|
|
2860
2913
|
__decorateClass([
|
|
2861
|
-
(0,
|
|
2914
|
+
(0, import_typeorm21.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2862
2915
|
], Job.prototype, "stateId", 2);
|
|
2863
2916
|
__decorateClass([
|
|
2864
|
-
(0,
|
|
2865
|
-
(0,
|
|
2917
|
+
(0, import_typeorm21.ManyToOne)(() => State),
|
|
2918
|
+
(0, import_typeorm21.JoinColumn)({ name: "state_id" })
|
|
2866
2919
|
], Job.prototype, "state", 2);
|
|
2867
2920
|
__decorateClass([
|
|
2868
|
-
(0,
|
|
2921
|
+
(0, import_typeorm21.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2869
2922
|
], Job.prototype, "cityId", 2);
|
|
2870
2923
|
__decorateClass([
|
|
2871
|
-
(0,
|
|
2872
|
-
(0,
|
|
2924
|
+
(0, import_typeorm21.ManyToOne)(() => City),
|
|
2925
|
+
(0, import_typeorm21.JoinColumn)({ name: "city_id" })
|
|
2873
2926
|
], Job.prototype, "city", 2);
|
|
2874
2927
|
__decorateClass([
|
|
2875
|
-
(0,
|
|
2928
|
+
(0, import_typeorm21.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2876
2929
|
], Job.prototype, "jobRole", 2);
|
|
2877
2930
|
__decorateClass([
|
|
2878
|
-
(0,
|
|
2931
|
+
(0, import_typeorm21.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2879
2932
|
], Job.prototype, "note", 2);
|
|
2880
2933
|
__decorateClass([
|
|
2881
|
-
(0,
|
|
2934
|
+
(0, import_typeorm21.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2882
2935
|
], Job.prototype, "openings", 2);
|
|
2883
2936
|
__decorateClass([
|
|
2884
|
-
(0,
|
|
2937
|
+
(0, import_typeorm21.Column)({
|
|
2885
2938
|
name: "location",
|
|
2886
2939
|
type: "enum",
|
|
2887
2940
|
enum: JobLocationEnum,
|
|
@@ -2889,7 +2942,7 @@ __decorateClass([
|
|
|
2889
2942
|
})
|
|
2890
2943
|
], Job.prototype, "location", 2);
|
|
2891
2944
|
__decorateClass([
|
|
2892
|
-
(0,
|
|
2945
|
+
(0, import_typeorm21.Column)({
|
|
2893
2946
|
name: "type_of_employment",
|
|
2894
2947
|
type: "enum",
|
|
2895
2948
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2897,19 +2950,19 @@ __decorateClass([
|
|
|
2897
2950
|
})
|
|
2898
2951
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2899
2952
|
__decorateClass([
|
|
2900
|
-
(0,
|
|
2953
|
+
(0, import_typeorm21.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2901
2954
|
], Job.prototype, "academicQualification", 2);
|
|
2902
2955
|
__decorateClass([
|
|
2903
|
-
(0,
|
|
2956
|
+
(0, import_typeorm21.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2904
2957
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2905
2958
|
__decorateClass([
|
|
2906
|
-
(0,
|
|
2959
|
+
(0, import_typeorm21.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2907
2960
|
], Job.prototype, "businessIndustry", 2);
|
|
2908
2961
|
__decorateClass([
|
|
2909
|
-
(0,
|
|
2962
|
+
(0, import_typeorm21.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2910
2963
|
], Job.prototype, "currency", 2);
|
|
2911
2964
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
2965
|
+
(0, import_typeorm21.Column)({
|
|
2913
2966
|
name: "expected_salary_from",
|
|
2914
2967
|
type: "decimal",
|
|
2915
2968
|
precision: 10,
|
|
@@ -2918,7 +2971,7 @@ __decorateClass([
|
|
|
2918
2971
|
})
|
|
2919
2972
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2920
2973
|
__decorateClass([
|
|
2921
|
-
(0,
|
|
2974
|
+
(0, import_typeorm21.Column)({
|
|
2922
2975
|
name: "expected_salary_to",
|
|
2923
2976
|
type: "decimal",
|
|
2924
2977
|
precision: 10,
|
|
@@ -2927,16 +2980,16 @@ __decorateClass([
|
|
|
2927
2980
|
})
|
|
2928
2981
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2929
2982
|
__decorateClass([
|
|
2930
|
-
(0,
|
|
2983
|
+
(0, import_typeorm21.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2931
2984
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2932
2985
|
__decorateClass([
|
|
2933
|
-
(0,
|
|
2986
|
+
(0, import_typeorm21.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2934
2987
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2935
2988
|
__decorateClass([
|
|
2936
|
-
(0,
|
|
2989
|
+
(0, import_typeorm21.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2937
2990
|
], Job.prototype, "duration", 2);
|
|
2938
2991
|
__decorateClass([
|
|
2939
|
-
(0,
|
|
2992
|
+
(0, import_typeorm21.Column)({
|
|
2940
2993
|
name: "duration_type",
|
|
2941
2994
|
type: "enum",
|
|
2942
2995
|
enum: DurationTypeEnum,
|
|
@@ -2944,13 +2997,13 @@ __decorateClass([
|
|
|
2944
2997
|
})
|
|
2945
2998
|
], Job.prototype, "durationType", 2);
|
|
2946
2999
|
__decorateClass([
|
|
2947
|
-
(0,
|
|
3000
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2948
3001
|
], Job.prototype, "description", 2);
|
|
2949
3002
|
__decorateClass([
|
|
2950
|
-
(0,
|
|
3003
|
+
(0, import_typeorm21.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2951
3004
|
], Job.prototype, "additionalComment", 2);
|
|
2952
3005
|
__decorateClass([
|
|
2953
|
-
(0,
|
|
3006
|
+
(0, import_typeorm21.Column)({
|
|
2954
3007
|
name: "onboarding_tat",
|
|
2955
3008
|
type: "varchar",
|
|
2956
3009
|
length: 50,
|
|
@@ -2958,14 +3011,14 @@ __decorateClass([
|
|
|
2958
3011
|
})
|
|
2959
3012
|
], Job.prototype, "onboardingTat", 2);
|
|
2960
3013
|
__decorateClass([
|
|
2961
|
-
(0,
|
|
3014
|
+
(0, import_typeorm21.Column)({
|
|
2962
3015
|
name: "candidate_communication_skills",
|
|
2963
3016
|
type: "varchar",
|
|
2964
3017
|
nullable: true
|
|
2965
3018
|
})
|
|
2966
3019
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2967
3020
|
__decorateClass([
|
|
2968
|
-
(0,
|
|
3021
|
+
(0, import_typeorm21.Column)({
|
|
2969
3022
|
name: "step_completed",
|
|
2970
3023
|
type: "enum",
|
|
2971
3024
|
enum: Step,
|
|
@@ -2973,7 +3026,7 @@ __decorateClass([
|
|
|
2973
3026
|
})
|
|
2974
3027
|
], Job.prototype, "stepCompleted", 2);
|
|
2975
3028
|
__decorateClass([
|
|
2976
|
-
(0,
|
|
3029
|
+
(0, import_typeorm21.Column)({
|
|
2977
3030
|
name: "status",
|
|
2978
3031
|
type: "enum",
|
|
2979
3032
|
enum: JobStatusEnum,
|
|
@@ -2981,35 +3034,35 @@ __decorateClass([
|
|
|
2981
3034
|
})
|
|
2982
3035
|
], Job.prototype, "status", 2);
|
|
2983
3036
|
__decorateClass([
|
|
2984
|
-
(0,
|
|
3037
|
+
(0, import_typeorm21.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2985
3038
|
], Job.prototype, "viewedCount", 2);
|
|
2986
3039
|
__decorateClass([
|
|
2987
|
-
(0,
|
|
3040
|
+
(0, import_typeorm21.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2988
3041
|
], Job.prototype, "applicationCount", 2);
|
|
2989
3042
|
__decorateClass([
|
|
2990
|
-
(0,
|
|
3043
|
+
(0, import_typeorm21.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2991
3044
|
], Job.prototype, "jobSkills", 2);
|
|
2992
3045
|
__decorateClass([
|
|
2993
|
-
(0,
|
|
3046
|
+
(0, import_typeorm21.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2994
3047
|
cascade: true
|
|
2995
3048
|
})
|
|
2996
3049
|
], Job.prototype, "jobApplications", 2);
|
|
2997
3050
|
__decorateClass([
|
|
2998
|
-
(0,
|
|
3051
|
+
(0, import_typeorm21.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2999
3052
|
cascade: true
|
|
3000
3053
|
})
|
|
3001
3054
|
], Job.prototype, "interviews", 2);
|
|
3002
3055
|
__decorateClass([
|
|
3003
|
-
(0,
|
|
3056
|
+
(0, import_typeorm21.OneToMany)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
3004
3057
|
cascade: true
|
|
3005
3058
|
})
|
|
3006
3059
|
], Job.prototype, "recommendations", 2);
|
|
3007
3060
|
Job = __decorateClass([
|
|
3008
|
-
(0,
|
|
3061
|
+
(0, import_typeorm21.Entity)("jobs")
|
|
3009
3062
|
], Job);
|
|
3010
3063
|
|
|
3011
3064
|
// src/entities/bank-details.entity.ts
|
|
3012
|
-
var
|
|
3065
|
+
var import_typeorm22 = require("typeorm");
|
|
3013
3066
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3014
3067
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
3015
3068
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -3024,48 +3077,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
3024
3077
|
};
|
|
3025
3078
|
// individual index to find bank details by user
|
|
3026
3079
|
__decorateClass([
|
|
3027
|
-
(0,
|
|
3028
|
-
(0,
|
|
3080
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3081
|
+
(0, import_typeorm22.Index)()
|
|
3029
3082
|
], BankDetail.prototype, "userId", 2);
|
|
3030
3083
|
__decorateClass([
|
|
3031
|
-
(0,
|
|
3032
|
-
(0,
|
|
3084
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
3085
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
3033
3086
|
], BankDetail.prototype, "user", 2);
|
|
3034
3087
|
__decorateClass([
|
|
3035
|
-
(0,
|
|
3088
|
+
(0, import_typeorm22.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3036
3089
|
], BankDetail.prototype, "name", 2);
|
|
3037
3090
|
__decorateClass([
|
|
3038
|
-
(0,
|
|
3091
|
+
(0, import_typeorm22.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3039
3092
|
], BankDetail.prototype, "mobile", 2);
|
|
3040
3093
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3094
|
+
(0, import_typeorm22.Column)({ name: "email", type: "varchar", unique: true })
|
|
3042
3095
|
], BankDetail.prototype, "email", 2);
|
|
3043
3096
|
__decorateClass([
|
|
3044
|
-
(0,
|
|
3097
|
+
(0, import_typeorm22.Column)({ name: "address", type: "varchar", nullable: true })
|
|
3045
3098
|
], BankDetail.prototype, "address", 2);
|
|
3046
3099
|
__decorateClass([
|
|
3047
|
-
(0,
|
|
3100
|
+
(0, import_typeorm22.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3048
3101
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3049
3102
|
__decorateClass([
|
|
3050
|
-
(0,
|
|
3103
|
+
(0, import_typeorm22.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
3051
3104
|
], BankDetail.prototype, "bankName", 2);
|
|
3052
3105
|
__decorateClass([
|
|
3053
|
-
(0,
|
|
3106
|
+
(0, import_typeorm22.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3054
3107
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3055
3108
|
__decorateClass([
|
|
3056
|
-
(0,
|
|
3109
|
+
(0, import_typeorm22.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
3057
3110
|
], BankDetail.prototype, "branchName", 2);
|
|
3058
3111
|
__decorateClass([
|
|
3059
|
-
(0,
|
|
3112
|
+
(0, import_typeorm22.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
3060
3113
|
], BankDetail.prototype, "routingNo", 2);
|
|
3061
3114
|
__decorateClass([
|
|
3062
|
-
(0,
|
|
3115
|
+
(0, import_typeorm22.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
3063
3116
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3064
3117
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3118
|
+
(0, import_typeorm22.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
3066
3119
|
], BankDetail.prototype, "iban", 2);
|
|
3067
3120
|
__decorateClass([
|
|
3068
|
-
(0,
|
|
3121
|
+
(0, import_typeorm22.Column)({
|
|
3069
3122
|
name: "account_type",
|
|
3070
3123
|
type: "enum",
|
|
3071
3124
|
enum: BankAccountTypeEnum,
|
|
@@ -3073,7 +3126,7 @@ __decorateClass([
|
|
|
3073
3126
|
})
|
|
3074
3127
|
], BankDetail.prototype, "accountType", 2);
|
|
3075
3128
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3129
|
+
(0, import_typeorm22.Column)({
|
|
3077
3130
|
name: "account_scope",
|
|
3078
3131
|
type: "enum",
|
|
3079
3132
|
enum: BankAccountScopeEnum,
|
|
@@ -3081,210 +3134,210 @@ __decorateClass([
|
|
|
3081
3134
|
})
|
|
3082
3135
|
], BankDetail.prototype, "accountScope", 2);
|
|
3083
3136
|
BankDetail = __decorateClass([
|
|
3084
|
-
(0,
|
|
3137
|
+
(0, import_typeorm22.Entity)("bank_details")
|
|
3085
3138
|
], BankDetail);
|
|
3086
3139
|
|
|
3087
3140
|
// src/entities/system-preference.entity.ts
|
|
3088
|
-
var
|
|
3141
|
+
var import_typeorm23 = require("typeorm");
|
|
3089
3142
|
var SystemPreference = class extends BaseEntity {
|
|
3090
3143
|
};
|
|
3091
3144
|
// individual index to find system preference by user
|
|
3092
3145
|
__decorateClass([
|
|
3093
|
-
(0,
|
|
3094
|
-
(0,
|
|
3146
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3147
|
+
(0, import_typeorm23.Index)()
|
|
3095
3148
|
], SystemPreference.prototype, "userId", 2);
|
|
3096
3149
|
__decorateClass([
|
|
3097
|
-
(0,
|
|
3098
|
-
(0,
|
|
3150
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
3151
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
3099
3152
|
], SystemPreference.prototype, "user", 2);
|
|
3100
3153
|
__decorateClass([
|
|
3101
|
-
(0,
|
|
3154
|
+
(0, import_typeorm23.Column)({ name: "key", type: "varchar", nullable: false })
|
|
3102
3155
|
], SystemPreference.prototype, "key", 2);
|
|
3103
3156
|
__decorateClass([
|
|
3104
|
-
(0,
|
|
3157
|
+
(0, import_typeorm23.Column)({ name: "value", type: "boolean", default: false })
|
|
3105
3158
|
], SystemPreference.prototype, "value", 2);
|
|
3106
3159
|
SystemPreference = __decorateClass([
|
|
3107
|
-
(0,
|
|
3160
|
+
(0, import_typeorm23.Entity)("system_preferences")
|
|
3108
3161
|
], SystemPreference);
|
|
3109
3162
|
|
|
3110
3163
|
// src/entities/freelancer-experience.entity.ts
|
|
3111
|
-
var
|
|
3164
|
+
var import_typeorm24 = require("typeorm");
|
|
3112
3165
|
var FreelancerExperience = class extends BaseEntity {
|
|
3113
3166
|
};
|
|
3114
3167
|
// individual index to find experence by user
|
|
3115
3168
|
__decorateClass([
|
|
3116
|
-
(0,
|
|
3117
|
-
(0,
|
|
3169
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3170
|
+
(0, import_typeorm24.Index)()
|
|
3118
3171
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3119
3172
|
__decorateClass([
|
|
3120
|
-
(0,
|
|
3121
|
-
(0,
|
|
3173
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
3174
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
3122
3175
|
], FreelancerExperience.prototype, "user", 2);
|
|
3123
3176
|
__decorateClass([
|
|
3124
|
-
(0,
|
|
3177
|
+
(0, import_typeorm24.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
3125
3178
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3126
3179
|
__decorateClass([
|
|
3127
|
-
(0,
|
|
3180
|
+
(0, import_typeorm24.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
3128
3181
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3129
3182
|
__decorateClass([
|
|
3130
|
-
(0,
|
|
3183
|
+
(0, import_typeorm24.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
3131
3184
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3132
3185
|
__decorateClass([
|
|
3133
|
-
(0,
|
|
3186
|
+
(0, import_typeorm24.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3134
3187
|
], FreelancerExperience.prototype, "description", 2);
|
|
3135
3188
|
FreelancerExperience = __decorateClass([
|
|
3136
|
-
(0,
|
|
3189
|
+
(0, import_typeorm24.Entity)("freelancer_experiences")
|
|
3137
3190
|
], FreelancerExperience);
|
|
3138
3191
|
|
|
3139
3192
|
// src/entities/freelancer-education.entity.ts
|
|
3140
|
-
var
|
|
3193
|
+
var import_typeorm25 = require("typeorm");
|
|
3141
3194
|
var FreelancerEducation = class extends BaseEntity {
|
|
3142
3195
|
};
|
|
3143
3196
|
// individual index to find education by user
|
|
3144
3197
|
__decorateClass([
|
|
3145
|
-
(0,
|
|
3146
|
-
(0,
|
|
3198
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3199
|
+
(0, import_typeorm25.Index)()
|
|
3147
3200
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3148
3201
|
__decorateClass([
|
|
3149
|
-
(0,
|
|
3150
|
-
(0,
|
|
3202
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
3203
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
3151
3204
|
], FreelancerEducation.prototype, "user", 2);
|
|
3152
3205
|
__decorateClass([
|
|
3153
|
-
(0,
|
|
3206
|
+
(0, import_typeorm25.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
3154
3207
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3155
3208
|
__decorateClass([
|
|
3156
|
-
(0,
|
|
3209
|
+
(0, import_typeorm25.Column)({ name: "university", type: "varchar", nullable: true })
|
|
3157
3210
|
], FreelancerEducation.prototype, "university", 2);
|
|
3158
3211
|
__decorateClass([
|
|
3159
|
-
(0,
|
|
3212
|
+
(0, import_typeorm25.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3160
3213
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3161
3214
|
FreelancerEducation = __decorateClass([
|
|
3162
|
-
(0,
|
|
3215
|
+
(0, import_typeorm25.Entity)("freelancer_educations")
|
|
3163
3216
|
], FreelancerEducation);
|
|
3164
3217
|
|
|
3165
3218
|
// src/entities/freelancer-project.entity.ts
|
|
3166
|
-
var
|
|
3219
|
+
var import_typeorm26 = require("typeorm");
|
|
3167
3220
|
var FreelancerProject = class extends BaseEntity {
|
|
3168
3221
|
};
|
|
3169
3222
|
// individual index to find project by user
|
|
3170
3223
|
__decorateClass([
|
|
3171
|
-
(0,
|
|
3172
|
-
(0,
|
|
3224
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3225
|
+
(0, import_typeorm26.Index)()
|
|
3173
3226
|
], FreelancerProject.prototype, "userId", 2);
|
|
3174
3227
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3176
|
-
(0,
|
|
3228
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
3229
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
3177
3230
|
], FreelancerProject.prototype, "user", 2);
|
|
3178
3231
|
__decorateClass([
|
|
3179
|
-
(0,
|
|
3232
|
+
(0, import_typeorm26.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3180
3233
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3181
3234
|
__decorateClass([
|
|
3182
|
-
(0,
|
|
3235
|
+
(0, import_typeorm26.Column)({ name: "start_date", type: "date", nullable: true })
|
|
3183
3236
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3184
3237
|
__decorateClass([
|
|
3185
|
-
(0,
|
|
3238
|
+
(0, import_typeorm26.Column)({ name: "end_date", type: "date", nullable: true })
|
|
3186
3239
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3187
3240
|
__decorateClass([
|
|
3188
|
-
(0,
|
|
3241
|
+
(0, import_typeorm26.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
3189
3242
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3190
3243
|
__decorateClass([
|
|
3191
|
-
(0,
|
|
3244
|
+
(0, import_typeorm26.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
3192
3245
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3193
3246
|
__decorateClass([
|
|
3194
|
-
(0,
|
|
3247
|
+
(0, import_typeorm26.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3195
3248
|
], FreelancerProject.prototype, "description", 2);
|
|
3196
3249
|
FreelancerProject = __decorateClass([
|
|
3197
|
-
(0,
|
|
3250
|
+
(0, import_typeorm26.Entity)("freelancer_projects")
|
|
3198
3251
|
], FreelancerProject);
|
|
3199
3252
|
|
|
3200
3253
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3201
|
-
var
|
|
3254
|
+
var import_typeorm27 = require("typeorm");
|
|
3202
3255
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3203
3256
|
};
|
|
3204
3257
|
// individual index to find case study by user
|
|
3205
3258
|
__decorateClass([
|
|
3206
|
-
(0,
|
|
3207
|
-
(0,
|
|
3259
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3260
|
+
(0, import_typeorm27.Index)()
|
|
3208
3261
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3209
3262
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3211
|
-
(0,
|
|
3263
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
3264
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
3212
3265
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3213
3266
|
__decorateClass([
|
|
3214
|
-
(0,
|
|
3267
|
+
(0, import_typeorm27.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3215
3268
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3216
3269
|
__decorateClass([
|
|
3217
|
-
(0,
|
|
3270
|
+
(0, import_typeorm27.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3218
3271
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3219
3272
|
__decorateClass([
|
|
3220
|
-
(0,
|
|
3273
|
+
(0, import_typeorm27.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3221
3274
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3222
3275
|
FreelancerCaseStudy = __decorateClass([
|
|
3223
|
-
(0,
|
|
3276
|
+
(0, import_typeorm27.Entity)("freelancer_case_studies")
|
|
3224
3277
|
], FreelancerCaseStudy);
|
|
3225
3278
|
|
|
3226
3279
|
// src/entities/freelancer-skill.entity.ts
|
|
3227
|
-
var
|
|
3280
|
+
var import_typeorm28 = require("typeorm");
|
|
3228
3281
|
var FreelancerSkill = class extends BaseEntity {
|
|
3229
3282
|
};
|
|
3230
3283
|
// individual index to find core skills by user
|
|
3231
3284
|
__decorateClass([
|
|
3232
|
-
(0,
|
|
3233
|
-
(0,
|
|
3285
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3286
|
+
(0, import_typeorm28.Index)()
|
|
3234
3287
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3235
3288
|
__decorateClass([
|
|
3236
|
-
(0,
|
|
3237
|
-
(0,
|
|
3289
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3290
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
3238
3291
|
], FreelancerSkill.prototype, "user", 2);
|
|
3239
3292
|
__decorateClass([
|
|
3240
|
-
(0,
|
|
3293
|
+
(0, import_typeorm28.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3241
3294
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3242
3295
|
FreelancerSkill = __decorateClass([
|
|
3243
|
-
(0,
|
|
3296
|
+
(0, import_typeorm28.Entity)("freelancer_skills")
|
|
3244
3297
|
], FreelancerSkill);
|
|
3245
3298
|
|
|
3246
3299
|
// src/entities/freelancer-tool.entity.ts
|
|
3247
|
-
var
|
|
3300
|
+
var import_typeorm29 = require("typeorm");
|
|
3248
3301
|
var FreelancerTool = class extends BaseEntity {
|
|
3249
3302
|
};
|
|
3250
3303
|
// individual index to find tool by user
|
|
3251
3304
|
__decorateClass([
|
|
3252
|
-
(0,
|
|
3253
|
-
(0,
|
|
3305
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3306
|
+
(0, import_typeorm29.Index)()
|
|
3254
3307
|
], FreelancerTool.prototype, "userId", 2);
|
|
3255
3308
|
__decorateClass([
|
|
3256
|
-
(0,
|
|
3257
|
-
(0,
|
|
3309
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
3310
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
3258
3311
|
], FreelancerTool.prototype, "user", 2);
|
|
3259
3312
|
__decorateClass([
|
|
3260
|
-
(0,
|
|
3313
|
+
(0, import_typeorm29.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
3261
3314
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3262
3315
|
FreelancerTool = __decorateClass([
|
|
3263
|
-
(0,
|
|
3316
|
+
(0, import_typeorm29.Entity)("freelancer_tools")
|
|
3264
3317
|
], FreelancerTool);
|
|
3265
3318
|
|
|
3266
3319
|
// src/entities/freelancer-framework.entity.ts
|
|
3267
|
-
var
|
|
3320
|
+
var import_typeorm30 = require("typeorm");
|
|
3268
3321
|
var FreelancerFramework = class extends BaseEntity {
|
|
3269
3322
|
};
|
|
3270
3323
|
// individual index to find framework by user
|
|
3271
3324
|
__decorateClass([
|
|
3272
|
-
(0,
|
|
3273
|
-
(0,
|
|
3325
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3326
|
+
(0, import_typeorm30.Index)()
|
|
3274
3327
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3275
3328
|
__decorateClass([
|
|
3276
|
-
(0,
|
|
3277
|
-
(0,
|
|
3329
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3330
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3278
3331
|
], FreelancerFramework.prototype, "user", 2);
|
|
3279
3332
|
__decorateClass([
|
|
3280
|
-
(0,
|
|
3333
|
+
(0, import_typeorm30.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
3281
3334
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3282
3335
|
FreelancerFramework = __decorateClass([
|
|
3283
|
-
(0,
|
|
3336
|
+
(0, import_typeorm30.Entity)("freelancer_frameworks")
|
|
3284
3337
|
], FreelancerFramework);
|
|
3285
3338
|
|
|
3286
3339
|
// src/entities/freelancer-assessment.entity.ts
|
|
3287
|
-
var
|
|
3340
|
+
var import_typeorm31 = require("typeorm");
|
|
3288
3341
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3289
3342
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
3290
3343
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -3300,30 +3353,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3300
3353
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3301
3354
|
};
|
|
3302
3355
|
__decorateClass([
|
|
3303
|
-
(0,
|
|
3304
|
-
(0,
|
|
3356
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3357
|
+
(0, import_typeorm31.Index)()
|
|
3305
3358
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3306
3359
|
__decorateClass([
|
|
3307
|
-
(0,
|
|
3308
|
-
(0,
|
|
3360
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.assessments),
|
|
3361
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3309
3362
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3310
3363
|
__decorateClass([
|
|
3311
|
-
(0,
|
|
3364
|
+
(0, import_typeorm31.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
3312
3365
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3313
3366
|
__decorateClass([
|
|
3314
|
-
(0,
|
|
3367
|
+
(0, import_typeorm31.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
3315
3368
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3316
3369
|
__decorateClass([
|
|
3317
|
-
(0,
|
|
3370
|
+
(0, import_typeorm31.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
3318
3371
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3319
3372
|
__decorateClass([
|
|
3320
|
-
(0,
|
|
3373
|
+
(0, import_typeorm31.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3321
3374
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3322
3375
|
__decorateClass([
|
|
3323
|
-
(0,
|
|
3376
|
+
(0, import_typeorm31.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3324
3377
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3325
3378
|
__decorateClass([
|
|
3326
|
-
(0,
|
|
3379
|
+
(0, import_typeorm31.Column)({
|
|
3327
3380
|
name: "status",
|
|
3328
3381
|
type: "enum",
|
|
3329
3382
|
enum: AssessmentStatusEnum,
|
|
@@ -3331,11 +3384,11 @@ __decorateClass([
|
|
|
3331
3384
|
})
|
|
3332
3385
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3333
3386
|
FreelancerAssessment = __decorateClass([
|
|
3334
|
-
(0,
|
|
3387
|
+
(0, import_typeorm31.Entity)("freelancer_assessments")
|
|
3335
3388
|
], FreelancerAssessment);
|
|
3336
3389
|
|
|
3337
3390
|
// src/entities/freelancer-declaration.entity.ts
|
|
3338
|
-
var
|
|
3391
|
+
var import_typeorm32 = require("typeorm");
|
|
3339
3392
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3340
3393
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3341
3394
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3347,15 +3400,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3347
3400
|
};
|
|
3348
3401
|
// individual index to find declaration by user
|
|
3349
3402
|
__decorateClass([
|
|
3350
|
-
(0,
|
|
3351
|
-
(0,
|
|
3403
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3404
|
+
(0, import_typeorm32.Index)()
|
|
3352
3405
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3353
3406
|
__decorateClass([
|
|
3354
|
-
(0,
|
|
3355
|
-
(0,
|
|
3407
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3408
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
3356
3409
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3357
3410
|
__decorateClass([
|
|
3358
|
-
(0,
|
|
3411
|
+
(0, import_typeorm32.Column)({
|
|
3359
3412
|
name: "document_type",
|
|
3360
3413
|
type: "enum",
|
|
3361
3414
|
enum: DocumentType,
|
|
@@ -3363,144 +3416,144 @@ __decorateClass([
|
|
|
3363
3416
|
})
|
|
3364
3417
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3365
3418
|
__decorateClass([
|
|
3366
|
-
(0,
|
|
3419
|
+
(0, import_typeorm32.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3367
3420
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3368
3421
|
__decorateClass([
|
|
3369
|
-
(0,
|
|
3422
|
+
(0, import_typeorm32.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3370
3423
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3371
3424
|
__decorateClass([
|
|
3372
|
-
(0,
|
|
3425
|
+
(0, import_typeorm32.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3373
3426
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3374
3427
|
__decorateClass([
|
|
3375
|
-
(0,
|
|
3428
|
+
(0, import_typeorm32.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3376
3429
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3377
3430
|
FreelancerDeclaration = __decorateClass([
|
|
3378
|
-
(0,
|
|
3431
|
+
(0, import_typeorm32.Entity)("freelancer_declaration")
|
|
3379
3432
|
], FreelancerDeclaration);
|
|
3380
3433
|
|
|
3381
3434
|
// src/entities/company-members-roles.entity.ts
|
|
3382
|
-
var
|
|
3435
|
+
var import_typeorm36 = require("typeorm");
|
|
3383
3436
|
|
|
3384
3437
|
// src/entities/company-role.entity.ts
|
|
3385
|
-
var
|
|
3438
|
+
var import_typeorm35 = require("typeorm");
|
|
3386
3439
|
|
|
3387
3440
|
// src/entities/company-role-permission.entity.ts
|
|
3388
|
-
var
|
|
3441
|
+
var import_typeorm34 = require("typeorm");
|
|
3389
3442
|
|
|
3390
3443
|
// src/entities/permission.entity.ts
|
|
3391
|
-
var
|
|
3444
|
+
var import_typeorm33 = require("typeorm");
|
|
3392
3445
|
var Permission = class extends BaseEntity {
|
|
3393
3446
|
};
|
|
3394
3447
|
__decorateClass([
|
|
3395
|
-
(0,
|
|
3448
|
+
(0, import_typeorm33.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3396
3449
|
], Permission.prototype, "name", 2);
|
|
3397
3450
|
__decorateClass([
|
|
3398
|
-
(0,
|
|
3399
|
-
(0,
|
|
3451
|
+
(0, import_typeorm33.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3452
|
+
(0, import_typeorm33.Index)()
|
|
3400
3453
|
], Permission.prototype, "slug", 2);
|
|
3401
3454
|
__decorateClass([
|
|
3402
|
-
(0,
|
|
3455
|
+
(0, import_typeorm33.Column)({ name: "description", type: "text", nullable: true })
|
|
3403
3456
|
], Permission.prototype, "description", 2);
|
|
3404
3457
|
__decorateClass([
|
|
3405
|
-
(0,
|
|
3458
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3406
3459
|
], Permission.prototype, "isActive", 2);
|
|
3407
3460
|
Permission = __decorateClass([
|
|
3408
|
-
(0,
|
|
3461
|
+
(0, import_typeorm33.Entity)("permissions")
|
|
3409
3462
|
], Permission);
|
|
3410
3463
|
|
|
3411
3464
|
// src/entities/company-role-permission.entity.ts
|
|
3412
3465
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3413
3466
|
};
|
|
3414
3467
|
__decorateClass([
|
|
3415
|
-
(0,
|
|
3416
|
-
(0,
|
|
3468
|
+
(0, import_typeorm34.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3469
|
+
(0, import_typeorm34.Index)()
|
|
3417
3470
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3418
3471
|
__decorateClass([
|
|
3419
|
-
(0,
|
|
3472
|
+
(0, import_typeorm34.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3420
3473
|
onDelete: "CASCADE"
|
|
3421
3474
|
}),
|
|
3422
|
-
(0,
|
|
3475
|
+
(0, import_typeorm34.JoinColumn)({ name: "company_role_id" })
|
|
3423
3476
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3424
3477
|
__decorateClass([
|
|
3425
|
-
(0,
|
|
3426
|
-
(0,
|
|
3478
|
+
(0, import_typeorm34.Column)({ name: "permission_id", type: "integer" }),
|
|
3479
|
+
(0, import_typeorm34.Index)()
|
|
3427
3480
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3428
3481
|
__decorateClass([
|
|
3429
|
-
(0,
|
|
3430
|
-
(0,
|
|
3482
|
+
(0, import_typeorm34.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3483
|
+
(0, import_typeorm34.JoinColumn)({ name: "permission_id" })
|
|
3431
3484
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3432
3485
|
__decorateClass([
|
|
3433
|
-
(0,
|
|
3486
|
+
(0, import_typeorm34.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3434
3487
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3435
3488
|
CompanyRolePermission = __decorateClass([
|
|
3436
|
-
(0,
|
|
3489
|
+
(0, import_typeorm34.Entity)("company_role_permissions")
|
|
3437
3490
|
], CompanyRolePermission);
|
|
3438
3491
|
|
|
3439
3492
|
// src/entities/company-role.entity.ts
|
|
3440
3493
|
var CompanyRole = class extends BaseEntity {
|
|
3441
3494
|
};
|
|
3442
3495
|
__decorateClass([
|
|
3443
|
-
(0,
|
|
3444
|
-
(0,
|
|
3496
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3497
|
+
(0, import_typeorm35.Index)()
|
|
3445
3498
|
], CompanyRole.prototype, "userId", 2);
|
|
3446
3499
|
__decorateClass([
|
|
3447
|
-
(0,
|
|
3448
|
-
(0,
|
|
3500
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.otps),
|
|
3501
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3449
3502
|
], CompanyRole.prototype, "user", 2);
|
|
3450
3503
|
__decorateClass([
|
|
3451
|
-
(0,
|
|
3504
|
+
(0, import_typeorm35.Column)({ name: "name", type: "varchar" })
|
|
3452
3505
|
], CompanyRole.prototype, "name", 2);
|
|
3453
3506
|
__decorateClass([
|
|
3454
|
-
(0,
|
|
3455
|
-
(0,
|
|
3507
|
+
(0, import_typeorm35.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3508
|
+
(0, import_typeorm35.Index)()
|
|
3456
3509
|
], CompanyRole.prototype, "slug", 2);
|
|
3457
3510
|
__decorateClass([
|
|
3458
|
-
(0,
|
|
3511
|
+
(0, import_typeorm35.Column)({ name: "description", type: "text", nullable: true })
|
|
3459
3512
|
], CompanyRole.prototype, "description", 2);
|
|
3460
3513
|
__decorateClass([
|
|
3461
|
-
(0,
|
|
3514
|
+
(0, import_typeorm35.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3462
3515
|
], CompanyRole.prototype, "isActive", 2);
|
|
3463
3516
|
__decorateClass([
|
|
3464
|
-
(0,
|
|
3517
|
+
(0, import_typeorm35.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3465
3518
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3466
3519
|
CompanyRole = __decorateClass([
|
|
3467
|
-
(0,
|
|
3520
|
+
(0, import_typeorm35.Entity)("company_roles")
|
|
3468
3521
|
], CompanyRole);
|
|
3469
3522
|
|
|
3470
3523
|
// src/entities/company-members-roles.entity.ts
|
|
3471
3524
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3472
3525
|
};
|
|
3473
3526
|
__decorateClass([
|
|
3474
|
-
(0,
|
|
3475
|
-
(0,
|
|
3527
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3528
|
+
(0, import_typeorm36.Index)()
|
|
3476
3529
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3477
3530
|
__decorateClass([
|
|
3478
|
-
(0,
|
|
3479
|
-
(0,
|
|
3531
|
+
(0, import_typeorm36.ManyToOne)(() => User),
|
|
3532
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
3480
3533
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3481
3534
|
__decorateClass([
|
|
3482
|
-
(0,
|
|
3483
|
-
(0,
|
|
3535
|
+
(0, import_typeorm36.ManyToOne)(() => CompanyRole),
|
|
3536
|
+
(0, import_typeorm36.JoinColumn)({ name: "company_role_id" })
|
|
3484
3537
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3485
3538
|
__decorateClass([
|
|
3486
|
-
(0,
|
|
3487
|
-
(0,
|
|
3539
|
+
(0, import_typeorm36.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3540
|
+
(0, import_typeorm36.Index)()
|
|
3488
3541
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3489
3542
|
__decorateClass([
|
|
3490
|
-
(0,
|
|
3543
|
+
(0, import_typeorm36.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3491
3544
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3492
3545
|
CompanyMemberRole = __decorateClass([
|
|
3493
|
-
(0,
|
|
3546
|
+
(0, import_typeorm36.Entity)("company_member_roles")
|
|
3494
3547
|
], CompanyMemberRole);
|
|
3495
3548
|
|
|
3496
3549
|
// src/entities/assessment-answer.entity.ts
|
|
3497
|
-
var
|
|
3550
|
+
var import_typeorm39 = require("typeorm");
|
|
3498
3551
|
|
|
3499
3552
|
// src/entities/assessment-question.entity.ts
|
|
3500
|
-
var
|
|
3553
|
+
var import_typeorm38 = require("typeorm");
|
|
3501
3554
|
|
|
3502
3555
|
// src/entities/assessment-question-option.entity.ts
|
|
3503
|
-
var
|
|
3556
|
+
var import_typeorm37 = require("typeorm");
|
|
3504
3557
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3505
3558
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3506
3559
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3510,21 +3563,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3510
3563
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3511
3564
|
};
|
|
3512
3565
|
__decorateClass([
|
|
3513
|
-
(0,
|
|
3514
|
-
(0,
|
|
3566
|
+
(0, import_typeorm37.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3567
|
+
(0, import_typeorm37.Index)()
|
|
3515
3568
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3516
3569
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3570
|
+
(0, import_typeorm37.ManyToOne)(
|
|
3518
3571
|
() => AssessmetQuestion,
|
|
3519
3572
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3520
3573
|
),
|
|
3521
|
-
(0,
|
|
3574
|
+
(0, import_typeorm37.JoinColumn)({ name: "question_id" })
|
|
3522
3575
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3523
3576
|
__decorateClass([
|
|
3524
|
-
(0,
|
|
3577
|
+
(0, import_typeorm37.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3525
3578
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3526
3579
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3580
|
+
(0, import_typeorm37.Column)({
|
|
3528
3581
|
name: "answer_type",
|
|
3529
3582
|
type: "enum",
|
|
3530
3583
|
enum: AnswerTypeEnum,
|
|
@@ -3532,13 +3585,13 @@ __decorateClass([
|
|
|
3532
3585
|
})
|
|
3533
3586
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3534
3587
|
__decorateClass([
|
|
3535
|
-
(0,
|
|
3588
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3536
3589
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3537
3590
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3591
|
+
(0, import_typeorm37.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3539
3592
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3540
3593
|
AssessmetQuestionOption = __decorateClass([
|
|
3541
|
-
(0,
|
|
3594
|
+
(0, import_typeorm37.Entity)("assessment_question_options")
|
|
3542
3595
|
], AssessmetQuestionOption);
|
|
3543
3596
|
|
|
3544
3597
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3550,10 +3603,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3550
3603
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3551
3604
|
};
|
|
3552
3605
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3606
|
+
(0, import_typeorm38.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3554
3607
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3555
3608
|
__decorateClass([
|
|
3556
|
-
(0,
|
|
3609
|
+
(0, import_typeorm38.Column)({
|
|
3557
3610
|
name: "question_for",
|
|
3558
3611
|
type: "enum",
|
|
3559
3612
|
enum: QuestionForEnum,
|
|
@@ -3561,16 +3614,16 @@ __decorateClass([
|
|
|
3561
3614
|
})
|
|
3562
3615
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3563
3616
|
__decorateClass([
|
|
3564
|
-
(0,
|
|
3617
|
+
(0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3565
3618
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3566
3619
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3620
|
+
(0, import_typeorm38.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3568
3621
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3569
3622
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3623
|
+
(0, import_typeorm38.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3571
3624
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3572
3625
|
AssessmetQuestion = __decorateClass([
|
|
3573
|
-
(0,
|
|
3626
|
+
(0, import_typeorm38.Entity)("assessment_questions")
|
|
3574
3627
|
], AssessmetQuestion);
|
|
3575
3628
|
|
|
3576
3629
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3583,118 +3636,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3583
3636
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3584
3637
|
};
|
|
3585
3638
|
__decorateClass([
|
|
3586
|
-
(0,
|
|
3587
|
-
(0,
|
|
3639
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer" }),
|
|
3640
|
+
(0, import_typeorm39.Index)()
|
|
3588
3641
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3589
3642
|
__decorateClass([
|
|
3590
|
-
(0,
|
|
3591
|
-
(0,
|
|
3643
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3644
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
3592
3645
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3593
3646
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3595
|
-
(0,
|
|
3647
|
+
(0, import_typeorm39.Column)({ name: "question_id", type: "integer" }),
|
|
3648
|
+
(0, import_typeorm39.Index)()
|
|
3596
3649
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3597
3650
|
__decorateClass([
|
|
3598
|
-
(0,
|
|
3651
|
+
(0, import_typeorm39.ManyToOne)(
|
|
3599
3652
|
() => AssessmetQuestion,
|
|
3600
3653
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3601
3654
|
),
|
|
3602
|
-
(0,
|
|
3655
|
+
(0, import_typeorm39.JoinColumn)({ name: "question_id" })
|
|
3603
3656
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3604
3657
|
__decorateClass([
|
|
3605
|
-
(0,
|
|
3606
|
-
(0,
|
|
3658
|
+
(0, import_typeorm39.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3659
|
+
(0, import_typeorm39.Index)()
|
|
3607
3660
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3608
3661
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3662
|
+
(0, import_typeorm39.ManyToOne)(
|
|
3610
3663
|
() => AssessmetQuestionOption,
|
|
3611
3664
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3612
3665
|
),
|
|
3613
|
-
(0,
|
|
3666
|
+
(0, import_typeorm39.JoinColumn)({ name: "selected_option_id" })
|
|
3614
3667
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3615
3668
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3669
|
+
(0, import_typeorm39.Column)({
|
|
3617
3670
|
name: "selected_answer_type",
|
|
3618
3671
|
type: "enum",
|
|
3619
3672
|
enum: SelectedAnswerTypeEnum
|
|
3620
3673
|
})
|
|
3621
3674
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3622
3675
|
__decorateClass([
|
|
3623
|
-
(0,
|
|
3676
|
+
(0, import_typeorm39.Column)({ name: "score", type: "float" })
|
|
3624
3677
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3625
3678
|
AssessmentAnswer = __decorateClass([
|
|
3626
|
-
(0,
|
|
3679
|
+
(0, import_typeorm39.Entity)("assessment_answers")
|
|
3627
3680
|
], AssessmentAnswer);
|
|
3628
3681
|
|
|
3629
3682
|
// src/entities/company-skill.entity.ts
|
|
3630
|
-
var
|
|
3683
|
+
var import_typeorm40 = require("typeorm");
|
|
3631
3684
|
var CompanySkill = class extends BaseEntity {
|
|
3632
3685
|
};
|
|
3633
3686
|
// individual index to find core skills by user
|
|
3634
3687
|
__decorateClass([
|
|
3635
|
-
(0,
|
|
3636
|
-
(0,
|
|
3688
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3689
|
+
(0, import_typeorm40.Index)()
|
|
3637
3690
|
], CompanySkill.prototype, "userId", 2);
|
|
3638
3691
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3640
|
-
(0,
|
|
3692
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3693
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
3641
3694
|
], CompanySkill.prototype, "user", 2);
|
|
3642
3695
|
__decorateClass([
|
|
3643
|
-
(0,
|
|
3696
|
+
(0, import_typeorm40.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3644
3697
|
], CompanySkill.prototype, "skillName", 2);
|
|
3645
3698
|
CompanySkill = __decorateClass([
|
|
3646
|
-
(0,
|
|
3699
|
+
(0, import_typeorm40.Entity)("company_skills")
|
|
3647
3700
|
], CompanySkill);
|
|
3648
3701
|
|
|
3649
3702
|
// src/entities/admin-user-role.entity.ts
|
|
3650
|
-
var
|
|
3703
|
+
var import_typeorm44 = require("typeorm");
|
|
3651
3704
|
|
|
3652
3705
|
// src/entities/admin-role.entity.ts
|
|
3653
|
-
var
|
|
3706
|
+
var import_typeorm43 = require("typeorm");
|
|
3654
3707
|
|
|
3655
3708
|
// src/entities/admin-role-permission.entity.ts
|
|
3656
|
-
var
|
|
3709
|
+
var import_typeorm42 = require("typeorm");
|
|
3657
3710
|
|
|
3658
3711
|
// src/entities/admin-permission.entity.ts
|
|
3659
|
-
var
|
|
3712
|
+
var import_typeorm41 = require("typeorm");
|
|
3660
3713
|
var AdminPermission = class extends BaseEntity {
|
|
3661
3714
|
};
|
|
3662
3715
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3716
|
+
(0, import_typeorm41.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3664
3717
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3665
3718
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3719
|
+
(0, import_typeorm41.Column)({
|
|
3667
3720
|
name: "permission_slug",
|
|
3668
3721
|
type: "varchar",
|
|
3669
3722
|
unique: true,
|
|
3670
3723
|
nullable: true
|
|
3671
3724
|
}),
|
|
3672
|
-
(0,
|
|
3725
|
+
(0, import_typeorm41.Index)()
|
|
3673
3726
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3674
3727
|
__decorateClass([
|
|
3675
|
-
(0,
|
|
3728
|
+
(0, import_typeorm41.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3676
3729
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3677
3730
|
__decorateClass([
|
|
3678
|
-
(0,
|
|
3731
|
+
(0, import_typeorm41.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3679
3732
|
], AdminPermission.prototype, "module", 2);
|
|
3680
3733
|
__decorateClass([
|
|
3681
|
-
(0,
|
|
3734
|
+
(0, import_typeorm41.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3682
3735
|
], AdminPermission.prototype, "isActive", 2);
|
|
3683
3736
|
__decorateClass([
|
|
3684
|
-
(0,
|
|
3737
|
+
(0, import_typeorm41.OneToMany)(
|
|
3685
3738
|
() => AdminRolePermission,
|
|
3686
3739
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3687
3740
|
)
|
|
3688
3741
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3689
3742
|
AdminPermission = __decorateClass([
|
|
3690
|
-
(0,
|
|
3743
|
+
(0, import_typeorm41.Entity)("admin_permissions")
|
|
3691
3744
|
], AdminPermission);
|
|
3692
3745
|
|
|
3693
3746
|
// src/entities/admin-role-permission.entity.ts
|
|
3694
3747
|
var AdminRolePermission = class extends BaseEntity {
|
|
3695
3748
|
};
|
|
3696
3749
|
__decorateClass([
|
|
3697
|
-
(0,
|
|
3750
|
+
(0, import_typeorm42.Column)({
|
|
3698
3751
|
name: "role_id",
|
|
3699
3752
|
type: "int",
|
|
3700
3753
|
nullable: true,
|
|
@@ -3702,11 +3755,11 @@ __decorateClass([
|
|
|
3702
3755
|
})
|
|
3703
3756
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3704
3757
|
__decorateClass([
|
|
3705
|
-
(0,
|
|
3706
|
-
(0,
|
|
3758
|
+
(0, import_typeorm42.ManyToOne)(() => AdminRole),
|
|
3759
|
+
(0, import_typeorm42.JoinColumn)({ name: "role_id" })
|
|
3707
3760
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3708
3761
|
__decorateClass([
|
|
3709
|
-
(0,
|
|
3762
|
+
(0, import_typeorm42.Column)({
|
|
3710
3763
|
name: "permission_id",
|
|
3711
3764
|
type: "int",
|
|
3712
3765
|
nullable: true,
|
|
@@ -3714,47 +3767,47 @@ __decorateClass([
|
|
|
3714
3767
|
})
|
|
3715
3768
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3716
3769
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3718
|
-
(0,
|
|
3770
|
+
(0, import_typeorm42.ManyToOne)(() => AdminPermission),
|
|
3771
|
+
(0, import_typeorm42.JoinColumn)({ name: "permission_id" })
|
|
3719
3772
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3720
3773
|
AdminRolePermission = __decorateClass([
|
|
3721
|
-
(0,
|
|
3774
|
+
(0, import_typeorm42.Entity)("admin_role_permissions")
|
|
3722
3775
|
], AdminRolePermission);
|
|
3723
3776
|
|
|
3724
3777
|
// src/entities/admin-role.entity.ts
|
|
3725
3778
|
var AdminRole = class extends BaseEntity {
|
|
3726
3779
|
};
|
|
3727
3780
|
__decorateClass([
|
|
3728
|
-
(0,
|
|
3781
|
+
(0, import_typeorm43.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3729
3782
|
], AdminRole.prototype, "roleName", 2);
|
|
3730
3783
|
__decorateClass([
|
|
3731
|
-
(0,
|
|
3732
|
-
(0,
|
|
3784
|
+
(0, import_typeorm43.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3785
|
+
(0, import_typeorm43.Index)()
|
|
3733
3786
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3734
3787
|
__decorateClass([
|
|
3735
|
-
(0,
|
|
3788
|
+
(0, import_typeorm43.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3736
3789
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3737
3790
|
__decorateClass([
|
|
3738
|
-
(0,
|
|
3791
|
+
(0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3739
3792
|
], AdminRole.prototype, "isActive", 2);
|
|
3740
3793
|
__decorateClass([
|
|
3741
|
-
(0,
|
|
3794
|
+
(0, import_typeorm43.OneToMany)(
|
|
3742
3795
|
() => AdminRolePermission,
|
|
3743
3796
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3744
3797
|
)
|
|
3745
3798
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3746
3799
|
__decorateClass([
|
|
3747
|
-
(0,
|
|
3800
|
+
(0, import_typeorm43.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3748
3801
|
], AdminRole.prototype, "userRoles", 2);
|
|
3749
3802
|
AdminRole = __decorateClass([
|
|
3750
|
-
(0,
|
|
3803
|
+
(0, import_typeorm43.Entity)("admin_roles")
|
|
3751
3804
|
], AdminRole);
|
|
3752
3805
|
|
|
3753
3806
|
// src/entities/admin-user-role.entity.ts
|
|
3754
3807
|
var AdminUserRole = class extends BaseEntity {
|
|
3755
3808
|
};
|
|
3756
3809
|
__decorateClass([
|
|
3757
|
-
(0,
|
|
3810
|
+
(0, import_typeorm44.Column)({
|
|
3758
3811
|
name: "user_id",
|
|
3759
3812
|
type: "int",
|
|
3760
3813
|
nullable: true,
|
|
@@ -3762,11 +3815,11 @@ __decorateClass([
|
|
|
3762
3815
|
})
|
|
3763
3816
|
], AdminUserRole.prototype, "userId", 2);
|
|
3764
3817
|
__decorateClass([
|
|
3765
|
-
(0,
|
|
3766
|
-
(0,
|
|
3818
|
+
(0, import_typeorm44.ManyToOne)(() => User),
|
|
3819
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
3767
3820
|
], AdminUserRole.prototype, "user", 2);
|
|
3768
3821
|
__decorateClass([
|
|
3769
|
-
(0,
|
|
3822
|
+
(0, import_typeorm44.Column)({
|
|
3770
3823
|
name: "role_id",
|
|
3771
3824
|
type: "int",
|
|
3772
3825
|
nullable: true,
|
|
@@ -3774,34 +3827,34 @@ __decorateClass([
|
|
|
3774
3827
|
})
|
|
3775
3828
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3776
3829
|
__decorateClass([
|
|
3777
|
-
(0,
|
|
3778
|
-
(0,
|
|
3830
|
+
(0, import_typeorm44.ManyToOne)(() => AdminRole),
|
|
3831
|
+
(0, import_typeorm44.JoinColumn)({ name: "role_id" })
|
|
3779
3832
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3780
3833
|
AdminUserRole = __decorateClass([
|
|
3781
|
-
(0,
|
|
3834
|
+
(0, import_typeorm44.Entity)("admin_user_roles")
|
|
3782
3835
|
], AdminUserRole);
|
|
3783
3836
|
|
|
3784
3837
|
// src/entities/freelancer-resume.entity.ts
|
|
3785
|
-
var
|
|
3838
|
+
var import_typeorm45 = require("typeorm");
|
|
3786
3839
|
var FreelancerResume = class extends BaseEntity {
|
|
3787
3840
|
};
|
|
3788
3841
|
// individual index to find profile by user
|
|
3789
3842
|
__decorateClass([
|
|
3790
|
-
(0,
|
|
3791
|
-
(0,
|
|
3843
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3844
|
+
(0, import_typeorm45.Index)()
|
|
3792
3845
|
], FreelancerResume.prototype, "userId", 2);
|
|
3793
3846
|
__decorateClass([
|
|
3794
|
-
(0,
|
|
3795
|
-
(0,
|
|
3847
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3848
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
3796
3849
|
], FreelancerResume.prototype, "user", 2);
|
|
3797
3850
|
__decorateClass([
|
|
3798
|
-
(0,
|
|
3851
|
+
(0, import_typeorm45.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3799
3852
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3800
3853
|
__decorateClass([
|
|
3801
|
-
(0,
|
|
3854
|
+
(0, import_typeorm45.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3802
3855
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3803
3856
|
FreelancerResume = __decorateClass([
|
|
3804
|
-
(0,
|
|
3857
|
+
(0, import_typeorm45.Entity)("freelancer_resumes")
|
|
3805
3858
|
], FreelancerResume);
|
|
3806
3859
|
|
|
3807
3860
|
// src/entities/user.entity.ts
|
|
@@ -3829,51 +3882,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3829
3882
|
var User = class extends BaseEntity {
|
|
3830
3883
|
};
|
|
3831
3884
|
__decorateClass([
|
|
3832
|
-
(0,
|
|
3885
|
+
(0, import_typeorm46.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3833
3886
|
], User.prototype, "uniqueId", 2);
|
|
3834
3887
|
__decorateClass([
|
|
3835
|
-
(0,
|
|
3836
|
-
(0,
|
|
3888
|
+
(0, import_typeorm46.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3889
|
+
(0, import_typeorm46.Index)()
|
|
3837
3890
|
], User.prototype, "parentId", 2);
|
|
3838
3891
|
__decorateClass([
|
|
3839
|
-
(0,
|
|
3840
|
-
(0,
|
|
3892
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3893
|
+
(0, import_typeorm46.JoinColumn)({ name: "parent_id" })
|
|
3841
3894
|
], User.prototype, "parent", 2);
|
|
3842
3895
|
__decorateClass([
|
|
3843
|
-
(0,
|
|
3896
|
+
(0, import_typeorm46.OneToMany)(() => User, (user) => user.parent)
|
|
3844
3897
|
], User.prototype, "children", 2);
|
|
3845
3898
|
__decorateClass([
|
|
3846
|
-
(0,
|
|
3899
|
+
(0, import_typeorm46.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3847
3900
|
], User.prototype, "username", 2);
|
|
3848
3901
|
__decorateClass([
|
|
3849
|
-
(0,
|
|
3902
|
+
(0, import_typeorm46.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3850
3903
|
], User.prototype, "firstName", 2);
|
|
3851
3904
|
__decorateClass([
|
|
3852
|
-
(0,
|
|
3905
|
+
(0, import_typeorm46.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3853
3906
|
], User.prototype, "lastName", 2);
|
|
3854
3907
|
__decorateClass([
|
|
3855
|
-
(0,
|
|
3908
|
+
(0, import_typeorm46.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3856
3909
|
], User.prototype, "dateOfBirth", 2);
|
|
3857
3910
|
__decorateClass([
|
|
3858
|
-
(0,
|
|
3911
|
+
(0, import_typeorm46.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3859
3912
|
], User.prototype, "gender", 2);
|
|
3860
3913
|
__decorateClass([
|
|
3861
|
-
(0,
|
|
3914
|
+
(0, import_typeorm46.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3862
3915
|
], User.prototype, "profilePictureUrl", 2);
|
|
3863
3916
|
__decorateClass([
|
|
3864
|
-
(0,
|
|
3917
|
+
(0, import_typeorm46.Column)({ name: "email", type: "varchar", unique: true })
|
|
3865
3918
|
], User.prototype, "email", 2);
|
|
3866
3919
|
__decorateClass([
|
|
3867
|
-
(0,
|
|
3920
|
+
(0, import_typeorm46.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3868
3921
|
], User.prototype, "mobileCode", 2);
|
|
3869
3922
|
__decorateClass([
|
|
3870
|
-
(0,
|
|
3923
|
+
(0, import_typeorm46.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3871
3924
|
], User.prototype, "mobile", 2);
|
|
3872
3925
|
__decorateClass([
|
|
3873
|
-
(0,
|
|
3926
|
+
(0, import_typeorm46.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3874
3927
|
], User.prototype, "password", 2);
|
|
3875
3928
|
__decorateClass([
|
|
3876
|
-
(0,
|
|
3929
|
+
(0, import_typeorm46.Column)({
|
|
3877
3930
|
name: "account_type",
|
|
3878
3931
|
type: "enum",
|
|
3879
3932
|
enum: AccountType,
|
|
@@ -3881,7 +3934,7 @@ __decorateClass([
|
|
|
3881
3934
|
})
|
|
3882
3935
|
], User.prototype, "accountType", 2);
|
|
3883
3936
|
__decorateClass([
|
|
3884
|
-
(0,
|
|
3937
|
+
(0, import_typeorm46.Column)({
|
|
3885
3938
|
name: "account_status",
|
|
3886
3939
|
type: "enum",
|
|
3887
3940
|
enum: AccountStatus,
|
|
@@ -3889,39 +3942,39 @@ __decorateClass([
|
|
|
3889
3942
|
})
|
|
3890
3943
|
], User.prototype, "accountStatus", 2);
|
|
3891
3944
|
__decorateClass([
|
|
3892
|
-
(0,
|
|
3945
|
+
(0, import_typeorm46.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3893
3946
|
], User.prototype, "isEmailVerified", 2);
|
|
3894
3947
|
__decorateClass([
|
|
3895
|
-
(0,
|
|
3948
|
+
(0, import_typeorm46.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3896
3949
|
], User.prototype, "isMobileVerified", 2);
|
|
3897
3950
|
__decorateClass([
|
|
3898
|
-
(0,
|
|
3951
|
+
(0, import_typeorm46.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3899
3952
|
], User.prototype, "isSocial", 2);
|
|
3900
3953
|
__decorateClass([
|
|
3901
|
-
(0,
|
|
3954
|
+
(0, import_typeorm46.Column)({
|
|
3902
3955
|
name: "last_login_at",
|
|
3903
3956
|
type: "timestamp with time zone",
|
|
3904
3957
|
nullable: true
|
|
3905
3958
|
})
|
|
3906
3959
|
], User.prototype, "lastLoginAt", 2);
|
|
3907
3960
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
3961
|
+
(0, import_typeorm46.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3909
3962
|
], User.prototype, "lastLoginIp", 2);
|
|
3910
3963
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
3964
|
+
(0, import_typeorm46.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3912
3965
|
], User.prototype, "resetToken", 2);
|
|
3913
3966
|
__decorateClass([
|
|
3914
|
-
(0,
|
|
3967
|
+
(0, import_typeorm46.Column)({
|
|
3915
3968
|
name: "reset_token_expire_at",
|
|
3916
3969
|
type: "timestamp with time zone",
|
|
3917
3970
|
nullable: true
|
|
3918
3971
|
})
|
|
3919
3972
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3920
3973
|
__decorateClass([
|
|
3921
|
-
(0,
|
|
3974
|
+
(0, import_typeorm46.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3922
3975
|
], User.prototype, "refreshTokens", 2);
|
|
3923
3976
|
__decorateClass([
|
|
3924
|
-
(0,
|
|
3977
|
+
(0, import_typeorm46.Column)({
|
|
3925
3978
|
name: "provider",
|
|
3926
3979
|
type: "enum",
|
|
3927
3980
|
enum: Provider,
|
|
@@ -3930,109 +3983,112 @@ __decorateClass([
|
|
|
3930
3983
|
})
|
|
3931
3984
|
], User.prototype, "provider", 2);
|
|
3932
3985
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
3986
|
+
(0, import_typeorm46.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3934
3987
|
], User.prototype, "providerToken", 2);
|
|
3935
3988
|
__decorateClass([
|
|
3936
|
-
(0,
|
|
3989
|
+
(0, import_typeorm46.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3937
3990
|
], User.prototype, "linkedInId", 2);
|
|
3938
3991
|
__decorateClass([
|
|
3939
|
-
(0,
|
|
3992
|
+
(0, import_typeorm46.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3940
3993
|
], User.prototype, "googleId", 2);
|
|
3941
3994
|
__decorateClass([
|
|
3942
|
-
(0,
|
|
3995
|
+
(0, import_typeorm46.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3943
3996
|
], User.prototype, "gitLabsId", 2);
|
|
3944
3997
|
__decorateClass([
|
|
3945
|
-
(0,
|
|
3998
|
+
(0, import_typeorm46.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
3946
3999
|
], User.prototype, "onBoardedBy", 2);
|
|
3947
4000
|
__decorateClass([
|
|
3948
|
-
(0,
|
|
4001
|
+
(0, import_typeorm46.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3949
4002
|
], User.prototype, "otps", 2);
|
|
3950
4003
|
__decorateClass([
|
|
3951
|
-
(0,
|
|
4004
|
+
(0, import_typeorm46.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3952
4005
|
], User.prototype, "senseloafLogs", 2);
|
|
3953
4006
|
__decorateClass([
|
|
3954
|
-
(0,
|
|
4007
|
+
(0, import_typeorm46.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3955
4008
|
], User.prototype, "companyProfile", 2);
|
|
3956
4009
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
4010
|
+
(0, import_typeorm46.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3958
4011
|
], User.prototype, "companySkills", 2);
|
|
3959
4012
|
__decorateClass([
|
|
3960
|
-
(0,
|
|
4013
|
+
(0, import_typeorm46.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3961
4014
|
], User.prototype, "companyMemberRoles", 2);
|
|
3962
4015
|
__decorateClass([
|
|
3963
|
-
(0,
|
|
4016
|
+
(0, import_typeorm46.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3964
4017
|
], User.prototype, "companyAiInterview", 2);
|
|
3965
4018
|
__decorateClass([
|
|
3966
|
-
(0,
|
|
4019
|
+
(0, import_typeorm46.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
3967
4020
|
], User.prototype, "clientF2FInterviews", 2);
|
|
3968
4021
|
__decorateClass([
|
|
3969
|
-
(0,
|
|
4022
|
+
(0, import_typeorm46.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3970
4023
|
], User.prototype, "freelancerProfile", 2);
|
|
3971
4024
|
__decorateClass([
|
|
3972
|
-
(0,
|
|
4025
|
+
(0, import_typeorm46.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3973
4026
|
], User.prototype, "freelancerResume", 2);
|
|
3974
4027
|
__decorateClass([
|
|
3975
|
-
(0,
|
|
4028
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3976
4029
|
], User.prototype, "assessments", 2);
|
|
3977
4030
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
4031
|
+
(0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3979
4032
|
], User.prototype, "assessmentAnswers", 2);
|
|
3980
4033
|
__decorateClass([
|
|
3981
|
-
(0,
|
|
4034
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3982
4035
|
], User.prototype, "freelancerSkills", 2);
|
|
3983
4036
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
4037
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3985
4038
|
], User.prototype, "freelancerExperience", 2);
|
|
3986
4039
|
__decorateClass([
|
|
3987
|
-
(0,
|
|
4040
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3988
4041
|
], User.prototype, "freelancerEducation", 2);
|
|
3989
4042
|
__decorateClass([
|
|
3990
|
-
(0,
|
|
4043
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3991
4044
|
], User.prototype, "freelancerProject", 2);
|
|
3992
4045
|
__decorateClass([
|
|
3993
|
-
(0,
|
|
4046
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3994
4047
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3995
4048
|
__decorateClass([
|
|
3996
|
-
(0,
|
|
4049
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3997
4050
|
], User.prototype, "freelancerTool", 2);
|
|
3998
4051
|
__decorateClass([
|
|
3999
|
-
(0,
|
|
4052
|
+
(0, import_typeorm46.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4000
4053
|
], User.prototype, "freelancerFramework", 2);
|
|
4001
4054
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4055
|
+
(0, import_typeorm46.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4003
4056
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4004
4057
|
__decorateClass([
|
|
4005
|
-
(0,
|
|
4058
|
+
(0, import_typeorm46.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4006
4059
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4007
4060
|
__decorateClass([
|
|
4008
|
-
(0,
|
|
4061
|
+
(0, import_typeorm46.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4009
4062
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4010
4063
|
__decorateClass([
|
|
4011
|
-
(0,
|
|
4064
|
+
(0, import_typeorm46.OneToMany)(() => F2fInterviewRescheduleRequest, (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate)
|
|
4065
|
+
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4066
|
+
__decorateClass([
|
|
4067
|
+
(0, import_typeorm46.OneToMany)(() => Job, (job) => job.user)
|
|
4012
4068
|
], User.prototype, "jobs", 2);
|
|
4013
4069
|
__decorateClass([
|
|
4014
|
-
(0,
|
|
4070
|
+
(0, import_typeorm46.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4015
4071
|
], User.prototype, "jobApplications", 2);
|
|
4016
4072
|
__decorateClass([
|
|
4017
|
-
(0,
|
|
4073
|
+
(0, import_typeorm46.OneToMany)(() => Interview, (interview) => interview.user)
|
|
4018
4074
|
], User.prototype, "interviews", 2);
|
|
4019
4075
|
__decorateClass([
|
|
4020
|
-
(0,
|
|
4076
|
+
(0, import_typeorm46.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4021
4077
|
], User.prototype, "bankDetail", 2);
|
|
4022
4078
|
__decorateClass([
|
|
4023
|
-
(0,
|
|
4079
|
+
(0, import_typeorm46.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
4024
4080
|
], User.prototype, "systemPreference", 2);
|
|
4025
4081
|
__decorateClass([
|
|
4026
|
-
(0,
|
|
4082
|
+
(0, import_typeorm46.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
4027
4083
|
], User.prototype, "givenRatings", 2);
|
|
4028
4084
|
__decorateClass([
|
|
4029
|
-
(0,
|
|
4085
|
+
(0, import_typeorm46.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
4030
4086
|
], User.prototype, "receivedRatings", 2);
|
|
4031
4087
|
__decorateClass([
|
|
4032
|
-
(0,
|
|
4088
|
+
(0, import_typeorm46.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4033
4089
|
], User.prototype, "adminUserRoles", 2);
|
|
4034
4090
|
User = __decorateClass([
|
|
4035
|
-
(0,
|
|
4091
|
+
(0, import_typeorm46.Entity)("users")
|
|
4036
4092
|
], User);
|
|
4037
4093
|
|
|
4038
4094
|
// src/entities/rating.entity.ts
|
|
@@ -4044,36 +4100,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4044
4100
|
var Rating = class extends BaseEntity {
|
|
4045
4101
|
};
|
|
4046
4102
|
__decorateClass([
|
|
4047
|
-
(0,
|
|
4048
|
-
(0,
|
|
4103
|
+
(0, import_typeorm47.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4104
|
+
(0, import_typeorm47.Index)()
|
|
4049
4105
|
], Rating.prototype, "reviewer_id", 2);
|
|
4050
4106
|
__decorateClass([
|
|
4051
|
-
(0,
|
|
4052
|
-
(0,
|
|
4107
|
+
(0, import_typeorm47.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4108
|
+
(0, import_typeorm47.JoinColumn)({ name: "reviewer_id" })
|
|
4053
4109
|
], Rating.prototype, "reviewer", 2);
|
|
4054
4110
|
__decorateClass([
|
|
4055
|
-
(0,
|
|
4056
|
-
(0,
|
|
4111
|
+
(0, import_typeorm47.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4112
|
+
(0, import_typeorm47.Index)()
|
|
4057
4113
|
], Rating.prototype, "reviewee_id", 2);
|
|
4058
4114
|
__decorateClass([
|
|
4059
|
-
(0,
|
|
4060
|
-
(0,
|
|
4115
|
+
(0, import_typeorm47.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4116
|
+
(0, import_typeorm47.JoinColumn)({ name: "reviewee_id" })
|
|
4061
4117
|
], Rating.prototype, "reviewee", 2);
|
|
4062
4118
|
__decorateClass([
|
|
4063
|
-
(0,
|
|
4119
|
+
(0, import_typeorm47.Column)({
|
|
4064
4120
|
type: "enum",
|
|
4065
4121
|
enum: RatingTypeEnum,
|
|
4066
4122
|
nullable: true
|
|
4067
4123
|
})
|
|
4068
4124
|
], Rating.prototype, "ratingType", 2);
|
|
4069
4125
|
__decorateClass([
|
|
4070
|
-
(0,
|
|
4126
|
+
(0, import_typeorm47.Column)({ type: "integer", nullable: true })
|
|
4071
4127
|
], Rating.prototype, "rating", 2);
|
|
4072
4128
|
__decorateClass([
|
|
4073
|
-
(0,
|
|
4129
|
+
(0, import_typeorm47.Column)({ type: "text", nullable: true })
|
|
4074
4130
|
], Rating.prototype, "review", 2);
|
|
4075
4131
|
Rating = __decorateClass([
|
|
4076
|
-
(0,
|
|
4132
|
+
(0, import_typeorm47.Entity)("ratings")
|
|
4077
4133
|
], Rating);
|
|
4078
4134
|
|
|
4079
4135
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5419,11 +5475,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5419
5475
|
};
|
|
5420
5476
|
|
|
5421
5477
|
// src/entities/sequence-generator.entity.ts
|
|
5422
|
-
var
|
|
5478
|
+
var import_typeorm48 = require("typeorm");
|
|
5423
5479
|
var SequenceGenerator = class extends BaseEntity {
|
|
5424
5480
|
};
|
|
5425
5481
|
__decorateClass([
|
|
5426
|
-
(0,
|
|
5482
|
+
(0, import_typeorm48.Column)({
|
|
5427
5483
|
name: "module",
|
|
5428
5484
|
type: "varchar",
|
|
5429
5485
|
length: 50,
|
|
@@ -5432,7 +5488,7 @@ __decorateClass([
|
|
|
5432
5488
|
})
|
|
5433
5489
|
], SequenceGenerator.prototype, "module", 2);
|
|
5434
5490
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5491
|
+
(0, import_typeorm48.Column)({
|
|
5436
5492
|
name: "prefix",
|
|
5437
5493
|
type: "varchar",
|
|
5438
5494
|
length: 10,
|
|
@@ -5441,7 +5497,7 @@ __decorateClass([
|
|
|
5441
5497
|
})
|
|
5442
5498
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5443
5499
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5500
|
+
(0, import_typeorm48.Column)({
|
|
5445
5501
|
name: "last_sequence",
|
|
5446
5502
|
type: "int",
|
|
5447
5503
|
nullable: false,
|
|
@@ -5449,7 +5505,7 @@ __decorateClass([
|
|
|
5449
5505
|
})
|
|
5450
5506
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5451
5507
|
__decorateClass([
|
|
5452
|
-
(0,
|
|
5508
|
+
(0, import_typeorm48.Column)({
|
|
5453
5509
|
name: "year",
|
|
5454
5510
|
type: "int",
|
|
5455
5511
|
nullable: true,
|
|
@@ -5457,11 +5513,11 @@ __decorateClass([
|
|
|
5457
5513
|
})
|
|
5458
5514
|
], SequenceGenerator.prototype, "year", 2);
|
|
5459
5515
|
SequenceGenerator = __decorateClass([
|
|
5460
|
-
(0,
|
|
5516
|
+
(0, import_typeorm48.Entity)("sequence_generators")
|
|
5461
5517
|
], SequenceGenerator);
|
|
5462
5518
|
|
|
5463
5519
|
// src/entities/question.entity.ts
|
|
5464
|
-
var
|
|
5520
|
+
var import_typeorm49 = require("typeorm");
|
|
5465
5521
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5466
5522
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5467
5523
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5470,16 +5526,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5470
5526
|
var Question = class extends BaseEntity {
|
|
5471
5527
|
};
|
|
5472
5528
|
__decorateClass([
|
|
5473
|
-
(0,
|
|
5529
|
+
(0, import_typeorm49.Column)({ name: "question", type: "varchar" })
|
|
5474
5530
|
], Question.prototype, "question", 2);
|
|
5475
5531
|
__decorateClass([
|
|
5476
|
-
(0,
|
|
5532
|
+
(0, import_typeorm49.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5477
5533
|
], Question.prototype, "hint", 2);
|
|
5478
5534
|
__decorateClass([
|
|
5479
|
-
(0,
|
|
5535
|
+
(0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5480
5536
|
], Question.prototype, "slug", 2);
|
|
5481
5537
|
__decorateClass([
|
|
5482
|
-
(0,
|
|
5538
|
+
(0, import_typeorm49.Column)({
|
|
5483
5539
|
name: "question_for",
|
|
5484
5540
|
type: "enum",
|
|
5485
5541
|
enum: QuestionFor,
|
|
@@ -5487,117 +5543,117 @@ __decorateClass([
|
|
|
5487
5543
|
})
|
|
5488
5544
|
], Question.prototype, "questionFor", 2);
|
|
5489
5545
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5546
|
+
(0, import_typeorm49.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5491
5547
|
], Question.prototype, "type", 2);
|
|
5492
5548
|
__decorateClass([
|
|
5493
|
-
(0,
|
|
5549
|
+
(0, import_typeorm49.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5494
5550
|
], Question.prototype, "options", 2);
|
|
5495
5551
|
__decorateClass([
|
|
5496
|
-
(0,
|
|
5552
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5497
5553
|
], Question.prototype, "isActive", 2);
|
|
5498
5554
|
Question = __decorateClass([
|
|
5499
|
-
(0,
|
|
5555
|
+
(0, import_typeorm49.Entity)("questions")
|
|
5500
5556
|
], Question);
|
|
5501
5557
|
|
|
5502
5558
|
// src/entities/skill.entity.ts
|
|
5503
|
-
var
|
|
5559
|
+
var import_typeorm50 = require("typeorm");
|
|
5504
5560
|
var Skill = class extends BaseEntity {
|
|
5505
5561
|
};
|
|
5506
5562
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5563
|
+
(0, import_typeorm50.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5508
5564
|
], Skill.prototype, "name", 2);
|
|
5509
5565
|
__decorateClass([
|
|
5510
|
-
(0,
|
|
5566
|
+
(0, import_typeorm50.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5511
5567
|
], Skill.prototype, "slug", 2);
|
|
5512
5568
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5569
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5514
5570
|
], Skill.prototype, "isActive", 2);
|
|
5515
5571
|
Skill = __decorateClass([
|
|
5516
|
-
(0,
|
|
5572
|
+
(0, import_typeorm50.Entity)("skills")
|
|
5517
5573
|
], Skill);
|
|
5518
5574
|
|
|
5519
5575
|
// src/entities/job-role.entity.ts
|
|
5520
|
-
var
|
|
5576
|
+
var import_typeorm51 = require("typeorm");
|
|
5521
5577
|
var JobRoles = class extends BaseEntity {
|
|
5522
5578
|
};
|
|
5523
5579
|
__decorateClass([
|
|
5524
|
-
(0,
|
|
5580
|
+
(0, import_typeorm51.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5525
5581
|
], JobRoles.prototype, "slug", 2);
|
|
5526
5582
|
__decorateClass([
|
|
5527
|
-
(0,
|
|
5583
|
+
(0, import_typeorm51.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5528
5584
|
], JobRoles.prototype, "name", 2);
|
|
5529
5585
|
__decorateClass([
|
|
5530
|
-
(0,
|
|
5586
|
+
(0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5531
5587
|
], JobRoles.prototype, "isActive", 2);
|
|
5532
5588
|
JobRoles = __decorateClass([
|
|
5533
|
-
(0,
|
|
5589
|
+
(0, import_typeorm51.Entity)("job_roles")
|
|
5534
5590
|
], JobRoles);
|
|
5535
5591
|
|
|
5536
5592
|
// src/entities/plan.entity.ts
|
|
5537
|
-
var
|
|
5593
|
+
var import_typeorm53 = require("typeorm");
|
|
5538
5594
|
|
|
5539
5595
|
// src/entities/feature.entity.ts
|
|
5540
|
-
var
|
|
5596
|
+
var import_typeorm52 = require("typeorm");
|
|
5541
5597
|
var Feature = class extends BaseEntity {
|
|
5542
5598
|
};
|
|
5543
5599
|
__decorateClass([
|
|
5544
|
-
(0,
|
|
5600
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", unique: true })
|
|
5545
5601
|
], Feature.prototype, "name", 2);
|
|
5546
5602
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5603
|
+
(0, import_typeorm52.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5548
5604
|
], Feature.prototype, "plans", 2);
|
|
5549
5605
|
Feature = __decorateClass([
|
|
5550
|
-
(0,
|
|
5606
|
+
(0, import_typeorm52.Entity)("features")
|
|
5551
5607
|
], Feature);
|
|
5552
5608
|
|
|
5553
5609
|
// src/entities/plan.entity.ts
|
|
5554
5610
|
var Plan = class extends BaseEntity {
|
|
5555
5611
|
};
|
|
5556
5612
|
__decorateClass([
|
|
5557
|
-
(0,
|
|
5613
|
+
(0, import_typeorm53.Column)({ name: "name", type: "varchar", unique: true })
|
|
5558
5614
|
], Plan.prototype, "name", 2);
|
|
5559
5615
|
__decorateClass([
|
|
5560
|
-
(0,
|
|
5616
|
+
(0, import_typeorm53.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5561
5617
|
], Plan.prototype, "description", 2);
|
|
5562
5618
|
__decorateClass([
|
|
5563
|
-
(0,
|
|
5619
|
+
(0, import_typeorm53.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5564
5620
|
], Plan.prototype, "price", 2);
|
|
5565
5621
|
__decorateClass([
|
|
5566
|
-
(0,
|
|
5622
|
+
(0, import_typeorm53.Column)({ name: "billing_period", type: "varchar" })
|
|
5567
5623
|
], Plan.prototype, "billingPeriod", 2);
|
|
5568
5624
|
__decorateClass([
|
|
5569
|
-
(0,
|
|
5625
|
+
(0, import_typeorm53.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5570
5626
|
], Plan.prototype, "isCurrent", 2);
|
|
5571
5627
|
__decorateClass([
|
|
5572
|
-
(0,
|
|
5573
|
-
(0,
|
|
5628
|
+
(0, import_typeorm53.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5629
|
+
(0, import_typeorm53.JoinTable)()
|
|
5574
5630
|
], Plan.prototype, "features", 2);
|
|
5575
5631
|
Plan = __decorateClass([
|
|
5576
|
-
(0,
|
|
5632
|
+
(0, import_typeorm53.Entity)("plans")
|
|
5577
5633
|
], Plan);
|
|
5578
5634
|
|
|
5579
5635
|
// src/entities/cms.entity.ts
|
|
5580
|
-
var
|
|
5636
|
+
var import_typeorm54 = require("typeorm");
|
|
5581
5637
|
var Cms = class extends BaseEntity {
|
|
5582
5638
|
};
|
|
5583
5639
|
__decorateClass([
|
|
5584
|
-
(0,
|
|
5640
|
+
(0, import_typeorm54.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5585
5641
|
], Cms.prototype, "title", 2);
|
|
5586
5642
|
__decorateClass([
|
|
5587
|
-
(0,
|
|
5643
|
+
(0, import_typeorm54.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5588
5644
|
], Cms.prototype, "slug", 2);
|
|
5589
5645
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5646
|
+
(0, import_typeorm54.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5591
5647
|
], Cms.prototype, "content", 2);
|
|
5592
5648
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5649
|
+
(0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5594
5650
|
], Cms.prototype, "isActive", 2);
|
|
5595
5651
|
Cms = __decorateClass([
|
|
5596
|
-
(0,
|
|
5652
|
+
(0, import_typeorm54.Entity)("cms")
|
|
5597
5653
|
], Cms);
|
|
5598
5654
|
|
|
5599
5655
|
// src/entities/lead.entity.ts
|
|
5600
|
-
var
|
|
5656
|
+
var import_typeorm55 = require("typeorm");
|
|
5601
5657
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5602
5658
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5603
5659
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5606,22 +5662,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5606
5662
|
var Lead = class extends BaseEntity {
|
|
5607
5663
|
};
|
|
5608
5664
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5665
|
+
(0, import_typeorm55.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5610
5666
|
], Lead.prototype, "name", 2);
|
|
5611
5667
|
__decorateClass([
|
|
5612
|
-
(0,
|
|
5668
|
+
(0, import_typeorm55.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5613
5669
|
], Lead.prototype, "mobileCode", 2);
|
|
5614
5670
|
__decorateClass([
|
|
5615
|
-
(0,
|
|
5671
|
+
(0, import_typeorm55.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5616
5672
|
], Lead.prototype, "mobile", 2);
|
|
5617
5673
|
__decorateClass([
|
|
5618
|
-
(0,
|
|
5674
|
+
(0, import_typeorm55.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5619
5675
|
], Lead.prototype, "email", 2);
|
|
5620
5676
|
__decorateClass([
|
|
5621
|
-
(0,
|
|
5677
|
+
(0, import_typeorm55.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5622
5678
|
], Lead.prototype, "description", 2);
|
|
5623
5679
|
__decorateClass([
|
|
5624
|
-
(0,
|
|
5680
|
+
(0, import_typeorm55.Column)({
|
|
5625
5681
|
name: "category",
|
|
5626
5682
|
type: "enum",
|
|
5627
5683
|
enum: CategoryEmum,
|
|
@@ -5629,129 +5685,129 @@ __decorateClass([
|
|
|
5629
5685
|
})
|
|
5630
5686
|
], Lead.prototype, "category", 2);
|
|
5631
5687
|
Lead = __decorateClass([
|
|
5632
|
-
(0,
|
|
5688
|
+
(0, import_typeorm55.Entity)("leads")
|
|
5633
5689
|
], Lead);
|
|
5634
5690
|
|
|
5635
5691
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5636
|
-
var
|
|
5692
|
+
var import_typeorm56 = require("typeorm");
|
|
5637
5693
|
var JobFreelancerRecommendation = class {
|
|
5638
5694
|
};
|
|
5639
5695
|
__decorateClass([
|
|
5640
|
-
(0,
|
|
5696
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_id" })
|
|
5641
5697
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5642
5698
|
__decorateClass([
|
|
5643
|
-
(0,
|
|
5699
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_uuid" })
|
|
5644
5700
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5645
5701
|
__decorateClass([
|
|
5646
|
-
(0,
|
|
5702
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_unique_id" })
|
|
5647
5703
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5648
5704
|
__decorateClass([
|
|
5649
|
-
(0,
|
|
5705
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_role" })
|
|
5650
5706
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5651
5707
|
__decorateClass([
|
|
5652
|
-
(0,
|
|
5708
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_openings" })
|
|
5653
5709
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5654
5710
|
__decorateClass([
|
|
5655
|
-
(0,
|
|
5711
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_location" })
|
|
5656
5712
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5657
5713
|
__decorateClass([
|
|
5658
|
-
(0,
|
|
5714
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_currency" })
|
|
5659
5715
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5660
5716
|
__decorateClass([
|
|
5661
|
-
(0,
|
|
5717
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_salary_from" })
|
|
5662
5718
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5663
5719
|
__decorateClass([
|
|
5664
|
-
(0,
|
|
5720
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_salary_to" })
|
|
5665
5721
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5666
5722
|
__decorateClass([
|
|
5667
|
-
(0,
|
|
5723
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_employment_type" })
|
|
5668
5724
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5669
5725
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5726
|
+
(0, import_typeorm56.ViewColumn)({ name: "application_received" })
|
|
5671
5727
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5672
5728
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5729
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_posted_at" })
|
|
5674
5730
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5675
5731
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5732
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_id" })
|
|
5677
5733
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5678
5734
|
__decorateClass([
|
|
5679
|
-
(0,
|
|
5735
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_uuid" })
|
|
5680
5736
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5681
5737
|
__decorateClass([
|
|
5682
|
-
(0,
|
|
5738
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5683
5739
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5684
5740
|
__decorateClass([
|
|
5685
|
-
(0,
|
|
5741
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_first_name" })
|
|
5686
5742
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5687
5743
|
__decorateClass([
|
|
5688
|
-
(0,
|
|
5744
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_last_name" })
|
|
5689
5745
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5690
5746
|
__decorateClass([
|
|
5691
|
-
(0,
|
|
5747
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_email" })
|
|
5692
5748
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5693
5749
|
__decorateClass([
|
|
5694
|
-
(0,
|
|
5750
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5695
5751
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5696
5752
|
__decorateClass([
|
|
5697
|
-
(0,
|
|
5753
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_is_social" })
|
|
5698
5754
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5699
5755
|
__decorateClass([
|
|
5700
|
-
(0,
|
|
5756
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_created_at" })
|
|
5701
5757
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5702
5758
|
__decorateClass([
|
|
5703
|
-
(0,
|
|
5759
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_designation" })
|
|
5704
5760
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5705
5761
|
__decorateClass([
|
|
5706
|
-
(0,
|
|
5762
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_experience" })
|
|
5707
5763
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5708
5764
|
__decorateClass([
|
|
5709
|
-
(0,
|
|
5765
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5710
5766
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5711
5767
|
__decorateClass([
|
|
5712
|
-
(0,
|
|
5768
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5713
5769
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5714
5770
|
__decorateClass([
|
|
5715
|
-
(0,
|
|
5771
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_country_name" })
|
|
5716
5772
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5717
5773
|
__decorateClass([
|
|
5718
|
-
(0,
|
|
5774
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5719
5775
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5720
5776
|
__decorateClass([
|
|
5721
|
-
(0,
|
|
5777
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_id" })
|
|
5722
5778
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5723
5779
|
__decorateClass([
|
|
5724
|
-
(0,
|
|
5780
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_uuid" })
|
|
5725
5781
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5726
5782
|
__decorateClass([
|
|
5727
|
-
(0,
|
|
5783
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_first_name" })
|
|
5728
5784
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5729
5785
|
__decorateClass([
|
|
5730
|
-
(0,
|
|
5786
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_last_name" })
|
|
5731
5787
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5732
5788
|
__decorateClass([
|
|
5733
|
-
(0,
|
|
5789
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_email" })
|
|
5734
5790
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5735
5791
|
__decorateClass([
|
|
5736
|
-
(0,
|
|
5792
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_company_logo" })
|
|
5737
5793
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5738
5794
|
__decorateClass([
|
|
5739
|
-
(0,
|
|
5795
|
+
(0, import_typeorm56.ViewColumn)({ name: "client_company_name" })
|
|
5740
5796
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5741
5797
|
__decorateClass([
|
|
5742
|
-
(0,
|
|
5798
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills" })
|
|
5743
5799
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5744
5800
|
__decorateClass([
|
|
5745
|
-
(0,
|
|
5801
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills_count" })
|
|
5746
5802
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5747
5803
|
__decorateClass([
|
|
5748
|
-
(0,
|
|
5804
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills" })
|
|
5749
5805
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5750
5806
|
__decorateClass([
|
|
5751
|
-
(0,
|
|
5807
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills_count" })
|
|
5752
5808
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5753
5809
|
JobFreelancerRecommendation = __decorateClass([
|
|
5754
|
-
(0,
|
|
5810
|
+
(0, import_typeorm56.ViewEntity)({
|
|
5755
5811
|
name: "job_freelancer_recommendations",
|
|
5756
5812
|
materialized: true,
|
|
5757
5813
|
synchronize: false
|
|
@@ -5760,32 +5816,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5760
5816
|
], JobFreelancerRecommendation);
|
|
5761
5817
|
|
|
5762
5818
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5763
|
-
var
|
|
5819
|
+
var import_typeorm57 = require("typeorm");
|
|
5764
5820
|
var JobFreelancerRecommendationV2 = class {
|
|
5765
5821
|
};
|
|
5766
5822
|
__decorateClass([
|
|
5767
|
-
(0,
|
|
5823
|
+
(0, import_typeorm57.ViewColumn)({ name: "job_id" })
|
|
5768
5824
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5769
5825
|
__decorateClass([
|
|
5770
|
-
(0,
|
|
5826
|
+
(0, import_typeorm57.ViewColumn)({ name: "job_owner_id" })
|
|
5771
5827
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5772
5828
|
__decorateClass([
|
|
5773
|
-
(0,
|
|
5829
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_id" })
|
|
5774
5830
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5775
5831
|
__decorateClass([
|
|
5776
|
-
(0,
|
|
5832
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills" })
|
|
5777
5833
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5778
5834
|
__decorateClass([
|
|
5779
|
-
(0,
|
|
5835
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills_count" })
|
|
5780
5836
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5781
5837
|
__decorateClass([
|
|
5782
|
-
(0,
|
|
5838
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills" })
|
|
5783
5839
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5784
5840
|
__decorateClass([
|
|
5785
|
-
(0,
|
|
5841
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills_count" })
|
|
5786
5842
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5787
5843
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5788
|
-
(0,
|
|
5844
|
+
(0, import_typeorm57.ViewEntity)({
|
|
5789
5845
|
name: "job_freelancer_recommendations_v2",
|
|
5790
5846
|
materialized: true,
|
|
5791
5847
|
synchronize: false
|
|
@@ -5794,74 +5850,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5794
5850
|
], JobFreelancerRecommendationV2);
|
|
5795
5851
|
|
|
5796
5852
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5797
|
-
var
|
|
5853
|
+
var import_typeorm58 = require("typeorm");
|
|
5798
5854
|
var ClientFreelancerRecommendation = class {
|
|
5799
5855
|
};
|
|
5800
5856
|
__decorateClass([
|
|
5801
|
-
(0,
|
|
5857
|
+
(0, import_typeorm58.ViewColumn)({ name: "client_id" })
|
|
5802
5858
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5803
5859
|
__decorateClass([
|
|
5804
|
-
(0,
|
|
5860
|
+
(0, import_typeorm58.ViewColumn)({ name: "client_uuid" })
|
|
5805
5861
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5806
5862
|
__decorateClass([
|
|
5807
|
-
(0,
|
|
5863
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_id" })
|
|
5808
5864
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5809
5865
|
__decorateClass([
|
|
5810
|
-
(0,
|
|
5866
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_uuid" })
|
|
5811
5867
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5812
5868
|
__decorateClass([
|
|
5813
|
-
(0,
|
|
5869
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5814
5870
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5815
5871
|
__decorateClass([
|
|
5816
|
-
(0,
|
|
5872
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_first_name" })
|
|
5817
5873
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5818
5874
|
__decorateClass([
|
|
5819
|
-
(0,
|
|
5875
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_last_name" })
|
|
5820
5876
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5821
5877
|
__decorateClass([
|
|
5822
|
-
(0,
|
|
5878
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_email" })
|
|
5823
5879
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5824
5880
|
__decorateClass([
|
|
5825
|
-
(0,
|
|
5881
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5826
5882
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5827
5883
|
__decorateClass([
|
|
5828
|
-
(0,
|
|
5884
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_is_social" })
|
|
5829
5885
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5830
5886
|
__decorateClass([
|
|
5831
|
-
(0,
|
|
5887
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_created_at" })
|
|
5832
5888
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5833
5889
|
__decorateClass([
|
|
5834
|
-
(0,
|
|
5890
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_designation" })
|
|
5835
5891
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5836
5892
|
__decorateClass([
|
|
5837
|
-
(0,
|
|
5893
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_experience" })
|
|
5838
5894
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5839
5895
|
__decorateClass([
|
|
5840
|
-
(0,
|
|
5896
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5841
5897
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5842
5898
|
__decorateClass([
|
|
5843
|
-
(0,
|
|
5899
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5844
5900
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5845
5901
|
__decorateClass([
|
|
5846
|
-
(0,
|
|
5902
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_country_name" })
|
|
5847
5903
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5848
5904
|
__decorateClass([
|
|
5849
|
-
(0,
|
|
5905
|
+
(0, import_typeorm58.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5850
5906
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5851
5907
|
__decorateClass([
|
|
5852
|
-
(0,
|
|
5908
|
+
(0, import_typeorm58.ViewColumn)({ name: "matching_skills" })
|
|
5853
5909
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5854
5910
|
__decorateClass([
|
|
5855
|
-
(0,
|
|
5911
|
+
(0, import_typeorm58.ViewColumn)({ name: "matching_skills_count" })
|
|
5856
5912
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5857
5913
|
__decorateClass([
|
|
5858
|
-
(0,
|
|
5914
|
+
(0, import_typeorm58.ViewColumn)({ name: "required_skills" })
|
|
5859
5915
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5860
5916
|
__decorateClass([
|
|
5861
|
-
(0,
|
|
5917
|
+
(0, import_typeorm58.ViewColumn)({ name: "required_skills_count" })
|
|
5862
5918
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5863
5919
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5864
|
-
(0,
|
|
5920
|
+
(0, import_typeorm58.ViewEntity)({
|
|
5865
5921
|
name: "client_freelancer_recommendations",
|
|
5866
5922
|
materialized: true,
|
|
5867
5923
|
synchronize: false
|
|
@@ -5870,7 +5926,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5870
5926
|
], ClientFreelancerRecommendation);
|
|
5871
5927
|
|
|
5872
5928
|
// src/entities/commission.entity.ts
|
|
5873
|
-
var
|
|
5929
|
+
var import_typeorm59 = require("typeorm");
|
|
5874
5930
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5875
5931
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5876
5932
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5879,7 +5935,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5879
5935
|
var Commission = class extends BaseEntity {
|
|
5880
5936
|
};
|
|
5881
5937
|
__decorateClass([
|
|
5882
|
-
(0,
|
|
5938
|
+
(0, import_typeorm59.Column)({
|
|
5883
5939
|
name: "freelancer_commission_type",
|
|
5884
5940
|
type: "enum",
|
|
5885
5941
|
enum: CommissionTypeEnum,
|
|
@@ -5887,10 +5943,10 @@ __decorateClass([
|
|
|
5887
5943
|
})
|
|
5888
5944
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5889
5945
|
__decorateClass([
|
|
5890
|
-
(0,
|
|
5946
|
+
(0, import_typeorm59.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5891
5947
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5892
5948
|
__decorateClass([
|
|
5893
|
-
(0,
|
|
5949
|
+
(0, import_typeorm59.Column)({
|
|
5894
5950
|
name: "client_commission_type",
|
|
5895
5951
|
type: "enum",
|
|
5896
5952
|
enum: CommissionTypeEnum,
|
|
@@ -5898,10 +5954,10 @@ __decorateClass([
|
|
|
5898
5954
|
})
|
|
5899
5955
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5900
5956
|
__decorateClass([
|
|
5901
|
-
(0,
|
|
5957
|
+
(0, import_typeorm59.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5902
5958
|
], Commission.prototype, "clientCommission", 2);
|
|
5903
5959
|
Commission = __decorateClass([
|
|
5904
|
-
(0,
|
|
5960
|
+
(0, import_typeorm59.Entity)("commissions")
|
|
5905
5961
|
], Commission);
|
|
5906
5962
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5907
5963
|
0 && (module.exports = {
|
|
@@ -5982,6 +6038,8 @@ Commission = __decorateClass([
|
|
|
5982
6038
|
EmploymentType,
|
|
5983
6039
|
ExperienceDto,
|
|
5984
6040
|
F2FInterview,
|
|
6041
|
+
F2fInterviewRescheduleRequest,
|
|
6042
|
+
F2fInterviewRescheduleRequestStatusEnum,
|
|
5985
6043
|
F2fInterviewStatusEnum,
|
|
5986
6044
|
FREELANCER_DECLARATION_PATTERN,
|
|
5987
6045
|
FREELANCER_EDUCATION_PATTERN,
|