@experts_hub/shared 1.0.429 → 1.0.430
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/invoice.entity.d.ts +29 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/timesheet-line.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +758 -632
- package/dist/index.mjs +694 -564
- package/dist/modules/interview/dto/create-f2f-interview-direct.dto.d.ts +6 -0
- package/dist/modules/interview/dto/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -101,6 +101,7 @@ __export(index_exports, {
|
|
|
101
101
|
CreateCmsDto: () => CreateCmsDto,
|
|
102
102
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
103
103
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
104
|
+
CreateF2FInterviewDirectDto: () => CreateF2FInterviewDirectDto,
|
|
104
105
|
CreateF2FInterviewDto: () => CreateF2FInterviewDto,
|
|
105
106
|
CreateF2FInterviewRescheduleRequestDto: () => CreateF2FInterviewRescheduleRequestDto,
|
|
106
107
|
CreateFreelancerDto: () => CreateFreelancerDto,
|
|
@@ -1612,10 +1613,10 @@ var RATING_PATTERN = {
|
|
|
1612
1613
|
var import_class_validator42 = require("class-validator");
|
|
1613
1614
|
|
|
1614
1615
|
// src/entities/rating.entity.ts
|
|
1615
|
-
var
|
|
1616
|
+
var import_typeorm57 = require("typeorm");
|
|
1616
1617
|
|
|
1617
1618
|
// src/entities/user.entity.ts
|
|
1618
|
-
var
|
|
1619
|
+
var import_typeorm56 = require("typeorm");
|
|
1619
1620
|
|
|
1620
1621
|
// src/entities/base.entity.ts
|
|
1621
1622
|
var import_typeorm = require("typeorm");
|
|
@@ -2309,7 +2310,7 @@ CompanyProfile = __decorateClass([
|
|
|
2309
2310
|
], CompanyProfile);
|
|
2310
2311
|
|
|
2311
2312
|
// src/entities/job.entity.ts
|
|
2312
|
-
var
|
|
2313
|
+
var import_typeorm28 = require("typeorm");
|
|
2313
2314
|
|
|
2314
2315
|
// src/entities/job-skill.entity.ts
|
|
2315
2316
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3442,6 +3443,15 @@ __decorateClass([
|
|
|
3442
3443
|
__decorateClass([
|
|
3443
3444
|
(0, import_typeorm25.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3444
3445
|
], TimesheetLine.prototype, "status", 2);
|
|
3446
|
+
__decorateClass([
|
|
3447
|
+
(0, import_typeorm25.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3448
|
+
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3449
|
+
__decorateClass([
|
|
3450
|
+
(0, import_typeorm25.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3451
|
+
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3452
|
+
__decorateClass([
|
|
3453
|
+
(0, import_typeorm25.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3454
|
+
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3445
3455
|
TimesheetLine = __decorateClass([
|
|
3446
3456
|
(0, import_typeorm25.Entity)("timesheet_lines")
|
|
3447
3457
|
], TimesheetLine);
|
|
@@ -3491,6 +3501,91 @@ ClientCandidatePreference = __decorateClass([
|
|
|
3491
3501
|
(0, import_typeorm26.Entity)("client_candidate_preferences")
|
|
3492
3502
|
], ClientCandidatePreference);
|
|
3493
3503
|
|
|
3504
|
+
// src/entities/invoice.entity.ts
|
|
3505
|
+
var import_typeorm27 = require("typeorm");
|
|
3506
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
3507
|
+
InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3508
|
+
InvoiceStatusEnum2["PENDING"] = "PENDING";
|
|
3509
|
+
InvoiceStatusEnum2["APPROVED"] = "APPROVED";
|
|
3510
|
+
InvoiceStatusEnum2["OVERDUE"] = "OVERDUE";
|
|
3511
|
+
InvoiceStatusEnum2["REJECTED"] = "REJECTED";
|
|
3512
|
+
InvoiceStatusEnum2["PAID"] = "PAID";
|
|
3513
|
+
InvoiceStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
|
|
3514
|
+
return InvoiceStatusEnum2;
|
|
3515
|
+
})(InvoiceStatusEnum || {});
|
|
3516
|
+
var Invoice = class extends BaseEntity {
|
|
3517
|
+
};
|
|
3518
|
+
__decorateClass([
|
|
3519
|
+
(0, import_typeorm27.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3520
|
+
(0, import_typeorm27.Index)()
|
|
3521
|
+
], Invoice.prototype, "jobId", 2);
|
|
3522
|
+
__decorateClass([
|
|
3523
|
+
(0, import_typeorm27.ManyToOne)(() => Job, (job) => job.invoice),
|
|
3524
|
+
(0, import_typeorm27.JoinColumn)({ name: "job_id" })
|
|
3525
|
+
], Invoice.prototype, "job", 2);
|
|
3526
|
+
__decorateClass([
|
|
3527
|
+
(0, import_typeorm27.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3528
|
+
(0, import_typeorm27.Index)()
|
|
3529
|
+
], Invoice.prototype, "clientId", 2);
|
|
3530
|
+
__decorateClass([
|
|
3531
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.clientInvoice),
|
|
3532
|
+
(0, import_typeorm27.JoinColumn)({ name: "client_id" })
|
|
3533
|
+
], Invoice.prototype, "client", 2);
|
|
3534
|
+
__decorateClass([
|
|
3535
|
+
(0, import_typeorm27.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3536
|
+
(0, import_typeorm27.Index)()
|
|
3537
|
+
], Invoice.prototype, "freelancerId", 2);
|
|
3538
|
+
__decorateClass([
|
|
3539
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerInvoice),
|
|
3540
|
+
(0, import_typeorm27.JoinColumn)({ name: "freelancer_id" })
|
|
3541
|
+
], Invoice.prototype, "freelancer", 2);
|
|
3542
|
+
__decorateClass([
|
|
3543
|
+
(0, import_typeorm27.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3544
|
+
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3545
|
+
__decorateClass([
|
|
3546
|
+
(0, import_typeorm27.Column)({
|
|
3547
|
+
name: "issued_at",
|
|
3548
|
+
type: "date",
|
|
3549
|
+
nullable: true
|
|
3550
|
+
})
|
|
3551
|
+
], Invoice.prototype, "issuedAt", 2);
|
|
3552
|
+
__decorateClass([
|
|
3553
|
+
(0, import_typeorm27.Column)({
|
|
3554
|
+
name: "due_at",
|
|
3555
|
+
type: "date",
|
|
3556
|
+
nullable: true
|
|
3557
|
+
})
|
|
3558
|
+
], Invoice.prototype, "dueAt", 2);
|
|
3559
|
+
__decorateClass([
|
|
3560
|
+
(0, import_typeorm27.Column)({
|
|
3561
|
+
name: "billing_cycle_from",
|
|
3562
|
+
type: "date",
|
|
3563
|
+
nullable: true
|
|
3564
|
+
})
|
|
3565
|
+
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3566
|
+
__decorateClass([
|
|
3567
|
+
(0, import_typeorm27.Column)({
|
|
3568
|
+
name: "billing_cycle_to",
|
|
3569
|
+
type: "date",
|
|
3570
|
+
nullable: true
|
|
3571
|
+
})
|
|
3572
|
+
], Invoice.prototype, "billingCycleTo", 2);
|
|
3573
|
+
__decorateClass([
|
|
3574
|
+
(0, import_typeorm27.Column)({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3575
|
+
], Invoice.prototype, "billingHours", 2);
|
|
3576
|
+
__decorateClass([
|
|
3577
|
+
(0, import_typeorm27.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3578
|
+
], Invoice.prototype, "hourlyRate", 2);
|
|
3579
|
+
__decorateClass([
|
|
3580
|
+
(0, import_typeorm27.Column)({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3581
|
+
], Invoice.prototype, "billingAmount", 2);
|
|
3582
|
+
__decorateClass([
|
|
3583
|
+
(0, import_typeorm27.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3584
|
+
], Invoice.prototype, "status", 2);
|
|
3585
|
+
Invoice = __decorateClass([
|
|
3586
|
+
(0, import_typeorm27.Entity)("invoices")
|
|
3587
|
+
], Invoice);
|
|
3588
|
+
|
|
3494
3589
|
// src/entities/job.entity.ts
|
|
3495
3590
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
3496
3591
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3531,52 +3626,52 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3531
3626
|
var Job = class extends BaseEntity {
|
|
3532
3627
|
};
|
|
3533
3628
|
__decorateClass([
|
|
3534
|
-
(0,
|
|
3629
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
3535
3630
|
], Job.prototype, "jobId", 2);
|
|
3536
3631
|
// individual index to find jobs by user
|
|
3537
3632
|
__decorateClass([
|
|
3538
|
-
(0,
|
|
3539
|
-
(0,
|
|
3633
|
+
(0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3634
|
+
(0, import_typeorm28.Index)()
|
|
3540
3635
|
], Job.prototype, "userId", 2);
|
|
3541
3636
|
__decorateClass([
|
|
3542
|
-
(0,
|
|
3543
|
-
(0,
|
|
3637
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.jobs),
|
|
3638
|
+
(0, import_typeorm28.JoinColumn)({ name: "user_id" })
|
|
3544
3639
|
], Job.prototype, "user", 2);
|
|
3545
3640
|
__decorateClass([
|
|
3546
|
-
(0,
|
|
3641
|
+
(0, import_typeorm28.Column)({ name: "country_id", type: "int", nullable: true })
|
|
3547
3642
|
], Job.prototype, "countryId", 2);
|
|
3548
3643
|
__decorateClass([
|
|
3549
|
-
(0,
|
|
3550
|
-
(0,
|
|
3644
|
+
(0, import_typeorm28.ManyToOne)(() => Country),
|
|
3645
|
+
(0, import_typeorm28.JoinColumn)({ name: "country_id" })
|
|
3551
3646
|
], Job.prototype, "country", 2);
|
|
3552
3647
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3648
|
+
(0, import_typeorm28.Column)({ name: "state_id", type: "int", nullable: true })
|
|
3554
3649
|
], Job.prototype, "stateId", 2);
|
|
3555
3650
|
__decorateClass([
|
|
3556
|
-
(0,
|
|
3557
|
-
(0,
|
|
3651
|
+
(0, import_typeorm28.ManyToOne)(() => State),
|
|
3652
|
+
(0, import_typeorm28.JoinColumn)({ name: "state_id" })
|
|
3558
3653
|
], Job.prototype, "state", 2);
|
|
3559
3654
|
__decorateClass([
|
|
3560
|
-
(0,
|
|
3655
|
+
(0, import_typeorm28.Column)({ name: "city_id", type: "int", nullable: true })
|
|
3561
3656
|
], Job.prototype, "cityId", 2);
|
|
3562
3657
|
__decorateClass([
|
|
3563
|
-
(0,
|
|
3564
|
-
(0,
|
|
3658
|
+
(0, import_typeorm28.ManyToOne)(() => City),
|
|
3659
|
+
(0, import_typeorm28.JoinColumn)({ name: "city_id" })
|
|
3565
3660
|
], Job.prototype, "city", 2);
|
|
3566
3661
|
__decorateClass([
|
|
3567
|
-
(0,
|
|
3662
|
+
(0, import_typeorm28.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
3568
3663
|
], Job.prototype, "jobRole", 2);
|
|
3569
3664
|
__decorateClass([
|
|
3570
|
-
(0,
|
|
3665
|
+
(0, import_typeorm28.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3571
3666
|
], Job.prototype, "projectName", 2);
|
|
3572
3667
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3668
|
+
(0, import_typeorm28.Column)({ name: "note", type: "varchar", nullable: true })
|
|
3574
3669
|
], Job.prototype, "note", 2);
|
|
3575
3670
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3671
|
+
(0, import_typeorm28.Column)({ name: "openings", type: "integer", default: 0 })
|
|
3577
3672
|
], Job.prototype, "openings", 2);
|
|
3578
3673
|
__decorateClass([
|
|
3579
|
-
(0,
|
|
3674
|
+
(0, import_typeorm28.Column)({
|
|
3580
3675
|
name: "location",
|
|
3581
3676
|
type: "enum",
|
|
3582
3677
|
enum: JobLocationEnum,
|
|
@@ -3584,7 +3679,7 @@ __decorateClass([
|
|
|
3584
3679
|
})
|
|
3585
3680
|
], Job.prototype, "location", 2);
|
|
3586
3681
|
__decorateClass([
|
|
3587
|
-
(0,
|
|
3682
|
+
(0, import_typeorm28.Column)({
|
|
3588
3683
|
name: "type_of_employment",
|
|
3589
3684
|
type: "enum",
|
|
3590
3685
|
enum: TypeOfEmploymentEnum,
|
|
@@ -3592,19 +3687,19 @@ __decorateClass([
|
|
|
3592
3687
|
})
|
|
3593
3688
|
], Job.prototype, "typeOfEmployment", 2);
|
|
3594
3689
|
__decorateClass([
|
|
3595
|
-
(0,
|
|
3690
|
+
(0, import_typeorm28.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
3596
3691
|
], Job.prototype, "academicQualification", 2);
|
|
3597
3692
|
__decorateClass([
|
|
3598
|
-
(0,
|
|
3693
|
+
(0, import_typeorm28.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
3599
3694
|
], Job.prototype, "yearsOfExperience", 2);
|
|
3600
3695
|
__decorateClass([
|
|
3601
|
-
(0,
|
|
3696
|
+
(0, import_typeorm28.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
3602
3697
|
], Job.prototype, "businessIndustry", 2);
|
|
3603
3698
|
__decorateClass([
|
|
3604
|
-
(0,
|
|
3699
|
+
(0, import_typeorm28.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
3605
3700
|
], Job.prototype, "currency", 2);
|
|
3606
3701
|
__decorateClass([
|
|
3607
|
-
(0,
|
|
3702
|
+
(0, import_typeorm28.Column)({
|
|
3608
3703
|
name: "expected_salary_from",
|
|
3609
3704
|
type: "decimal",
|
|
3610
3705
|
precision: 10,
|
|
@@ -3613,14 +3708,14 @@ __decorateClass([
|
|
|
3613
3708
|
})
|
|
3614
3709
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
3615
3710
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3711
|
+
(0, import_typeorm28.Column)({
|
|
3617
3712
|
name: "hide_expected_salary_from",
|
|
3618
3713
|
type: "boolean",
|
|
3619
3714
|
default: false
|
|
3620
3715
|
})
|
|
3621
3716
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
3622
3717
|
__decorateClass([
|
|
3623
|
-
(0,
|
|
3718
|
+
(0, import_typeorm28.Column)({
|
|
3624
3719
|
name: "expected_salary_to",
|
|
3625
3720
|
type: "decimal",
|
|
3626
3721
|
precision: 10,
|
|
@@ -3629,32 +3724,32 @@ __decorateClass([
|
|
|
3629
3724
|
})
|
|
3630
3725
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
3631
3726
|
__decorateClass([
|
|
3632
|
-
(0,
|
|
3727
|
+
(0, import_typeorm28.Column)({
|
|
3633
3728
|
name: "hide_expected_salary_to",
|
|
3634
3729
|
type: "boolean",
|
|
3635
3730
|
default: false
|
|
3636
3731
|
})
|
|
3637
3732
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
3638
3733
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3734
|
+
(0, import_typeorm28.Column)({ name: "years", type: "varchar", nullable: true })
|
|
3640
3735
|
], Job.prototype, "years", 2);
|
|
3641
3736
|
__decorateClass([
|
|
3642
|
-
(0,
|
|
3737
|
+
(0, import_typeorm28.Column)({ name: "months", type: "varchar", nullable: true })
|
|
3643
3738
|
], Job.prototype, "months", 2);
|
|
3644
3739
|
__decorateClass([
|
|
3645
|
-
(0,
|
|
3740
|
+
(0, import_typeorm28.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
3646
3741
|
], Job.prototype, "weeks", 2);
|
|
3647
3742
|
__decorateClass([
|
|
3648
|
-
(0,
|
|
3743
|
+
(0, import_typeorm28.Column)({ name: "days", type: "varchar", nullable: true })
|
|
3649
3744
|
], Job.prototype, "days", 2);
|
|
3650
3745
|
__decorateClass([
|
|
3651
|
-
(0,
|
|
3746
|
+
(0, import_typeorm28.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
3652
3747
|
], Job.prototype, "tentativeStartDate", 2);
|
|
3653
3748
|
__decorateClass([
|
|
3654
|
-
(0,
|
|
3749
|
+
(0, import_typeorm28.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
3655
3750
|
], Job.prototype, "tentativeEndDate", 2);
|
|
3656
3751
|
__decorateClass([
|
|
3657
|
-
(0,
|
|
3752
|
+
(0, import_typeorm28.Column)({
|
|
3658
3753
|
name: "duration_type",
|
|
3659
3754
|
type: "enum",
|
|
3660
3755
|
enum: DurationTypeEnum,
|
|
@@ -3662,10 +3757,10 @@ __decorateClass([
|
|
|
3662
3757
|
})
|
|
3663
3758
|
], Job.prototype, "durationType", 2);
|
|
3664
3759
|
__decorateClass([
|
|
3665
|
-
(0,
|
|
3760
|
+
(0, import_typeorm28.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
3666
3761
|
], Job.prototype, "duration", 2);
|
|
3667
3762
|
__decorateClass([
|
|
3668
|
-
(0,
|
|
3763
|
+
(0, import_typeorm28.Column)({
|
|
3669
3764
|
name: "number_of_hours",
|
|
3670
3765
|
type: "decimal",
|
|
3671
3766
|
precision: 4,
|
|
@@ -3674,13 +3769,13 @@ __decorateClass([
|
|
|
3674
3769
|
})
|
|
3675
3770
|
], Job.prototype, "numberOfHours", 2);
|
|
3676
3771
|
__decorateClass([
|
|
3677
|
-
(0,
|
|
3772
|
+
(0, import_typeorm28.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3678
3773
|
], Job.prototype, "description", 2);
|
|
3679
3774
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3775
|
+
(0, import_typeorm28.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
3681
3776
|
], Job.prototype, "additionalComment", 2);
|
|
3682
3777
|
__decorateClass([
|
|
3683
|
-
(0,
|
|
3778
|
+
(0, import_typeorm28.Column)({
|
|
3684
3779
|
name: "onboarding_tat",
|
|
3685
3780
|
type: "varchar",
|
|
3686
3781
|
length: 50,
|
|
@@ -3688,14 +3783,14 @@ __decorateClass([
|
|
|
3688
3783
|
})
|
|
3689
3784
|
], Job.prototype, "onboardingTat", 2);
|
|
3690
3785
|
__decorateClass([
|
|
3691
|
-
(0,
|
|
3786
|
+
(0, import_typeorm28.Column)({
|
|
3692
3787
|
name: "candidate_communication_skills",
|
|
3693
3788
|
type: "varchar",
|
|
3694
3789
|
nullable: true
|
|
3695
3790
|
})
|
|
3696
3791
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
3697
3792
|
__decorateClass([
|
|
3698
|
-
(0,
|
|
3793
|
+
(0, import_typeorm28.Column)({
|
|
3699
3794
|
name: "step_completed",
|
|
3700
3795
|
type: "enum",
|
|
3701
3796
|
enum: Step,
|
|
@@ -3703,7 +3798,7 @@ __decorateClass([
|
|
|
3703
3798
|
})
|
|
3704
3799
|
], Job.prototype, "stepCompleted", 2);
|
|
3705
3800
|
__decorateClass([
|
|
3706
|
-
(0,
|
|
3801
|
+
(0, import_typeorm28.Column)({
|
|
3707
3802
|
name: "status",
|
|
3708
3803
|
type: "enum",
|
|
3709
3804
|
enum: JobStatusEnum,
|
|
@@ -3711,32 +3806,32 @@ __decorateClass([
|
|
|
3711
3806
|
})
|
|
3712
3807
|
], Job.prototype, "status", 2);
|
|
3713
3808
|
__decorateClass([
|
|
3714
|
-
(0,
|
|
3809
|
+
(0, import_typeorm28.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
3715
3810
|
], Job.prototype, "viewedCount", 2);
|
|
3716
3811
|
__decorateClass([
|
|
3717
|
-
(0,
|
|
3812
|
+
(0, import_typeorm28.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
3718
3813
|
], Job.prototype, "applicationCount", 2);
|
|
3719
3814
|
__decorateClass([
|
|
3720
|
-
(0,
|
|
3815
|
+
(0, import_typeorm28.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
3721
3816
|
], Job.prototype, "isContractSigned", 2);
|
|
3722
3817
|
__decorateClass([
|
|
3723
|
-
(0,
|
|
3818
|
+
(0, import_typeorm28.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
3724
3819
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3725
3820
|
__decorateClass([
|
|
3726
|
-
(0,
|
|
3821
|
+
(0, import_typeorm28.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
3727
3822
|
], Job.prototype, "jobSkills", 2);
|
|
3728
3823
|
__decorateClass([
|
|
3729
|
-
(0,
|
|
3824
|
+
(0, import_typeorm28.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
3730
3825
|
cascade: true
|
|
3731
3826
|
})
|
|
3732
3827
|
], Job.prototype, "jobApplications", 2);
|
|
3733
3828
|
__decorateClass([
|
|
3734
|
-
(0,
|
|
3829
|
+
(0, import_typeorm28.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
3735
3830
|
cascade: true
|
|
3736
3831
|
})
|
|
3737
3832
|
], Job.prototype, "interviews", 2);
|
|
3738
3833
|
__decorateClass([
|
|
3739
|
-
(0,
|
|
3834
|
+
(0, import_typeorm28.OneToMany)(
|
|
3740
3835
|
() => JobRecommendation,
|
|
3741
3836
|
(jobRecommendation) => jobRecommendation.job,
|
|
3742
3837
|
{
|
|
@@ -3745,29 +3840,34 @@ __decorateClass([
|
|
|
3745
3840
|
)
|
|
3746
3841
|
], Job.prototype, "recommendations", 2);
|
|
3747
3842
|
__decorateClass([
|
|
3748
|
-
(0,
|
|
3843
|
+
(0, import_typeorm28.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
3749
3844
|
cascade: true
|
|
3750
3845
|
})
|
|
3751
3846
|
], Job.prototype, "contracts", 2);
|
|
3752
3847
|
__decorateClass([
|
|
3753
|
-
(0,
|
|
3848
|
+
(0, import_typeorm28.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
3754
3849
|
cascade: true
|
|
3755
3850
|
})
|
|
3756
3851
|
], Job.prototype, "timesheets", 2);
|
|
3757
3852
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3853
|
+
(0, import_typeorm28.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
3759
3854
|
cascade: true
|
|
3760
3855
|
})
|
|
3761
3856
|
], Job.prototype, "timesheetLine", 2);
|
|
3762
3857
|
__decorateClass([
|
|
3763
|
-
(0,
|
|
3858
|
+
(0, import_typeorm28.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
3859
|
+
cascade: true
|
|
3860
|
+
})
|
|
3861
|
+
], Job.prototype, "invoice", 2);
|
|
3862
|
+
__decorateClass([
|
|
3863
|
+
(0, import_typeorm28.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
3764
3864
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
3765
3865
|
Job = __decorateClass([
|
|
3766
|
-
(0,
|
|
3866
|
+
(0, import_typeorm28.Entity)("jobs")
|
|
3767
3867
|
], Job);
|
|
3768
3868
|
|
|
3769
3869
|
// src/entities/bank-details.entity.ts
|
|
3770
|
-
var
|
|
3870
|
+
var import_typeorm29 = require("typeorm");
|
|
3771
3871
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3772
3872
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
3773
3873
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -3782,48 +3882,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
3782
3882
|
};
|
|
3783
3883
|
// individual index to find bank details by user
|
|
3784
3884
|
__decorateClass([
|
|
3785
|
-
(0,
|
|
3786
|
-
(0,
|
|
3885
|
+
(0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3886
|
+
(0, import_typeorm29.Index)()
|
|
3787
3887
|
], BankDetail.prototype, "userId", 2);
|
|
3788
3888
|
__decorateClass([
|
|
3789
|
-
(0,
|
|
3790
|
-
(0,
|
|
3889
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
3890
|
+
(0, import_typeorm29.JoinColumn)({ name: "user_id" })
|
|
3791
3891
|
], BankDetail.prototype, "user", 2);
|
|
3792
3892
|
__decorateClass([
|
|
3793
|
-
(0,
|
|
3893
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3794
3894
|
], BankDetail.prototype, "name", 2);
|
|
3795
3895
|
__decorateClass([
|
|
3796
|
-
(0,
|
|
3896
|
+
(0, import_typeorm29.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3797
3897
|
], BankDetail.prototype, "mobile", 2);
|
|
3798
3898
|
__decorateClass([
|
|
3799
|
-
(0,
|
|
3899
|
+
(0, import_typeorm29.Column)({ name: "email", type: "varchar", unique: true })
|
|
3800
3900
|
], BankDetail.prototype, "email", 2);
|
|
3801
3901
|
__decorateClass([
|
|
3802
|
-
(0,
|
|
3902
|
+
(0, import_typeorm29.Column)({ name: "address", type: "varchar", nullable: true })
|
|
3803
3903
|
], BankDetail.prototype, "address", 2);
|
|
3804
3904
|
__decorateClass([
|
|
3805
|
-
(0,
|
|
3905
|
+
(0, import_typeorm29.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3806
3906
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3807
3907
|
__decorateClass([
|
|
3808
|
-
(0,
|
|
3908
|
+
(0, import_typeorm29.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
3809
3909
|
], BankDetail.prototype, "bankName", 2);
|
|
3810
3910
|
__decorateClass([
|
|
3811
|
-
(0,
|
|
3911
|
+
(0, import_typeorm29.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3812
3912
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3813
3913
|
__decorateClass([
|
|
3814
|
-
(0,
|
|
3914
|
+
(0, import_typeorm29.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
3815
3915
|
], BankDetail.prototype, "branchName", 2);
|
|
3816
3916
|
__decorateClass([
|
|
3817
|
-
(0,
|
|
3917
|
+
(0, import_typeorm29.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
3818
3918
|
], BankDetail.prototype, "routingNo", 2);
|
|
3819
3919
|
__decorateClass([
|
|
3820
|
-
(0,
|
|
3920
|
+
(0, import_typeorm29.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
3821
3921
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3822
3922
|
__decorateClass([
|
|
3823
|
-
(0,
|
|
3923
|
+
(0, import_typeorm29.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
3824
3924
|
], BankDetail.prototype, "iban", 2);
|
|
3825
3925
|
__decorateClass([
|
|
3826
|
-
(0,
|
|
3926
|
+
(0, import_typeorm29.Column)({
|
|
3827
3927
|
name: "account_type",
|
|
3828
3928
|
type: "enum",
|
|
3829
3929
|
enum: BankAccountTypeEnum,
|
|
@@ -3831,7 +3931,7 @@ __decorateClass([
|
|
|
3831
3931
|
})
|
|
3832
3932
|
], BankDetail.prototype, "accountType", 2);
|
|
3833
3933
|
__decorateClass([
|
|
3834
|
-
(0,
|
|
3934
|
+
(0, import_typeorm29.Column)({
|
|
3835
3935
|
name: "account_scope",
|
|
3836
3936
|
type: "enum",
|
|
3837
3937
|
enum: BankAccountScopeEnum,
|
|
@@ -3839,210 +3939,210 @@ __decorateClass([
|
|
|
3839
3939
|
})
|
|
3840
3940
|
], BankDetail.prototype, "accountScope", 2);
|
|
3841
3941
|
BankDetail = __decorateClass([
|
|
3842
|
-
(0,
|
|
3942
|
+
(0, import_typeorm29.Entity)("bank_details")
|
|
3843
3943
|
], BankDetail);
|
|
3844
3944
|
|
|
3845
3945
|
// src/entities/system-preference.entity.ts
|
|
3846
|
-
var
|
|
3946
|
+
var import_typeorm30 = require("typeorm");
|
|
3847
3947
|
var SystemPreference = class extends BaseEntity {
|
|
3848
3948
|
};
|
|
3849
3949
|
// individual index to find system preference by user
|
|
3850
3950
|
__decorateClass([
|
|
3851
|
-
(0,
|
|
3852
|
-
(0,
|
|
3951
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3952
|
+
(0, import_typeorm30.Index)()
|
|
3853
3953
|
], SystemPreference.prototype, "userId", 2);
|
|
3854
3954
|
__decorateClass([
|
|
3855
|
-
(0,
|
|
3856
|
-
(0,
|
|
3955
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
3956
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3857
3957
|
], SystemPreference.prototype, "user", 2);
|
|
3858
3958
|
__decorateClass([
|
|
3859
|
-
(0,
|
|
3959
|
+
(0, import_typeorm30.Column)({ name: "key", type: "varchar", nullable: false })
|
|
3860
3960
|
], SystemPreference.prototype, "key", 2);
|
|
3861
3961
|
__decorateClass([
|
|
3862
|
-
(0,
|
|
3962
|
+
(0, import_typeorm30.Column)({ name: "value", type: "boolean", default: false })
|
|
3863
3963
|
], SystemPreference.prototype, "value", 2);
|
|
3864
3964
|
SystemPreference = __decorateClass([
|
|
3865
|
-
(0,
|
|
3965
|
+
(0, import_typeorm30.Entity)("system_preferences")
|
|
3866
3966
|
], SystemPreference);
|
|
3867
3967
|
|
|
3868
3968
|
// src/entities/freelancer-experience.entity.ts
|
|
3869
|
-
var
|
|
3969
|
+
var import_typeorm31 = require("typeorm");
|
|
3870
3970
|
var FreelancerExperience = class extends BaseEntity {
|
|
3871
3971
|
};
|
|
3872
3972
|
// individual index to find experence by user
|
|
3873
3973
|
__decorateClass([
|
|
3874
|
-
(0,
|
|
3875
|
-
(0,
|
|
3974
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3975
|
+
(0, import_typeorm31.Index)()
|
|
3876
3976
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3877
3977
|
__decorateClass([
|
|
3878
|
-
(0,
|
|
3879
|
-
(0,
|
|
3978
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
3979
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
3880
3980
|
], FreelancerExperience.prototype, "user", 2);
|
|
3881
3981
|
__decorateClass([
|
|
3882
|
-
(0,
|
|
3982
|
+
(0, import_typeorm31.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
3883
3983
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3884
3984
|
__decorateClass([
|
|
3885
|
-
(0,
|
|
3985
|
+
(0, import_typeorm31.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
3886
3986
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3887
3987
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
3988
|
+
(0, import_typeorm31.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
3889
3989
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3890
3990
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
3991
|
+
(0, import_typeorm31.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3892
3992
|
], FreelancerExperience.prototype, "description", 2);
|
|
3893
3993
|
FreelancerExperience = __decorateClass([
|
|
3894
|
-
(0,
|
|
3994
|
+
(0, import_typeorm31.Entity)("freelancer_experiences")
|
|
3895
3995
|
], FreelancerExperience);
|
|
3896
3996
|
|
|
3897
3997
|
// src/entities/freelancer-education.entity.ts
|
|
3898
|
-
var
|
|
3998
|
+
var import_typeorm32 = require("typeorm");
|
|
3899
3999
|
var FreelancerEducation = class extends BaseEntity {
|
|
3900
4000
|
};
|
|
3901
4001
|
// individual index to find education by user
|
|
3902
4002
|
__decorateClass([
|
|
3903
|
-
(0,
|
|
3904
|
-
(0,
|
|
4003
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4004
|
+
(0, import_typeorm32.Index)()
|
|
3905
4005
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3906
4006
|
__decorateClass([
|
|
3907
|
-
(0,
|
|
3908
|
-
(0,
|
|
4007
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4008
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
3909
4009
|
], FreelancerEducation.prototype, "user", 2);
|
|
3910
4010
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
4011
|
+
(0, import_typeorm32.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
3912
4012
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3913
4013
|
__decorateClass([
|
|
3914
|
-
(0,
|
|
4014
|
+
(0, import_typeorm32.Column)({ name: "university", type: "varchar", nullable: true })
|
|
3915
4015
|
], FreelancerEducation.prototype, "university", 2);
|
|
3916
4016
|
__decorateClass([
|
|
3917
|
-
(0,
|
|
4017
|
+
(0, import_typeorm32.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3918
4018
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3919
4019
|
FreelancerEducation = __decorateClass([
|
|
3920
|
-
(0,
|
|
4020
|
+
(0, import_typeorm32.Entity)("freelancer_educations")
|
|
3921
4021
|
], FreelancerEducation);
|
|
3922
4022
|
|
|
3923
4023
|
// src/entities/freelancer-project.entity.ts
|
|
3924
|
-
var
|
|
4024
|
+
var import_typeorm33 = require("typeorm");
|
|
3925
4025
|
var FreelancerProject = class extends BaseEntity {
|
|
3926
4026
|
};
|
|
3927
4027
|
// individual index to find project by user
|
|
3928
4028
|
__decorateClass([
|
|
3929
|
-
(0,
|
|
3930
|
-
(0,
|
|
4029
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4030
|
+
(0, import_typeorm33.Index)()
|
|
3931
4031
|
], FreelancerProject.prototype, "userId", 2);
|
|
3932
4032
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
3934
|
-
(0,
|
|
4033
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4034
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
3935
4035
|
], FreelancerProject.prototype, "user", 2);
|
|
3936
4036
|
__decorateClass([
|
|
3937
|
-
(0,
|
|
4037
|
+
(0, import_typeorm33.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3938
4038
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3939
4039
|
__decorateClass([
|
|
3940
|
-
(0,
|
|
4040
|
+
(0, import_typeorm33.Column)({ name: "start_date", type: "date", nullable: true })
|
|
3941
4041
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3942
4042
|
__decorateClass([
|
|
3943
|
-
(0,
|
|
4043
|
+
(0, import_typeorm33.Column)({ name: "end_date", type: "date", nullable: true })
|
|
3944
4044
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3945
4045
|
__decorateClass([
|
|
3946
|
-
(0,
|
|
4046
|
+
(0, import_typeorm33.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
3947
4047
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3948
4048
|
__decorateClass([
|
|
3949
|
-
(0,
|
|
4049
|
+
(0, import_typeorm33.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
3950
4050
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3951
4051
|
__decorateClass([
|
|
3952
|
-
(0,
|
|
4052
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3953
4053
|
], FreelancerProject.prototype, "description", 2);
|
|
3954
4054
|
FreelancerProject = __decorateClass([
|
|
3955
|
-
(0,
|
|
4055
|
+
(0, import_typeorm33.Entity)("freelancer_projects")
|
|
3956
4056
|
], FreelancerProject);
|
|
3957
4057
|
|
|
3958
4058
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3959
|
-
var
|
|
4059
|
+
var import_typeorm34 = require("typeorm");
|
|
3960
4060
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3961
4061
|
};
|
|
3962
4062
|
// individual index to find case study by user
|
|
3963
4063
|
__decorateClass([
|
|
3964
|
-
(0,
|
|
3965
|
-
(0,
|
|
4064
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4065
|
+
(0, import_typeorm34.Index)()
|
|
3966
4066
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3967
4067
|
__decorateClass([
|
|
3968
|
-
(0,
|
|
3969
|
-
(0,
|
|
4068
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4069
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
3970
4070
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3971
4071
|
__decorateClass([
|
|
3972
|
-
(0,
|
|
4072
|
+
(0, import_typeorm34.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3973
4073
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3974
4074
|
__decorateClass([
|
|
3975
|
-
(0,
|
|
4075
|
+
(0, import_typeorm34.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3976
4076
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3977
4077
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
4078
|
+
(0, import_typeorm34.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3979
4079
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3980
4080
|
FreelancerCaseStudy = __decorateClass([
|
|
3981
|
-
(0,
|
|
4081
|
+
(0, import_typeorm34.Entity)("freelancer_case_studies")
|
|
3982
4082
|
], FreelancerCaseStudy);
|
|
3983
4083
|
|
|
3984
4084
|
// src/entities/freelancer-skill.entity.ts
|
|
3985
|
-
var
|
|
4085
|
+
var import_typeorm35 = require("typeorm");
|
|
3986
4086
|
var FreelancerSkill = class extends BaseEntity {
|
|
3987
4087
|
};
|
|
3988
4088
|
// individual index to find core skills by user
|
|
3989
4089
|
__decorateClass([
|
|
3990
|
-
(0,
|
|
3991
|
-
(0,
|
|
4090
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4091
|
+
(0, import_typeorm35.Index)()
|
|
3992
4092
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3993
4093
|
__decorateClass([
|
|
3994
|
-
(0,
|
|
3995
|
-
(0,
|
|
4094
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4095
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
3996
4096
|
], FreelancerSkill.prototype, "user", 2);
|
|
3997
4097
|
__decorateClass([
|
|
3998
|
-
(0,
|
|
4098
|
+
(0, import_typeorm35.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
3999
4099
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4000
4100
|
FreelancerSkill = __decorateClass([
|
|
4001
|
-
(0,
|
|
4101
|
+
(0, import_typeorm35.Entity)("freelancer_skills")
|
|
4002
4102
|
], FreelancerSkill);
|
|
4003
4103
|
|
|
4004
4104
|
// src/entities/freelancer-tool.entity.ts
|
|
4005
|
-
var
|
|
4105
|
+
var import_typeorm36 = require("typeorm");
|
|
4006
4106
|
var FreelancerTool = class extends BaseEntity {
|
|
4007
4107
|
};
|
|
4008
4108
|
// individual index to find tool by user
|
|
4009
4109
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
4011
|
-
(0,
|
|
4110
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4111
|
+
(0, import_typeorm36.Index)()
|
|
4012
4112
|
], FreelancerTool.prototype, "userId", 2);
|
|
4013
4113
|
__decorateClass([
|
|
4014
|
-
(0,
|
|
4015
|
-
(0,
|
|
4114
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4115
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4016
4116
|
], FreelancerTool.prototype, "user", 2);
|
|
4017
4117
|
__decorateClass([
|
|
4018
|
-
(0,
|
|
4118
|
+
(0, import_typeorm36.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4019
4119
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4020
4120
|
FreelancerTool = __decorateClass([
|
|
4021
|
-
(0,
|
|
4121
|
+
(0, import_typeorm36.Entity)("freelancer_tools")
|
|
4022
4122
|
], FreelancerTool);
|
|
4023
4123
|
|
|
4024
4124
|
// src/entities/freelancer-framework.entity.ts
|
|
4025
|
-
var
|
|
4125
|
+
var import_typeorm37 = require("typeorm");
|
|
4026
4126
|
var FreelancerFramework = class extends BaseEntity {
|
|
4027
4127
|
};
|
|
4028
4128
|
// individual index to find framework by user
|
|
4029
4129
|
__decorateClass([
|
|
4030
|
-
(0,
|
|
4031
|
-
(0,
|
|
4130
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4131
|
+
(0, import_typeorm37.Index)()
|
|
4032
4132
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4033
4133
|
__decorateClass([
|
|
4034
|
-
(0,
|
|
4035
|
-
(0,
|
|
4134
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4135
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4036
4136
|
], FreelancerFramework.prototype, "user", 2);
|
|
4037
4137
|
__decorateClass([
|
|
4038
|
-
(0,
|
|
4138
|
+
(0, import_typeorm37.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4039
4139
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4040
4140
|
FreelancerFramework = __decorateClass([
|
|
4041
|
-
(0,
|
|
4141
|
+
(0, import_typeorm37.Entity)("freelancer_frameworks")
|
|
4042
4142
|
], FreelancerFramework);
|
|
4043
4143
|
|
|
4044
4144
|
// src/entities/freelancer-assessment.entity.ts
|
|
4045
|
-
var
|
|
4145
|
+
var import_typeorm38 = require("typeorm");
|
|
4046
4146
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4047
4147
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4048
4148
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4058,30 +4158,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4058
4158
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4059
4159
|
};
|
|
4060
4160
|
__decorateClass([
|
|
4061
|
-
(0,
|
|
4062
|
-
(0,
|
|
4161
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4162
|
+
(0, import_typeorm38.Index)()
|
|
4063
4163
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4064
4164
|
__decorateClass([
|
|
4065
|
-
(0,
|
|
4066
|
-
(0,
|
|
4165
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.assessments),
|
|
4166
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4067
4167
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4068
4168
|
__decorateClass([
|
|
4069
|
-
(0,
|
|
4169
|
+
(0, import_typeorm38.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4070
4170
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4071
4171
|
__decorateClass([
|
|
4072
|
-
(0,
|
|
4172
|
+
(0, import_typeorm38.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4073
4173
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4074
4174
|
__decorateClass([
|
|
4075
|
-
(0,
|
|
4175
|
+
(0, import_typeorm38.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4076
4176
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4077
4177
|
__decorateClass([
|
|
4078
|
-
(0,
|
|
4178
|
+
(0, import_typeorm38.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4079
4179
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4080
4180
|
__decorateClass([
|
|
4081
|
-
(0,
|
|
4181
|
+
(0, import_typeorm38.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4082
4182
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4083
4183
|
__decorateClass([
|
|
4084
|
-
(0,
|
|
4184
|
+
(0, import_typeorm38.Column)({
|
|
4085
4185
|
name: "status",
|
|
4086
4186
|
type: "enum",
|
|
4087
4187
|
enum: AssessmentStatusEnum,
|
|
@@ -4089,11 +4189,11 @@ __decorateClass([
|
|
|
4089
4189
|
})
|
|
4090
4190
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4091
4191
|
FreelancerAssessment = __decorateClass([
|
|
4092
|
-
(0,
|
|
4192
|
+
(0, import_typeorm38.Entity)("freelancer_assessments")
|
|
4093
4193
|
], FreelancerAssessment);
|
|
4094
4194
|
|
|
4095
4195
|
// src/entities/freelancer-declaration.entity.ts
|
|
4096
|
-
var
|
|
4196
|
+
var import_typeorm39 = require("typeorm");
|
|
4097
4197
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4098
4198
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4099
4199
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4105,15 +4205,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4105
4205
|
};
|
|
4106
4206
|
// individual index to find declaration by user
|
|
4107
4207
|
__decorateClass([
|
|
4108
|
-
(0,
|
|
4109
|
-
(0,
|
|
4208
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4209
|
+
(0, import_typeorm39.Index)()
|
|
4110
4210
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4111
4211
|
__decorateClass([
|
|
4112
|
-
(0,
|
|
4113
|
-
(0,
|
|
4212
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
4213
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4114
4214
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4115
4215
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4216
|
+
(0, import_typeorm39.Column)({
|
|
4117
4217
|
name: "document_type",
|
|
4118
4218
|
type: "enum",
|
|
4119
4219
|
enum: DocumentType,
|
|
@@ -4121,144 +4221,144 @@ __decorateClass([
|
|
|
4121
4221
|
})
|
|
4122
4222
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4123
4223
|
__decorateClass([
|
|
4124
|
-
(0,
|
|
4224
|
+
(0, import_typeorm39.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4125
4225
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4126
4226
|
__decorateClass([
|
|
4127
|
-
(0,
|
|
4227
|
+
(0, import_typeorm39.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4128
4228
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4129
4229
|
__decorateClass([
|
|
4130
|
-
(0,
|
|
4230
|
+
(0, import_typeorm39.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4131
4231
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4132
4232
|
__decorateClass([
|
|
4133
|
-
(0,
|
|
4233
|
+
(0, import_typeorm39.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4134
4234
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4135
4235
|
FreelancerDeclaration = __decorateClass([
|
|
4136
|
-
(0,
|
|
4236
|
+
(0, import_typeorm39.Entity)("freelancer_declaration")
|
|
4137
4237
|
], FreelancerDeclaration);
|
|
4138
4238
|
|
|
4139
4239
|
// src/entities/company-members-roles.entity.ts
|
|
4140
|
-
var
|
|
4240
|
+
var import_typeorm43 = require("typeorm");
|
|
4141
4241
|
|
|
4142
4242
|
// src/entities/company-role.entity.ts
|
|
4143
|
-
var
|
|
4243
|
+
var import_typeorm42 = require("typeorm");
|
|
4144
4244
|
|
|
4145
4245
|
// src/entities/company-role-permission.entity.ts
|
|
4146
|
-
var
|
|
4246
|
+
var import_typeorm41 = require("typeorm");
|
|
4147
4247
|
|
|
4148
4248
|
// src/entities/permission.entity.ts
|
|
4149
|
-
var
|
|
4249
|
+
var import_typeorm40 = require("typeorm");
|
|
4150
4250
|
var Permission = class extends BaseEntity {
|
|
4151
4251
|
};
|
|
4152
4252
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4253
|
+
(0, import_typeorm40.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4154
4254
|
], Permission.prototype, "name", 2);
|
|
4155
4255
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4157
|
-
(0,
|
|
4256
|
+
(0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4257
|
+
(0, import_typeorm40.Index)()
|
|
4158
4258
|
], Permission.prototype, "slug", 2);
|
|
4159
4259
|
__decorateClass([
|
|
4160
|
-
(0,
|
|
4260
|
+
(0, import_typeorm40.Column)({ name: "description", type: "text", nullable: true })
|
|
4161
4261
|
], Permission.prototype, "description", 2);
|
|
4162
4262
|
__decorateClass([
|
|
4163
|
-
(0,
|
|
4263
|
+
(0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4164
4264
|
], Permission.prototype, "isActive", 2);
|
|
4165
4265
|
Permission = __decorateClass([
|
|
4166
|
-
(0,
|
|
4266
|
+
(0, import_typeorm40.Entity)("permissions")
|
|
4167
4267
|
], Permission);
|
|
4168
4268
|
|
|
4169
4269
|
// src/entities/company-role-permission.entity.ts
|
|
4170
4270
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4171
4271
|
};
|
|
4172
4272
|
__decorateClass([
|
|
4173
|
-
(0,
|
|
4174
|
-
(0,
|
|
4273
|
+
(0, import_typeorm41.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4274
|
+
(0, import_typeorm41.Index)()
|
|
4175
4275
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4176
4276
|
__decorateClass([
|
|
4177
|
-
(0,
|
|
4277
|
+
(0, import_typeorm41.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4178
4278
|
onDelete: "CASCADE"
|
|
4179
4279
|
}),
|
|
4180
|
-
(0,
|
|
4280
|
+
(0, import_typeorm41.JoinColumn)({ name: "company_role_id" })
|
|
4181
4281
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4182
4282
|
__decorateClass([
|
|
4183
|
-
(0,
|
|
4184
|
-
(0,
|
|
4283
|
+
(0, import_typeorm41.Column)({ name: "permission_id", type: "integer" }),
|
|
4284
|
+
(0, import_typeorm41.Index)()
|
|
4185
4285
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4186
4286
|
__decorateClass([
|
|
4187
|
-
(0,
|
|
4188
|
-
(0,
|
|
4287
|
+
(0, import_typeorm41.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
4288
|
+
(0, import_typeorm41.JoinColumn)({ name: "permission_id" })
|
|
4189
4289
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4190
4290
|
__decorateClass([
|
|
4191
|
-
(0,
|
|
4291
|
+
(0, import_typeorm41.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4192
4292
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4193
4293
|
CompanyRolePermission = __decorateClass([
|
|
4194
|
-
(0,
|
|
4294
|
+
(0, import_typeorm41.Entity)("company_role_permissions")
|
|
4195
4295
|
], CompanyRolePermission);
|
|
4196
4296
|
|
|
4197
4297
|
// src/entities/company-role.entity.ts
|
|
4198
4298
|
var CompanyRole = class extends BaseEntity {
|
|
4199
4299
|
};
|
|
4200
4300
|
__decorateClass([
|
|
4201
|
-
(0,
|
|
4202
|
-
(0,
|
|
4301
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4302
|
+
(0, import_typeorm42.Index)()
|
|
4203
4303
|
], CompanyRole.prototype, "userId", 2);
|
|
4204
4304
|
__decorateClass([
|
|
4205
|
-
(0,
|
|
4206
|
-
(0,
|
|
4305
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.otps),
|
|
4306
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
4207
4307
|
], CompanyRole.prototype, "user", 2);
|
|
4208
4308
|
__decorateClass([
|
|
4209
|
-
(0,
|
|
4309
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar" })
|
|
4210
4310
|
], CompanyRole.prototype, "name", 2);
|
|
4211
4311
|
__decorateClass([
|
|
4212
|
-
(0,
|
|
4213
|
-
(0,
|
|
4312
|
+
(0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4313
|
+
(0, import_typeorm42.Index)()
|
|
4214
4314
|
], CompanyRole.prototype, "slug", 2);
|
|
4215
4315
|
__decorateClass([
|
|
4216
|
-
(0,
|
|
4316
|
+
(0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
|
|
4217
4317
|
], CompanyRole.prototype, "description", 2);
|
|
4218
4318
|
__decorateClass([
|
|
4219
|
-
(0,
|
|
4319
|
+
(0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4220
4320
|
], CompanyRole.prototype, "isActive", 2);
|
|
4221
4321
|
__decorateClass([
|
|
4222
|
-
(0,
|
|
4322
|
+
(0, import_typeorm42.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4223
4323
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4224
4324
|
CompanyRole = __decorateClass([
|
|
4225
|
-
(0,
|
|
4325
|
+
(0, import_typeorm42.Entity)("company_roles")
|
|
4226
4326
|
], CompanyRole);
|
|
4227
4327
|
|
|
4228
4328
|
// src/entities/company-members-roles.entity.ts
|
|
4229
4329
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4230
4330
|
};
|
|
4231
4331
|
__decorateClass([
|
|
4232
|
-
(0,
|
|
4233
|
-
(0,
|
|
4332
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4333
|
+
(0, import_typeorm43.Index)()
|
|
4234
4334
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4235
4335
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4237
|
-
(0,
|
|
4336
|
+
(0, import_typeorm43.ManyToOne)(() => User),
|
|
4337
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4238
4338
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4239
4339
|
__decorateClass([
|
|
4240
|
-
(0,
|
|
4241
|
-
(0,
|
|
4340
|
+
(0, import_typeorm43.ManyToOne)(() => CompanyRole),
|
|
4341
|
+
(0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
|
|
4242
4342
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4243
4343
|
__decorateClass([
|
|
4244
|
-
(0,
|
|
4245
|
-
(0,
|
|
4344
|
+
(0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4345
|
+
(0, import_typeorm43.Index)()
|
|
4246
4346
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4247
4347
|
__decorateClass([
|
|
4248
|
-
(0,
|
|
4348
|
+
(0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4249
4349
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4250
4350
|
CompanyMemberRole = __decorateClass([
|
|
4251
|
-
(0,
|
|
4351
|
+
(0, import_typeorm43.Entity)("company_member_roles")
|
|
4252
4352
|
], CompanyMemberRole);
|
|
4253
4353
|
|
|
4254
4354
|
// src/entities/assessment-answer.entity.ts
|
|
4255
|
-
var
|
|
4355
|
+
var import_typeorm46 = require("typeorm");
|
|
4256
4356
|
|
|
4257
4357
|
// src/entities/assessment-question.entity.ts
|
|
4258
|
-
var
|
|
4358
|
+
var import_typeorm45 = require("typeorm");
|
|
4259
4359
|
|
|
4260
4360
|
// src/entities/assessment-question-option.entity.ts
|
|
4261
|
-
var
|
|
4361
|
+
var import_typeorm44 = require("typeorm");
|
|
4262
4362
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4263
4363
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
4264
4364
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -4268,21 +4368,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4268
4368
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4269
4369
|
};
|
|
4270
4370
|
__decorateClass([
|
|
4271
|
-
(0,
|
|
4272
|
-
(0,
|
|
4371
|
+
(0, import_typeorm44.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
4372
|
+
(0, import_typeorm44.Index)()
|
|
4273
4373
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4274
4374
|
__decorateClass([
|
|
4275
|
-
(0,
|
|
4375
|
+
(0, import_typeorm44.ManyToOne)(
|
|
4276
4376
|
() => AssessmetQuestion,
|
|
4277
4377
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4278
4378
|
),
|
|
4279
|
-
(0,
|
|
4379
|
+
(0, import_typeorm44.JoinColumn)({ name: "question_id" })
|
|
4280
4380
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4281
4381
|
__decorateClass([
|
|
4282
|
-
(0,
|
|
4382
|
+
(0, import_typeorm44.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4283
4383
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4284
4384
|
__decorateClass([
|
|
4285
|
-
(0,
|
|
4385
|
+
(0, import_typeorm44.Column)({
|
|
4286
4386
|
name: "answer_type",
|
|
4287
4387
|
type: "enum",
|
|
4288
4388
|
enum: AnswerTypeEnum,
|
|
@@ -4290,13 +4390,13 @@ __decorateClass([
|
|
|
4290
4390
|
})
|
|
4291
4391
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4292
4392
|
__decorateClass([
|
|
4293
|
-
(0,
|
|
4393
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4294
4394
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4295
4395
|
__decorateClass([
|
|
4296
|
-
(0,
|
|
4396
|
+
(0, import_typeorm44.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4297
4397
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4298
4398
|
AssessmetQuestionOption = __decorateClass([
|
|
4299
|
-
(0,
|
|
4399
|
+
(0, import_typeorm44.Entity)("assessment_question_options")
|
|
4300
4400
|
], AssessmetQuestionOption);
|
|
4301
4401
|
|
|
4302
4402
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4308,10 +4408,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4308
4408
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4309
4409
|
};
|
|
4310
4410
|
__decorateClass([
|
|
4311
|
-
(0,
|
|
4411
|
+
(0, import_typeorm45.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4312
4412
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4313
4413
|
__decorateClass([
|
|
4314
|
-
(0,
|
|
4414
|
+
(0, import_typeorm45.Column)({
|
|
4315
4415
|
name: "question_for",
|
|
4316
4416
|
type: "enum",
|
|
4317
4417
|
enum: QuestionForEnum,
|
|
@@ -4319,16 +4419,16 @@ __decorateClass([
|
|
|
4319
4419
|
})
|
|
4320
4420
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4321
4421
|
__decorateClass([
|
|
4322
|
-
(0,
|
|
4422
|
+
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4323
4423
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4324
4424
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4425
|
+
(0, import_typeorm45.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
4326
4426
|
], AssessmetQuestion.prototype, "options", 2);
|
|
4327
4427
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4428
|
+
(0, import_typeorm45.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4329
4429
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4330
4430
|
AssessmetQuestion = __decorateClass([
|
|
4331
|
-
(0,
|
|
4431
|
+
(0, import_typeorm45.Entity)("assessment_questions")
|
|
4332
4432
|
], AssessmetQuestion);
|
|
4333
4433
|
|
|
4334
4434
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4341,118 +4441,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4341
4441
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4342
4442
|
};
|
|
4343
4443
|
__decorateClass([
|
|
4344
|
-
(0,
|
|
4345
|
-
(0,
|
|
4444
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer" }),
|
|
4445
|
+
(0, import_typeorm46.Index)()
|
|
4346
4446
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4347
4447
|
__decorateClass([
|
|
4348
|
-
(0,
|
|
4349
|
-
(0,
|
|
4448
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
4449
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
4350
4450
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4351
4451
|
__decorateClass([
|
|
4352
|
-
(0,
|
|
4353
|
-
(0,
|
|
4452
|
+
(0, import_typeorm46.Column)({ name: "question_id", type: "integer" }),
|
|
4453
|
+
(0, import_typeorm46.Index)()
|
|
4354
4454
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4355
4455
|
__decorateClass([
|
|
4356
|
-
(0,
|
|
4456
|
+
(0, import_typeorm46.ManyToOne)(
|
|
4357
4457
|
() => AssessmetQuestion,
|
|
4358
4458
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4359
4459
|
),
|
|
4360
|
-
(0,
|
|
4460
|
+
(0, import_typeorm46.JoinColumn)({ name: "question_id" })
|
|
4361
4461
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4362
4462
|
__decorateClass([
|
|
4363
|
-
(0,
|
|
4364
|
-
(0,
|
|
4463
|
+
(0, import_typeorm46.Column)({ name: "selected_option_id", type: "integer" }),
|
|
4464
|
+
(0, import_typeorm46.Index)()
|
|
4365
4465
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4366
4466
|
__decorateClass([
|
|
4367
|
-
(0,
|
|
4467
|
+
(0, import_typeorm46.ManyToOne)(
|
|
4368
4468
|
() => AssessmetQuestionOption,
|
|
4369
4469
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4370
4470
|
),
|
|
4371
|
-
(0,
|
|
4471
|
+
(0, import_typeorm46.JoinColumn)({ name: "selected_option_id" })
|
|
4372
4472
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4373
4473
|
__decorateClass([
|
|
4374
|
-
(0,
|
|
4474
|
+
(0, import_typeorm46.Column)({
|
|
4375
4475
|
name: "selected_answer_type",
|
|
4376
4476
|
type: "enum",
|
|
4377
4477
|
enum: SelectedAnswerTypeEnum
|
|
4378
4478
|
})
|
|
4379
4479
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4380
4480
|
__decorateClass([
|
|
4381
|
-
(0,
|
|
4481
|
+
(0, import_typeorm46.Column)({ name: "score", type: "float" })
|
|
4382
4482
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4383
4483
|
AssessmentAnswer = __decorateClass([
|
|
4384
|
-
(0,
|
|
4484
|
+
(0, import_typeorm46.Entity)("assessment_answers")
|
|
4385
4485
|
], AssessmentAnswer);
|
|
4386
4486
|
|
|
4387
4487
|
// src/entities/company-skill.entity.ts
|
|
4388
|
-
var
|
|
4488
|
+
var import_typeorm47 = require("typeorm");
|
|
4389
4489
|
var CompanySkill = class extends BaseEntity {
|
|
4390
4490
|
};
|
|
4391
4491
|
// individual index to find core skills by user
|
|
4392
4492
|
__decorateClass([
|
|
4393
|
-
(0,
|
|
4394
|
-
(0,
|
|
4493
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4494
|
+
(0, import_typeorm47.Index)()
|
|
4395
4495
|
], CompanySkill.prototype, "userId", 2);
|
|
4396
4496
|
__decorateClass([
|
|
4397
|
-
(0,
|
|
4398
|
-
(0,
|
|
4497
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4498
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
4399
4499
|
], CompanySkill.prototype, "user", 2);
|
|
4400
4500
|
__decorateClass([
|
|
4401
|
-
(0,
|
|
4501
|
+
(0, import_typeorm47.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4402
4502
|
], CompanySkill.prototype, "skillName", 2);
|
|
4403
4503
|
CompanySkill = __decorateClass([
|
|
4404
|
-
(0,
|
|
4504
|
+
(0, import_typeorm47.Entity)("company_skills")
|
|
4405
4505
|
], CompanySkill);
|
|
4406
4506
|
|
|
4407
4507
|
// src/entities/admin-user-role.entity.ts
|
|
4408
|
-
var
|
|
4508
|
+
var import_typeorm51 = require("typeorm");
|
|
4409
4509
|
|
|
4410
4510
|
// src/entities/admin-role.entity.ts
|
|
4411
|
-
var
|
|
4511
|
+
var import_typeorm50 = require("typeorm");
|
|
4412
4512
|
|
|
4413
4513
|
// src/entities/admin-role-permission.entity.ts
|
|
4414
|
-
var
|
|
4514
|
+
var import_typeorm49 = require("typeorm");
|
|
4415
4515
|
|
|
4416
4516
|
// src/entities/admin-permission.entity.ts
|
|
4417
|
-
var
|
|
4517
|
+
var import_typeorm48 = require("typeorm");
|
|
4418
4518
|
var AdminPermission = class extends BaseEntity {
|
|
4419
4519
|
};
|
|
4420
4520
|
__decorateClass([
|
|
4421
|
-
(0,
|
|
4521
|
+
(0, import_typeorm48.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
4422
4522
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4423
4523
|
__decorateClass([
|
|
4424
|
-
(0,
|
|
4524
|
+
(0, import_typeorm48.Column)({
|
|
4425
4525
|
name: "permission_slug",
|
|
4426
4526
|
type: "varchar",
|
|
4427
4527
|
unique: true,
|
|
4428
4528
|
nullable: true
|
|
4429
4529
|
}),
|
|
4430
|
-
(0,
|
|
4530
|
+
(0, import_typeorm48.Index)()
|
|
4431
4531
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4432
4532
|
__decorateClass([
|
|
4433
|
-
(0,
|
|
4533
|
+
(0, import_typeorm48.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
4434
4534
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4435
4535
|
__decorateClass([
|
|
4436
|
-
(0,
|
|
4536
|
+
(0, import_typeorm48.Column)({ name: "module", type: "varchar", nullable: true })
|
|
4437
4537
|
], AdminPermission.prototype, "module", 2);
|
|
4438
4538
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4539
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4440
4540
|
], AdminPermission.prototype, "isActive", 2);
|
|
4441
4541
|
__decorateClass([
|
|
4442
|
-
(0,
|
|
4542
|
+
(0, import_typeorm48.OneToMany)(
|
|
4443
4543
|
() => AdminRolePermission,
|
|
4444
4544
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
4445
4545
|
)
|
|
4446
4546
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4447
4547
|
AdminPermission = __decorateClass([
|
|
4448
|
-
(0,
|
|
4548
|
+
(0, import_typeorm48.Entity)("admin_permissions")
|
|
4449
4549
|
], AdminPermission);
|
|
4450
4550
|
|
|
4451
4551
|
// src/entities/admin-role-permission.entity.ts
|
|
4452
4552
|
var AdminRolePermission = class extends BaseEntity {
|
|
4453
4553
|
};
|
|
4454
4554
|
__decorateClass([
|
|
4455
|
-
(0,
|
|
4555
|
+
(0, import_typeorm49.Column)({
|
|
4456
4556
|
name: "role_id",
|
|
4457
4557
|
type: "int",
|
|
4458
4558
|
nullable: true,
|
|
@@ -4460,11 +4560,11 @@ __decorateClass([
|
|
|
4460
4560
|
})
|
|
4461
4561
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4462
4562
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4464
|
-
(0,
|
|
4563
|
+
(0, import_typeorm49.ManyToOne)(() => AdminRole),
|
|
4564
|
+
(0, import_typeorm49.JoinColumn)({ name: "role_id" })
|
|
4465
4565
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4466
4566
|
__decorateClass([
|
|
4467
|
-
(0,
|
|
4567
|
+
(0, import_typeorm49.Column)({
|
|
4468
4568
|
name: "permission_id",
|
|
4469
4569
|
type: "int",
|
|
4470
4570
|
nullable: true,
|
|
@@ -4472,47 +4572,47 @@ __decorateClass([
|
|
|
4472
4572
|
})
|
|
4473
4573
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4474
4574
|
__decorateClass([
|
|
4475
|
-
(0,
|
|
4476
|
-
(0,
|
|
4575
|
+
(0, import_typeorm49.ManyToOne)(() => AdminPermission),
|
|
4576
|
+
(0, import_typeorm49.JoinColumn)({ name: "permission_id" })
|
|
4477
4577
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4478
4578
|
AdminRolePermission = __decorateClass([
|
|
4479
|
-
(0,
|
|
4579
|
+
(0, import_typeorm49.Entity)("admin_role_permissions")
|
|
4480
4580
|
], AdminRolePermission);
|
|
4481
4581
|
|
|
4482
4582
|
// src/entities/admin-role.entity.ts
|
|
4483
4583
|
var AdminRole = class extends BaseEntity {
|
|
4484
4584
|
};
|
|
4485
4585
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4586
|
+
(0, import_typeorm50.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
4487
4587
|
], AdminRole.prototype, "roleName", 2);
|
|
4488
4588
|
__decorateClass([
|
|
4489
|
-
(0,
|
|
4490
|
-
(0,
|
|
4589
|
+
(0, import_typeorm50.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4590
|
+
(0, import_typeorm50.Index)()
|
|
4491
4591
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4492
4592
|
__decorateClass([
|
|
4493
|
-
(0,
|
|
4593
|
+
(0, import_typeorm50.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
4494
4594
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4495
4595
|
__decorateClass([
|
|
4496
|
-
(0,
|
|
4596
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4497
4597
|
], AdminRole.prototype, "isActive", 2);
|
|
4498
4598
|
__decorateClass([
|
|
4499
|
-
(0,
|
|
4599
|
+
(0, import_typeorm50.OneToMany)(
|
|
4500
4600
|
() => AdminRolePermission,
|
|
4501
4601
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
4502
4602
|
)
|
|
4503
4603
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
4504
4604
|
__decorateClass([
|
|
4505
|
-
(0,
|
|
4605
|
+
(0, import_typeorm50.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
4506
4606
|
], AdminRole.prototype, "userRoles", 2);
|
|
4507
4607
|
AdminRole = __decorateClass([
|
|
4508
|
-
(0,
|
|
4608
|
+
(0, import_typeorm50.Entity)("admin_roles")
|
|
4509
4609
|
], AdminRole);
|
|
4510
4610
|
|
|
4511
4611
|
// src/entities/admin-user-role.entity.ts
|
|
4512
4612
|
var AdminUserRole = class extends BaseEntity {
|
|
4513
4613
|
};
|
|
4514
4614
|
__decorateClass([
|
|
4515
|
-
(0,
|
|
4615
|
+
(0, import_typeorm51.Column)({
|
|
4516
4616
|
name: "user_id",
|
|
4517
4617
|
type: "int",
|
|
4518
4618
|
nullable: true,
|
|
@@ -4520,11 +4620,11 @@ __decorateClass([
|
|
|
4520
4620
|
})
|
|
4521
4621
|
], AdminUserRole.prototype, "userId", 2);
|
|
4522
4622
|
__decorateClass([
|
|
4523
|
-
(0,
|
|
4524
|
-
(0,
|
|
4623
|
+
(0, import_typeorm51.ManyToOne)(() => User),
|
|
4624
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
4525
4625
|
], AdminUserRole.prototype, "user", 2);
|
|
4526
4626
|
__decorateClass([
|
|
4527
|
-
(0,
|
|
4627
|
+
(0, import_typeorm51.Column)({
|
|
4528
4628
|
name: "role_id",
|
|
4529
4629
|
type: "int",
|
|
4530
4630
|
nullable: true,
|
|
@@ -4532,41 +4632,41 @@ __decorateClass([
|
|
|
4532
4632
|
})
|
|
4533
4633
|
], AdminUserRole.prototype, "roleId", 2);
|
|
4534
4634
|
__decorateClass([
|
|
4535
|
-
(0,
|
|
4536
|
-
(0,
|
|
4635
|
+
(0, import_typeorm51.ManyToOne)(() => AdminRole),
|
|
4636
|
+
(0, import_typeorm51.JoinColumn)({ name: "role_id" })
|
|
4537
4637
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
4538
4638
|
AdminUserRole = __decorateClass([
|
|
4539
|
-
(0,
|
|
4639
|
+
(0, import_typeorm51.Entity)("admin_user_roles")
|
|
4540
4640
|
], AdminUserRole);
|
|
4541
4641
|
|
|
4542
4642
|
// src/entities/freelancer-resume.entity.ts
|
|
4543
|
-
var
|
|
4643
|
+
var import_typeorm52 = require("typeorm");
|
|
4544
4644
|
var FreelancerResume = class extends BaseEntity {
|
|
4545
4645
|
};
|
|
4546
4646
|
// individual index to find profile by user
|
|
4547
4647
|
__decorateClass([
|
|
4548
|
-
(0,
|
|
4549
|
-
(0,
|
|
4648
|
+
(0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4649
|
+
(0, import_typeorm52.Index)()
|
|
4550
4650
|
], FreelancerResume.prototype, "userId", 2);
|
|
4551
4651
|
__decorateClass([
|
|
4552
|
-
(0,
|
|
4553
|
-
(0,
|
|
4652
|
+
(0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
4653
|
+
(0, import_typeorm52.JoinColumn)({ name: "user_id" })
|
|
4554
4654
|
], FreelancerResume.prototype, "user", 2);
|
|
4555
4655
|
__decorateClass([
|
|
4556
|
-
(0,
|
|
4656
|
+
(0, import_typeorm52.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
4557
4657
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
4558
4658
|
__decorateClass([
|
|
4559
|
-
(0,
|
|
4659
|
+
(0, import_typeorm52.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
4560
4660
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
4561
4661
|
FreelancerResume = __decorateClass([
|
|
4562
|
-
(0,
|
|
4662
|
+
(0, import_typeorm52.Entity)("freelancer_resumes")
|
|
4563
4663
|
], FreelancerResume);
|
|
4564
4664
|
|
|
4565
4665
|
// src/entities/stripe-wallet.entity.ts
|
|
4566
|
-
var
|
|
4666
|
+
var import_typeorm54 = require("typeorm");
|
|
4567
4667
|
|
|
4568
4668
|
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4569
|
-
var
|
|
4669
|
+
var import_typeorm53 = require("typeorm");
|
|
4570
4670
|
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4571
4671
|
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4572
4672
|
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -4586,63 +4686,63 @@ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactio
|
|
|
4586
4686
|
var StripeWalletTransaction = class extends BaseEntity {
|
|
4587
4687
|
};
|
|
4588
4688
|
__decorateClass([
|
|
4589
|
-
(0,
|
|
4590
|
-
(0,
|
|
4689
|
+
(0, import_typeorm53.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4690
|
+
(0, import_typeorm53.Index)()
|
|
4591
4691
|
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4592
4692
|
__decorateClass([
|
|
4593
|
-
(0,
|
|
4594
|
-
(0,
|
|
4693
|
+
(0, import_typeorm53.ManyToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4694
|
+
(0, import_typeorm53.JoinColumn)({ name: "wallet_id" })
|
|
4595
4695
|
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4596
4696
|
__decorateClass([
|
|
4597
|
-
(0,
|
|
4697
|
+
(0, import_typeorm53.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
4598
4698
|
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4599
4699
|
__decorateClass([
|
|
4600
|
-
(0,
|
|
4700
|
+
(0, import_typeorm53.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
4601
4701
|
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4602
4702
|
__decorateClass([
|
|
4603
|
-
(0,
|
|
4703
|
+
(0, import_typeorm53.Column)({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4604
4704
|
], StripeWalletTransaction.prototype, "type", 2);
|
|
4605
4705
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4706
|
+
(0, import_typeorm53.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4607
4707
|
], StripeWalletTransaction.prototype, "status", 2);
|
|
4608
4708
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4709
|
+
(0, import_typeorm53.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4610
4710
|
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4611
4711
|
__decorateClass([
|
|
4612
|
-
(0,
|
|
4712
|
+
(0, import_typeorm53.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4613
4713
|
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4614
4714
|
__decorateClass([
|
|
4615
|
-
(0,
|
|
4715
|
+
(0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
|
|
4616
4716
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4617
4717
|
__decorateClass([
|
|
4618
|
-
(0,
|
|
4718
|
+
(0, import_typeorm53.Column)({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4619
4719
|
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4620
4720
|
__decorateClass([
|
|
4621
|
-
(0,
|
|
4721
|
+
(0, import_typeorm53.Column)({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4622
4722
|
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4623
4723
|
__decorateClass([
|
|
4624
|
-
(0,
|
|
4724
|
+
(0, import_typeorm53.Column)({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4625
4725
|
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4626
4726
|
__decorateClass([
|
|
4627
|
-
(0,
|
|
4727
|
+
(0, import_typeorm53.Column)({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4628
4728
|
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4629
4729
|
__decorateClass([
|
|
4630
|
-
(0,
|
|
4730
|
+
(0, import_typeorm53.Column)({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4631
4731
|
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4632
4732
|
__decorateClass([
|
|
4633
|
-
(0,
|
|
4733
|
+
(0, import_typeorm53.Column)({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4634
4734
|
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4635
4735
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4736
|
+
(0, import_typeorm53.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4637
4737
|
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4638
4738
|
__decorateClass([
|
|
4639
|
-
(0,
|
|
4739
|
+
(0, import_typeorm53.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4640
4740
|
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4641
4741
|
__decorateClass([
|
|
4642
|
-
(0,
|
|
4742
|
+
(0, import_typeorm53.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4643
4743
|
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4644
4744
|
StripeWalletTransaction = __decorateClass([
|
|
4645
|
-
(0,
|
|
4745
|
+
(0, import_typeorm53.Entity)("stripe_wallet_transactions")
|
|
4646
4746
|
], StripeWalletTransaction);
|
|
4647
4747
|
|
|
4648
4748
|
// src/entities/stripe-wallet.entity.ts
|
|
@@ -4659,59 +4759,59 @@ var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingS
|
|
|
4659
4759
|
var StripeWallet = class extends BaseEntity {
|
|
4660
4760
|
};
|
|
4661
4761
|
__decorateClass([
|
|
4662
|
-
(0,
|
|
4663
|
-
(0,
|
|
4762
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4763
|
+
(0, import_typeorm54.Index)()
|
|
4664
4764
|
], StripeWallet.prototype, "userId", 2);
|
|
4665
4765
|
__decorateClass([
|
|
4666
|
-
(0,
|
|
4667
|
-
(0,
|
|
4766
|
+
(0, import_typeorm54.OneToOne)(() => User, (user) => user.stripeWallet),
|
|
4767
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
4668
4768
|
], StripeWallet.prototype, "user", 2);
|
|
4669
4769
|
__decorateClass([
|
|
4670
|
-
(0,
|
|
4770
|
+
(0, import_typeorm54.Column)({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4671
4771
|
], StripeWallet.prototype, "accountType", 2);
|
|
4672
4772
|
__decorateClass([
|
|
4673
|
-
(0,
|
|
4773
|
+
(0, import_typeorm54.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4674
4774
|
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4675
4775
|
__decorateClass([
|
|
4676
|
-
(0,
|
|
4776
|
+
(0, import_typeorm54.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4677
4777
|
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4678
4778
|
__decorateClass([
|
|
4679
|
-
(0,
|
|
4779
|
+
(0, import_typeorm54.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4680
4780
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4681
4781
|
__decorateClass([
|
|
4682
|
-
(0,
|
|
4782
|
+
(0, import_typeorm54.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4683
4783
|
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4684
4784
|
__decorateClass([
|
|
4685
|
-
(0,
|
|
4785
|
+
(0, import_typeorm54.Column)({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4686
4786
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4687
4787
|
__decorateClass([
|
|
4688
|
-
(0,
|
|
4788
|
+
(0, import_typeorm54.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4689
4789
|
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4690
4790
|
__decorateClass([
|
|
4691
|
-
(0,
|
|
4791
|
+
(0, import_typeorm54.OneToMany)(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4692
4792
|
], StripeWallet.prototype, "transactions", 2);
|
|
4693
4793
|
StripeWallet = __decorateClass([
|
|
4694
|
-
(0,
|
|
4794
|
+
(0, import_typeorm54.Entity)("stripe_wallets")
|
|
4695
4795
|
], StripeWallet);
|
|
4696
4796
|
|
|
4697
4797
|
// src/entities/signature.entity.ts
|
|
4698
|
-
var
|
|
4798
|
+
var import_typeorm55 = require("typeorm");
|
|
4699
4799
|
var Signature = class extends BaseEntity {
|
|
4700
4800
|
};
|
|
4701
4801
|
// individual index to find profile by user
|
|
4702
4802
|
__decorateClass([
|
|
4703
|
-
(0,
|
|
4704
|
-
(0,
|
|
4803
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4804
|
+
(0, import_typeorm55.Index)()
|
|
4705
4805
|
], Signature.prototype, "userId", 2);
|
|
4706
4806
|
__decorateClass([
|
|
4707
|
-
(0,
|
|
4708
|
-
(0,
|
|
4807
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
|
|
4808
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
4709
4809
|
], Signature.prototype, "user", 2);
|
|
4710
4810
|
__decorateClass([
|
|
4711
|
-
(0,
|
|
4811
|
+
(0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
4712
4812
|
], Signature.prototype, "signatureUrl", 2);
|
|
4713
4813
|
Signature = __decorateClass([
|
|
4714
|
-
(0,
|
|
4814
|
+
(0, import_typeorm55.Entity)("signatures")
|
|
4715
4815
|
], Signature);
|
|
4716
4816
|
|
|
4717
4817
|
// src/entities/user.entity.ts
|
|
@@ -4739,51 +4839,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
4739
4839
|
var User = class extends BaseEntity {
|
|
4740
4840
|
};
|
|
4741
4841
|
__decorateClass([
|
|
4742
|
-
(0,
|
|
4842
|
+
(0, import_typeorm56.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
4743
4843
|
], User.prototype, "uniqueId", 2);
|
|
4744
4844
|
__decorateClass([
|
|
4745
|
-
(0,
|
|
4746
|
-
(0,
|
|
4845
|
+
(0, import_typeorm56.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
4846
|
+
(0, import_typeorm56.Index)()
|
|
4747
4847
|
], User.prototype, "parentId", 2);
|
|
4748
4848
|
__decorateClass([
|
|
4749
|
-
(0,
|
|
4750
|
-
(0,
|
|
4849
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
4850
|
+
(0, import_typeorm56.JoinColumn)({ name: "parent_id" })
|
|
4751
4851
|
], User.prototype, "parent", 2);
|
|
4752
4852
|
__decorateClass([
|
|
4753
|
-
(0,
|
|
4853
|
+
(0, import_typeorm56.OneToMany)(() => User, (user) => user.parent)
|
|
4754
4854
|
], User.prototype, "children", 2);
|
|
4755
4855
|
__decorateClass([
|
|
4756
|
-
(0,
|
|
4856
|
+
(0, import_typeorm56.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
4757
4857
|
], User.prototype, "username", 2);
|
|
4758
4858
|
__decorateClass([
|
|
4759
|
-
(0,
|
|
4859
|
+
(0, import_typeorm56.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
4760
4860
|
], User.prototype, "firstName", 2);
|
|
4761
4861
|
__decorateClass([
|
|
4762
|
-
(0,
|
|
4862
|
+
(0, import_typeorm56.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
4763
4863
|
], User.prototype, "lastName", 2);
|
|
4764
4864
|
__decorateClass([
|
|
4765
|
-
(0,
|
|
4865
|
+
(0, import_typeorm56.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
4766
4866
|
], User.prototype, "dateOfBirth", 2);
|
|
4767
4867
|
__decorateClass([
|
|
4768
|
-
(0,
|
|
4868
|
+
(0, import_typeorm56.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
4769
4869
|
], User.prototype, "gender", 2);
|
|
4770
4870
|
__decorateClass([
|
|
4771
|
-
(0,
|
|
4871
|
+
(0, import_typeorm56.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
4772
4872
|
], User.prototype, "profilePictureUrl", 2);
|
|
4773
4873
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4874
|
+
(0, import_typeorm56.Column)({ name: "email", type: "varchar", unique: true })
|
|
4775
4875
|
], User.prototype, "email", 2);
|
|
4776
4876
|
__decorateClass([
|
|
4777
|
-
(0,
|
|
4877
|
+
(0, import_typeorm56.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4778
4878
|
], User.prototype, "mobileCode", 2);
|
|
4779
4879
|
__decorateClass([
|
|
4780
|
-
(0,
|
|
4880
|
+
(0, import_typeorm56.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4781
4881
|
], User.prototype, "mobile", 2);
|
|
4782
4882
|
__decorateClass([
|
|
4783
|
-
(0,
|
|
4883
|
+
(0, import_typeorm56.Column)({ name: "password", type: "varchar", nullable: true })
|
|
4784
4884
|
], User.prototype, "password", 2);
|
|
4785
4885
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4886
|
+
(0, import_typeorm56.Column)({
|
|
4787
4887
|
name: "account_type",
|
|
4788
4888
|
type: "enum",
|
|
4789
4889
|
enum: AccountType,
|
|
@@ -4791,7 +4891,7 @@ __decorateClass([
|
|
|
4791
4891
|
})
|
|
4792
4892
|
], User.prototype, "accountType", 2);
|
|
4793
4893
|
__decorateClass([
|
|
4794
|
-
(0,
|
|
4894
|
+
(0, import_typeorm56.Column)({
|
|
4795
4895
|
name: "account_status",
|
|
4796
4896
|
type: "enum",
|
|
4797
4897
|
enum: AccountStatus,
|
|
@@ -4799,42 +4899,42 @@ __decorateClass([
|
|
|
4799
4899
|
})
|
|
4800
4900
|
], User.prototype, "accountStatus", 2);
|
|
4801
4901
|
__decorateClass([
|
|
4802
|
-
(0,
|
|
4902
|
+
(0, import_typeorm56.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
4803
4903
|
], User.prototype, "isEmailVerified", 2);
|
|
4804
4904
|
__decorateClass([
|
|
4805
|
-
(0,
|
|
4905
|
+
(0, import_typeorm56.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
4806
4906
|
], User.prototype, "isMobileVerified", 2);
|
|
4807
4907
|
__decorateClass([
|
|
4808
|
-
(0,
|
|
4908
|
+
(0, import_typeorm56.Column)({ name: "is_social", type: "boolean", default: false })
|
|
4809
4909
|
], User.prototype, "isSocial", 2);
|
|
4810
4910
|
__decorateClass([
|
|
4811
|
-
(0,
|
|
4911
|
+
(0, import_typeorm56.Column)({
|
|
4812
4912
|
name: "last_login_at",
|
|
4813
4913
|
type: "timestamp with time zone",
|
|
4814
4914
|
nullable: true
|
|
4815
4915
|
})
|
|
4816
4916
|
], User.prototype, "lastLoginAt", 2);
|
|
4817
4917
|
__decorateClass([
|
|
4818
|
-
(0,
|
|
4918
|
+
(0, import_typeorm56.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
4819
4919
|
], User.prototype, "lastLoginIp", 2);
|
|
4820
4920
|
__decorateClass([
|
|
4821
|
-
(0,
|
|
4921
|
+
(0, import_typeorm56.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
4822
4922
|
], User.prototype, "resetToken", 2);
|
|
4823
4923
|
__decorateClass([
|
|
4824
|
-
(0,
|
|
4924
|
+
(0, import_typeorm56.Column)({
|
|
4825
4925
|
name: "reset_token_expire_at",
|
|
4826
4926
|
type: "timestamp with time zone",
|
|
4827
4927
|
nullable: true
|
|
4828
4928
|
})
|
|
4829
4929
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4830
4930
|
__decorateClass([
|
|
4831
|
-
(0,
|
|
4931
|
+
(0, import_typeorm56.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4832
4932
|
], User.prototype, "setPasswordToken", 2);
|
|
4833
4933
|
__decorateClass([
|
|
4834
|
-
(0,
|
|
4934
|
+
(0, import_typeorm56.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
4835
4935
|
], User.prototype, "refreshTokens", 2);
|
|
4836
4936
|
__decorateClass([
|
|
4837
|
-
(0,
|
|
4937
|
+
(0, import_typeorm56.Column)({
|
|
4838
4938
|
name: "provider",
|
|
4839
4939
|
type: "enum",
|
|
4840
4940
|
enum: Provider,
|
|
@@ -4843,178 +4943,184 @@ __decorateClass([
|
|
|
4843
4943
|
})
|
|
4844
4944
|
], User.prototype, "provider", 2);
|
|
4845
4945
|
__decorateClass([
|
|
4846
|
-
(0,
|
|
4946
|
+
(0, import_typeorm56.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
4847
4947
|
], User.prototype, "providerToken", 2);
|
|
4848
4948
|
__decorateClass([
|
|
4849
|
-
(0,
|
|
4949
|
+
(0, import_typeorm56.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4850
4950
|
], User.prototype, "linkedInId", 2);
|
|
4851
4951
|
__decorateClass([
|
|
4852
|
-
(0,
|
|
4952
|
+
(0, import_typeorm56.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
4853
4953
|
], User.prototype, "googleId", 2);
|
|
4854
4954
|
__decorateClass([
|
|
4855
|
-
(0,
|
|
4955
|
+
(0, import_typeorm56.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4856
4956
|
], User.prototype, "gitLabsId", 2);
|
|
4857
4957
|
__decorateClass([
|
|
4858
|
-
(0,
|
|
4958
|
+
(0, import_typeorm56.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4859
4959
|
], User.prototype, "onBoardedBy", 2);
|
|
4860
4960
|
__decorateClass([
|
|
4861
|
-
(0,
|
|
4961
|
+
(0, import_typeorm56.OneToMany)(() => Otp, (otp) => otp.user)
|
|
4862
4962
|
], User.prototype, "otps", 2);
|
|
4863
4963
|
__decorateClass([
|
|
4864
|
-
(0,
|
|
4964
|
+
(0, import_typeorm56.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4865
4965
|
], User.prototype, "senseloafLogs", 2);
|
|
4866
4966
|
__decorateClass([
|
|
4867
|
-
(0,
|
|
4967
|
+
(0, import_typeorm56.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4868
4968
|
], User.prototype, "companyProfile", 2);
|
|
4869
4969
|
__decorateClass([
|
|
4870
|
-
(0,
|
|
4970
|
+
(0, import_typeorm56.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4871
4971
|
], User.prototype, "companySkills", 2);
|
|
4872
4972
|
__decorateClass([
|
|
4873
|
-
(0,
|
|
4973
|
+
(0, import_typeorm56.OneToMany)(
|
|
4874
4974
|
() => CompanyMemberRole,
|
|
4875
4975
|
(companyMemberRole) => companyMemberRole.user
|
|
4876
4976
|
)
|
|
4877
4977
|
], User.prototype, "companyMemberRoles", 2);
|
|
4878
4978
|
__decorateClass([
|
|
4879
|
-
(0,
|
|
4979
|
+
(0, import_typeorm56.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4880
4980
|
], User.prototype, "companyAiInterview", 2);
|
|
4881
4981
|
__decorateClass([
|
|
4882
|
-
(0,
|
|
4982
|
+
(0, import_typeorm56.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4883
4983
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4884
4984
|
__decorateClass([
|
|
4885
|
-
(0,
|
|
4985
|
+
(0, import_typeorm56.OneToOne)(
|
|
4886
4986
|
() => FreelancerProfile,
|
|
4887
4987
|
(freelancerProfile) => freelancerProfile.user
|
|
4888
4988
|
)
|
|
4889
4989
|
], User.prototype, "freelancerProfile", 2);
|
|
4890
4990
|
__decorateClass([
|
|
4891
|
-
(0,
|
|
4991
|
+
(0, import_typeorm56.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4892
4992
|
], User.prototype, "freelancerResume", 2);
|
|
4893
4993
|
__decorateClass([
|
|
4894
|
-
(0,
|
|
4994
|
+
(0, import_typeorm56.OneToMany)(
|
|
4895
4995
|
() => FreelancerAssessment,
|
|
4896
4996
|
(freelancerAssessment) => freelancerAssessment.user
|
|
4897
4997
|
)
|
|
4898
4998
|
], User.prototype, "assessments", 2);
|
|
4899
4999
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
5000
|
+
(0, import_typeorm56.OneToMany)(
|
|
4901
5001
|
() => AssessmentAnswer,
|
|
4902
5002
|
(assessmentAnswer) => assessmentAnswer.user
|
|
4903
5003
|
)
|
|
4904
5004
|
], User.prototype, "assessmentAnswers", 2);
|
|
4905
5005
|
__decorateClass([
|
|
4906
|
-
(0,
|
|
5006
|
+
(0, import_typeorm56.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4907
5007
|
], User.prototype, "freelancerSkills", 2);
|
|
4908
5008
|
__decorateClass([
|
|
4909
|
-
(0,
|
|
5009
|
+
(0, import_typeorm56.OneToMany)(
|
|
4910
5010
|
() => FreelancerExperience,
|
|
4911
5011
|
(freelancerExperience) => freelancerExperience.user
|
|
4912
5012
|
)
|
|
4913
5013
|
], User.prototype, "freelancerExperience", 2);
|
|
4914
5014
|
__decorateClass([
|
|
4915
|
-
(0,
|
|
5015
|
+
(0, import_typeorm56.OneToMany)(
|
|
4916
5016
|
() => FreelancerEducation,
|
|
4917
5017
|
(freelancerEducation) => freelancerEducation.user
|
|
4918
5018
|
)
|
|
4919
5019
|
], User.prototype, "freelancerEducation", 2);
|
|
4920
5020
|
__decorateClass([
|
|
4921
|
-
(0,
|
|
5021
|
+
(0, import_typeorm56.OneToMany)(
|
|
4922
5022
|
() => FreelancerProject,
|
|
4923
5023
|
(freelancerProject) => freelancerProject.user
|
|
4924
5024
|
)
|
|
4925
5025
|
], User.prototype, "freelancerProject", 2);
|
|
4926
5026
|
__decorateClass([
|
|
4927
|
-
(0,
|
|
5027
|
+
(0, import_typeorm56.OneToMany)(
|
|
4928
5028
|
() => FreelancerCaseStudy,
|
|
4929
5029
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
4930
5030
|
)
|
|
4931
5031
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4932
5032
|
__decorateClass([
|
|
4933
|
-
(0,
|
|
5033
|
+
(0, import_typeorm56.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4934
5034
|
], User.prototype, "freelancerTool", 2);
|
|
4935
5035
|
__decorateClass([
|
|
4936
|
-
(0,
|
|
5036
|
+
(0, import_typeorm56.OneToMany)(
|
|
4937
5037
|
() => FreelancerFramework,
|
|
4938
5038
|
(freelancerFramework) => freelancerFramework.user
|
|
4939
5039
|
)
|
|
4940
5040
|
], User.prototype, "freelancerFramework", 2);
|
|
4941
5041
|
__decorateClass([
|
|
4942
|
-
(0,
|
|
5042
|
+
(0, import_typeorm56.OneToOne)(
|
|
4943
5043
|
() => FreelancerDeclaration,
|
|
4944
5044
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
4945
5045
|
)
|
|
4946
5046
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4947
5047
|
__decorateClass([
|
|
4948
|
-
(0,
|
|
5048
|
+
(0, import_typeorm56.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4949
5049
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4950
5050
|
__decorateClass([
|
|
4951
|
-
(0,
|
|
5051
|
+
(0, import_typeorm56.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4952
5052
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4953
5053
|
__decorateClass([
|
|
4954
|
-
(0,
|
|
5054
|
+
(0, import_typeorm56.OneToMany)(
|
|
4955
5055
|
() => F2fInterviewRescheduleRequest,
|
|
4956
5056
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
4957
5057
|
)
|
|
4958
5058
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4959
5059
|
__decorateClass([
|
|
4960
|
-
(0,
|
|
5060
|
+
(0, import_typeorm56.OneToMany)(() => Job, (job) => job.user)
|
|
4961
5061
|
], User.prototype, "jobs", 2);
|
|
4962
5062
|
__decorateClass([
|
|
4963
|
-
(0,
|
|
5063
|
+
(0, import_typeorm56.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4964
5064
|
], User.prototype, "jobApplications", 2);
|
|
4965
5065
|
__decorateClass([
|
|
4966
|
-
(0,
|
|
5066
|
+
(0, import_typeorm56.OneToMany)(() => Interview, (interview) => interview.user)
|
|
4967
5067
|
], User.prototype, "interviews", 2);
|
|
4968
5068
|
__decorateClass([
|
|
4969
|
-
(0,
|
|
5069
|
+
(0, import_typeorm56.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4970
5070
|
], User.prototype, "bankDetail", 2);
|
|
4971
5071
|
__decorateClass([
|
|
4972
|
-
(0,
|
|
5072
|
+
(0, import_typeorm56.OneToMany)(
|
|
4973
5073
|
() => SystemPreference,
|
|
4974
5074
|
(systemPreference) => systemPreference.user
|
|
4975
5075
|
)
|
|
4976
5076
|
], User.prototype, "systemPreference", 2);
|
|
4977
5077
|
__decorateClass([
|
|
4978
|
-
(0,
|
|
5078
|
+
(0, import_typeorm56.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
4979
5079
|
], User.prototype, "givenRatings", 2);
|
|
4980
5080
|
__decorateClass([
|
|
4981
|
-
(0,
|
|
5081
|
+
(0, import_typeorm56.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
4982
5082
|
], User.prototype, "receivedRatings", 2);
|
|
4983
5083
|
__decorateClass([
|
|
4984
|
-
(0,
|
|
5084
|
+
(0, import_typeorm56.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4985
5085
|
], User.prototype, "adminUserRoles", 2);
|
|
4986
5086
|
__decorateClass([
|
|
4987
|
-
(0,
|
|
5087
|
+
(0, import_typeorm56.OneToMany)(() => Contract, (contract) => contract.client)
|
|
4988
5088
|
], User.prototype, "clientContracts", 2);
|
|
4989
5089
|
__decorateClass([
|
|
4990
|
-
(0,
|
|
5090
|
+
(0, import_typeorm56.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
4991
5091
|
], User.prototype, "freelancerContracts", 2);
|
|
4992
5092
|
__decorateClass([
|
|
4993
|
-
(0,
|
|
5093
|
+
(0, import_typeorm56.OneToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.user)
|
|
4994
5094
|
], User.prototype, "stripeWallet", 2);
|
|
4995
5095
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
5096
|
+
(0, import_typeorm56.OneToOne)(() => Signature, (signature) => signature.user)
|
|
4997
5097
|
], User.prototype, "signatures", 2);
|
|
4998
5098
|
__decorateClass([
|
|
4999
|
-
(0,
|
|
5099
|
+
(0, import_typeorm56.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
5000
5100
|
], User.prototype, "clientTimesheets", 2);
|
|
5001
5101
|
__decorateClass([
|
|
5002
|
-
(0,
|
|
5102
|
+
(0, import_typeorm56.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5003
5103
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5004
5104
|
__decorateClass([
|
|
5005
|
-
(0,
|
|
5105
|
+
(0, import_typeorm56.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5006
5106
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5007
5107
|
__decorateClass([
|
|
5008
|
-
(0,
|
|
5108
|
+
(0, import_typeorm56.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
5109
|
+
], User.prototype, "clientInvoice", 2);
|
|
5110
|
+
__decorateClass([
|
|
5111
|
+
(0, import_typeorm56.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5009
5112
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5010
5113
|
__decorateClass([
|
|
5011
|
-
(0,
|
|
5114
|
+
(0, import_typeorm56.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
5115
|
+
], User.prototype, "freelancerInvoice", 2);
|
|
5116
|
+
__decorateClass([
|
|
5117
|
+
(0, import_typeorm56.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5012
5118
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5013
5119
|
__decorateClass([
|
|
5014
|
-
(0,
|
|
5120
|
+
(0, import_typeorm56.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5015
5121
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5016
5122
|
User = __decorateClass([
|
|
5017
|
-
(0,
|
|
5123
|
+
(0, import_typeorm56.Entity)("users")
|
|
5018
5124
|
], User);
|
|
5019
5125
|
|
|
5020
5126
|
// src/entities/rating.entity.ts
|
|
@@ -5026,36 +5132,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5026
5132
|
var Rating = class extends BaseEntity {
|
|
5027
5133
|
};
|
|
5028
5134
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5030
|
-
(0,
|
|
5135
|
+
(0, import_typeorm57.Column)({ name: "reviewer_id", type: "integer" }),
|
|
5136
|
+
(0, import_typeorm57.Index)()
|
|
5031
5137
|
], Rating.prototype, "reviewer_id", 2);
|
|
5032
5138
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5034
|
-
(0,
|
|
5139
|
+
(0, import_typeorm57.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5140
|
+
(0, import_typeorm57.JoinColumn)({ name: "reviewer_id" })
|
|
5035
5141
|
], Rating.prototype, "reviewer", 2);
|
|
5036
5142
|
__decorateClass([
|
|
5037
|
-
(0,
|
|
5038
|
-
(0,
|
|
5143
|
+
(0, import_typeorm57.Column)({ name: "reviewee_id", type: "integer" }),
|
|
5144
|
+
(0, import_typeorm57.Index)()
|
|
5039
5145
|
], Rating.prototype, "reviewee_id", 2);
|
|
5040
5146
|
__decorateClass([
|
|
5041
|
-
(0,
|
|
5042
|
-
(0,
|
|
5147
|
+
(0, import_typeorm57.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5148
|
+
(0, import_typeorm57.JoinColumn)({ name: "reviewee_id" })
|
|
5043
5149
|
], Rating.prototype, "reviewee", 2);
|
|
5044
5150
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5151
|
+
(0, import_typeorm57.Column)({
|
|
5046
5152
|
type: "enum",
|
|
5047
5153
|
enum: RatingTypeEnum,
|
|
5048
5154
|
nullable: true
|
|
5049
5155
|
})
|
|
5050
5156
|
], Rating.prototype, "ratingType", 2);
|
|
5051
5157
|
__decorateClass([
|
|
5052
|
-
(0,
|
|
5158
|
+
(0, import_typeorm57.Column)({ type: "integer", nullable: true })
|
|
5053
5159
|
], Rating.prototype, "rating", 2);
|
|
5054
5160
|
__decorateClass([
|
|
5055
|
-
(0,
|
|
5161
|
+
(0, import_typeorm57.Column)({ type: "text", nullable: true })
|
|
5056
5162
|
], Rating.prototype, "review", 2);
|
|
5057
5163
|
Rating = __decorateClass([
|
|
5058
|
-
(0,
|
|
5164
|
+
(0, import_typeorm57.Entity)("ratings")
|
|
5059
5165
|
], Rating);
|
|
5060
5166
|
|
|
5061
5167
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6233,22 +6339,41 @@ __decorateClass([
|
|
|
6233
6339
|
(0, import_class_validator68.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
6234
6340
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
6235
6341
|
|
|
6236
|
-
// src/modules/interview/dto/create-f2f-interview-
|
|
6342
|
+
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
6237
6343
|
var import_class_validator69 = require("class-validator");
|
|
6344
|
+
var CreateF2FInterviewDirectDto = class {
|
|
6345
|
+
};
|
|
6346
|
+
__decorateClass([
|
|
6347
|
+
(0, import_class_validator69.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
6348
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Invitee email is required." })
|
|
6349
|
+
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
6350
|
+
__decorateClass([
|
|
6351
|
+
(0, import_class_validator69.IsString)({ message: "Invitee name must be a string." }),
|
|
6352
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Invitee name is required." })
|
|
6353
|
+
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
6354
|
+
__decorateClass([
|
|
6355
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6356
|
+
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
6357
|
+
__decorateClass([
|
|
6358
|
+
(0, import_class_validator69.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
6359
|
+
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
6360
|
+
|
|
6361
|
+
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
6362
|
+
var import_class_validator70 = require("class-validator");
|
|
6238
6363
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
6239
6364
|
};
|
|
6240
6365
|
__decorateClass([
|
|
6241
|
-
(0,
|
|
6366
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
6242
6367
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
6243
6368
|
__decorateClass([
|
|
6244
|
-
(0,
|
|
6369
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
6245
6370
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
6246
6371
|
__decorateClass([
|
|
6247
|
-
(0,
|
|
6248
|
-
(0,
|
|
6372
|
+
(0, import_class_validator70.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
6373
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
6249
6374
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
6250
6375
|
__decorateClass([
|
|
6251
|
-
(0,
|
|
6376
|
+
(0, import_class_validator70.IsString)({ message: "Freelancer reason must be a string." })
|
|
6252
6377
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
6253
6378
|
|
|
6254
6379
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -6271,43 +6396,43 @@ var CONTRACT_PATTERN = {
|
|
|
6271
6396
|
};
|
|
6272
6397
|
|
|
6273
6398
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6274
|
-
var
|
|
6399
|
+
var import_class_validator71 = require("class-validator");
|
|
6275
6400
|
var import_class_transformer13 = require("class-transformer");
|
|
6276
6401
|
var SignContractForClientDto = class {
|
|
6277
6402
|
};
|
|
6278
6403
|
__decorateClass([
|
|
6279
|
-
(0,
|
|
6404
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6280
6405
|
(0, import_class_transformer13.Type)(() => Number),
|
|
6281
|
-
(0,
|
|
6406
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6282
6407
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6283
6408
|
__decorateClass([
|
|
6284
|
-
(0,
|
|
6409
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
6285
6410
|
(0, import_class_transformer13.Type)(() => Number),
|
|
6286
|
-
(0,
|
|
6411
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
6287
6412
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6288
6413
|
__decorateClass([
|
|
6289
|
-
(0,
|
|
6290
|
-
(0,
|
|
6414
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Contract type is required." }),
|
|
6415
|
+
(0, import_class_validator71.IsEnum)(ContractTypeEnum)
|
|
6291
6416
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
6292
6417
|
|
|
6293
6418
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6294
|
-
var
|
|
6419
|
+
var import_class_validator72 = require("class-validator");
|
|
6295
6420
|
var import_class_transformer14 = require("class-transformer");
|
|
6296
6421
|
var SignContractForFreelancerDto = class {
|
|
6297
6422
|
};
|
|
6298
6423
|
__decorateClass([
|
|
6299
|
-
(0,
|
|
6424
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6300
6425
|
(0, import_class_transformer14.Type)(() => Number),
|
|
6301
|
-
(0,
|
|
6426
|
+
(0, import_class_validator72.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6302
6427
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6303
6428
|
__decorateClass([
|
|
6304
|
-
(0,
|
|
6429
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Client ID is required." }),
|
|
6305
6430
|
(0, import_class_transformer14.Type)(() => Number),
|
|
6306
|
-
(0,
|
|
6431
|
+
(0, import_class_validator72.IsNumber)({}, { message: "Client ID must be a number." })
|
|
6307
6432
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6308
6433
|
__decorateClass([
|
|
6309
|
-
(0,
|
|
6310
|
-
(0,
|
|
6434
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Contract type is required." }),
|
|
6435
|
+
(0, import_class_validator72.IsEnum)(ContractTypeEnum)
|
|
6311
6436
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
6312
6437
|
|
|
6313
6438
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -6325,11 +6450,11 @@ var STRIPE_PATTERN = {
|
|
|
6325
6450
|
};
|
|
6326
6451
|
|
|
6327
6452
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
6328
|
-
var
|
|
6453
|
+
var import_class_validator73 = require("class-validator");
|
|
6329
6454
|
var CreateCheckoutSessionDto = class {
|
|
6330
6455
|
};
|
|
6331
6456
|
__decorateClass([
|
|
6332
|
-
(0,
|
|
6457
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Amount is required" })
|
|
6333
6458
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
6334
6459
|
|
|
6335
6460
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -6350,99 +6475,99 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
6350
6475
|
};
|
|
6351
6476
|
|
|
6352
6477
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
6353
|
-
var
|
|
6478
|
+
var import_class_validator74 = require("class-validator");
|
|
6354
6479
|
var CreateFreelancerTimesheetDto = class {
|
|
6355
6480
|
};
|
|
6356
6481
|
__decorateClass([
|
|
6357
|
-
(0,
|
|
6358
|
-
(0,
|
|
6482
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Job id is required" }),
|
|
6483
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Job id must be a number" })
|
|
6359
6484
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
6360
6485
|
__decorateClass([
|
|
6361
|
-
(0,
|
|
6362
|
-
(0,
|
|
6486
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "start date is required" }),
|
|
6487
|
+
(0, import_class_validator74.IsDateString)()
|
|
6363
6488
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
6364
6489
|
__decorateClass([
|
|
6365
|
-
(0,
|
|
6366
|
-
(0,
|
|
6490
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "end date is required" }),
|
|
6491
|
+
(0, import_class_validator74.IsDateString)()
|
|
6367
6492
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
6368
6493
|
__decorateClass([
|
|
6369
|
-
(0,
|
|
6370
|
-
(0,
|
|
6494
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "start time is required" }),
|
|
6495
|
+
(0, import_class_validator74.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6371
6496
|
message: "startTime must be in HH:mm:ss format"
|
|
6372
6497
|
})
|
|
6373
6498
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
6374
6499
|
__decorateClass([
|
|
6375
|
-
(0,
|
|
6376
|
-
(0,
|
|
6500
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "end time is required" }),
|
|
6501
|
+
(0, import_class_validator74.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6377
6502
|
message: "endTime must be in HH:mm:ss format"
|
|
6378
6503
|
})
|
|
6379
6504
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6380
6505
|
__decorateClass([
|
|
6381
|
-
(0,
|
|
6382
|
-
(0,
|
|
6506
|
+
(0, import_class_validator74.IsOptional)(),
|
|
6507
|
+
(0, import_class_validator74.IsInt)()
|
|
6383
6508
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6384
6509
|
__decorateClass([
|
|
6385
|
-
(0,
|
|
6386
|
-
(0,
|
|
6510
|
+
(0, import_class_validator74.IsOptional)(),
|
|
6511
|
+
(0, import_class_validator74.IsString)()
|
|
6387
6512
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6388
6513
|
__decorateClass([
|
|
6389
|
-
(0,
|
|
6390
|
-
(0,
|
|
6514
|
+
(0, import_class_validator74.IsOptional)(),
|
|
6515
|
+
(0, import_class_validator74.IsString)()
|
|
6391
6516
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6392
6517
|
__decorateClass([
|
|
6393
|
-
(0,
|
|
6394
|
-
(0,
|
|
6518
|
+
(0, import_class_validator74.IsOptional)(),
|
|
6519
|
+
(0, import_class_validator74.IsString)()
|
|
6395
6520
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6396
6521
|
__decorateClass([
|
|
6397
|
-
(0,
|
|
6522
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Description is required" })
|
|
6398
6523
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
6399
6524
|
|
|
6400
6525
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
6401
|
-
var
|
|
6526
|
+
var import_class_validator75 = require("class-validator");
|
|
6402
6527
|
var UpdateFreelancerTimesheetDto = class {
|
|
6403
6528
|
};
|
|
6404
6529
|
__decorateClass([
|
|
6405
|
-
(0,
|
|
6406
|
-
(0,
|
|
6530
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Job id is required" }),
|
|
6531
|
+
(0, import_class_validator75.IsNumber)({}, { message: "Job id must be a number" })
|
|
6407
6532
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
6408
6533
|
__decorateClass([
|
|
6409
|
-
(0,
|
|
6410
|
-
(0,
|
|
6534
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "start date is required" }),
|
|
6535
|
+
(0, import_class_validator75.IsDateString)()
|
|
6411
6536
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
6412
6537
|
__decorateClass([
|
|
6413
|
-
(0,
|
|
6414
|
-
(0,
|
|
6538
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "end date is required" }),
|
|
6539
|
+
(0, import_class_validator75.IsDateString)()
|
|
6415
6540
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
6416
6541
|
__decorateClass([
|
|
6417
|
-
(0,
|
|
6418
|
-
(0,
|
|
6542
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "start time is required" }),
|
|
6543
|
+
(0, import_class_validator75.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6419
6544
|
message: "startTime must be in HH:mm:ss format"
|
|
6420
6545
|
})
|
|
6421
6546
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
6422
6547
|
__decorateClass([
|
|
6423
|
-
(0,
|
|
6424
|
-
(0,
|
|
6548
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "end time is required" }),
|
|
6549
|
+
(0, import_class_validator75.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6425
6550
|
message: "endTime must be in HH:mm:ss format"
|
|
6426
6551
|
})
|
|
6427
6552
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
6428
6553
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6430
|
-
(0,
|
|
6554
|
+
(0, import_class_validator75.IsOptional)(),
|
|
6555
|
+
(0, import_class_validator75.IsInt)()
|
|
6431
6556
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6432
6557
|
__decorateClass([
|
|
6433
|
-
(0,
|
|
6434
|
-
(0,
|
|
6558
|
+
(0, import_class_validator75.IsOptional)(),
|
|
6559
|
+
(0, import_class_validator75.IsString)()
|
|
6435
6560
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6436
6561
|
__decorateClass([
|
|
6437
|
-
(0,
|
|
6438
|
-
(0,
|
|
6562
|
+
(0, import_class_validator75.IsOptional)(),
|
|
6563
|
+
(0, import_class_validator75.IsString)()
|
|
6439
6564
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6440
6565
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6442
|
-
(0,
|
|
6566
|
+
(0, import_class_validator75.IsOptional)(),
|
|
6567
|
+
(0, import_class_validator75.IsString)()
|
|
6443
6568
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6444
6569
|
__decorateClass([
|
|
6445
|
-
(0,
|
|
6570
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Description is required" })
|
|
6446
6571
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
6447
6572
|
|
|
6448
6573
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -6734,11 +6859,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
6734
6859
|
};
|
|
6735
6860
|
|
|
6736
6861
|
// src/entities/sequence-generator.entity.ts
|
|
6737
|
-
var
|
|
6862
|
+
var import_typeorm58 = require("typeorm");
|
|
6738
6863
|
var SequenceGenerator = class extends BaseEntity {
|
|
6739
6864
|
};
|
|
6740
6865
|
__decorateClass([
|
|
6741
|
-
(0,
|
|
6866
|
+
(0, import_typeorm58.Column)({
|
|
6742
6867
|
name: "module",
|
|
6743
6868
|
type: "varchar",
|
|
6744
6869
|
length: 50,
|
|
@@ -6747,7 +6872,7 @@ __decorateClass([
|
|
|
6747
6872
|
})
|
|
6748
6873
|
], SequenceGenerator.prototype, "module", 2);
|
|
6749
6874
|
__decorateClass([
|
|
6750
|
-
(0,
|
|
6875
|
+
(0, import_typeorm58.Column)({
|
|
6751
6876
|
name: "prefix",
|
|
6752
6877
|
type: "varchar",
|
|
6753
6878
|
length: 10,
|
|
@@ -6756,7 +6881,7 @@ __decorateClass([
|
|
|
6756
6881
|
})
|
|
6757
6882
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
6758
6883
|
__decorateClass([
|
|
6759
|
-
(0,
|
|
6884
|
+
(0, import_typeorm58.Column)({
|
|
6760
6885
|
name: "last_sequence",
|
|
6761
6886
|
type: "int",
|
|
6762
6887
|
nullable: false,
|
|
@@ -6764,7 +6889,7 @@ __decorateClass([
|
|
|
6764
6889
|
})
|
|
6765
6890
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
6766
6891
|
__decorateClass([
|
|
6767
|
-
(0,
|
|
6892
|
+
(0, import_typeorm58.Column)({
|
|
6768
6893
|
name: "year",
|
|
6769
6894
|
type: "int",
|
|
6770
6895
|
nullable: true,
|
|
@@ -6772,11 +6897,11 @@ __decorateClass([
|
|
|
6772
6897
|
})
|
|
6773
6898
|
], SequenceGenerator.prototype, "year", 2);
|
|
6774
6899
|
SequenceGenerator = __decorateClass([
|
|
6775
|
-
(0,
|
|
6900
|
+
(0, import_typeorm58.Entity)("sequence_generators")
|
|
6776
6901
|
], SequenceGenerator);
|
|
6777
6902
|
|
|
6778
6903
|
// src/entities/question.entity.ts
|
|
6779
|
-
var
|
|
6904
|
+
var import_typeorm59 = require("typeorm");
|
|
6780
6905
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
6781
6906
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
6782
6907
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -6785,16 +6910,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
6785
6910
|
var Question = class extends BaseEntity {
|
|
6786
6911
|
};
|
|
6787
6912
|
__decorateClass([
|
|
6788
|
-
(0,
|
|
6913
|
+
(0, import_typeorm59.Column)({ name: "question", type: "varchar" })
|
|
6789
6914
|
], Question.prototype, "question", 2);
|
|
6790
6915
|
__decorateClass([
|
|
6791
|
-
(0,
|
|
6916
|
+
(0, import_typeorm59.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
6792
6917
|
], Question.prototype, "hint", 2);
|
|
6793
6918
|
__decorateClass([
|
|
6794
|
-
(0,
|
|
6919
|
+
(0, import_typeorm59.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6795
6920
|
], Question.prototype, "slug", 2);
|
|
6796
6921
|
__decorateClass([
|
|
6797
|
-
(0,
|
|
6922
|
+
(0, import_typeorm59.Column)({
|
|
6798
6923
|
name: "question_for",
|
|
6799
6924
|
type: "enum",
|
|
6800
6925
|
enum: QuestionFor,
|
|
@@ -6802,117 +6927,117 @@ __decorateClass([
|
|
|
6802
6927
|
})
|
|
6803
6928
|
], Question.prototype, "questionFor", 2);
|
|
6804
6929
|
__decorateClass([
|
|
6805
|
-
(0,
|
|
6930
|
+
(0, import_typeorm59.Column)({ name: "type", type: "varchar", nullable: true })
|
|
6806
6931
|
], Question.prototype, "type", 2);
|
|
6807
6932
|
__decorateClass([
|
|
6808
|
-
(0,
|
|
6933
|
+
(0, import_typeorm59.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
6809
6934
|
], Question.prototype, "options", 2);
|
|
6810
6935
|
__decorateClass([
|
|
6811
|
-
(0,
|
|
6936
|
+
(0, import_typeorm59.Column)({ name: "is_active", type: "boolean", default: false })
|
|
6812
6937
|
], Question.prototype, "isActive", 2);
|
|
6813
6938
|
Question = __decorateClass([
|
|
6814
|
-
(0,
|
|
6939
|
+
(0, import_typeorm59.Entity)("questions")
|
|
6815
6940
|
], Question);
|
|
6816
6941
|
|
|
6817
6942
|
// src/entities/skill.entity.ts
|
|
6818
|
-
var
|
|
6943
|
+
var import_typeorm60 = require("typeorm");
|
|
6819
6944
|
var Skill = class extends BaseEntity {
|
|
6820
6945
|
};
|
|
6821
6946
|
__decorateClass([
|
|
6822
|
-
(0,
|
|
6947
|
+
(0, import_typeorm60.Column)({ name: "name", type: "varchar", nullable: true })
|
|
6823
6948
|
], Skill.prototype, "name", 2);
|
|
6824
6949
|
__decorateClass([
|
|
6825
|
-
(0,
|
|
6950
|
+
(0, import_typeorm60.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6826
6951
|
], Skill.prototype, "slug", 2);
|
|
6827
6952
|
__decorateClass([
|
|
6828
|
-
(0,
|
|
6953
|
+
(0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: false })
|
|
6829
6954
|
], Skill.prototype, "isActive", 2);
|
|
6830
6955
|
Skill = __decorateClass([
|
|
6831
|
-
(0,
|
|
6956
|
+
(0, import_typeorm60.Entity)("skills")
|
|
6832
6957
|
], Skill);
|
|
6833
6958
|
|
|
6834
6959
|
// src/entities/job-role.entity.ts
|
|
6835
|
-
var
|
|
6960
|
+
var import_typeorm61 = require("typeorm");
|
|
6836
6961
|
var JobRoles = class extends BaseEntity {
|
|
6837
6962
|
};
|
|
6838
6963
|
__decorateClass([
|
|
6839
|
-
(0,
|
|
6964
|
+
(0, import_typeorm61.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6840
6965
|
], JobRoles.prototype, "slug", 2);
|
|
6841
6966
|
__decorateClass([
|
|
6842
|
-
(0,
|
|
6967
|
+
(0, import_typeorm61.Column)({ name: "name", type: "varchar", nullable: true })
|
|
6843
6968
|
], JobRoles.prototype, "name", 2);
|
|
6844
6969
|
__decorateClass([
|
|
6845
|
-
(0,
|
|
6970
|
+
(0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6846
6971
|
], JobRoles.prototype, "isActive", 2);
|
|
6847
6972
|
JobRoles = __decorateClass([
|
|
6848
|
-
(0,
|
|
6973
|
+
(0, import_typeorm61.Entity)("job_roles")
|
|
6849
6974
|
], JobRoles);
|
|
6850
6975
|
|
|
6851
6976
|
// src/entities/plan.entity.ts
|
|
6852
|
-
var
|
|
6977
|
+
var import_typeorm63 = require("typeorm");
|
|
6853
6978
|
|
|
6854
6979
|
// src/entities/feature.entity.ts
|
|
6855
|
-
var
|
|
6980
|
+
var import_typeorm62 = require("typeorm");
|
|
6856
6981
|
var Feature = class extends BaseEntity {
|
|
6857
6982
|
};
|
|
6858
6983
|
__decorateClass([
|
|
6859
|
-
(0,
|
|
6984
|
+
(0, import_typeorm62.Column)({ name: "name", type: "varchar", unique: true })
|
|
6860
6985
|
], Feature.prototype, "name", 2);
|
|
6861
6986
|
__decorateClass([
|
|
6862
|
-
(0,
|
|
6987
|
+
(0, import_typeorm62.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
6863
6988
|
], Feature.prototype, "plans", 2);
|
|
6864
6989
|
Feature = __decorateClass([
|
|
6865
|
-
(0,
|
|
6990
|
+
(0, import_typeorm62.Entity)("features")
|
|
6866
6991
|
], Feature);
|
|
6867
6992
|
|
|
6868
6993
|
// src/entities/plan.entity.ts
|
|
6869
6994
|
var Plan = class extends BaseEntity {
|
|
6870
6995
|
};
|
|
6871
6996
|
__decorateClass([
|
|
6872
|
-
(0,
|
|
6997
|
+
(0, import_typeorm63.Column)({ name: "name", type: "varchar", unique: true })
|
|
6873
6998
|
], Plan.prototype, "name", 2);
|
|
6874
6999
|
__decorateClass([
|
|
6875
|
-
(0,
|
|
7000
|
+
(0, import_typeorm63.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6876
7001
|
], Plan.prototype, "description", 2);
|
|
6877
7002
|
__decorateClass([
|
|
6878
|
-
(0,
|
|
7003
|
+
(0, import_typeorm63.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
6879
7004
|
], Plan.prototype, "price", 2);
|
|
6880
7005
|
__decorateClass([
|
|
6881
|
-
(0,
|
|
7006
|
+
(0, import_typeorm63.Column)({ name: "billing_period", type: "varchar" })
|
|
6882
7007
|
], Plan.prototype, "billingPeriod", 2);
|
|
6883
7008
|
__decorateClass([
|
|
6884
|
-
(0,
|
|
7009
|
+
(0, import_typeorm63.Column)({ name: "is_current", type: "boolean", default: false })
|
|
6885
7010
|
], Plan.prototype, "isCurrent", 2);
|
|
6886
7011
|
__decorateClass([
|
|
6887
|
-
(0,
|
|
6888
|
-
(0,
|
|
7012
|
+
(0, import_typeorm63.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7013
|
+
(0, import_typeorm63.JoinTable)()
|
|
6889
7014
|
], Plan.prototype, "features", 2);
|
|
6890
7015
|
Plan = __decorateClass([
|
|
6891
|
-
(0,
|
|
7016
|
+
(0, import_typeorm63.Entity)("plans")
|
|
6892
7017
|
], Plan);
|
|
6893
7018
|
|
|
6894
7019
|
// src/entities/cms.entity.ts
|
|
6895
|
-
var
|
|
7020
|
+
var import_typeorm64 = require("typeorm");
|
|
6896
7021
|
var Cms = class extends BaseEntity {
|
|
6897
7022
|
};
|
|
6898
7023
|
__decorateClass([
|
|
6899
|
-
(0,
|
|
7024
|
+
(0, import_typeorm64.Column)({ name: "title", type: "varchar", nullable: true })
|
|
6900
7025
|
], Cms.prototype, "title", 2);
|
|
6901
7026
|
__decorateClass([
|
|
6902
|
-
(0,
|
|
7027
|
+
(0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6903
7028
|
], Cms.prototype, "slug", 2);
|
|
6904
7029
|
__decorateClass([
|
|
6905
|
-
(0,
|
|
7030
|
+
(0, import_typeorm64.Column)({ name: "content", type: "varchar", nullable: true })
|
|
6906
7031
|
], Cms.prototype, "content", 2);
|
|
6907
7032
|
__decorateClass([
|
|
6908
|
-
(0,
|
|
7033
|
+
(0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: true })
|
|
6909
7034
|
], Cms.prototype, "isActive", 2);
|
|
6910
7035
|
Cms = __decorateClass([
|
|
6911
|
-
(0,
|
|
7036
|
+
(0, import_typeorm64.Entity)("cms")
|
|
6912
7037
|
], Cms);
|
|
6913
7038
|
|
|
6914
7039
|
// src/entities/lead.entity.ts
|
|
6915
|
-
var
|
|
7040
|
+
var import_typeorm65 = require("typeorm");
|
|
6916
7041
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
6917
7042
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
6918
7043
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -6921,22 +7046,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
6921
7046
|
var Lead = class extends BaseEntity {
|
|
6922
7047
|
};
|
|
6923
7048
|
__decorateClass([
|
|
6924
|
-
(0,
|
|
7049
|
+
(0, import_typeorm65.Column)({ name: "name", type: "varchar", nullable: true })
|
|
6925
7050
|
], Lead.prototype, "name", 2);
|
|
6926
7051
|
__decorateClass([
|
|
6927
|
-
(0,
|
|
7052
|
+
(0, import_typeorm65.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6928
7053
|
], Lead.prototype, "mobileCode", 2);
|
|
6929
7054
|
__decorateClass([
|
|
6930
|
-
(0,
|
|
7055
|
+
(0, import_typeorm65.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6931
7056
|
], Lead.prototype, "mobile", 2);
|
|
6932
7057
|
__decorateClass([
|
|
6933
|
-
(0,
|
|
7058
|
+
(0, import_typeorm65.Column)({ name: "email", type: "varchar", nullable: true })
|
|
6934
7059
|
], Lead.prototype, "email", 2);
|
|
6935
7060
|
__decorateClass([
|
|
6936
|
-
(0,
|
|
7061
|
+
(0, import_typeorm65.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6937
7062
|
], Lead.prototype, "description", 2);
|
|
6938
7063
|
__decorateClass([
|
|
6939
|
-
(0,
|
|
7064
|
+
(0, import_typeorm65.Column)({
|
|
6940
7065
|
name: "category",
|
|
6941
7066
|
type: "enum",
|
|
6942
7067
|
enum: CategoryEmum,
|
|
@@ -6944,129 +7069,129 @@ __decorateClass([
|
|
|
6944
7069
|
})
|
|
6945
7070
|
], Lead.prototype, "category", 2);
|
|
6946
7071
|
Lead = __decorateClass([
|
|
6947
|
-
(0,
|
|
7072
|
+
(0, import_typeorm65.Entity)("leads")
|
|
6948
7073
|
], Lead);
|
|
6949
7074
|
|
|
6950
7075
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
6951
|
-
var
|
|
7076
|
+
var import_typeorm66 = require("typeorm");
|
|
6952
7077
|
var JobFreelancerRecommendation = class {
|
|
6953
7078
|
};
|
|
6954
7079
|
__decorateClass([
|
|
6955
|
-
(0,
|
|
7080
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_id" })
|
|
6956
7081
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
6957
7082
|
__decorateClass([
|
|
6958
|
-
(0,
|
|
7083
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_uuid" })
|
|
6959
7084
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
6960
7085
|
__decorateClass([
|
|
6961
|
-
(0,
|
|
7086
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_unique_id" })
|
|
6962
7087
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
6963
7088
|
__decorateClass([
|
|
6964
|
-
(0,
|
|
7089
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_role" })
|
|
6965
7090
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
6966
7091
|
__decorateClass([
|
|
6967
|
-
(0,
|
|
7092
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_openings" })
|
|
6968
7093
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
6969
7094
|
__decorateClass([
|
|
6970
|
-
(0,
|
|
7095
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_location" })
|
|
6971
7096
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
6972
7097
|
__decorateClass([
|
|
6973
|
-
(0,
|
|
7098
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_currency" })
|
|
6974
7099
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
6975
7100
|
__decorateClass([
|
|
6976
|
-
(0,
|
|
7101
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_salary_from" })
|
|
6977
7102
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
6978
7103
|
__decorateClass([
|
|
6979
|
-
(0,
|
|
7104
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_salary_to" })
|
|
6980
7105
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
6981
7106
|
__decorateClass([
|
|
6982
|
-
(0,
|
|
7107
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_employment_type" })
|
|
6983
7108
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
6984
7109
|
__decorateClass([
|
|
6985
|
-
(0,
|
|
7110
|
+
(0, import_typeorm66.ViewColumn)({ name: "application_received" })
|
|
6986
7111
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
6987
7112
|
__decorateClass([
|
|
6988
|
-
(0,
|
|
7113
|
+
(0, import_typeorm66.ViewColumn)({ name: "job_posted_at" })
|
|
6989
7114
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
6990
7115
|
__decorateClass([
|
|
6991
|
-
(0,
|
|
7116
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_id" })
|
|
6992
7117
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
6993
7118
|
__decorateClass([
|
|
6994
|
-
(0,
|
|
7119
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_uuid" })
|
|
6995
7120
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
6996
7121
|
__decorateClass([
|
|
6997
|
-
(0,
|
|
7122
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_unique_id" })
|
|
6998
7123
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
6999
7124
|
__decorateClass([
|
|
7000
|
-
(0,
|
|
7125
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_first_name" })
|
|
7001
7126
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
7002
7127
|
__decorateClass([
|
|
7003
|
-
(0,
|
|
7128
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_last_name" })
|
|
7004
7129
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
7005
7130
|
__decorateClass([
|
|
7006
|
-
(0,
|
|
7131
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_email" })
|
|
7007
7132
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
7008
7133
|
__decorateClass([
|
|
7009
|
-
(0,
|
|
7134
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
7010
7135
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
7011
7136
|
__decorateClass([
|
|
7012
|
-
(0,
|
|
7137
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_is_social" })
|
|
7013
7138
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
7014
7139
|
__decorateClass([
|
|
7015
|
-
(0,
|
|
7140
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_created_at" })
|
|
7016
7141
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
7017
7142
|
__decorateClass([
|
|
7018
|
-
(0,
|
|
7143
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_designation" })
|
|
7019
7144
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
7020
7145
|
__decorateClass([
|
|
7021
|
-
(0,
|
|
7146
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_experience" })
|
|
7022
7147
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
7023
7148
|
__decorateClass([
|
|
7024
|
-
(0,
|
|
7149
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
7025
7150
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
7026
7151
|
__decorateClass([
|
|
7027
|
-
(0,
|
|
7152
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
7028
7153
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
7029
7154
|
__decorateClass([
|
|
7030
|
-
(0,
|
|
7155
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_country_name" })
|
|
7031
7156
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
7032
7157
|
__decorateClass([
|
|
7033
|
-
(0,
|
|
7158
|
+
(0, import_typeorm66.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
7034
7159
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
7035
7160
|
__decorateClass([
|
|
7036
|
-
(0,
|
|
7161
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_id" })
|
|
7037
7162
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
7038
7163
|
__decorateClass([
|
|
7039
|
-
(0,
|
|
7164
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_uuid" })
|
|
7040
7165
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
7041
7166
|
__decorateClass([
|
|
7042
|
-
(0,
|
|
7167
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_first_name" })
|
|
7043
7168
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
7044
7169
|
__decorateClass([
|
|
7045
|
-
(0,
|
|
7170
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_last_name" })
|
|
7046
7171
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
7047
7172
|
__decorateClass([
|
|
7048
|
-
(0,
|
|
7173
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_email" })
|
|
7049
7174
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
7050
7175
|
__decorateClass([
|
|
7051
|
-
(0,
|
|
7176
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_company_logo" })
|
|
7052
7177
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
7053
7178
|
__decorateClass([
|
|
7054
|
-
(0,
|
|
7179
|
+
(0, import_typeorm66.ViewColumn)({ name: "client_company_name" })
|
|
7055
7180
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
7056
7181
|
__decorateClass([
|
|
7057
|
-
(0,
|
|
7182
|
+
(0, import_typeorm66.ViewColumn)({ name: "matching_skills" })
|
|
7058
7183
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
7059
7184
|
__decorateClass([
|
|
7060
|
-
(0,
|
|
7185
|
+
(0, import_typeorm66.ViewColumn)({ name: "matching_skills_count" })
|
|
7061
7186
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
7062
7187
|
__decorateClass([
|
|
7063
|
-
(0,
|
|
7188
|
+
(0, import_typeorm66.ViewColumn)({ name: "required_skills" })
|
|
7064
7189
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
7065
7190
|
__decorateClass([
|
|
7066
|
-
(0,
|
|
7191
|
+
(0, import_typeorm66.ViewColumn)({ name: "required_skills_count" })
|
|
7067
7192
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
7068
7193
|
JobFreelancerRecommendation = __decorateClass([
|
|
7069
|
-
(0,
|
|
7194
|
+
(0, import_typeorm66.ViewEntity)({
|
|
7070
7195
|
name: "job_freelancer_recommendations",
|
|
7071
7196
|
materialized: true,
|
|
7072
7197
|
synchronize: false
|
|
@@ -7075,32 +7200,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
7075
7200
|
], JobFreelancerRecommendation);
|
|
7076
7201
|
|
|
7077
7202
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
7078
|
-
var
|
|
7203
|
+
var import_typeorm67 = require("typeorm");
|
|
7079
7204
|
var JobFreelancerRecommendationV2 = class {
|
|
7080
7205
|
};
|
|
7081
7206
|
__decorateClass([
|
|
7082
|
-
(0,
|
|
7207
|
+
(0, import_typeorm67.ViewColumn)({ name: "job_id" })
|
|
7083
7208
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
7084
7209
|
__decorateClass([
|
|
7085
|
-
(0,
|
|
7210
|
+
(0, import_typeorm67.ViewColumn)({ name: "job_owner_id" })
|
|
7086
7211
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
7087
7212
|
__decorateClass([
|
|
7088
|
-
(0,
|
|
7213
|
+
(0, import_typeorm67.ViewColumn)({ name: "freelancer_id" })
|
|
7089
7214
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
7090
7215
|
__decorateClass([
|
|
7091
|
-
(0,
|
|
7216
|
+
(0, import_typeorm67.ViewColumn)({ name: "matching_skills" })
|
|
7092
7217
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
7093
7218
|
__decorateClass([
|
|
7094
|
-
(0,
|
|
7219
|
+
(0, import_typeorm67.ViewColumn)({ name: "matching_skills_count" })
|
|
7095
7220
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
7096
7221
|
__decorateClass([
|
|
7097
|
-
(0,
|
|
7222
|
+
(0, import_typeorm67.ViewColumn)({ name: "required_skills" })
|
|
7098
7223
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
7099
7224
|
__decorateClass([
|
|
7100
|
-
(0,
|
|
7225
|
+
(0, import_typeorm67.ViewColumn)({ name: "required_skills_count" })
|
|
7101
7226
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
7102
7227
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
7103
|
-
(0,
|
|
7228
|
+
(0, import_typeorm67.ViewEntity)({
|
|
7104
7229
|
name: "job_freelancer_recommendations_v2",
|
|
7105
7230
|
materialized: true,
|
|
7106
7231
|
synchronize: false
|
|
@@ -7109,74 +7234,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
7109
7234
|
], JobFreelancerRecommendationV2);
|
|
7110
7235
|
|
|
7111
7236
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
7112
|
-
var
|
|
7237
|
+
var import_typeorm68 = require("typeorm");
|
|
7113
7238
|
var ClientFreelancerRecommendation = class {
|
|
7114
7239
|
};
|
|
7115
7240
|
__decorateClass([
|
|
7116
|
-
(0,
|
|
7241
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_id" })
|
|
7117
7242
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
7118
7243
|
__decorateClass([
|
|
7119
|
-
(0,
|
|
7244
|
+
(0, import_typeorm68.ViewColumn)({ name: "client_uuid" })
|
|
7120
7245
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
7121
7246
|
__decorateClass([
|
|
7122
|
-
(0,
|
|
7247
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_id" })
|
|
7123
7248
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
7124
7249
|
__decorateClass([
|
|
7125
|
-
(0,
|
|
7250
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_uuid" })
|
|
7126
7251
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
7127
7252
|
__decorateClass([
|
|
7128
|
-
(0,
|
|
7253
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_unique_id" })
|
|
7129
7254
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
7130
7255
|
__decorateClass([
|
|
7131
|
-
(0,
|
|
7256
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_first_name" })
|
|
7132
7257
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
7133
7258
|
__decorateClass([
|
|
7134
|
-
(0,
|
|
7259
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_last_name" })
|
|
7135
7260
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
7136
7261
|
__decorateClass([
|
|
7137
|
-
(0,
|
|
7262
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_email" })
|
|
7138
7263
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
7139
7264
|
__decorateClass([
|
|
7140
|
-
(0,
|
|
7265
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
7141
7266
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
7142
7267
|
__decorateClass([
|
|
7143
|
-
(0,
|
|
7268
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_is_social" })
|
|
7144
7269
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
7145
7270
|
__decorateClass([
|
|
7146
|
-
(0,
|
|
7271
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_created_at" })
|
|
7147
7272
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
7148
7273
|
__decorateClass([
|
|
7149
|
-
(0,
|
|
7274
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_designation" })
|
|
7150
7275
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
7151
7276
|
__decorateClass([
|
|
7152
|
-
(0,
|
|
7277
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_experience" })
|
|
7153
7278
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
7154
7279
|
__decorateClass([
|
|
7155
|
-
(0,
|
|
7280
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
7156
7281
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
7157
7282
|
__decorateClass([
|
|
7158
|
-
(0,
|
|
7283
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
7159
7284
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
7160
7285
|
__decorateClass([
|
|
7161
|
-
(0,
|
|
7286
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_country_name" })
|
|
7162
7287
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
7163
7288
|
__decorateClass([
|
|
7164
|
-
(0,
|
|
7289
|
+
(0, import_typeorm68.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
7165
7290
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
7166
7291
|
__decorateClass([
|
|
7167
|
-
(0,
|
|
7292
|
+
(0, import_typeorm68.ViewColumn)({ name: "matching_skills" })
|
|
7168
7293
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
7169
7294
|
__decorateClass([
|
|
7170
|
-
(0,
|
|
7295
|
+
(0, import_typeorm68.ViewColumn)({ name: "matching_skills_count" })
|
|
7171
7296
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
7172
7297
|
__decorateClass([
|
|
7173
|
-
(0,
|
|
7298
|
+
(0, import_typeorm68.ViewColumn)({ name: "required_skills" })
|
|
7174
7299
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
7175
7300
|
__decorateClass([
|
|
7176
|
-
(0,
|
|
7301
|
+
(0, import_typeorm68.ViewColumn)({ name: "required_skills_count" })
|
|
7177
7302
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
7178
7303
|
ClientFreelancerRecommendation = __decorateClass([
|
|
7179
|
-
(0,
|
|
7304
|
+
(0, import_typeorm68.ViewEntity)({
|
|
7180
7305
|
name: "client_freelancer_recommendations",
|
|
7181
7306
|
materialized: true,
|
|
7182
7307
|
synchronize: false
|
|
@@ -7185,7 +7310,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7185
7310
|
], ClientFreelancerRecommendation);
|
|
7186
7311
|
|
|
7187
7312
|
// src/entities/commission.entity.ts
|
|
7188
|
-
var
|
|
7313
|
+
var import_typeorm69 = require("typeorm");
|
|
7189
7314
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7190
7315
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7191
7316
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7194,7 +7319,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7194
7319
|
var Commission = class extends BaseEntity {
|
|
7195
7320
|
};
|
|
7196
7321
|
__decorateClass([
|
|
7197
|
-
(0,
|
|
7322
|
+
(0, import_typeorm69.Column)({
|
|
7198
7323
|
name: "freelancer_commission_type",
|
|
7199
7324
|
type: "enum",
|
|
7200
7325
|
enum: CommissionTypeEnum,
|
|
@@ -7202,10 +7327,10 @@ __decorateClass([
|
|
|
7202
7327
|
})
|
|
7203
7328
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7204
7329
|
__decorateClass([
|
|
7205
|
-
(0,
|
|
7330
|
+
(0, import_typeorm69.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7206
7331
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7207
7332
|
__decorateClass([
|
|
7208
|
-
(0,
|
|
7333
|
+
(0, import_typeorm69.Column)({
|
|
7209
7334
|
name: "client_commission_type",
|
|
7210
7335
|
type: "enum",
|
|
7211
7336
|
enum: CommissionTypeEnum,
|
|
@@ -7213,66 +7338,66 @@ __decorateClass([
|
|
|
7213
7338
|
})
|
|
7214
7339
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7215
7340
|
__decorateClass([
|
|
7216
|
-
(0,
|
|
7341
|
+
(0, import_typeorm69.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
7217
7342
|
], Commission.prototype, "clientCommission", 2);
|
|
7218
7343
|
Commission = __decorateClass([
|
|
7219
|
-
(0,
|
|
7344
|
+
(0, import_typeorm69.Entity)("commissions")
|
|
7220
7345
|
], Commission);
|
|
7221
7346
|
|
|
7222
7347
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7223
|
-
var
|
|
7348
|
+
var import_typeorm70 = require("typeorm");
|
|
7224
7349
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7225
7350
|
};
|
|
7226
7351
|
__decorateClass([
|
|
7227
|
-
(0,
|
|
7228
|
-
(0,
|
|
7352
|
+
(0, import_typeorm70.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7353
|
+
(0, import_typeorm70.Index)()
|
|
7229
7354
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7230
7355
|
__decorateClass([
|
|
7231
|
-
(0,
|
|
7356
|
+
(0, import_typeorm70.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7232
7357
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7233
7358
|
__decorateClass([
|
|
7234
|
-
(0,
|
|
7359
|
+
(0, import_typeorm70.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7235
7360
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7236
7361
|
CalendlyMeetingLog = __decorateClass([
|
|
7237
|
-
(0,
|
|
7362
|
+
(0, import_typeorm70.Entity)("calendly_meeting_logs")
|
|
7238
7363
|
], CalendlyMeetingLog);
|
|
7239
7364
|
|
|
7240
7365
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7241
|
-
var
|
|
7366
|
+
var import_typeorm71 = require("typeorm");
|
|
7242
7367
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7243
7368
|
};
|
|
7244
7369
|
__decorateClass([
|
|
7245
|
-
(0,
|
|
7246
|
-
(0,
|
|
7370
|
+
(0, import_typeorm71.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7371
|
+
(0, import_typeorm71.Index)()
|
|
7247
7372
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7248
7373
|
__decorateClass([
|
|
7249
|
-
(0,
|
|
7374
|
+
(0, import_typeorm71.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7250
7375
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7251
7376
|
__decorateClass([
|
|
7252
|
-
(0,
|
|
7377
|
+
(0, import_typeorm71.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7253
7378
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7254
7379
|
ZoomMeetingLog = __decorateClass([
|
|
7255
|
-
(0,
|
|
7380
|
+
(0, import_typeorm71.Entity)("zoom_meeting_logs")
|
|
7256
7381
|
], ZoomMeetingLog);
|
|
7257
7382
|
|
|
7258
7383
|
// src/entities/stripe-logs.entity.ts
|
|
7259
|
-
var
|
|
7384
|
+
var import_typeorm72 = require("typeorm");
|
|
7260
7385
|
var StripeLog = class extends BaseEntity {
|
|
7261
7386
|
};
|
|
7262
7387
|
__decorateClass([
|
|
7263
|
-
(0,
|
|
7388
|
+
(0, import_typeorm72.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7264
7389
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7265
7390
|
__decorateClass([
|
|
7266
|
-
(0,
|
|
7391
|
+
(0, import_typeorm72.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
7267
7392
|
], StripeLog.prototype, "eventType", 2);
|
|
7268
7393
|
__decorateClass([
|
|
7269
|
-
(0,
|
|
7394
|
+
(0, import_typeorm72.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7270
7395
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7271
7396
|
__decorateClass([
|
|
7272
|
-
(0,
|
|
7397
|
+
(0, import_typeorm72.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7273
7398
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7274
7399
|
StripeLog = __decorateClass([
|
|
7275
|
-
(0,
|
|
7400
|
+
(0, import_typeorm72.Entity)("stripe_logs")
|
|
7276
7401
|
], StripeLog);
|
|
7277
7402
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7278
7403
|
0 && (module.exports = {
|
|
@@ -7350,6 +7475,7 @@ StripeLog = __decorateClass([
|
|
|
7350
7475
|
CreateCmsDto,
|
|
7351
7476
|
CreateCompanyMemberDto,
|
|
7352
7477
|
CreateCompanyRoleDto,
|
|
7478
|
+
CreateF2FInterviewDirectDto,
|
|
7353
7479
|
CreateF2FInterviewDto,
|
|
7354
7480
|
CreateF2FInterviewRescheduleRequestDto,
|
|
7355
7481
|
CreateFreelancerDto,
|