@experts_hub/shared 1.0.320 → 1.0.321
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/index.d.ts +1 -0
- package/dist/entities/job-recommendation.entity.d.ts +10 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +546 -502
- package/dist/index.mjs +516 -467
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -159,6 +159,7 @@ __export(index_exports, {
|
|
|
159
159
|
JobLocationEnumDto: () => JobLocationEnumDto,
|
|
160
160
|
JobLocationEnums: () => JobLocationEnums,
|
|
161
161
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
162
|
+
JobRecommendation: () => JobRecommendation,
|
|
162
163
|
JobRoles: () => JobRoles,
|
|
163
164
|
JobSkill: () => JobSkill,
|
|
164
165
|
JobStatus: () => JobStatus,
|
|
@@ -1503,10 +1504,10 @@ var RATING_PATTERN = {
|
|
|
1503
1504
|
var import_class_validator40 = require("class-validator");
|
|
1504
1505
|
|
|
1505
1506
|
// src/entities/rating.entity.ts
|
|
1506
|
-
var
|
|
1507
|
+
var import_typeorm43 = require("typeorm");
|
|
1507
1508
|
|
|
1508
1509
|
// src/entities/user.entity.ts
|
|
1509
|
-
var
|
|
1510
|
+
var import_typeorm42 = require("typeorm");
|
|
1510
1511
|
|
|
1511
1512
|
// src/entities/base.entity.ts
|
|
1512
1513
|
var import_typeorm = require("typeorm");
|
|
@@ -2170,7 +2171,7 @@ CompanyProfile = __decorateClass([
|
|
|
2170
2171
|
], CompanyProfile);
|
|
2171
2172
|
|
|
2172
2173
|
// src/entities/job.entity.ts
|
|
2173
|
-
var
|
|
2174
|
+
var import_typeorm17 = require("typeorm");
|
|
2174
2175
|
|
|
2175
2176
|
// src/entities/job-skill.entity.ts
|
|
2176
2177
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2531,6 +2532,43 @@ Interview = __decorateClass([
|
|
|
2531
2532
|
(0, import_typeorm15.Entity)("interviews")
|
|
2532
2533
|
], Interview);
|
|
2533
2534
|
|
|
2535
|
+
// src/entities/job-recommendation.entity.ts
|
|
2536
|
+
var import_typeorm16 = require("typeorm");
|
|
2537
|
+
var JobRecommendation = class {
|
|
2538
|
+
};
|
|
2539
|
+
__decorateClass([
|
|
2540
|
+
(0, import_typeorm16.Column)({ name: "job_id", type: "integer" }),
|
|
2541
|
+
(0, import_typeorm16.Index)()
|
|
2542
|
+
], JobRecommendation.prototype, "jobId", 2);
|
|
2543
|
+
__decorateClass([
|
|
2544
|
+
(0, import_typeorm16.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2545
|
+
(0, import_typeorm16.JoinColumn)({ name: "job_id" })
|
|
2546
|
+
], JobRecommendation.prototype, "job", 2);
|
|
2547
|
+
__decorateClass([
|
|
2548
|
+
(0, import_typeorm16.Column)({ name: "freelancer_id", type: "integer" }),
|
|
2549
|
+
(0, import_typeorm16.Index)()
|
|
2550
|
+
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2551
|
+
__decorateClass([
|
|
2552
|
+
(0, import_typeorm16.Column)({ name: "client_id", type: "integer" }),
|
|
2553
|
+
(0, import_typeorm16.Index)()
|
|
2554
|
+
], JobRecommendation.prototype, "clientId", 2);
|
|
2555
|
+
__decorateClass([
|
|
2556
|
+
(0, import_typeorm16.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2557
|
+
], JobRecommendation.prototype, "matchScore", 2);
|
|
2558
|
+
__decorateClass([
|
|
2559
|
+
(0, import_typeorm16.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2560
|
+
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2561
|
+
__decorateClass([
|
|
2562
|
+
(0, import_typeorm16.Column)({
|
|
2563
|
+
name: "last_calculated_at",
|
|
2564
|
+
type: "timestamp with local time zone",
|
|
2565
|
+
nullable: true
|
|
2566
|
+
})
|
|
2567
|
+
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2568
|
+
JobRecommendation = __decorateClass([
|
|
2569
|
+
(0, import_typeorm16.Entity)("job_recommendations")
|
|
2570
|
+
], JobRecommendation);
|
|
2571
|
+
|
|
2534
2572
|
// src/entities/job.entity.ts
|
|
2535
2573
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2536
2574
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -2568,49 +2606,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2568
2606
|
var Job = class extends BaseEntity {
|
|
2569
2607
|
};
|
|
2570
2608
|
__decorateClass([
|
|
2571
|
-
(0,
|
|
2609
|
+
(0, import_typeorm17.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2572
2610
|
], Job.prototype, "jobId", 2);
|
|
2573
2611
|
// individual index to find jobs by user
|
|
2574
2612
|
__decorateClass([
|
|
2575
|
-
(0,
|
|
2576
|
-
(0,
|
|
2613
|
+
(0, import_typeorm17.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2614
|
+
(0, import_typeorm17.Index)()
|
|
2577
2615
|
], Job.prototype, "userId", 2);
|
|
2578
2616
|
__decorateClass([
|
|
2579
|
-
(0,
|
|
2580
|
-
(0,
|
|
2617
|
+
(0, import_typeorm17.ManyToOne)(() => User, (user) => user.jobs),
|
|
2618
|
+
(0, import_typeorm17.JoinColumn)({ name: "user_id" })
|
|
2581
2619
|
], Job.prototype, "user", 2);
|
|
2582
2620
|
__decorateClass([
|
|
2583
|
-
(0,
|
|
2621
|
+
(0, import_typeorm17.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2584
2622
|
], Job.prototype, "countryId", 2);
|
|
2585
2623
|
__decorateClass([
|
|
2586
|
-
(0,
|
|
2587
|
-
(0,
|
|
2624
|
+
(0, import_typeorm17.ManyToOne)(() => Country),
|
|
2625
|
+
(0, import_typeorm17.JoinColumn)({ name: "country_id" })
|
|
2588
2626
|
], Job.prototype, "country", 2);
|
|
2589
2627
|
__decorateClass([
|
|
2590
|
-
(0,
|
|
2628
|
+
(0, import_typeorm17.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2591
2629
|
], Job.prototype, "stateId", 2);
|
|
2592
2630
|
__decorateClass([
|
|
2593
|
-
(0,
|
|
2594
|
-
(0,
|
|
2631
|
+
(0, import_typeorm17.ManyToOne)(() => State),
|
|
2632
|
+
(0, import_typeorm17.JoinColumn)({ name: "state_id" })
|
|
2595
2633
|
], Job.prototype, "state", 2);
|
|
2596
2634
|
__decorateClass([
|
|
2597
|
-
(0,
|
|
2635
|
+
(0, import_typeorm17.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2598
2636
|
], Job.prototype, "cityId", 2);
|
|
2599
2637
|
__decorateClass([
|
|
2600
|
-
(0,
|
|
2601
|
-
(0,
|
|
2638
|
+
(0, import_typeorm17.ManyToOne)(() => City),
|
|
2639
|
+
(0, import_typeorm17.JoinColumn)({ name: "city_id" })
|
|
2602
2640
|
], Job.prototype, "city", 2);
|
|
2603
2641
|
__decorateClass([
|
|
2604
|
-
(0,
|
|
2642
|
+
(0, import_typeorm17.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2605
2643
|
], Job.prototype, "jobRole", 2);
|
|
2606
2644
|
__decorateClass([
|
|
2607
|
-
(0,
|
|
2645
|
+
(0, import_typeorm17.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2608
2646
|
], Job.prototype, "note", 2);
|
|
2609
2647
|
__decorateClass([
|
|
2610
|
-
(0,
|
|
2648
|
+
(0, import_typeorm17.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2611
2649
|
], Job.prototype, "openings", 2);
|
|
2612
2650
|
__decorateClass([
|
|
2613
|
-
(0,
|
|
2651
|
+
(0, import_typeorm17.Column)({
|
|
2614
2652
|
name: "location",
|
|
2615
2653
|
type: "enum",
|
|
2616
2654
|
enum: JobLocationEnum,
|
|
@@ -2618,7 +2656,7 @@ __decorateClass([
|
|
|
2618
2656
|
})
|
|
2619
2657
|
], Job.prototype, "location", 2);
|
|
2620
2658
|
__decorateClass([
|
|
2621
|
-
(0,
|
|
2659
|
+
(0, import_typeorm17.Column)({
|
|
2622
2660
|
name: "type_of_employment",
|
|
2623
2661
|
type: "enum",
|
|
2624
2662
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2626,19 +2664,19 @@ __decorateClass([
|
|
|
2626
2664
|
})
|
|
2627
2665
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2628
2666
|
__decorateClass([
|
|
2629
|
-
(0,
|
|
2667
|
+
(0, import_typeorm17.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2630
2668
|
], Job.prototype, "academicQualification", 2);
|
|
2631
2669
|
__decorateClass([
|
|
2632
|
-
(0,
|
|
2670
|
+
(0, import_typeorm17.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2633
2671
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2634
2672
|
__decorateClass([
|
|
2635
|
-
(0,
|
|
2673
|
+
(0, import_typeorm17.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2636
2674
|
], Job.prototype, "businessIndustry", 2);
|
|
2637
2675
|
__decorateClass([
|
|
2638
|
-
(0,
|
|
2676
|
+
(0, import_typeorm17.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2639
2677
|
], Job.prototype, "currency", 2);
|
|
2640
2678
|
__decorateClass([
|
|
2641
|
-
(0,
|
|
2679
|
+
(0, import_typeorm17.Column)({
|
|
2642
2680
|
name: "expected_salary_from",
|
|
2643
2681
|
type: "decimal",
|
|
2644
2682
|
precision: 10,
|
|
@@ -2647,7 +2685,7 @@ __decorateClass([
|
|
|
2647
2685
|
})
|
|
2648
2686
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2649
2687
|
__decorateClass([
|
|
2650
|
-
(0,
|
|
2688
|
+
(0, import_typeorm17.Column)({
|
|
2651
2689
|
name: "expected_salary_to",
|
|
2652
2690
|
type: "decimal",
|
|
2653
2691
|
precision: 10,
|
|
@@ -2656,16 +2694,16 @@ __decorateClass([
|
|
|
2656
2694
|
})
|
|
2657
2695
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2658
2696
|
__decorateClass([
|
|
2659
|
-
(0,
|
|
2697
|
+
(0, import_typeorm17.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2660
2698
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2661
2699
|
__decorateClass([
|
|
2662
|
-
(0,
|
|
2700
|
+
(0, import_typeorm17.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2663
2701
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2664
2702
|
__decorateClass([
|
|
2665
|
-
(0,
|
|
2703
|
+
(0, import_typeorm17.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2666
2704
|
], Job.prototype, "duration", 2);
|
|
2667
2705
|
__decorateClass([
|
|
2668
|
-
(0,
|
|
2706
|
+
(0, import_typeorm17.Column)({
|
|
2669
2707
|
name: "duration_type",
|
|
2670
2708
|
type: "enum",
|
|
2671
2709
|
enum: DurationTypeEnum,
|
|
@@ -2673,13 +2711,13 @@ __decorateClass([
|
|
|
2673
2711
|
})
|
|
2674
2712
|
], Job.prototype, "durationType", 2);
|
|
2675
2713
|
__decorateClass([
|
|
2676
|
-
(0,
|
|
2714
|
+
(0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2677
2715
|
], Job.prototype, "description", 2);
|
|
2678
2716
|
__decorateClass([
|
|
2679
|
-
(0,
|
|
2717
|
+
(0, import_typeorm17.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2680
2718
|
], Job.prototype, "additionalComment", 2);
|
|
2681
2719
|
__decorateClass([
|
|
2682
|
-
(0,
|
|
2720
|
+
(0, import_typeorm17.Column)({
|
|
2683
2721
|
name: "onboarding_tat",
|
|
2684
2722
|
type: "varchar",
|
|
2685
2723
|
length: 50,
|
|
@@ -2687,14 +2725,14 @@ __decorateClass([
|
|
|
2687
2725
|
})
|
|
2688
2726
|
], Job.prototype, "onboardingTat", 2);
|
|
2689
2727
|
__decorateClass([
|
|
2690
|
-
(0,
|
|
2728
|
+
(0, import_typeorm17.Column)({
|
|
2691
2729
|
name: "candidate_communication_skills",
|
|
2692
2730
|
type: "varchar",
|
|
2693
2731
|
nullable: true
|
|
2694
2732
|
})
|
|
2695
2733
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2696
2734
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2735
|
+
(0, import_typeorm17.Column)({
|
|
2698
2736
|
name: "step_completed",
|
|
2699
2737
|
type: "enum",
|
|
2700
2738
|
enum: Step,
|
|
@@ -2702,7 +2740,7 @@ __decorateClass([
|
|
|
2702
2740
|
})
|
|
2703
2741
|
], Job.prototype, "stepCompleted", 2);
|
|
2704
2742
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2743
|
+
(0, import_typeorm17.Column)({
|
|
2706
2744
|
name: "status",
|
|
2707
2745
|
type: "enum",
|
|
2708
2746
|
enum: JobStatusEnum,
|
|
@@ -2710,30 +2748,35 @@ __decorateClass([
|
|
|
2710
2748
|
})
|
|
2711
2749
|
], Job.prototype, "status", 2);
|
|
2712
2750
|
__decorateClass([
|
|
2713
|
-
(0,
|
|
2751
|
+
(0, import_typeorm17.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2714
2752
|
], Job.prototype, "viewedCount", 2);
|
|
2715
2753
|
__decorateClass([
|
|
2716
|
-
(0,
|
|
2754
|
+
(0, import_typeorm17.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2717
2755
|
], Job.prototype, "applicationCount", 2);
|
|
2718
2756
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2757
|
+
(0, import_typeorm17.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2720
2758
|
], Job.prototype, "jobSkills", 2);
|
|
2721
2759
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2760
|
+
(0, import_typeorm17.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2723
2761
|
cascade: true
|
|
2724
2762
|
})
|
|
2725
2763
|
], Job.prototype, "jobApplications", 2);
|
|
2726
2764
|
__decorateClass([
|
|
2727
|
-
(0,
|
|
2765
|
+
(0, import_typeorm17.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2728
2766
|
cascade: true
|
|
2729
2767
|
})
|
|
2730
2768
|
], Job.prototype, "interviews", 2);
|
|
2769
|
+
__decorateClass([
|
|
2770
|
+
(0, import_typeorm17.OneToMany)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2771
|
+
cascade: true
|
|
2772
|
+
})
|
|
2773
|
+
], Job.prototype, "recommendations", 2);
|
|
2731
2774
|
Job = __decorateClass([
|
|
2732
|
-
(0,
|
|
2775
|
+
(0, import_typeorm17.Entity)("jobs")
|
|
2733
2776
|
], Job);
|
|
2734
2777
|
|
|
2735
2778
|
// src/entities/bank-details.entity.ts
|
|
2736
|
-
var
|
|
2779
|
+
var import_typeorm18 = require("typeorm");
|
|
2737
2780
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2738
2781
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2739
2782
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2748,48 +2791,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2748
2791
|
};
|
|
2749
2792
|
// individual index to find bank details by user
|
|
2750
2793
|
__decorateClass([
|
|
2751
|
-
(0,
|
|
2752
|
-
(0,
|
|
2794
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2795
|
+
(0, import_typeorm18.Index)()
|
|
2753
2796
|
], BankDetail.prototype, "userId", 2);
|
|
2754
2797
|
__decorateClass([
|
|
2755
|
-
(0,
|
|
2756
|
-
(0,
|
|
2798
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2799
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2757
2800
|
], BankDetail.prototype, "user", 2);
|
|
2758
2801
|
__decorateClass([
|
|
2759
|
-
(0,
|
|
2802
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2760
2803
|
], BankDetail.prototype, "name", 2);
|
|
2761
2804
|
__decorateClass([
|
|
2762
|
-
(0,
|
|
2805
|
+
(0, import_typeorm18.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2763
2806
|
], BankDetail.prototype, "mobile", 2);
|
|
2764
2807
|
__decorateClass([
|
|
2765
|
-
(0,
|
|
2808
|
+
(0, import_typeorm18.Column)({ name: "email", type: "varchar", unique: true })
|
|
2766
2809
|
], BankDetail.prototype, "email", 2);
|
|
2767
2810
|
__decorateClass([
|
|
2768
|
-
(0,
|
|
2811
|
+
(0, import_typeorm18.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2769
2812
|
], BankDetail.prototype, "address", 2);
|
|
2770
2813
|
__decorateClass([
|
|
2771
|
-
(0,
|
|
2814
|
+
(0, import_typeorm18.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2772
2815
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2773
2816
|
__decorateClass([
|
|
2774
|
-
(0,
|
|
2817
|
+
(0, import_typeorm18.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2775
2818
|
], BankDetail.prototype, "bankName", 2);
|
|
2776
2819
|
__decorateClass([
|
|
2777
|
-
(0,
|
|
2820
|
+
(0, import_typeorm18.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2778
2821
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2779
2822
|
__decorateClass([
|
|
2780
|
-
(0,
|
|
2823
|
+
(0, import_typeorm18.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2781
2824
|
], BankDetail.prototype, "branchName", 2);
|
|
2782
2825
|
__decorateClass([
|
|
2783
|
-
(0,
|
|
2826
|
+
(0, import_typeorm18.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2784
2827
|
], BankDetail.prototype, "routingNo", 2);
|
|
2785
2828
|
__decorateClass([
|
|
2786
|
-
(0,
|
|
2829
|
+
(0, import_typeorm18.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2787
2830
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2788
2831
|
__decorateClass([
|
|
2789
|
-
(0,
|
|
2832
|
+
(0, import_typeorm18.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2790
2833
|
], BankDetail.prototype, "iban", 2);
|
|
2791
2834
|
__decorateClass([
|
|
2792
|
-
(0,
|
|
2835
|
+
(0, import_typeorm18.Column)({
|
|
2793
2836
|
name: "account_type",
|
|
2794
2837
|
type: "enum",
|
|
2795
2838
|
enum: BankAccountTypeEnum,
|
|
@@ -2797,7 +2840,7 @@ __decorateClass([
|
|
|
2797
2840
|
})
|
|
2798
2841
|
], BankDetail.prototype, "accountType", 2);
|
|
2799
2842
|
__decorateClass([
|
|
2800
|
-
(0,
|
|
2843
|
+
(0, import_typeorm18.Column)({
|
|
2801
2844
|
name: "account_scope",
|
|
2802
2845
|
type: "enum",
|
|
2803
2846
|
enum: BankAccountScopeEnum,
|
|
@@ -2805,210 +2848,210 @@ __decorateClass([
|
|
|
2805
2848
|
})
|
|
2806
2849
|
], BankDetail.prototype, "accountScope", 2);
|
|
2807
2850
|
BankDetail = __decorateClass([
|
|
2808
|
-
(0,
|
|
2851
|
+
(0, import_typeorm18.Entity)("bank_details")
|
|
2809
2852
|
], BankDetail);
|
|
2810
2853
|
|
|
2811
2854
|
// src/entities/system-preference.entity.ts
|
|
2812
|
-
var
|
|
2855
|
+
var import_typeorm19 = require("typeorm");
|
|
2813
2856
|
var SystemPreference = class extends BaseEntity {
|
|
2814
2857
|
};
|
|
2815
2858
|
// individual index to find system preference by user
|
|
2816
2859
|
__decorateClass([
|
|
2817
|
-
(0,
|
|
2818
|
-
(0,
|
|
2860
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2861
|
+
(0, import_typeorm19.Index)()
|
|
2819
2862
|
], SystemPreference.prototype, "userId", 2);
|
|
2820
2863
|
__decorateClass([
|
|
2821
|
-
(0,
|
|
2822
|
-
(0,
|
|
2864
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2865
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2823
2866
|
], SystemPreference.prototype, "user", 2);
|
|
2824
2867
|
__decorateClass([
|
|
2825
|
-
(0,
|
|
2868
|
+
(0, import_typeorm19.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2826
2869
|
], SystemPreference.prototype, "key", 2);
|
|
2827
2870
|
__decorateClass([
|
|
2828
|
-
(0,
|
|
2871
|
+
(0, import_typeorm19.Column)({ name: "value", type: "boolean", default: false })
|
|
2829
2872
|
], SystemPreference.prototype, "value", 2);
|
|
2830
2873
|
SystemPreference = __decorateClass([
|
|
2831
|
-
(0,
|
|
2874
|
+
(0, import_typeorm19.Entity)("system_preferences")
|
|
2832
2875
|
], SystemPreference);
|
|
2833
2876
|
|
|
2834
2877
|
// src/entities/freelancer-experience.entity.ts
|
|
2835
|
-
var
|
|
2878
|
+
var import_typeorm20 = require("typeorm");
|
|
2836
2879
|
var FreelancerExperience = class extends BaseEntity {
|
|
2837
2880
|
};
|
|
2838
2881
|
// individual index to find experence by user
|
|
2839
2882
|
__decorateClass([
|
|
2840
|
-
(0,
|
|
2841
|
-
(0,
|
|
2883
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2884
|
+
(0, import_typeorm20.Index)()
|
|
2842
2885
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2843
2886
|
__decorateClass([
|
|
2844
|
-
(0,
|
|
2845
|
-
(0,
|
|
2887
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2888
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2846
2889
|
], FreelancerExperience.prototype, "user", 2);
|
|
2847
2890
|
__decorateClass([
|
|
2848
|
-
(0,
|
|
2891
|
+
(0, import_typeorm20.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2849
2892
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2850
2893
|
__decorateClass([
|
|
2851
|
-
(0,
|
|
2894
|
+
(0, import_typeorm20.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2852
2895
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2853
2896
|
__decorateClass([
|
|
2854
|
-
(0,
|
|
2897
|
+
(0, import_typeorm20.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2855
2898
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2856
2899
|
__decorateClass([
|
|
2857
|
-
(0,
|
|
2900
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2858
2901
|
], FreelancerExperience.prototype, "description", 2);
|
|
2859
2902
|
FreelancerExperience = __decorateClass([
|
|
2860
|
-
(0,
|
|
2903
|
+
(0, import_typeorm20.Entity)("freelancer_experiences")
|
|
2861
2904
|
], FreelancerExperience);
|
|
2862
2905
|
|
|
2863
2906
|
// src/entities/freelancer-education.entity.ts
|
|
2864
|
-
var
|
|
2907
|
+
var import_typeorm21 = require("typeorm");
|
|
2865
2908
|
var FreelancerEducation = class extends BaseEntity {
|
|
2866
2909
|
};
|
|
2867
2910
|
// individual index to find education by user
|
|
2868
2911
|
__decorateClass([
|
|
2869
|
-
(0,
|
|
2870
|
-
(0,
|
|
2912
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2913
|
+
(0, import_typeorm21.Index)()
|
|
2871
2914
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2872
2915
|
__decorateClass([
|
|
2873
|
-
(0,
|
|
2874
|
-
(0,
|
|
2916
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2917
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2875
2918
|
], FreelancerEducation.prototype, "user", 2);
|
|
2876
2919
|
__decorateClass([
|
|
2877
|
-
(0,
|
|
2920
|
+
(0, import_typeorm21.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2878
2921
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2879
2922
|
__decorateClass([
|
|
2880
|
-
(0,
|
|
2923
|
+
(0, import_typeorm21.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2881
2924
|
], FreelancerEducation.prototype, "university", 2);
|
|
2882
2925
|
__decorateClass([
|
|
2883
|
-
(0,
|
|
2926
|
+
(0, import_typeorm21.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2884
2927
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2885
2928
|
FreelancerEducation = __decorateClass([
|
|
2886
|
-
(0,
|
|
2929
|
+
(0, import_typeorm21.Entity)("freelancer_educations")
|
|
2887
2930
|
], FreelancerEducation);
|
|
2888
2931
|
|
|
2889
2932
|
// src/entities/freelancer-project.entity.ts
|
|
2890
|
-
var
|
|
2933
|
+
var import_typeorm22 = require("typeorm");
|
|
2891
2934
|
var FreelancerProject = class extends BaseEntity {
|
|
2892
2935
|
};
|
|
2893
2936
|
// individual index to find project by user
|
|
2894
2937
|
__decorateClass([
|
|
2895
|
-
(0,
|
|
2896
|
-
(0,
|
|
2938
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2939
|
+
(0, import_typeorm22.Index)()
|
|
2897
2940
|
], FreelancerProject.prototype, "userId", 2);
|
|
2898
2941
|
__decorateClass([
|
|
2899
|
-
(0,
|
|
2900
|
-
(0,
|
|
2942
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
2943
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2901
2944
|
], FreelancerProject.prototype, "user", 2);
|
|
2902
2945
|
__decorateClass([
|
|
2903
|
-
(0,
|
|
2946
|
+
(0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2904
2947
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2905
2948
|
__decorateClass([
|
|
2906
|
-
(0,
|
|
2949
|
+
(0, import_typeorm22.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2907
2950
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2908
2951
|
__decorateClass([
|
|
2909
|
-
(0,
|
|
2952
|
+
(0, import_typeorm22.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2910
2953
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2911
2954
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
2955
|
+
(0, import_typeorm22.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2913
2956
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2914
2957
|
__decorateClass([
|
|
2915
|
-
(0,
|
|
2958
|
+
(0, import_typeorm22.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2916
2959
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2917
2960
|
__decorateClass([
|
|
2918
|
-
(0,
|
|
2961
|
+
(0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2919
2962
|
], FreelancerProject.prototype, "description", 2);
|
|
2920
2963
|
FreelancerProject = __decorateClass([
|
|
2921
|
-
(0,
|
|
2964
|
+
(0, import_typeorm22.Entity)("freelancer_projects")
|
|
2922
2965
|
], FreelancerProject);
|
|
2923
2966
|
|
|
2924
2967
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2925
|
-
var
|
|
2968
|
+
var import_typeorm23 = require("typeorm");
|
|
2926
2969
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2927
2970
|
};
|
|
2928
2971
|
// individual index to find case study by user
|
|
2929
2972
|
__decorateClass([
|
|
2930
|
-
(0,
|
|
2931
|
-
(0,
|
|
2973
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2974
|
+
(0, import_typeorm23.Index)()
|
|
2932
2975
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2933
2976
|
__decorateClass([
|
|
2934
|
-
(0,
|
|
2935
|
-
(0,
|
|
2977
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
2978
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2936
2979
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2937
2980
|
__decorateClass([
|
|
2938
|
-
(0,
|
|
2981
|
+
(0, import_typeorm23.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2939
2982
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2940
2983
|
__decorateClass([
|
|
2941
|
-
(0,
|
|
2984
|
+
(0, import_typeorm23.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2942
2985
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2943
2986
|
__decorateClass([
|
|
2944
|
-
(0,
|
|
2987
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2945
2988
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2946
2989
|
FreelancerCaseStudy = __decorateClass([
|
|
2947
|
-
(0,
|
|
2990
|
+
(0, import_typeorm23.Entity)("freelancer_case_studies")
|
|
2948
2991
|
], FreelancerCaseStudy);
|
|
2949
2992
|
|
|
2950
2993
|
// src/entities/freelancer-skill.entity.ts
|
|
2951
|
-
var
|
|
2994
|
+
var import_typeorm24 = require("typeorm");
|
|
2952
2995
|
var FreelancerSkill = class extends BaseEntity {
|
|
2953
2996
|
};
|
|
2954
2997
|
// individual index to find core skills by user
|
|
2955
2998
|
__decorateClass([
|
|
2956
|
-
(0,
|
|
2957
|
-
(0,
|
|
2999
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3000
|
+
(0, import_typeorm24.Index)()
|
|
2958
3001
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2959
3002
|
__decorateClass([
|
|
2960
|
-
(0,
|
|
2961
|
-
(0,
|
|
3003
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3004
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
2962
3005
|
], FreelancerSkill.prototype, "user", 2);
|
|
2963
3006
|
__decorateClass([
|
|
2964
|
-
(0,
|
|
3007
|
+
(0, import_typeorm24.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
2965
3008
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2966
3009
|
FreelancerSkill = __decorateClass([
|
|
2967
|
-
(0,
|
|
3010
|
+
(0, import_typeorm24.Entity)("freelancer_skills")
|
|
2968
3011
|
], FreelancerSkill);
|
|
2969
3012
|
|
|
2970
3013
|
// src/entities/freelancer-tool.entity.ts
|
|
2971
|
-
var
|
|
3014
|
+
var import_typeorm25 = require("typeorm");
|
|
2972
3015
|
var FreelancerTool = class extends BaseEntity {
|
|
2973
3016
|
};
|
|
2974
3017
|
// individual index to find tool by user
|
|
2975
3018
|
__decorateClass([
|
|
2976
|
-
(0,
|
|
2977
|
-
(0,
|
|
3019
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3020
|
+
(0, import_typeorm25.Index)()
|
|
2978
3021
|
], FreelancerTool.prototype, "userId", 2);
|
|
2979
3022
|
__decorateClass([
|
|
2980
|
-
(0,
|
|
2981
|
-
(0,
|
|
3023
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
3024
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
2982
3025
|
], FreelancerTool.prototype, "user", 2);
|
|
2983
3026
|
__decorateClass([
|
|
2984
|
-
(0,
|
|
3027
|
+
(0, import_typeorm25.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
2985
3028
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2986
3029
|
FreelancerTool = __decorateClass([
|
|
2987
|
-
(0,
|
|
3030
|
+
(0, import_typeorm25.Entity)("freelancer_tools")
|
|
2988
3031
|
], FreelancerTool);
|
|
2989
3032
|
|
|
2990
3033
|
// src/entities/freelancer-framework.entity.ts
|
|
2991
|
-
var
|
|
3034
|
+
var import_typeorm26 = require("typeorm");
|
|
2992
3035
|
var FreelancerFramework = class extends BaseEntity {
|
|
2993
3036
|
};
|
|
2994
3037
|
// individual index to find framework by user
|
|
2995
3038
|
__decorateClass([
|
|
2996
|
-
(0,
|
|
2997
|
-
(0,
|
|
3039
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3040
|
+
(0, import_typeorm26.Index)()
|
|
2998
3041
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2999
3042
|
__decorateClass([
|
|
3000
|
-
(0,
|
|
3001
|
-
(0,
|
|
3043
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3044
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
3002
3045
|
], FreelancerFramework.prototype, "user", 2);
|
|
3003
3046
|
__decorateClass([
|
|
3004
|
-
(0,
|
|
3047
|
+
(0, import_typeorm26.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
3005
3048
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3006
3049
|
FreelancerFramework = __decorateClass([
|
|
3007
|
-
(0,
|
|
3050
|
+
(0, import_typeorm26.Entity)("freelancer_frameworks")
|
|
3008
3051
|
], FreelancerFramework);
|
|
3009
3052
|
|
|
3010
3053
|
// src/entities/freelancer-assessment.entity.ts
|
|
3011
|
-
var
|
|
3054
|
+
var import_typeorm27 = require("typeorm");
|
|
3012
3055
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3013
3056
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
3014
3057
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -3024,30 +3067,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3024
3067
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3025
3068
|
};
|
|
3026
3069
|
__decorateClass([
|
|
3027
|
-
(0,
|
|
3028
|
-
(0,
|
|
3070
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3071
|
+
(0, import_typeorm27.Index)()
|
|
3029
3072
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3030
3073
|
__decorateClass([
|
|
3031
|
-
(0,
|
|
3032
|
-
(0,
|
|
3074
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.assessments),
|
|
3075
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
3033
3076
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3034
3077
|
__decorateClass([
|
|
3035
|
-
(0,
|
|
3078
|
+
(0, import_typeorm27.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
3036
3079
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3037
3080
|
__decorateClass([
|
|
3038
|
-
(0,
|
|
3081
|
+
(0, import_typeorm27.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
3039
3082
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3040
3083
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3084
|
+
(0, import_typeorm27.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
3042
3085
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3043
3086
|
__decorateClass([
|
|
3044
|
-
(0,
|
|
3087
|
+
(0, import_typeorm27.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3045
3088
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3046
3089
|
__decorateClass([
|
|
3047
|
-
(0,
|
|
3090
|
+
(0, import_typeorm27.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3048
3091
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3049
3092
|
__decorateClass([
|
|
3050
|
-
(0,
|
|
3093
|
+
(0, import_typeorm27.Column)({
|
|
3051
3094
|
name: "status",
|
|
3052
3095
|
type: "enum",
|
|
3053
3096
|
enum: AssessmentStatusEnum,
|
|
@@ -3055,11 +3098,11 @@ __decorateClass([
|
|
|
3055
3098
|
})
|
|
3056
3099
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3057
3100
|
FreelancerAssessment = __decorateClass([
|
|
3058
|
-
(0,
|
|
3101
|
+
(0, import_typeorm27.Entity)("freelancer_assessments")
|
|
3059
3102
|
], FreelancerAssessment);
|
|
3060
3103
|
|
|
3061
3104
|
// src/entities/freelancer-declaration.entity.ts
|
|
3062
|
-
var
|
|
3105
|
+
var import_typeorm28 = require("typeorm");
|
|
3063
3106
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3064
3107
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3065
3108
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3071,15 +3114,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3071
3114
|
};
|
|
3072
3115
|
// individual index to find declaration by user
|
|
3073
3116
|
__decorateClass([
|
|
3074
|
-
(0,
|
|
3075
|
-
(0,
|
|
3117
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3118
|
+
(0, import_typeorm28.Index)()
|
|
3076
3119
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3077
3120
|
__decorateClass([
|
|
3078
|
-
(0,
|
|
3079
|
-
(0,
|
|
3121
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3122
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
3080
3123
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3081
3124
|
__decorateClass([
|
|
3082
|
-
(0,
|
|
3125
|
+
(0, import_typeorm28.Column)({
|
|
3083
3126
|
name: "document_type",
|
|
3084
3127
|
type: "enum",
|
|
3085
3128
|
enum: DocumentType,
|
|
@@ -3087,144 +3130,144 @@ __decorateClass([
|
|
|
3087
3130
|
})
|
|
3088
3131
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3089
3132
|
__decorateClass([
|
|
3090
|
-
(0,
|
|
3133
|
+
(0, import_typeorm28.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3091
3134
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3092
3135
|
__decorateClass([
|
|
3093
|
-
(0,
|
|
3136
|
+
(0, import_typeorm28.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3094
3137
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3095
3138
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3139
|
+
(0, import_typeorm28.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3097
3140
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3098
3141
|
__decorateClass([
|
|
3099
|
-
(0,
|
|
3142
|
+
(0, import_typeorm28.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3100
3143
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3101
3144
|
FreelancerDeclaration = __decorateClass([
|
|
3102
|
-
(0,
|
|
3145
|
+
(0, import_typeorm28.Entity)("freelancer_declaration")
|
|
3103
3146
|
], FreelancerDeclaration);
|
|
3104
3147
|
|
|
3105
3148
|
// src/entities/company-members-roles.entity.ts
|
|
3106
|
-
var
|
|
3149
|
+
var import_typeorm32 = require("typeorm");
|
|
3107
3150
|
|
|
3108
3151
|
// src/entities/company-role.entity.ts
|
|
3109
|
-
var
|
|
3152
|
+
var import_typeorm31 = require("typeorm");
|
|
3110
3153
|
|
|
3111
3154
|
// src/entities/company-role-permission.entity.ts
|
|
3112
|
-
var
|
|
3155
|
+
var import_typeorm30 = require("typeorm");
|
|
3113
3156
|
|
|
3114
3157
|
// src/entities/permission.entity.ts
|
|
3115
|
-
var
|
|
3158
|
+
var import_typeorm29 = require("typeorm");
|
|
3116
3159
|
var Permission = class extends BaseEntity {
|
|
3117
3160
|
};
|
|
3118
3161
|
__decorateClass([
|
|
3119
|
-
(0,
|
|
3162
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3120
3163
|
], Permission.prototype, "name", 2);
|
|
3121
3164
|
__decorateClass([
|
|
3122
|
-
(0,
|
|
3123
|
-
(0,
|
|
3165
|
+
(0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3166
|
+
(0, import_typeorm29.Index)()
|
|
3124
3167
|
], Permission.prototype, "slug", 2);
|
|
3125
3168
|
__decorateClass([
|
|
3126
|
-
(0,
|
|
3169
|
+
(0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
|
|
3127
3170
|
], Permission.prototype, "description", 2);
|
|
3128
3171
|
__decorateClass([
|
|
3129
|
-
(0,
|
|
3172
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3130
3173
|
], Permission.prototype, "isActive", 2);
|
|
3131
3174
|
Permission = __decorateClass([
|
|
3132
|
-
(0,
|
|
3175
|
+
(0, import_typeorm29.Entity)("permissions")
|
|
3133
3176
|
], Permission);
|
|
3134
3177
|
|
|
3135
3178
|
// src/entities/company-role-permission.entity.ts
|
|
3136
3179
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3137
3180
|
};
|
|
3138
3181
|
__decorateClass([
|
|
3139
|
-
(0,
|
|
3140
|
-
(0,
|
|
3182
|
+
(0, import_typeorm30.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3183
|
+
(0, import_typeorm30.Index)()
|
|
3141
3184
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3142
3185
|
__decorateClass([
|
|
3143
|
-
(0,
|
|
3186
|
+
(0, import_typeorm30.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3144
3187
|
onDelete: "CASCADE"
|
|
3145
3188
|
}),
|
|
3146
|
-
(0,
|
|
3189
|
+
(0, import_typeorm30.JoinColumn)({ name: "company_role_id" })
|
|
3147
3190
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3148
3191
|
__decorateClass([
|
|
3149
|
-
(0,
|
|
3150
|
-
(0,
|
|
3192
|
+
(0, import_typeorm30.Column)({ name: "permission_id", type: "integer" }),
|
|
3193
|
+
(0, import_typeorm30.Index)()
|
|
3151
3194
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3152
3195
|
__decorateClass([
|
|
3153
|
-
(0,
|
|
3154
|
-
(0,
|
|
3196
|
+
(0, import_typeorm30.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3197
|
+
(0, import_typeorm30.JoinColumn)({ name: "permission_id" })
|
|
3155
3198
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3156
3199
|
__decorateClass([
|
|
3157
|
-
(0,
|
|
3200
|
+
(0, import_typeorm30.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3158
3201
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3159
3202
|
CompanyRolePermission = __decorateClass([
|
|
3160
|
-
(0,
|
|
3203
|
+
(0, import_typeorm30.Entity)("company_role_permissions")
|
|
3161
3204
|
], CompanyRolePermission);
|
|
3162
3205
|
|
|
3163
3206
|
// src/entities/company-role.entity.ts
|
|
3164
3207
|
var CompanyRole = class extends BaseEntity {
|
|
3165
3208
|
};
|
|
3166
3209
|
__decorateClass([
|
|
3167
|
-
(0,
|
|
3168
|
-
(0,
|
|
3210
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3211
|
+
(0, import_typeorm31.Index)()
|
|
3169
3212
|
], CompanyRole.prototype, "userId", 2);
|
|
3170
3213
|
__decorateClass([
|
|
3171
|
-
(0,
|
|
3172
|
-
(0,
|
|
3214
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.otps),
|
|
3215
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3173
3216
|
], CompanyRole.prototype, "user", 2);
|
|
3174
3217
|
__decorateClass([
|
|
3175
|
-
(0,
|
|
3218
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar" })
|
|
3176
3219
|
], CompanyRole.prototype, "name", 2);
|
|
3177
3220
|
__decorateClass([
|
|
3178
|
-
(0,
|
|
3179
|
-
(0,
|
|
3221
|
+
(0, import_typeorm31.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3222
|
+
(0, import_typeorm31.Index)()
|
|
3180
3223
|
], CompanyRole.prototype, "slug", 2);
|
|
3181
3224
|
__decorateClass([
|
|
3182
|
-
(0,
|
|
3225
|
+
(0, import_typeorm31.Column)({ name: "description", type: "text", nullable: true })
|
|
3183
3226
|
], CompanyRole.prototype, "description", 2);
|
|
3184
3227
|
__decorateClass([
|
|
3185
|
-
(0,
|
|
3228
|
+
(0, import_typeorm31.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3186
3229
|
], CompanyRole.prototype, "isActive", 2);
|
|
3187
3230
|
__decorateClass([
|
|
3188
|
-
(0,
|
|
3231
|
+
(0, import_typeorm31.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3189
3232
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3190
3233
|
CompanyRole = __decorateClass([
|
|
3191
|
-
(0,
|
|
3234
|
+
(0, import_typeorm31.Entity)("company_roles")
|
|
3192
3235
|
], CompanyRole);
|
|
3193
3236
|
|
|
3194
3237
|
// src/entities/company-members-roles.entity.ts
|
|
3195
3238
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3196
3239
|
};
|
|
3197
3240
|
__decorateClass([
|
|
3198
|
-
(0,
|
|
3199
|
-
(0,
|
|
3241
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3242
|
+
(0, import_typeorm32.Index)()
|
|
3200
3243
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3201
3244
|
__decorateClass([
|
|
3202
|
-
(0,
|
|
3203
|
-
(0,
|
|
3245
|
+
(0, import_typeorm32.ManyToOne)(() => User),
|
|
3246
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
3204
3247
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3205
3248
|
__decorateClass([
|
|
3206
|
-
(0,
|
|
3207
|
-
(0,
|
|
3249
|
+
(0, import_typeorm32.ManyToOne)(() => CompanyRole),
|
|
3250
|
+
(0, import_typeorm32.JoinColumn)({ name: "company_role_id" })
|
|
3208
3251
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3209
3252
|
__decorateClass([
|
|
3210
|
-
(0,
|
|
3211
|
-
(0,
|
|
3253
|
+
(0, import_typeorm32.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3254
|
+
(0, import_typeorm32.Index)()
|
|
3212
3255
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3213
3256
|
__decorateClass([
|
|
3214
|
-
(0,
|
|
3257
|
+
(0, import_typeorm32.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3215
3258
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3216
3259
|
CompanyMemberRole = __decorateClass([
|
|
3217
|
-
(0,
|
|
3260
|
+
(0, import_typeorm32.Entity)("company_member_roles")
|
|
3218
3261
|
], CompanyMemberRole);
|
|
3219
3262
|
|
|
3220
3263
|
// src/entities/assessment-answer.entity.ts
|
|
3221
|
-
var
|
|
3264
|
+
var import_typeorm35 = require("typeorm");
|
|
3222
3265
|
|
|
3223
3266
|
// src/entities/assessment-question.entity.ts
|
|
3224
|
-
var
|
|
3267
|
+
var import_typeorm34 = require("typeorm");
|
|
3225
3268
|
|
|
3226
3269
|
// src/entities/assessment-question-option.entity.ts
|
|
3227
|
-
var
|
|
3270
|
+
var import_typeorm33 = require("typeorm");
|
|
3228
3271
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3229
3272
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3230
3273
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3234,21 +3277,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3234
3277
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3235
3278
|
};
|
|
3236
3279
|
__decorateClass([
|
|
3237
|
-
(0,
|
|
3238
|
-
(0,
|
|
3280
|
+
(0, import_typeorm33.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3281
|
+
(0, import_typeorm33.Index)()
|
|
3239
3282
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3240
3283
|
__decorateClass([
|
|
3241
|
-
(0,
|
|
3284
|
+
(0, import_typeorm33.ManyToOne)(
|
|
3242
3285
|
() => AssessmetQuestion,
|
|
3243
3286
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3244
3287
|
),
|
|
3245
|
-
(0,
|
|
3288
|
+
(0, import_typeorm33.JoinColumn)({ name: "question_id" })
|
|
3246
3289
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3247
3290
|
__decorateClass([
|
|
3248
|
-
(0,
|
|
3291
|
+
(0, import_typeorm33.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3249
3292
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3250
3293
|
__decorateClass([
|
|
3251
|
-
(0,
|
|
3294
|
+
(0, import_typeorm33.Column)({
|
|
3252
3295
|
name: "answer_type",
|
|
3253
3296
|
type: "enum",
|
|
3254
3297
|
enum: AnswerTypeEnum,
|
|
@@ -3256,13 +3299,13 @@ __decorateClass([
|
|
|
3256
3299
|
})
|
|
3257
3300
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3258
3301
|
__decorateClass([
|
|
3259
|
-
(0,
|
|
3302
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3260
3303
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3261
3304
|
__decorateClass([
|
|
3262
|
-
(0,
|
|
3305
|
+
(0, import_typeorm33.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3263
3306
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3264
3307
|
AssessmetQuestionOption = __decorateClass([
|
|
3265
|
-
(0,
|
|
3308
|
+
(0, import_typeorm33.Entity)("assessment_question_options")
|
|
3266
3309
|
], AssessmetQuestionOption);
|
|
3267
3310
|
|
|
3268
3311
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3274,10 +3317,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3274
3317
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3275
3318
|
};
|
|
3276
3319
|
__decorateClass([
|
|
3277
|
-
(0,
|
|
3320
|
+
(0, import_typeorm34.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3278
3321
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3279
3322
|
__decorateClass([
|
|
3280
|
-
(0,
|
|
3323
|
+
(0, import_typeorm34.Column)({
|
|
3281
3324
|
name: "question_for",
|
|
3282
3325
|
type: "enum",
|
|
3283
3326
|
enum: QuestionForEnum,
|
|
@@ -3285,16 +3328,16 @@ __decorateClass([
|
|
|
3285
3328
|
})
|
|
3286
3329
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3287
3330
|
__decorateClass([
|
|
3288
|
-
(0,
|
|
3331
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3289
3332
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3290
3333
|
__decorateClass([
|
|
3291
|
-
(0,
|
|
3334
|
+
(0, import_typeorm34.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3292
3335
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3293
3336
|
__decorateClass([
|
|
3294
|
-
(0,
|
|
3337
|
+
(0, import_typeorm34.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3295
3338
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3296
3339
|
AssessmetQuestion = __decorateClass([
|
|
3297
|
-
(0,
|
|
3340
|
+
(0, import_typeorm34.Entity)("assessment_questions")
|
|
3298
3341
|
], AssessmetQuestion);
|
|
3299
3342
|
|
|
3300
3343
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3307,118 +3350,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3307
3350
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3308
3351
|
};
|
|
3309
3352
|
__decorateClass([
|
|
3310
|
-
(0,
|
|
3311
|
-
(0,
|
|
3353
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer" }),
|
|
3354
|
+
(0, import_typeorm35.Index)()
|
|
3312
3355
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3313
3356
|
__decorateClass([
|
|
3314
|
-
(0,
|
|
3315
|
-
(0,
|
|
3357
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3358
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3316
3359
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3317
3360
|
__decorateClass([
|
|
3318
|
-
(0,
|
|
3319
|
-
(0,
|
|
3361
|
+
(0, import_typeorm35.Column)({ name: "question_id", type: "integer" }),
|
|
3362
|
+
(0, import_typeorm35.Index)()
|
|
3320
3363
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3321
3364
|
__decorateClass([
|
|
3322
|
-
(0,
|
|
3365
|
+
(0, import_typeorm35.ManyToOne)(
|
|
3323
3366
|
() => AssessmetQuestion,
|
|
3324
3367
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3325
3368
|
),
|
|
3326
|
-
(0,
|
|
3369
|
+
(0, import_typeorm35.JoinColumn)({ name: "question_id" })
|
|
3327
3370
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3328
3371
|
__decorateClass([
|
|
3329
|
-
(0,
|
|
3330
|
-
(0,
|
|
3372
|
+
(0, import_typeorm35.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3373
|
+
(0, import_typeorm35.Index)()
|
|
3331
3374
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3332
3375
|
__decorateClass([
|
|
3333
|
-
(0,
|
|
3376
|
+
(0, import_typeorm35.ManyToOne)(
|
|
3334
3377
|
() => AssessmetQuestionOption,
|
|
3335
3378
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3336
3379
|
),
|
|
3337
|
-
(0,
|
|
3380
|
+
(0, import_typeorm35.JoinColumn)({ name: "selected_option_id" })
|
|
3338
3381
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3339
3382
|
__decorateClass([
|
|
3340
|
-
(0,
|
|
3383
|
+
(0, import_typeorm35.Column)({
|
|
3341
3384
|
name: "selected_answer_type",
|
|
3342
3385
|
type: "enum",
|
|
3343
3386
|
enum: SelectedAnswerTypeEnum
|
|
3344
3387
|
})
|
|
3345
3388
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3346
3389
|
__decorateClass([
|
|
3347
|
-
(0,
|
|
3390
|
+
(0, import_typeorm35.Column)({ name: "score", type: "float" })
|
|
3348
3391
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3349
3392
|
AssessmentAnswer = __decorateClass([
|
|
3350
|
-
(0,
|
|
3393
|
+
(0, import_typeorm35.Entity)("assessment_answers")
|
|
3351
3394
|
], AssessmentAnswer);
|
|
3352
3395
|
|
|
3353
3396
|
// src/entities/company-skill.entity.ts
|
|
3354
|
-
var
|
|
3397
|
+
var import_typeorm36 = require("typeorm");
|
|
3355
3398
|
var CompanySkill = class extends BaseEntity {
|
|
3356
3399
|
};
|
|
3357
3400
|
// individual index to find core skills by user
|
|
3358
3401
|
__decorateClass([
|
|
3359
|
-
(0,
|
|
3360
|
-
(0,
|
|
3402
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3403
|
+
(0, import_typeorm36.Index)()
|
|
3361
3404
|
], CompanySkill.prototype, "userId", 2);
|
|
3362
3405
|
__decorateClass([
|
|
3363
|
-
(0,
|
|
3364
|
-
(0,
|
|
3406
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3407
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
3365
3408
|
], CompanySkill.prototype, "user", 2);
|
|
3366
3409
|
__decorateClass([
|
|
3367
|
-
(0,
|
|
3410
|
+
(0, import_typeorm36.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3368
3411
|
], CompanySkill.prototype, "skillName", 2);
|
|
3369
3412
|
CompanySkill = __decorateClass([
|
|
3370
|
-
(0,
|
|
3413
|
+
(0, import_typeorm36.Entity)("company_skills")
|
|
3371
3414
|
], CompanySkill);
|
|
3372
3415
|
|
|
3373
3416
|
// src/entities/admin-user-role.entity.ts
|
|
3374
|
-
var
|
|
3417
|
+
var import_typeorm40 = require("typeorm");
|
|
3375
3418
|
|
|
3376
3419
|
// src/entities/admin-role.entity.ts
|
|
3377
|
-
var
|
|
3420
|
+
var import_typeorm39 = require("typeorm");
|
|
3378
3421
|
|
|
3379
3422
|
// src/entities/admin-role-permission.entity.ts
|
|
3380
|
-
var
|
|
3423
|
+
var import_typeorm38 = require("typeorm");
|
|
3381
3424
|
|
|
3382
3425
|
// src/entities/admin-permission.entity.ts
|
|
3383
|
-
var
|
|
3426
|
+
var import_typeorm37 = require("typeorm");
|
|
3384
3427
|
var AdminPermission = class extends BaseEntity {
|
|
3385
3428
|
};
|
|
3386
3429
|
__decorateClass([
|
|
3387
|
-
(0,
|
|
3430
|
+
(0, import_typeorm37.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3388
3431
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3389
3432
|
__decorateClass([
|
|
3390
|
-
(0,
|
|
3433
|
+
(0, import_typeorm37.Column)({
|
|
3391
3434
|
name: "permission_slug",
|
|
3392
3435
|
type: "varchar",
|
|
3393
3436
|
unique: true,
|
|
3394
3437
|
nullable: true
|
|
3395
3438
|
}),
|
|
3396
|
-
(0,
|
|
3439
|
+
(0, import_typeorm37.Index)()
|
|
3397
3440
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3398
3441
|
__decorateClass([
|
|
3399
|
-
(0,
|
|
3442
|
+
(0, import_typeorm37.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3400
3443
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3401
3444
|
__decorateClass([
|
|
3402
|
-
(0,
|
|
3445
|
+
(0, import_typeorm37.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3403
3446
|
], AdminPermission.prototype, "module", 2);
|
|
3404
3447
|
__decorateClass([
|
|
3405
|
-
(0,
|
|
3448
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3406
3449
|
], AdminPermission.prototype, "isActive", 2);
|
|
3407
3450
|
__decorateClass([
|
|
3408
|
-
(0,
|
|
3451
|
+
(0, import_typeorm37.OneToMany)(
|
|
3409
3452
|
() => AdminRolePermission,
|
|
3410
3453
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3411
3454
|
)
|
|
3412
3455
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3413
3456
|
AdminPermission = __decorateClass([
|
|
3414
|
-
(0,
|
|
3457
|
+
(0, import_typeorm37.Entity)("admin_permissions")
|
|
3415
3458
|
], AdminPermission);
|
|
3416
3459
|
|
|
3417
3460
|
// src/entities/admin-role-permission.entity.ts
|
|
3418
3461
|
var AdminRolePermission = class extends BaseEntity {
|
|
3419
3462
|
};
|
|
3420
3463
|
__decorateClass([
|
|
3421
|
-
(0,
|
|
3464
|
+
(0, import_typeorm38.Column)({
|
|
3422
3465
|
name: "role_id",
|
|
3423
3466
|
type: "int",
|
|
3424
3467
|
nullable: true,
|
|
@@ -3426,11 +3469,11 @@ __decorateClass([
|
|
|
3426
3469
|
})
|
|
3427
3470
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3428
3471
|
__decorateClass([
|
|
3429
|
-
(0,
|
|
3430
|
-
(0,
|
|
3472
|
+
(0, import_typeorm38.ManyToOne)(() => AdminRole),
|
|
3473
|
+
(0, import_typeorm38.JoinColumn)({ name: "role_id" })
|
|
3431
3474
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3432
3475
|
__decorateClass([
|
|
3433
|
-
(0,
|
|
3476
|
+
(0, import_typeorm38.Column)({
|
|
3434
3477
|
name: "permission_id",
|
|
3435
3478
|
type: "int",
|
|
3436
3479
|
nullable: true,
|
|
@@ -3438,47 +3481,47 @@ __decorateClass([
|
|
|
3438
3481
|
})
|
|
3439
3482
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3440
3483
|
__decorateClass([
|
|
3441
|
-
(0,
|
|
3442
|
-
(0,
|
|
3484
|
+
(0, import_typeorm38.ManyToOne)(() => AdminPermission),
|
|
3485
|
+
(0, import_typeorm38.JoinColumn)({ name: "permission_id" })
|
|
3443
3486
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3444
3487
|
AdminRolePermission = __decorateClass([
|
|
3445
|
-
(0,
|
|
3488
|
+
(0, import_typeorm38.Entity)("admin_role_permissions")
|
|
3446
3489
|
], AdminRolePermission);
|
|
3447
3490
|
|
|
3448
3491
|
// src/entities/admin-role.entity.ts
|
|
3449
3492
|
var AdminRole = class extends BaseEntity {
|
|
3450
3493
|
};
|
|
3451
3494
|
__decorateClass([
|
|
3452
|
-
(0,
|
|
3495
|
+
(0, import_typeorm39.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3453
3496
|
], AdminRole.prototype, "roleName", 2);
|
|
3454
3497
|
__decorateClass([
|
|
3455
|
-
(0,
|
|
3456
|
-
(0,
|
|
3498
|
+
(0, import_typeorm39.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3499
|
+
(0, import_typeorm39.Index)()
|
|
3457
3500
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3458
3501
|
__decorateClass([
|
|
3459
|
-
(0,
|
|
3502
|
+
(0, import_typeorm39.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3460
3503
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3461
3504
|
__decorateClass([
|
|
3462
|
-
(0,
|
|
3505
|
+
(0, import_typeorm39.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3463
3506
|
], AdminRole.prototype, "isActive", 2);
|
|
3464
3507
|
__decorateClass([
|
|
3465
|
-
(0,
|
|
3508
|
+
(0, import_typeorm39.OneToMany)(
|
|
3466
3509
|
() => AdminRolePermission,
|
|
3467
3510
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3468
3511
|
)
|
|
3469
3512
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3470
3513
|
__decorateClass([
|
|
3471
|
-
(0,
|
|
3514
|
+
(0, import_typeorm39.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3472
3515
|
], AdminRole.prototype, "userRoles", 2);
|
|
3473
3516
|
AdminRole = __decorateClass([
|
|
3474
|
-
(0,
|
|
3517
|
+
(0, import_typeorm39.Entity)("admin_roles")
|
|
3475
3518
|
], AdminRole);
|
|
3476
3519
|
|
|
3477
3520
|
// src/entities/admin-user-role.entity.ts
|
|
3478
3521
|
var AdminUserRole = class extends BaseEntity {
|
|
3479
3522
|
};
|
|
3480
3523
|
__decorateClass([
|
|
3481
|
-
(0,
|
|
3524
|
+
(0, import_typeorm40.Column)({
|
|
3482
3525
|
name: "user_id",
|
|
3483
3526
|
type: "int",
|
|
3484
3527
|
nullable: true,
|
|
@@ -3486,11 +3529,11 @@ __decorateClass([
|
|
|
3486
3529
|
})
|
|
3487
3530
|
], AdminUserRole.prototype, "userId", 2);
|
|
3488
3531
|
__decorateClass([
|
|
3489
|
-
(0,
|
|
3490
|
-
(0,
|
|
3532
|
+
(0, import_typeorm40.ManyToOne)(() => User),
|
|
3533
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
3491
3534
|
], AdminUserRole.prototype, "user", 2);
|
|
3492
3535
|
__decorateClass([
|
|
3493
|
-
(0,
|
|
3536
|
+
(0, import_typeorm40.Column)({
|
|
3494
3537
|
name: "role_id",
|
|
3495
3538
|
type: "int",
|
|
3496
3539
|
nullable: true,
|
|
@@ -3498,34 +3541,34 @@ __decorateClass([
|
|
|
3498
3541
|
})
|
|
3499
3542
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3500
3543
|
__decorateClass([
|
|
3501
|
-
(0,
|
|
3502
|
-
(0,
|
|
3544
|
+
(0, import_typeorm40.ManyToOne)(() => AdminRole),
|
|
3545
|
+
(0, import_typeorm40.JoinColumn)({ name: "role_id" })
|
|
3503
3546
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3504
3547
|
AdminUserRole = __decorateClass([
|
|
3505
|
-
(0,
|
|
3548
|
+
(0, import_typeorm40.Entity)("admin_user_roles")
|
|
3506
3549
|
], AdminUserRole);
|
|
3507
3550
|
|
|
3508
3551
|
// src/entities/freelancer-resume.entity.ts
|
|
3509
|
-
var
|
|
3552
|
+
var import_typeorm41 = require("typeorm");
|
|
3510
3553
|
var FreelancerResume = class extends BaseEntity {
|
|
3511
3554
|
};
|
|
3512
3555
|
// individual index to find profile by user
|
|
3513
3556
|
__decorateClass([
|
|
3514
|
-
(0,
|
|
3515
|
-
(0,
|
|
3557
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3558
|
+
(0, import_typeorm41.Index)()
|
|
3516
3559
|
], FreelancerResume.prototype, "userId", 2);
|
|
3517
3560
|
__decorateClass([
|
|
3518
|
-
(0,
|
|
3519
|
-
(0,
|
|
3561
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3562
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
3520
3563
|
], FreelancerResume.prototype, "user", 2);
|
|
3521
3564
|
__decorateClass([
|
|
3522
|
-
(0,
|
|
3565
|
+
(0, import_typeorm41.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3523
3566
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3524
3567
|
__decorateClass([
|
|
3525
|
-
(0,
|
|
3568
|
+
(0, import_typeorm41.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3526
3569
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3527
3570
|
FreelancerResume = __decorateClass([
|
|
3528
|
-
(0,
|
|
3571
|
+
(0, import_typeorm41.Entity)("freelancer_resumes")
|
|
3529
3572
|
], FreelancerResume);
|
|
3530
3573
|
|
|
3531
3574
|
// src/entities/user.entity.ts
|
|
@@ -3553,51 +3596,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3553
3596
|
var User = class extends BaseEntity {
|
|
3554
3597
|
};
|
|
3555
3598
|
__decorateClass([
|
|
3556
|
-
(0,
|
|
3599
|
+
(0, import_typeorm42.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3557
3600
|
], User.prototype, "uniqueId", 2);
|
|
3558
3601
|
__decorateClass([
|
|
3559
|
-
(0,
|
|
3560
|
-
(0,
|
|
3602
|
+
(0, import_typeorm42.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3603
|
+
(0, import_typeorm42.Index)()
|
|
3561
3604
|
], User.prototype, "parentId", 2);
|
|
3562
3605
|
__decorateClass([
|
|
3563
|
-
(0,
|
|
3564
|
-
(0,
|
|
3606
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3607
|
+
(0, import_typeorm42.JoinColumn)({ name: "parent_id" })
|
|
3565
3608
|
], User.prototype, "parent", 2);
|
|
3566
3609
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3610
|
+
(0, import_typeorm42.OneToMany)(() => User, (user) => user.parent)
|
|
3568
3611
|
], User.prototype, "children", 2);
|
|
3569
3612
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3613
|
+
(0, import_typeorm42.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3571
3614
|
], User.prototype, "username", 2);
|
|
3572
3615
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3616
|
+
(0, import_typeorm42.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3574
3617
|
], User.prototype, "firstName", 2);
|
|
3575
3618
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3619
|
+
(0, import_typeorm42.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3577
3620
|
], User.prototype, "lastName", 2);
|
|
3578
3621
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3622
|
+
(0, import_typeorm42.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3580
3623
|
], User.prototype, "dateOfBirth", 2);
|
|
3581
3624
|
__decorateClass([
|
|
3582
|
-
(0,
|
|
3625
|
+
(0, import_typeorm42.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3583
3626
|
], User.prototype, "gender", 2);
|
|
3584
3627
|
__decorateClass([
|
|
3585
|
-
(0,
|
|
3628
|
+
(0, import_typeorm42.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3586
3629
|
], User.prototype, "profilePictureUrl", 2);
|
|
3587
3630
|
__decorateClass([
|
|
3588
|
-
(0,
|
|
3631
|
+
(0, import_typeorm42.Column)({ name: "email", type: "varchar", unique: true })
|
|
3589
3632
|
], User.prototype, "email", 2);
|
|
3590
3633
|
__decorateClass([
|
|
3591
|
-
(0,
|
|
3634
|
+
(0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3592
3635
|
], User.prototype, "mobileCode", 2);
|
|
3593
3636
|
__decorateClass([
|
|
3594
|
-
(0,
|
|
3637
|
+
(0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3595
3638
|
], User.prototype, "mobile", 2);
|
|
3596
3639
|
__decorateClass([
|
|
3597
|
-
(0,
|
|
3640
|
+
(0, import_typeorm42.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3598
3641
|
], User.prototype, "password", 2);
|
|
3599
3642
|
__decorateClass([
|
|
3600
|
-
(0,
|
|
3643
|
+
(0, import_typeorm42.Column)({
|
|
3601
3644
|
name: "account_type",
|
|
3602
3645
|
type: "enum",
|
|
3603
3646
|
enum: AccountType,
|
|
@@ -3605,7 +3648,7 @@ __decorateClass([
|
|
|
3605
3648
|
})
|
|
3606
3649
|
], User.prototype, "accountType", 2);
|
|
3607
3650
|
__decorateClass([
|
|
3608
|
-
(0,
|
|
3651
|
+
(0, import_typeorm42.Column)({
|
|
3609
3652
|
name: "account_status",
|
|
3610
3653
|
type: "enum",
|
|
3611
3654
|
enum: AccountStatus,
|
|
@@ -3613,39 +3656,39 @@ __decorateClass([
|
|
|
3613
3656
|
})
|
|
3614
3657
|
], User.prototype, "accountStatus", 2);
|
|
3615
3658
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3659
|
+
(0, import_typeorm42.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3617
3660
|
], User.prototype, "isEmailVerified", 2);
|
|
3618
3661
|
__decorateClass([
|
|
3619
|
-
(0,
|
|
3662
|
+
(0, import_typeorm42.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3620
3663
|
], User.prototype, "isMobileVerified", 2);
|
|
3621
3664
|
__decorateClass([
|
|
3622
|
-
(0,
|
|
3665
|
+
(0, import_typeorm42.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3623
3666
|
], User.prototype, "isSocial", 2);
|
|
3624
3667
|
__decorateClass([
|
|
3625
|
-
(0,
|
|
3668
|
+
(0, import_typeorm42.Column)({
|
|
3626
3669
|
name: "last_login_at",
|
|
3627
3670
|
type: "timestamp with time zone",
|
|
3628
3671
|
nullable: true
|
|
3629
3672
|
})
|
|
3630
3673
|
], User.prototype, "lastLoginAt", 2);
|
|
3631
3674
|
__decorateClass([
|
|
3632
|
-
(0,
|
|
3675
|
+
(0, import_typeorm42.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3633
3676
|
], User.prototype, "lastLoginIp", 2);
|
|
3634
3677
|
__decorateClass([
|
|
3635
|
-
(0,
|
|
3678
|
+
(0, import_typeorm42.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3636
3679
|
], User.prototype, "resetToken", 2);
|
|
3637
3680
|
__decorateClass([
|
|
3638
|
-
(0,
|
|
3681
|
+
(0, import_typeorm42.Column)({
|
|
3639
3682
|
name: "reset_token_expire_at",
|
|
3640
3683
|
type: "timestamp with time zone",
|
|
3641
3684
|
nullable: true
|
|
3642
3685
|
})
|
|
3643
3686
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3644
3687
|
__decorateClass([
|
|
3645
|
-
(0,
|
|
3688
|
+
(0, import_typeorm42.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3646
3689
|
], User.prototype, "refreshTokens", 2);
|
|
3647
3690
|
__decorateClass([
|
|
3648
|
-
(0,
|
|
3691
|
+
(0, import_typeorm42.Column)({
|
|
3649
3692
|
name: "provider",
|
|
3650
3693
|
type: "enum",
|
|
3651
3694
|
enum: Provider,
|
|
@@ -3654,94 +3697,94 @@ __decorateClass([
|
|
|
3654
3697
|
})
|
|
3655
3698
|
], User.prototype, "provider", 2);
|
|
3656
3699
|
__decorateClass([
|
|
3657
|
-
(0,
|
|
3700
|
+
(0, import_typeorm42.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3658
3701
|
], User.prototype, "providerToken", 2);
|
|
3659
3702
|
__decorateClass([
|
|
3660
|
-
(0,
|
|
3703
|
+
(0, import_typeorm42.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3661
3704
|
], User.prototype, "linkedInId", 2);
|
|
3662
3705
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3706
|
+
(0, import_typeorm42.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3664
3707
|
], User.prototype, "googleId", 2);
|
|
3665
3708
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3709
|
+
(0, import_typeorm42.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3667
3710
|
], User.prototype, "gitLabsId", 2);
|
|
3668
3711
|
__decorateClass([
|
|
3669
|
-
(0,
|
|
3712
|
+
(0, import_typeorm42.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3670
3713
|
], User.prototype, "otps", 2);
|
|
3671
3714
|
__decorateClass([
|
|
3672
|
-
(0,
|
|
3715
|
+
(0, import_typeorm42.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3673
3716
|
], User.prototype, "senseloafLogs", 2);
|
|
3674
3717
|
__decorateClass([
|
|
3675
|
-
(0,
|
|
3718
|
+
(0, import_typeorm42.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3676
3719
|
], User.prototype, "companyProfile", 2);
|
|
3677
3720
|
__decorateClass([
|
|
3678
|
-
(0,
|
|
3721
|
+
(0, import_typeorm42.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3679
3722
|
], User.prototype, "companySkills", 2);
|
|
3680
3723
|
__decorateClass([
|
|
3681
|
-
(0,
|
|
3724
|
+
(0, import_typeorm42.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3682
3725
|
], User.prototype, "companyMemberRoles", 2);
|
|
3683
3726
|
__decorateClass([
|
|
3684
|
-
(0,
|
|
3727
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3685
3728
|
], User.prototype, "freelancerProfile", 2);
|
|
3686
3729
|
__decorateClass([
|
|
3687
|
-
(0,
|
|
3730
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3688
3731
|
], User.prototype, "freelancerResume", 2);
|
|
3689
3732
|
__decorateClass([
|
|
3690
|
-
(0,
|
|
3733
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3691
3734
|
], User.prototype, "assessments", 2);
|
|
3692
3735
|
__decorateClass([
|
|
3693
|
-
(0,
|
|
3736
|
+
(0, import_typeorm42.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3694
3737
|
], User.prototype, "assessmentAnswers", 2);
|
|
3695
3738
|
__decorateClass([
|
|
3696
|
-
(0,
|
|
3739
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3697
3740
|
], User.prototype, "freelancerSkills", 2);
|
|
3698
3741
|
__decorateClass([
|
|
3699
|
-
(0,
|
|
3742
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3700
3743
|
], User.prototype, "freelancerExperience", 2);
|
|
3701
3744
|
__decorateClass([
|
|
3702
|
-
(0,
|
|
3745
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3703
3746
|
], User.prototype, "freelancerEducation", 2);
|
|
3704
3747
|
__decorateClass([
|
|
3705
|
-
(0,
|
|
3748
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3706
3749
|
], User.prototype, "freelancerProject", 2);
|
|
3707
3750
|
__decorateClass([
|
|
3708
|
-
(0,
|
|
3751
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3709
3752
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3710
3753
|
__decorateClass([
|
|
3711
|
-
(0,
|
|
3754
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3712
3755
|
], User.prototype, "freelancerTool", 2);
|
|
3713
3756
|
__decorateClass([
|
|
3714
|
-
(0,
|
|
3757
|
+
(0, import_typeorm42.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3715
3758
|
], User.prototype, "freelancerFramework", 2);
|
|
3716
3759
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3760
|
+
(0, import_typeorm42.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3718
3761
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3719
3762
|
__decorateClass([
|
|
3720
|
-
(0,
|
|
3763
|
+
(0, import_typeorm42.OneToMany)(() => Job, (job) => job.user)
|
|
3721
3764
|
], User.prototype, "jobs", 2);
|
|
3722
3765
|
__decorateClass([
|
|
3723
|
-
(0,
|
|
3766
|
+
(0, import_typeorm42.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3724
3767
|
], User.prototype, "jobApplications", 2);
|
|
3725
3768
|
__decorateClass([
|
|
3726
|
-
(0,
|
|
3769
|
+
(0, import_typeorm42.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3727
3770
|
], User.prototype, "interviews", 2);
|
|
3728
3771
|
__decorateClass([
|
|
3729
|
-
(0,
|
|
3772
|
+
(0, import_typeorm42.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3730
3773
|
], User.prototype, "bankDetail", 2);
|
|
3731
3774
|
__decorateClass([
|
|
3732
|
-
(0,
|
|
3775
|
+
(0, import_typeorm42.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3733
3776
|
], User.prototype, "systemPreference", 2);
|
|
3734
3777
|
__decorateClass([
|
|
3735
|
-
(0,
|
|
3778
|
+
(0, import_typeorm42.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3736
3779
|
], User.prototype, "givenRatings", 2);
|
|
3737
3780
|
__decorateClass([
|
|
3738
|
-
(0,
|
|
3781
|
+
(0, import_typeorm42.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3739
3782
|
], User.prototype, "receivedRatings", 2);
|
|
3740
3783
|
__decorateClass([
|
|
3741
|
-
(0,
|
|
3784
|
+
(0, import_typeorm42.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3742
3785
|
], User.prototype, "adminUserRoles", 2);
|
|
3743
3786
|
User = __decorateClass([
|
|
3744
|
-
(0,
|
|
3787
|
+
(0, import_typeorm42.Entity)("users")
|
|
3745
3788
|
], User);
|
|
3746
3789
|
|
|
3747
3790
|
// src/entities/rating.entity.ts
|
|
@@ -3753,36 +3796,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3753
3796
|
var Rating = class extends BaseEntity {
|
|
3754
3797
|
};
|
|
3755
3798
|
__decorateClass([
|
|
3756
|
-
(0,
|
|
3757
|
-
(0,
|
|
3799
|
+
(0, import_typeorm43.Column)({ name: "reviewer_id", type: "integer" }),
|
|
3800
|
+
(0, import_typeorm43.Index)()
|
|
3758
3801
|
], Rating.prototype, "reviewer_id", 2);
|
|
3759
3802
|
__decorateClass([
|
|
3760
|
-
(0,
|
|
3761
|
-
(0,
|
|
3803
|
+
(0, import_typeorm43.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3804
|
+
(0, import_typeorm43.JoinColumn)({ name: "reviewer_id" })
|
|
3762
3805
|
], Rating.prototype, "reviewer", 2);
|
|
3763
3806
|
__decorateClass([
|
|
3764
|
-
(0,
|
|
3765
|
-
(0,
|
|
3807
|
+
(0, import_typeorm43.Column)({ name: "reviewee_id", type: "integer" }),
|
|
3808
|
+
(0, import_typeorm43.Index)()
|
|
3766
3809
|
], Rating.prototype, "reviewee_id", 2);
|
|
3767
3810
|
__decorateClass([
|
|
3768
|
-
(0,
|
|
3769
|
-
(0,
|
|
3811
|
+
(0, import_typeorm43.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
3812
|
+
(0, import_typeorm43.JoinColumn)({ name: "reviewee_id" })
|
|
3770
3813
|
], Rating.prototype, "reviewee", 2);
|
|
3771
3814
|
__decorateClass([
|
|
3772
|
-
(0,
|
|
3815
|
+
(0, import_typeorm43.Column)({
|
|
3773
3816
|
type: "enum",
|
|
3774
3817
|
enum: RatingTypeEnum,
|
|
3775
3818
|
nullable: true
|
|
3776
3819
|
})
|
|
3777
3820
|
], Rating.prototype, "ratingType", 2);
|
|
3778
3821
|
__decorateClass([
|
|
3779
|
-
(0,
|
|
3822
|
+
(0, import_typeorm43.Column)({ type: "integer", nullable: true })
|
|
3780
3823
|
], Rating.prototype, "rating", 2);
|
|
3781
3824
|
__decorateClass([
|
|
3782
|
-
(0,
|
|
3825
|
+
(0, import_typeorm43.Column)({ type: "text", nullable: true })
|
|
3783
3826
|
], Rating.prototype, "review", 2);
|
|
3784
3827
|
Rating = __decorateClass([
|
|
3785
|
-
(0,
|
|
3828
|
+
(0, import_typeorm43.Entity)("ratings")
|
|
3786
3829
|
], Rating);
|
|
3787
3830
|
|
|
3788
3831
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5060,11 +5103,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5060
5103
|
};
|
|
5061
5104
|
|
|
5062
5105
|
// src/entities/sequence-generator.entity.ts
|
|
5063
|
-
var
|
|
5106
|
+
var import_typeorm44 = require("typeorm");
|
|
5064
5107
|
var SequenceGenerator = class extends BaseEntity {
|
|
5065
5108
|
};
|
|
5066
5109
|
__decorateClass([
|
|
5067
|
-
(0,
|
|
5110
|
+
(0, import_typeorm44.Column)({
|
|
5068
5111
|
name: "module",
|
|
5069
5112
|
type: "varchar",
|
|
5070
5113
|
length: 50,
|
|
@@ -5073,7 +5116,7 @@ __decorateClass([
|
|
|
5073
5116
|
})
|
|
5074
5117
|
], SequenceGenerator.prototype, "module", 2);
|
|
5075
5118
|
__decorateClass([
|
|
5076
|
-
(0,
|
|
5119
|
+
(0, import_typeorm44.Column)({
|
|
5077
5120
|
name: "prefix",
|
|
5078
5121
|
type: "varchar",
|
|
5079
5122
|
length: 10,
|
|
@@ -5082,7 +5125,7 @@ __decorateClass([
|
|
|
5082
5125
|
})
|
|
5083
5126
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5084
5127
|
__decorateClass([
|
|
5085
|
-
(0,
|
|
5128
|
+
(0, import_typeorm44.Column)({
|
|
5086
5129
|
name: "last_sequence",
|
|
5087
5130
|
type: "int",
|
|
5088
5131
|
nullable: false,
|
|
@@ -5090,7 +5133,7 @@ __decorateClass([
|
|
|
5090
5133
|
})
|
|
5091
5134
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5092
5135
|
__decorateClass([
|
|
5093
|
-
(0,
|
|
5136
|
+
(0, import_typeorm44.Column)({
|
|
5094
5137
|
name: "year",
|
|
5095
5138
|
type: "int",
|
|
5096
5139
|
nullable: true,
|
|
@@ -5098,11 +5141,11 @@ __decorateClass([
|
|
|
5098
5141
|
})
|
|
5099
5142
|
], SequenceGenerator.prototype, "year", 2);
|
|
5100
5143
|
SequenceGenerator = __decorateClass([
|
|
5101
|
-
(0,
|
|
5144
|
+
(0, import_typeorm44.Entity)("sequence_generators")
|
|
5102
5145
|
], SequenceGenerator);
|
|
5103
5146
|
|
|
5104
5147
|
// src/entities/question.entity.ts
|
|
5105
|
-
var
|
|
5148
|
+
var import_typeorm45 = require("typeorm");
|
|
5106
5149
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5107
5150
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5108
5151
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5111,16 +5154,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5111
5154
|
var Question = class extends BaseEntity {
|
|
5112
5155
|
};
|
|
5113
5156
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5157
|
+
(0, import_typeorm45.Column)({ name: "question", type: "varchar" })
|
|
5115
5158
|
], Question.prototype, "question", 2);
|
|
5116
5159
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5160
|
+
(0, import_typeorm45.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5118
5161
|
], Question.prototype, "hint", 2);
|
|
5119
5162
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5163
|
+
(0, import_typeorm45.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5121
5164
|
], Question.prototype, "slug", 2);
|
|
5122
5165
|
__decorateClass([
|
|
5123
|
-
(0,
|
|
5166
|
+
(0, import_typeorm45.Column)({
|
|
5124
5167
|
name: "question_for",
|
|
5125
5168
|
type: "enum",
|
|
5126
5169
|
enum: QuestionFor,
|
|
@@ -5128,54 +5171,54 @@ __decorateClass([
|
|
|
5128
5171
|
})
|
|
5129
5172
|
], Question.prototype, "questionFor", 2);
|
|
5130
5173
|
__decorateClass([
|
|
5131
|
-
(0,
|
|
5174
|
+
(0, import_typeorm45.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5132
5175
|
], Question.prototype, "type", 2);
|
|
5133
5176
|
__decorateClass([
|
|
5134
|
-
(0,
|
|
5177
|
+
(0, import_typeorm45.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5135
5178
|
], Question.prototype, "options", 2);
|
|
5136
5179
|
__decorateClass([
|
|
5137
|
-
(0,
|
|
5180
|
+
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5138
5181
|
], Question.prototype, "isActive", 2);
|
|
5139
5182
|
Question = __decorateClass([
|
|
5140
|
-
(0,
|
|
5183
|
+
(0, import_typeorm45.Entity)("questions")
|
|
5141
5184
|
], Question);
|
|
5142
5185
|
|
|
5143
5186
|
// src/entities/skill.entity.ts
|
|
5144
|
-
var
|
|
5187
|
+
var import_typeorm46 = require("typeorm");
|
|
5145
5188
|
var Skill = class extends BaseEntity {
|
|
5146
5189
|
};
|
|
5147
5190
|
__decorateClass([
|
|
5148
|
-
(0,
|
|
5191
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5149
5192
|
], Skill.prototype, "name", 2);
|
|
5150
5193
|
__decorateClass([
|
|
5151
|
-
(0,
|
|
5194
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5152
5195
|
], Skill.prototype, "slug", 2);
|
|
5153
5196
|
__decorateClass([
|
|
5154
|
-
(0,
|
|
5197
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5155
5198
|
], Skill.prototype, "isActive", 2);
|
|
5156
5199
|
Skill = __decorateClass([
|
|
5157
|
-
(0,
|
|
5200
|
+
(0, import_typeorm46.Entity)("skills")
|
|
5158
5201
|
], Skill);
|
|
5159
5202
|
|
|
5160
5203
|
// src/entities/job-role.entity.ts
|
|
5161
|
-
var
|
|
5204
|
+
var import_typeorm47 = require("typeorm");
|
|
5162
5205
|
var JobRoles = class extends BaseEntity {
|
|
5163
5206
|
};
|
|
5164
5207
|
__decorateClass([
|
|
5165
|
-
(0,
|
|
5208
|
+
(0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5166
5209
|
], JobRoles.prototype, "slug", 2);
|
|
5167
5210
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5211
|
+
(0, import_typeorm47.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5169
5212
|
], JobRoles.prototype, "name", 2);
|
|
5170
5213
|
__decorateClass([
|
|
5171
|
-
(0,
|
|
5214
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5172
5215
|
], JobRoles.prototype, "isActive", 2);
|
|
5173
5216
|
JobRoles = __decorateClass([
|
|
5174
|
-
(0,
|
|
5217
|
+
(0, import_typeorm47.Entity)("job_roles")
|
|
5175
5218
|
], JobRoles);
|
|
5176
5219
|
|
|
5177
5220
|
// src/entities/ai-interview.entity.ts
|
|
5178
|
-
var
|
|
5221
|
+
var import_typeorm48 = require("typeorm");
|
|
5179
5222
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5180
5223
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5181
5224
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5201,37 +5244,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5201
5244
|
var AIInterview = class extends BaseEntity {
|
|
5202
5245
|
};
|
|
5203
5246
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5247
|
+
(0, import_typeorm48.Column)({
|
|
5205
5248
|
name: "interview_id",
|
|
5206
5249
|
type: "integer",
|
|
5207
5250
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5208
5251
|
}),
|
|
5209
|
-
(0,
|
|
5252
|
+
(0, import_typeorm48.Index)()
|
|
5210
5253
|
], AIInterview.prototype, "interviewId", 2);
|
|
5211
5254
|
__decorateClass([
|
|
5212
|
-
(0,
|
|
5255
|
+
(0, import_typeorm48.Column)({
|
|
5213
5256
|
name: "interview_invite_id",
|
|
5214
5257
|
type: "integer",
|
|
5215
5258
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5216
5259
|
})
|
|
5217
5260
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5218
5261
|
__decorateClass([
|
|
5219
|
-
(0,
|
|
5262
|
+
(0, import_typeorm48.Column)({
|
|
5220
5263
|
name: "candidate_id",
|
|
5221
5264
|
type: "integer",
|
|
5222
5265
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5223
5266
|
}),
|
|
5224
|
-
(0,
|
|
5267
|
+
(0, import_typeorm48.Index)()
|
|
5225
5268
|
], AIInterview.prototype, "candidateId", 2);
|
|
5226
5269
|
__decorateClass([
|
|
5227
|
-
(0,
|
|
5270
|
+
(0, import_typeorm48.Column)({
|
|
5228
5271
|
name: "job_id",
|
|
5229
5272
|
type: "integer",
|
|
5230
5273
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5231
5274
|
})
|
|
5232
5275
|
], AIInterview.prototype, "jobId", 2);
|
|
5233
5276
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5277
|
+
(0, import_typeorm48.Column)({
|
|
5235
5278
|
name: "invite_token",
|
|
5236
5279
|
type: "varchar",
|
|
5237
5280
|
unique: true,
|
|
@@ -5240,38 +5283,38 @@ __decorateClass([
|
|
|
5240
5283
|
})
|
|
5241
5284
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5242
5285
|
__decorateClass([
|
|
5243
|
-
(0,
|
|
5286
|
+
(0, import_typeorm48.Column)({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5244
5287
|
], AIInterview.prototype, "interviewType", 2);
|
|
5245
5288
|
__decorateClass([
|
|
5246
|
-
(0,
|
|
5289
|
+
(0, import_typeorm48.Column)({
|
|
5247
5290
|
name: "interview_name",
|
|
5248
5291
|
type: "varchar",
|
|
5249
5292
|
comment: "Name of the interview"
|
|
5250
5293
|
})
|
|
5251
5294
|
], AIInterview.prototype, "interviewName", 2);
|
|
5252
5295
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5296
|
+
(0, import_typeorm48.Column)({
|
|
5254
5297
|
name: "job_title",
|
|
5255
5298
|
type: "varchar",
|
|
5256
5299
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5257
5300
|
})
|
|
5258
5301
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5259
5302
|
__decorateClass([
|
|
5260
|
-
(0,
|
|
5303
|
+
(0, import_typeorm48.Column)({
|
|
5261
5304
|
type: "enum",
|
|
5262
5305
|
enum: AIInterviewStatusEnum,
|
|
5263
5306
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5264
5307
|
})
|
|
5265
5308
|
], AIInterview.prototype, "status", 2);
|
|
5266
5309
|
__decorateClass([
|
|
5267
|
-
(0,
|
|
5310
|
+
(0, import_typeorm48.Column)({
|
|
5268
5311
|
name: "started_at",
|
|
5269
5312
|
type: "timestamp with time zone",
|
|
5270
5313
|
comment: "Timestamp when the interview was started"
|
|
5271
5314
|
})
|
|
5272
5315
|
], AIInterview.prototype, "startedAt", 2);
|
|
5273
5316
|
__decorateClass([
|
|
5274
|
-
(0,
|
|
5317
|
+
(0, import_typeorm48.Column)({
|
|
5275
5318
|
name: "completed_at",
|
|
5276
5319
|
type: "timestamp with time zone",
|
|
5277
5320
|
nullable: true,
|
|
@@ -5279,7 +5322,7 @@ __decorateClass([
|
|
|
5279
5322
|
})
|
|
5280
5323
|
], AIInterview.prototype, "completedAt", 2);
|
|
5281
5324
|
__decorateClass([
|
|
5282
|
-
(0,
|
|
5325
|
+
(0, import_typeorm48.Column)({
|
|
5283
5326
|
name: "duration_minutes",
|
|
5284
5327
|
type: "integer",
|
|
5285
5328
|
nullable: true,
|
|
@@ -5287,7 +5330,7 @@ __decorateClass([
|
|
|
5287
5330
|
})
|
|
5288
5331
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5289
5332
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5333
|
+
(0, import_typeorm48.Column)({
|
|
5291
5334
|
name: "overall_score",
|
|
5292
5335
|
type: "decimal",
|
|
5293
5336
|
precision: 5,
|
|
@@ -5297,90 +5340,90 @@ __decorateClass([
|
|
|
5297
5340
|
})
|
|
5298
5341
|
], AIInterview.prototype, "overallScore", 2);
|
|
5299
5342
|
__decorateClass([
|
|
5300
|
-
(0,
|
|
5301
|
-
(0,
|
|
5343
|
+
(0, import_typeorm48.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5344
|
+
(0, import_typeorm48.JoinColumn)({ name: "interview_id" })
|
|
5302
5345
|
], AIInterview.prototype, "interview", 2);
|
|
5303
5346
|
__decorateClass([
|
|
5304
|
-
(0,
|
|
5305
|
-
(0,
|
|
5347
|
+
(0, import_typeorm48.ManyToOne)(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5348
|
+
(0, import_typeorm48.JoinColumn)({ name: "interview_invite_id" })
|
|
5306
5349
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5307
5350
|
__decorateClass([
|
|
5308
|
-
(0,
|
|
5309
|
-
(0,
|
|
5351
|
+
(0, import_typeorm48.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5352
|
+
(0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
|
|
5310
5353
|
], AIInterview.prototype, "candidate", 2);
|
|
5311
5354
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5313
|
-
(0,
|
|
5355
|
+
(0, import_typeorm48.ManyToOne)(() => Job, { onDelete: "CASCADE" }),
|
|
5356
|
+
(0, import_typeorm48.JoinColumn)({ name: "job_id" })
|
|
5314
5357
|
], AIInterview.prototype, "job", 2);
|
|
5315
5358
|
AIInterview = __decorateClass([
|
|
5316
|
-
(0,
|
|
5359
|
+
(0, import_typeorm48.Entity)("ai_interviews")
|
|
5317
5360
|
], AIInterview);
|
|
5318
5361
|
|
|
5319
5362
|
// src/entities/plan.entity.ts
|
|
5320
|
-
var
|
|
5363
|
+
var import_typeorm50 = require("typeorm");
|
|
5321
5364
|
|
|
5322
5365
|
// src/entities/feature.entity.ts
|
|
5323
|
-
var
|
|
5366
|
+
var import_typeorm49 = require("typeorm");
|
|
5324
5367
|
var Feature = class extends BaseEntity {
|
|
5325
5368
|
};
|
|
5326
5369
|
__decorateClass([
|
|
5327
|
-
(0,
|
|
5370
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", unique: true })
|
|
5328
5371
|
], Feature.prototype, "name", 2);
|
|
5329
5372
|
__decorateClass([
|
|
5330
|
-
(0,
|
|
5373
|
+
(0, import_typeorm49.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5331
5374
|
], Feature.prototype, "plans", 2);
|
|
5332
5375
|
Feature = __decorateClass([
|
|
5333
|
-
(0,
|
|
5376
|
+
(0, import_typeorm49.Entity)("features")
|
|
5334
5377
|
], Feature);
|
|
5335
5378
|
|
|
5336
5379
|
// src/entities/plan.entity.ts
|
|
5337
5380
|
var Plan = class extends BaseEntity {
|
|
5338
5381
|
};
|
|
5339
5382
|
__decorateClass([
|
|
5340
|
-
(0,
|
|
5383
|
+
(0, import_typeorm50.Column)({ name: "name", type: "varchar", unique: true })
|
|
5341
5384
|
], Plan.prototype, "name", 2);
|
|
5342
5385
|
__decorateClass([
|
|
5343
|
-
(0,
|
|
5386
|
+
(0, import_typeorm50.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5344
5387
|
], Plan.prototype, "description", 2);
|
|
5345
5388
|
__decorateClass([
|
|
5346
|
-
(0,
|
|
5389
|
+
(0, import_typeorm50.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5347
5390
|
], Plan.prototype, "price", 2);
|
|
5348
5391
|
__decorateClass([
|
|
5349
|
-
(0,
|
|
5392
|
+
(0, import_typeorm50.Column)({ name: "billing_period", type: "varchar" })
|
|
5350
5393
|
], Plan.prototype, "billingPeriod", 2);
|
|
5351
5394
|
__decorateClass([
|
|
5352
|
-
(0,
|
|
5395
|
+
(0, import_typeorm50.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5353
5396
|
], Plan.prototype, "isCurrent", 2);
|
|
5354
5397
|
__decorateClass([
|
|
5355
|
-
(0,
|
|
5356
|
-
(0,
|
|
5398
|
+
(0, import_typeorm50.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5399
|
+
(0, import_typeorm50.JoinTable)()
|
|
5357
5400
|
], Plan.prototype, "features", 2);
|
|
5358
5401
|
Plan = __decorateClass([
|
|
5359
|
-
(0,
|
|
5402
|
+
(0, import_typeorm50.Entity)("plans")
|
|
5360
5403
|
], Plan);
|
|
5361
5404
|
|
|
5362
5405
|
// src/entities/cms.entity.ts
|
|
5363
|
-
var
|
|
5406
|
+
var import_typeorm51 = require("typeorm");
|
|
5364
5407
|
var Cms = class extends BaseEntity {
|
|
5365
5408
|
};
|
|
5366
5409
|
__decorateClass([
|
|
5367
|
-
(0,
|
|
5410
|
+
(0, import_typeorm51.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5368
5411
|
], Cms.prototype, "title", 2);
|
|
5369
5412
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5413
|
+
(0, import_typeorm51.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5371
5414
|
], Cms.prototype, "slug", 2);
|
|
5372
5415
|
__decorateClass([
|
|
5373
|
-
(0,
|
|
5416
|
+
(0, import_typeorm51.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5374
5417
|
], Cms.prototype, "content", 2);
|
|
5375
5418
|
__decorateClass([
|
|
5376
|
-
(0,
|
|
5419
|
+
(0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5377
5420
|
], Cms.prototype, "isActive", 2);
|
|
5378
5421
|
Cms = __decorateClass([
|
|
5379
|
-
(0,
|
|
5422
|
+
(0, import_typeorm51.Entity)("cms")
|
|
5380
5423
|
], Cms);
|
|
5381
5424
|
|
|
5382
5425
|
// src/entities/lead.entity.ts
|
|
5383
|
-
var
|
|
5426
|
+
var import_typeorm52 = require("typeorm");
|
|
5384
5427
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5385
5428
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5386
5429
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5389,22 +5432,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5389
5432
|
var Lead = class extends BaseEntity {
|
|
5390
5433
|
};
|
|
5391
5434
|
__decorateClass([
|
|
5392
|
-
(0,
|
|
5435
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5393
5436
|
], Lead.prototype, "name", 2);
|
|
5394
5437
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5438
|
+
(0, import_typeorm52.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5396
5439
|
], Lead.prototype, "mobileCode", 2);
|
|
5397
5440
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5441
|
+
(0, import_typeorm52.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5399
5442
|
], Lead.prototype, "mobile", 2);
|
|
5400
5443
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5444
|
+
(0, import_typeorm52.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5402
5445
|
], Lead.prototype, "email", 2);
|
|
5403
5446
|
__decorateClass([
|
|
5404
|
-
(0,
|
|
5447
|
+
(0, import_typeorm52.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5405
5448
|
], Lead.prototype, "description", 2);
|
|
5406
5449
|
__decorateClass([
|
|
5407
|
-
(0,
|
|
5450
|
+
(0, import_typeorm52.Column)({
|
|
5408
5451
|
name: "category",
|
|
5409
5452
|
type: "enum",
|
|
5410
5453
|
enum: CategoryEmum,
|
|
@@ -5412,129 +5455,129 @@ __decorateClass([
|
|
|
5412
5455
|
})
|
|
5413
5456
|
], Lead.prototype, "category", 2);
|
|
5414
5457
|
Lead = __decorateClass([
|
|
5415
|
-
(0,
|
|
5458
|
+
(0, import_typeorm52.Entity)("leads")
|
|
5416
5459
|
], Lead);
|
|
5417
5460
|
|
|
5418
5461
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5419
|
-
var
|
|
5462
|
+
var import_typeorm53 = require("typeorm");
|
|
5420
5463
|
var JobFreelancerRecommendation = class {
|
|
5421
5464
|
};
|
|
5422
5465
|
__decorateClass([
|
|
5423
|
-
(0,
|
|
5466
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_id" })
|
|
5424
5467
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5425
5468
|
__decorateClass([
|
|
5426
|
-
(0,
|
|
5469
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_uuid" })
|
|
5427
5470
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5428
5471
|
__decorateClass([
|
|
5429
|
-
(0,
|
|
5472
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_unique_id" })
|
|
5430
5473
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5431
5474
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5475
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_role" })
|
|
5433
5476
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5434
5477
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5478
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_openings" })
|
|
5436
5479
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5437
5480
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5481
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_location" })
|
|
5439
5482
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5440
5483
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5484
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_currency" })
|
|
5442
5485
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5443
5486
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5487
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_salary_from" })
|
|
5445
5488
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5446
5489
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5490
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_salary_to" })
|
|
5448
5491
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5449
5492
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5493
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_employment_type" })
|
|
5451
5494
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5452
5495
|
__decorateClass([
|
|
5453
|
-
(0,
|
|
5496
|
+
(0, import_typeorm53.ViewColumn)({ name: "application_received" })
|
|
5454
5497
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5455
5498
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5499
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_posted_at" })
|
|
5457
5500
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5458
5501
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5502
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_id" })
|
|
5460
5503
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5461
5504
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5505
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_uuid" })
|
|
5463
5506
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5464
5507
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5508
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5466
5509
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5467
5510
|
__decorateClass([
|
|
5468
|
-
(0,
|
|
5511
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_first_name" })
|
|
5469
5512
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5470
5513
|
__decorateClass([
|
|
5471
|
-
(0,
|
|
5514
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_last_name" })
|
|
5472
5515
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5473
5516
|
__decorateClass([
|
|
5474
|
-
(0,
|
|
5517
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_email" })
|
|
5475
5518
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5476
5519
|
__decorateClass([
|
|
5477
|
-
(0,
|
|
5520
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5478
5521
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5479
5522
|
__decorateClass([
|
|
5480
|
-
(0,
|
|
5523
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_is_social" })
|
|
5481
5524
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5482
5525
|
__decorateClass([
|
|
5483
|
-
(0,
|
|
5526
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_created_at" })
|
|
5484
5527
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5485
5528
|
__decorateClass([
|
|
5486
|
-
(0,
|
|
5529
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_designation" })
|
|
5487
5530
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5488
5531
|
__decorateClass([
|
|
5489
|
-
(0,
|
|
5532
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_experience" })
|
|
5490
5533
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5491
5534
|
__decorateClass([
|
|
5492
|
-
(0,
|
|
5535
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5493
5536
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5494
5537
|
__decorateClass([
|
|
5495
|
-
(0,
|
|
5538
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5496
5539
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5497
5540
|
__decorateClass([
|
|
5498
|
-
(0,
|
|
5541
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_country_name" })
|
|
5499
5542
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5500
5543
|
__decorateClass([
|
|
5501
|
-
(0,
|
|
5544
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5502
5545
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5503
5546
|
__decorateClass([
|
|
5504
|
-
(0,
|
|
5547
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_id" })
|
|
5505
5548
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5506
5549
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5550
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_uuid" })
|
|
5508
5551
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5509
5552
|
__decorateClass([
|
|
5510
|
-
(0,
|
|
5553
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_first_name" })
|
|
5511
5554
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5512
5555
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5556
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_last_name" })
|
|
5514
5557
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5515
5558
|
__decorateClass([
|
|
5516
|
-
(0,
|
|
5559
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_email" })
|
|
5517
5560
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5518
5561
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5562
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_company_logo" })
|
|
5520
5563
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5521
5564
|
__decorateClass([
|
|
5522
|
-
(0,
|
|
5565
|
+
(0, import_typeorm53.ViewColumn)({ name: "client_company_name" })
|
|
5523
5566
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5524
5567
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5568
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills" })
|
|
5526
5569
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5527
5570
|
__decorateClass([
|
|
5528
|
-
(0,
|
|
5571
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills_count" })
|
|
5529
5572
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5530
5573
|
__decorateClass([
|
|
5531
|
-
(0,
|
|
5574
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills" })
|
|
5532
5575
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5533
5576
|
__decorateClass([
|
|
5534
|
-
(0,
|
|
5577
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills_count" })
|
|
5535
5578
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5536
5579
|
JobFreelancerRecommendation = __decorateClass([
|
|
5537
|
-
(0,
|
|
5580
|
+
(0, import_typeorm53.ViewEntity)({
|
|
5538
5581
|
name: "job_freelancer_recommendations",
|
|
5539
5582
|
materialized: true,
|
|
5540
5583
|
synchronize: false
|
|
@@ -5543,32 +5586,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5543
5586
|
], JobFreelancerRecommendation);
|
|
5544
5587
|
|
|
5545
5588
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5546
|
-
var
|
|
5589
|
+
var import_typeorm54 = require("typeorm");
|
|
5547
5590
|
var JobFreelancerRecommendationV2 = class {
|
|
5548
5591
|
};
|
|
5549
5592
|
__decorateClass([
|
|
5550
|
-
(0,
|
|
5593
|
+
(0, import_typeorm54.ViewColumn)({ name: "job_id" })
|
|
5551
5594
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5552
5595
|
__decorateClass([
|
|
5553
|
-
(0,
|
|
5596
|
+
(0, import_typeorm54.ViewColumn)({ name: "job_owner_id" })
|
|
5554
5597
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5555
5598
|
__decorateClass([
|
|
5556
|
-
(0,
|
|
5599
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_id" })
|
|
5557
5600
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5558
5601
|
__decorateClass([
|
|
5559
|
-
(0,
|
|
5602
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills" })
|
|
5560
5603
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5561
5604
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5605
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills_count" })
|
|
5563
5606
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5564
5607
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5608
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills" })
|
|
5566
5609
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5567
5610
|
__decorateClass([
|
|
5568
|
-
(0,
|
|
5611
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills_count" })
|
|
5569
5612
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5570
5613
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5571
|
-
(0,
|
|
5614
|
+
(0, import_typeorm54.ViewEntity)({
|
|
5572
5615
|
name: "job_freelancer_recommendations_v2",
|
|
5573
5616
|
materialized: true,
|
|
5574
5617
|
synchronize: false
|
|
@@ -5577,74 +5620,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5577
5620
|
], JobFreelancerRecommendationV2);
|
|
5578
5621
|
|
|
5579
5622
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5580
|
-
var
|
|
5623
|
+
var import_typeorm55 = require("typeorm");
|
|
5581
5624
|
var ClientFreelancerRecommendation = class {
|
|
5582
5625
|
};
|
|
5583
5626
|
__decorateClass([
|
|
5584
|
-
(0,
|
|
5627
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_id" })
|
|
5585
5628
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5586
5629
|
__decorateClass([
|
|
5587
|
-
(0,
|
|
5630
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_uuid" })
|
|
5588
5631
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5589
5632
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5633
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_id" })
|
|
5591
5634
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5592
5635
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5636
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_uuid" })
|
|
5594
5637
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5595
5638
|
__decorateClass([
|
|
5596
|
-
(0,
|
|
5639
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5597
5640
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5598
5641
|
__decorateClass([
|
|
5599
|
-
(0,
|
|
5642
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_first_name" })
|
|
5600
5643
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5601
5644
|
__decorateClass([
|
|
5602
|
-
(0,
|
|
5645
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_last_name" })
|
|
5603
5646
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5604
5647
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5648
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_email" })
|
|
5606
5649
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5607
5650
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5651
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5609
5652
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5610
5653
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5654
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_is_social" })
|
|
5612
5655
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5613
5656
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5657
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_created_at" })
|
|
5615
5658
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5616
5659
|
__decorateClass([
|
|
5617
|
-
(0,
|
|
5660
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_designation" })
|
|
5618
5661
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5619
5662
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5663
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_experience" })
|
|
5621
5664
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5622
5665
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5666
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5624
5667
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5625
5668
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5669
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5627
5670
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5628
5671
|
__decorateClass([
|
|
5629
|
-
(0,
|
|
5672
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_name" })
|
|
5630
5673
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5631
5674
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5675
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5633
5676
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5634
5677
|
__decorateClass([
|
|
5635
|
-
(0,
|
|
5678
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills" })
|
|
5636
5679
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5637
5680
|
__decorateClass([
|
|
5638
|
-
(0,
|
|
5681
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills_count" })
|
|
5639
5682
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5640
5683
|
__decorateClass([
|
|
5641
|
-
(0,
|
|
5684
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills" })
|
|
5642
5685
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5643
5686
|
__decorateClass([
|
|
5644
|
-
(0,
|
|
5687
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills_count" })
|
|
5645
5688
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5646
5689
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5647
|
-
(0,
|
|
5690
|
+
(0, import_typeorm55.ViewEntity)({
|
|
5648
5691
|
name: "client_freelancer_recommendations",
|
|
5649
5692
|
materialized: true,
|
|
5650
5693
|
synchronize: false
|
|
@@ -5653,7 +5696,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5653
5696
|
], ClientFreelancerRecommendation);
|
|
5654
5697
|
|
|
5655
5698
|
// src/entities/commission.entity.ts
|
|
5656
|
-
var
|
|
5699
|
+
var import_typeorm56 = require("typeorm");
|
|
5657
5700
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5658
5701
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5659
5702
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5662,7 +5705,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5662
5705
|
var Commission = class extends BaseEntity {
|
|
5663
5706
|
};
|
|
5664
5707
|
__decorateClass([
|
|
5665
|
-
(0,
|
|
5708
|
+
(0, import_typeorm56.Column)({
|
|
5666
5709
|
name: "freelancer_commission_type",
|
|
5667
5710
|
type: "enum",
|
|
5668
5711
|
enum: CommissionTypeEnum,
|
|
@@ -5670,10 +5713,10 @@ __decorateClass([
|
|
|
5670
5713
|
})
|
|
5671
5714
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5672
5715
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5716
|
+
(0, import_typeorm56.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5674
5717
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5675
5718
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5719
|
+
(0, import_typeorm56.Column)({
|
|
5677
5720
|
name: "client_commission_type",
|
|
5678
5721
|
type: "enum",
|
|
5679
5722
|
enum: CommissionTypeEnum,
|
|
@@ -5681,10 +5724,10 @@ __decorateClass([
|
|
|
5681
5724
|
})
|
|
5682
5725
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5683
5726
|
__decorateClass([
|
|
5684
|
-
(0,
|
|
5727
|
+
(0, import_typeorm56.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5685
5728
|
], Commission.prototype, "clientCommission", 2);
|
|
5686
5729
|
Commission = __decorateClass([
|
|
5687
|
-
(0,
|
|
5730
|
+
(0, import_typeorm56.Entity)("commissions")
|
|
5688
5731
|
], Commission);
|
|
5689
5732
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5690
5733
|
0 && (module.exports = {
|
|
@@ -5820,6 +5863,7 @@ Commission = __decorateClass([
|
|
|
5820
5863
|
JobLocationEnumDto,
|
|
5821
5864
|
JobLocationEnums,
|
|
5822
5865
|
JobRMQAdapter,
|
|
5866
|
+
JobRecommendation,
|
|
5823
5867
|
JobRoles,
|
|
5824
5868
|
JobSkill,
|
|
5825
5869
|
JobStatus,
|