@experts_hub/shared 1.0.327 → 1.0.330
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 +0 -2
- package/dist/entities/freelancer-f2f-interview.entity.d.ts +0 -3
- package/dist/entities/interview.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -5
- package/dist/index.d.mts +26 -99
- package/dist/index.d.ts +26 -99
- package/dist/index.js +585 -840
- package/dist/index.mjs +548 -815
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1391,17 +1391,17 @@ import {
|
|
|
1391
1391
|
} from "class-validator";
|
|
1392
1392
|
|
|
1393
1393
|
// src/entities/rating.entity.ts
|
|
1394
|
-
import { Entity as
|
|
1394
|
+
import { Entity as Entity43, Column as Column44, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index38 } from "typeorm";
|
|
1395
1395
|
|
|
1396
1396
|
// src/entities/user.entity.ts
|
|
1397
1397
|
import {
|
|
1398
|
-
Entity as
|
|
1399
|
-
Column as
|
|
1398
|
+
Entity as Entity42,
|
|
1399
|
+
Column as Column43,
|
|
1400
1400
|
OneToMany as OneToMany14,
|
|
1401
|
-
OneToOne
|
|
1401
|
+
OneToOne,
|
|
1402
1402
|
Index as Index37,
|
|
1403
|
-
ManyToOne as
|
|
1404
|
-
JoinColumn as
|
|
1403
|
+
ManyToOne as ManyToOne37,
|
|
1404
|
+
JoinColumn as JoinColumn37
|
|
1405
1405
|
} from "typeorm";
|
|
1406
1406
|
|
|
1407
1407
|
// src/entities/base.entity.ts
|
|
@@ -2116,11 +2116,11 @@ CompanyProfile = __decorateClass([
|
|
|
2116
2116
|
|
|
2117
2117
|
// src/entities/job.entity.ts
|
|
2118
2118
|
import {
|
|
2119
|
-
Entity as
|
|
2120
|
-
Column as
|
|
2121
|
-
Index as
|
|
2122
|
-
ManyToOne as
|
|
2123
|
-
JoinColumn as
|
|
2119
|
+
Entity as Entity17,
|
|
2120
|
+
Column as Column18,
|
|
2121
|
+
Index as Index13,
|
|
2122
|
+
ManyToOne as ManyToOne16,
|
|
2123
|
+
JoinColumn as JoinColumn16,
|
|
2124
2124
|
OneToMany as OneToMany6
|
|
2125
2125
|
} from "typeorm";
|
|
2126
2126
|
|
|
@@ -2267,11 +2267,11 @@ JobApplication = __decorateClass([
|
|
|
2267
2267
|
|
|
2268
2268
|
// src/entities/interview.entity.ts
|
|
2269
2269
|
import {
|
|
2270
|
-
Entity as
|
|
2271
|
-
Column as
|
|
2272
|
-
Index as
|
|
2273
|
-
ManyToOne as
|
|
2274
|
-
JoinColumn as
|
|
2270
|
+
Entity as Entity15,
|
|
2271
|
+
Column as Column16,
|
|
2272
|
+
Index as Index11,
|
|
2273
|
+
ManyToOne as ManyToOne14,
|
|
2274
|
+
JoinColumn as JoinColumn14,
|
|
2275
2275
|
OneToMany as OneToMany5
|
|
2276
2276
|
} from "typeorm";
|
|
2277
2277
|
|
|
@@ -2425,6 +2425,60 @@ InterviewInvite = __decorateClass([
|
|
|
2425
2425
|
Entity13("interview_invites")
|
|
2426
2426
|
], InterviewInvite);
|
|
2427
2427
|
|
|
2428
|
+
// src/entities/ai-interview.entity.ts
|
|
2429
|
+
import { Entity as Entity14, Column as Column15, Index as Index10, ManyToOne as ManyToOne13, JoinColumn as JoinColumn13 } from "typeorm";
|
|
2430
|
+
var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
2431
|
+
AiInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2432
|
+
AiInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2433
|
+
AiInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
2434
|
+
AiInterviewStatusEnum2["PASSED"] = "PASSED";
|
|
2435
|
+
AiInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
2436
|
+
AiInterviewStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2437
|
+
AiInterviewStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2438
|
+
AiInterviewStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2439
|
+
AiInterviewStatusEnum2["EXITED"] = "EXITED";
|
|
2440
|
+
return AiInterviewStatusEnum2;
|
|
2441
|
+
})(AiInterviewStatusEnum || {});
|
|
2442
|
+
var AiInterview = class extends BaseEntity {
|
|
2443
|
+
};
|
|
2444
|
+
__decorateClass([
|
|
2445
|
+
Column15({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2446
|
+
Index10()
|
|
2447
|
+
], AiInterview.prototype, "candidateId", 2);
|
|
2448
|
+
__decorateClass([
|
|
2449
|
+
ManyToOne13(() => User, (user) => user.freelancerAiInterview),
|
|
2450
|
+
JoinColumn13({ name: "candidate_id" })
|
|
2451
|
+
], AiInterview.prototype, "candidate", 2);
|
|
2452
|
+
__decorateClass([
|
|
2453
|
+
Column15({ name: "interviwer_id", type: "integer", nullable: true }),
|
|
2454
|
+
Index10()
|
|
2455
|
+
], AiInterview.prototype, "interviwerId", 2);
|
|
2456
|
+
__decorateClass([
|
|
2457
|
+
ManyToOne13(() => User, (user) => user.companyAiInterview),
|
|
2458
|
+
JoinColumn13({ name: "interviwer_id" })
|
|
2459
|
+
], AiInterview.prototype, "interviwer", 2);
|
|
2460
|
+
__decorateClass([
|
|
2461
|
+
Column15({ name: "interview_id", type: "integer", nullable: true })
|
|
2462
|
+
], AiInterview.prototype, "interviewId", 2);
|
|
2463
|
+
__decorateClass([
|
|
2464
|
+
ManyToOne13(() => Interview, (interview) => interview.aiInterviews),
|
|
2465
|
+
JoinColumn13({ name: "interview_id" })
|
|
2466
|
+
], AiInterview.prototype, "interview", 2);
|
|
2467
|
+
__decorateClass([
|
|
2468
|
+
Column15({ name: "invite_id", type: "integer", nullable: true })
|
|
2469
|
+
], AiInterview.prototype, "inviteId", 2);
|
|
2470
|
+
__decorateClass([
|
|
2471
|
+
Column15({
|
|
2472
|
+
name: "status",
|
|
2473
|
+
type: "enum",
|
|
2474
|
+
enum: AiInterviewStatusEnum,
|
|
2475
|
+
nullable: true
|
|
2476
|
+
})
|
|
2477
|
+
], AiInterview.prototype, "status", 2);
|
|
2478
|
+
AiInterview = __decorateClass([
|
|
2479
|
+
Entity14("ai_interviews")
|
|
2480
|
+
], AiInterview);
|
|
2481
|
+
|
|
2428
2482
|
// src/entities/interview.entity.ts
|
|
2429
2483
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2430
2484
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2437,44 +2491,44 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2437
2491
|
var Interview = class extends BaseEntity {
|
|
2438
2492
|
};
|
|
2439
2493
|
__decorateClass([
|
|
2440
|
-
|
|
2494
|
+
Column16({
|
|
2441
2495
|
name: "interview_id",
|
|
2442
2496
|
type: "varchar",
|
|
2443
2497
|
unique: true,
|
|
2444
2498
|
nullable: true
|
|
2445
2499
|
}),
|
|
2446
|
-
|
|
2500
|
+
Index11()
|
|
2447
2501
|
], Interview.prototype, "interviewId", 2);
|
|
2448
2502
|
__decorateClass([
|
|
2449
|
-
|
|
2450
|
-
|
|
2503
|
+
Column16({ name: "user_id", type: "integer", nullable: true }),
|
|
2504
|
+
Index11()
|
|
2451
2505
|
], Interview.prototype, "userId", 2);
|
|
2452
2506
|
__decorateClass([
|
|
2453
|
-
|
|
2454
|
-
|
|
2507
|
+
ManyToOne14(() => User, (user) => user.interviews),
|
|
2508
|
+
JoinColumn14({ name: "user_id" })
|
|
2455
2509
|
], Interview.prototype, "user", 2);
|
|
2456
2510
|
__decorateClass([
|
|
2457
|
-
|
|
2511
|
+
Column16({ name: "interview_name", type: "varchar", nullable: true })
|
|
2458
2512
|
], Interview.prototype, "interviewName", 2);
|
|
2459
2513
|
__decorateClass([
|
|
2460
|
-
|
|
2461
|
-
|
|
2514
|
+
Column16({ name: "job_id", type: "integer" }),
|
|
2515
|
+
Index11()
|
|
2462
2516
|
], Interview.prototype, "jobId", 2);
|
|
2463
2517
|
__decorateClass([
|
|
2464
|
-
|
|
2465
|
-
|
|
2518
|
+
ManyToOne14(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2519
|
+
JoinColumn14({ name: "job_id" })
|
|
2466
2520
|
], Interview.prototype, "job", 2);
|
|
2467
2521
|
__decorateClass([
|
|
2468
|
-
|
|
2522
|
+
Column16({ name: "interview_type", type: "varchar", nullable: true })
|
|
2469
2523
|
], Interview.prototype, "interviewType", 2);
|
|
2470
2524
|
__decorateClass([
|
|
2471
|
-
|
|
2525
|
+
Column16({ name: "interview_language", type: "varchar", nullable: true })
|
|
2472
2526
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2473
2527
|
__decorateClass([
|
|
2474
|
-
|
|
2528
|
+
Column16({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2475
2529
|
], Interview.prototype, "allowProctoring", 2);
|
|
2476
2530
|
__decorateClass([
|
|
2477
|
-
|
|
2531
|
+
Column16({
|
|
2478
2532
|
name: "status",
|
|
2479
2533
|
type: "enum",
|
|
2480
2534
|
enum: InterviewStatusEnum,
|
|
@@ -2498,48 +2552,51 @@ __decorateClass([
|
|
|
2498
2552
|
__decorateClass([
|
|
2499
2553
|
OneToMany5(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2500
2554
|
], Interview.prototype, "invites", 2);
|
|
2555
|
+
__decorateClass([
|
|
2556
|
+
OneToMany5(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2557
|
+
], Interview.prototype, "aiInterviews", 2);
|
|
2501
2558
|
Interview = __decorateClass([
|
|
2502
|
-
|
|
2559
|
+
Entity15("interviews")
|
|
2503
2560
|
], Interview);
|
|
2504
2561
|
|
|
2505
2562
|
// src/entities/job-recommendation.entity.ts
|
|
2506
|
-
import { Entity as
|
|
2563
|
+
import { Entity as Entity16, Column as Column17, Index as Index12, ManyToOne as ManyToOne15, JoinColumn as JoinColumn15, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2507
2564
|
var JobRecommendation = class {
|
|
2508
2565
|
};
|
|
2509
2566
|
__decorateClass([
|
|
2510
2567
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2511
2568
|
], JobRecommendation.prototype, "id", 2);
|
|
2512
2569
|
__decorateClass([
|
|
2513
|
-
|
|
2514
|
-
|
|
2570
|
+
Column17({ name: "job_id", type: "integer" }),
|
|
2571
|
+
Index12()
|
|
2515
2572
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2516
2573
|
__decorateClass([
|
|
2517
|
-
|
|
2518
|
-
|
|
2574
|
+
ManyToOne15(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2575
|
+
JoinColumn15({ name: "job_id" })
|
|
2519
2576
|
], JobRecommendation.prototype, "job", 2);
|
|
2520
2577
|
__decorateClass([
|
|
2521
|
-
|
|
2522
|
-
|
|
2578
|
+
Column17({ name: "freelancer_id", type: "integer" }),
|
|
2579
|
+
Index12()
|
|
2523
2580
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2524
2581
|
__decorateClass([
|
|
2525
|
-
|
|
2526
|
-
|
|
2582
|
+
Column17({ name: "client_id", type: "integer" }),
|
|
2583
|
+
Index12()
|
|
2527
2584
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2528
2585
|
__decorateClass([
|
|
2529
|
-
|
|
2586
|
+
Column17({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2530
2587
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2531
2588
|
__decorateClass([
|
|
2532
|
-
|
|
2589
|
+
Column17({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2533
2590
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2534
2591
|
__decorateClass([
|
|
2535
|
-
|
|
2592
|
+
Column17({
|
|
2536
2593
|
name: "last_calculated_at",
|
|
2537
2594
|
type: "timestamp with time zone",
|
|
2538
2595
|
nullable: true
|
|
2539
2596
|
})
|
|
2540
2597
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2541
2598
|
JobRecommendation = __decorateClass([
|
|
2542
|
-
|
|
2599
|
+
Entity16("job_recommendations")
|
|
2543
2600
|
], JobRecommendation);
|
|
2544
2601
|
|
|
2545
2602
|
// src/entities/job.entity.ts
|
|
@@ -2579,49 +2636,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2579
2636
|
var Job = class extends BaseEntity {
|
|
2580
2637
|
};
|
|
2581
2638
|
__decorateClass([
|
|
2582
|
-
|
|
2639
|
+
Column18({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2583
2640
|
], Job.prototype, "jobId", 2);
|
|
2584
2641
|
// individual index to find jobs by user
|
|
2585
2642
|
__decorateClass([
|
|
2586
|
-
|
|
2587
|
-
|
|
2643
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2644
|
+
Index13()
|
|
2588
2645
|
], Job.prototype, "userId", 2);
|
|
2589
2646
|
__decorateClass([
|
|
2590
|
-
|
|
2591
|
-
|
|
2647
|
+
ManyToOne16(() => User, (user) => user.jobs),
|
|
2648
|
+
JoinColumn16({ name: "user_id" })
|
|
2592
2649
|
], Job.prototype, "user", 2);
|
|
2593
2650
|
__decorateClass([
|
|
2594
|
-
|
|
2651
|
+
Column18({ name: "country_id", type: "int", nullable: true })
|
|
2595
2652
|
], Job.prototype, "countryId", 2);
|
|
2596
2653
|
__decorateClass([
|
|
2597
|
-
|
|
2598
|
-
|
|
2654
|
+
ManyToOne16(() => Country),
|
|
2655
|
+
JoinColumn16({ name: "country_id" })
|
|
2599
2656
|
], Job.prototype, "country", 2);
|
|
2600
2657
|
__decorateClass([
|
|
2601
|
-
|
|
2658
|
+
Column18({ name: "state_id", type: "int", nullable: true })
|
|
2602
2659
|
], Job.prototype, "stateId", 2);
|
|
2603
2660
|
__decorateClass([
|
|
2604
|
-
|
|
2605
|
-
|
|
2661
|
+
ManyToOne16(() => State),
|
|
2662
|
+
JoinColumn16({ name: "state_id" })
|
|
2606
2663
|
], Job.prototype, "state", 2);
|
|
2607
2664
|
__decorateClass([
|
|
2608
|
-
|
|
2665
|
+
Column18({ name: "city_id", type: "int", nullable: true })
|
|
2609
2666
|
], Job.prototype, "cityId", 2);
|
|
2610
2667
|
__decorateClass([
|
|
2611
|
-
|
|
2612
|
-
|
|
2668
|
+
ManyToOne16(() => City),
|
|
2669
|
+
JoinColumn16({ name: "city_id" })
|
|
2613
2670
|
], Job.prototype, "city", 2);
|
|
2614
2671
|
__decorateClass([
|
|
2615
|
-
|
|
2672
|
+
Column18({ name: "job_role", type: "varchar", nullable: true })
|
|
2616
2673
|
], Job.prototype, "jobRole", 2);
|
|
2617
2674
|
__decorateClass([
|
|
2618
|
-
|
|
2675
|
+
Column18({ name: "note", type: "varchar", nullable: true })
|
|
2619
2676
|
], Job.prototype, "note", 2);
|
|
2620
2677
|
__decorateClass([
|
|
2621
|
-
|
|
2678
|
+
Column18({ name: "openings", type: "integer", default: 0 })
|
|
2622
2679
|
], Job.prototype, "openings", 2);
|
|
2623
2680
|
__decorateClass([
|
|
2624
|
-
|
|
2681
|
+
Column18({
|
|
2625
2682
|
name: "location",
|
|
2626
2683
|
type: "enum",
|
|
2627
2684
|
enum: JobLocationEnum,
|
|
@@ -2629,7 +2686,7 @@ __decorateClass([
|
|
|
2629
2686
|
})
|
|
2630
2687
|
], Job.prototype, "location", 2);
|
|
2631
2688
|
__decorateClass([
|
|
2632
|
-
|
|
2689
|
+
Column18({
|
|
2633
2690
|
name: "type_of_employment",
|
|
2634
2691
|
type: "enum",
|
|
2635
2692
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2637,19 +2694,19 @@ __decorateClass([
|
|
|
2637
2694
|
})
|
|
2638
2695
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2639
2696
|
__decorateClass([
|
|
2640
|
-
|
|
2697
|
+
Column18({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2641
2698
|
], Job.prototype, "academicQualification", 2);
|
|
2642
2699
|
__decorateClass([
|
|
2643
|
-
|
|
2700
|
+
Column18({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2644
2701
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2645
2702
|
__decorateClass([
|
|
2646
|
-
|
|
2703
|
+
Column18({ name: "business_industry", type: "varchar", nullable: true })
|
|
2647
2704
|
], Job.prototype, "businessIndustry", 2);
|
|
2648
2705
|
__decorateClass([
|
|
2649
|
-
|
|
2706
|
+
Column18({ name: "currency", type: "varchar", default: "USD" })
|
|
2650
2707
|
], Job.prototype, "currency", 2);
|
|
2651
2708
|
__decorateClass([
|
|
2652
|
-
|
|
2709
|
+
Column18({
|
|
2653
2710
|
name: "expected_salary_from",
|
|
2654
2711
|
type: "decimal",
|
|
2655
2712
|
precision: 10,
|
|
@@ -2658,7 +2715,7 @@ __decorateClass([
|
|
|
2658
2715
|
})
|
|
2659
2716
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2660
2717
|
__decorateClass([
|
|
2661
|
-
|
|
2718
|
+
Column18({
|
|
2662
2719
|
name: "expected_salary_to",
|
|
2663
2720
|
type: "decimal",
|
|
2664
2721
|
precision: 10,
|
|
@@ -2667,16 +2724,16 @@ __decorateClass([
|
|
|
2667
2724
|
})
|
|
2668
2725
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2669
2726
|
__decorateClass([
|
|
2670
|
-
|
|
2727
|
+
Column18({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2671
2728
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2672
2729
|
__decorateClass([
|
|
2673
|
-
|
|
2730
|
+
Column18({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2674
2731
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2675
2732
|
__decorateClass([
|
|
2676
|
-
|
|
2733
|
+
Column18({ name: "duration", type: "varchar", nullable: true })
|
|
2677
2734
|
], Job.prototype, "duration", 2);
|
|
2678
2735
|
__decorateClass([
|
|
2679
|
-
|
|
2736
|
+
Column18({
|
|
2680
2737
|
name: "duration_type",
|
|
2681
2738
|
type: "enum",
|
|
2682
2739
|
enum: DurationTypeEnum,
|
|
@@ -2684,13 +2741,13 @@ __decorateClass([
|
|
|
2684
2741
|
})
|
|
2685
2742
|
], Job.prototype, "durationType", 2);
|
|
2686
2743
|
__decorateClass([
|
|
2687
|
-
|
|
2744
|
+
Column18({ name: "description", type: "varchar", nullable: true })
|
|
2688
2745
|
], Job.prototype, "description", 2);
|
|
2689
2746
|
__decorateClass([
|
|
2690
|
-
|
|
2747
|
+
Column18({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2691
2748
|
], Job.prototype, "additionalComment", 2);
|
|
2692
2749
|
__decorateClass([
|
|
2693
|
-
|
|
2750
|
+
Column18({
|
|
2694
2751
|
name: "onboarding_tat",
|
|
2695
2752
|
type: "varchar",
|
|
2696
2753
|
length: 50,
|
|
@@ -2698,14 +2755,14 @@ __decorateClass([
|
|
|
2698
2755
|
})
|
|
2699
2756
|
], Job.prototype, "onboardingTat", 2);
|
|
2700
2757
|
__decorateClass([
|
|
2701
|
-
|
|
2758
|
+
Column18({
|
|
2702
2759
|
name: "candidate_communication_skills",
|
|
2703
2760
|
type: "varchar",
|
|
2704
2761
|
nullable: true
|
|
2705
2762
|
})
|
|
2706
2763
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2707
2764
|
__decorateClass([
|
|
2708
|
-
|
|
2765
|
+
Column18({
|
|
2709
2766
|
name: "step_completed",
|
|
2710
2767
|
type: "enum",
|
|
2711
2768
|
enum: Step,
|
|
@@ -2713,7 +2770,7 @@ __decorateClass([
|
|
|
2713
2770
|
})
|
|
2714
2771
|
], Job.prototype, "stepCompleted", 2);
|
|
2715
2772
|
__decorateClass([
|
|
2716
|
-
|
|
2773
|
+
Column18({
|
|
2717
2774
|
name: "status",
|
|
2718
2775
|
type: "enum",
|
|
2719
2776
|
enum: JobStatusEnum,
|
|
@@ -2721,10 +2778,10 @@ __decorateClass([
|
|
|
2721
2778
|
})
|
|
2722
2779
|
], Job.prototype, "status", 2);
|
|
2723
2780
|
__decorateClass([
|
|
2724
|
-
|
|
2781
|
+
Column18({ name: "viewed_count", type: "integer", default: 0 })
|
|
2725
2782
|
], Job.prototype, "viewedCount", 2);
|
|
2726
2783
|
__decorateClass([
|
|
2727
|
-
|
|
2784
|
+
Column18({ name: "application_count", type: "integer", default: 0 })
|
|
2728
2785
|
], Job.prototype, "applicationCount", 2);
|
|
2729
2786
|
__decorateClass([
|
|
2730
2787
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2745,16 +2802,16 @@ __decorateClass([
|
|
|
2745
2802
|
})
|
|
2746
2803
|
], Job.prototype, "recommendations", 2);
|
|
2747
2804
|
Job = __decorateClass([
|
|
2748
|
-
|
|
2805
|
+
Entity17("jobs")
|
|
2749
2806
|
], Job);
|
|
2750
2807
|
|
|
2751
2808
|
// src/entities/bank-details.entity.ts
|
|
2752
2809
|
import {
|
|
2753
|
-
Entity as
|
|
2754
|
-
Column as
|
|
2755
|
-
Index as
|
|
2756
|
-
ManyToOne as
|
|
2757
|
-
JoinColumn as
|
|
2810
|
+
Entity as Entity18,
|
|
2811
|
+
Column as Column19,
|
|
2812
|
+
Index as Index14,
|
|
2813
|
+
ManyToOne as ManyToOne17,
|
|
2814
|
+
JoinColumn as JoinColumn17
|
|
2758
2815
|
} from "typeorm";
|
|
2759
2816
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2760
2817
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2770,48 +2827,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2770
2827
|
};
|
|
2771
2828
|
// individual index to find bank details by user
|
|
2772
2829
|
__decorateClass([
|
|
2773
|
-
|
|
2774
|
-
|
|
2830
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2831
|
+
Index14()
|
|
2775
2832
|
], BankDetail.prototype, "userId", 2);
|
|
2776
2833
|
__decorateClass([
|
|
2777
|
-
|
|
2778
|
-
|
|
2834
|
+
ManyToOne17(() => User, (user) => user.bankDetail),
|
|
2835
|
+
JoinColumn17({ name: "user_id" })
|
|
2779
2836
|
], BankDetail.prototype, "user", 2);
|
|
2780
2837
|
__decorateClass([
|
|
2781
|
-
|
|
2838
|
+
Column19({ name: "name", type: "varchar", nullable: true })
|
|
2782
2839
|
], BankDetail.prototype, "name", 2);
|
|
2783
2840
|
__decorateClass([
|
|
2784
|
-
|
|
2841
|
+
Column19({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2785
2842
|
], BankDetail.prototype, "mobile", 2);
|
|
2786
2843
|
__decorateClass([
|
|
2787
|
-
|
|
2844
|
+
Column19({ name: "email", type: "varchar", unique: true })
|
|
2788
2845
|
], BankDetail.prototype, "email", 2);
|
|
2789
2846
|
__decorateClass([
|
|
2790
|
-
|
|
2847
|
+
Column19({ name: "address", type: "varchar", nullable: true })
|
|
2791
2848
|
], BankDetail.prototype, "address", 2);
|
|
2792
2849
|
__decorateClass([
|
|
2793
|
-
|
|
2850
|
+
Column19({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2794
2851
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2795
2852
|
__decorateClass([
|
|
2796
|
-
|
|
2853
|
+
Column19({ name: "bank_name", type: "varchar", nullable: true })
|
|
2797
2854
|
], BankDetail.prototype, "bankName", 2);
|
|
2798
2855
|
__decorateClass([
|
|
2799
|
-
|
|
2856
|
+
Column19({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2800
2857
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2801
2858
|
__decorateClass([
|
|
2802
|
-
|
|
2859
|
+
Column19({ name: "branch_name", type: "varchar", nullable: true })
|
|
2803
2860
|
], BankDetail.prototype, "branchName", 2);
|
|
2804
2861
|
__decorateClass([
|
|
2805
|
-
|
|
2862
|
+
Column19({ name: "routing_no", type: "varchar", nullable: true })
|
|
2806
2863
|
], BankDetail.prototype, "routingNo", 2);
|
|
2807
2864
|
__decorateClass([
|
|
2808
|
-
|
|
2865
|
+
Column19({ name: "aba_no", type: "varchar", nullable: true })
|
|
2809
2866
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2810
2867
|
__decorateClass([
|
|
2811
|
-
|
|
2868
|
+
Column19({ name: "iban", type: "varchar", nullable: true })
|
|
2812
2869
|
], BankDetail.prototype, "iban", 2);
|
|
2813
2870
|
__decorateClass([
|
|
2814
|
-
|
|
2871
|
+
Column19({
|
|
2815
2872
|
name: "account_type",
|
|
2816
2873
|
type: "enum",
|
|
2817
2874
|
enum: BankAccountTypeEnum,
|
|
@@ -2819,7 +2876,7 @@ __decorateClass([
|
|
|
2819
2876
|
})
|
|
2820
2877
|
], BankDetail.prototype, "accountType", 2);
|
|
2821
2878
|
__decorateClass([
|
|
2822
|
-
|
|
2879
|
+
Column19({
|
|
2823
2880
|
name: "account_scope",
|
|
2824
2881
|
type: "enum",
|
|
2825
2882
|
enum: BankAccountScopeEnum,
|
|
@@ -2827,263 +2884,263 @@ __decorateClass([
|
|
|
2827
2884
|
})
|
|
2828
2885
|
], BankDetail.prototype, "accountScope", 2);
|
|
2829
2886
|
BankDetail = __decorateClass([
|
|
2830
|
-
|
|
2887
|
+
Entity18("bank_details")
|
|
2831
2888
|
], BankDetail);
|
|
2832
2889
|
|
|
2833
2890
|
// src/entities/system-preference.entity.ts
|
|
2834
2891
|
import {
|
|
2835
|
-
Entity as
|
|
2836
|
-
Column as
|
|
2837
|
-
Index as
|
|
2838
|
-
ManyToOne as
|
|
2839
|
-
JoinColumn as
|
|
2892
|
+
Entity as Entity19,
|
|
2893
|
+
Column as Column20,
|
|
2894
|
+
Index as Index15,
|
|
2895
|
+
ManyToOne as ManyToOne18,
|
|
2896
|
+
JoinColumn as JoinColumn18
|
|
2840
2897
|
} from "typeorm";
|
|
2841
2898
|
var SystemPreference = class extends BaseEntity {
|
|
2842
2899
|
};
|
|
2843
2900
|
// individual index to find system preference by user
|
|
2844
2901
|
__decorateClass([
|
|
2845
|
-
|
|
2846
|
-
|
|
2902
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2903
|
+
Index15()
|
|
2847
2904
|
], SystemPreference.prototype, "userId", 2);
|
|
2848
2905
|
__decorateClass([
|
|
2849
|
-
|
|
2850
|
-
|
|
2906
|
+
ManyToOne18(() => User, (user) => user.systemPreference),
|
|
2907
|
+
JoinColumn18({ name: "user_id" })
|
|
2851
2908
|
], SystemPreference.prototype, "user", 2);
|
|
2852
2909
|
__decorateClass([
|
|
2853
|
-
|
|
2910
|
+
Column20({ name: "key", type: "varchar", nullable: false })
|
|
2854
2911
|
], SystemPreference.prototype, "key", 2);
|
|
2855
2912
|
__decorateClass([
|
|
2856
|
-
|
|
2913
|
+
Column20({ name: "value", type: "boolean", default: false })
|
|
2857
2914
|
], SystemPreference.prototype, "value", 2);
|
|
2858
2915
|
SystemPreference = __decorateClass([
|
|
2859
|
-
|
|
2916
|
+
Entity19("system_preferences")
|
|
2860
2917
|
], SystemPreference);
|
|
2861
2918
|
|
|
2862
2919
|
// src/entities/freelancer-experience.entity.ts
|
|
2863
2920
|
import {
|
|
2864
|
-
Entity as
|
|
2865
|
-
Column as
|
|
2866
|
-
Index as
|
|
2867
|
-
ManyToOne as
|
|
2868
|
-
JoinColumn as
|
|
2921
|
+
Entity as Entity20,
|
|
2922
|
+
Column as Column21,
|
|
2923
|
+
Index as Index16,
|
|
2924
|
+
ManyToOne as ManyToOne19,
|
|
2925
|
+
JoinColumn as JoinColumn19
|
|
2869
2926
|
} from "typeorm";
|
|
2870
2927
|
var FreelancerExperience = class extends BaseEntity {
|
|
2871
2928
|
};
|
|
2872
2929
|
// individual index to find experence by user
|
|
2873
2930
|
__decorateClass([
|
|
2874
|
-
|
|
2875
|
-
|
|
2931
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2932
|
+
Index16()
|
|
2876
2933
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2877
2934
|
__decorateClass([
|
|
2878
|
-
|
|
2879
|
-
|
|
2935
|
+
ManyToOne19(() => User, (user) => user.freelancerExperience),
|
|
2936
|
+
JoinColumn19({ name: "user_id" })
|
|
2880
2937
|
], FreelancerExperience.prototype, "user", 2);
|
|
2881
2938
|
__decorateClass([
|
|
2882
|
-
|
|
2939
|
+
Column21({ name: "company_name", type: "varchar", nullable: true })
|
|
2883
2940
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2884
2941
|
__decorateClass([
|
|
2885
|
-
|
|
2942
|
+
Column21({ name: "designation", type: "varchar", nullable: true })
|
|
2886
2943
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2887
2944
|
__decorateClass([
|
|
2888
|
-
|
|
2945
|
+
Column21({ name: "job_duration", type: "varchar", nullable: true })
|
|
2889
2946
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2890
2947
|
__decorateClass([
|
|
2891
|
-
|
|
2948
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2892
2949
|
], FreelancerExperience.prototype, "description", 2);
|
|
2893
2950
|
FreelancerExperience = __decorateClass([
|
|
2894
|
-
|
|
2951
|
+
Entity20("freelancer_experiences")
|
|
2895
2952
|
], FreelancerExperience);
|
|
2896
2953
|
|
|
2897
2954
|
// src/entities/freelancer-education.entity.ts
|
|
2898
2955
|
import {
|
|
2899
|
-
Entity as
|
|
2900
|
-
Column as
|
|
2901
|
-
Index as
|
|
2902
|
-
ManyToOne as
|
|
2903
|
-
JoinColumn as
|
|
2956
|
+
Entity as Entity21,
|
|
2957
|
+
Column as Column22,
|
|
2958
|
+
Index as Index17,
|
|
2959
|
+
ManyToOne as ManyToOne20,
|
|
2960
|
+
JoinColumn as JoinColumn20
|
|
2904
2961
|
} from "typeorm";
|
|
2905
2962
|
var FreelancerEducation = class extends BaseEntity {
|
|
2906
2963
|
};
|
|
2907
2964
|
// individual index to find education by user
|
|
2908
2965
|
__decorateClass([
|
|
2909
|
-
|
|
2910
|
-
|
|
2966
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2967
|
+
Index17()
|
|
2911
2968
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2912
2969
|
__decorateClass([
|
|
2913
|
-
|
|
2914
|
-
|
|
2970
|
+
ManyToOne20(() => User, (user) => user.freelancerEducation),
|
|
2971
|
+
JoinColumn20({ name: "user_id" })
|
|
2915
2972
|
], FreelancerEducation.prototype, "user", 2);
|
|
2916
2973
|
__decorateClass([
|
|
2917
|
-
|
|
2974
|
+
Column22({ name: "degree", type: "varchar", nullable: true })
|
|
2918
2975
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2919
2976
|
__decorateClass([
|
|
2920
|
-
|
|
2977
|
+
Column22({ name: "university", type: "varchar", nullable: true })
|
|
2921
2978
|
], FreelancerEducation.prototype, "university", 2);
|
|
2922
2979
|
__decorateClass([
|
|
2923
|
-
|
|
2980
|
+
Column22({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2924
2981
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2925
2982
|
FreelancerEducation = __decorateClass([
|
|
2926
|
-
|
|
2983
|
+
Entity21("freelancer_educations")
|
|
2927
2984
|
], FreelancerEducation);
|
|
2928
2985
|
|
|
2929
2986
|
// src/entities/freelancer-project.entity.ts
|
|
2930
2987
|
import {
|
|
2931
|
-
Entity as
|
|
2932
|
-
Column as
|
|
2933
|
-
Index as
|
|
2934
|
-
ManyToOne as
|
|
2935
|
-
JoinColumn as
|
|
2988
|
+
Entity as Entity22,
|
|
2989
|
+
Column as Column23,
|
|
2990
|
+
Index as Index18,
|
|
2991
|
+
ManyToOne as ManyToOne21,
|
|
2992
|
+
JoinColumn as JoinColumn21
|
|
2936
2993
|
} from "typeorm";
|
|
2937
2994
|
var FreelancerProject = class extends BaseEntity {
|
|
2938
2995
|
};
|
|
2939
2996
|
// individual index to find project by user
|
|
2940
2997
|
__decorateClass([
|
|
2941
|
-
|
|
2942
|
-
|
|
2998
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2999
|
+
Index18()
|
|
2943
3000
|
], FreelancerProject.prototype, "userId", 2);
|
|
2944
3001
|
__decorateClass([
|
|
2945
|
-
|
|
2946
|
-
|
|
3002
|
+
ManyToOne21(() => User, (user) => user.freelancerProject),
|
|
3003
|
+
JoinColumn21({ name: "user_id" })
|
|
2947
3004
|
], FreelancerProject.prototype, "user", 2);
|
|
2948
3005
|
__decorateClass([
|
|
2949
|
-
|
|
3006
|
+
Column23({ name: "project_name", type: "varchar", nullable: true })
|
|
2950
3007
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2951
3008
|
__decorateClass([
|
|
2952
|
-
|
|
3009
|
+
Column23({ name: "start_date", type: "date", nullable: true })
|
|
2953
3010
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2954
3011
|
__decorateClass([
|
|
2955
|
-
|
|
3012
|
+
Column23({ name: "end_date", type: "date", nullable: true })
|
|
2956
3013
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2957
3014
|
__decorateClass([
|
|
2958
|
-
|
|
3015
|
+
Column23({ name: "client_name", type: "varchar", nullable: true })
|
|
2959
3016
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2960
3017
|
__decorateClass([
|
|
2961
|
-
|
|
3018
|
+
Column23({ name: "git_link", type: "varchar", nullable: true })
|
|
2962
3019
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2963
3020
|
__decorateClass([
|
|
2964
|
-
|
|
3021
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2965
3022
|
], FreelancerProject.prototype, "description", 2);
|
|
2966
3023
|
FreelancerProject = __decorateClass([
|
|
2967
|
-
|
|
3024
|
+
Entity22("freelancer_projects")
|
|
2968
3025
|
], FreelancerProject);
|
|
2969
3026
|
|
|
2970
3027
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2971
3028
|
import {
|
|
2972
|
-
Entity as
|
|
2973
|
-
Column as
|
|
2974
|
-
Index as
|
|
2975
|
-
ManyToOne as
|
|
2976
|
-
JoinColumn as
|
|
3029
|
+
Entity as Entity23,
|
|
3030
|
+
Column as Column24,
|
|
3031
|
+
Index as Index19,
|
|
3032
|
+
ManyToOne as ManyToOne22,
|
|
3033
|
+
JoinColumn as JoinColumn22
|
|
2977
3034
|
} from "typeorm";
|
|
2978
3035
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2979
3036
|
};
|
|
2980
3037
|
// individual index to find case study by user
|
|
2981
3038
|
__decorateClass([
|
|
2982
|
-
|
|
2983
|
-
|
|
3039
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3040
|
+
Index19()
|
|
2984
3041
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2985
3042
|
__decorateClass([
|
|
2986
|
-
|
|
2987
|
-
|
|
3043
|
+
ManyToOne22(() => User, (user) => user.freelancerCaseStudy),
|
|
3044
|
+
JoinColumn22({ name: "user_id" })
|
|
2988
3045
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2989
3046
|
__decorateClass([
|
|
2990
|
-
|
|
3047
|
+
Column24({ name: "project_name", type: "varchar", nullable: true })
|
|
2991
3048
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2992
3049
|
__decorateClass([
|
|
2993
|
-
|
|
3050
|
+
Column24({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2994
3051
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2995
3052
|
__decorateClass([
|
|
2996
|
-
|
|
3053
|
+
Column24({ name: "description", type: "varchar", nullable: true })
|
|
2997
3054
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2998
3055
|
FreelancerCaseStudy = __decorateClass([
|
|
2999
|
-
|
|
3056
|
+
Entity23("freelancer_case_studies")
|
|
3000
3057
|
], FreelancerCaseStudy);
|
|
3001
3058
|
|
|
3002
3059
|
// src/entities/freelancer-skill.entity.ts
|
|
3003
3060
|
import {
|
|
3004
|
-
Entity as
|
|
3005
|
-
Column as
|
|
3006
|
-
Index as
|
|
3007
|
-
ManyToOne as
|
|
3008
|
-
JoinColumn as
|
|
3061
|
+
Entity as Entity24,
|
|
3062
|
+
Column as Column25,
|
|
3063
|
+
Index as Index20,
|
|
3064
|
+
ManyToOne as ManyToOne23,
|
|
3065
|
+
JoinColumn as JoinColumn23
|
|
3009
3066
|
} from "typeorm";
|
|
3010
3067
|
var FreelancerSkill = class extends BaseEntity {
|
|
3011
3068
|
};
|
|
3012
3069
|
// individual index to find core skills by user
|
|
3013
3070
|
__decorateClass([
|
|
3014
|
-
|
|
3015
|
-
|
|
3071
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3072
|
+
Index20()
|
|
3016
3073
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3017
3074
|
__decorateClass([
|
|
3018
|
-
|
|
3019
|
-
|
|
3075
|
+
ManyToOne23(() => User, (user) => user.freelancerSkills),
|
|
3076
|
+
JoinColumn23({ name: "user_id" })
|
|
3020
3077
|
], FreelancerSkill.prototype, "user", 2);
|
|
3021
3078
|
__decorateClass([
|
|
3022
|
-
|
|
3079
|
+
Column25({ name: "skill_name", type: "varchar", nullable: true })
|
|
3023
3080
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3024
3081
|
FreelancerSkill = __decorateClass([
|
|
3025
|
-
|
|
3082
|
+
Entity24("freelancer_skills")
|
|
3026
3083
|
], FreelancerSkill);
|
|
3027
3084
|
|
|
3028
3085
|
// src/entities/freelancer-tool.entity.ts
|
|
3029
3086
|
import {
|
|
3030
|
-
Entity as
|
|
3031
|
-
Column as
|
|
3032
|
-
Index as
|
|
3033
|
-
ManyToOne as
|
|
3034
|
-
JoinColumn as
|
|
3087
|
+
Entity as Entity25,
|
|
3088
|
+
Column as Column26,
|
|
3089
|
+
Index as Index21,
|
|
3090
|
+
ManyToOne as ManyToOne24,
|
|
3091
|
+
JoinColumn as JoinColumn24
|
|
3035
3092
|
} from "typeorm";
|
|
3036
3093
|
var FreelancerTool = class extends BaseEntity {
|
|
3037
3094
|
};
|
|
3038
3095
|
// individual index to find tool by user
|
|
3039
3096
|
__decorateClass([
|
|
3040
|
-
|
|
3041
|
-
|
|
3097
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3098
|
+
Index21()
|
|
3042
3099
|
], FreelancerTool.prototype, "userId", 2);
|
|
3043
3100
|
__decorateClass([
|
|
3044
|
-
|
|
3045
|
-
|
|
3101
|
+
ManyToOne24(() => User, (user) => user.freelancerTool),
|
|
3102
|
+
JoinColumn24({ name: "user_id" })
|
|
3046
3103
|
], FreelancerTool.prototype, "user", 2);
|
|
3047
3104
|
__decorateClass([
|
|
3048
|
-
|
|
3105
|
+
Column26({ name: "tool_name", type: "varchar", nullable: true })
|
|
3049
3106
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3050
3107
|
FreelancerTool = __decorateClass([
|
|
3051
|
-
|
|
3108
|
+
Entity25("freelancer_tools")
|
|
3052
3109
|
], FreelancerTool);
|
|
3053
3110
|
|
|
3054
3111
|
// src/entities/freelancer-framework.entity.ts
|
|
3055
3112
|
import {
|
|
3056
|
-
Entity as
|
|
3057
|
-
Column as
|
|
3058
|
-
Index as
|
|
3059
|
-
ManyToOne as
|
|
3060
|
-
JoinColumn as
|
|
3113
|
+
Entity as Entity26,
|
|
3114
|
+
Column as Column27,
|
|
3115
|
+
Index as Index22,
|
|
3116
|
+
ManyToOne as ManyToOne25,
|
|
3117
|
+
JoinColumn as JoinColumn25
|
|
3061
3118
|
} from "typeorm";
|
|
3062
3119
|
var FreelancerFramework = class extends BaseEntity {
|
|
3063
3120
|
};
|
|
3064
3121
|
// individual index to find framework by user
|
|
3065
3122
|
__decorateClass([
|
|
3066
|
-
|
|
3067
|
-
|
|
3123
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3124
|
+
Index22()
|
|
3068
3125
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3069
3126
|
__decorateClass([
|
|
3070
|
-
|
|
3071
|
-
|
|
3127
|
+
ManyToOne25(() => User, (user) => user.freelancerFramework),
|
|
3128
|
+
JoinColumn25({ name: "user_id" })
|
|
3072
3129
|
], FreelancerFramework.prototype, "user", 2);
|
|
3073
3130
|
__decorateClass([
|
|
3074
|
-
|
|
3131
|
+
Column27({ name: "framework_name", type: "varchar", nullable: true })
|
|
3075
3132
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3076
3133
|
FreelancerFramework = __decorateClass([
|
|
3077
|
-
|
|
3134
|
+
Entity26("freelancer_frameworks")
|
|
3078
3135
|
], FreelancerFramework);
|
|
3079
3136
|
|
|
3080
3137
|
// src/entities/freelancer-assessment.entity.ts
|
|
3081
3138
|
import {
|
|
3082
|
-
Entity as
|
|
3083
|
-
Column as
|
|
3084
|
-
Index as
|
|
3085
|
-
ManyToOne as
|
|
3086
|
-
JoinColumn as
|
|
3139
|
+
Entity as Entity27,
|
|
3140
|
+
Column as Column28,
|
|
3141
|
+
Index as Index23,
|
|
3142
|
+
ManyToOne as ManyToOne26,
|
|
3143
|
+
JoinColumn as JoinColumn26
|
|
3087
3144
|
} from "typeorm";
|
|
3088
3145
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3089
3146
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3100,30 +3157,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3100
3157
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3101
3158
|
};
|
|
3102
3159
|
__decorateClass([
|
|
3103
|
-
|
|
3104
|
-
|
|
3160
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3161
|
+
Index23()
|
|
3105
3162
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3106
3163
|
__decorateClass([
|
|
3107
|
-
|
|
3108
|
-
|
|
3164
|
+
ManyToOne26(() => User, (user) => user.assessments),
|
|
3165
|
+
JoinColumn26({ name: "user_id" })
|
|
3109
3166
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3110
3167
|
__decorateClass([
|
|
3111
|
-
|
|
3168
|
+
Column28({ name: "interview_id", type: "varchar", nullable: true })
|
|
3112
3169
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3113
3170
|
__decorateClass([
|
|
3114
|
-
|
|
3171
|
+
Column28({ name: "interview_link", type: "text", nullable: true })
|
|
3115
3172
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3116
3173
|
__decorateClass([
|
|
3117
|
-
|
|
3174
|
+
Column28({ name: "recording_link", type: "text", nullable: true })
|
|
3118
3175
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3119
3176
|
__decorateClass([
|
|
3120
|
-
|
|
3177
|
+
Column28({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3121
3178
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3122
3179
|
__decorateClass([
|
|
3123
|
-
|
|
3180
|
+
Column28({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3124
3181
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3125
3182
|
__decorateClass([
|
|
3126
|
-
|
|
3183
|
+
Column28({
|
|
3127
3184
|
name: "status",
|
|
3128
3185
|
type: "enum",
|
|
3129
3186
|
enum: AssessmentStatusEnum,
|
|
@@ -3131,16 +3188,16 @@ __decorateClass([
|
|
|
3131
3188
|
})
|
|
3132
3189
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3133
3190
|
FreelancerAssessment = __decorateClass([
|
|
3134
|
-
|
|
3191
|
+
Entity27("freelancer_assessments")
|
|
3135
3192
|
], FreelancerAssessment);
|
|
3136
3193
|
|
|
3137
3194
|
// src/entities/freelancer-declaration.entity.ts
|
|
3138
3195
|
import {
|
|
3139
|
-
Entity as
|
|
3140
|
-
Column as
|
|
3141
|
-
Index as
|
|
3142
|
-
ManyToOne as
|
|
3143
|
-
JoinColumn as
|
|
3196
|
+
Entity as Entity28,
|
|
3197
|
+
Column as Column29,
|
|
3198
|
+
Index as Index24,
|
|
3199
|
+
ManyToOne as ManyToOne27,
|
|
3200
|
+
JoinColumn as JoinColumn27
|
|
3144
3201
|
} from "typeorm";
|
|
3145
3202
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3146
3203
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3153,15 +3210,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3153
3210
|
};
|
|
3154
3211
|
// individual index to find declaration by user
|
|
3155
3212
|
__decorateClass([
|
|
3156
|
-
|
|
3157
|
-
|
|
3213
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3214
|
+
Index24()
|
|
3158
3215
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3159
3216
|
__decorateClass([
|
|
3160
|
-
|
|
3161
|
-
|
|
3217
|
+
ManyToOne27(() => User, (user) => user.freelancerDeclaration),
|
|
3218
|
+
JoinColumn27({ name: "user_id" })
|
|
3162
3219
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3163
3220
|
__decorateClass([
|
|
3164
|
-
|
|
3221
|
+
Column29({
|
|
3165
3222
|
name: "document_type",
|
|
3166
3223
|
type: "enum",
|
|
3167
3224
|
enum: DocumentType,
|
|
@@ -3169,175 +3226,175 @@ __decorateClass([
|
|
|
3169
3226
|
})
|
|
3170
3227
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3171
3228
|
__decorateClass([
|
|
3172
|
-
|
|
3229
|
+
Column29({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3173
3230
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3174
3231
|
__decorateClass([
|
|
3175
|
-
|
|
3232
|
+
Column29({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3176
3233
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3177
3234
|
__decorateClass([
|
|
3178
|
-
|
|
3235
|
+
Column29({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3179
3236
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3180
3237
|
__decorateClass([
|
|
3181
|
-
|
|
3238
|
+
Column29({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3182
3239
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3183
3240
|
FreelancerDeclaration = __decorateClass([
|
|
3184
|
-
|
|
3241
|
+
Entity28("freelancer_declaration")
|
|
3185
3242
|
], FreelancerDeclaration);
|
|
3186
3243
|
|
|
3187
3244
|
// src/entities/company-members-roles.entity.ts
|
|
3188
3245
|
import {
|
|
3189
|
-
Column as
|
|
3190
|
-
Entity as
|
|
3191
|
-
ManyToOne as
|
|
3192
|
-
JoinColumn as
|
|
3193
|
-
Index as
|
|
3246
|
+
Column as Column33,
|
|
3247
|
+
Entity as Entity32,
|
|
3248
|
+
ManyToOne as ManyToOne30,
|
|
3249
|
+
JoinColumn as JoinColumn30,
|
|
3250
|
+
Index as Index28
|
|
3194
3251
|
} from "typeorm";
|
|
3195
3252
|
|
|
3196
3253
|
// src/entities/company-role.entity.ts
|
|
3197
3254
|
import {
|
|
3198
|
-
Column as
|
|
3199
|
-
Entity as
|
|
3200
|
-
Index as
|
|
3201
|
-
JoinColumn as
|
|
3202
|
-
ManyToOne as
|
|
3255
|
+
Column as Column32,
|
|
3256
|
+
Entity as Entity31,
|
|
3257
|
+
Index as Index27,
|
|
3258
|
+
JoinColumn as JoinColumn29,
|
|
3259
|
+
ManyToOne as ManyToOne29,
|
|
3203
3260
|
OneToMany as OneToMany8
|
|
3204
3261
|
} from "typeorm";
|
|
3205
3262
|
|
|
3206
3263
|
// src/entities/company-role-permission.entity.ts
|
|
3207
3264
|
import {
|
|
3208
|
-
Column as
|
|
3209
|
-
Entity as
|
|
3210
|
-
ManyToOne as
|
|
3211
|
-
JoinColumn as
|
|
3212
|
-
Index as
|
|
3265
|
+
Column as Column31,
|
|
3266
|
+
Entity as Entity30,
|
|
3267
|
+
ManyToOne as ManyToOne28,
|
|
3268
|
+
JoinColumn as JoinColumn28,
|
|
3269
|
+
Index as Index26
|
|
3213
3270
|
} from "typeorm";
|
|
3214
3271
|
|
|
3215
3272
|
// src/entities/permission.entity.ts
|
|
3216
|
-
import { Column as
|
|
3273
|
+
import { Column as Column30, Entity as Entity29, Index as Index25 } from "typeorm";
|
|
3217
3274
|
var Permission = class extends BaseEntity {
|
|
3218
3275
|
};
|
|
3219
3276
|
__decorateClass([
|
|
3220
|
-
|
|
3277
|
+
Column30({ name: "name", type: "varchar", nullable: true })
|
|
3221
3278
|
], Permission.prototype, "name", 2);
|
|
3222
3279
|
__decorateClass([
|
|
3223
|
-
|
|
3224
|
-
|
|
3280
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3281
|
+
Index25()
|
|
3225
3282
|
], Permission.prototype, "slug", 2);
|
|
3226
3283
|
__decorateClass([
|
|
3227
|
-
|
|
3284
|
+
Column30({ name: "description", type: "text", nullable: true })
|
|
3228
3285
|
], Permission.prototype, "description", 2);
|
|
3229
3286
|
__decorateClass([
|
|
3230
|
-
|
|
3287
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
3231
3288
|
], Permission.prototype, "isActive", 2);
|
|
3232
3289
|
Permission = __decorateClass([
|
|
3233
|
-
|
|
3290
|
+
Entity29("permissions")
|
|
3234
3291
|
], Permission);
|
|
3235
3292
|
|
|
3236
3293
|
// src/entities/company-role-permission.entity.ts
|
|
3237
3294
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3238
3295
|
};
|
|
3239
3296
|
__decorateClass([
|
|
3240
|
-
|
|
3241
|
-
|
|
3297
|
+
Column31({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3298
|
+
Index26()
|
|
3242
3299
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3243
3300
|
__decorateClass([
|
|
3244
|
-
|
|
3301
|
+
ManyToOne28(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3245
3302
|
onDelete: "CASCADE"
|
|
3246
3303
|
}),
|
|
3247
|
-
|
|
3304
|
+
JoinColumn28({ name: "company_role_id" })
|
|
3248
3305
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3249
3306
|
__decorateClass([
|
|
3250
|
-
|
|
3251
|
-
|
|
3307
|
+
Column31({ name: "permission_id", type: "integer" }),
|
|
3308
|
+
Index26()
|
|
3252
3309
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3253
3310
|
__decorateClass([
|
|
3254
|
-
|
|
3255
|
-
|
|
3311
|
+
ManyToOne28(() => Permission, { onDelete: "CASCADE" }),
|
|
3312
|
+
JoinColumn28({ name: "permission_id" })
|
|
3256
3313
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3257
3314
|
__decorateClass([
|
|
3258
|
-
|
|
3315
|
+
Column31({ name: "assigned_by", type: "integer", nullable: true })
|
|
3259
3316
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3260
3317
|
CompanyRolePermission = __decorateClass([
|
|
3261
|
-
|
|
3318
|
+
Entity30("company_role_permissions")
|
|
3262
3319
|
], CompanyRolePermission);
|
|
3263
3320
|
|
|
3264
3321
|
// src/entities/company-role.entity.ts
|
|
3265
3322
|
var CompanyRole = class extends BaseEntity {
|
|
3266
3323
|
};
|
|
3267
3324
|
__decorateClass([
|
|
3268
|
-
|
|
3269
|
-
|
|
3325
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3326
|
+
Index27()
|
|
3270
3327
|
], CompanyRole.prototype, "userId", 2);
|
|
3271
3328
|
__decorateClass([
|
|
3272
|
-
|
|
3273
|
-
|
|
3329
|
+
ManyToOne29(() => User, (user) => user.otps),
|
|
3330
|
+
JoinColumn29({ name: "user_id" })
|
|
3274
3331
|
], CompanyRole.prototype, "user", 2);
|
|
3275
3332
|
__decorateClass([
|
|
3276
|
-
|
|
3333
|
+
Column32({ name: "name", type: "varchar" })
|
|
3277
3334
|
], CompanyRole.prototype, "name", 2);
|
|
3278
3335
|
__decorateClass([
|
|
3279
|
-
|
|
3280
|
-
|
|
3336
|
+
Column32({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3337
|
+
Index27()
|
|
3281
3338
|
], CompanyRole.prototype, "slug", 2);
|
|
3282
3339
|
__decorateClass([
|
|
3283
|
-
|
|
3340
|
+
Column32({ name: "description", type: "text", nullable: true })
|
|
3284
3341
|
], CompanyRole.prototype, "description", 2);
|
|
3285
3342
|
__decorateClass([
|
|
3286
|
-
|
|
3343
|
+
Column32({ name: "is_active", type: "boolean", default: true })
|
|
3287
3344
|
], CompanyRole.prototype, "isActive", 2);
|
|
3288
3345
|
__decorateClass([
|
|
3289
3346
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3290
3347
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3291
3348
|
CompanyRole = __decorateClass([
|
|
3292
|
-
|
|
3349
|
+
Entity31("company_roles")
|
|
3293
3350
|
], CompanyRole);
|
|
3294
3351
|
|
|
3295
3352
|
// src/entities/company-members-roles.entity.ts
|
|
3296
3353
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3297
3354
|
};
|
|
3298
3355
|
__decorateClass([
|
|
3299
|
-
|
|
3300
|
-
|
|
3356
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
3357
|
+
Index28()
|
|
3301
3358
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3302
3359
|
__decorateClass([
|
|
3303
|
-
|
|
3304
|
-
|
|
3360
|
+
ManyToOne30(() => User),
|
|
3361
|
+
JoinColumn30({ name: "user_id" })
|
|
3305
3362
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3306
3363
|
__decorateClass([
|
|
3307
|
-
|
|
3308
|
-
|
|
3364
|
+
ManyToOne30(() => CompanyRole),
|
|
3365
|
+
JoinColumn30({ name: "company_role_id" })
|
|
3309
3366
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3310
3367
|
__decorateClass([
|
|
3311
|
-
|
|
3312
|
-
|
|
3368
|
+
Column33({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3369
|
+
Index28()
|
|
3313
3370
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3314
3371
|
__decorateClass([
|
|
3315
|
-
|
|
3372
|
+
Column33({ name: "assigned_by", type: "integer", nullable: true })
|
|
3316
3373
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3317
3374
|
CompanyMemberRole = __decorateClass([
|
|
3318
|
-
|
|
3375
|
+
Entity32("company_member_roles")
|
|
3319
3376
|
], CompanyMemberRole);
|
|
3320
3377
|
|
|
3321
3378
|
// src/entities/assessment-answer.entity.ts
|
|
3322
3379
|
import {
|
|
3323
|
-
Entity as
|
|
3324
|
-
Column as
|
|
3325
|
-
ManyToOne as
|
|
3326
|
-
Index as
|
|
3327
|
-
JoinColumn as
|
|
3380
|
+
Entity as Entity35,
|
|
3381
|
+
Column as Column36,
|
|
3382
|
+
ManyToOne as ManyToOne32,
|
|
3383
|
+
Index as Index30,
|
|
3384
|
+
JoinColumn as JoinColumn32
|
|
3328
3385
|
} from "typeorm";
|
|
3329
3386
|
|
|
3330
3387
|
// src/entities/assessment-question.entity.ts
|
|
3331
|
-
import { Entity as
|
|
3388
|
+
import { Entity as Entity34, Column as Column35, OneToMany as OneToMany10 } from "typeorm";
|
|
3332
3389
|
|
|
3333
3390
|
// src/entities/assessment-question-option.entity.ts
|
|
3334
3391
|
import {
|
|
3335
|
-
Entity as
|
|
3336
|
-
Column as
|
|
3392
|
+
Entity as Entity33,
|
|
3393
|
+
Column as Column34,
|
|
3337
3394
|
OneToMany as OneToMany9,
|
|
3338
|
-
ManyToOne as
|
|
3339
|
-
Index as
|
|
3340
|
-
JoinColumn as
|
|
3395
|
+
ManyToOne as ManyToOne31,
|
|
3396
|
+
Index as Index29,
|
|
3397
|
+
JoinColumn as JoinColumn31
|
|
3341
3398
|
} from "typeorm";
|
|
3342
3399
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3343
3400
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3348,21 +3405,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3348
3405
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3349
3406
|
};
|
|
3350
3407
|
__decorateClass([
|
|
3351
|
-
|
|
3352
|
-
|
|
3408
|
+
Column34({ name: "question_id", type: "integer", nullable: true }),
|
|
3409
|
+
Index29()
|
|
3353
3410
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3354
3411
|
__decorateClass([
|
|
3355
|
-
|
|
3412
|
+
ManyToOne31(
|
|
3356
3413
|
() => AssessmetQuestion,
|
|
3357
3414
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3358
3415
|
),
|
|
3359
|
-
|
|
3416
|
+
JoinColumn31({ name: "question_id" })
|
|
3360
3417
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3361
3418
|
__decorateClass([
|
|
3362
|
-
|
|
3419
|
+
Column34({ name: "text", type: "varchar", nullable: true })
|
|
3363
3420
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3364
3421
|
__decorateClass([
|
|
3365
|
-
|
|
3422
|
+
Column34({
|
|
3366
3423
|
name: "answer_type",
|
|
3367
3424
|
type: "enum",
|
|
3368
3425
|
enum: AnswerTypeEnum,
|
|
@@ -3370,13 +3427,13 @@ __decorateClass([
|
|
|
3370
3427
|
})
|
|
3371
3428
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3372
3429
|
__decorateClass([
|
|
3373
|
-
|
|
3430
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3374
3431
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3375
3432
|
__decorateClass([
|
|
3376
3433
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3377
3434
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3378
3435
|
AssessmetQuestionOption = __decorateClass([
|
|
3379
|
-
|
|
3436
|
+
Entity33("assessment_question_options")
|
|
3380
3437
|
], AssessmetQuestionOption);
|
|
3381
3438
|
|
|
3382
3439
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3388,10 +3445,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3388
3445
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3389
3446
|
};
|
|
3390
3447
|
__decorateClass([
|
|
3391
|
-
|
|
3448
|
+
Column35({ name: "text", type: "varchar", nullable: true })
|
|
3392
3449
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3393
3450
|
__decorateClass([
|
|
3394
|
-
|
|
3451
|
+
Column35({
|
|
3395
3452
|
name: "question_for",
|
|
3396
3453
|
type: "enum",
|
|
3397
3454
|
enum: QuestionForEnum,
|
|
@@ -3399,7 +3456,7 @@ __decorateClass([
|
|
|
3399
3456
|
})
|
|
3400
3457
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3401
3458
|
__decorateClass([
|
|
3402
|
-
|
|
3459
|
+
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3403
3460
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3404
3461
|
__decorateClass([
|
|
3405
3462
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3408,7 +3465,7 @@ __decorateClass([
|
|
|
3408
3465
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3409
3466
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3410
3467
|
AssessmetQuestion = __decorateClass([
|
|
3411
|
-
|
|
3468
|
+
Entity34("assessment_questions")
|
|
3412
3469
|
], AssessmetQuestion);
|
|
3413
3470
|
|
|
3414
3471
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3421,102 +3478,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3421
3478
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3422
3479
|
};
|
|
3423
3480
|
__decorateClass([
|
|
3424
|
-
|
|
3425
|
-
|
|
3481
|
+
Column36({ name: "user_id", type: "integer" }),
|
|
3482
|
+
Index30()
|
|
3426
3483
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3427
3484
|
__decorateClass([
|
|
3428
|
-
|
|
3429
|
-
|
|
3485
|
+
ManyToOne32(() => User, (user) => user.assessmentAnswers),
|
|
3486
|
+
JoinColumn32({ name: "user_id" })
|
|
3430
3487
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3431
3488
|
__decorateClass([
|
|
3432
|
-
|
|
3433
|
-
|
|
3489
|
+
Column36({ name: "question_id", type: "integer" }),
|
|
3490
|
+
Index30()
|
|
3434
3491
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3435
3492
|
__decorateClass([
|
|
3436
|
-
|
|
3493
|
+
ManyToOne32(
|
|
3437
3494
|
() => AssessmetQuestion,
|
|
3438
3495
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3439
3496
|
),
|
|
3440
|
-
|
|
3497
|
+
JoinColumn32({ name: "question_id" })
|
|
3441
3498
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3442
3499
|
__decorateClass([
|
|
3443
|
-
|
|
3444
|
-
|
|
3500
|
+
Column36({ name: "selected_option_id", type: "integer" }),
|
|
3501
|
+
Index30()
|
|
3445
3502
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3446
3503
|
__decorateClass([
|
|
3447
|
-
|
|
3504
|
+
ManyToOne32(
|
|
3448
3505
|
() => AssessmetQuestionOption,
|
|
3449
3506
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3450
3507
|
),
|
|
3451
|
-
|
|
3508
|
+
JoinColumn32({ name: "selected_option_id" })
|
|
3452
3509
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3453
3510
|
__decorateClass([
|
|
3454
|
-
|
|
3511
|
+
Column36({
|
|
3455
3512
|
name: "selected_answer_type",
|
|
3456
3513
|
type: "enum",
|
|
3457
3514
|
enum: SelectedAnswerTypeEnum
|
|
3458
3515
|
})
|
|
3459
3516
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3460
3517
|
__decorateClass([
|
|
3461
|
-
|
|
3518
|
+
Column36({ name: "score", type: "float" })
|
|
3462
3519
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3463
3520
|
AssessmentAnswer = __decorateClass([
|
|
3464
|
-
|
|
3521
|
+
Entity35("assessment_answers")
|
|
3465
3522
|
], AssessmentAnswer);
|
|
3466
3523
|
|
|
3467
3524
|
// src/entities/company-skill.entity.ts
|
|
3468
|
-
import { Entity as
|
|
3525
|
+
import { Entity as Entity36, Column as Column37, Index as Index31, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3469
3526
|
var CompanySkill = class extends BaseEntity {
|
|
3470
3527
|
};
|
|
3471
3528
|
// individual index to find core skills by user
|
|
3472
3529
|
__decorateClass([
|
|
3473
|
-
|
|
3474
|
-
|
|
3530
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
3531
|
+
Index31()
|
|
3475
3532
|
], CompanySkill.prototype, "userId", 2);
|
|
3476
3533
|
__decorateClass([
|
|
3477
|
-
|
|
3478
|
-
|
|
3534
|
+
ManyToOne33(() => User, (user) => user.freelancerSkills),
|
|
3535
|
+
JoinColumn33({ name: "user_id" })
|
|
3479
3536
|
], CompanySkill.prototype, "user", 2);
|
|
3480
3537
|
__decorateClass([
|
|
3481
|
-
|
|
3538
|
+
Column37({ name: "skill_name", type: "varchar", nullable: true })
|
|
3482
3539
|
], CompanySkill.prototype, "skillName", 2);
|
|
3483
3540
|
CompanySkill = __decorateClass([
|
|
3484
|
-
|
|
3541
|
+
Entity36("company_skills")
|
|
3485
3542
|
], CompanySkill);
|
|
3486
3543
|
|
|
3487
3544
|
// src/entities/admin-user-role.entity.ts
|
|
3488
|
-
import { Entity as
|
|
3545
|
+
import { Entity as Entity40, Column as Column41, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3489
3546
|
|
|
3490
3547
|
// src/entities/admin-role.entity.ts
|
|
3491
|
-
import { Entity as
|
|
3548
|
+
import { Entity as Entity39, Column as Column40, Index as Index34, OneToMany as OneToMany13 } from "typeorm";
|
|
3492
3549
|
|
|
3493
3550
|
// src/entities/admin-role-permission.entity.ts
|
|
3494
|
-
import { Entity as
|
|
3551
|
+
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34 } from "typeorm";
|
|
3495
3552
|
|
|
3496
3553
|
// src/entities/admin-permission.entity.ts
|
|
3497
|
-
import { Entity as
|
|
3554
|
+
import { Entity as Entity37, Column as Column38, Index as Index32, OneToMany as OneToMany12 } from "typeorm";
|
|
3498
3555
|
var AdminPermission = class extends BaseEntity {
|
|
3499
3556
|
};
|
|
3500
3557
|
__decorateClass([
|
|
3501
|
-
|
|
3558
|
+
Column38({ name: "permission_name", type: "varchar", nullable: true })
|
|
3502
3559
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3503
3560
|
__decorateClass([
|
|
3504
|
-
|
|
3561
|
+
Column38({
|
|
3505
3562
|
name: "permission_slug",
|
|
3506
3563
|
type: "varchar",
|
|
3507
3564
|
unique: true,
|
|
3508
3565
|
nullable: true
|
|
3509
3566
|
}),
|
|
3510
|
-
|
|
3567
|
+
Index32()
|
|
3511
3568
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3512
3569
|
__decorateClass([
|
|
3513
|
-
|
|
3570
|
+
Column38({ name: "permission_description", type: "varchar", nullable: true })
|
|
3514
3571
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3515
3572
|
__decorateClass([
|
|
3516
|
-
|
|
3573
|
+
Column38({ name: "module", type: "varchar", nullable: true })
|
|
3517
3574
|
], AdminPermission.prototype, "module", 2);
|
|
3518
3575
|
__decorateClass([
|
|
3519
|
-
|
|
3576
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3520
3577
|
], AdminPermission.prototype, "isActive", 2);
|
|
3521
3578
|
__decorateClass([
|
|
3522
3579
|
OneToMany12(
|
|
@@ -3525,14 +3582,14 @@ __decorateClass([
|
|
|
3525
3582
|
)
|
|
3526
3583
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3527
3584
|
AdminPermission = __decorateClass([
|
|
3528
|
-
|
|
3585
|
+
Entity37("admin_permissions")
|
|
3529
3586
|
], AdminPermission);
|
|
3530
3587
|
|
|
3531
3588
|
// src/entities/admin-role-permission.entity.ts
|
|
3532
3589
|
var AdminRolePermission = class extends BaseEntity {
|
|
3533
3590
|
};
|
|
3534
3591
|
__decorateClass([
|
|
3535
|
-
|
|
3592
|
+
Column39({
|
|
3536
3593
|
name: "role_id",
|
|
3537
3594
|
type: "int",
|
|
3538
3595
|
nullable: true,
|
|
@@ -3540,11 +3597,11 @@ __decorateClass([
|
|
|
3540
3597
|
})
|
|
3541
3598
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3542
3599
|
__decorateClass([
|
|
3543
|
-
|
|
3544
|
-
|
|
3600
|
+
ManyToOne34(() => AdminRole),
|
|
3601
|
+
JoinColumn34({ name: "role_id" })
|
|
3545
3602
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3546
3603
|
__decorateClass([
|
|
3547
|
-
|
|
3604
|
+
Column39({
|
|
3548
3605
|
name: "permission_id",
|
|
3549
3606
|
type: "int",
|
|
3550
3607
|
nullable: true,
|
|
@@ -3552,28 +3609,28 @@ __decorateClass([
|
|
|
3552
3609
|
})
|
|
3553
3610
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3554
3611
|
__decorateClass([
|
|
3555
|
-
|
|
3556
|
-
|
|
3612
|
+
ManyToOne34(() => AdminPermission),
|
|
3613
|
+
JoinColumn34({ name: "permission_id" })
|
|
3557
3614
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3558
3615
|
AdminRolePermission = __decorateClass([
|
|
3559
|
-
|
|
3616
|
+
Entity38("admin_role_permissions")
|
|
3560
3617
|
], AdminRolePermission);
|
|
3561
3618
|
|
|
3562
3619
|
// src/entities/admin-role.entity.ts
|
|
3563
3620
|
var AdminRole = class extends BaseEntity {
|
|
3564
3621
|
};
|
|
3565
3622
|
__decorateClass([
|
|
3566
|
-
|
|
3623
|
+
Column40({ name: "role_name", type: "varchar", nullable: true })
|
|
3567
3624
|
], AdminRole.prototype, "roleName", 2);
|
|
3568
3625
|
__decorateClass([
|
|
3569
|
-
|
|
3570
|
-
|
|
3626
|
+
Column40({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3627
|
+
Index34()
|
|
3571
3628
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3572
3629
|
__decorateClass([
|
|
3573
|
-
|
|
3630
|
+
Column40({ name: "role_description", type: "varchar", nullable: true })
|
|
3574
3631
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3575
3632
|
__decorateClass([
|
|
3576
|
-
|
|
3633
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
3577
3634
|
], AdminRole.prototype, "isActive", 2);
|
|
3578
3635
|
__decorateClass([
|
|
3579
3636
|
OneToMany13(
|
|
@@ -3585,14 +3642,14 @@ __decorateClass([
|
|
|
3585
3642
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3586
3643
|
], AdminRole.prototype, "userRoles", 2);
|
|
3587
3644
|
AdminRole = __decorateClass([
|
|
3588
|
-
|
|
3645
|
+
Entity39("admin_roles")
|
|
3589
3646
|
], AdminRole);
|
|
3590
3647
|
|
|
3591
3648
|
// src/entities/admin-user-role.entity.ts
|
|
3592
3649
|
var AdminUserRole = class extends BaseEntity {
|
|
3593
3650
|
};
|
|
3594
3651
|
__decorateClass([
|
|
3595
|
-
|
|
3652
|
+
Column41({
|
|
3596
3653
|
name: "user_id",
|
|
3597
3654
|
type: "int",
|
|
3598
3655
|
nullable: true,
|
|
@@ -3600,11 +3657,11 @@ __decorateClass([
|
|
|
3600
3657
|
})
|
|
3601
3658
|
], AdminUserRole.prototype, "userId", 2);
|
|
3602
3659
|
__decorateClass([
|
|
3603
|
-
|
|
3604
|
-
|
|
3660
|
+
ManyToOne35(() => User),
|
|
3661
|
+
JoinColumn35({ name: "user_id" })
|
|
3605
3662
|
], AdminUserRole.prototype, "user", 2);
|
|
3606
3663
|
__decorateClass([
|
|
3607
|
-
|
|
3664
|
+
Column41({
|
|
3608
3665
|
name: "role_id",
|
|
3609
3666
|
type: "int",
|
|
3610
3667
|
nullable: true,
|
|
@@ -3612,225 +3669,42 @@ __decorateClass([
|
|
|
3612
3669
|
})
|
|
3613
3670
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3614
3671
|
__decorateClass([
|
|
3615
|
-
|
|
3616
|
-
|
|
3672
|
+
ManyToOne35(() => AdminRole),
|
|
3673
|
+
JoinColumn35({ name: "role_id" })
|
|
3617
3674
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3618
3675
|
AdminUserRole = __decorateClass([
|
|
3619
|
-
|
|
3676
|
+
Entity40("admin_user_roles")
|
|
3620
3677
|
], AdminUserRole);
|
|
3621
3678
|
|
|
3622
3679
|
// src/entities/freelancer-resume.entity.ts
|
|
3623
3680
|
import {
|
|
3624
|
-
Entity as
|
|
3625
|
-
Column as
|
|
3626
|
-
Index as
|
|
3627
|
-
ManyToOne as
|
|
3628
|
-
JoinColumn as
|
|
3681
|
+
Entity as Entity41,
|
|
3682
|
+
Column as Column42,
|
|
3683
|
+
Index as Index36,
|
|
3684
|
+
ManyToOne as ManyToOne36,
|
|
3685
|
+
JoinColumn as JoinColumn36
|
|
3629
3686
|
} from "typeorm";
|
|
3630
3687
|
var FreelancerResume = class extends BaseEntity {
|
|
3631
3688
|
};
|
|
3632
3689
|
// individual index to find profile by user
|
|
3633
3690
|
__decorateClass([
|
|
3634
|
-
|
|
3635
|
-
|
|
3691
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
3692
|
+
Index36()
|
|
3636
3693
|
], FreelancerResume.prototype, "userId", 2);
|
|
3637
3694
|
__decorateClass([
|
|
3638
|
-
|
|
3639
|
-
|
|
3695
|
+
ManyToOne36(() => User, (user) => user.freelancerProfile),
|
|
3696
|
+
JoinColumn36({ name: "user_id" })
|
|
3640
3697
|
], FreelancerResume.prototype, "user", 2);
|
|
3641
3698
|
__decorateClass([
|
|
3642
|
-
|
|
3699
|
+
Column42({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3643
3700
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3644
3701
|
__decorateClass([
|
|
3645
|
-
|
|
3702
|
+
Column42({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3646
3703
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3647
3704
|
FreelancerResume = __decorateClass([
|
|
3648
|
-
|
|
3705
|
+
Entity41("freelancer_resumes")
|
|
3649
3706
|
], FreelancerResume);
|
|
3650
3707
|
|
|
3651
|
-
// src/entities/calendly-meeting.entity.ts
|
|
3652
|
-
import {
|
|
3653
|
-
Entity as Entity42,
|
|
3654
|
-
Column as Column43,
|
|
3655
|
-
Index as Index36,
|
|
3656
|
-
Unique,
|
|
3657
|
-
ManyToOne as ManyToOne37,
|
|
3658
|
-
JoinColumn as JoinColumn37,
|
|
3659
|
-
OneToOne as OneToOne2
|
|
3660
|
-
} from "typeorm";
|
|
3661
|
-
|
|
3662
|
-
// src/entities/freelancer-f2f-interview.entity.ts
|
|
3663
|
-
import {
|
|
3664
|
-
Entity as Entity41,
|
|
3665
|
-
Column as Column42,
|
|
3666
|
-
ManyToOne as ManyToOne36,
|
|
3667
|
-
JoinColumn as JoinColumn36,
|
|
3668
|
-
OneToOne
|
|
3669
|
-
} from "typeorm";
|
|
3670
|
-
var FreelancerF2FInterview = class extends BaseEntity {
|
|
3671
|
-
};
|
|
3672
|
-
__decorateClass([
|
|
3673
|
-
OneToOne(() => CalendlyMeeting),
|
|
3674
|
-
JoinColumn36({ name: "calendly_meeting_id" })
|
|
3675
|
-
], FreelancerF2FInterview.prototype, "calendlyMeeting", 2);
|
|
3676
|
-
__decorateClass([
|
|
3677
|
-
Column42({ name: "calendly_meeting_id", type: "integer" })
|
|
3678
|
-
], FreelancerF2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3679
|
-
__decorateClass([
|
|
3680
|
-
ManyToOne36(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3681
|
-
JoinColumn36({ name: "client_id" })
|
|
3682
|
-
], FreelancerF2FInterview.prototype, "client", 2);
|
|
3683
|
-
__decorateClass([
|
|
3684
|
-
Column42({ name: "client_id", type: "integer", nullable: true })
|
|
3685
|
-
], FreelancerF2FInterview.prototype, "clientId", 2);
|
|
3686
|
-
__decorateClass([
|
|
3687
|
-
ManyToOne36(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3688
|
-
JoinColumn36({ name: "freelancer_id" })
|
|
3689
|
-
], FreelancerF2FInterview.prototype, "freelancer", 2);
|
|
3690
|
-
__decorateClass([
|
|
3691
|
-
Column42({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3692
|
-
], FreelancerF2FInterview.prototype, "freelancerId", 2);
|
|
3693
|
-
__decorateClass([
|
|
3694
|
-
Column42({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3695
|
-
], FreelancerF2FInterview.prototype, "meetingZoomLink", 2);
|
|
3696
|
-
__decorateClass([
|
|
3697
|
-
Column42({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3698
|
-
], FreelancerF2FInterview.prototype, "meetingId", 2);
|
|
3699
|
-
__decorateClass([
|
|
3700
|
-
Column42({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3701
|
-
], FreelancerF2FInterview.prototype, "meetingPasscode", 2);
|
|
3702
|
-
__decorateClass([
|
|
3703
|
-
Column42({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3704
|
-
], FreelancerF2FInterview.prototype, "rescheduleUrl", 2);
|
|
3705
|
-
__decorateClass([
|
|
3706
|
-
Column42({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3707
|
-
], FreelancerF2FInterview.prototype, "isRescheduled", 2);
|
|
3708
|
-
__decorateClass([
|
|
3709
|
-
Column42({
|
|
3710
|
-
name: "status",
|
|
3711
|
-
type: "enum",
|
|
3712
|
-
enum: CalendlyMeetingStatus,
|
|
3713
|
-
default: "PENDING" /* PENDING */
|
|
3714
|
-
})
|
|
3715
|
-
], FreelancerF2FInterview.prototype, "status", 2);
|
|
3716
|
-
__decorateClass([
|
|
3717
|
-
Column42({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3718
|
-
], FreelancerF2FInterview.prototype, "cancelledAt", 2);
|
|
3719
|
-
__decorateClass([
|
|
3720
|
-
Column42({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3721
|
-
], FreelancerF2FInterview.prototype, "cancelReason", 2);
|
|
3722
|
-
__decorateClass([
|
|
3723
|
-
Column42({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3724
|
-
], FreelancerF2FInterview.prototype, "rescheduledAt", 2);
|
|
3725
|
-
__decorateClass([
|
|
3726
|
-
Column42({ name: "is_completed", type: "boolean", default: false })
|
|
3727
|
-
], FreelancerF2FInterview.prototype, "isCompleted", 2);
|
|
3728
|
-
__decorateClass([
|
|
3729
|
-
Column42({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3730
|
-
], FreelancerF2FInterview.prototype, "meetingStartTime", 2);
|
|
3731
|
-
__decorateClass([
|
|
3732
|
-
Column42({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3733
|
-
], FreelancerF2FInterview.prototype, "meetingEndTime", 2);
|
|
3734
|
-
FreelancerF2FInterview = __decorateClass([
|
|
3735
|
-
Entity41("freelancer_f2f_interviews")
|
|
3736
|
-
], FreelancerF2FInterview);
|
|
3737
|
-
|
|
3738
|
-
// src/entities/calendly-meeting.entity.ts
|
|
3739
|
-
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3740
|
-
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3741
|
-
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3742
|
-
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3743
|
-
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3744
|
-
return CalendlyMeetingStatus2;
|
|
3745
|
-
})(CalendlyMeetingStatus || {});
|
|
3746
|
-
var CalendlyMeeting = class extends BaseEntity {
|
|
3747
|
-
};
|
|
3748
|
-
__decorateClass([
|
|
3749
|
-
OneToOne2(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.calendlyMeeting)
|
|
3750
|
-
], CalendlyMeeting.prototype, "freelancerF2FInterview", 2);
|
|
3751
|
-
__decorateClass([
|
|
3752
|
-
ManyToOne37(() => User, (user) => user.calendlyMeetings, { nullable: true }),
|
|
3753
|
-
JoinColumn37({ name: "user_id" })
|
|
3754
|
-
], CalendlyMeeting.prototype, "user", 2);
|
|
3755
|
-
__decorateClass([
|
|
3756
|
-
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
3757
|
-
Index36()
|
|
3758
|
-
], CalendlyMeeting.prototype, "userId", 2);
|
|
3759
|
-
__decorateClass([
|
|
3760
|
-
Column43({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3761
|
-
Index36()
|
|
3762
|
-
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3763
|
-
__decorateClass([
|
|
3764
|
-
Column43({ name: "scheduled_event_id", type: "varchar", nullable: true })
|
|
3765
|
-
], CalendlyMeeting.prototype, "scheduledEventId", 2);
|
|
3766
|
-
__decorateClass([
|
|
3767
|
-
Column43({ name: "event_name", type: "varchar", nullable: false })
|
|
3768
|
-
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3769
|
-
__decorateClass([
|
|
3770
|
-
Column43({ name: "event_location", type: "varchar", nullable: true })
|
|
3771
|
-
], CalendlyMeeting.prototype, "eventLocation", 2);
|
|
3772
|
-
__decorateClass([
|
|
3773
|
-
Column43({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3774
|
-
Index36()
|
|
3775
|
-
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3776
|
-
__decorateClass([
|
|
3777
|
-
Column43({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3778
|
-
], CalendlyMeeting.prototype, "inviteeName", 2);
|
|
3779
|
-
__decorateClass([
|
|
3780
|
-
Column43({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3781
|
-
Index36()
|
|
3782
|
-
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3783
|
-
__decorateClass([
|
|
3784
|
-
Column43({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3785
|
-
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3786
|
-
__decorateClass([
|
|
3787
|
-
Column43({ name: "timezone", type: "varchar", default: "UTC" })
|
|
3788
|
-
], CalendlyMeeting.prototype, "timezone", 2);
|
|
3789
|
-
__decorateClass([
|
|
3790
|
-
Column43({
|
|
3791
|
-
name: "status",
|
|
3792
|
-
type: "enum",
|
|
3793
|
-
enum: CalendlyMeetingStatus,
|
|
3794
|
-
default: "PENDING" /* PENDING */
|
|
3795
|
-
}),
|
|
3796
|
-
Index36()
|
|
3797
|
-
], CalendlyMeeting.prototype, "status", 2);
|
|
3798
|
-
__decorateClass([
|
|
3799
|
-
Column43({ name: "active", type: "boolean", default: true })
|
|
3800
|
-
], CalendlyMeeting.prototype, "active", 2);
|
|
3801
|
-
__decorateClass([
|
|
3802
|
-
Column43({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3803
|
-
], CalendlyMeeting.prototype, "cancelledAt", 2);
|
|
3804
|
-
__decorateClass([
|
|
3805
|
-
Column43({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3806
|
-
], CalendlyMeeting.prototype, "cancelReason", 2);
|
|
3807
|
-
__decorateClass([
|
|
3808
|
-
Column43({ name: "notes", type: "text", nullable: true })
|
|
3809
|
-
], CalendlyMeeting.prototype, "notes", 2);
|
|
3810
|
-
__decorateClass([
|
|
3811
|
-
Column43({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3812
|
-
], CalendlyMeeting.prototype, "isRescheduled", 2);
|
|
3813
|
-
__decorateClass([
|
|
3814
|
-
Column43({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3815
|
-
], CalendlyMeeting.prototype, "rescheduleUrl", 2);
|
|
3816
|
-
__decorateClass([
|
|
3817
|
-
Column43({ name: "rescheduled_from_id", type: "uuid", nullable: true })
|
|
3818
|
-
], CalendlyMeeting.prototype, "rescheduledFromId", 2);
|
|
3819
|
-
__decorateClass([
|
|
3820
|
-
Column43({ name: "questions_and_answers", type: "jsonb", nullable: true, default: "[]" })
|
|
3821
|
-
], CalendlyMeeting.prototype, "questionsAndAnswers", 2);
|
|
3822
|
-
__decorateClass([
|
|
3823
|
-
Column43({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3824
|
-
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3825
|
-
__decorateClass([
|
|
3826
|
-
Column43({ name: "is_from_webhook", type: "boolean", default: false })
|
|
3827
|
-
], CalendlyMeeting.prototype, "isFromWebhook", 2);
|
|
3828
|
-
CalendlyMeeting = __decorateClass([
|
|
3829
|
-
Entity42("calendly_meetings"),
|
|
3830
|
-
Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3831
|
-
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3832
|
-
], CalendlyMeeting);
|
|
3833
|
-
|
|
3834
3708
|
// src/entities/user.entity.ts
|
|
3835
3709
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3836
3710
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3854,53 +3728,59 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3854
3728
|
return Provider2;
|
|
3855
3729
|
})(Provider || {});
|
|
3856
3730
|
var User = class extends BaseEntity {
|
|
3731
|
+
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3732
|
+
// calendlyMeetings: CalendlyMeeting[];
|
|
3733
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3734
|
+
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3735
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3736
|
+
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3857
3737
|
};
|
|
3858
3738
|
__decorateClass([
|
|
3859
|
-
|
|
3739
|
+
Column43({ name: "unique_id", type: "varchar", unique: true })
|
|
3860
3740
|
], User.prototype, "uniqueId", 2);
|
|
3861
3741
|
__decorateClass([
|
|
3862
|
-
|
|
3742
|
+
Column43({ name: "parent_id", type: "integer", nullable: true }),
|
|
3863
3743
|
Index37()
|
|
3864
3744
|
], User.prototype, "parentId", 2);
|
|
3865
3745
|
__decorateClass([
|
|
3866
|
-
|
|
3867
|
-
|
|
3746
|
+
ManyToOne37(() => User, (user) => user.children, { nullable: true }),
|
|
3747
|
+
JoinColumn37({ name: "parent_id" })
|
|
3868
3748
|
], User.prototype, "parent", 2);
|
|
3869
3749
|
__decorateClass([
|
|
3870
3750
|
OneToMany14(() => User, (user) => user.parent)
|
|
3871
3751
|
], User.prototype, "children", 2);
|
|
3872
3752
|
__decorateClass([
|
|
3873
|
-
|
|
3753
|
+
Column43({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3874
3754
|
], User.prototype, "username", 2);
|
|
3875
3755
|
__decorateClass([
|
|
3876
|
-
|
|
3756
|
+
Column43({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3877
3757
|
], User.prototype, "firstName", 2);
|
|
3878
3758
|
__decorateClass([
|
|
3879
|
-
|
|
3759
|
+
Column43({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3880
3760
|
], User.prototype, "lastName", 2);
|
|
3881
3761
|
__decorateClass([
|
|
3882
|
-
|
|
3762
|
+
Column43({ name: "date_of_birth", type: "date", nullable: true })
|
|
3883
3763
|
], User.prototype, "dateOfBirth", 2);
|
|
3884
3764
|
__decorateClass([
|
|
3885
|
-
|
|
3765
|
+
Column43({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3886
3766
|
], User.prototype, "gender", 2);
|
|
3887
3767
|
__decorateClass([
|
|
3888
|
-
|
|
3768
|
+
Column43({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3889
3769
|
], User.prototype, "profilePictureUrl", 2);
|
|
3890
3770
|
__decorateClass([
|
|
3891
|
-
|
|
3771
|
+
Column43({ name: "email", type: "varchar", unique: true })
|
|
3892
3772
|
], User.prototype, "email", 2);
|
|
3893
3773
|
__decorateClass([
|
|
3894
|
-
|
|
3774
|
+
Column43({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3895
3775
|
], User.prototype, "mobileCode", 2);
|
|
3896
3776
|
__decorateClass([
|
|
3897
|
-
|
|
3777
|
+
Column43({ name: "mobile", type: "varchar", nullable: true })
|
|
3898
3778
|
], User.prototype, "mobile", 2);
|
|
3899
3779
|
__decorateClass([
|
|
3900
|
-
|
|
3780
|
+
Column43({ name: "password", type: "varchar", nullable: true })
|
|
3901
3781
|
], User.prototype, "password", 2);
|
|
3902
3782
|
__decorateClass([
|
|
3903
|
-
|
|
3783
|
+
Column43({
|
|
3904
3784
|
name: "account_type",
|
|
3905
3785
|
type: "enum",
|
|
3906
3786
|
enum: AccountType,
|
|
@@ -3908,7 +3788,7 @@ __decorateClass([
|
|
|
3908
3788
|
})
|
|
3909
3789
|
], User.prototype, "accountType", 2);
|
|
3910
3790
|
__decorateClass([
|
|
3911
|
-
|
|
3791
|
+
Column43({
|
|
3912
3792
|
name: "account_status",
|
|
3913
3793
|
type: "enum",
|
|
3914
3794
|
enum: AccountStatus,
|
|
@@ -3916,29 +3796,29 @@ __decorateClass([
|
|
|
3916
3796
|
})
|
|
3917
3797
|
], User.prototype, "accountStatus", 2);
|
|
3918
3798
|
__decorateClass([
|
|
3919
|
-
|
|
3799
|
+
Column43({ name: "is_email_verified", type: "boolean", default: false })
|
|
3920
3800
|
], User.prototype, "isEmailVerified", 2);
|
|
3921
3801
|
__decorateClass([
|
|
3922
|
-
|
|
3802
|
+
Column43({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3923
3803
|
], User.prototype, "isMobileVerified", 2);
|
|
3924
3804
|
__decorateClass([
|
|
3925
|
-
|
|
3805
|
+
Column43({ name: "is_social", type: "boolean", default: false })
|
|
3926
3806
|
], User.prototype, "isSocial", 2);
|
|
3927
3807
|
__decorateClass([
|
|
3928
|
-
|
|
3808
|
+
Column43({
|
|
3929
3809
|
name: "last_login_at",
|
|
3930
3810
|
type: "timestamp with time zone",
|
|
3931
3811
|
nullable: true
|
|
3932
3812
|
})
|
|
3933
3813
|
], User.prototype, "lastLoginAt", 2);
|
|
3934
3814
|
__decorateClass([
|
|
3935
|
-
|
|
3815
|
+
Column43({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3936
3816
|
], User.prototype, "lastLoginIp", 2);
|
|
3937
3817
|
__decorateClass([
|
|
3938
|
-
|
|
3818
|
+
Column43({ name: "reset_token", type: "varchar", nullable: true })
|
|
3939
3819
|
], User.prototype, "resetToken", 2);
|
|
3940
3820
|
__decorateClass([
|
|
3941
|
-
|
|
3821
|
+
Column43({
|
|
3942
3822
|
name: "reset_token_expire_at",
|
|
3943
3823
|
type: "timestamp with time zone",
|
|
3944
3824
|
nullable: true
|
|
@@ -3948,7 +3828,7 @@ __decorateClass([
|
|
|
3948
3828
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3949
3829
|
], User.prototype, "refreshTokens", 2);
|
|
3950
3830
|
__decorateClass([
|
|
3951
|
-
|
|
3831
|
+
Column43({
|
|
3952
3832
|
name: "provider",
|
|
3953
3833
|
type: "enum",
|
|
3954
3834
|
enum: Provider,
|
|
@@ -3957,16 +3837,16 @@ __decorateClass([
|
|
|
3957
3837
|
})
|
|
3958
3838
|
], User.prototype, "provider", 2);
|
|
3959
3839
|
__decorateClass([
|
|
3960
|
-
|
|
3840
|
+
Column43({ name: "provider_token", type: "varchar", nullable: true })
|
|
3961
3841
|
], User.prototype, "providerToken", 2);
|
|
3962
3842
|
__decorateClass([
|
|
3963
|
-
|
|
3843
|
+
Column43({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3964
3844
|
], User.prototype, "linkedInId", 2);
|
|
3965
3845
|
__decorateClass([
|
|
3966
|
-
|
|
3846
|
+
Column43({ name: "google_id", type: "varchar", nullable: true })
|
|
3967
3847
|
], User.prototype, "googleId", 2);
|
|
3968
3848
|
__decorateClass([
|
|
3969
|
-
|
|
3849
|
+
Column43({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3970
3850
|
], User.prototype, "gitLabsId", 2);
|
|
3971
3851
|
__decorateClass([
|
|
3972
3852
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3975,7 +3855,7 @@ __decorateClass([
|
|
|
3975
3855
|
OneToMany14(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3976
3856
|
], User.prototype, "senseloafLogs", 2);
|
|
3977
3857
|
__decorateClass([
|
|
3978
|
-
|
|
3858
|
+
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3979
3859
|
], User.prototype, "companyProfile", 2);
|
|
3980
3860
|
__decorateClass([
|
|
3981
3861
|
OneToMany14(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -3984,10 +3864,13 @@ __decorateClass([
|
|
|
3984
3864
|
OneToMany14(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3985
3865
|
], User.prototype, "companyMemberRoles", 2);
|
|
3986
3866
|
__decorateClass([
|
|
3987
|
-
|
|
3867
|
+
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
3868
|
+
], User.prototype, "companyAiInterview", 2);
|
|
3869
|
+
__decorateClass([
|
|
3870
|
+
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3988
3871
|
], User.prototype, "freelancerProfile", 2);
|
|
3989
3872
|
__decorateClass([
|
|
3990
|
-
|
|
3873
|
+
OneToOne(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3991
3874
|
], User.prototype, "freelancerResume", 2);
|
|
3992
3875
|
__decorateClass([
|
|
3993
3876
|
OneToMany14(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
@@ -4017,8 +3900,11 @@ __decorateClass([
|
|
|
4017
3900
|
OneToMany14(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4018
3901
|
], User.prototype, "freelancerFramework", 2);
|
|
4019
3902
|
__decorateClass([
|
|
4020
|
-
|
|
3903
|
+
OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4021
3904
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3905
|
+
__decorateClass([
|
|
3906
|
+
OneToMany14(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
3907
|
+
], User.prototype, "freelancerAiInterview", 2);
|
|
4022
3908
|
__decorateClass([
|
|
4023
3909
|
OneToMany14(() => Job, (job) => job.user)
|
|
4024
3910
|
], User.prototype, "jobs", 2);
|
|
@@ -4043,17 +3929,8 @@ __decorateClass([
|
|
|
4043
3929
|
__decorateClass([
|
|
4044
3930
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4045
3931
|
], User.prototype, "adminUserRoles", 2);
|
|
4046
|
-
__decorateClass([
|
|
4047
|
-
OneToMany14(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
4048
|
-
], User.prototype, "calendlyMeetings", 2);
|
|
4049
|
-
__decorateClass([
|
|
4050
|
-
OneToMany14(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
4051
|
-
], User.prototype, "clientF2FInterviews", 2);
|
|
4052
|
-
__decorateClass([
|
|
4053
|
-
OneToMany14(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
4054
|
-
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4055
3932
|
User = __decorateClass([
|
|
4056
|
-
|
|
3933
|
+
Entity42("users")
|
|
4057
3934
|
], User);
|
|
4058
3935
|
|
|
4059
3936
|
// src/entities/rating.entity.ts
|
|
@@ -4065,36 +3942,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4065
3942
|
var Rating = class extends BaseEntity {
|
|
4066
3943
|
};
|
|
4067
3944
|
__decorateClass([
|
|
4068
|
-
|
|
3945
|
+
Column44({ name: "reviewer_id", type: "integer" }),
|
|
4069
3946
|
Index38()
|
|
4070
3947
|
], Rating.prototype, "reviewer_id", 2);
|
|
4071
3948
|
__decorateClass([
|
|
4072
|
-
|
|
4073
|
-
|
|
3949
|
+
ManyToOne38(() => User, { onDelete: "CASCADE" }),
|
|
3950
|
+
JoinColumn38({ name: "reviewer_id" })
|
|
4074
3951
|
], Rating.prototype, "reviewer", 2);
|
|
4075
3952
|
__decorateClass([
|
|
4076
|
-
|
|
3953
|
+
Column44({ name: "reviewee_id", type: "integer" }),
|
|
4077
3954
|
Index38()
|
|
4078
3955
|
], Rating.prototype, "reviewee_id", 2);
|
|
4079
3956
|
__decorateClass([
|
|
4080
|
-
|
|
4081
|
-
|
|
3957
|
+
ManyToOne38(() => User, { onDelete: "CASCADE" }),
|
|
3958
|
+
JoinColumn38({ name: "reviewee_id" })
|
|
4082
3959
|
], Rating.prototype, "reviewee", 2);
|
|
4083
3960
|
__decorateClass([
|
|
4084
|
-
|
|
3961
|
+
Column44({
|
|
4085
3962
|
type: "enum",
|
|
4086
3963
|
enum: RatingTypeEnum,
|
|
4087
3964
|
nullable: true
|
|
4088
3965
|
})
|
|
4089
3966
|
], Rating.prototype, "ratingType", 2);
|
|
4090
3967
|
__decorateClass([
|
|
4091
|
-
|
|
3968
|
+
Column44({ type: "integer", nullable: true })
|
|
4092
3969
|
], Rating.prototype, "rating", 2);
|
|
4093
3970
|
__decorateClass([
|
|
4094
|
-
|
|
3971
|
+
Column44({ type: "text", nullable: true })
|
|
4095
3972
|
], Rating.prototype, "review", 2);
|
|
4096
3973
|
Rating = __decorateClass([
|
|
4097
|
-
|
|
3974
|
+
Entity43("ratings")
|
|
4098
3975
|
], Rating);
|
|
4099
3976
|
|
|
4100
3977
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5527,11 +5404,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5527
5404
|
};
|
|
5528
5405
|
|
|
5529
5406
|
// src/entities/sequence-generator.entity.ts
|
|
5530
|
-
import { Entity as
|
|
5407
|
+
import { Entity as Entity44, Column as Column45 } from "typeorm";
|
|
5531
5408
|
var SequenceGenerator = class extends BaseEntity {
|
|
5532
5409
|
};
|
|
5533
5410
|
__decorateClass([
|
|
5534
|
-
|
|
5411
|
+
Column45({
|
|
5535
5412
|
name: "module",
|
|
5536
5413
|
type: "varchar",
|
|
5537
5414
|
length: 50,
|
|
@@ -5540,7 +5417,7 @@ __decorateClass([
|
|
|
5540
5417
|
})
|
|
5541
5418
|
], SequenceGenerator.prototype, "module", 2);
|
|
5542
5419
|
__decorateClass([
|
|
5543
|
-
|
|
5420
|
+
Column45({
|
|
5544
5421
|
name: "prefix",
|
|
5545
5422
|
type: "varchar",
|
|
5546
5423
|
length: 10,
|
|
@@ -5549,7 +5426,7 @@ __decorateClass([
|
|
|
5549
5426
|
})
|
|
5550
5427
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5551
5428
|
__decorateClass([
|
|
5552
|
-
|
|
5429
|
+
Column45({
|
|
5553
5430
|
name: "last_sequence",
|
|
5554
5431
|
type: "int",
|
|
5555
5432
|
nullable: false,
|
|
@@ -5557,7 +5434,7 @@ __decorateClass([
|
|
|
5557
5434
|
})
|
|
5558
5435
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5559
5436
|
__decorateClass([
|
|
5560
|
-
|
|
5437
|
+
Column45({
|
|
5561
5438
|
name: "year",
|
|
5562
5439
|
type: "int",
|
|
5563
5440
|
nullable: true,
|
|
@@ -5565,11 +5442,11 @@ __decorateClass([
|
|
|
5565
5442
|
})
|
|
5566
5443
|
], SequenceGenerator.prototype, "year", 2);
|
|
5567
5444
|
SequenceGenerator = __decorateClass([
|
|
5568
|
-
|
|
5445
|
+
Entity44("sequence_generators")
|
|
5569
5446
|
], SequenceGenerator);
|
|
5570
5447
|
|
|
5571
5448
|
// src/entities/question.entity.ts
|
|
5572
|
-
import { Entity as
|
|
5449
|
+
import { Entity as Entity45, Column as Column46 } from "typeorm";
|
|
5573
5450
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5574
5451
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5575
5452
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5578,16 +5455,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5578
5455
|
var Question = class extends BaseEntity {
|
|
5579
5456
|
};
|
|
5580
5457
|
__decorateClass([
|
|
5581
|
-
|
|
5458
|
+
Column46({ name: "question", type: "varchar" })
|
|
5582
5459
|
], Question.prototype, "question", 2);
|
|
5583
5460
|
__decorateClass([
|
|
5584
|
-
|
|
5461
|
+
Column46({ name: "hint", type: "varchar", nullable: true })
|
|
5585
5462
|
], Question.prototype, "hint", 2);
|
|
5586
5463
|
__decorateClass([
|
|
5587
|
-
|
|
5464
|
+
Column46({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5588
5465
|
], Question.prototype, "slug", 2);
|
|
5589
5466
|
__decorateClass([
|
|
5590
|
-
|
|
5467
|
+
Column46({
|
|
5591
5468
|
name: "question_for",
|
|
5592
5469
|
type: "enum",
|
|
5593
5470
|
enum: QuestionFor,
|
|
@@ -5595,261 +5472,119 @@ __decorateClass([
|
|
|
5595
5472
|
})
|
|
5596
5473
|
], Question.prototype, "questionFor", 2);
|
|
5597
5474
|
__decorateClass([
|
|
5598
|
-
|
|
5475
|
+
Column46({ name: "type", type: "varchar", nullable: true })
|
|
5599
5476
|
], Question.prototype, "type", 2);
|
|
5600
5477
|
__decorateClass([
|
|
5601
|
-
|
|
5478
|
+
Column46({ name: "options", type: "jsonb", nullable: true })
|
|
5602
5479
|
], Question.prototype, "options", 2);
|
|
5603
5480
|
__decorateClass([
|
|
5604
|
-
|
|
5481
|
+
Column46({ name: "is_active", type: "boolean", default: false })
|
|
5605
5482
|
], Question.prototype, "isActive", 2);
|
|
5606
5483
|
Question = __decorateClass([
|
|
5607
|
-
|
|
5484
|
+
Entity45("questions")
|
|
5608
5485
|
], Question);
|
|
5609
5486
|
|
|
5610
5487
|
// src/entities/skill.entity.ts
|
|
5611
|
-
import { Entity as
|
|
5488
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
5612
5489
|
var Skill = class extends BaseEntity {
|
|
5613
5490
|
};
|
|
5614
5491
|
__decorateClass([
|
|
5615
|
-
|
|
5492
|
+
Column47({ name: "name", type: "varchar", nullable: true })
|
|
5616
5493
|
], Skill.prototype, "name", 2);
|
|
5617
5494
|
__decorateClass([
|
|
5618
|
-
|
|
5495
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5619
5496
|
], Skill.prototype, "slug", 2);
|
|
5620
5497
|
__decorateClass([
|
|
5621
|
-
|
|
5498
|
+
Column47({ name: "is_active", type: "boolean", default: false })
|
|
5622
5499
|
], Skill.prototype, "isActive", 2);
|
|
5623
5500
|
Skill = __decorateClass([
|
|
5624
|
-
|
|
5501
|
+
Entity46("skills")
|
|
5625
5502
|
], Skill);
|
|
5626
5503
|
|
|
5627
5504
|
// src/entities/job-role.entity.ts
|
|
5628
|
-
import { Entity as
|
|
5505
|
+
import { Entity as Entity47, Column as Column48 } from "typeorm";
|
|
5629
5506
|
var JobRoles = class extends BaseEntity {
|
|
5630
5507
|
};
|
|
5631
5508
|
__decorateClass([
|
|
5632
|
-
|
|
5509
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5633
5510
|
], JobRoles.prototype, "slug", 2);
|
|
5634
5511
|
__decorateClass([
|
|
5635
|
-
|
|
5512
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
5636
5513
|
], JobRoles.prototype, "name", 2);
|
|
5637
5514
|
__decorateClass([
|
|
5638
|
-
|
|
5515
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
5639
5516
|
], JobRoles.prototype, "isActive", 2);
|
|
5640
5517
|
JobRoles = __decorateClass([
|
|
5641
|
-
|
|
5518
|
+
Entity47("job_roles")
|
|
5642
5519
|
], JobRoles);
|
|
5643
5520
|
|
|
5644
|
-
// src/entities/ai-interview.entity.ts
|
|
5645
|
-
import { Entity as Entity49, Column as Column50, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40, Index as Index39 } from "typeorm";
|
|
5646
|
-
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5647
|
-
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5648
|
-
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5649
|
-
AIInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
5650
|
-
AIInterviewStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
5651
|
-
AIInterviewStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
5652
|
-
return AIInterviewStatusEnum2;
|
|
5653
|
-
})(AIInterviewStatusEnum || {});
|
|
5654
|
-
var AIInterviewTypeEnum = /* @__PURE__ */ ((AIInterviewTypeEnum2) => {
|
|
5655
|
-
AIInterviewTypeEnum2["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
5656
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE";
|
|
5657
|
-
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE";
|
|
5658
|
-
AIInterviewTypeEnum2["CODING_EXERCISE"] = "CODING_EXERCISE";
|
|
5659
|
-
return AIInterviewTypeEnum2;
|
|
5660
|
-
})(AIInterviewTypeEnum || {});
|
|
5661
|
-
var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
5662
|
-
AIInterviewResultEnum2["PASSED"] = "PASSED";
|
|
5663
|
-
AIInterviewResultEnum2["FAILED"] = "FAILED";
|
|
5664
|
-
AIInterviewResultEnum2["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
5665
|
-
AIInterviewResultEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
5666
|
-
return AIInterviewResultEnum2;
|
|
5667
|
-
})(AIInterviewResultEnum || {});
|
|
5668
|
-
var AIInterview = class extends BaseEntity {
|
|
5669
|
-
};
|
|
5670
|
-
__decorateClass([
|
|
5671
|
-
Column50({
|
|
5672
|
-
name: "interview_id",
|
|
5673
|
-
type: "integer",
|
|
5674
|
-
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5675
|
-
}),
|
|
5676
|
-
Index39()
|
|
5677
|
-
], AIInterview.prototype, "interviewId", 2);
|
|
5678
|
-
__decorateClass([
|
|
5679
|
-
Column50({
|
|
5680
|
-
name: "interview_invite_id",
|
|
5681
|
-
type: "integer",
|
|
5682
|
-
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5683
|
-
})
|
|
5684
|
-
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5685
|
-
__decorateClass([
|
|
5686
|
-
Column50({
|
|
5687
|
-
name: "candidate_id",
|
|
5688
|
-
type: "integer",
|
|
5689
|
-
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5690
|
-
}),
|
|
5691
|
-
Index39()
|
|
5692
|
-
], AIInterview.prototype, "candidateId", 2);
|
|
5693
|
-
__decorateClass([
|
|
5694
|
-
Column50({
|
|
5695
|
-
name: "job_id",
|
|
5696
|
-
type: "integer",
|
|
5697
|
-
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5698
|
-
})
|
|
5699
|
-
], AIInterview.prototype, "jobId", 2);
|
|
5700
|
-
__decorateClass([
|
|
5701
|
-
Column50({
|
|
5702
|
-
name: "invite_token",
|
|
5703
|
-
type: "varchar",
|
|
5704
|
-
unique: true,
|
|
5705
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5706
|
-
nullable: true
|
|
5707
|
-
})
|
|
5708
|
-
], AIInterview.prototype, "inviteToken", 2);
|
|
5709
|
-
__decorateClass([
|
|
5710
|
-
Column50({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5711
|
-
], AIInterview.prototype, "interviewType", 2);
|
|
5712
|
-
__decorateClass([
|
|
5713
|
-
Column50({
|
|
5714
|
-
name: "interview_name",
|
|
5715
|
-
type: "varchar",
|
|
5716
|
-
comment: "Name of the interview"
|
|
5717
|
-
})
|
|
5718
|
-
], AIInterview.prototype, "interviewName", 2);
|
|
5719
|
-
__decorateClass([
|
|
5720
|
-
Column50({
|
|
5721
|
-
name: "job_title",
|
|
5722
|
-
type: "varchar",
|
|
5723
|
-
comment: "Name of the job title for that the AI interview was conducted"
|
|
5724
|
-
})
|
|
5725
|
-
], AIInterview.prototype, "jobTitle", 2);
|
|
5726
|
-
__decorateClass([
|
|
5727
|
-
Column50({
|
|
5728
|
-
type: "enum",
|
|
5729
|
-
enum: AIInterviewStatusEnum,
|
|
5730
|
-
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5731
|
-
})
|
|
5732
|
-
], AIInterview.prototype, "status", 2);
|
|
5733
|
-
__decorateClass([
|
|
5734
|
-
Column50({
|
|
5735
|
-
name: "started_at",
|
|
5736
|
-
type: "timestamp with time zone",
|
|
5737
|
-
comment: "Timestamp when the interview was started"
|
|
5738
|
-
})
|
|
5739
|
-
], AIInterview.prototype, "startedAt", 2);
|
|
5740
|
-
__decorateClass([
|
|
5741
|
-
Column50({
|
|
5742
|
-
name: "completed_at",
|
|
5743
|
-
type: "timestamp with time zone",
|
|
5744
|
-
nullable: true,
|
|
5745
|
-
comment: "Timestamp when the interview was completed"
|
|
5746
|
-
})
|
|
5747
|
-
], AIInterview.prototype, "completedAt", 2);
|
|
5748
|
-
__decorateClass([
|
|
5749
|
-
Column50({
|
|
5750
|
-
name: "duration_minutes",
|
|
5751
|
-
type: "integer",
|
|
5752
|
-
nullable: true,
|
|
5753
|
-
comment: "Duration of the AI interview"
|
|
5754
|
-
})
|
|
5755
|
-
], AIInterview.prototype, "durationMinutes", 2);
|
|
5756
|
-
__decorateClass([
|
|
5757
|
-
Column50({
|
|
5758
|
-
name: "overall_score",
|
|
5759
|
-
type: "decimal",
|
|
5760
|
-
precision: 5,
|
|
5761
|
-
scale: 2,
|
|
5762
|
-
nullable: true,
|
|
5763
|
-
comment: "Overall score of the AI interview"
|
|
5764
|
-
})
|
|
5765
|
-
], AIInterview.prototype, "overallScore", 2);
|
|
5766
|
-
__decorateClass([
|
|
5767
|
-
ManyToOne40(() => Interview, { onDelete: "CASCADE" }),
|
|
5768
|
-
JoinColumn40({ name: "interview_id" })
|
|
5769
|
-
], AIInterview.prototype, "interview", 2);
|
|
5770
|
-
__decorateClass([
|
|
5771
|
-
ManyToOne40(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5772
|
-
JoinColumn40({ name: "interview_invite_id" })
|
|
5773
|
-
], AIInterview.prototype, "interviewInvite", 2);
|
|
5774
|
-
__decorateClass([
|
|
5775
|
-
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
5776
|
-
JoinColumn40({ name: "candidate_id" })
|
|
5777
|
-
], AIInterview.prototype, "candidate", 2);
|
|
5778
|
-
__decorateClass([
|
|
5779
|
-
ManyToOne40(() => Job, { onDelete: "CASCADE" }),
|
|
5780
|
-
JoinColumn40({ name: "job_id" })
|
|
5781
|
-
], AIInterview.prototype, "job", 2);
|
|
5782
|
-
AIInterview = __decorateClass([
|
|
5783
|
-
Entity49("ai_interviews")
|
|
5784
|
-
], AIInterview);
|
|
5785
|
-
|
|
5786
5521
|
// src/entities/plan.entity.ts
|
|
5787
|
-
import { Entity as
|
|
5522
|
+
import { Entity as Entity49, Column as Column50, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5788
5523
|
|
|
5789
5524
|
// src/entities/feature.entity.ts
|
|
5790
|
-
import { Entity as
|
|
5525
|
+
import { Entity as Entity48, Column as Column49, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5791
5526
|
var Feature = class extends BaseEntity {
|
|
5792
5527
|
};
|
|
5793
5528
|
__decorateClass([
|
|
5794
|
-
|
|
5529
|
+
Column49({ name: "name", type: "varchar", unique: true })
|
|
5795
5530
|
], Feature.prototype, "name", 2);
|
|
5796
5531
|
__decorateClass([
|
|
5797
5532
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5798
5533
|
], Feature.prototype, "plans", 2);
|
|
5799
5534
|
Feature = __decorateClass([
|
|
5800
|
-
|
|
5535
|
+
Entity48("features")
|
|
5801
5536
|
], Feature);
|
|
5802
5537
|
|
|
5803
5538
|
// src/entities/plan.entity.ts
|
|
5804
5539
|
var Plan = class extends BaseEntity {
|
|
5805
5540
|
};
|
|
5806
5541
|
__decorateClass([
|
|
5807
|
-
|
|
5542
|
+
Column50({ name: "name", type: "varchar", unique: true })
|
|
5808
5543
|
], Plan.prototype, "name", 2);
|
|
5809
5544
|
__decorateClass([
|
|
5810
|
-
|
|
5545
|
+
Column50({ name: "description", type: "varchar", nullable: true })
|
|
5811
5546
|
], Plan.prototype, "description", 2);
|
|
5812
5547
|
__decorateClass([
|
|
5813
|
-
|
|
5548
|
+
Column50({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5814
5549
|
], Plan.prototype, "price", 2);
|
|
5815
5550
|
__decorateClass([
|
|
5816
|
-
|
|
5551
|
+
Column50({ name: "billing_period", type: "varchar" })
|
|
5817
5552
|
], Plan.prototype, "billingPeriod", 2);
|
|
5818
5553
|
__decorateClass([
|
|
5819
|
-
|
|
5554
|
+
Column50({ name: "is_current", type: "boolean", default: false })
|
|
5820
5555
|
], Plan.prototype, "isCurrent", 2);
|
|
5821
5556
|
__decorateClass([
|
|
5822
5557
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5823
5558
|
JoinTable()
|
|
5824
5559
|
], Plan.prototype, "features", 2);
|
|
5825
5560
|
Plan = __decorateClass([
|
|
5826
|
-
|
|
5561
|
+
Entity49("plans")
|
|
5827
5562
|
], Plan);
|
|
5828
5563
|
|
|
5829
5564
|
// src/entities/cms.entity.ts
|
|
5830
|
-
import { Entity as
|
|
5565
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5831
5566
|
var Cms = class extends BaseEntity {
|
|
5832
5567
|
};
|
|
5833
5568
|
__decorateClass([
|
|
5834
|
-
|
|
5569
|
+
Column51({ name: "title", type: "varchar", nullable: true })
|
|
5835
5570
|
], Cms.prototype, "title", 2);
|
|
5836
5571
|
__decorateClass([
|
|
5837
|
-
|
|
5572
|
+
Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5838
5573
|
], Cms.prototype, "slug", 2);
|
|
5839
5574
|
__decorateClass([
|
|
5840
|
-
|
|
5575
|
+
Column51({ name: "content", type: "varchar", nullable: true })
|
|
5841
5576
|
], Cms.prototype, "content", 2);
|
|
5842
5577
|
__decorateClass([
|
|
5843
|
-
|
|
5578
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5844
5579
|
], Cms.prototype, "isActive", 2);
|
|
5845
5580
|
Cms = __decorateClass([
|
|
5846
|
-
|
|
5581
|
+
Entity50("cms")
|
|
5847
5582
|
], Cms);
|
|
5848
5583
|
|
|
5849
5584
|
// src/entities/lead.entity.ts
|
|
5850
5585
|
import {
|
|
5851
|
-
Entity as
|
|
5852
|
-
Column as
|
|
5586
|
+
Entity as Entity51,
|
|
5587
|
+
Column as Column52
|
|
5853
5588
|
} from "typeorm";
|
|
5854
5589
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5855
5590
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5859,22 +5594,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5859
5594
|
var Lead = class extends BaseEntity {
|
|
5860
5595
|
};
|
|
5861
5596
|
__decorateClass([
|
|
5862
|
-
|
|
5597
|
+
Column52({ name: "name", type: "varchar", nullable: true })
|
|
5863
5598
|
], Lead.prototype, "name", 2);
|
|
5864
5599
|
__decorateClass([
|
|
5865
|
-
|
|
5600
|
+
Column52({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5866
5601
|
], Lead.prototype, "mobileCode", 2);
|
|
5867
5602
|
__decorateClass([
|
|
5868
|
-
|
|
5603
|
+
Column52({ name: "mobile", type: "varchar", nullable: true })
|
|
5869
5604
|
], Lead.prototype, "mobile", 2);
|
|
5870
5605
|
__decorateClass([
|
|
5871
|
-
|
|
5606
|
+
Column52({ name: "email", type: "varchar", nullable: true })
|
|
5872
5607
|
], Lead.prototype, "email", 2);
|
|
5873
5608
|
__decorateClass([
|
|
5874
|
-
|
|
5609
|
+
Column52({ name: "description", type: "varchar", nullable: true })
|
|
5875
5610
|
], Lead.prototype, "description", 2);
|
|
5876
5611
|
__decorateClass([
|
|
5877
|
-
|
|
5612
|
+
Column52({
|
|
5878
5613
|
name: "category",
|
|
5879
5614
|
type: "enum",
|
|
5880
5615
|
enum: CategoryEmum,
|
|
@@ -5882,7 +5617,7 @@ __decorateClass([
|
|
|
5882
5617
|
})
|
|
5883
5618
|
], Lead.prototype, "category", 2);
|
|
5884
5619
|
Lead = __decorateClass([
|
|
5885
|
-
|
|
5620
|
+
Entity51("leads")
|
|
5886
5621
|
], Lead);
|
|
5887
5622
|
|
|
5888
5623
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -6123,7 +5858,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
6123
5858
|
], ClientFreelancerRecommendation);
|
|
6124
5859
|
|
|
6125
5860
|
// src/entities/commission.entity.ts
|
|
6126
|
-
import { Entity as
|
|
5861
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
6127
5862
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
6128
5863
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
6129
5864
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -6132,7 +5867,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
6132
5867
|
var Commission = class extends BaseEntity {
|
|
6133
5868
|
};
|
|
6134
5869
|
__decorateClass([
|
|
6135
|
-
|
|
5870
|
+
Column53({
|
|
6136
5871
|
name: "freelancer_commission_type",
|
|
6137
5872
|
type: "enum",
|
|
6138
5873
|
enum: CommissionTypeEnum,
|
|
@@ -6140,10 +5875,10 @@ __decorateClass([
|
|
|
6140
5875
|
})
|
|
6141
5876
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
6142
5877
|
__decorateClass([
|
|
6143
|
-
|
|
5878
|
+
Column53({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
6144
5879
|
], Commission.prototype, "freelancerCommission", 2);
|
|
6145
5880
|
__decorateClass([
|
|
6146
|
-
|
|
5881
|
+
Column53({
|
|
6147
5882
|
name: "client_commission_type",
|
|
6148
5883
|
type: "enum",
|
|
6149
5884
|
enum: CommissionTypeEnum,
|
|
@@ -6151,20 +5886,16 @@ __decorateClass([
|
|
|
6151
5886
|
})
|
|
6152
5887
|
], Commission.prototype, "clientCommissionType", 2);
|
|
6153
5888
|
__decorateClass([
|
|
6154
|
-
|
|
5889
|
+
Column53({ name: "client_commission", type: "integer", default: 0 })
|
|
6155
5890
|
], Commission.prototype, "clientCommission", 2);
|
|
6156
5891
|
Commission = __decorateClass([
|
|
6157
|
-
|
|
5892
|
+
Entity52("commissions")
|
|
6158
5893
|
], Commission);
|
|
6159
5894
|
export {
|
|
6160
5895
|
ADMIN_FREELANCER_PATTERN,
|
|
6161
5896
|
ADMIN_JOB_PATTERN,
|
|
6162
5897
|
ADMIN_PERMISSION_PATTERN,
|
|
6163
5898
|
ADMIN_ROLE_PATTERN,
|
|
6164
|
-
AIInterview,
|
|
6165
|
-
AIInterviewResultEnum,
|
|
6166
|
-
AIInterviewStatusEnum,
|
|
6167
|
-
AIInterviewTypeEnum,
|
|
6168
5899
|
ASSESSMENT_QUESTION_PATTERN,
|
|
6169
5900
|
AUTHENTICATION_PATTERN,
|
|
6170
5901
|
AccountStatus,
|
|
@@ -6176,6 +5907,8 @@ export {
|
|
|
6176
5907
|
AdminUpdateJobInformationDto,
|
|
6177
5908
|
AdminUserRole,
|
|
6178
5909
|
AiAssessmentStatusEnum,
|
|
5910
|
+
AiInterview,
|
|
5911
|
+
AiInterviewStatusEnum,
|
|
6179
5912
|
AnswerTypeEnum,
|
|
6180
5913
|
ApplicationStatusEnum,
|
|
6181
5914
|
AssessmentAnswer,
|