@experts_hub/shared 1.0.329 → 1.0.331
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/ai-interview.entity.d.ts +16 -35
- package/dist/entities/calendly-meeting.entity.d.ts +2 -20
- package/dist/entities/{freelancer-f2f-interview.entity.d.ts → f2f-interview.entity.d.ts} +7 -1
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +6 -0
- package/dist/index.d.mts +68 -40
- package/dist/index.d.ts +68 -40
- package/dist/index.js +707 -668
- package/dist/index.mjs +686 -633
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,10 +31,6 @@ __export(index_exports, {
|
|
|
31
31
|
ADMIN_JOB_PATTERN: () => ADMIN_JOB_PATTERN,
|
|
32
32
|
ADMIN_PERMISSION_PATTERN: () => ADMIN_PERMISSION_PATTERN,
|
|
33
33
|
ADMIN_ROLE_PATTERN: () => ADMIN_ROLE_PATTERN,
|
|
34
|
-
AIInterview: () => AIInterview,
|
|
35
|
-
AIInterviewResultEnum: () => AIInterviewResultEnum,
|
|
36
|
-
AIInterviewStatusEnum: () => AIInterviewStatusEnum,
|
|
37
|
-
AIInterviewTypeEnum: () => AIInterviewTypeEnum,
|
|
38
34
|
ASSESSMENT_QUESTION_PATTERN: () => ASSESSMENT_QUESTION_PATTERN,
|
|
39
35
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
40
36
|
AccountStatus: () => AccountStatus,
|
|
@@ -46,6 +42,8 @@ __export(index_exports, {
|
|
|
46
42
|
AdminUpdateJobInformationDto: () => AdminUpdateJobInformationDto,
|
|
47
43
|
AdminUserRole: () => AdminUserRole,
|
|
48
44
|
AiAssessmentStatusEnum: () => AiAssessmentStatusEnum,
|
|
45
|
+
AiInterview: () => AiInterview,
|
|
46
|
+
AiInterviewStatusEnum: () => AiInterviewStatusEnum,
|
|
49
47
|
AnswerTypeEnum: () => AnswerTypeEnum,
|
|
50
48
|
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
51
49
|
AssessmentAnswer: () => AssessmentAnswer,
|
|
@@ -1514,10 +1512,10 @@ var RATING_PATTERN = {
|
|
|
1514
1512
|
var import_class_validator40 = require("class-validator");
|
|
1515
1513
|
|
|
1516
1514
|
// src/entities/rating.entity.ts
|
|
1517
|
-
var
|
|
1515
|
+
var import_typeorm46 = require("typeorm");
|
|
1518
1516
|
|
|
1519
1517
|
// src/entities/user.entity.ts
|
|
1520
|
-
var
|
|
1518
|
+
var import_typeorm45 = require("typeorm");
|
|
1521
1519
|
|
|
1522
1520
|
// src/entities/base.entity.ts
|
|
1523
1521
|
var import_typeorm = require("typeorm");
|
|
@@ -2184,7 +2182,7 @@ CompanyProfile = __decorateClass([
|
|
|
2184
2182
|
], CompanyProfile);
|
|
2185
2183
|
|
|
2186
2184
|
// src/entities/job.entity.ts
|
|
2187
|
-
var
|
|
2185
|
+
var import_typeorm18 = require("typeorm");
|
|
2188
2186
|
|
|
2189
2187
|
// src/entities/job-skill.entity.ts
|
|
2190
2188
|
var import_typeorm10 = require("typeorm");
|
|
@@ -2322,7 +2320,7 @@ JobApplication = __decorateClass([
|
|
|
2322
2320
|
], JobApplication);
|
|
2323
2321
|
|
|
2324
2322
|
// src/entities/interview.entity.ts
|
|
2325
|
-
var
|
|
2323
|
+
var import_typeorm16 = require("typeorm");
|
|
2326
2324
|
|
|
2327
2325
|
// src/entities/interview-skill.entity.ts
|
|
2328
2326
|
var import_typeorm12 = require("typeorm");
|
|
@@ -2474,6 +2472,60 @@ InterviewInvite = __decorateClass([
|
|
|
2474
2472
|
(0, import_typeorm14.Entity)("interview_invites")
|
|
2475
2473
|
], InterviewInvite);
|
|
2476
2474
|
|
|
2475
|
+
// src/entities/ai-interview.entity.ts
|
|
2476
|
+
var import_typeorm15 = require("typeorm");
|
|
2477
|
+
var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
2478
|
+
AiInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2479
|
+
AiInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2480
|
+
AiInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2481
|
+
AiInterviewStatusEnum2["PASSED"] = "PASSED";
|
|
2482
|
+
AiInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
2483
|
+
AiInterviewStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2484
|
+
AiInterviewStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2485
|
+
AiInterviewStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2486
|
+
AiInterviewStatusEnum2["EXITED"] = "EXITED";
|
|
2487
|
+
return AiInterviewStatusEnum2;
|
|
2488
|
+
})(AiInterviewStatusEnum || {});
|
|
2489
|
+
var AiInterview = class extends BaseEntity {
|
|
2490
|
+
};
|
|
2491
|
+
__decorateClass([
|
|
2492
|
+
(0, import_typeorm15.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2493
|
+
(0, import_typeorm15.Index)()
|
|
2494
|
+
], AiInterview.prototype, "candidateId", 2);
|
|
2495
|
+
__decorateClass([
|
|
2496
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerAiInterview),
|
|
2497
|
+
(0, import_typeorm15.JoinColumn)({ name: "candidate_id" })
|
|
2498
|
+
], AiInterview.prototype, "candidate", 2);
|
|
2499
|
+
__decorateClass([
|
|
2500
|
+
(0, import_typeorm15.Column)({ name: "interviwer_id", type: "integer", nullable: true }),
|
|
2501
|
+
(0, import_typeorm15.Index)()
|
|
2502
|
+
], AiInterview.prototype, "interviwerId", 2);
|
|
2503
|
+
__decorateClass([
|
|
2504
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.companyAiInterview),
|
|
2505
|
+
(0, import_typeorm15.JoinColumn)({ name: "interviwer_id" })
|
|
2506
|
+
], AiInterview.prototype, "interviwer", 2);
|
|
2507
|
+
__decorateClass([
|
|
2508
|
+
(0, import_typeorm15.Column)({ name: "interview_id", type: "integer", nullable: true })
|
|
2509
|
+
], AiInterview.prototype, "interviewId", 2);
|
|
2510
|
+
__decorateClass([
|
|
2511
|
+
(0, import_typeorm15.ManyToOne)(() => Interview, (interview) => interview.aiInterviews),
|
|
2512
|
+
(0, import_typeorm15.JoinColumn)({ name: "interview_id" })
|
|
2513
|
+
], AiInterview.prototype, "interview", 2);
|
|
2514
|
+
__decorateClass([
|
|
2515
|
+
(0, import_typeorm15.Column)({ name: "invite_id", type: "integer", nullable: true })
|
|
2516
|
+
], AiInterview.prototype, "inviteId", 2);
|
|
2517
|
+
__decorateClass([
|
|
2518
|
+
(0, import_typeorm15.Column)({
|
|
2519
|
+
name: "status",
|
|
2520
|
+
type: "enum",
|
|
2521
|
+
enum: AiInterviewStatusEnum,
|
|
2522
|
+
nullable: true
|
|
2523
|
+
})
|
|
2524
|
+
], AiInterview.prototype, "status", 2);
|
|
2525
|
+
AiInterview = __decorateClass([
|
|
2526
|
+
(0, import_typeorm15.Entity)("ai_interviews")
|
|
2527
|
+
], AiInterview);
|
|
2528
|
+
|
|
2477
2529
|
// src/entities/interview.entity.ts
|
|
2478
2530
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2479
2531
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2486,44 +2538,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2486
2538
|
var Interview = class extends BaseEntity {
|
|
2487
2539
|
};
|
|
2488
2540
|
__decorateClass([
|
|
2489
|
-
(0,
|
|
2541
|
+
(0, import_typeorm16.Column)({
|
|
2490
2542
|
name: "interview_id",
|
|
2491
2543
|
type: "varchar",
|
|
2492
2544
|
unique: true,
|
|
2493
2545
|
nullable: true
|
|
2494
2546
|
}),
|
|
2495
|
-
(0,
|
|
2547
|
+
(0, import_typeorm16.Index)()
|
|
2496
2548
|
], Interview.prototype, "interviewId", 2);
|
|
2497
2549
|
__decorateClass([
|
|
2498
|
-
(0,
|
|
2499
|
-
(0,
|
|
2550
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2551
|
+
(0, import_typeorm16.Index)()
|
|
2500
2552
|
], Interview.prototype, "userId", 2);
|
|
2501
2553
|
__decorateClass([
|
|
2502
|
-
(0,
|
|
2503
|
-
(0,
|
|
2554
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.interviews),
|
|
2555
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
2504
2556
|
], Interview.prototype, "user", 2);
|
|
2505
2557
|
__decorateClass([
|
|
2506
|
-
(0,
|
|
2558
|
+
(0, import_typeorm16.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
2507
2559
|
], Interview.prototype, "interviewName", 2);
|
|
2508
2560
|
__decorateClass([
|
|
2509
|
-
(0,
|
|
2510
|
-
(0,
|
|
2561
|
+
(0, import_typeorm16.Column)({ name: "job_id", type: "integer" }),
|
|
2562
|
+
(0, import_typeorm16.Index)()
|
|
2511
2563
|
], Interview.prototype, "jobId", 2);
|
|
2512
2564
|
__decorateClass([
|
|
2513
|
-
(0,
|
|
2514
|
-
(0,
|
|
2565
|
+
(0, import_typeorm16.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2566
|
+
(0, import_typeorm16.JoinColumn)({ name: "job_id" })
|
|
2515
2567
|
], Interview.prototype, "job", 2);
|
|
2516
2568
|
__decorateClass([
|
|
2517
|
-
(0,
|
|
2569
|
+
(0, import_typeorm16.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
2518
2570
|
], Interview.prototype, "interviewType", 2);
|
|
2519
2571
|
__decorateClass([
|
|
2520
|
-
(0,
|
|
2572
|
+
(0, import_typeorm16.Column)({ name: "interview_language", type: "varchar", nullable: true })
|
|
2521
2573
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2522
2574
|
__decorateClass([
|
|
2523
|
-
(0,
|
|
2575
|
+
(0, import_typeorm16.Column)({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2524
2576
|
], Interview.prototype, "allowProctoring", 2);
|
|
2525
2577
|
__decorateClass([
|
|
2526
|
-
(0,
|
|
2578
|
+
(0, import_typeorm16.Column)({
|
|
2527
2579
|
name: "status",
|
|
2528
2580
|
type: "enum",
|
|
2529
2581
|
enum: InterviewStatusEnum,
|
|
@@ -2531,64 +2583,67 @@ __decorateClass([
|
|
|
2531
2583
|
})
|
|
2532
2584
|
], Interview.prototype, "status", 2);
|
|
2533
2585
|
__decorateClass([
|
|
2534
|
-
(0,
|
|
2586
|
+
(0, import_typeorm16.OneToMany)(
|
|
2535
2587
|
() => InterviewSkill,
|
|
2536
2588
|
(interviewSkill) => interviewSkill.interview,
|
|
2537
2589
|
{ cascade: true }
|
|
2538
2590
|
)
|
|
2539
2591
|
], Interview.prototype, "interviewSkills", 2);
|
|
2540
2592
|
__decorateClass([
|
|
2541
|
-
(0,
|
|
2593
|
+
(0, import_typeorm16.OneToMany)(
|
|
2542
2594
|
() => InterviewQuestion,
|
|
2543
2595
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2544
2596
|
{ cascade: true }
|
|
2545
2597
|
)
|
|
2546
2598
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2547
2599
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2600
|
+
(0, import_typeorm16.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2549
2601
|
], Interview.prototype, "invites", 2);
|
|
2602
|
+
__decorateClass([
|
|
2603
|
+
(0, import_typeorm16.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2604
|
+
], Interview.prototype, "aiInterviews", 2);
|
|
2550
2605
|
Interview = __decorateClass([
|
|
2551
|
-
(0,
|
|
2606
|
+
(0, import_typeorm16.Entity)("interviews")
|
|
2552
2607
|
], Interview);
|
|
2553
2608
|
|
|
2554
2609
|
// src/entities/job-recommendation.entity.ts
|
|
2555
|
-
var
|
|
2610
|
+
var import_typeorm17 = require("typeorm");
|
|
2556
2611
|
var JobRecommendation = class {
|
|
2557
2612
|
};
|
|
2558
2613
|
__decorateClass([
|
|
2559
|
-
(0,
|
|
2614
|
+
(0, import_typeorm17.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
2560
2615
|
], JobRecommendation.prototype, "id", 2);
|
|
2561
2616
|
__decorateClass([
|
|
2562
|
-
(0,
|
|
2563
|
-
(0,
|
|
2617
|
+
(0, import_typeorm17.Column)({ name: "job_id", type: "integer" }),
|
|
2618
|
+
(0, import_typeorm17.Index)()
|
|
2564
2619
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2565
2620
|
__decorateClass([
|
|
2566
|
-
(0,
|
|
2567
|
-
(0,
|
|
2621
|
+
(0, import_typeorm17.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2622
|
+
(0, import_typeorm17.JoinColumn)({ name: "job_id" })
|
|
2568
2623
|
], JobRecommendation.prototype, "job", 2);
|
|
2569
2624
|
__decorateClass([
|
|
2570
|
-
(0,
|
|
2571
|
-
(0,
|
|
2625
|
+
(0, import_typeorm17.Column)({ name: "freelancer_id", type: "integer" }),
|
|
2626
|
+
(0, import_typeorm17.Index)()
|
|
2572
2627
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2573
2628
|
__decorateClass([
|
|
2574
|
-
(0,
|
|
2575
|
-
(0,
|
|
2629
|
+
(0, import_typeorm17.Column)({ name: "client_id", type: "integer" }),
|
|
2630
|
+
(0, import_typeorm17.Index)()
|
|
2576
2631
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2577
2632
|
__decorateClass([
|
|
2578
|
-
(0,
|
|
2633
|
+
(0, import_typeorm17.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2579
2634
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2580
2635
|
__decorateClass([
|
|
2581
|
-
(0,
|
|
2636
|
+
(0, import_typeorm17.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2582
2637
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2583
2638
|
__decorateClass([
|
|
2584
|
-
(0,
|
|
2639
|
+
(0, import_typeorm17.Column)({
|
|
2585
2640
|
name: "last_calculated_at",
|
|
2586
2641
|
type: "timestamp with time zone",
|
|
2587
2642
|
nullable: true
|
|
2588
2643
|
})
|
|
2589
2644
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2590
2645
|
JobRecommendation = __decorateClass([
|
|
2591
|
-
(0,
|
|
2646
|
+
(0, import_typeorm17.Entity)("job_recommendations")
|
|
2592
2647
|
], JobRecommendation);
|
|
2593
2648
|
|
|
2594
2649
|
// src/entities/job.entity.ts
|
|
@@ -2628,49 +2683,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2628
2683
|
var Job = class extends BaseEntity {
|
|
2629
2684
|
};
|
|
2630
2685
|
__decorateClass([
|
|
2631
|
-
(0,
|
|
2686
|
+
(0, import_typeorm18.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2632
2687
|
], Job.prototype, "jobId", 2);
|
|
2633
2688
|
// individual index to find jobs by user
|
|
2634
2689
|
__decorateClass([
|
|
2635
|
-
(0,
|
|
2636
|
-
(0,
|
|
2690
|
+
(0, import_typeorm18.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2691
|
+
(0, import_typeorm18.Index)()
|
|
2637
2692
|
], Job.prototype, "userId", 2);
|
|
2638
2693
|
__decorateClass([
|
|
2639
|
-
(0,
|
|
2640
|
-
(0,
|
|
2694
|
+
(0, import_typeorm18.ManyToOne)(() => User, (user) => user.jobs),
|
|
2695
|
+
(0, import_typeorm18.JoinColumn)({ name: "user_id" })
|
|
2641
2696
|
], Job.prototype, "user", 2);
|
|
2642
2697
|
__decorateClass([
|
|
2643
|
-
(0,
|
|
2698
|
+
(0, import_typeorm18.Column)({ name: "country_id", type: "int", nullable: true })
|
|
2644
2699
|
], Job.prototype, "countryId", 2);
|
|
2645
2700
|
__decorateClass([
|
|
2646
|
-
(0,
|
|
2647
|
-
(0,
|
|
2701
|
+
(0, import_typeorm18.ManyToOne)(() => Country),
|
|
2702
|
+
(0, import_typeorm18.JoinColumn)({ name: "country_id" })
|
|
2648
2703
|
], Job.prototype, "country", 2);
|
|
2649
2704
|
__decorateClass([
|
|
2650
|
-
(0,
|
|
2705
|
+
(0, import_typeorm18.Column)({ name: "state_id", type: "int", nullable: true })
|
|
2651
2706
|
], Job.prototype, "stateId", 2);
|
|
2652
2707
|
__decorateClass([
|
|
2653
|
-
(0,
|
|
2654
|
-
(0,
|
|
2708
|
+
(0, import_typeorm18.ManyToOne)(() => State),
|
|
2709
|
+
(0, import_typeorm18.JoinColumn)({ name: "state_id" })
|
|
2655
2710
|
], Job.prototype, "state", 2);
|
|
2656
2711
|
__decorateClass([
|
|
2657
|
-
(0,
|
|
2712
|
+
(0, import_typeorm18.Column)({ name: "city_id", type: "int", nullable: true })
|
|
2658
2713
|
], Job.prototype, "cityId", 2);
|
|
2659
2714
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2661
|
-
(0,
|
|
2715
|
+
(0, import_typeorm18.ManyToOne)(() => City),
|
|
2716
|
+
(0, import_typeorm18.JoinColumn)({ name: "city_id" })
|
|
2662
2717
|
], Job.prototype, "city", 2);
|
|
2663
2718
|
__decorateClass([
|
|
2664
|
-
(0,
|
|
2719
|
+
(0, import_typeorm18.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
2665
2720
|
], Job.prototype, "jobRole", 2);
|
|
2666
2721
|
__decorateClass([
|
|
2667
|
-
(0,
|
|
2722
|
+
(0, import_typeorm18.Column)({ name: "note", type: "varchar", nullable: true })
|
|
2668
2723
|
], Job.prototype, "note", 2);
|
|
2669
2724
|
__decorateClass([
|
|
2670
|
-
(0,
|
|
2725
|
+
(0, import_typeorm18.Column)({ name: "openings", type: "integer", default: 0 })
|
|
2671
2726
|
], Job.prototype, "openings", 2);
|
|
2672
2727
|
__decorateClass([
|
|
2673
|
-
(0,
|
|
2728
|
+
(0, import_typeorm18.Column)({
|
|
2674
2729
|
name: "location",
|
|
2675
2730
|
type: "enum",
|
|
2676
2731
|
enum: JobLocationEnum,
|
|
@@ -2678,7 +2733,7 @@ __decorateClass([
|
|
|
2678
2733
|
})
|
|
2679
2734
|
], Job.prototype, "location", 2);
|
|
2680
2735
|
__decorateClass([
|
|
2681
|
-
(0,
|
|
2736
|
+
(0, import_typeorm18.Column)({
|
|
2682
2737
|
name: "type_of_employment",
|
|
2683
2738
|
type: "enum",
|
|
2684
2739
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2686,19 +2741,19 @@ __decorateClass([
|
|
|
2686
2741
|
})
|
|
2687
2742
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2688
2743
|
__decorateClass([
|
|
2689
|
-
(0,
|
|
2744
|
+
(0, import_typeorm18.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2690
2745
|
], Job.prototype, "academicQualification", 2);
|
|
2691
2746
|
__decorateClass([
|
|
2692
|
-
(0,
|
|
2747
|
+
(0, import_typeorm18.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2693
2748
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2694
2749
|
__decorateClass([
|
|
2695
|
-
(0,
|
|
2750
|
+
(0, import_typeorm18.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
2696
2751
|
], Job.prototype, "businessIndustry", 2);
|
|
2697
2752
|
__decorateClass([
|
|
2698
|
-
(0,
|
|
2753
|
+
(0, import_typeorm18.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
2699
2754
|
], Job.prototype, "currency", 2);
|
|
2700
2755
|
__decorateClass([
|
|
2701
|
-
(0,
|
|
2756
|
+
(0, import_typeorm18.Column)({
|
|
2702
2757
|
name: "expected_salary_from",
|
|
2703
2758
|
type: "decimal",
|
|
2704
2759
|
precision: 10,
|
|
@@ -2707,7 +2762,7 @@ __decorateClass([
|
|
|
2707
2762
|
})
|
|
2708
2763
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2709
2764
|
__decorateClass([
|
|
2710
|
-
(0,
|
|
2765
|
+
(0, import_typeorm18.Column)({
|
|
2711
2766
|
name: "expected_salary_to",
|
|
2712
2767
|
type: "decimal",
|
|
2713
2768
|
precision: 10,
|
|
@@ -2716,16 +2771,16 @@ __decorateClass([
|
|
|
2716
2771
|
})
|
|
2717
2772
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2718
2773
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2774
|
+
(0, import_typeorm18.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2720
2775
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2721
2776
|
__decorateClass([
|
|
2722
|
-
(0,
|
|
2777
|
+
(0, import_typeorm18.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2723
2778
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2724
2779
|
__decorateClass([
|
|
2725
|
-
(0,
|
|
2780
|
+
(0, import_typeorm18.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
2726
2781
|
], Job.prototype, "duration", 2);
|
|
2727
2782
|
__decorateClass([
|
|
2728
|
-
(0,
|
|
2783
|
+
(0, import_typeorm18.Column)({
|
|
2729
2784
|
name: "duration_type",
|
|
2730
2785
|
type: "enum",
|
|
2731
2786
|
enum: DurationTypeEnum,
|
|
@@ -2733,13 +2788,13 @@ __decorateClass([
|
|
|
2733
2788
|
})
|
|
2734
2789
|
], Job.prototype, "durationType", 2);
|
|
2735
2790
|
__decorateClass([
|
|
2736
|
-
(0,
|
|
2791
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2737
2792
|
], Job.prototype, "description", 2);
|
|
2738
2793
|
__decorateClass([
|
|
2739
|
-
(0,
|
|
2794
|
+
(0, import_typeorm18.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2740
2795
|
], Job.prototype, "additionalComment", 2);
|
|
2741
2796
|
__decorateClass([
|
|
2742
|
-
(0,
|
|
2797
|
+
(0, import_typeorm18.Column)({
|
|
2743
2798
|
name: "onboarding_tat",
|
|
2744
2799
|
type: "varchar",
|
|
2745
2800
|
length: 50,
|
|
@@ -2747,14 +2802,14 @@ __decorateClass([
|
|
|
2747
2802
|
})
|
|
2748
2803
|
], Job.prototype, "onboardingTat", 2);
|
|
2749
2804
|
__decorateClass([
|
|
2750
|
-
(0,
|
|
2805
|
+
(0, import_typeorm18.Column)({
|
|
2751
2806
|
name: "candidate_communication_skills",
|
|
2752
2807
|
type: "varchar",
|
|
2753
2808
|
nullable: true
|
|
2754
2809
|
})
|
|
2755
2810
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2756
2811
|
__decorateClass([
|
|
2757
|
-
(0,
|
|
2812
|
+
(0, import_typeorm18.Column)({
|
|
2758
2813
|
name: "step_completed",
|
|
2759
2814
|
type: "enum",
|
|
2760
2815
|
enum: Step,
|
|
@@ -2762,7 +2817,7 @@ __decorateClass([
|
|
|
2762
2817
|
})
|
|
2763
2818
|
], Job.prototype, "stepCompleted", 2);
|
|
2764
2819
|
__decorateClass([
|
|
2765
|
-
(0,
|
|
2820
|
+
(0, import_typeorm18.Column)({
|
|
2766
2821
|
name: "status",
|
|
2767
2822
|
type: "enum",
|
|
2768
2823
|
enum: JobStatusEnum,
|
|
@@ -2770,35 +2825,35 @@ __decorateClass([
|
|
|
2770
2825
|
})
|
|
2771
2826
|
], Job.prototype, "status", 2);
|
|
2772
2827
|
__decorateClass([
|
|
2773
|
-
(0,
|
|
2828
|
+
(0, import_typeorm18.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
2774
2829
|
], Job.prototype, "viewedCount", 2);
|
|
2775
2830
|
__decorateClass([
|
|
2776
|
-
(0,
|
|
2831
|
+
(0, import_typeorm18.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
2777
2832
|
], Job.prototype, "applicationCount", 2);
|
|
2778
2833
|
__decorateClass([
|
|
2779
|
-
(0,
|
|
2834
|
+
(0, import_typeorm18.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2780
2835
|
], Job.prototype, "jobSkills", 2);
|
|
2781
2836
|
__decorateClass([
|
|
2782
|
-
(0,
|
|
2837
|
+
(0, import_typeorm18.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2783
2838
|
cascade: true
|
|
2784
2839
|
})
|
|
2785
2840
|
], Job.prototype, "jobApplications", 2);
|
|
2786
2841
|
__decorateClass([
|
|
2787
|
-
(0,
|
|
2842
|
+
(0, import_typeorm18.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
2788
2843
|
cascade: true
|
|
2789
2844
|
})
|
|
2790
2845
|
], Job.prototype, "interviews", 2);
|
|
2791
2846
|
__decorateClass([
|
|
2792
|
-
(0,
|
|
2847
|
+
(0, import_typeorm18.OneToMany)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2793
2848
|
cascade: true
|
|
2794
2849
|
})
|
|
2795
2850
|
], Job.prototype, "recommendations", 2);
|
|
2796
2851
|
Job = __decorateClass([
|
|
2797
|
-
(0,
|
|
2852
|
+
(0, import_typeorm18.Entity)("jobs")
|
|
2798
2853
|
], Job);
|
|
2799
2854
|
|
|
2800
2855
|
// src/entities/bank-details.entity.ts
|
|
2801
|
-
var
|
|
2856
|
+
var import_typeorm19 = require("typeorm");
|
|
2802
2857
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2803
2858
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
2804
2859
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -2813,48 +2868,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2813
2868
|
};
|
|
2814
2869
|
// individual index to find bank details by user
|
|
2815
2870
|
__decorateClass([
|
|
2816
|
-
(0,
|
|
2817
|
-
(0,
|
|
2871
|
+
(0, import_typeorm19.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2872
|
+
(0, import_typeorm19.Index)()
|
|
2818
2873
|
], BankDetail.prototype, "userId", 2);
|
|
2819
2874
|
__decorateClass([
|
|
2820
|
-
(0,
|
|
2821
|
-
(0,
|
|
2875
|
+
(0, import_typeorm19.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
2876
|
+
(0, import_typeorm19.JoinColumn)({ name: "user_id" })
|
|
2822
2877
|
], BankDetail.prototype, "user", 2);
|
|
2823
2878
|
__decorateClass([
|
|
2824
|
-
(0,
|
|
2879
|
+
(0, import_typeorm19.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2825
2880
|
], BankDetail.prototype, "name", 2);
|
|
2826
2881
|
__decorateClass([
|
|
2827
|
-
(0,
|
|
2882
|
+
(0, import_typeorm19.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2828
2883
|
], BankDetail.prototype, "mobile", 2);
|
|
2829
2884
|
__decorateClass([
|
|
2830
|
-
(0,
|
|
2885
|
+
(0, import_typeorm19.Column)({ name: "email", type: "varchar", unique: true })
|
|
2831
2886
|
], BankDetail.prototype, "email", 2);
|
|
2832
2887
|
__decorateClass([
|
|
2833
|
-
(0,
|
|
2888
|
+
(0, import_typeorm19.Column)({ name: "address", type: "varchar", nullable: true })
|
|
2834
2889
|
], BankDetail.prototype, "address", 2);
|
|
2835
2890
|
__decorateClass([
|
|
2836
|
-
(0,
|
|
2891
|
+
(0, import_typeorm19.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2837
2892
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2838
2893
|
__decorateClass([
|
|
2839
|
-
(0,
|
|
2894
|
+
(0, import_typeorm19.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
2840
2895
|
], BankDetail.prototype, "bankName", 2);
|
|
2841
2896
|
__decorateClass([
|
|
2842
|
-
(0,
|
|
2897
|
+
(0, import_typeorm19.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2843
2898
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2844
2899
|
__decorateClass([
|
|
2845
|
-
(0,
|
|
2900
|
+
(0, import_typeorm19.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
2846
2901
|
], BankDetail.prototype, "branchName", 2);
|
|
2847
2902
|
__decorateClass([
|
|
2848
|
-
(0,
|
|
2903
|
+
(0, import_typeorm19.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
2849
2904
|
], BankDetail.prototype, "routingNo", 2);
|
|
2850
2905
|
__decorateClass([
|
|
2851
|
-
(0,
|
|
2906
|
+
(0, import_typeorm19.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
2852
2907
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2853
2908
|
__decorateClass([
|
|
2854
|
-
(0,
|
|
2909
|
+
(0, import_typeorm19.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
2855
2910
|
], BankDetail.prototype, "iban", 2);
|
|
2856
2911
|
__decorateClass([
|
|
2857
|
-
(0,
|
|
2912
|
+
(0, import_typeorm19.Column)({
|
|
2858
2913
|
name: "account_type",
|
|
2859
2914
|
type: "enum",
|
|
2860
2915
|
enum: BankAccountTypeEnum,
|
|
@@ -2862,7 +2917,7 @@ __decorateClass([
|
|
|
2862
2917
|
})
|
|
2863
2918
|
], BankDetail.prototype, "accountType", 2);
|
|
2864
2919
|
__decorateClass([
|
|
2865
|
-
(0,
|
|
2920
|
+
(0, import_typeorm19.Column)({
|
|
2866
2921
|
name: "account_scope",
|
|
2867
2922
|
type: "enum",
|
|
2868
2923
|
enum: BankAccountScopeEnum,
|
|
@@ -2870,210 +2925,210 @@ __decorateClass([
|
|
|
2870
2925
|
})
|
|
2871
2926
|
], BankDetail.prototype, "accountScope", 2);
|
|
2872
2927
|
BankDetail = __decorateClass([
|
|
2873
|
-
(0,
|
|
2928
|
+
(0, import_typeorm19.Entity)("bank_details")
|
|
2874
2929
|
], BankDetail);
|
|
2875
2930
|
|
|
2876
2931
|
// src/entities/system-preference.entity.ts
|
|
2877
|
-
var
|
|
2932
|
+
var import_typeorm20 = require("typeorm");
|
|
2878
2933
|
var SystemPreference = class extends BaseEntity {
|
|
2879
2934
|
};
|
|
2880
2935
|
// individual index to find system preference by user
|
|
2881
2936
|
__decorateClass([
|
|
2882
|
-
(0,
|
|
2883
|
-
(0,
|
|
2937
|
+
(0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2938
|
+
(0, import_typeorm20.Index)()
|
|
2884
2939
|
], SystemPreference.prototype, "userId", 2);
|
|
2885
2940
|
__decorateClass([
|
|
2886
|
-
(0,
|
|
2887
|
-
(0,
|
|
2941
|
+
(0, import_typeorm20.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
2942
|
+
(0, import_typeorm20.JoinColumn)({ name: "user_id" })
|
|
2888
2943
|
], SystemPreference.prototype, "user", 2);
|
|
2889
2944
|
__decorateClass([
|
|
2890
|
-
(0,
|
|
2945
|
+
(0, import_typeorm20.Column)({ name: "key", type: "varchar", nullable: false })
|
|
2891
2946
|
], SystemPreference.prototype, "key", 2);
|
|
2892
2947
|
__decorateClass([
|
|
2893
|
-
(0,
|
|
2948
|
+
(0, import_typeorm20.Column)({ name: "value", type: "boolean", default: false })
|
|
2894
2949
|
], SystemPreference.prototype, "value", 2);
|
|
2895
2950
|
SystemPreference = __decorateClass([
|
|
2896
|
-
(0,
|
|
2951
|
+
(0, import_typeorm20.Entity)("system_preferences")
|
|
2897
2952
|
], SystemPreference);
|
|
2898
2953
|
|
|
2899
2954
|
// src/entities/freelancer-experience.entity.ts
|
|
2900
|
-
var
|
|
2955
|
+
var import_typeorm21 = require("typeorm");
|
|
2901
2956
|
var FreelancerExperience = class extends BaseEntity {
|
|
2902
2957
|
};
|
|
2903
2958
|
// individual index to find experence by user
|
|
2904
2959
|
__decorateClass([
|
|
2905
|
-
(0,
|
|
2906
|
-
(0,
|
|
2960
|
+
(0, import_typeorm21.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2961
|
+
(0, import_typeorm21.Index)()
|
|
2907
2962
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2908
2963
|
__decorateClass([
|
|
2909
|
-
(0,
|
|
2910
|
-
(0,
|
|
2964
|
+
(0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
2965
|
+
(0, import_typeorm21.JoinColumn)({ name: "user_id" })
|
|
2911
2966
|
], FreelancerExperience.prototype, "user", 2);
|
|
2912
2967
|
__decorateClass([
|
|
2913
|
-
(0,
|
|
2968
|
+
(0, import_typeorm21.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
2914
2969
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2915
2970
|
__decorateClass([
|
|
2916
|
-
(0,
|
|
2971
|
+
(0, import_typeorm21.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
2917
2972
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2918
2973
|
__decorateClass([
|
|
2919
|
-
(0,
|
|
2974
|
+
(0, import_typeorm21.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
2920
2975
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2921
2976
|
__decorateClass([
|
|
2922
|
-
(0,
|
|
2977
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2923
2978
|
], FreelancerExperience.prototype, "description", 2);
|
|
2924
2979
|
FreelancerExperience = __decorateClass([
|
|
2925
|
-
(0,
|
|
2980
|
+
(0, import_typeorm21.Entity)("freelancer_experiences")
|
|
2926
2981
|
], FreelancerExperience);
|
|
2927
2982
|
|
|
2928
2983
|
// src/entities/freelancer-education.entity.ts
|
|
2929
|
-
var
|
|
2984
|
+
var import_typeorm22 = require("typeorm");
|
|
2930
2985
|
var FreelancerEducation = class extends BaseEntity {
|
|
2931
2986
|
};
|
|
2932
2987
|
// individual index to find education by user
|
|
2933
2988
|
__decorateClass([
|
|
2934
|
-
(0,
|
|
2935
|
-
(0,
|
|
2989
|
+
(0, import_typeorm22.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2990
|
+
(0, import_typeorm22.Index)()
|
|
2936
2991
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2937
2992
|
__decorateClass([
|
|
2938
|
-
(0,
|
|
2939
|
-
(0,
|
|
2993
|
+
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
2994
|
+
(0, import_typeorm22.JoinColumn)({ name: "user_id" })
|
|
2940
2995
|
], FreelancerEducation.prototype, "user", 2);
|
|
2941
2996
|
__decorateClass([
|
|
2942
|
-
(0,
|
|
2997
|
+
(0, import_typeorm22.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
2943
2998
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2944
2999
|
__decorateClass([
|
|
2945
|
-
(0,
|
|
3000
|
+
(0, import_typeorm22.Column)({ name: "university", type: "varchar", nullable: true })
|
|
2946
3001
|
], FreelancerEducation.prototype, "university", 2);
|
|
2947
3002
|
__decorateClass([
|
|
2948
|
-
(0,
|
|
3003
|
+
(0, import_typeorm22.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2949
3004
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2950
3005
|
FreelancerEducation = __decorateClass([
|
|
2951
|
-
(0,
|
|
3006
|
+
(0, import_typeorm22.Entity)("freelancer_educations")
|
|
2952
3007
|
], FreelancerEducation);
|
|
2953
3008
|
|
|
2954
3009
|
// src/entities/freelancer-project.entity.ts
|
|
2955
|
-
var
|
|
3010
|
+
var import_typeorm23 = require("typeorm");
|
|
2956
3011
|
var FreelancerProject = class extends BaseEntity {
|
|
2957
3012
|
};
|
|
2958
3013
|
// individual index to find project by user
|
|
2959
3014
|
__decorateClass([
|
|
2960
|
-
(0,
|
|
2961
|
-
(0,
|
|
3015
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3016
|
+
(0, import_typeorm23.Index)()
|
|
2962
3017
|
], FreelancerProject.prototype, "userId", 2);
|
|
2963
3018
|
__decorateClass([
|
|
2964
|
-
(0,
|
|
2965
|
-
(0,
|
|
3019
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
3020
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2966
3021
|
], FreelancerProject.prototype, "user", 2);
|
|
2967
3022
|
__decorateClass([
|
|
2968
|
-
(0,
|
|
3023
|
+
(0, import_typeorm23.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
2969
3024
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2970
3025
|
__decorateClass([
|
|
2971
|
-
(0,
|
|
3026
|
+
(0, import_typeorm23.Column)({ name: "start_date", type: "date", nullable: true })
|
|
2972
3027
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2973
3028
|
__decorateClass([
|
|
2974
|
-
(0,
|
|
3029
|
+
(0, import_typeorm23.Column)({ name: "end_date", type: "date", nullable: true })
|
|
2975
3030
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2976
3031
|
__decorateClass([
|
|
2977
|
-
(0,
|
|
3032
|
+
(0, import_typeorm23.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
2978
3033
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2979
3034
|
__decorateClass([
|
|
2980
|
-
(0,
|
|
3035
|
+
(0, import_typeorm23.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
2981
3036
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2982
3037
|
__decorateClass([
|
|
2983
|
-
(0,
|
|
3038
|
+
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2984
3039
|
], FreelancerProject.prototype, "description", 2);
|
|
2985
3040
|
FreelancerProject = __decorateClass([
|
|
2986
|
-
(0,
|
|
3041
|
+
(0, import_typeorm23.Entity)("freelancer_projects")
|
|
2987
3042
|
], FreelancerProject);
|
|
2988
3043
|
|
|
2989
3044
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2990
|
-
var
|
|
3045
|
+
var import_typeorm24 = require("typeorm");
|
|
2991
3046
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2992
3047
|
};
|
|
2993
3048
|
// individual index to find case study by user
|
|
2994
3049
|
__decorateClass([
|
|
2995
|
-
(0,
|
|
2996
|
-
(0,
|
|
3050
|
+
(0, import_typeorm24.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3051
|
+
(0, import_typeorm24.Index)()
|
|
2997
3052
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2998
3053
|
__decorateClass([
|
|
2999
|
-
(0,
|
|
3000
|
-
(0,
|
|
3054
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
3055
|
+
(0, import_typeorm24.JoinColumn)({ name: "user_id" })
|
|
3001
3056
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3002
3057
|
__decorateClass([
|
|
3003
|
-
(0,
|
|
3058
|
+
(0, import_typeorm24.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3004
3059
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3005
3060
|
__decorateClass([
|
|
3006
|
-
(0,
|
|
3061
|
+
(0, import_typeorm24.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3007
3062
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3008
3063
|
__decorateClass([
|
|
3009
|
-
(0,
|
|
3064
|
+
(0, import_typeorm24.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3010
3065
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3011
3066
|
FreelancerCaseStudy = __decorateClass([
|
|
3012
|
-
(0,
|
|
3067
|
+
(0, import_typeorm24.Entity)("freelancer_case_studies")
|
|
3013
3068
|
], FreelancerCaseStudy);
|
|
3014
3069
|
|
|
3015
3070
|
// src/entities/freelancer-skill.entity.ts
|
|
3016
|
-
var
|
|
3071
|
+
var import_typeorm25 = require("typeorm");
|
|
3017
3072
|
var FreelancerSkill = class extends BaseEntity {
|
|
3018
3073
|
};
|
|
3019
3074
|
// individual index to find core skills by user
|
|
3020
3075
|
__decorateClass([
|
|
3021
|
-
(0,
|
|
3022
|
-
(0,
|
|
3076
|
+
(0, import_typeorm25.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3077
|
+
(0, import_typeorm25.Index)()
|
|
3023
3078
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3024
3079
|
__decorateClass([
|
|
3025
|
-
(0,
|
|
3026
|
-
(0,
|
|
3080
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3081
|
+
(0, import_typeorm25.JoinColumn)({ name: "user_id" })
|
|
3027
3082
|
], FreelancerSkill.prototype, "user", 2);
|
|
3028
3083
|
__decorateClass([
|
|
3029
|
-
(0,
|
|
3084
|
+
(0, import_typeorm25.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3030
3085
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3031
3086
|
FreelancerSkill = __decorateClass([
|
|
3032
|
-
(0,
|
|
3087
|
+
(0, import_typeorm25.Entity)("freelancer_skills")
|
|
3033
3088
|
], FreelancerSkill);
|
|
3034
3089
|
|
|
3035
3090
|
// src/entities/freelancer-tool.entity.ts
|
|
3036
|
-
var
|
|
3091
|
+
var import_typeorm26 = require("typeorm");
|
|
3037
3092
|
var FreelancerTool = class extends BaseEntity {
|
|
3038
3093
|
};
|
|
3039
3094
|
// individual index to find tool by user
|
|
3040
3095
|
__decorateClass([
|
|
3041
|
-
(0,
|
|
3042
|
-
(0,
|
|
3096
|
+
(0, import_typeorm26.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3097
|
+
(0, import_typeorm26.Index)()
|
|
3043
3098
|
], FreelancerTool.prototype, "userId", 2);
|
|
3044
3099
|
__decorateClass([
|
|
3045
|
-
(0,
|
|
3046
|
-
(0,
|
|
3100
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
3101
|
+
(0, import_typeorm26.JoinColumn)({ name: "user_id" })
|
|
3047
3102
|
], FreelancerTool.prototype, "user", 2);
|
|
3048
3103
|
__decorateClass([
|
|
3049
|
-
(0,
|
|
3104
|
+
(0, import_typeorm26.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
3050
3105
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3051
3106
|
FreelancerTool = __decorateClass([
|
|
3052
|
-
(0,
|
|
3107
|
+
(0, import_typeorm26.Entity)("freelancer_tools")
|
|
3053
3108
|
], FreelancerTool);
|
|
3054
3109
|
|
|
3055
3110
|
// src/entities/freelancer-framework.entity.ts
|
|
3056
|
-
var
|
|
3111
|
+
var import_typeorm27 = require("typeorm");
|
|
3057
3112
|
var FreelancerFramework = class extends BaseEntity {
|
|
3058
3113
|
};
|
|
3059
3114
|
// individual index to find framework by user
|
|
3060
3115
|
__decorateClass([
|
|
3061
|
-
(0,
|
|
3062
|
-
(0,
|
|
3116
|
+
(0, import_typeorm27.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3117
|
+
(0, import_typeorm27.Index)()
|
|
3063
3118
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3064
3119
|
__decorateClass([
|
|
3065
|
-
(0,
|
|
3066
|
-
(0,
|
|
3120
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
3121
|
+
(0, import_typeorm27.JoinColumn)({ name: "user_id" })
|
|
3067
3122
|
], FreelancerFramework.prototype, "user", 2);
|
|
3068
3123
|
__decorateClass([
|
|
3069
|
-
(0,
|
|
3124
|
+
(0, import_typeorm27.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
3070
3125
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3071
3126
|
FreelancerFramework = __decorateClass([
|
|
3072
|
-
(0,
|
|
3127
|
+
(0, import_typeorm27.Entity)("freelancer_frameworks")
|
|
3073
3128
|
], FreelancerFramework);
|
|
3074
3129
|
|
|
3075
3130
|
// src/entities/freelancer-assessment.entity.ts
|
|
3076
|
-
var
|
|
3131
|
+
var import_typeorm28 = require("typeorm");
|
|
3077
3132
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3078
3133
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
3079
3134
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -3089,30 +3144,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3089
3144
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3090
3145
|
};
|
|
3091
3146
|
__decorateClass([
|
|
3092
|
-
(0,
|
|
3093
|
-
(0,
|
|
3147
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3148
|
+
(0, import_typeorm28.Index)()
|
|
3094
3149
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3095
3150
|
__decorateClass([
|
|
3096
|
-
(0,
|
|
3097
|
-
(0,
|
|
3151
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.assessments),
|
|
3152
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
3098
3153
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3099
3154
|
__decorateClass([
|
|
3100
|
-
(0,
|
|
3155
|
+
(0, import_typeorm28.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
3101
3156
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3102
3157
|
__decorateClass([
|
|
3103
|
-
(0,
|
|
3158
|
+
(0, import_typeorm28.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
3104
3159
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3105
3160
|
__decorateClass([
|
|
3106
|
-
(0,
|
|
3161
|
+
(0, import_typeorm28.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
3107
3162
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3108
3163
|
__decorateClass([
|
|
3109
|
-
(0,
|
|
3164
|
+
(0, import_typeorm28.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3110
3165
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3111
3166
|
__decorateClass([
|
|
3112
|
-
(0,
|
|
3167
|
+
(0, import_typeorm28.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3113
3168
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3114
3169
|
__decorateClass([
|
|
3115
|
-
(0,
|
|
3170
|
+
(0, import_typeorm28.Column)({
|
|
3116
3171
|
name: "status",
|
|
3117
3172
|
type: "enum",
|
|
3118
3173
|
enum: AssessmentStatusEnum,
|
|
@@ -3120,11 +3175,11 @@ __decorateClass([
|
|
|
3120
3175
|
})
|
|
3121
3176
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3122
3177
|
FreelancerAssessment = __decorateClass([
|
|
3123
|
-
(0,
|
|
3178
|
+
(0, import_typeorm28.Entity)("freelancer_assessments")
|
|
3124
3179
|
], FreelancerAssessment);
|
|
3125
3180
|
|
|
3126
3181
|
// src/entities/freelancer-declaration.entity.ts
|
|
3127
|
-
var
|
|
3182
|
+
var import_typeorm29 = require("typeorm");
|
|
3128
3183
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3129
3184
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3130
3185
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3136,15 +3191,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3136
3191
|
};
|
|
3137
3192
|
// individual index to find declaration by user
|
|
3138
3193
|
__decorateClass([
|
|
3139
|
-
(0,
|
|
3140
|
-
(0,
|
|
3194
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3195
|
+
(0, import_typeorm29.Index)()
|
|
3141
3196
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3142
3197
|
__decorateClass([
|
|
3143
|
-
(0,
|
|
3144
|
-
(0,
|
|
3198
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
3199
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
3145
3200
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3146
3201
|
__decorateClass([
|
|
3147
|
-
(0,
|
|
3202
|
+
(0, import_typeorm29.Column)({
|
|
3148
3203
|
name: "document_type",
|
|
3149
3204
|
type: "enum",
|
|
3150
3205
|
enum: DocumentType,
|
|
@@ -3152,144 +3207,144 @@ __decorateClass([
|
|
|
3152
3207
|
})
|
|
3153
3208
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3154
3209
|
__decorateClass([
|
|
3155
|
-
(0,
|
|
3210
|
+
(0, import_typeorm29.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3156
3211
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3157
3212
|
__decorateClass([
|
|
3158
|
-
(0,
|
|
3213
|
+
(0, import_typeorm29.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3159
3214
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3160
3215
|
__decorateClass([
|
|
3161
|
-
(0,
|
|
3216
|
+
(0, import_typeorm29.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3162
3217
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3163
3218
|
__decorateClass([
|
|
3164
|
-
(0,
|
|
3219
|
+
(0, import_typeorm29.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3165
3220
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3166
3221
|
FreelancerDeclaration = __decorateClass([
|
|
3167
|
-
(0,
|
|
3222
|
+
(0, import_typeorm29.Entity)("freelancer_declaration")
|
|
3168
3223
|
], FreelancerDeclaration);
|
|
3169
3224
|
|
|
3170
3225
|
// src/entities/company-members-roles.entity.ts
|
|
3171
|
-
var
|
|
3226
|
+
var import_typeorm33 = require("typeorm");
|
|
3172
3227
|
|
|
3173
3228
|
// src/entities/company-role.entity.ts
|
|
3174
|
-
var
|
|
3229
|
+
var import_typeorm32 = require("typeorm");
|
|
3175
3230
|
|
|
3176
3231
|
// src/entities/company-role-permission.entity.ts
|
|
3177
|
-
var
|
|
3232
|
+
var import_typeorm31 = require("typeorm");
|
|
3178
3233
|
|
|
3179
3234
|
// src/entities/permission.entity.ts
|
|
3180
|
-
var
|
|
3235
|
+
var import_typeorm30 = require("typeorm");
|
|
3181
3236
|
var Permission = class extends BaseEntity {
|
|
3182
3237
|
};
|
|
3183
3238
|
__decorateClass([
|
|
3184
|
-
(0,
|
|
3239
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3185
3240
|
], Permission.prototype, "name", 2);
|
|
3186
3241
|
__decorateClass([
|
|
3187
|
-
(0,
|
|
3188
|
-
(0,
|
|
3242
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3243
|
+
(0, import_typeorm30.Index)()
|
|
3189
3244
|
], Permission.prototype, "slug", 2);
|
|
3190
3245
|
__decorateClass([
|
|
3191
|
-
(0,
|
|
3246
|
+
(0, import_typeorm30.Column)({ name: "description", type: "text", nullable: true })
|
|
3192
3247
|
], Permission.prototype, "description", 2);
|
|
3193
3248
|
__decorateClass([
|
|
3194
|
-
(0,
|
|
3249
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3195
3250
|
], Permission.prototype, "isActive", 2);
|
|
3196
3251
|
Permission = __decorateClass([
|
|
3197
|
-
(0,
|
|
3252
|
+
(0, import_typeorm30.Entity)("permissions")
|
|
3198
3253
|
], Permission);
|
|
3199
3254
|
|
|
3200
3255
|
// src/entities/company-role-permission.entity.ts
|
|
3201
3256
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3202
3257
|
};
|
|
3203
3258
|
__decorateClass([
|
|
3204
|
-
(0,
|
|
3205
|
-
(0,
|
|
3259
|
+
(0, import_typeorm31.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3260
|
+
(0, import_typeorm31.Index)()
|
|
3206
3261
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3207
3262
|
__decorateClass([
|
|
3208
|
-
(0,
|
|
3263
|
+
(0, import_typeorm31.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3209
3264
|
onDelete: "CASCADE"
|
|
3210
3265
|
}),
|
|
3211
|
-
(0,
|
|
3266
|
+
(0, import_typeorm31.JoinColumn)({ name: "company_role_id" })
|
|
3212
3267
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3213
3268
|
__decorateClass([
|
|
3214
|
-
(0,
|
|
3215
|
-
(0,
|
|
3269
|
+
(0, import_typeorm31.Column)({ name: "permission_id", type: "integer" }),
|
|
3270
|
+
(0, import_typeorm31.Index)()
|
|
3216
3271
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3217
3272
|
__decorateClass([
|
|
3218
|
-
(0,
|
|
3219
|
-
(0,
|
|
3273
|
+
(0, import_typeorm31.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
3274
|
+
(0, import_typeorm31.JoinColumn)({ name: "permission_id" })
|
|
3220
3275
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3221
3276
|
__decorateClass([
|
|
3222
|
-
(0,
|
|
3277
|
+
(0, import_typeorm31.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3223
3278
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3224
3279
|
CompanyRolePermission = __decorateClass([
|
|
3225
|
-
(0,
|
|
3280
|
+
(0, import_typeorm31.Entity)("company_role_permissions")
|
|
3226
3281
|
], CompanyRolePermission);
|
|
3227
3282
|
|
|
3228
3283
|
// src/entities/company-role.entity.ts
|
|
3229
3284
|
var CompanyRole = class extends BaseEntity {
|
|
3230
3285
|
};
|
|
3231
3286
|
__decorateClass([
|
|
3232
|
-
(0,
|
|
3233
|
-
(0,
|
|
3287
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3288
|
+
(0, import_typeorm32.Index)()
|
|
3234
3289
|
], CompanyRole.prototype, "userId", 2);
|
|
3235
3290
|
__decorateClass([
|
|
3236
|
-
(0,
|
|
3237
|
-
(0,
|
|
3291
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.otps),
|
|
3292
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
3238
3293
|
], CompanyRole.prototype, "user", 2);
|
|
3239
3294
|
__decorateClass([
|
|
3240
|
-
(0,
|
|
3295
|
+
(0, import_typeorm32.Column)({ name: "name", type: "varchar" })
|
|
3241
3296
|
], CompanyRole.prototype, "name", 2);
|
|
3242
3297
|
__decorateClass([
|
|
3243
|
-
(0,
|
|
3244
|
-
(0,
|
|
3298
|
+
(0, import_typeorm32.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3299
|
+
(0, import_typeorm32.Index)()
|
|
3245
3300
|
], CompanyRole.prototype, "slug", 2);
|
|
3246
3301
|
__decorateClass([
|
|
3247
|
-
(0,
|
|
3302
|
+
(0, import_typeorm32.Column)({ name: "description", type: "text", nullable: true })
|
|
3248
3303
|
], CompanyRole.prototype, "description", 2);
|
|
3249
3304
|
__decorateClass([
|
|
3250
|
-
(0,
|
|
3305
|
+
(0, import_typeorm32.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3251
3306
|
], CompanyRole.prototype, "isActive", 2);
|
|
3252
3307
|
__decorateClass([
|
|
3253
|
-
(0,
|
|
3308
|
+
(0, import_typeorm32.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3254
3309
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3255
3310
|
CompanyRole = __decorateClass([
|
|
3256
|
-
(0,
|
|
3311
|
+
(0, import_typeorm32.Entity)("company_roles")
|
|
3257
3312
|
], CompanyRole);
|
|
3258
3313
|
|
|
3259
3314
|
// src/entities/company-members-roles.entity.ts
|
|
3260
3315
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3261
3316
|
};
|
|
3262
3317
|
__decorateClass([
|
|
3263
|
-
(0,
|
|
3264
|
-
(0,
|
|
3318
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3319
|
+
(0, import_typeorm33.Index)()
|
|
3265
3320
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3266
3321
|
__decorateClass([
|
|
3267
|
-
(0,
|
|
3268
|
-
(0,
|
|
3322
|
+
(0, import_typeorm33.ManyToOne)(() => User),
|
|
3323
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
3269
3324
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3270
3325
|
__decorateClass([
|
|
3271
|
-
(0,
|
|
3272
|
-
(0,
|
|
3326
|
+
(0, import_typeorm33.ManyToOne)(() => CompanyRole),
|
|
3327
|
+
(0, import_typeorm33.JoinColumn)({ name: "company_role_id" })
|
|
3273
3328
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3274
3329
|
__decorateClass([
|
|
3275
|
-
(0,
|
|
3276
|
-
(0,
|
|
3330
|
+
(0, import_typeorm33.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3331
|
+
(0, import_typeorm33.Index)()
|
|
3277
3332
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3278
3333
|
__decorateClass([
|
|
3279
|
-
(0,
|
|
3334
|
+
(0, import_typeorm33.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
3280
3335
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3281
3336
|
CompanyMemberRole = __decorateClass([
|
|
3282
|
-
(0,
|
|
3337
|
+
(0, import_typeorm33.Entity)("company_member_roles")
|
|
3283
3338
|
], CompanyMemberRole);
|
|
3284
3339
|
|
|
3285
3340
|
// src/entities/assessment-answer.entity.ts
|
|
3286
|
-
var
|
|
3341
|
+
var import_typeorm36 = require("typeorm");
|
|
3287
3342
|
|
|
3288
3343
|
// src/entities/assessment-question.entity.ts
|
|
3289
|
-
var
|
|
3344
|
+
var import_typeorm35 = require("typeorm");
|
|
3290
3345
|
|
|
3291
3346
|
// src/entities/assessment-question-option.entity.ts
|
|
3292
|
-
var
|
|
3347
|
+
var import_typeorm34 = require("typeorm");
|
|
3293
3348
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3294
3349
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3295
3350
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -3299,21 +3354,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3299
3354
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3300
3355
|
};
|
|
3301
3356
|
__decorateClass([
|
|
3302
|
-
(0,
|
|
3303
|
-
(0,
|
|
3357
|
+
(0, import_typeorm34.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3358
|
+
(0, import_typeorm34.Index)()
|
|
3304
3359
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3305
3360
|
__decorateClass([
|
|
3306
|
-
(0,
|
|
3361
|
+
(0, import_typeorm34.ManyToOne)(
|
|
3307
3362
|
() => AssessmetQuestion,
|
|
3308
3363
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3309
3364
|
),
|
|
3310
|
-
(0,
|
|
3365
|
+
(0, import_typeorm34.JoinColumn)({ name: "question_id" })
|
|
3311
3366
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3312
3367
|
__decorateClass([
|
|
3313
|
-
(0,
|
|
3368
|
+
(0, import_typeorm34.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3314
3369
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3315
3370
|
__decorateClass([
|
|
3316
|
-
(0,
|
|
3371
|
+
(0, import_typeorm34.Column)({
|
|
3317
3372
|
name: "answer_type",
|
|
3318
3373
|
type: "enum",
|
|
3319
3374
|
enum: AnswerTypeEnum,
|
|
@@ -3321,13 +3376,13 @@ __decorateClass([
|
|
|
3321
3376
|
})
|
|
3322
3377
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3323
3378
|
__decorateClass([
|
|
3324
|
-
(0,
|
|
3379
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3325
3380
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3326
3381
|
__decorateClass([
|
|
3327
|
-
(0,
|
|
3382
|
+
(0, import_typeorm34.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3328
3383
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3329
3384
|
AssessmetQuestionOption = __decorateClass([
|
|
3330
|
-
(0,
|
|
3385
|
+
(0, import_typeorm34.Entity)("assessment_question_options")
|
|
3331
3386
|
], AssessmetQuestionOption);
|
|
3332
3387
|
|
|
3333
3388
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3339,10 +3394,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3339
3394
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3340
3395
|
};
|
|
3341
3396
|
__decorateClass([
|
|
3342
|
-
(0,
|
|
3397
|
+
(0, import_typeorm35.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3343
3398
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3344
3399
|
__decorateClass([
|
|
3345
|
-
(0,
|
|
3400
|
+
(0, import_typeorm35.Column)({
|
|
3346
3401
|
name: "question_for",
|
|
3347
3402
|
type: "enum",
|
|
3348
3403
|
enum: QuestionForEnum,
|
|
@@ -3350,16 +3405,16 @@ __decorateClass([
|
|
|
3350
3405
|
})
|
|
3351
3406
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3352
3407
|
__decorateClass([
|
|
3353
|
-
(0,
|
|
3408
|
+
(0, import_typeorm35.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3354
3409
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3355
3410
|
__decorateClass([
|
|
3356
|
-
(0,
|
|
3411
|
+
(0, import_typeorm35.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3357
3412
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3358
3413
|
__decorateClass([
|
|
3359
|
-
(0,
|
|
3414
|
+
(0, import_typeorm35.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3360
3415
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3361
3416
|
AssessmetQuestion = __decorateClass([
|
|
3362
|
-
(0,
|
|
3417
|
+
(0, import_typeorm35.Entity)("assessment_questions")
|
|
3363
3418
|
], AssessmetQuestion);
|
|
3364
3419
|
|
|
3365
3420
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3372,118 +3427,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3372
3427
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3373
3428
|
};
|
|
3374
3429
|
__decorateClass([
|
|
3375
|
-
(0,
|
|
3376
|
-
(0,
|
|
3430
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer" }),
|
|
3431
|
+
(0, import_typeorm36.Index)()
|
|
3377
3432
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3378
3433
|
__decorateClass([
|
|
3379
|
-
(0,
|
|
3380
|
-
(0,
|
|
3434
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
3435
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
3381
3436
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3382
3437
|
__decorateClass([
|
|
3383
|
-
(0,
|
|
3384
|
-
(0,
|
|
3438
|
+
(0, import_typeorm36.Column)({ name: "question_id", type: "integer" }),
|
|
3439
|
+
(0, import_typeorm36.Index)()
|
|
3385
3440
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3386
3441
|
__decorateClass([
|
|
3387
|
-
(0,
|
|
3442
|
+
(0, import_typeorm36.ManyToOne)(
|
|
3388
3443
|
() => AssessmetQuestion,
|
|
3389
3444
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3390
3445
|
),
|
|
3391
|
-
(0,
|
|
3446
|
+
(0, import_typeorm36.JoinColumn)({ name: "question_id" })
|
|
3392
3447
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3393
3448
|
__decorateClass([
|
|
3394
|
-
(0,
|
|
3395
|
-
(0,
|
|
3449
|
+
(0, import_typeorm36.Column)({ name: "selected_option_id", type: "integer" }),
|
|
3450
|
+
(0, import_typeorm36.Index)()
|
|
3396
3451
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3397
3452
|
__decorateClass([
|
|
3398
|
-
(0,
|
|
3453
|
+
(0, import_typeorm36.ManyToOne)(
|
|
3399
3454
|
() => AssessmetQuestionOption,
|
|
3400
3455
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3401
3456
|
),
|
|
3402
|
-
(0,
|
|
3457
|
+
(0, import_typeorm36.JoinColumn)({ name: "selected_option_id" })
|
|
3403
3458
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3404
3459
|
__decorateClass([
|
|
3405
|
-
(0,
|
|
3460
|
+
(0, import_typeorm36.Column)({
|
|
3406
3461
|
name: "selected_answer_type",
|
|
3407
3462
|
type: "enum",
|
|
3408
3463
|
enum: SelectedAnswerTypeEnum
|
|
3409
3464
|
})
|
|
3410
3465
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3411
3466
|
__decorateClass([
|
|
3412
|
-
(0,
|
|
3467
|
+
(0, import_typeorm36.Column)({ name: "score", type: "float" })
|
|
3413
3468
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3414
3469
|
AssessmentAnswer = __decorateClass([
|
|
3415
|
-
(0,
|
|
3470
|
+
(0, import_typeorm36.Entity)("assessment_answers")
|
|
3416
3471
|
], AssessmentAnswer);
|
|
3417
3472
|
|
|
3418
3473
|
// src/entities/company-skill.entity.ts
|
|
3419
|
-
var
|
|
3474
|
+
var import_typeorm37 = require("typeorm");
|
|
3420
3475
|
var CompanySkill = class extends BaseEntity {
|
|
3421
3476
|
};
|
|
3422
3477
|
// individual index to find core skills by user
|
|
3423
3478
|
__decorateClass([
|
|
3424
|
-
(0,
|
|
3425
|
-
(0,
|
|
3479
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3480
|
+
(0, import_typeorm37.Index)()
|
|
3426
3481
|
], CompanySkill.prototype, "userId", 2);
|
|
3427
3482
|
__decorateClass([
|
|
3428
|
-
(0,
|
|
3429
|
-
(0,
|
|
3483
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
3484
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
3430
3485
|
], CompanySkill.prototype, "user", 2);
|
|
3431
3486
|
__decorateClass([
|
|
3432
|
-
(0,
|
|
3487
|
+
(0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3433
3488
|
], CompanySkill.prototype, "skillName", 2);
|
|
3434
3489
|
CompanySkill = __decorateClass([
|
|
3435
|
-
(0,
|
|
3490
|
+
(0, import_typeorm37.Entity)("company_skills")
|
|
3436
3491
|
], CompanySkill);
|
|
3437
3492
|
|
|
3438
3493
|
// src/entities/admin-user-role.entity.ts
|
|
3439
|
-
var
|
|
3494
|
+
var import_typeorm41 = require("typeorm");
|
|
3440
3495
|
|
|
3441
3496
|
// src/entities/admin-role.entity.ts
|
|
3442
|
-
var
|
|
3497
|
+
var import_typeorm40 = require("typeorm");
|
|
3443
3498
|
|
|
3444
3499
|
// src/entities/admin-role-permission.entity.ts
|
|
3445
|
-
var
|
|
3500
|
+
var import_typeorm39 = require("typeorm");
|
|
3446
3501
|
|
|
3447
3502
|
// src/entities/admin-permission.entity.ts
|
|
3448
|
-
var
|
|
3503
|
+
var import_typeorm38 = require("typeorm");
|
|
3449
3504
|
var AdminPermission = class extends BaseEntity {
|
|
3450
3505
|
};
|
|
3451
3506
|
__decorateClass([
|
|
3452
|
-
(0,
|
|
3507
|
+
(0, import_typeorm38.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
3453
3508
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3454
3509
|
__decorateClass([
|
|
3455
|
-
(0,
|
|
3510
|
+
(0, import_typeorm38.Column)({
|
|
3456
3511
|
name: "permission_slug",
|
|
3457
3512
|
type: "varchar",
|
|
3458
3513
|
unique: true,
|
|
3459
3514
|
nullable: true
|
|
3460
3515
|
}),
|
|
3461
|
-
(0,
|
|
3516
|
+
(0, import_typeorm38.Index)()
|
|
3462
3517
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3463
3518
|
__decorateClass([
|
|
3464
|
-
(0,
|
|
3519
|
+
(0, import_typeorm38.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
3465
3520
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3466
3521
|
__decorateClass([
|
|
3467
|
-
(0,
|
|
3522
|
+
(0, import_typeorm38.Column)({ name: "module", type: "varchar", nullable: true })
|
|
3468
3523
|
], AdminPermission.prototype, "module", 2);
|
|
3469
3524
|
__decorateClass([
|
|
3470
|
-
(0,
|
|
3525
|
+
(0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3471
3526
|
], AdminPermission.prototype, "isActive", 2);
|
|
3472
3527
|
__decorateClass([
|
|
3473
|
-
(0,
|
|
3528
|
+
(0, import_typeorm38.OneToMany)(
|
|
3474
3529
|
() => AdminRolePermission,
|
|
3475
3530
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3476
3531
|
)
|
|
3477
3532
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3478
3533
|
AdminPermission = __decorateClass([
|
|
3479
|
-
(0,
|
|
3534
|
+
(0, import_typeorm38.Entity)("admin_permissions")
|
|
3480
3535
|
], AdminPermission);
|
|
3481
3536
|
|
|
3482
3537
|
// src/entities/admin-role-permission.entity.ts
|
|
3483
3538
|
var AdminRolePermission = class extends BaseEntity {
|
|
3484
3539
|
};
|
|
3485
3540
|
__decorateClass([
|
|
3486
|
-
(0,
|
|
3541
|
+
(0, import_typeorm39.Column)({
|
|
3487
3542
|
name: "role_id",
|
|
3488
3543
|
type: "int",
|
|
3489
3544
|
nullable: true,
|
|
@@ -3491,11 +3546,11 @@ __decorateClass([
|
|
|
3491
3546
|
})
|
|
3492
3547
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3493
3548
|
__decorateClass([
|
|
3494
|
-
(0,
|
|
3495
|
-
(0,
|
|
3549
|
+
(0, import_typeorm39.ManyToOne)(() => AdminRole),
|
|
3550
|
+
(0, import_typeorm39.JoinColumn)({ name: "role_id" })
|
|
3496
3551
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3497
3552
|
__decorateClass([
|
|
3498
|
-
(0,
|
|
3553
|
+
(0, import_typeorm39.Column)({
|
|
3499
3554
|
name: "permission_id",
|
|
3500
3555
|
type: "int",
|
|
3501
3556
|
nullable: true,
|
|
@@ -3503,47 +3558,47 @@ __decorateClass([
|
|
|
3503
3558
|
})
|
|
3504
3559
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3505
3560
|
__decorateClass([
|
|
3506
|
-
(0,
|
|
3507
|
-
(0,
|
|
3561
|
+
(0, import_typeorm39.ManyToOne)(() => AdminPermission),
|
|
3562
|
+
(0, import_typeorm39.JoinColumn)({ name: "permission_id" })
|
|
3508
3563
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3509
3564
|
AdminRolePermission = __decorateClass([
|
|
3510
|
-
(0,
|
|
3565
|
+
(0, import_typeorm39.Entity)("admin_role_permissions")
|
|
3511
3566
|
], AdminRolePermission);
|
|
3512
3567
|
|
|
3513
3568
|
// src/entities/admin-role.entity.ts
|
|
3514
3569
|
var AdminRole = class extends BaseEntity {
|
|
3515
3570
|
};
|
|
3516
3571
|
__decorateClass([
|
|
3517
|
-
(0,
|
|
3572
|
+
(0, import_typeorm40.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
3518
3573
|
], AdminRole.prototype, "roleName", 2);
|
|
3519
3574
|
__decorateClass([
|
|
3520
|
-
(0,
|
|
3521
|
-
(0,
|
|
3575
|
+
(0, import_typeorm40.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3576
|
+
(0, import_typeorm40.Index)()
|
|
3522
3577
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3523
3578
|
__decorateClass([
|
|
3524
|
-
(0,
|
|
3579
|
+
(0, import_typeorm40.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
3525
3580
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3526
3581
|
__decorateClass([
|
|
3527
|
-
(0,
|
|
3582
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3528
3583
|
], AdminRole.prototype, "isActive", 2);
|
|
3529
3584
|
__decorateClass([
|
|
3530
|
-
(0,
|
|
3585
|
+
(0, import_typeorm40.OneToMany)(
|
|
3531
3586
|
() => AdminRolePermission,
|
|
3532
3587
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3533
3588
|
)
|
|
3534
3589
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3535
3590
|
__decorateClass([
|
|
3536
|
-
(0,
|
|
3591
|
+
(0, import_typeorm40.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3537
3592
|
], AdminRole.prototype, "userRoles", 2);
|
|
3538
3593
|
AdminRole = __decorateClass([
|
|
3539
|
-
(0,
|
|
3594
|
+
(0, import_typeorm40.Entity)("admin_roles")
|
|
3540
3595
|
], AdminRole);
|
|
3541
3596
|
|
|
3542
3597
|
// src/entities/admin-user-role.entity.ts
|
|
3543
3598
|
var AdminUserRole = class extends BaseEntity {
|
|
3544
3599
|
};
|
|
3545
3600
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3601
|
+
(0, import_typeorm41.Column)({
|
|
3547
3602
|
name: "user_id",
|
|
3548
3603
|
type: "int",
|
|
3549
3604
|
nullable: true,
|
|
@@ -3551,11 +3606,11 @@ __decorateClass([
|
|
|
3551
3606
|
})
|
|
3552
3607
|
], AdminUserRole.prototype, "userId", 2);
|
|
3553
3608
|
__decorateClass([
|
|
3554
|
-
(0,
|
|
3555
|
-
(0,
|
|
3609
|
+
(0, import_typeorm41.ManyToOne)(() => User),
|
|
3610
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
3556
3611
|
], AdminUserRole.prototype, "user", 2);
|
|
3557
3612
|
__decorateClass([
|
|
3558
|
-
(0,
|
|
3613
|
+
(0, import_typeorm41.Column)({
|
|
3559
3614
|
name: "role_id",
|
|
3560
3615
|
type: "int",
|
|
3561
3616
|
nullable: true,
|
|
@@ -3563,36 +3618,158 @@ __decorateClass([
|
|
|
3563
3618
|
})
|
|
3564
3619
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3565
3620
|
__decorateClass([
|
|
3566
|
-
(0,
|
|
3567
|
-
(0,
|
|
3621
|
+
(0, import_typeorm41.ManyToOne)(() => AdminRole),
|
|
3622
|
+
(0, import_typeorm41.JoinColumn)({ name: "role_id" })
|
|
3568
3623
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3569
3624
|
AdminUserRole = __decorateClass([
|
|
3570
|
-
(0,
|
|
3625
|
+
(0, import_typeorm41.Entity)("admin_user_roles")
|
|
3571
3626
|
], AdminUserRole);
|
|
3572
3627
|
|
|
3573
3628
|
// src/entities/freelancer-resume.entity.ts
|
|
3574
|
-
var
|
|
3629
|
+
var import_typeorm42 = require("typeorm");
|
|
3575
3630
|
var FreelancerResume = class extends BaseEntity {
|
|
3576
3631
|
};
|
|
3577
3632
|
// individual index to find profile by user
|
|
3578
3633
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3580
|
-
(0,
|
|
3634
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3635
|
+
(0, import_typeorm42.Index)()
|
|
3581
3636
|
], FreelancerResume.prototype, "userId", 2);
|
|
3582
3637
|
__decorateClass([
|
|
3583
|
-
(0,
|
|
3584
|
-
(0,
|
|
3638
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
3639
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
3585
3640
|
], FreelancerResume.prototype, "user", 2);
|
|
3586
3641
|
__decorateClass([
|
|
3587
|
-
(0,
|
|
3642
|
+
(0, import_typeorm42.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3588
3643
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3589
3644
|
__decorateClass([
|
|
3590
|
-
(0,
|
|
3645
|
+
(0, import_typeorm42.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3591
3646
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3592
3647
|
FreelancerResume = __decorateClass([
|
|
3593
|
-
(0,
|
|
3648
|
+
(0, import_typeorm42.Entity)("freelancer_resumes")
|
|
3594
3649
|
], FreelancerResume);
|
|
3595
3650
|
|
|
3651
|
+
// src/entities/f2f-interview.entity.ts
|
|
3652
|
+
var import_typeorm44 = require("typeorm");
|
|
3653
|
+
|
|
3654
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3655
|
+
var import_typeorm43 = require("typeorm");
|
|
3656
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3657
|
+
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3658
|
+
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3659
|
+
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3660
|
+
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3661
|
+
return CalendlyMeetingStatus2;
|
|
3662
|
+
})(CalendlyMeetingStatus || {});
|
|
3663
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
3664
|
+
};
|
|
3665
|
+
__decorateClass([
|
|
3666
|
+
(0, import_typeorm43.OneToOne)(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
|
|
3667
|
+
], CalendlyMeeting.prototype, "f2fInterview", 2);
|
|
3668
|
+
__decorateClass([
|
|
3669
|
+
(0, import_typeorm43.Column)({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3670
|
+
(0, import_typeorm43.Index)()
|
|
3671
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3672
|
+
__decorateClass([
|
|
3673
|
+
(0, import_typeorm43.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
3674
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3675
|
+
__decorateClass([
|
|
3676
|
+
(0, import_typeorm43.Column)({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3677
|
+
(0, import_typeorm43.Index)()
|
|
3678
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3679
|
+
__decorateClass([
|
|
3680
|
+
(0, import_typeorm43.Column)({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3681
|
+
(0, import_typeorm43.Index)()
|
|
3682
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3683
|
+
__decorateClass([
|
|
3684
|
+
(0, import_typeorm43.Column)({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3685
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3686
|
+
__decorateClass([
|
|
3687
|
+
(0, import_typeorm43.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3688
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3689
|
+
CalendlyMeeting = __decorateClass([
|
|
3690
|
+
(0, import_typeorm43.Entity)("calendly_meetings"),
|
|
3691
|
+
(0, import_typeorm43.Unique)("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3692
|
+
(0, import_typeorm43.Unique)("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3693
|
+
], CalendlyMeeting);
|
|
3694
|
+
|
|
3695
|
+
// src/entities/f2f-interview.entity.ts
|
|
3696
|
+
var F2FInterview = class extends BaseEntity {
|
|
3697
|
+
};
|
|
3698
|
+
__decorateClass([
|
|
3699
|
+
(0, import_typeorm44.OneToOne)(() => CalendlyMeeting),
|
|
3700
|
+
(0, import_typeorm44.JoinColumn)({ name: "calendly_meeting_id" })
|
|
3701
|
+
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
3702
|
+
__decorateClass([
|
|
3703
|
+
(0, import_typeorm44.Column)({ name: "calendly_meeting_id", type: "integer" })
|
|
3704
|
+
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3705
|
+
__decorateClass([
|
|
3706
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3707
|
+
(0, import_typeorm44.JoinColumn)({ name: "client_id" })
|
|
3708
|
+
], F2FInterview.prototype, "client", 2);
|
|
3709
|
+
__decorateClass([
|
|
3710
|
+
(0, import_typeorm44.Column)({ name: "client_id", type: "integer", nullable: true })
|
|
3711
|
+
], F2FInterview.prototype, "clientId", 2);
|
|
3712
|
+
__decorateClass([
|
|
3713
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3714
|
+
(0, import_typeorm44.JoinColumn)({ name: "freelancer_id" })
|
|
3715
|
+
], F2FInterview.prototype, "freelancer", 2);
|
|
3716
|
+
__decorateClass([
|
|
3717
|
+
(0, import_typeorm44.Column)({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3718
|
+
], F2FInterview.prototype, "freelancerId", 2);
|
|
3719
|
+
__decorateClass([
|
|
3720
|
+
(0, import_typeorm44.Column)({ name: "invitee_email", type: "varchar", nullable: false })
|
|
3721
|
+
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
3722
|
+
__decorateClass([
|
|
3723
|
+
(0, import_typeorm44.Column)({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3724
|
+
], F2FInterview.prototype, "inviteeName", 2);
|
|
3725
|
+
__decorateClass([
|
|
3726
|
+
(0, import_typeorm44.Column)({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3727
|
+
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
3728
|
+
__decorateClass([
|
|
3729
|
+
(0, import_typeorm44.Column)({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3730
|
+
], F2FInterview.prototype, "meetingId", 2);
|
|
3731
|
+
__decorateClass([
|
|
3732
|
+
(0, import_typeorm44.Column)({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3733
|
+
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
3734
|
+
__decorateClass([
|
|
3735
|
+
(0, import_typeorm44.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3736
|
+
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
3737
|
+
__decorateClass([
|
|
3738
|
+
(0, import_typeorm44.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
3739
|
+
], F2FInterview.prototype, "eventName", 2);
|
|
3740
|
+
__decorateClass([
|
|
3741
|
+
(0, import_typeorm44.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3742
|
+
], F2FInterview.prototype, "isRescheduled", 2);
|
|
3743
|
+
__decorateClass([
|
|
3744
|
+
(0, import_typeorm44.Column)({
|
|
3745
|
+
name: "status",
|
|
3746
|
+
type: "enum",
|
|
3747
|
+
enum: CalendlyMeetingStatus,
|
|
3748
|
+
default: "PENDING" /* PENDING */
|
|
3749
|
+
})
|
|
3750
|
+
], F2FInterview.prototype, "status", 2);
|
|
3751
|
+
__decorateClass([
|
|
3752
|
+
(0, import_typeorm44.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3753
|
+
], F2FInterview.prototype, "cancelledAt", 2);
|
|
3754
|
+
__decorateClass([
|
|
3755
|
+
(0, import_typeorm44.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3756
|
+
], F2FInterview.prototype, "cancelReason", 2);
|
|
3757
|
+
__decorateClass([
|
|
3758
|
+
(0, import_typeorm44.Column)({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3759
|
+
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
3760
|
+
__decorateClass([
|
|
3761
|
+
(0, import_typeorm44.Column)({ name: "is_completed", type: "boolean", default: false })
|
|
3762
|
+
], F2FInterview.prototype, "isCompleted", 2);
|
|
3763
|
+
__decorateClass([
|
|
3764
|
+
(0, import_typeorm44.Column)({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3765
|
+
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
3766
|
+
__decorateClass([
|
|
3767
|
+
(0, import_typeorm44.Column)({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3768
|
+
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
3769
|
+
F2FInterview = __decorateClass([
|
|
3770
|
+
(0, import_typeorm44.Entity)("f2f_interviews")
|
|
3771
|
+
], F2FInterview);
|
|
3772
|
+
|
|
3596
3773
|
// src/entities/user.entity.ts
|
|
3597
3774
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3598
3775
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3616,59 +3793,53 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3616
3793
|
return Provider2;
|
|
3617
3794
|
})(Provider || {});
|
|
3618
3795
|
var User = class extends BaseEntity {
|
|
3619
|
-
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3620
|
-
// calendlyMeetings: CalendlyMeeting[];
|
|
3621
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3622
|
-
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3623
|
-
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3624
|
-
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3625
3796
|
};
|
|
3626
3797
|
__decorateClass([
|
|
3627
|
-
(0,
|
|
3798
|
+
(0, import_typeorm45.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3628
3799
|
], User.prototype, "uniqueId", 2);
|
|
3629
3800
|
__decorateClass([
|
|
3630
|
-
(0,
|
|
3631
|
-
(0,
|
|
3801
|
+
(0, import_typeorm45.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3802
|
+
(0, import_typeorm45.Index)()
|
|
3632
3803
|
], User.prototype, "parentId", 2);
|
|
3633
3804
|
__decorateClass([
|
|
3634
|
-
(0,
|
|
3635
|
-
(0,
|
|
3805
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3806
|
+
(0, import_typeorm45.JoinColumn)({ name: "parent_id" })
|
|
3636
3807
|
], User.prototype, "parent", 2);
|
|
3637
3808
|
__decorateClass([
|
|
3638
|
-
(0,
|
|
3809
|
+
(0, import_typeorm45.OneToMany)(() => User, (user) => user.parent)
|
|
3639
3810
|
], User.prototype, "children", 2);
|
|
3640
3811
|
__decorateClass([
|
|
3641
|
-
(0,
|
|
3812
|
+
(0, import_typeorm45.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3642
3813
|
], User.prototype, "username", 2);
|
|
3643
3814
|
__decorateClass([
|
|
3644
|
-
(0,
|
|
3815
|
+
(0, import_typeorm45.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3645
3816
|
], User.prototype, "firstName", 2);
|
|
3646
3817
|
__decorateClass([
|
|
3647
|
-
(0,
|
|
3818
|
+
(0, import_typeorm45.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3648
3819
|
], User.prototype, "lastName", 2);
|
|
3649
3820
|
__decorateClass([
|
|
3650
|
-
(0,
|
|
3821
|
+
(0, import_typeorm45.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3651
3822
|
], User.prototype, "dateOfBirth", 2);
|
|
3652
3823
|
__decorateClass([
|
|
3653
|
-
(0,
|
|
3824
|
+
(0, import_typeorm45.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3654
3825
|
], User.prototype, "gender", 2);
|
|
3655
3826
|
__decorateClass([
|
|
3656
|
-
(0,
|
|
3827
|
+
(0, import_typeorm45.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3657
3828
|
], User.prototype, "profilePictureUrl", 2);
|
|
3658
3829
|
__decorateClass([
|
|
3659
|
-
(0,
|
|
3830
|
+
(0, import_typeorm45.Column)({ name: "email", type: "varchar", unique: true })
|
|
3660
3831
|
], User.prototype, "email", 2);
|
|
3661
3832
|
__decorateClass([
|
|
3662
|
-
(0,
|
|
3833
|
+
(0, import_typeorm45.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3663
3834
|
], User.prototype, "mobileCode", 2);
|
|
3664
3835
|
__decorateClass([
|
|
3665
|
-
(0,
|
|
3836
|
+
(0, import_typeorm45.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3666
3837
|
], User.prototype, "mobile", 2);
|
|
3667
3838
|
__decorateClass([
|
|
3668
|
-
(0,
|
|
3839
|
+
(0, import_typeorm45.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3669
3840
|
], User.prototype, "password", 2);
|
|
3670
3841
|
__decorateClass([
|
|
3671
|
-
(0,
|
|
3842
|
+
(0, import_typeorm45.Column)({
|
|
3672
3843
|
name: "account_type",
|
|
3673
3844
|
type: "enum",
|
|
3674
3845
|
enum: AccountType,
|
|
@@ -3676,7 +3847,7 @@ __decorateClass([
|
|
|
3676
3847
|
})
|
|
3677
3848
|
], User.prototype, "accountType", 2);
|
|
3678
3849
|
__decorateClass([
|
|
3679
|
-
(0,
|
|
3850
|
+
(0, import_typeorm45.Column)({
|
|
3680
3851
|
name: "account_status",
|
|
3681
3852
|
type: "enum",
|
|
3682
3853
|
enum: AccountStatus,
|
|
@@ -3684,39 +3855,39 @@ __decorateClass([
|
|
|
3684
3855
|
})
|
|
3685
3856
|
], User.prototype, "accountStatus", 2);
|
|
3686
3857
|
__decorateClass([
|
|
3687
|
-
(0,
|
|
3858
|
+
(0, import_typeorm45.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3688
3859
|
], User.prototype, "isEmailVerified", 2);
|
|
3689
3860
|
__decorateClass([
|
|
3690
|
-
(0,
|
|
3861
|
+
(0, import_typeorm45.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3691
3862
|
], User.prototype, "isMobileVerified", 2);
|
|
3692
3863
|
__decorateClass([
|
|
3693
|
-
(0,
|
|
3864
|
+
(0, import_typeorm45.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3694
3865
|
], User.prototype, "isSocial", 2);
|
|
3695
3866
|
__decorateClass([
|
|
3696
|
-
(0,
|
|
3867
|
+
(0, import_typeorm45.Column)({
|
|
3697
3868
|
name: "last_login_at",
|
|
3698
3869
|
type: "timestamp with time zone",
|
|
3699
3870
|
nullable: true
|
|
3700
3871
|
})
|
|
3701
3872
|
], User.prototype, "lastLoginAt", 2);
|
|
3702
3873
|
__decorateClass([
|
|
3703
|
-
(0,
|
|
3874
|
+
(0, import_typeorm45.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3704
3875
|
], User.prototype, "lastLoginIp", 2);
|
|
3705
3876
|
__decorateClass([
|
|
3706
|
-
(0,
|
|
3877
|
+
(0, import_typeorm45.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3707
3878
|
], User.prototype, "resetToken", 2);
|
|
3708
3879
|
__decorateClass([
|
|
3709
|
-
(0,
|
|
3880
|
+
(0, import_typeorm45.Column)({
|
|
3710
3881
|
name: "reset_token_expire_at",
|
|
3711
3882
|
type: "timestamp with time zone",
|
|
3712
3883
|
nullable: true
|
|
3713
3884
|
})
|
|
3714
3885
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3715
3886
|
__decorateClass([
|
|
3716
|
-
(0,
|
|
3887
|
+
(0, import_typeorm45.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3717
3888
|
], User.prototype, "refreshTokens", 2);
|
|
3718
3889
|
__decorateClass([
|
|
3719
|
-
(0,
|
|
3890
|
+
(0, import_typeorm45.Column)({
|
|
3720
3891
|
name: "provider",
|
|
3721
3892
|
type: "enum",
|
|
3722
3893
|
enum: Provider,
|
|
@@ -3725,94 +3896,106 @@ __decorateClass([
|
|
|
3725
3896
|
})
|
|
3726
3897
|
], User.prototype, "provider", 2);
|
|
3727
3898
|
__decorateClass([
|
|
3728
|
-
(0,
|
|
3899
|
+
(0, import_typeorm45.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3729
3900
|
], User.prototype, "providerToken", 2);
|
|
3730
3901
|
__decorateClass([
|
|
3731
|
-
(0,
|
|
3902
|
+
(0, import_typeorm45.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3732
3903
|
], User.prototype, "linkedInId", 2);
|
|
3733
3904
|
__decorateClass([
|
|
3734
|
-
(0,
|
|
3905
|
+
(0, import_typeorm45.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3735
3906
|
], User.prototype, "googleId", 2);
|
|
3736
3907
|
__decorateClass([
|
|
3737
|
-
(0,
|
|
3908
|
+
(0, import_typeorm45.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3738
3909
|
], User.prototype, "gitLabsId", 2);
|
|
3739
3910
|
__decorateClass([
|
|
3740
|
-
(0,
|
|
3911
|
+
(0, import_typeorm45.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3741
3912
|
], User.prototype, "otps", 2);
|
|
3742
3913
|
__decorateClass([
|
|
3743
|
-
(0,
|
|
3914
|
+
(0, import_typeorm45.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3744
3915
|
], User.prototype, "senseloafLogs", 2);
|
|
3745
3916
|
__decorateClass([
|
|
3746
|
-
(0,
|
|
3917
|
+
(0, import_typeorm45.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3747
3918
|
], User.prototype, "companyProfile", 2);
|
|
3748
3919
|
__decorateClass([
|
|
3749
|
-
(0,
|
|
3920
|
+
(0, import_typeorm45.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3750
3921
|
], User.prototype, "companySkills", 2);
|
|
3751
3922
|
__decorateClass([
|
|
3752
|
-
(0,
|
|
3923
|
+
(0, import_typeorm45.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3753
3924
|
], User.prototype, "companyMemberRoles", 2);
|
|
3754
3925
|
__decorateClass([
|
|
3755
|
-
(0,
|
|
3926
|
+
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3927
|
+
], User.prototype, "companyAiInterview", 2);
|
|
3928
|
+
__decorateClass([
|
|
3929
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3756
3930
|
], User.prototype, "freelancerProfile", 2);
|
|
3757
3931
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3932
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3759
3933
|
], User.prototype, "freelancerResume", 2);
|
|
3760
3934
|
__decorateClass([
|
|
3761
|
-
(0,
|
|
3935
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3762
3936
|
], User.prototype, "assessments", 2);
|
|
3763
3937
|
__decorateClass([
|
|
3764
|
-
(0,
|
|
3938
|
+
(0, import_typeorm45.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3765
3939
|
], User.prototype, "assessmentAnswers", 2);
|
|
3766
3940
|
__decorateClass([
|
|
3767
|
-
(0,
|
|
3941
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3768
3942
|
], User.prototype, "freelancerSkills", 2);
|
|
3769
3943
|
__decorateClass([
|
|
3770
|
-
(0,
|
|
3944
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3771
3945
|
], User.prototype, "freelancerExperience", 2);
|
|
3772
3946
|
__decorateClass([
|
|
3773
|
-
(0,
|
|
3947
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3774
3948
|
], User.prototype, "freelancerEducation", 2);
|
|
3775
3949
|
__decorateClass([
|
|
3776
|
-
(0,
|
|
3950
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3777
3951
|
], User.prototype, "freelancerProject", 2);
|
|
3778
3952
|
__decorateClass([
|
|
3779
|
-
(0,
|
|
3953
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3780
3954
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3781
3955
|
__decorateClass([
|
|
3782
|
-
(0,
|
|
3956
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3783
3957
|
], User.prototype, "freelancerTool", 2);
|
|
3784
3958
|
__decorateClass([
|
|
3785
|
-
(0,
|
|
3959
|
+
(0, import_typeorm45.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3786
3960
|
], User.prototype, "freelancerFramework", 2);
|
|
3787
3961
|
__decorateClass([
|
|
3788
|
-
(0,
|
|
3962
|
+
(0, import_typeorm45.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3789
3963
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3790
3964
|
__decorateClass([
|
|
3791
|
-
(0,
|
|
3965
|
+
(0, import_typeorm45.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
3966
|
+
], User.prototype, "freelancerAiInterview", 2);
|
|
3967
|
+
__decorateClass([
|
|
3968
|
+
(0, import_typeorm45.OneToMany)(() => Job, (job) => job.user)
|
|
3792
3969
|
], User.prototype, "jobs", 2);
|
|
3793
3970
|
__decorateClass([
|
|
3794
|
-
(0,
|
|
3971
|
+
(0, import_typeorm45.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3795
3972
|
], User.prototype, "jobApplications", 2);
|
|
3796
3973
|
__decorateClass([
|
|
3797
|
-
(0,
|
|
3974
|
+
(0, import_typeorm45.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3798
3975
|
], User.prototype, "interviews", 2);
|
|
3799
3976
|
__decorateClass([
|
|
3800
|
-
(0,
|
|
3977
|
+
(0, import_typeorm45.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3801
3978
|
], User.prototype, "bankDetail", 2);
|
|
3802
3979
|
__decorateClass([
|
|
3803
|
-
(0,
|
|
3980
|
+
(0, import_typeorm45.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3804
3981
|
], User.prototype, "systemPreference", 2);
|
|
3805
3982
|
__decorateClass([
|
|
3806
|
-
(0,
|
|
3983
|
+
(0, import_typeorm45.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3807
3984
|
], User.prototype, "givenRatings", 2);
|
|
3808
3985
|
__decorateClass([
|
|
3809
|
-
(0,
|
|
3986
|
+
(0, import_typeorm45.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3810
3987
|
], User.prototype, "receivedRatings", 2);
|
|
3811
3988
|
__decorateClass([
|
|
3812
|
-
(0,
|
|
3989
|
+
(0, import_typeorm45.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3813
3990
|
], User.prototype, "adminUserRoles", 2);
|
|
3991
|
+
__decorateClass([
|
|
3992
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.client)
|
|
3993
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
3994
|
+
__decorateClass([
|
|
3995
|
+
(0, import_typeorm45.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.freelancer)
|
|
3996
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3814
3997
|
User = __decorateClass([
|
|
3815
|
-
(0,
|
|
3998
|
+
(0, import_typeorm45.Entity)("users")
|
|
3816
3999
|
], User);
|
|
3817
4000
|
|
|
3818
4001
|
// src/entities/rating.entity.ts
|
|
@@ -3824,36 +4007,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3824
4007
|
var Rating = class extends BaseEntity {
|
|
3825
4008
|
};
|
|
3826
4009
|
__decorateClass([
|
|
3827
|
-
(0,
|
|
3828
|
-
(0,
|
|
4010
|
+
(0, import_typeorm46.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4011
|
+
(0, import_typeorm46.Index)()
|
|
3829
4012
|
], Rating.prototype, "reviewer_id", 2);
|
|
3830
4013
|
__decorateClass([
|
|
3831
|
-
(0,
|
|
3832
|
-
(0,
|
|
4014
|
+
(0, import_typeorm46.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4015
|
+
(0, import_typeorm46.JoinColumn)({ name: "reviewer_id" })
|
|
3833
4016
|
], Rating.prototype, "reviewer", 2);
|
|
3834
4017
|
__decorateClass([
|
|
3835
|
-
(0,
|
|
3836
|
-
(0,
|
|
4018
|
+
(0, import_typeorm46.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4019
|
+
(0, import_typeorm46.Index)()
|
|
3837
4020
|
], Rating.prototype, "reviewee_id", 2);
|
|
3838
4021
|
__decorateClass([
|
|
3839
|
-
(0,
|
|
3840
|
-
(0,
|
|
4022
|
+
(0, import_typeorm46.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4023
|
+
(0, import_typeorm46.JoinColumn)({ name: "reviewee_id" })
|
|
3841
4024
|
], Rating.prototype, "reviewee", 2);
|
|
3842
4025
|
__decorateClass([
|
|
3843
|
-
(0,
|
|
4026
|
+
(0, import_typeorm46.Column)({
|
|
3844
4027
|
type: "enum",
|
|
3845
4028
|
enum: RatingTypeEnum,
|
|
3846
4029
|
nullable: true
|
|
3847
4030
|
})
|
|
3848
4031
|
], Rating.prototype, "ratingType", 2);
|
|
3849
4032
|
__decorateClass([
|
|
3850
|
-
(0,
|
|
4033
|
+
(0, import_typeorm46.Column)({ type: "integer", nullable: true })
|
|
3851
4034
|
], Rating.prototype, "rating", 2);
|
|
3852
4035
|
__decorateClass([
|
|
3853
|
-
(0,
|
|
4036
|
+
(0, import_typeorm46.Column)({ type: "text", nullable: true })
|
|
3854
4037
|
], Rating.prototype, "review", 2);
|
|
3855
4038
|
Rating = __decorateClass([
|
|
3856
|
-
(0,
|
|
4039
|
+
(0, import_typeorm46.Entity)("ratings")
|
|
3857
4040
|
], Rating);
|
|
3858
4041
|
|
|
3859
4042
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5199,11 +5382,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5199
5382
|
};
|
|
5200
5383
|
|
|
5201
5384
|
// src/entities/sequence-generator.entity.ts
|
|
5202
|
-
var
|
|
5385
|
+
var import_typeorm47 = require("typeorm");
|
|
5203
5386
|
var SequenceGenerator = class extends BaseEntity {
|
|
5204
5387
|
};
|
|
5205
5388
|
__decorateClass([
|
|
5206
|
-
(0,
|
|
5389
|
+
(0, import_typeorm47.Column)({
|
|
5207
5390
|
name: "module",
|
|
5208
5391
|
type: "varchar",
|
|
5209
5392
|
length: 50,
|
|
@@ -5212,7 +5395,7 @@ __decorateClass([
|
|
|
5212
5395
|
})
|
|
5213
5396
|
], SequenceGenerator.prototype, "module", 2);
|
|
5214
5397
|
__decorateClass([
|
|
5215
|
-
(0,
|
|
5398
|
+
(0, import_typeorm47.Column)({
|
|
5216
5399
|
name: "prefix",
|
|
5217
5400
|
type: "varchar",
|
|
5218
5401
|
length: 10,
|
|
@@ -5221,7 +5404,7 @@ __decorateClass([
|
|
|
5221
5404
|
})
|
|
5222
5405
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5223
5406
|
__decorateClass([
|
|
5224
|
-
(0,
|
|
5407
|
+
(0, import_typeorm47.Column)({
|
|
5225
5408
|
name: "last_sequence",
|
|
5226
5409
|
type: "int",
|
|
5227
5410
|
nullable: false,
|
|
@@ -5229,7 +5412,7 @@ __decorateClass([
|
|
|
5229
5412
|
})
|
|
5230
5413
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5231
5414
|
__decorateClass([
|
|
5232
|
-
(0,
|
|
5415
|
+
(0, import_typeorm47.Column)({
|
|
5233
5416
|
name: "year",
|
|
5234
5417
|
type: "int",
|
|
5235
5418
|
nullable: true,
|
|
@@ -5237,11 +5420,11 @@ __decorateClass([
|
|
|
5237
5420
|
})
|
|
5238
5421
|
], SequenceGenerator.prototype, "year", 2);
|
|
5239
5422
|
SequenceGenerator = __decorateClass([
|
|
5240
|
-
(0,
|
|
5423
|
+
(0, import_typeorm47.Entity)("sequence_generators")
|
|
5241
5424
|
], SequenceGenerator);
|
|
5242
5425
|
|
|
5243
5426
|
// src/entities/question.entity.ts
|
|
5244
|
-
var
|
|
5427
|
+
var import_typeorm48 = require("typeorm");
|
|
5245
5428
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5246
5429
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5247
5430
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5250,16 +5433,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5250
5433
|
var Question = class extends BaseEntity {
|
|
5251
5434
|
};
|
|
5252
5435
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5436
|
+
(0, import_typeorm48.Column)({ name: "question", type: "varchar" })
|
|
5254
5437
|
], Question.prototype, "question", 2);
|
|
5255
5438
|
__decorateClass([
|
|
5256
|
-
(0,
|
|
5439
|
+
(0, import_typeorm48.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5257
5440
|
], Question.prototype, "hint", 2);
|
|
5258
5441
|
__decorateClass([
|
|
5259
|
-
(0,
|
|
5442
|
+
(0, import_typeorm48.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5260
5443
|
], Question.prototype, "slug", 2);
|
|
5261
5444
|
__decorateClass([
|
|
5262
|
-
(0,
|
|
5445
|
+
(0, import_typeorm48.Column)({
|
|
5263
5446
|
name: "question_for",
|
|
5264
5447
|
type: "enum",
|
|
5265
5448
|
enum: QuestionFor,
|
|
@@ -5267,259 +5450,117 @@ __decorateClass([
|
|
|
5267
5450
|
})
|
|
5268
5451
|
], Question.prototype, "questionFor", 2);
|
|
5269
5452
|
__decorateClass([
|
|
5270
|
-
(0,
|
|
5453
|
+
(0, import_typeorm48.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5271
5454
|
], Question.prototype, "type", 2);
|
|
5272
5455
|
__decorateClass([
|
|
5273
|
-
(0,
|
|
5456
|
+
(0, import_typeorm48.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5274
5457
|
], Question.prototype, "options", 2);
|
|
5275
5458
|
__decorateClass([
|
|
5276
|
-
(0,
|
|
5459
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5277
5460
|
], Question.prototype, "isActive", 2);
|
|
5278
5461
|
Question = __decorateClass([
|
|
5279
|
-
(0,
|
|
5462
|
+
(0, import_typeorm48.Entity)("questions")
|
|
5280
5463
|
], Question);
|
|
5281
5464
|
|
|
5282
5465
|
// src/entities/skill.entity.ts
|
|
5283
|
-
var
|
|
5466
|
+
var import_typeorm49 = require("typeorm");
|
|
5284
5467
|
var Skill = class extends BaseEntity {
|
|
5285
5468
|
};
|
|
5286
5469
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5470
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5288
5471
|
], Skill.prototype, "name", 2);
|
|
5289
5472
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5473
|
+
(0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5291
5474
|
], Skill.prototype, "slug", 2);
|
|
5292
5475
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5476
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5294
5477
|
], Skill.prototype, "isActive", 2);
|
|
5295
5478
|
Skill = __decorateClass([
|
|
5296
|
-
(0,
|
|
5479
|
+
(0, import_typeorm49.Entity)("skills")
|
|
5297
5480
|
], Skill);
|
|
5298
5481
|
|
|
5299
5482
|
// src/entities/job-role.entity.ts
|
|
5300
|
-
var
|
|
5483
|
+
var import_typeorm50 = require("typeorm");
|
|
5301
5484
|
var JobRoles = class extends BaseEntity {
|
|
5302
5485
|
};
|
|
5303
5486
|
__decorateClass([
|
|
5304
|
-
(0,
|
|
5487
|
+
(0, import_typeorm50.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5305
5488
|
], JobRoles.prototype, "slug", 2);
|
|
5306
5489
|
__decorateClass([
|
|
5307
|
-
(0,
|
|
5490
|
+
(0, import_typeorm50.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5308
5491
|
], JobRoles.prototype, "name", 2);
|
|
5309
5492
|
__decorateClass([
|
|
5310
|
-
(0,
|
|
5493
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5311
5494
|
], JobRoles.prototype, "isActive", 2);
|
|
5312
5495
|
JobRoles = __decorateClass([
|
|
5313
|
-
(0,
|
|
5496
|
+
(0, import_typeorm50.Entity)("job_roles")
|
|
5314
5497
|
], JobRoles);
|
|
5315
5498
|
|
|
5316
|
-
// src/entities/ai-interview.entity.ts
|
|
5317
|
-
var import_typeorm48 = require("typeorm");
|
|
5318
|
-
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5319
|
-
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5320
|
-
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5321
|
-
AIInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
5322
|
-
AIInterviewStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
5323
|
-
AIInterviewStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
5324
|
-
return AIInterviewStatusEnum2;
|
|
5325
|
-
})(AIInterviewStatusEnum || {});
|
|
5326
|
-
var AIInterviewTypeEnum = /* @__PURE__ */ ((AIInterviewTypeEnum2) => {
|
|
5327
|
-
AIInterviewTypeEnum2["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
5328
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE";
|
|
5329
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE";
|
|
5330
|
-
AIInterviewTypeEnum2["CODING_EXERCISE"] = "CODING_EXERCISE";
|
|
5331
|
-
return AIInterviewTypeEnum2;
|
|
5332
|
-
})(AIInterviewTypeEnum || {});
|
|
5333
|
-
var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
5334
|
-
AIInterviewResultEnum2["PASSED"] = "PASSED";
|
|
5335
|
-
AIInterviewResultEnum2["FAILED"] = "FAILED";
|
|
5336
|
-
AIInterviewResultEnum2["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
5337
|
-
AIInterviewResultEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
5338
|
-
return AIInterviewResultEnum2;
|
|
5339
|
-
})(AIInterviewResultEnum || {});
|
|
5340
|
-
var AIInterview = class extends BaseEntity {
|
|
5341
|
-
};
|
|
5342
|
-
__decorateClass([
|
|
5343
|
-
(0, import_typeorm48.Column)({
|
|
5344
|
-
name: "interview_id",
|
|
5345
|
-
type: "integer",
|
|
5346
|
-
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5347
|
-
}),
|
|
5348
|
-
(0, import_typeorm48.Index)()
|
|
5349
|
-
], AIInterview.prototype, "interviewId", 2);
|
|
5350
|
-
__decorateClass([
|
|
5351
|
-
(0, import_typeorm48.Column)({
|
|
5352
|
-
name: "interview_invite_id",
|
|
5353
|
-
type: "integer",
|
|
5354
|
-
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5355
|
-
})
|
|
5356
|
-
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5357
|
-
__decorateClass([
|
|
5358
|
-
(0, import_typeorm48.Column)({
|
|
5359
|
-
name: "candidate_id",
|
|
5360
|
-
type: "integer",
|
|
5361
|
-
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5362
|
-
}),
|
|
5363
|
-
(0, import_typeorm48.Index)()
|
|
5364
|
-
], AIInterview.prototype, "candidateId", 2);
|
|
5365
|
-
__decorateClass([
|
|
5366
|
-
(0, import_typeorm48.Column)({
|
|
5367
|
-
name: "job_id",
|
|
5368
|
-
type: "integer",
|
|
5369
|
-
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5370
|
-
})
|
|
5371
|
-
], AIInterview.prototype, "jobId", 2);
|
|
5372
|
-
__decorateClass([
|
|
5373
|
-
(0, import_typeorm48.Column)({
|
|
5374
|
-
name: "invite_token",
|
|
5375
|
-
type: "varchar",
|
|
5376
|
-
unique: true,
|
|
5377
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5378
|
-
nullable: true
|
|
5379
|
-
})
|
|
5380
|
-
], AIInterview.prototype, "inviteToken", 2);
|
|
5381
|
-
__decorateClass([
|
|
5382
|
-
(0, import_typeorm48.Column)({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5383
|
-
], AIInterview.prototype, "interviewType", 2);
|
|
5384
|
-
__decorateClass([
|
|
5385
|
-
(0, import_typeorm48.Column)({
|
|
5386
|
-
name: "interview_name",
|
|
5387
|
-
type: "varchar",
|
|
5388
|
-
comment: "Name of the interview"
|
|
5389
|
-
})
|
|
5390
|
-
], AIInterview.prototype, "interviewName", 2);
|
|
5391
|
-
__decorateClass([
|
|
5392
|
-
(0, import_typeorm48.Column)({
|
|
5393
|
-
name: "job_title",
|
|
5394
|
-
type: "varchar",
|
|
5395
|
-
comment: "Name of the job title for that the AI interview was conducted"
|
|
5396
|
-
})
|
|
5397
|
-
], AIInterview.prototype, "jobTitle", 2);
|
|
5398
|
-
__decorateClass([
|
|
5399
|
-
(0, import_typeorm48.Column)({
|
|
5400
|
-
type: "enum",
|
|
5401
|
-
enum: AIInterviewStatusEnum,
|
|
5402
|
-
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5403
|
-
})
|
|
5404
|
-
], AIInterview.prototype, "status", 2);
|
|
5405
|
-
__decorateClass([
|
|
5406
|
-
(0, import_typeorm48.Column)({
|
|
5407
|
-
name: "started_at",
|
|
5408
|
-
type: "timestamp with time zone",
|
|
5409
|
-
comment: "Timestamp when the interview was started"
|
|
5410
|
-
})
|
|
5411
|
-
], AIInterview.prototype, "startedAt", 2);
|
|
5412
|
-
__decorateClass([
|
|
5413
|
-
(0, import_typeorm48.Column)({
|
|
5414
|
-
name: "completed_at",
|
|
5415
|
-
type: "timestamp with time zone",
|
|
5416
|
-
nullable: true,
|
|
5417
|
-
comment: "Timestamp when the interview was completed"
|
|
5418
|
-
})
|
|
5419
|
-
], AIInterview.prototype, "completedAt", 2);
|
|
5420
|
-
__decorateClass([
|
|
5421
|
-
(0, import_typeorm48.Column)({
|
|
5422
|
-
name: "duration_minutes",
|
|
5423
|
-
type: "integer",
|
|
5424
|
-
nullable: true,
|
|
5425
|
-
comment: "Duration of the AI interview"
|
|
5426
|
-
})
|
|
5427
|
-
], AIInterview.prototype, "durationMinutes", 2);
|
|
5428
|
-
__decorateClass([
|
|
5429
|
-
(0, import_typeorm48.Column)({
|
|
5430
|
-
name: "overall_score",
|
|
5431
|
-
type: "decimal",
|
|
5432
|
-
precision: 5,
|
|
5433
|
-
scale: 2,
|
|
5434
|
-
nullable: true,
|
|
5435
|
-
comment: "Overall score of the AI interview"
|
|
5436
|
-
})
|
|
5437
|
-
], AIInterview.prototype, "overallScore", 2);
|
|
5438
|
-
__decorateClass([
|
|
5439
|
-
(0, import_typeorm48.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5440
|
-
(0, import_typeorm48.JoinColumn)({ name: "interview_id" })
|
|
5441
|
-
], AIInterview.prototype, "interview", 2);
|
|
5442
|
-
__decorateClass([
|
|
5443
|
-
(0, import_typeorm48.ManyToOne)(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5444
|
-
(0, import_typeorm48.JoinColumn)({ name: "interview_invite_id" })
|
|
5445
|
-
], AIInterview.prototype, "interviewInvite", 2);
|
|
5446
|
-
__decorateClass([
|
|
5447
|
-
(0, import_typeorm48.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5448
|
-
(0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
|
|
5449
|
-
], AIInterview.prototype, "candidate", 2);
|
|
5450
|
-
__decorateClass([
|
|
5451
|
-
(0, import_typeorm48.ManyToOne)(() => Job, { onDelete: "CASCADE" }),
|
|
5452
|
-
(0, import_typeorm48.JoinColumn)({ name: "job_id" })
|
|
5453
|
-
], AIInterview.prototype, "job", 2);
|
|
5454
|
-
AIInterview = __decorateClass([
|
|
5455
|
-
(0, import_typeorm48.Entity)("ai_interviews")
|
|
5456
|
-
], AIInterview);
|
|
5457
|
-
|
|
5458
5499
|
// src/entities/plan.entity.ts
|
|
5459
|
-
var
|
|
5500
|
+
var import_typeorm52 = require("typeorm");
|
|
5460
5501
|
|
|
5461
5502
|
// src/entities/feature.entity.ts
|
|
5462
|
-
var
|
|
5503
|
+
var import_typeorm51 = require("typeorm");
|
|
5463
5504
|
var Feature = class extends BaseEntity {
|
|
5464
5505
|
};
|
|
5465
5506
|
__decorateClass([
|
|
5466
|
-
(0,
|
|
5507
|
+
(0, import_typeorm51.Column)({ name: "name", type: "varchar", unique: true })
|
|
5467
5508
|
], Feature.prototype, "name", 2);
|
|
5468
5509
|
__decorateClass([
|
|
5469
|
-
(0,
|
|
5510
|
+
(0, import_typeorm51.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5470
5511
|
], Feature.prototype, "plans", 2);
|
|
5471
5512
|
Feature = __decorateClass([
|
|
5472
|
-
(0,
|
|
5513
|
+
(0, import_typeorm51.Entity)("features")
|
|
5473
5514
|
], Feature);
|
|
5474
5515
|
|
|
5475
5516
|
// src/entities/plan.entity.ts
|
|
5476
5517
|
var Plan = class extends BaseEntity {
|
|
5477
5518
|
};
|
|
5478
5519
|
__decorateClass([
|
|
5479
|
-
(0,
|
|
5520
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", unique: true })
|
|
5480
5521
|
], Plan.prototype, "name", 2);
|
|
5481
5522
|
__decorateClass([
|
|
5482
|
-
(0,
|
|
5523
|
+
(0, import_typeorm52.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5483
5524
|
], Plan.prototype, "description", 2);
|
|
5484
5525
|
__decorateClass([
|
|
5485
|
-
(0,
|
|
5526
|
+
(0, import_typeorm52.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5486
5527
|
], Plan.prototype, "price", 2);
|
|
5487
5528
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5529
|
+
(0, import_typeorm52.Column)({ name: "billing_period", type: "varchar" })
|
|
5489
5530
|
], Plan.prototype, "billingPeriod", 2);
|
|
5490
5531
|
__decorateClass([
|
|
5491
|
-
(0,
|
|
5532
|
+
(0, import_typeorm52.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5492
5533
|
], Plan.prototype, "isCurrent", 2);
|
|
5493
5534
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5495
|
-
(0,
|
|
5535
|
+
(0, import_typeorm52.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5536
|
+
(0, import_typeorm52.JoinTable)()
|
|
5496
5537
|
], Plan.prototype, "features", 2);
|
|
5497
5538
|
Plan = __decorateClass([
|
|
5498
|
-
(0,
|
|
5539
|
+
(0, import_typeorm52.Entity)("plans")
|
|
5499
5540
|
], Plan);
|
|
5500
5541
|
|
|
5501
5542
|
// src/entities/cms.entity.ts
|
|
5502
|
-
var
|
|
5543
|
+
var import_typeorm53 = require("typeorm");
|
|
5503
5544
|
var Cms = class extends BaseEntity {
|
|
5504
5545
|
};
|
|
5505
5546
|
__decorateClass([
|
|
5506
|
-
(0,
|
|
5547
|
+
(0, import_typeorm53.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5507
5548
|
], Cms.prototype, "title", 2);
|
|
5508
5549
|
__decorateClass([
|
|
5509
|
-
(0,
|
|
5550
|
+
(0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5510
5551
|
], Cms.prototype, "slug", 2);
|
|
5511
5552
|
__decorateClass([
|
|
5512
|
-
(0,
|
|
5553
|
+
(0, import_typeorm53.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5513
5554
|
], Cms.prototype, "content", 2);
|
|
5514
5555
|
__decorateClass([
|
|
5515
|
-
(0,
|
|
5556
|
+
(0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5516
5557
|
], Cms.prototype, "isActive", 2);
|
|
5517
5558
|
Cms = __decorateClass([
|
|
5518
|
-
(0,
|
|
5559
|
+
(0, import_typeorm53.Entity)("cms")
|
|
5519
5560
|
], Cms);
|
|
5520
5561
|
|
|
5521
5562
|
// src/entities/lead.entity.ts
|
|
5522
|
-
var
|
|
5563
|
+
var import_typeorm54 = require("typeorm");
|
|
5523
5564
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5524
5565
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5525
5566
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5528,22 +5569,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5528
5569
|
var Lead = class extends BaseEntity {
|
|
5529
5570
|
};
|
|
5530
5571
|
__decorateClass([
|
|
5531
|
-
(0,
|
|
5572
|
+
(0, import_typeorm54.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5532
5573
|
], Lead.prototype, "name", 2);
|
|
5533
5574
|
__decorateClass([
|
|
5534
|
-
(0,
|
|
5575
|
+
(0, import_typeorm54.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5535
5576
|
], Lead.prototype, "mobileCode", 2);
|
|
5536
5577
|
__decorateClass([
|
|
5537
|
-
(0,
|
|
5578
|
+
(0, import_typeorm54.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5538
5579
|
], Lead.prototype, "mobile", 2);
|
|
5539
5580
|
__decorateClass([
|
|
5540
|
-
(0,
|
|
5581
|
+
(0, import_typeorm54.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5541
5582
|
], Lead.prototype, "email", 2);
|
|
5542
5583
|
__decorateClass([
|
|
5543
|
-
(0,
|
|
5584
|
+
(0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5544
5585
|
], Lead.prototype, "description", 2);
|
|
5545
5586
|
__decorateClass([
|
|
5546
|
-
(0,
|
|
5587
|
+
(0, import_typeorm54.Column)({
|
|
5547
5588
|
name: "category",
|
|
5548
5589
|
type: "enum",
|
|
5549
5590
|
enum: CategoryEmum,
|
|
@@ -5551,129 +5592,129 @@ __decorateClass([
|
|
|
5551
5592
|
})
|
|
5552
5593
|
], Lead.prototype, "category", 2);
|
|
5553
5594
|
Lead = __decorateClass([
|
|
5554
|
-
(0,
|
|
5595
|
+
(0, import_typeorm54.Entity)("leads")
|
|
5555
5596
|
], Lead);
|
|
5556
5597
|
|
|
5557
5598
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5558
|
-
var
|
|
5599
|
+
var import_typeorm55 = require("typeorm");
|
|
5559
5600
|
var JobFreelancerRecommendation = class {
|
|
5560
5601
|
};
|
|
5561
5602
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5603
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_id" })
|
|
5563
5604
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5564
5605
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5606
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_uuid" })
|
|
5566
5607
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5567
5608
|
__decorateClass([
|
|
5568
|
-
(0,
|
|
5609
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_unique_id" })
|
|
5569
5610
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5570
5611
|
__decorateClass([
|
|
5571
|
-
(0,
|
|
5612
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_role" })
|
|
5572
5613
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5573
5614
|
__decorateClass([
|
|
5574
|
-
(0,
|
|
5615
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_openings" })
|
|
5575
5616
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5576
5617
|
__decorateClass([
|
|
5577
|
-
(0,
|
|
5618
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_location" })
|
|
5578
5619
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5579
5620
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5621
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_currency" })
|
|
5581
5622
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5582
5623
|
__decorateClass([
|
|
5583
|
-
(0,
|
|
5624
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_from" })
|
|
5584
5625
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5585
5626
|
__decorateClass([
|
|
5586
|
-
(0,
|
|
5627
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_to" })
|
|
5587
5628
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5588
5629
|
__decorateClass([
|
|
5589
|
-
(0,
|
|
5630
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_employment_type" })
|
|
5590
5631
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5591
5632
|
__decorateClass([
|
|
5592
|
-
(0,
|
|
5633
|
+
(0, import_typeorm55.ViewColumn)({ name: "application_received" })
|
|
5593
5634
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5594
5635
|
__decorateClass([
|
|
5595
|
-
(0,
|
|
5636
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_posted_at" })
|
|
5596
5637
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5597
5638
|
__decorateClass([
|
|
5598
|
-
(0,
|
|
5639
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_id" })
|
|
5599
5640
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5600
5641
|
__decorateClass([
|
|
5601
|
-
(0,
|
|
5642
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_uuid" })
|
|
5602
5643
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5603
5644
|
__decorateClass([
|
|
5604
|
-
(0,
|
|
5645
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5605
5646
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5606
5647
|
__decorateClass([
|
|
5607
|
-
(0,
|
|
5648
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_first_name" })
|
|
5608
5649
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5609
5650
|
__decorateClass([
|
|
5610
|
-
(0,
|
|
5651
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_last_name" })
|
|
5611
5652
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5612
5653
|
__decorateClass([
|
|
5613
|
-
(0,
|
|
5654
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_email" })
|
|
5614
5655
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5615
5656
|
__decorateClass([
|
|
5616
|
-
(0,
|
|
5657
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5617
5658
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5618
5659
|
__decorateClass([
|
|
5619
|
-
(0,
|
|
5660
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_is_social" })
|
|
5620
5661
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5621
5662
|
__decorateClass([
|
|
5622
|
-
(0,
|
|
5663
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_created_at" })
|
|
5623
5664
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5624
5665
|
__decorateClass([
|
|
5625
|
-
(0,
|
|
5666
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_designation" })
|
|
5626
5667
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5627
5668
|
__decorateClass([
|
|
5628
|
-
(0,
|
|
5669
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_experience" })
|
|
5629
5670
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5630
5671
|
__decorateClass([
|
|
5631
|
-
(0,
|
|
5672
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5632
5673
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5633
5674
|
__decorateClass([
|
|
5634
|
-
(0,
|
|
5675
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5635
5676
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5636
5677
|
__decorateClass([
|
|
5637
|
-
(0,
|
|
5678
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_name" })
|
|
5638
5679
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5639
5680
|
__decorateClass([
|
|
5640
|
-
(0,
|
|
5681
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5641
5682
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5642
5683
|
__decorateClass([
|
|
5643
|
-
(0,
|
|
5684
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_id" })
|
|
5644
5685
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5645
5686
|
__decorateClass([
|
|
5646
|
-
(0,
|
|
5687
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_uuid" })
|
|
5647
5688
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5648
5689
|
__decorateClass([
|
|
5649
|
-
(0,
|
|
5690
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_first_name" })
|
|
5650
5691
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5651
5692
|
__decorateClass([
|
|
5652
|
-
(0,
|
|
5693
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_last_name" })
|
|
5653
5694
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5654
5695
|
__decorateClass([
|
|
5655
|
-
(0,
|
|
5696
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_email" })
|
|
5656
5697
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5657
5698
|
__decorateClass([
|
|
5658
|
-
(0,
|
|
5699
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_logo" })
|
|
5659
5700
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5660
5701
|
__decorateClass([
|
|
5661
|
-
(0,
|
|
5702
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_name" })
|
|
5662
5703
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5663
5704
|
__decorateClass([
|
|
5664
|
-
(0,
|
|
5705
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills" })
|
|
5665
5706
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5666
5707
|
__decorateClass([
|
|
5667
|
-
(0,
|
|
5708
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills_count" })
|
|
5668
5709
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5669
5710
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5711
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills" })
|
|
5671
5712
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5672
5713
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5714
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills_count" })
|
|
5674
5715
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5675
5716
|
JobFreelancerRecommendation = __decorateClass([
|
|
5676
|
-
(0,
|
|
5717
|
+
(0, import_typeorm55.ViewEntity)({
|
|
5677
5718
|
name: "job_freelancer_recommendations",
|
|
5678
5719
|
materialized: true,
|
|
5679
5720
|
synchronize: false
|
|
@@ -5682,32 +5723,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5682
5723
|
], JobFreelancerRecommendation);
|
|
5683
5724
|
|
|
5684
5725
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5685
|
-
var
|
|
5726
|
+
var import_typeorm56 = require("typeorm");
|
|
5686
5727
|
var JobFreelancerRecommendationV2 = class {
|
|
5687
5728
|
};
|
|
5688
5729
|
__decorateClass([
|
|
5689
|
-
(0,
|
|
5730
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_id" })
|
|
5690
5731
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5691
5732
|
__decorateClass([
|
|
5692
|
-
(0,
|
|
5733
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_owner_id" })
|
|
5693
5734
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5694
5735
|
__decorateClass([
|
|
5695
|
-
(0,
|
|
5736
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_id" })
|
|
5696
5737
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5697
5738
|
__decorateClass([
|
|
5698
|
-
(0,
|
|
5739
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills" })
|
|
5699
5740
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5700
5741
|
__decorateClass([
|
|
5701
|
-
(0,
|
|
5742
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills_count" })
|
|
5702
5743
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5703
5744
|
__decorateClass([
|
|
5704
|
-
(0,
|
|
5745
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills" })
|
|
5705
5746
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5706
5747
|
__decorateClass([
|
|
5707
|
-
(0,
|
|
5748
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills_count" })
|
|
5708
5749
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5709
5750
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5710
|
-
(0,
|
|
5751
|
+
(0, import_typeorm56.ViewEntity)({
|
|
5711
5752
|
name: "job_freelancer_recommendations_v2",
|
|
5712
5753
|
materialized: true,
|
|
5713
5754
|
synchronize: false
|
|
@@ -5716,74 +5757,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5716
5757
|
], JobFreelancerRecommendationV2);
|
|
5717
5758
|
|
|
5718
5759
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5719
|
-
var
|
|
5760
|
+
var import_typeorm57 = require("typeorm");
|
|
5720
5761
|
var ClientFreelancerRecommendation = class {
|
|
5721
5762
|
};
|
|
5722
5763
|
__decorateClass([
|
|
5723
|
-
(0,
|
|
5764
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_id" })
|
|
5724
5765
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5725
5766
|
__decorateClass([
|
|
5726
|
-
(0,
|
|
5767
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_uuid" })
|
|
5727
5768
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5728
5769
|
__decorateClass([
|
|
5729
|
-
(0,
|
|
5770
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_id" })
|
|
5730
5771
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5731
5772
|
__decorateClass([
|
|
5732
|
-
(0,
|
|
5773
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_uuid" })
|
|
5733
5774
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5734
5775
|
__decorateClass([
|
|
5735
|
-
(0,
|
|
5776
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5736
5777
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5737
5778
|
__decorateClass([
|
|
5738
|
-
(0,
|
|
5779
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_first_name" })
|
|
5739
5780
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5740
5781
|
__decorateClass([
|
|
5741
|
-
(0,
|
|
5782
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_last_name" })
|
|
5742
5783
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5743
5784
|
__decorateClass([
|
|
5744
|
-
(0,
|
|
5785
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_email" })
|
|
5745
5786
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5746
5787
|
__decorateClass([
|
|
5747
|
-
(0,
|
|
5788
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5748
5789
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5749
5790
|
__decorateClass([
|
|
5750
|
-
(0,
|
|
5791
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_is_social" })
|
|
5751
5792
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5752
5793
|
__decorateClass([
|
|
5753
|
-
(0,
|
|
5794
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_created_at" })
|
|
5754
5795
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5755
5796
|
__decorateClass([
|
|
5756
|
-
(0,
|
|
5797
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_designation" })
|
|
5757
5798
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5758
5799
|
__decorateClass([
|
|
5759
|
-
(0,
|
|
5800
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_experience" })
|
|
5760
5801
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5761
5802
|
__decorateClass([
|
|
5762
|
-
(0,
|
|
5803
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5763
5804
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5764
5805
|
__decorateClass([
|
|
5765
|
-
(0,
|
|
5806
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5766
5807
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5767
5808
|
__decorateClass([
|
|
5768
|
-
(0,
|
|
5809
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_name" })
|
|
5769
5810
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5770
5811
|
__decorateClass([
|
|
5771
|
-
(0,
|
|
5812
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5772
5813
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5773
5814
|
__decorateClass([
|
|
5774
|
-
(0,
|
|
5815
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills" })
|
|
5775
5816
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5776
5817
|
__decorateClass([
|
|
5777
|
-
(0,
|
|
5818
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills_count" })
|
|
5778
5819
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5779
5820
|
__decorateClass([
|
|
5780
|
-
(0,
|
|
5821
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills" })
|
|
5781
5822
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5782
5823
|
__decorateClass([
|
|
5783
|
-
(0,
|
|
5824
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills_count" })
|
|
5784
5825
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5785
5826
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5786
|
-
(0,
|
|
5827
|
+
(0, import_typeorm57.ViewEntity)({
|
|
5787
5828
|
name: "client_freelancer_recommendations",
|
|
5788
5829
|
materialized: true,
|
|
5789
5830
|
synchronize: false
|
|
@@ -5792,7 +5833,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5792
5833
|
], ClientFreelancerRecommendation);
|
|
5793
5834
|
|
|
5794
5835
|
// src/entities/commission.entity.ts
|
|
5795
|
-
var
|
|
5836
|
+
var import_typeorm58 = require("typeorm");
|
|
5796
5837
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5797
5838
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5798
5839
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5801,7 +5842,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5801
5842
|
var Commission = class extends BaseEntity {
|
|
5802
5843
|
};
|
|
5803
5844
|
__decorateClass([
|
|
5804
|
-
(0,
|
|
5845
|
+
(0, import_typeorm58.Column)({
|
|
5805
5846
|
name: "freelancer_commission_type",
|
|
5806
5847
|
type: "enum",
|
|
5807
5848
|
enum: CommissionTypeEnum,
|
|
@@ -5809,10 +5850,10 @@ __decorateClass([
|
|
|
5809
5850
|
})
|
|
5810
5851
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5811
5852
|
__decorateClass([
|
|
5812
|
-
(0,
|
|
5853
|
+
(0, import_typeorm58.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5813
5854
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5814
5855
|
__decorateClass([
|
|
5815
|
-
(0,
|
|
5856
|
+
(0, import_typeorm58.Column)({
|
|
5816
5857
|
name: "client_commission_type",
|
|
5817
5858
|
type: "enum",
|
|
5818
5859
|
enum: CommissionTypeEnum,
|
|
@@ -5820,10 +5861,10 @@ __decorateClass([
|
|
|
5820
5861
|
})
|
|
5821
5862
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5822
5863
|
__decorateClass([
|
|
5823
|
-
(0,
|
|
5864
|
+
(0, import_typeorm58.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5824
5865
|
], Commission.prototype, "clientCommission", 2);
|
|
5825
5866
|
Commission = __decorateClass([
|
|
5826
|
-
(0,
|
|
5867
|
+
(0, import_typeorm58.Entity)("commissions")
|
|
5827
5868
|
], Commission);
|
|
5828
5869
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5829
5870
|
0 && (module.exports = {
|
|
@@ -5831,10 +5872,6 @@ Commission = __decorateClass([
|
|
|
5831
5872
|
ADMIN_JOB_PATTERN,
|
|
5832
5873
|
ADMIN_PERMISSION_PATTERN,
|
|
5833
5874
|
ADMIN_ROLE_PATTERN,
|
|
5834
|
-
AIInterview,
|
|
5835
|
-
AIInterviewResultEnum,
|
|
5836
|
-
AIInterviewStatusEnum,
|
|
5837
|
-
AIInterviewTypeEnum,
|
|
5838
5875
|
ASSESSMENT_QUESTION_PATTERN,
|
|
5839
5876
|
AUTHENTICATION_PATTERN,
|
|
5840
5877
|
AccountStatus,
|
|
@@ -5846,6 +5883,8 @@ Commission = __decorateClass([
|
|
|
5846
5883
|
AdminUpdateJobInformationDto,
|
|
5847
5884
|
AdminUserRole,
|
|
5848
5885
|
AiAssessmentStatusEnum,
|
|
5886
|
+
AiInterview,
|
|
5887
|
+
AiInterviewStatusEnum,
|
|
5849
5888
|
AnswerTypeEnum,
|
|
5850
5889
|
ApplicationStatusEnum,
|
|
5851
5890
|
AssessmentAnswer,
|