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