@experts_hub/shared 1.0.651 → 1.0.652
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/contract.entity.d.ts +3 -0
- package/dist/entities/docuseal.entity.d.ts +9 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +846 -812
- package/dist/index.mjs +860 -827
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -982,13 +982,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
|
|
|
982
982
|
|
|
983
983
|
// src/entities/user.entity.ts
|
|
984
984
|
import {
|
|
985
|
-
Entity as
|
|
986
|
-
Column as
|
|
987
|
-
OneToMany as
|
|
985
|
+
Entity as Entity66,
|
|
986
|
+
Column as Column67,
|
|
987
|
+
OneToMany as OneToMany24,
|
|
988
988
|
OneToOne as OneToOne13,
|
|
989
|
-
Index as
|
|
990
|
-
ManyToOne as
|
|
991
|
-
JoinColumn as
|
|
989
|
+
Index as Index59,
|
|
990
|
+
ManyToOne as ManyToOne61,
|
|
991
|
+
JoinColumn as JoinColumn62
|
|
992
992
|
} from "typeorm";
|
|
993
993
|
|
|
994
994
|
// src/entities/base.entity.ts
|
|
@@ -1859,12 +1859,12 @@ FreelancerProfile = __decorateClass([
|
|
|
1859
1859
|
|
|
1860
1860
|
// src/entities/job.entity.ts
|
|
1861
1861
|
import {
|
|
1862
|
-
Entity as
|
|
1863
|
-
Column as
|
|
1864
|
-
Index as
|
|
1865
|
-
ManyToOne as
|
|
1866
|
-
JoinColumn as
|
|
1867
|
-
OneToMany as
|
|
1862
|
+
Entity as Entity35,
|
|
1863
|
+
Column as Column36,
|
|
1864
|
+
Index as Index28,
|
|
1865
|
+
ManyToOne as ManyToOne34,
|
|
1866
|
+
JoinColumn as JoinColumn34,
|
|
1867
|
+
OneToMany as OneToMany15
|
|
1868
1868
|
} from "typeorm";
|
|
1869
1869
|
|
|
1870
1870
|
// src/entities/job-skill.entity.ts
|
|
@@ -2943,7 +2943,7 @@ JobRecommendation = __decorateClass([
|
|
|
2943
2943
|
], JobRecommendation);
|
|
2944
2944
|
|
|
2945
2945
|
// src/entities/contract.entity.ts
|
|
2946
|
-
import { Entity as
|
|
2946
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30, OneToOne as OneToOne10 } from "typeorm";
|
|
2947
2947
|
|
|
2948
2948
|
// src/entities/escrow-wallet.entity.ts
|
|
2949
2949
|
import { Entity as Entity29, Column as Column30, Index as Index22, JoinColumn as JoinColumn28, OneToOne as OneToOne9, OneToMany as OneToMany12, ManyToOne as ManyToOne28 } from "typeorm";
|
|
@@ -3580,6 +3580,32 @@ EscrowWallet = __decorateClass([
|
|
|
3580
3580
|
Entity29("escrow_wallets")
|
|
3581
3581
|
], EscrowWallet);
|
|
3582
3582
|
|
|
3583
|
+
// src/entities/docuseal.entity.ts
|
|
3584
|
+
import { Entity as Entity30, Column as Column31, Index as Index23, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29 } from "typeorm";
|
|
3585
|
+
var DocuSeal = class extends BaseEntity {
|
|
3586
|
+
};
|
|
3587
|
+
__decorateClass([
|
|
3588
|
+
Column31({ name: "contract_id", type: "integer", nullable: true }),
|
|
3589
|
+
Index23()
|
|
3590
|
+
], DocuSeal.prototype, "contractId", 2);
|
|
3591
|
+
__decorateClass([
|
|
3592
|
+
ManyToOne29(() => Contract, (contract) => contract.docuseal),
|
|
3593
|
+
JoinColumn29({ name: "contract_id" })
|
|
3594
|
+
], DocuSeal.prototype, "contract", 2);
|
|
3595
|
+
__decorateClass([
|
|
3596
|
+
Column31({ name: "submitter_id", type: "integer", nullable: true }),
|
|
3597
|
+
Index23()
|
|
3598
|
+
], DocuSeal.prototype, "submitterId", 2);
|
|
3599
|
+
__decorateClass([
|
|
3600
|
+
Column31({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
3601
|
+
], DocuSeal.prototype, "submitterResponse", 2);
|
|
3602
|
+
__decorateClass([
|
|
3603
|
+
Column31({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
3604
|
+
], DocuSeal.prototype, "webhookResponse", 2);
|
|
3605
|
+
DocuSeal = __decorateClass([
|
|
3606
|
+
Entity30("docuseal")
|
|
3607
|
+
], DocuSeal);
|
|
3608
|
+
|
|
3583
3609
|
// src/entities/contract.entity.ts
|
|
3584
3610
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3585
3611
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3605,45 +3631,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3605
3631
|
var Contract = class extends BaseEntity {
|
|
3606
3632
|
};
|
|
3607
3633
|
__decorateClass([
|
|
3608
|
-
|
|
3634
|
+
Column32({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3609
3635
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3610
3636
|
__decorateClass([
|
|
3611
|
-
|
|
3612
|
-
|
|
3637
|
+
Column32({ name: "contract_summary_id", type: "integer", nullable: true }),
|
|
3638
|
+
Index24()
|
|
3613
3639
|
], Contract.prototype, "contractSummaryId", 2);
|
|
3614
3640
|
__decorateClass([
|
|
3615
|
-
|
|
3616
|
-
|
|
3641
|
+
ManyToOne30(() => ContractSummary, (contractSummary) => contractSummary.contracts),
|
|
3642
|
+
JoinColumn30({ name: "contract_summary_id" })
|
|
3617
3643
|
], Contract.prototype, "contractSummary", 2);
|
|
3618
3644
|
__decorateClass([
|
|
3619
|
-
|
|
3620
|
-
|
|
3645
|
+
Column32({ name: "job_id", type: "integer", nullable: true }),
|
|
3646
|
+
Index24()
|
|
3621
3647
|
], Contract.prototype, "jobId", 2);
|
|
3622
3648
|
__decorateClass([
|
|
3623
|
-
|
|
3624
|
-
|
|
3649
|
+
ManyToOne30(() => Job, (job) => job.contracts),
|
|
3650
|
+
JoinColumn30({ name: "job_id" })
|
|
3625
3651
|
], Contract.prototype, "job", 2);
|
|
3626
3652
|
__decorateClass([
|
|
3627
|
-
|
|
3628
|
-
|
|
3653
|
+
Column32({ name: "client_id", type: "integer", nullable: true }),
|
|
3654
|
+
Index24()
|
|
3629
3655
|
], Contract.prototype, "clientId", 2);
|
|
3630
3656
|
__decorateClass([
|
|
3631
|
-
|
|
3632
|
-
|
|
3657
|
+
ManyToOne30(() => User, (user) => user.clientContracts),
|
|
3658
|
+
JoinColumn30({ name: "client_id" })
|
|
3633
3659
|
], Contract.prototype, "client", 2);
|
|
3634
3660
|
__decorateClass([
|
|
3635
|
-
|
|
3636
|
-
|
|
3661
|
+
Column32({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3662
|
+
Index24()
|
|
3637
3663
|
], Contract.prototype, "freelancerId", 2);
|
|
3638
3664
|
__decorateClass([
|
|
3639
|
-
|
|
3640
|
-
|
|
3665
|
+
ManyToOne30(() => User, (user) => user.freelancerContracts),
|
|
3666
|
+
JoinColumn30({ name: "freelancer_id" })
|
|
3641
3667
|
], Contract.prototype, "freelancer", 2);
|
|
3642
3668
|
__decorateClass([
|
|
3643
|
-
|
|
3669
|
+
Column32({ name: "duration", type: "integer", nullable: true })
|
|
3644
3670
|
], Contract.prototype, "duration", 2);
|
|
3645
3671
|
__decorateClass([
|
|
3646
|
-
|
|
3672
|
+
Column32({
|
|
3647
3673
|
name: "status",
|
|
3648
3674
|
type: "enum",
|
|
3649
3675
|
enum: ContractStatusEnum,
|
|
@@ -3651,7 +3677,7 @@ __decorateClass([
|
|
|
3651
3677
|
})
|
|
3652
3678
|
], Contract.prototype, "status", 2);
|
|
3653
3679
|
__decorateClass([
|
|
3654
|
-
|
|
3680
|
+
Column32({
|
|
3655
3681
|
name: "type",
|
|
3656
3682
|
type: "enum",
|
|
3657
3683
|
enum: ContractTypeEnum,
|
|
@@ -3659,10 +3685,10 @@ __decorateClass([
|
|
|
3659
3685
|
})
|
|
3660
3686
|
], Contract.prototype, "type", 2);
|
|
3661
3687
|
__decorateClass([
|
|
3662
|
-
|
|
3688
|
+
Column32({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3663
3689
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3664
3690
|
__decorateClass([
|
|
3665
|
-
|
|
3691
|
+
Column32({
|
|
3666
3692
|
name: "escrow_deposite_amount",
|
|
3667
3693
|
type: "decimal",
|
|
3668
3694
|
precision: 10,
|
|
@@ -3671,97 +3697,103 @@ __decorateClass([
|
|
|
3671
3697
|
})
|
|
3672
3698
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3673
3699
|
__decorateClass([
|
|
3674
|
-
|
|
3700
|
+
Column32({
|
|
3675
3701
|
name: "start_date",
|
|
3676
3702
|
type: "timestamp with time zone",
|
|
3677
3703
|
nullable: true
|
|
3678
3704
|
})
|
|
3679
3705
|
], Contract.prototype, "startDate", 2);
|
|
3680
3706
|
__decorateClass([
|
|
3681
|
-
|
|
3707
|
+
Column32({
|
|
3682
3708
|
name: "end_date",
|
|
3683
3709
|
type: "timestamp with time zone",
|
|
3684
3710
|
nullable: true
|
|
3685
3711
|
})
|
|
3686
3712
|
], Contract.prototype, "endDate", 2);
|
|
3687
3713
|
__decorateClass([
|
|
3688
|
-
|
|
3714
|
+
Column32({
|
|
3689
3715
|
name: "actual_start_date",
|
|
3690
3716
|
type: "timestamp with time zone",
|
|
3691
3717
|
nullable: true
|
|
3692
3718
|
})
|
|
3693
3719
|
], Contract.prototype, "actualStartDate", 2);
|
|
3694
3720
|
__decorateClass([
|
|
3695
|
-
|
|
3721
|
+
Column32({
|
|
3696
3722
|
name: "actual_end_date",
|
|
3697
3723
|
type: "timestamp with time zone",
|
|
3698
3724
|
nullable: true
|
|
3699
3725
|
})
|
|
3700
3726
|
], Contract.prototype, "actualEndDate", 2);
|
|
3701
3727
|
__decorateClass([
|
|
3702
|
-
|
|
3728
|
+
Column32({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3703
3729
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3704
3730
|
__decorateClass([
|
|
3705
|
-
|
|
3731
|
+
Column32({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3706
3732
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3707
3733
|
__decorateClass([
|
|
3708
|
-
|
|
3734
|
+
Column32({
|
|
3709
3735
|
name: "client_signed_at",
|
|
3710
3736
|
type: "timestamp with time zone",
|
|
3711
3737
|
nullable: true
|
|
3712
3738
|
})
|
|
3713
3739
|
], Contract.prototype, "clientSignedAt", 2);
|
|
3714
3740
|
__decorateClass([
|
|
3715
|
-
|
|
3741
|
+
Column32({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3716
3742
|
], Contract.prototype, "freelancerViewed", 2);
|
|
3717
3743
|
__decorateClass([
|
|
3718
|
-
|
|
3744
|
+
Column32({
|
|
3719
3745
|
name: "freelancer_viewed_at",
|
|
3720
3746
|
type: "timestamp with time zone",
|
|
3721
3747
|
nullable: true
|
|
3722
3748
|
})
|
|
3723
3749
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3724
3750
|
__decorateClass([
|
|
3725
|
-
|
|
3751
|
+
Column32({
|
|
3726
3752
|
name: "freelancer_signed_at",
|
|
3727
3753
|
type: "timestamp with time zone",
|
|
3728
3754
|
nullable: true
|
|
3729
3755
|
})
|
|
3730
3756
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3731
3757
|
__decorateClass([
|
|
3732
|
-
|
|
3758
|
+
Column32({
|
|
3733
3759
|
name: "rejectd_at",
|
|
3734
3760
|
type: "timestamp with time zone",
|
|
3735
3761
|
nullable: true
|
|
3736
3762
|
})
|
|
3737
3763
|
], Contract.prototype, "rejectedAt", 2);
|
|
3738
3764
|
__decorateClass([
|
|
3739
|
-
|
|
3765
|
+
Column32({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3740
3766
|
], Contract.prototype, "rejectReason", 2);
|
|
3741
3767
|
__decorateClass([
|
|
3742
|
-
|
|
3768
|
+
Column32({ name: "resend_count", type: "integer", default: 0 })
|
|
3743
3769
|
], Contract.prototype, "resendCount", 2);
|
|
3744
3770
|
__decorateClass([
|
|
3745
|
-
|
|
3771
|
+
Column32({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3746
3772
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
3747
3773
|
__decorateClass([
|
|
3748
|
-
|
|
3774
|
+
Column32({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3749
3775
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3750
3776
|
__decorateClass([
|
|
3751
|
-
|
|
3777
|
+
Column32({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3752
3778
|
], Contract.prototype, "signaturePositions", 2);
|
|
3753
3779
|
__decorateClass([
|
|
3754
|
-
|
|
3780
|
+
Column32({ name: "signature_url", type: "varchar", nullable: true })
|
|
3781
|
+
], Contract.prototype, "signatureUrl", 2);
|
|
3782
|
+
__decorateClass([
|
|
3783
|
+
Column32({ name: "meta_data", type: "jsonb", nullable: true })
|
|
3755
3784
|
], Contract.prototype, "metaData", 2);
|
|
3756
3785
|
__decorateClass([
|
|
3757
3786
|
OneToOne10(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
3758
3787
|
], Contract.prototype, "escrowWallet", 2);
|
|
3788
|
+
__decorateClass([
|
|
3789
|
+
OneToOne10(() => DocuSeal, (docuseal) => docuseal.contract)
|
|
3790
|
+
], Contract.prototype, "docuseal", 2);
|
|
3759
3791
|
Contract = __decorateClass([
|
|
3760
|
-
|
|
3792
|
+
Entity31("contracts")
|
|
3761
3793
|
], Contract);
|
|
3762
3794
|
|
|
3763
3795
|
// src/entities/timesheets.entity.ts
|
|
3764
|
-
import { Entity as
|
|
3796
|
+
import { Entity as Entity32, Column as Column33, Index as Index25, JoinColumn as JoinColumn31, ManyToOne as ManyToOne31 } from "typeorm";
|
|
3765
3797
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3766
3798
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3767
3799
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3774,146 +3806,146 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3774
3806
|
var Timesheet = class extends BaseEntity {
|
|
3775
3807
|
};
|
|
3776
3808
|
__decorateClass([
|
|
3777
|
-
|
|
3778
|
-
|
|
3809
|
+
Column33({ name: "job_id", type: "integer", nullable: true }),
|
|
3810
|
+
Index25()
|
|
3779
3811
|
], Timesheet.prototype, "jobId", 2);
|
|
3780
3812
|
__decorateClass([
|
|
3781
|
-
|
|
3782
|
-
|
|
3813
|
+
ManyToOne31(() => Job, (job) => job.timesheets),
|
|
3814
|
+
JoinColumn31({ name: "job_id" })
|
|
3783
3815
|
], Timesheet.prototype, "job", 2);
|
|
3784
3816
|
__decorateClass([
|
|
3785
|
-
|
|
3786
|
-
|
|
3817
|
+
Column33({ name: "client_id", type: "integer", nullable: true }),
|
|
3818
|
+
Index25()
|
|
3787
3819
|
], Timesheet.prototype, "clientId", 2);
|
|
3788
3820
|
__decorateClass([
|
|
3789
|
-
|
|
3790
|
-
|
|
3821
|
+
ManyToOne31(() => User, (user) => user.clientTimesheets),
|
|
3822
|
+
JoinColumn31({ name: "client_id" })
|
|
3791
3823
|
], Timesheet.prototype, "client", 2);
|
|
3792
3824
|
__decorateClass([
|
|
3793
|
-
|
|
3794
|
-
|
|
3825
|
+
Column33({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3826
|
+
Index25()
|
|
3795
3827
|
], Timesheet.prototype, "freelancerId", 2);
|
|
3796
3828
|
__decorateClass([
|
|
3797
|
-
|
|
3798
|
-
|
|
3829
|
+
ManyToOne31(() => User, (user) => user.freelancerTimesheets),
|
|
3830
|
+
JoinColumn31({ name: "freelancer_id" })
|
|
3799
3831
|
], Timesheet.prototype, "freelancer", 2);
|
|
3800
3832
|
__decorateClass([
|
|
3801
|
-
|
|
3833
|
+
Column33({
|
|
3802
3834
|
name: "start_date",
|
|
3803
3835
|
type: "date",
|
|
3804
3836
|
nullable: true
|
|
3805
3837
|
})
|
|
3806
3838
|
], Timesheet.prototype, "startDate", 2);
|
|
3807
3839
|
__decorateClass([
|
|
3808
|
-
|
|
3840
|
+
Column33({
|
|
3809
3841
|
name: "end_date",
|
|
3810
3842
|
type: "date",
|
|
3811
3843
|
nullable: true
|
|
3812
3844
|
})
|
|
3813
3845
|
], Timesheet.prototype, "endDate", 2);
|
|
3814
3846
|
__decorateClass([
|
|
3815
|
-
|
|
3847
|
+
Column33({ name: "start_time", type: "varchar", nullable: true })
|
|
3816
3848
|
], Timesheet.prototype, "startTime", 2);
|
|
3817
3849
|
__decorateClass([
|
|
3818
|
-
|
|
3850
|
+
Column33({ name: "end_time", type: "varchar", nullable: true })
|
|
3819
3851
|
], Timesheet.prototype, "endTime", 2);
|
|
3820
3852
|
__decorateClass([
|
|
3821
|
-
|
|
3853
|
+
Column33({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3822
3854
|
], Timesheet.prototype, "workedHours", 2);
|
|
3823
3855
|
__decorateClass([
|
|
3824
|
-
|
|
3856
|
+
Column33({ name: "task_id", type: "integer", nullable: true })
|
|
3825
3857
|
], Timesheet.prototype, "taskId", 2);
|
|
3826
3858
|
__decorateClass([
|
|
3827
|
-
|
|
3859
|
+
Column33({ name: "task_name", type: "varchar", nullable: true })
|
|
3828
3860
|
], Timesheet.prototype, "taskName", 2);
|
|
3829
3861
|
__decorateClass([
|
|
3830
|
-
|
|
3862
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
3831
3863
|
], Timesheet.prototype, "description", 2);
|
|
3832
3864
|
__decorateClass([
|
|
3833
|
-
|
|
3865
|
+
Column33({ name: "week_start_date", type: "date", nullable: true })
|
|
3834
3866
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
3835
3867
|
__decorateClass([
|
|
3836
|
-
|
|
3868
|
+
Column33({ name: "week_end_date", type: "date", nullable: true })
|
|
3837
3869
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
3838
3870
|
__decorateClass([
|
|
3839
|
-
|
|
3871
|
+
Column33({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3840
3872
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
3841
3873
|
__decorateClass([
|
|
3842
|
-
|
|
3874
|
+
Column33({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3843
3875
|
], Timesheet.prototype, "submittedAt", 2);
|
|
3844
3876
|
__decorateClass([
|
|
3845
|
-
|
|
3877
|
+
Column33({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3846
3878
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3847
3879
|
__decorateClass([
|
|
3848
|
-
|
|
3880
|
+
Column33({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3849
3881
|
], Timesheet.prototype, "approvedAt", 2);
|
|
3850
3882
|
__decorateClass([
|
|
3851
|
-
|
|
3883
|
+
Column33({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3852
3884
|
], Timesheet.prototype, "status", 2);
|
|
3853
3885
|
__decorateClass([
|
|
3854
|
-
|
|
3886
|
+
Column33({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3855
3887
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3856
3888
|
Timesheet = __decorateClass([
|
|
3857
|
-
|
|
3889
|
+
Entity32("timesheets")
|
|
3858
3890
|
], Timesheet);
|
|
3859
3891
|
|
|
3860
3892
|
// src/entities/job-location.entity.ts
|
|
3861
3893
|
import {
|
|
3862
|
-
Entity as
|
|
3863
|
-
Column as
|
|
3864
|
-
ManyToOne as
|
|
3865
|
-
JoinColumn as
|
|
3866
|
-
Index as
|
|
3894
|
+
Entity as Entity33,
|
|
3895
|
+
Column as Column34,
|
|
3896
|
+
ManyToOne as ManyToOne32,
|
|
3897
|
+
JoinColumn as JoinColumn32,
|
|
3898
|
+
Index as Index26
|
|
3867
3899
|
} from "typeorm";
|
|
3868
3900
|
var JobLocation = class extends BaseEntity {
|
|
3869
3901
|
};
|
|
3870
3902
|
__decorateClass([
|
|
3871
|
-
|
|
3872
|
-
|
|
3903
|
+
Column34({ name: "job_id", type: "integer", nullable: false }),
|
|
3904
|
+
Index26()
|
|
3873
3905
|
], JobLocation.prototype, "jobId", 2);
|
|
3874
3906
|
__decorateClass([
|
|
3875
|
-
|
|
3876
|
-
|
|
3907
|
+
ManyToOne32(() => Job, (job) => job.jobLocations),
|
|
3908
|
+
JoinColumn32({ name: "job_id" })
|
|
3877
3909
|
], JobLocation.prototype, "job", 2);
|
|
3878
3910
|
__decorateClass([
|
|
3879
|
-
|
|
3911
|
+
Column34({ name: "country_id", type: "int", nullable: false })
|
|
3880
3912
|
], JobLocation.prototype, "countryId", 2);
|
|
3881
3913
|
__decorateClass([
|
|
3882
|
-
|
|
3914
|
+
Column34({ name: "country_name", type: "varchar", nullable: true })
|
|
3883
3915
|
], JobLocation.prototype, "countryName", 2);
|
|
3884
3916
|
__decorateClass([
|
|
3885
|
-
|
|
3886
|
-
|
|
3917
|
+
ManyToOne32(() => Country),
|
|
3918
|
+
JoinColumn32({ name: "country_id" })
|
|
3887
3919
|
], JobLocation.prototype, "country", 2);
|
|
3888
3920
|
__decorateClass([
|
|
3889
|
-
|
|
3921
|
+
Column34({ name: "state_id", type: "int", nullable: false })
|
|
3890
3922
|
], JobLocation.prototype, "stateId", 2);
|
|
3891
3923
|
__decorateClass([
|
|
3892
|
-
|
|
3924
|
+
Column34({ name: "state_name", type: "varchar", nullable: true })
|
|
3893
3925
|
], JobLocation.prototype, "stateName", 2);
|
|
3894
3926
|
__decorateClass([
|
|
3895
|
-
|
|
3896
|
-
|
|
3927
|
+
ManyToOne32(() => State),
|
|
3928
|
+
JoinColumn32({ name: "state_id" })
|
|
3897
3929
|
], JobLocation.prototype, "state", 2);
|
|
3898
3930
|
__decorateClass([
|
|
3899
|
-
|
|
3931
|
+
Column34({ name: "city_id", type: "int", nullable: false })
|
|
3900
3932
|
], JobLocation.prototype, "cityId", 2);
|
|
3901
3933
|
__decorateClass([
|
|
3902
|
-
|
|
3934
|
+
Column34({ name: "city_name", type: "varchar", nullable: true })
|
|
3903
3935
|
], JobLocation.prototype, "cityName", 2);
|
|
3904
3936
|
__decorateClass([
|
|
3905
|
-
|
|
3906
|
-
|
|
3937
|
+
ManyToOne32(() => City),
|
|
3938
|
+
JoinColumn32({ name: "city_id" })
|
|
3907
3939
|
], JobLocation.prototype, "city", 2);
|
|
3908
3940
|
__decorateClass([
|
|
3909
|
-
|
|
3941
|
+
Column34({ name: "location_wise_openings", type: "int", default: 0 })
|
|
3910
3942
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
3911
3943
|
JobLocation = __decorateClass([
|
|
3912
|
-
|
|
3944
|
+
Entity33("job_locations")
|
|
3913
3945
|
], JobLocation);
|
|
3914
3946
|
|
|
3915
3947
|
// src/entities/rating.entity.ts
|
|
3916
|
-
import { Entity as
|
|
3948
|
+
import { Entity as Entity34, Column as Column35, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33, Index as Index27 } from "typeorm";
|
|
3917
3949
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
3918
3950
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
3919
3951
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -3922,31 +3954,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3922
3954
|
var Rating = class extends BaseEntity {
|
|
3923
3955
|
};
|
|
3924
3956
|
__decorateClass([
|
|
3925
|
-
|
|
3926
|
-
|
|
3957
|
+
Column35({ name: "reviewer_id", type: "integer" }),
|
|
3958
|
+
Index27()
|
|
3927
3959
|
], Rating.prototype, "reviewerId", 2);
|
|
3928
3960
|
__decorateClass([
|
|
3929
|
-
|
|
3930
|
-
|
|
3961
|
+
ManyToOne33(() => User, { onDelete: "CASCADE" }),
|
|
3962
|
+
JoinColumn33({ name: "reviewer_id" })
|
|
3931
3963
|
], Rating.prototype, "reviewer", 2);
|
|
3932
3964
|
__decorateClass([
|
|
3933
|
-
|
|
3934
|
-
|
|
3965
|
+
Column35({ name: "reviewee_id", type: "integer" }),
|
|
3966
|
+
Index27()
|
|
3935
3967
|
], Rating.prototype, "revieweeId", 2);
|
|
3936
3968
|
__decorateClass([
|
|
3937
|
-
|
|
3938
|
-
|
|
3969
|
+
ManyToOne33(() => User, { onDelete: "CASCADE" }),
|
|
3970
|
+
JoinColumn33({ name: "reviewee_id" })
|
|
3939
3971
|
], Rating.prototype, "reviewee", 2);
|
|
3940
3972
|
__decorateClass([
|
|
3941
|
-
|
|
3942
|
-
|
|
3973
|
+
Column35({ name: "job_id", type: "integer" }),
|
|
3974
|
+
Index27()
|
|
3943
3975
|
], Rating.prototype, "jobId", 2);
|
|
3944
3976
|
__decorateClass([
|
|
3945
|
-
|
|
3946
|
-
|
|
3977
|
+
ManyToOne33(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
3978
|
+
JoinColumn33({ name: "job_id" })
|
|
3947
3979
|
], Rating.prototype, "job", 2);
|
|
3948
3980
|
__decorateClass([
|
|
3949
|
-
|
|
3981
|
+
Column35({
|
|
3950
3982
|
name: "rating_type",
|
|
3951
3983
|
type: "enum",
|
|
3952
3984
|
enum: RatingTypeEnum,
|
|
@@ -3954,67 +3986,67 @@ __decorateClass([
|
|
|
3954
3986
|
})
|
|
3955
3987
|
], Rating.prototype, "ratingType", 2);
|
|
3956
3988
|
__decorateClass([
|
|
3957
|
-
|
|
3989
|
+
Column35({ name: "reviewer_comment", type: "text", nullable: true })
|
|
3958
3990
|
], Rating.prototype, "reviewerComment", 2);
|
|
3959
3991
|
__decorateClass([
|
|
3960
|
-
|
|
3992
|
+
Column35({
|
|
3961
3993
|
name: "overall_experience",
|
|
3962
3994
|
type: "float",
|
|
3963
3995
|
default: 0
|
|
3964
3996
|
})
|
|
3965
3997
|
], Rating.prototype, "overAllExperience", 2);
|
|
3966
3998
|
__decorateClass([
|
|
3967
|
-
|
|
3999
|
+
Column35({
|
|
3968
4000
|
name: "work_quality",
|
|
3969
4001
|
type: "float",
|
|
3970
4002
|
default: 0
|
|
3971
4003
|
})
|
|
3972
4004
|
], Rating.prototype, "workQuality", 2);
|
|
3973
4005
|
__decorateClass([
|
|
3974
|
-
|
|
4006
|
+
Column35({
|
|
3975
4007
|
name: "one_time_delivery",
|
|
3976
4008
|
type: "float",
|
|
3977
4009
|
default: 0
|
|
3978
4010
|
})
|
|
3979
4011
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
3980
4012
|
__decorateClass([
|
|
3981
|
-
|
|
4013
|
+
Column35({
|
|
3982
4014
|
name: "understaning",
|
|
3983
4015
|
type: "float",
|
|
3984
4016
|
default: 0
|
|
3985
4017
|
})
|
|
3986
4018
|
], Rating.prototype, "understaning", 2);
|
|
3987
4019
|
__decorateClass([
|
|
3988
|
-
|
|
4020
|
+
Column35({
|
|
3989
4021
|
name: "communication",
|
|
3990
4022
|
type: "float",
|
|
3991
4023
|
default: 0
|
|
3992
4024
|
})
|
|
3993
4025
|
], Rating.prototype, "communication", 2);
|
|
3994
4026
|
__decorateClass([
|
|
3995
|
-
|
|
4027
|
+
Column35({
|
|
3996
4028
|
name: "skill_utilized",
|
|
3997
4029
|
type: "float",
|
|
3998
4030
|
default: 0
|
|
3999
4031
|
})
|
|
4000
4032
|
], Rating.prototype, "skillUtilized", 2);
|
|
4001
4033
|
__decorateClass([
|
|
4002
|
-
|
|
4034
|
+
Column35({ name: "communication_clarity", type: "float", default: 0 })
|
|
4003
4035
|
], Rating.prototype, "communicationClarity", 2);
|
|
4004
4036
|
__decorateClass([
|
|
4005
|
-
|
|
4037
|
+
Column35({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4006
4038
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4007
4039
|
__decorateClass([
|
|
4008
|
-
|
|
4040
|
+
Column35({ name: "responsiveness", type: "float", default: 0 })
|
|
4009
4041
|
], Rating.prototype, "responsiveness", 2);
|
|
4010
4042
|
__decorateClass([
|
|
4011
|
-
|
|
4043
|
+
Column35({ name: "payment_promptness", type: "float", default: 0 })
|
|
4012
4044
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4013
4045
|
__decorateClass([
|
|
4014
|
-
|
|
4046
|
+
Column35({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4015
4047
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4016
4048
|
Rating = __decorateClass([
|
|
4017
|
-
|
|
4049
|
+
Entity34("ratings")
|
|
4018
4050
|
], Rating);
|
|
4019
4051
|
|
|
4020
4052
|
// src/entities/job.entity.ts
|
|
@@ -4069,58 +4101,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4069
4101
|
var Job = class extends BaseEntity {
|
|
4070
4102
|
};
|
|
4071
4103
|
__decorateClass([
|
|
4072
|
-
|
|
4104
|
+
Column36({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4073
4105
|
], Job.prototype, "jobId", 2);
|
|
4074
4106
|
// individual index to find jobs by user
|
|
4075
4107
|
__decorateClass([
|
|
4076
|
-
|
|
4077
|
-
|
|
4108
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4109
|
+
Index28()
|
|
4078
4110
|
], Job.prototype, "userId", 2);
|
|
4079
4111
|
__decorateClass([
|
|
4080
|
-
|
|
4081
|
-
|
|
4112
|
+
ManyToOne34(() => User, (user) => user.jobs),
|
|
4113
|
+
JoinColumn34({ name: "user_id" })
|
|
4082
4114
|
], Job.prototype, "user", 2);
|
|
4083
4115
|
__decorateClass([
|
|
4084
|
-
|
|
4116
|
+
Column36({ name: "country_id", type: "int", nullable: true })
|
|
4085
4117
|
], Job.prototype, "countryId", 2);
|
|
4086
4118
|
__decorateClass([
|
|
4087
|
-
|
|
4088
|
-
|
|
4119
|
+
ManyToOne34(() => Country),
|
|
4120
|
+
JoinColumn34({ name: "country_id" })
|
|
4089
4121
|
], Job.prototype, "country", 2);
|
|
4090
4122
|
__decorateClass([
|
|
4091
|
-
|
|
4123
|
+
Column36({ name: "state_id", type: "int", nullable: true })
|
|
4092
4124
|
], Job.prototype, "stateId", 2);
|
|
4093
4125
|
__decorateClass([
|
|
4094
|
-
|
|
4095
|
-
|
|
4126
|
+
ManyToOne34(() => State),
|
|
4127
|
+
JoinColumn34({ name: "state_id" })
|
|
4096
4128
|
], Job.prototype, "state", 2);
|
|
4097
4129
|
__decorateClass([
|
|
4098
|
-
|
|
4130
|
+
Column36({ name: "city_id", type: "int", nullable: true })
|
|
4099
4131
|
], Job.prototype, "cityId", 2);
|
|
4100
4132
|
__decorateClass([
|
|
4101
|
-
|
|
4102
|
-
|
|
4133
|
+
ManyToOne34(() => City),
|
|
4134
|
+
JoinColumn34({ name: "city_id" })
|
|
4103
4135
|
], Job.prototype, "city", 2);
|
|
4104
4136
|
__decorateClass([
|
|
4105
|
-
|
|
4137
|
+
Column36({ name: "job_role", type: "varchar", nullable: true })
|
|
4106
4138
|
], Job.prototype, "jobRole", 2);
|
|
4107
4139
|
__decorateClass([
|
|
4108
|
-
|
|
4140
|
+
Column36({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4109
4141
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4110
4142
|
__decorateClass([
|
|
4111
|
-
|
|
4143
|
+
Column36({ name: "project_name", type: "varchar", nullable: true })
|
|
4112
4144
|
], Job.prototype, "projectName", 2);
|
|
4113
4145
|
__decorateClass([
|
|
4114
|
-
|
|
4146
|
+
Column36({ name: "note", type: "varchar", nullable: true })
|
|
4115
4147
|
], Job.prototype, "note", 2);
|
|
4116
4148
|
__decorateClass([
|
|
4117
|
-
|
|
4149
|
+
Column36({ name: "openings", type: "integer", default: 0 })
|
|
4118
4150
|
], Job.prototype, "openings", 2);
|
|
4119
4151
|
__decorateClass([
|
|
4120
|
-
|
|
4152
|
+
Column36({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4121
4153
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4122
4154
|
__decorateClass([
|
|
4123
|
-
|
|
4155
|
+
Column36({
|
|
4124
4156
|
name: "location",
|
|
4125
4157
|
type: "enum",
|
|
4126
4158
|
enum: JobLocationEnum,
|
|
@@ -4128,7 +4160,7 @@ __decorateClass([
|
|
|
4128
4160
|
})
|
|
4129
4161
|
], Job.prototype, "location", 2);
|
|
4130
4162
|
__decorateClass([
|
|
4131
|
-
|
|
4163
|
+
Column36({
|
|
4132
4164
|
name: "type_of_employment",
|
|
4133
4165
|
type: "enum",
|
|
4134
4166
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4136,7 +4168,7 @@ __decorateClass([
|
|
|
4136
4168
|
})
|
|
4137
4169
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4138
4170
|
__decorateClass([
|
|
4139
|
-
|
|
4171
|
+
Column36({
|
|
4140
4172
|
name: "billing_cycle",
|
|
4141
4173
|
type: "enum",
|
|
4142
4174
|
enum: BillingCycleEnum,
|
|
@@ -4144,10 +4176,10 @@ __decorateClass([
|
|
|
4144
4176
|
})
|
|
4145
4177
|
], Job.prototype, "billingCycle", 2);
|
|
4146
4178
|
__decorateClass([
|
|
4147
|
-
|
|
4179
|
+
Column36({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4148
4180
|
], Job.prototype, "academicQualification", 2);
|
|
4149
4181
|
__decorateClass([
|
|
4150
|
-
|
|
4182
|
+
Column36({
|
|
4151
4183
|
name: "type_of_experience",
|
|
4152
4184
|
type: "enum",
|
|
4153
4185
|
enum: typeOfExperienceEnum,
|
|
@@ -4155,22 +4187,22 @@ __decorateClass([
|
|
|
4155
4187
|
})
|
|
4156
4188
|
], Job.prototype, "typeOfExperience", 2);
|
|
4157
4189
|
__decorateClass([
|
|
4158
|
-
|
|
4190
|
+
Column36({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4159
4191
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4160
4192
|
__decorateClass([
|
|
4161
|
-
|
|
4193
|
+
Column36({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4162
4194
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4163
4195
|
__decorateClass([
|
|
4164
|
-
|
|
4196
|
+
Column36({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4165
4197
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4166
4198
|
__decorateClass([
|
|
4167
|
-
|
|
4199
|
+
Column36({ name: "business_industry", type: "varchar", nullable: true })
|
|
4168
4200
|
], Job.prototype, "businessIndustry", 2);
|
|
4169
4201
|
__decorateClass([
|
|
4170
|
-
|
|
4202
|
+
Column36({ name: "currency", type: "varchar", default: "USD" })
|
|
4171
4203
|
], Job.prototype, "currency", 2);
|
|
4172
4204
|
__decorateClass([
|
|
4173
|
-
|
|
4205
|
+
Column36({
|
|
4174
4206
|
name: "expected_salary_from",
|
|
4175
4207
|
type: "decimal",
|
|
4176
4208
|
precision: 10,
|
|
@@ -4179,14 +4211,14 @@ __decorateClass([
|
|
|
4179
4211
|
})
|
|
4180
4212
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4181
4213
|
__decorateClass([
|
|
4182
|
-
|
|
4214
|
+
Column36({
|
|
4183
4215
|
name: "hide_expected_salary_from",
|
|
4184
4216
|
type: "boolean",
|
|
4185
4217
|
default: false
|
|
4186
4218
|
})
|
|
4187
4219
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4188
4220
|
__decorateClass([
|
|
4189
|
-
|
|
4221
|
+
Column36({
|
|
4190
4222
|
name: "expected_salary_to",
|
|
4191
4223
|
type: "decimal",
|
|
4192
4224
|
precision: 10,
|
|
@@ -4195,14 +4227,14 @@ __decorateClass([
|
|
|
4195
4227
|
})
|
|
4196
4228
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4197
4229
|
__decorateClass([
|
|
4198
|
-
|
|
4230
|
+
Column36({
|
|
4199
4231
|
name: "hide_expected_salary_to",
|
|
4200
4232
|
type: "boolean",
|
|
4201
4233
|
default: false
|
|
4202
4234
|
})
|
|
4203
4235
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4204
4236
|
__decorateClass([
|
|
4205
|
-
|
|
4237
|
+
Column36({
|
|
4206
4238
|
name: "expected_annual_budget_from",
|
|
4207
4239
|
type: "decimal",
|
|
4208
4240
|
precision: 10,
|
|
@@ -4211,14 +4243,14 @@ __decorateClass([
|
|
|
4211
4243
|
})
|
|
4212
4244
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4213
4245
|
__decorateClass([
|
|
4214
|
-
|
|
4246
|
+
Column36({
|
|
4215
4247
|
name: "hide_expected_annual_budget_from",
|
|
4216
4248
|
type: "boolean",
|
|
4217
4249
|
default: false
|
|
4218
4250
|
})
|
|
4219
4251
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4220
4252
|
__decorateClass([
|
|
4221
|
-
|
|
4253
|
+
Column36({
|
|
4222
4254
|
name: "expected_annual_budget_to",
|
|
4223
4255
|
type: "decimal",
|
|
4224
4256
|
precision: 10,
|
|
@@ -4227,32 +4259,32 @@ __decorateClass([
|
|
|
4227
4259
|
})
|
|
4228
4260
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4229
4261
|
__decorateClass([
|
|
4230
|
-
|
|
4262
|
+
Column36({
|
|
4231
4263
|
name: "hide_expected_annual_budget_to",
|
|
4232
4264
|
type: "boolean",
|
|
4233
4265
|
default: false
|
|
4234
4266
|
})
|
|
4235
4267
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4236
4268
|
__decorateClass([
|
|
4237
|
-
|
|
4269
|
+
Column36({ name: "years", type: "varchar", nullable: true })
|
|
4238
4270
|
], Job.prototype, "years", 2);
|
|
4239
4271
|
__decorateClass([
|
|
4240
|
-
|
|
4272
|
+
Column36({ name: "months", type: "varchar", nullable: true })
|
|
4241
4273
|
], Job.prototype, "months", 2);
|
|
4242
4274
|
__decorateClass([
|
|
4243
|
-
|
|
4275
|
+
Column36({ name: "weeks", type: "varchar", nullable: true })
|
|
4244
4276
|
], Job.prototype, "weeks", 2);
|
|
4245
4277
|
__decorateClass([
|
|
4246
|
-
|
|
4278
|
+
Column36({ name: "days", type: "varchar", nullable: true })
|
|
4247
4279
|
], Job.prototype, "days", 2);
|
|
4248
4280
|
__decorateClass([
|
|
4249
|
-
|
|
4281
|
+
Column36({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4250
4282
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4251
4283
|
__decorateClass([
|
|
4252
|
-
|
|
4284
|
+
Column36({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4253
4285
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4254
4286
|
__decorateClass([
|
|
4255
|
-
|
|
4287
|
+
Column36({
|
|
4256
4288
|
name: "duration_type",
|
|
4257
4289
|
type: "enum",
|
|
4258
4290
|
enum: DurationTypeEnum,
|
|
@@ -4260,10 +4292,10 @@ __decorateClass([
|
|
|
4260
4292
|
})
|
|
4261
4293
|
], Job.prototype, "durationType", 2);
|
|
4262
4294
|
__decorateClass([
|
|
4263
|
-
|
|
4295
|
+
Column36({ name: "duration", type: "varchar", nullable: true })
|
|
4264
4296
|
], Job.prototype, "duration", 2);
|
|
4265
4297
|
__decorateClass([
|
|
4266
|
-
|
|
4298
|
+
Column36({
|
|
4267
4299
|
name: "number_of_hours",
|
|
4268
4300
|
type: "decimal",
|
|
4269
4301
|
precision: 4,
|
|
@@ -4272,13 +4304,13 @@ __decorateClass([
|
|
|
4272
4304
|
})
|
|
4273
4305
|
], Job.prototype, "numberOfHours", 2);
|
|
4274
4306
|
__decorateClass([
|
|
4275
|
-
|
|
4307
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
4276
4308
|
], Job.prototype, "description", 2);
|
|
4277
4309
|
__decorateClass([
|
|
4278
|
-
|
|
4310
|
+
Column36({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4279
4311
|
], Job.prototype, "additionalComment", 2);
|
|
4280
4312
|
__decorateClass([
|
|
4281
|
-
|
|
4313
|
+
Column36({
|
|
4282
4314
|
name: "onboarding_tat",
|
|
4283
4315
|
type: "varchar",
|
|
4284
4316
|
length: 50,
|
|
@@ -4286,14 +4318,14 @@ __decorateClass([
|
|
|
4286
4318
|
})
|
|
4287
4319
|
], Job.prototype, "onboardingTat", 2);
|
|
4288
4320
|
__decorateClass([
|
|
4289
|
-
|
|
4321
|
+
Column36({
|
|
4290
4322
|
name: "candidate_communication_skills",
|
|
4291
4323
|
type: "varchar",
|
|
4292
4324
|
nullable: true
|
|
4293
4325
|
})
|
|
4294
4326
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4295
4327
|
__decorateClass([
|
|
4296
|
-
|
|
4328
|
+
Column36({
|
|
4297
4329
|
name: "step_completed",
|
|
4298
4330
|
type: "enum",
|
|
4299
4331
|
enum: Step,
|
|
@@ -4301,7 +4333,7 @@ __decorateClass([
|
|
|
4301
4333
|
})
|
|
4302
4334
|
], Job.prototype, "stepCompleted", 2);
|
|
4303
4335
|
__decorateClass([
|
|
4304
|
-
|
|
4336
|
+
Column36({
|
|
4305
4337
|
name: "status",
|
|
4306
4338
|
type: "enum",
|
|
4307
4339
|
enum: JobStatusEnum,
|
|
@@ -4309,43 +4341,43 @@ __decorateClass([
|
|
|
4309
4341
|
})
|
|
4310
4342
|
], Job.prototype, "status", 2);
|
|
4311
4343
|
__decorateClass([
|
|
4312
|
-
|
|
4344
|
+
Column36({ name: "viewed_count", type: "integer", default: 0 })
|
|
4313
4345
|
], Job.prototype, "viewedCount", 2);
|
|
4314
4346
|
__decorateClass([
|
|
4315
|
-
|
|
4347
|
+
Column36({ name: "application_count", type: "integer", default: 0 })
|
|
4316
4348
|
], Job.prototype, "applicationCount", 2);
|
|
4317
4349
|
__decorateClass([
|
|
4318
|
-
|
|
4350
|
+
Column36({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4319
4351
|
], Job.prototype, "isContractSigned", 2);
|
|
4320
4352
|
__decorateClass([
|
|
4321
|
-
|
|
4353
|
+
Column36({ name: "is_interview_created", type: "boolean", default: false })
|
|
4322
4354
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4323
4355
|
__decorateClass([
|
|
4324
|
-
|
|
4356
|
+
Column36({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4325
4357
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4326
4358
|
__decorateClass([
|
|
4327
|
-
|
|
4359
|
+
OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4328
4360
|
], Job.prototype, "interviewInvites", 2);
|
|
4329
4361
|
__decorateClass([
|
|
4330
|
-
|
|
4362
|
+
OneToMany15(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4331
4363
|
], Job.prototype, "jobSkills", 2);
|
|
4332
4364
|
__decorateClass([
|
|
4333
|
-
|
|
4365
|
+
OneToMany15(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4334
4366
|
cascade: true
|
|
4335
4367
|
})
|
|
4336
4368
|
], Job.prototype, "jobApplications", 2);
|
|
4337
4369
|
__decorateClass([
|
|
4338
|
-
|
|
4370
|
+
OneToMany15(() => Interview, (interview) => interview.job, {
|
|
4339
4371
|
cascade: true
|
|
4340
4372
|
})
|
|
4341
4373
|
], Job.prototype, "interviews", 2);
|
|
4342
4374
|
__decorateClass([
|
|
4343
|
-
|
|
4375
|
+
OneToMany15(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4344
4376
|
cascade: true
|
|
4345
4377
|
})
|
|
4346
4378
|
], Job.prototype, "f2fInterviews", 2);
|
|
4347
4379
|
__decorateClass([
|
|
4348
|
-
|
|
4380
|
+
OneToMany15(
|
|
4349
4381
|
() => JobRecommendation,
|
|
4350
4382
|
(jobRecommendation) => jobRecommendation.job,
|
|
4351
4383
|
{
|
|
@@ -4354,64 +4386,64 @@ __decorateClass([
|
|
|
4354
4386
|
)
|
|
4355
4387
|
], Job.prototype, "recommendations", 2);
|
|
4356
4388
|
__decorateClass([
|
|
4357
|
-
|
|
4389
|
+
OneToMany15(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4358
4390
|
cascade: true
|
|
4359
4391
|
})
|
|
4360
4392
|
], Job.prototype, "contractSummaries", 2);
|
|
4361
4393
|
__decorateClass([
|
|
4362
|
-
|
|
4394
|
+
OneToMany15(() => Contract, (contract) => contract.job, {
|
|
4363
4395
|
cascade: true
|
|
4364
4396
|
})
|
|
4365
4397
|
], Job.prototype, "contracts", 2);
|
|
4366
4398
|
__decorateClass([
|
|
4367
|
-
|
|
4399
|
+
OneToMany15(() => Hiring, (hiring) => hiring.job, {
|
|
4368
4400
|
cascade: true
|
|
4369
4401
|
})
|
|
4370
4402
|
], Job.prototype, "hirings", 2);
|
|
4371
4403
|
__decorateClass([
|
|
4372
|
-
|
|
4404
|
+
OneToMany15(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4373
4405
|
cascade: true
|
|
4374
4406
|
})
|
|
4375
4407
|
], Job.prototype, "escrowWallets", 2);
|
|
4376
4408
|
__decorateClass([
|
|
4377
|
-
|
|
4409
|
+
OneToMany15(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4378
4410
|
cascade: true
|
|
4379
4411
|
})
|
|
4380
4412
|
], Job.prototype, "timesheets", 2);
|
|
4381
4413
|
__decorateClass([
|
|
4382
|
-
|
|
4414
|
+
OneToMany15(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4383
4415
|
cascade: true
|
|
4384
4416
|
})
|
|
4385
4417
|
], Job.prototype, "timesheetLine", 2);
|
|
4386
4418
|
__decorateClass([
|
|
4387
|
-
|
|
4419
|
+
OneToMany15(() => Invoice, (invoice) => invoice.job, {
|
|
4388
4420
|
cascade: true
|
|
4389
4421
|
})
|
|
4390
4422
|
], Job.prototype, "invoice", 2);
|
|
4391
4423
|
__decorateClass([
|
|
4392
|
-
|
|
4424
|
+
OneToMany15(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4393
4425
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4394
4426
|
__decorateClass([
|
|
4395
|
-
|
|
4427
|
+
OneToMany15(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4396
4428
|
cascade: true
|
|
4397
4429
|
})
|
|
4398
4430
|
], Job.prototype, "jobLocations", 2);
|
|
4399
4431
|
__decorateClass([
|
|
4400
|
-
|
|
4432
|
+
OneToMany15(() => Rating, (rating) => rating.job, {
|
|
4401
4433
|
cascade: true
|
|
4402
4434
|
})
|
|
4403
4435
|
], Job.prototype, "ratings", 2);
|
|
4404
4436
|
Job = __decorateClass([
|
|
4405
|
-
|
|
4437
|
+
Entity35("jobs")
|
|
4406
4438
|
], Job);
|
|
4407
4439
|
|
|
4408
4440
|
// src/entities/bank-details.entity.ts
|
|
4409
4441
|
import {
|
|
4410
|
-
Entity as
|
|
4411
|
-
Column as
|
|
4412
|
-
Index as
|
|
4413
|
-
ManyToOne as
|
|
4414
|
-
JoinColumn as
|
|
4442
|
+
Entity as Entity36,
|
|
4443
|
+
Column as Column37,
|
|
4444
|
+
Index as Index29,
|
|
4445
|
+
ManyToOne as ManyToOne35,
|
|
4446
|
+
JoinColumn as JoinColumn35
|
|
4415
4447
|
} from "typeorm";
|
|
4416
4448
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4417
4449
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4427,51 +4459,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4427
4459
|
};
|
|
4428
4460
|
// individual index to find bank details by user
|
|
4429
4461
|
__decorateClass([
|
|
4430
|
-
|
|
4431
|
-
|
|
4462
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4463
|
+
Index29()
|
|
4432
4464
|
], BankDetail.prototype, "userId", 2);
|
|
4433
4465
|
__decorateClass([
|
|
4434
|
-
|
|
4435
|
-
|
|
4466
|
+
ManyToOne35(() => User, (user) => user.bankDetail),
|
|
4467
|
+
JoinColumn35({ name: "user_id" })
|
|
4436
4468
|
], BankDetail.prototype, "user", 2);
|
|
4437
4469
|
__decorateClass([
|
|
4438
|
-
|
|
4470
|
+
Column37({ name: "name", type: "varchar", nullable: true })
|
|
4439
4471
|
], BankDetail.prototype, "name", 2);
|
|
4440
4472
|
__decorateClass([
|
|
4441
|
-
|
|
4473
|
+
Column37({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4442
4474
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4443
4475
|
__decorateClass([
|
|
4444
|
-
|
|
4476
|
+
Column37({ name: "mobile", type: "varchar", nullable: true })
|
|
4445
4477
|
], BankDetail.prototype, "mobile", 2);
|
|
4446
4478
|
__decorateClass([
|
|
4447
|
-
|
|
4479
|
+
Column37({ name: "email", type: "varchar" })
|
|
4448
4480
|
], BankDetail.prototype, "email", 2);
|
|
4449
4481
|
__decorateClass([
|
|
4450
|
-
|
|
4482
|
+
Column37({ name: "address", type: "varchar", nullable: true })
|
|
4451
4483
|
], BankDetail.prototype, "address", 2);
|
|
4452
4484
|
__decorateClass([
|
|
4453
|
-
|
|
4485
|
+
Column37({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4454
4486
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4455
4487
|
__decorateClass([
|
|
4456
|
-
|
|
4488
|
+
Column37({ name: "bank_name", type: "varchar", nullable: true })
|
|
4457
4489
|
], BankDetail.prototype, "bankName", 2);
|
|
4458
4490
|
__decorateClass([
|
|
4459
|
-
|
|
4491
|
+
Column37({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4460
4492
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4461
4493
|
__decorateClass([
|
|
4462
|
-
|
|
4494
|
+
Column37({ name: "branch_name", type: "varchar", nullable: true })
|
|
4463
4495
|
], BankDetail.prototype, "branchName", 2);
|
|
4464
4496
|
__decorateClass([
|
|
4465
|
-
|
|
4497
|
+
Column37({ name: "routing_no", type: "varchar", nullable: true })
|
|
4466
4498
|
], BankDetail.prototype, "routingNo", 2);
|
|
4467
4499
|
__decorateClass([
|
|
4468
|
-
|
|
4500
|
+
Column37({ name: "aba_no", type: "varchar", nullable: true })
|
|
4469
4501
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4470
4502
|
__decorateClass([
|
|
4471
|
-
|
|
4503
|
+
Column37({ name: "iban", type: "varchar", nullable: true })
|
|
4472
4504
|
], BankDetail.prototype, "iban", 2);
|
|
4473
4505
|
__decorateClass([
|
|
4474
|
-
|
|
4506
|
+
Column37({
|
|
4475
4507
|
name: "account_type",
|
|
4476
4508
|
type: "enum",
|
|
4477
4509
|
enum: BankAccountTypeEnum,
|
|
@@ -4479,7 +4511,7 @@ __decorateClass([
|
|
|
4479
4511
|
})
|
|
4480
4512
|
], BankDetail.prototype, "accountType", 2);
|
|
4481
4513
|
__decorateClass([
|
|
4482
|
-
|
|
4514
|
+
Column37({
|
|
4483
4515
|
name: "account_scope",
|
|
4484
4516
|
type: "enum",
|
|
4485
4517
|
enum: BankAccountScopeEnum,
|
|
@@ -4487,185 +4519,185 @@ __decorateClass([
|
|
|
4487
4519
|
})
|
|
4488
4520
|
], BankDetail.prototype, "accountScope", 2);
|
|
4489
4521
|
BankDetail = __decorateClass([
|
|
4490
|
-
|
|
4522
|
+
Entity36("bank_details")
|
|
4491
4523
|
], BankDetail);
|
|
4492
4524
|
|
|
4493
4525
|
// src/entities/system-preference.entity.ts
|
|
4494
4526
|
import {
|
|
4495
|
-
Entity as
|
|
4496
|
-
Column as
|
|
4497
|
-
Index as
|
|
4498
|
-
ManyToOne as
|
|
4499
|
-
JoinColumn as
|
|
4527
|
+
Entity as Entity37,
|
|
4528
|
+
Column as Column38,
|
|
4529
|
+
Index as Index30,
|
|
4530
|
+
ManyToOne as ManyToOne36,
|
|
4531
|
+
JoinColumn as JoinColumn36
|
|
4500
4532
|
} from "typeorm";
|
|
4501
4533
|
var SystemPreference = class extends BaseEntity {
|
|
4502
4534
|
};
|
|
4503
4535
|
// individual index to find system preference by user
|
|
4504
4536
|
__decorateClass([
|
|
4505
|
-
|
|
4506
|
-
|
|
4537
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4538
|
+
Index30()
|
|
4507
4539
|
], SystemPreference.prototype, "userId", 2);
|
|
4508
4540
|
__decorateClass([
|
|
4509
|
-
|
|
4510
|
-
|
|
4541
|
+
ManyToOne36(() => User, (user) => user.systemPreference),
|
|
4542
|
+
JoinColumn36({ name: "user_id" })
|
|
4511
4543
|
], SystemPreference.prototype, "user", 2);
|
|
4512
4544
|
__decorateClass([
|
|
4513
|
-
|
|
4545
|
+
Column38({ name: "key", type: "varchar", nullable: false })
|
|
4514
4546
|
], SystemPreference.prototype, "key", 2);
|
|
4515
4547
|
__decorateClass([
|
|
4516
|
-
|
|
4548
|
+
Column38({ name: "value", type: "boolean", default: false })
|
|
4517
4549
|
], SystemPreference.prototype, "value", 2);
|
|
4518
4550
|
SystemPreference = __decorateClass([
|
|
4519
|
-
|
|
4551
|
+
Entity37("system_preferences")
|
|
4520
4552
|
], SystemPreference);
|
|
4521
4553
|
|
|
4522
4554
|
// src/entities/freelancer-experience.entity.ts
|
|
4523
4555
|
import {
|
|
4524
|
-
Entity as
|
|
4525
|
-
Column as
|
|
4526
|
-
Index as
|
|
4527
|
-
ManyToOne as
|
|
4528
|
-
JoinColumn as
|
|
4556
|
+
Entity as Entity38,
|
|
4557
|
+
Column as Column39,
|
|
4558
|
+
Index as Index31,
|
|
4559
|
+
ManyToOne as ManyToOne37,
|
|
4560
|
+
JoinColumn as JoinColumn37
|
|
4529
4561
|
} from "typeorm";
|
|
4530
4562
|
var FreelancerExperience = class extends BaseEntity {
|
|
4531
4563
|
};
|
|
4532
4564
|
// individual index to find experence by user
|
|
4533
4565
|
__decorateClass([
|
|
4534
|
-
|
|
4535
|
-
|
|
4566
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4567
|
+
Index31()
|
|
4536
4568
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4537
4569
|
__decorateClass([
|
|
4538
|
-
|
|
4539
|
-
|
|
4570
|
+
ManyToOne37(() => User, (user) => user.freelancerExperience),
|
|
4571
|
+
JoinColumn37({ name: "user_id" })
|
|
4540
4572
|
], FreelancerExperience.prototype, "user", 2);
|
|
4541
4573
|
__decorateClass([
|
|
4542
|
-
|
|
4574
|
+
Column39({ name: "company_name", type: "varchar", nullable: true })
|
|
4543
4575
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4544
4576
|
__decorateClass([
|
|
4545
|
-
|
|
4577
|
+
Column39({ name: "designation", type: "varchar", nullable: true })
|
|
4546
4578
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4547
4579
|
__decorateClass([
|
|
4548
|
-
|
|
4580
|
+
Column39({ name: "job_duration", type: "varchar", nullable: true })
|
|
4549
4581
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4550
4582
|
__decorateClass([
|
|
4551
|
-
|
|
4583
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
4552
4584
|
], FreelancerExperience.prototype, "description", 2);
|
|
4553
4585
|
FreelancerExperience = __decorateClass([
|
|
4554
|
-
|
|
4586
|
+
Entity38("freelancer_experiences")
|
|
4555
4587
|
], FreelancerExperience);
|
|
4556
4588
|
|
|
4557
4589
|
// src/entities/freelancer-education.entity.ts
|
|
4558
4590
|
import {
|
|
4559
|
-
Entity as
|
|
4560
|
-
Column as
|
|
4561
|
-
Index as
|
|
4562
|
-
ManyToOne as
|
|
4563
|
-
JoinColumn as
|
|
4591
|
+
Entity as Entity39,
|
|
4592
|
+
Column as Column40,
|
|
4593
|
+
Index as Index32,
|
|
4594
|
+
ManyToOne as ManyToOne38,
|
|
4595
|
+
JoinColumn as JoinColumn38
|
|
4564
4596
|
} from "typeorm";
|
|
4565
4597
|
var FreelancerEducation = class extends BaseEntity {
|
|
4566
4598
|
};
|
|
4567
4599
|
// individual index to find education by user
|
|
4568
4600
|
__decorateClass([
|
|
4569
|
-
|
|
4570
|
-
|
|
4601
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4602
|
+
Index32()
|
|
4571
4603
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4572
4604
|
__decorateClass([
|
|
4573
|
-
|
|
4574
|
-
|
|
4605
|
+
ManyToOne38(() => User, (user) => user.freelancerEducation),
|
|
4606
|
+
JoinColumn38({ name: "user_id" })
|
|
4575
4607
|
], FreelancerEducation.prototype, "user", 2);
|
|
4576
4608
|
__decorateClass([
|
|
4577
|
-
|
|
4609
|
+
Column40({ name: "degree", type: "varchar", nullable: true })
|
|
4578
4610
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4579
4611
|
__decorateClass([
|
|
4580
|
-
|
|
4612
|
+
Column40({ name: "university", type: "varchar", nullable: true })
|
|
4581
4613
|
], FreelancerEducation.prototype, "university", 2);
|
|
4582
4614
|
__decorateClass([
|
|
4583
|
-
|
|
4615
|
+
Column40({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4584
4616
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4585
4617
|
FreelancerEducation = __decorateClass([
|
|
4586
|
-
|
|
4618
|
+
Entity39("freelancer_educations")
|
|
4587
4619
|
], FreelancerEducation);
|
|
4588
4620
|
|
|
4589
4621
|
// src/entities/freelancer-project.entity.ts
|
|
4590
4622
|
import {
|
|
4591
|
-
Entity as
|
|
4592
|
-
Column as
|
|
4593
|
-
Index as
|
|
4594
|
-
ManyToOne as
|
|
4595
|
-
JoinColumn as
|
|
4623
|
+
Entity as Entity40,
|
|
4624
|
+
Column as Column41,
|
|
4625
|
+
Index as Index33,
|
|
4626
|
+
ManyToOne as ManyToOne39,
|
|
4627
|
+
JoinColumn as JoinColumn39
|
|
4596
4628
|
} from "typeorm";
|
|
4597
4629
|
var FreelancerProject = class extends BaseEntity {
|
|
4598
4630
|
};
|
|
4599
4631
|
// individual index to find project by user
|
|
4600
4632
|
__decorateClass([
|
|
4601
|
-
|
|
4602
|
-
|
|
4633
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4634
|
+
Index33()
|
|
4603
4635
|
], FreelancerProject.prototype, "userId", 2);
|
|
4604
4636
|
__decorateClass([
|
|
4605
|
-
|
|
4606
|
-
|
|
4637
|
+
ManyToOne39(() => User, (user) => user.freelancerProject),
|
|
4638
|
+
JoinColumn39({ name: "user_id" })
|
|
4607
4639
|
], FreelancerProject.prototype, "user", 2);
|
|
4608
4640
|
__decorateClass([
|
|
4609
|
-
|
|
4641
|
+
Column41({ name: "project_name", type: "varchar", nullable: true })
|
|
4610
4642
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4611
4643
|
__decorateClass([
|
|
4612
|
-
|
|
4644
|
+
Column41({ name: "start_date", type: "date", nullable: true })
|
|
4613
4645
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4614
4646
|
__decorateClass([
|
|
4615
|
-
|
|
4647
|
+
Column41({ name: "end_date", type: "date", nullable: true })
|
|
4616
4648
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4617
4649
|
__decorateClass([
|
|
4618
|
-
|
|
4650
|
+
Column41({ name: "client_name", type: "varchar", nullable: true })
|
|
4619
4651
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4620
4652
|
__decorateClass([
|
|
4621
|
-
|
|
4653
|
+
Column41({ name: "git_link", type: "varchar", nullable: true })
|
|
4622
4654
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4623
4655
|
__decorateClass([
|
|
4624
|
-
|
|
4656
|
+
Column41({ name: "description", type: "varchar", nullable: true })
|
|
4625
4657
|
], FreelancerProject.prototype, "description", 2);
|
|
4626
4658
|
FreelancerProject = __decorateClass([
|
|
4627
|
-
|
|
4659
|
+
Entity40("freelancer_projects")
|
|
4628
4660
|
], FreelancerProject);
|
|
4629
4661
|
|
|
4630
4662
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4631
4663
|
import {
|
|
4632
|
-
Entity as
|
|
4633
|
-
Column as
|
|
4634
|
-
Index as
|
|
4635
|
-
ManyToOne as
|
|
4636
|
-
JoinColumn as
|
|
4664
|
+
Entity as Entity41,
|
|
4665
|
+
Column as Column42,
|
|
4666
|
+
Index as Index34,
|
|
4667
|
+
ManyToOne as ManyToOne40,
|
|
4668
|
+
JoinColumn as JoinColumn40
|
|
4637
4669
|
} from "typeorm";
|
|
4638
4670
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4639
4671
|
};
|
|
4640
4672
|
// individual index to find case study by user
|
|
4641
4673
|
__decorateClass([
|
|
4642
|
-
|
|
4643
|
-
|
|
4674
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4675
|
+
Index34()
|
|
4644
4676
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4645
4677
|
__decorateClass([
|
|
4646
|
-
|
|
4647
|
-
|
|
4678
|
+
ManyToOne40(() => User, (user) => user.freelancerCaseStudy),
|
|
4679
|
+
JoinColumn40({ name: "user_id" })
|
|
4648
4680
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4649
4681
|
__decorateClass([
|
|
4650
|
-
|
|
4682
|
+
Column42({ name: "project_name", type: "varchar", nullable: true })
|
|
4651
4683
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4652
4684
|
__decorateClass([
|
|
4653
|
-
|
|
4685
|
+
Column42({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4654
4686
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4655
4687
|
__decorateClass([
|
|
4656
|
-
|
|
4688
|
+
Column42({ name: "description", type: "varchar", nullable: true })
|
|
4657
4689
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4658
4690
|
FreelancerCaseStudy = __decorateClass([
|
|
4659
|
-
|
|
4691
|
+
Entity41("freelancer_case_studies")
|
|
4660
4692
|
], FreelancerCaseStudy);
|
|
4661
4693
|
|
|
4662
4694
|
// src/entities/freelancer-skill.entity.ts
|
|
4663
4695
|
import {
|
|
4664
|
-
Entity as
|
|
4665
|
-
Column as
|
|
4666
|
-
Index as
|
|
4667
|
-
ManyToOne as
|
|
4668
|
-
JoinColumn as
|
|
4696
|
+
Entity as Entity42,
|
|
4697
|
+
Column as Column43,
|
|
4698
|
+
Index as Index35,
|
|
4699
|
+
ManyToOne as ManyToOne41,
|
|
4700
|
+
JoinColumn as JoinColumn41
|
|
4669
4701
|
} from "typeorm";
|
|
4670
4702
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4671
4703
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4676,18 +4708,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4676
4708
|
};
|
|
4677
4709
|
// individual index to find core skills by user
|
|
4678
4710
|
__decorateClass([
|
|
4679
|
-
|
|
4680
|
-
|
|
4711
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
4712
|
+
Index35()
|
|
4681
4713
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4682
4714
|
__decorateClass([
|
|
4683
|
-
|
|
4684
|
-
|
|
4715
|
+
ManyToOne41(() => User, (user) => user.freelancerSkills),
|
|
4716
|
+
JoinColumn41({ name: "user_id" })
|
|
4685
4717
|
], FreelancerSkill.prototype, "user", 2);
|
|
4686
4718
|
__decorateClass([
|
|
4687
|
-
|
|
4719
|
+
Column43({ name: "skill_name", type: "varchar", nullable: true })
|
|
4688
4720
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4689
4721
|
__decorateClass([
|
|
4690
|
-
|
|
4722
|
+
Column43({
|
|
4691
4723
|
name: "skill_category",
|
|
4692
4724
|
type: "smallint",
|
|
4693
4725
|
default: 1,
|
|
@@ -4695,68 +4727,68 @@ __decorateClass([
|
|
|
4695
4727
|
})
|
|
4696
4728
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4697
4729
|
FreelancerSkill = __decorateClass([
|
|
4698
|
-
|
|
4730
|
+
Entity42("freelancer_skills")
|
|
4699
4731
|
], FreelancerSkill);
|
|
4700
4732
|
|
|
4701
4733
|
// src/entities/freelancer-tool.entity.ts
|
|
4702
4734
|
import {
|
|
4703
|
-
Entity as
|
|
4704
|
-
Column as
|
|
4705
|
-
Index as
|
|
4706
|
-
ManyToOne as
|
|
4707
|
-
JoinColumn as
|
|
4735
|
+
Entity as Entity43,
|
|
4736
|
+
Column as Column44,
|
|
4737
|
+
Index as Index36,
|
|
4738
|
+
ManyToOne as ManyToOne42,
|
|
4739
|
+
JoinColumn as JoinColumn42
|
|
4708
4740
|
} from "typeorm";
|
|
4709
4741
|
var FreelancerTool = class extends BaseEntity {
|
|
4710
4742
|
};
|
|
4711
4743
|
// individual index to find tool by user
|
|
4712
4744
|
__decorateClass([
|
|
4713
|
-
|
|
4714
|
-
|
|
4745
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
4746
|
+
Index36()
|
|
4715
4747
|
], FreelancerTool.prototype, "userId", 2);
|
|
4716
4748
|
__decorateClass([
|
|
4717
|
-
|
|
4718
|
-
|
|
4749
|
+
ManyToOne42(() => User, (user) => user.freelancerTool),
|
|
4750
|
+
JoinColumn42({ name: "user_id" })
|
|
4719
4751
|
], FreelancerTool.prototype, "user", 2);
|
|
4720
4752
|
__decorateClass([
|
|
4721
|
-
|
|
4753
|
+
Column44({ name: "tool_name", type: "varchar", nullable: true })
|
|
4722
4754
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4723
4755
|
FreelancerTool = __decorateClass([
|
|
4724
|
-
|
|
4756
|
+
Entity43("freelancer_tools")
|
|
4725
4757
|
], FreelancerTool);
|
|
4726
4758
|
|
|
4727
4759
|
// src/entities/freelancer-framework.entity.ts
|
|
4728
4760
|
import {
|
|
4729
|
-
Entity as
|
|
4730
|
-
Column as
|
|
4731
|
-
Index as
|
|
4732
|
-
ManyToOne as
|
|
4733
|
-
JoinColumn as
|
|
4761
|
+
Entity as Entity44,
|
|
4762
|
+
Column as Column45,
|
|
4763
|
+
Index as Index37,
|
|
4764
|
+
ManyToOne as ManyToOne43,
|
|
4765
|
+
JoinColumn as JoinColumn43
|
|
4734
4766
|
} from "typeorm";
|
|
4735
4767
|
var FreelancerFramework = class extends BaseEntity {
|
|
4736
4768
|
};
|
|
4737
4769
|
// individual index to find framework by user
|
|
4738
4770
|
__decorateClass([
|
|
4739
|
-
|
|
4740
|
-
|
|
4771
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4772
|
+
Index37()
|
|
4741
4773
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4742
4774
|
__decorateClass([
|
|
4743
|
-
|
|
4744
|
-
|
|
4775
|
+
ManyToOne43(() => User, (user) => user.freelancerFramework),
|
|
4776
|
+
JoinColumn43({ name: "user_id" })
|
|
4745
4777
|
], FreelancerFramework.prototype, "user", 2);
|
|
4746
4778
|
__decorateClass([
|
|
4747
|
-
|
|
4779
|
+
Column45({ name: "framework_name", type: "varchar", nullable: true })
|
|
4748
4780
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4749
4781
|
FreelancerFramework = __decorateClass([
|
|
4750
|
-
|
|
4782
|
+
Entity44("freelancer_frameworks")
|
|
4751
4783
|
], FreelancerFramework);
|
|
4752
4784
|
|
|
4753
4785
|
// src/entities/freelancer-assessment.entity.ts
|
|
4754
4786
|
import {
|
|
4755
|
-
Entity as
|
|
4756
|
-
Column as
|
|
4757
|
-
Index as
|
|
4758
|
-
ManyToOne as
|
|
4759
|
-
JoinColumn as
|
|
4787
|
+
Entity as Entity45,
|
|
4788
|
+
Column as Column46,
|
|
4789
|
+
Index as Index38,
|
|
4790
|
+
ManyToOne as ManyToOne44,
|
|
4791
|
+
JoinColumn as JoinColumn44
|
|
4760
4792
|
} from "typeorm";
|
|
4761
4793
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4762
4794
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4774,33 +4806,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4774
4806
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4775
4807
|
};
|
|
4776
4808
|
__decorateClass([
|
|
4777
|
-
|
|
4778
|
-
|
|
4809
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4810
|
+
Index38()
|
|
4779
4811
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4780
4812
|
__decorateClass([
|
|
4781
|
-
|
|
4782
|
-
|
|
4813
|
+
ManyToOne44(() => User, (user) => user.assessments),
|
|
4814
|
+
JoinColumn44({ name: "user_id" })
|
|
4783
4815
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4784
4816
|
__decorateClass([
|
|
4785
|
-
|
|
4817
|
+
Column46({ name: "interview_id", type: "varchar", nullable: true })
|
|
4786
4818
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4787
4819
|
__decorateClass([
|
|
4788
|
-
|
|
4820
|
+
Column46({ name: "interview_link", type: "text", nullable: true })
|
|
4789
4821
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4790
4822
|
__decorateClass([
|
|
4791
|
-
|
|
4823
|
+
Column46({ name: "recording_link", type: "text", nullable: true })
|
|
4792
4824
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4793
4825
|
__decorateClass([
|
|
4794
|
-
|
|
4826
|
+
Column46({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4795
4827
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4796
4828
|
__decorateClass([
|
|
4797
|
-
|
|
4829
|
+
Column46({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4798
4830
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4799
4831
|
__decorateClass([
|
|
4800
|
-
|
|
4832
|
+
Column46({ name: "score", type: "float", nullable: true })
|
|
4801
4833
|
], FreelancerAssessment.prototype, "score", 2);
|
|
4802
4834
|
__decorateClass([
|
|
4803
|
-
|
|
4835
|
+
Column46({
|
|
4804
4836
|
name: "status",
|
|
4805
4837
|
type: "enum",
|
|
4806
4838
|
enum: AssessmentStatusEnum,
|
|
@@ -4808,17 +4840,17 @@ __decorateClass([
|
|
|
4808
4840
|
})
|
|
4809
4841
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4810
4842
|
__decorateClass([
|
|
4811
|
-
|
|
4843
|
+
Column46({ name: "task_id", type: "varchar", nullable: true })
|
|
4812
4844
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
4813
4845
|
__decorateClass([
|
|
4814
|
-
|
|
4846
|
+
Column46({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4815
4847
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
4816
4848
|
FreelancerAssessment = __decorateClass([
|
|
4817
|
-
|
|
4849
|
+
Entity45("freelancer_assessments")
|
|
4818
4850
|
], FreelancerAssessment);
|
|
4819
4851
|
|
|
4820
4852
|
// src/entities/freelancer-declaration.entity.ts
|
|
4821
|
-
import { Entity as
|
|
4853
|
+
import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4822
4854
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4823
4855
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4824
4856
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4830,15 +4862,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4830
4862
|
};
|
|
4831
4863
|
// individual index to find declaration by user
|
|
4832
4864
|
__decorateClass([
|
|
4833
|
-
|
|
4834
|
-
|
|
4865
|
+
Column47({ name: "user_id", type: "integer", nullable: true }),
|
|
4866
|
+
Index39()
|
|
4835
4867
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4836
4868
|
__decorateClass([
|
|
4837
|
-
|
|
4838
|
-
|
|
4869
|
+
ManyToOne45(() => User, (user) => user.freelancerDeclaration),
|
|
4870
|
+
JoinColumn45({ name: "user_id" })
|
|
4839
4871
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4840
4872
|
__decorateClass([
|
|
4841
|
-
|
|
4873
|
+
Column47({
|
|
4842
4874
|
name: "document_type",
|
|
4843
4875
|
type: "enum",
|
|
4844
4876
|
enum: DocumentType,
|
|
@@ -4846,175 +4878,175 @@ __decorateClass([
|
|
|
4846
4878
|
})
|
|
4847
4879
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4848
4880
|
__decorateClass([
|
|
4849
|
-
|
|
4881
|
+
Column47({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4850
4882
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4851
4883
|
__decorateClass([
|
|
4852
|
-
|
|
4884
|
+
Column47({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4853
4885
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4854
4886
|
__decorateClass([
|
|
4855
|
-
|
|
4887
|
+
Column47({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4856
4888
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4857
4889
|
__decorateClass([
|
|
4858
|
-
|
|
4890
|
+
Column47({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4859
4891
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4860
4892
|
FreelancerDeclaration = __decorateClass([
|
|
4861
|
-
|
|
4893
|
+
Entity46("freelancer_declaration")
|
|
4862
4894
|
], FreelancerDeclaration);
|
|
4863
4895
|
|
|
4864
4896
|
// src/entities/company-members-roles.entity.ts
|
|
4897
|
+
import {
|
|
4898
|
+
Column as Column51,
|
|
4899
|
+
Entity as Entity50,
|
|
4900
|
+
ManyToOne as ManyToOne48,
|
|
4901
|
+
JoinColumn as JoinColumn48,
|
|
4902
|
+
Index as Index43
|
|
4903
|
+
} from "typeorm";
|
|
4904
|
+
|
|
4905
|
+
// src/entities/company-role.entity.ts
|
|
4865
4906
|
import {
|
|
4866
4907
|
Column as Column50,
|
|
4867
4908
|
Entity as Entity49,
|
|
4868
|
-
|
|
4909
|
+
Index as Index42,
|
|
4869
4910
|
JoinColumn as JoinColumn47,
|
|
4870
|
-
|
|
4911
|
+
ManyToOne as ManyToOne47,
|
|
4912
|
+
OneToMany as OneToMany17
|
|
4871
4913
|
} from "typeorm";
|
|
4872
4914
|
|
|
4873
|
-
// src/entities/company-role.entity.ts
|
|
4915
|
+
// src/entities/company-role-permission.entity.ts
|
|
4874
4916
|
import {
|
|
4875
4917
|
Column as Column49,
|
|
4876
4918
|
Entity as Entity48,
|
|
4877
|
-
Index as Index41,
|
|
4878
|
-
JoinColumn as JoinColumn46,
|
|
4879
4919
|
ManyToOne as ManyToOne46,
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
// src/entities/company-role-permission.entity.ts
|
|
4884
|
-
import {
|
|
4885
|
-
Column as Column48,
|
|
4886
|
-
Entity as Entity47,
|
|
4887
|
-
ManyToOne as ManyToOne45,
|
|
4888
|
-
JoinColumn as JoinColumn45,
|
|
4889
|
-
Index as Index40
|
|
4920
|
+
JoinColumn as JoinColumn46,
|
|
4921
|
+
Index as Index41
|
|
4890
4922
|
} from "typeorm";
|
|
4891
4923
|
|
|
4892
4924
|
// src/entities/permission.entity.ts
|
|
4893
|
-
import { Column as
|
|
4925
|
+
import { Column as Column48, Entity as Entity47, Index as Index40 } from "typeorm";
|
|
4894
4926
|
var Permission = class extends BaseEntity {
|
|
4895
4927
|
};
|
|
4896
4928
|
__decorateClass([
|
|
4897
|
-
|
|
4929
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
4898
4930
|
], Permission.prototype, "name", 2);
|
|
4899
4931
|
__decorateClass([
|
|
4900
|
-
|
|
4901
|
-
|
|
4932
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4933
|
+
Index40()
|
|
4902
4934
|
], Permission.prototype, "slug", 2);
|
|
4903
4935
|
__decorateClass([
|
|
4904
|
-
|
|
4936
|
+
Column48({ name: "description", type: "text", nullable: true })
|
|
4905
4937
|
], Permission.prototype, "description", 2);
|
|
4906
4938
|
__decorateClass([
|
|
4907
|
-
|
|
4939
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4908
4940
|
], Permission.prototype, "isActive", 2);
|
|
4909
4941
|
Permission = __decorateClass([
|
|
4910
|
-
|
|
4942
|
+
Entity47("permissions")
|
|
4911
4943
|
], Permission);
|
|
4912
4944
|
|
|
4913
4945
|
// src/entities/company-role-permission.entity.ts
|
|
4914
4946
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4915
4947
|
};
|
|
4916
4948
|
__decorateClass([
|
|
4917
|
-
|
|
4918
|
-
|
|
4949
|
+
Column49({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4950
|
+
Index41()
|
|
4919
4951
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4920
4952
|
__decorateClass([
|
|
4921
|
-
|
|
4953
|
+
ManyToOne46(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4922
4954
|
onDelete: "CASCADE"
|
|
4923
4955
|
}),
|
|
4924
|
-
|
|
4956
|
+
JoinColumn46({ name: "company_role_id" })
|
|
4925
4957
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4926
4958
|
__decorateClass([
|
|
4927
|
-
|
|
4928
|
-
|
|
4959
|
+
Column49({ name: "permission_id", type: "integer" }),
|
|
4960
|
+
Index41()
|
|
4929
4961
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4930
4962
|
__decorateClass([
|
|
4931
|
-
|
|
4932
|
-
|
|
4963
|
+
ManyToOne46(() => Permission, { onDelete: "CASCADE" }),
|
|
4964
|
+
JoinColumn46({ name: "permission_id" })
|
|
4933
4965
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4934
4966
|
__decorateClass([
|
|
4935
|
-
|
|
4967
|
+
Column49({ name: "assigned_by", type: "integer", nullable: true })
|
|
4936
4968
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4937
4969
|
CompanyRolePermission = __decorateClass([
|
|
4938
|
-
|
|
4970
|
+
Entity48("company_role_permissions")
|
|
4939
4971
|
], CompanyRolePermission);
|
|
4940
4972
|
|
|
4941
4973
|
// src/entities/company-role.entity.ts
|
|
4942
4974
|
var CompanyRole = class extends BaseEntity {
|
|
4943
4975
|
};
|
|
4944
4976
|
__decorateClass([
|
|
4945
|
-
|
|
4946
|
-
|
|
4977
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
4978
|
+
Index42()
|
|
4947
4979
|
], CompanyRole.prototype, "userId", 2);
|
|
4948
4980
|
__decorateClass([
|
|
4949
|
-
|
|
4950
|
-
|
|
4981
|
+
ManyToOne47(() => User, (user) => user.otps),
|
|
4982
|
+
JoinColumn47({ name: "user_id" })
|
|
4951
4983
|
], CompanyRole.prototype, "user", 2);
|
|
4952
4984
|
__decorateClass([
|
|
4953
|
-
|
|
4985
|
+
Column50({ name: "name", type: "varchar" })
|
|
4954
4986
|
], CompanyRole.prototype, "name", 2);
|
|
4955
4987
|
__decorateClass([
|
|
4956
|
-
|
|
4957
|
-
|
|
4988
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4989
|
+
Index42()
|
|
4958
4990
|
], CompanyRole.prototype, "slug", 2);
|
|
4959
4991
|
__decorateClass([
|
|
4960
|
-
|
|
4992
|
+
Column50({ name: "description", type: "text", nullable: true })
|
|
4961
4993
|
], CompanyRole.prototype, "description", 2);
|
|
4962
4994
|
__decorateClass([
|
|
4963
|
-
|
|
4995
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
4964
4996
|
], CompanyRole.prototype, "isActive", 2);
|
|
4965
4997
|
__decorateClass([
|
|
4966
|
-
|
|
4998
|
+
OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4967
4999
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4968
5000
|
CompanyRole = __decorateClass([
|
|
4969
|
-
|
|
5001
|
+
Entity49("company_roles")
|
|
4970
5002
|
], CompanyRole);
|
|
4971
5003
|
|
|
4972
5004
|
// src/entities/company-members-roles.entity.ts
|
|
4973
5005
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4974
5006
|
};
|
|
4975
5007
|
__decorateClass([
|
|
4976
|
-
|
|
4977
|
-
|
|
5008
|
+
Column51({ name: "user_id", type: "integer", nullable: true }),
|
|
5009
|
+
Index43()
|
|
4978
5010
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4979
5011
|
__decorateClass([
|
|
4980
|
-
|
|
4981
|
-
|
|
5012
|
+
ManyToOne48(() => User),
|
|
5013
|
+
JoinColumn48({ name: "user_id" })
|
|
4982
5014
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4983
5015
|
__decorateClass([
|
|
4984
|
-
|
|
4985
|
-
|
|
5016
|
+
ManyToOne48(() => CompanyRole),
|
|
5017
|
+
JoinColumn48({ name: "company_role_id" })
|
|
4986
5018
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4987
5019
|
__decorateClass([
|
|
4988
|
-
|
|
4989
|
-
|
|
5020
|
+
Column51({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5021
|
+
Index43()
|
|
4990
5022
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4991
5023
|
__decorateClass([
|
|
4992
|
-
|
|
5024
|
+
Column51({ name: "assigned_by", type: "integer", nullable: true })
|
|
4993
5025
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4994
5026
|
CompanyMemberRole = __decorateClass([
|
|
4995
|
-
|
|
5027
|
+
Entity50("company_member_roles")
|
|
4996
5028
|
], CompanyMemberRole);
|
|
4997
5029
|
|
|
4998
5030
|
// src/entities/assessment-answer.entity.ts
|
|
4999
5031
|
import {
|
|
5000
|
-
Entity as
|
|
5001
|
-
Column as
|
|
5002
|
-
ManyToOne as
|
|
5003
|
-
Index as
|
|
5004
|
-
JoinColumn as
|
|
5032
|
+
Entity as Entity53,
|
|
5033
|
+
Column as Column54,
|
|
5034
|
+
ManyToOne as ManyToOne51,
|
|
5035
|
+
Index as Index46,
|
|
5036
|
+
JoinColumn as JoinColumn51
|
|
5005
5037
|
} from "typeorm";
|
|
5006
5038
|
|
|
5007
5039
|
// src/entities/assessment-question.entity.ts
|
|
5008
|
-
import { Entity as
|
|
5040
|
+
import { Entity as Entity52, Column as Column53, OneToMany as OneToMany19, Index as Index45, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
|
|
5009
5041
|
|
|
5010
5042
|
// src/entities/assessment-question-option.entity.ts
|
|
5011
5043
|
import {
|
|
5012
|
-
Entity as
|
|
5013
|
-
Column as
|
|
5014
|
-
OneToMany as
|
|
5015
|
-
ManyToOne as
|
|
5016
|
-
Index as
|
|
5017
|
-
JoinColumn as
|
|
5044
|
+
Entity as Entity51,
|
|
5045
|
+
Column as Column52,
|
|
5046
|
+
OneToMany as OneToMany18,
|
|
5047
|
+
ManyToOne as ManyToOne49,
|
|
5048
|
+
Index as Index44,
|
|
5049
|
+
JoinColumn as JoinColumn49
|
|
5018
5050
|
} from "typeorm";
|
|
5019
5051
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5020
5052
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5025,21 +5057,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5025
5057
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5026
5058
|
};
|
|
5027
5059
|
__decorateClass([
|
|
5028
|
-
|
|
5029
|
-
|
|
5060
|
+
Column52({ name: "question_id", type: "integer", nullable: true }),
|
|
5061
|
+
Index44()
|
|
5030
5062
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5031
5063
|
__decorateClass([
|
|
5032
|
-
|
|
5064
|
+
ManyToOne49(
|
|
5033
5065
|
() => AssessmetQuestion,
|
|
5034
5066
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5035
5067
|
),
|
|
5036
|
-
|
|
5068
|
+
JoinColumn49({ name: "question_id" })
|
|
5037
5069
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5038
5070
|
__decorateClass([
|
|
5039
|
-
|
|
5071
|
+
Column52({ name: "text", type: "varchar", nullable: true })
|
|
5040
5072
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5041
5073
|
__decorateClass([
|
|
5042
|
-
|
|
5074
|
+
Column52({
|
|
5043
5075
|
name: "answer_type",
|
|
5044
5076
|
type: "enum",
|
|
5045
5077
|
enum: AnswerTypeEnum,
|
|
@@ -5047,13 +5079,13 @@ __decorateClass([
|
|
|
5047
5079
|
})
|
|
5048
5080
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5049
5081
|
__decorateClass([
|
|
5050
|
-
|
|
5082
|
+
Column52({ name: "is_active", type: "boolean", default: true })
|
|
5051
5083
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5052
5084
|
__decorateClass([
|
|
5053
|
-
|
|
5085
|
+
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5054
5086
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5055
5087
|
AssessmetQuestionOption = __decorateClass([
|
|
5056
|
-
|
|
5088
|
+
Entity51("assessment_question_options")
|
|
5057
5089
|
], AssessmetQuestionOption);
|
|
5058
5090
|
|
|
5059
5091
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5065,10 +5097,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5065
5097
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5066
5098
|
};
|
|
5067
5099
|
__decorateClass([
|
|
5068
|
-
|
|
5100
|
+
Column53({ name: "text", type: "varchar", nullable: true })
|
|
5069
5101
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5070
5102
|
__decorateClass([
|
|
5071
|
-
|
|
5103
|
+
Column53({
|
|
5072
5104
|
name: "question_for",
|
|
5073
5105
|
type: "enum",
|
|
5074
5106
|
enum: QuestionForEnum,
|
|
@@ -5076,24 +5108,24 @@ __decorateClass([
|
|
|
5076
5108
|
})
|
|
5077
5109
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5078
5110
|
__decorateClass([
|
|
5079
|
-
|
|
5111
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5080
5112
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5081
5113
|
__decorateClass([
|
|
5082
|
-
|
|
5083
|
-
|
|
5114
|
+
Column53({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5115
|
+
Index45()
|
|
5084
5116
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5085
5117
|
__decorateClass([
|
|
5086
|
-
|
|
5087
|
-
|
|
5118
|
+
ManyToOne50(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5119
|
+
JoinColumn50({ name: "candidate_id" })
|
|
5088
5120
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5089
5121
|
__decorateClass([
|
|
5090
|
-
|
|
5122
|
+
OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5091
5123
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5092
5124
|
__decorateClass([
|
|
5093
|
-
|
|
5125
|
+
OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5094
5126
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5095
5127
|
AssessmetQuestion = __decorateClass([
|
|
5096
|
-
|
|
5128
|
+
Entity52("assessment_questions")
|
|
5097
5129
|
], AssessmetQuestion);
|
|
5098
5130
|
|
|
5099
5131
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5106,118 +5138,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5106
5138
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5107
5139
|
};
|
|
5108
5140
|
__decorateClass([
|
|
5109
|
-
|
|
5110
|
-
|
|
5141
|
+
Column54({ name: "user_id", type: "integer" }),
|
|
5142
|
+
Index46()
|
|
5111
5143
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5112
5144
|
__decorateClass([
|
|
5113
|
-
|
|
5114
|
-
|
|
5145
|
+
ManyToOne51(() => User, (user) => user.assessmentAnswers),
|
|
5146
|
+
JoinColumn51({ name: "user_id" })
|
|
5115
5147
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5116
5148
|
__decorateClass([
|
|
5117
|
-
|
|
5118
|
-
|
|
5149
|
+
Column54({ name: "question_id", type: "integer" }),
|
|
5150
|
+
Index46()
|
|
5119
5151
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5120
5152
|
__decorateClass([
|
|
5121
|
-
|
|
5153
|
+
ManyToOne51(
|
|
5122
5154
|
() => AssessmetQuestion,
|
|
5123
5155
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5124
5156
|
),
|
|
5125
|
-
|
|
5157
|
+
JoinColumn51({ name: "question_id" })
|
|
5126
5158
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5127
5159
|
__decorateClass([
|
|
5128
|
-
|
|
5129
|
-
|
|
5160
|
+
Column54({ name: "selected_option_id", type: "integer" }),
|
|
5161
|
+
Index46()
|
|
5130
5162
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5131
5163
|
__decorateClass([
|
|
5132
|
-
|
|
5164
|
+
ManyToOne51(
|
|
5133
5165
|
() => AssessmetQuestionOption,
|
|
5134
5166
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5135
5167
|
),
|
|
5136
|
-
|
|
5168
|
+
JoinColumn51({ name: "selected_option_id" })
|
|
5137
5169
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5138
5170
|
__decorateClass([
|
|
5139
|
-
|
|
5171
|
+
Column54({
|
|
5140
5172
|
name: "selected_answer_type",
|
|
5141
5173
|
type: "enum",
|
|
5142
5174
|
enum: SelectedAnswerTypeEnum
|
|
5143
5175
|
})
|
|
5144
5176
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5145
5177
|
__decorateClass([
|
|
5146
|
-
|
|
5178
|
+
Column54({ name: "score", type: "float" })
|
|
5147
5179
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5148
5180
|
AssessmentAnswer = __decorateClass([
|
|
5149
|
-
|
|
5181
|
+
Entity53("assessment_answers")
|
|
5150
5182
|
], AssessmentAnswer);
|
|
5151
5183
|
|
|
5152
5184
|
// src/entities/company-skill.entity.ts
|
|
5153
|
-
import { Entity as
|
|
5185
|
+
import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
5154
5186
|
var CompanySkill = class extends BaseEntity {
|
|
5155
5187
|
};
|
|
5156
5188
|
// individual index to find core skills by user
|
|
5157
5189
|
__decorateClass([
|
|
5158
|
-
|
|
5159
|
-
|
|
5190
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5191
|
+
Index47()
|
|
5160
5192
|
], CompanySkill.prototype, "userId", 2);
|
|
5161
5193
|
__decorateClass([
|
|
5162
|
-
|
|
5163
|
-
|
|
5194
|
+
ManyToOne52(() => User, (user) => user.companySkills),
|
|
5195
|
+
JoinColumn52({ name: "user_id" })
|
|
5164
5196
|
], CompanySkill.prototype, "user", 2);
|
|
5165
5197
|
__decorateClass([
|
|
5166
|
-
|
|
5198
|
+
Column55({ name: "skill_name", type: "varchar", nullable: true })
|
|
5167
5199
|
], CompanySkill.prototype, "skillName", 2);
|
|
5168
5200
|
CompanySkill = __decorateClass([
|
|
5169
|
-
|
|
5201
|
+
Entity54("company_skills")
|
|
5170
5202
|
], CompanySkill);
|
|
5171
5203
|
|
|
5172
5204
|
// src/entities/admin-user-role.entity.ts
|
|
5173
|
-
import { Entity as
|
|
5205
|
+
import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5174
5206
|
|
|
5175
5207
|
// src/entities/admin-role.entity.ts
|
|
5176
|
-
import { Entity as
|
|
5208
|
+
import { Entity as Entity57, Column as Column58, Index as Index50, OneToMany as OneToMany22 } from "typeorm";
|
|
5177
5209
|
|
|
5178
5210
|
// src/entities/admin-role-permission.entity.ts
|
|
5179
|
-
import { Entity as
|
|
5211
|
+
import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5180
5212
|
|
|
5181
5213
|
// src/entities/admin-permission.entity.ts
|
|
5182
|
-
import { Entity as
|
|
5214
|
+
import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as OneToMany21 } from "typeorm";
|
|
5183
5215
|
var AdminPermission = class extends BaseEntity {
|
|
5184
5216
|
};
|
|
5185
5217
|
__decorateClass([
|
|
5186
|
-
|
|
5218
|
+
Column56({ name: "permission_name", type: "varchar", nullable: true })
|
|
5187
5219
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5188
5220
|
__decorateClass([
|
|
5189
|
-
|
|
5221
|
+
Column56({
|
|
5190
5222
|
name: "permission_slug",
|
|
5191
5223
|
type: "varchar",
|
|
5192
5224
|
unique: true,
|
|
5193
5225
|
nullable: true
|
|
5194
5226
|
}),
|
|
5195
|
-
|
|
5227
|
+
Index48()
|
|
5196
5228
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5197
5229
|
__decorateClass([
|
|
5198
|
-
|
|
5230
|
+
Column56({ name: "permission_description", type: "varchar", nullable: true })
|
|
5199
5231
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5200
5232
|
__decorateClass([
|
|
5201
|
-
|
|
5233
|
+
Column56({ name: "module", type: "varchar", nullable: true })
|
|
5202
5234
|
], AdminPermission.prototype, "module", 2);
|
|
5203
5235
|
__decorateClass([
|
|
5204
|
-
|
|
5236
|
+
Column56({ name: "is_active", type: "boolean", default: true })
|
|
5205
5237
|
], AdminPermission.prototype, "isActive", 2);
|
|
5206
5238
|
__decorateClass([
|
|
5207
|
-
|
|
5239
|
+
OneToMany21(
|
|
5208
5240
|
() => AdminRolePermission,
|
|
5209
5241
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5210
5242
|
)
|
|
5211
5243
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5212
5244
|
AdminPermission = __decorateClass([
|
|
5213
|
-
|
|
5245
|
+
Entity55("admin_permissions")
|
|
5214
5246
|
], AdminPermission);
|
|
5215
5247
|
|
|
5216
5248
|
// src/entities/admin-role-permission.entity.ts
|
|
5217
5249
|
var AdminRolePermission = class extends BaseEntity {
|
|
5218
5250
|
};
|
|
5219
5251
|
__decorateClass([
|
|
5220
|
-
|
|
5252
|
+
Column57({
|
|
5221
5253
|
name: "role_id",
|
|
5222
5254
|
type: "int",
|
|
5223
5255
|
nullable: true,
|
|
@@ -5225,11 +5257,11 @@ __decorateClass([
|
|
|
5225
5257
|
})
|
|
5226
5258
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5227
5259
|
__decorateClass([
|
|
5228
|
-
|
|
5229
|
-
|
|
5260
|
+
ManyToOne53(() => AdminRole),
|
|
5261
|
+
JoinColumn53({ name: "role_id" })
|
|
5230
5262
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5231
5263
|
__decorateClass([
|
|
5232
|
-
|
|
5264
|
+
Column57({
|
|
5233
5265
|
name: "permission_id",
|
|
5234
5266
|
type: "int",
|
|
5235
5267
|
nullable: true,
|
|
@@ -5237,47 +5269,47 @@ __decorateClass([
|
|
|
5237
5269
|
})
|
|
5238
5270
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5239
5271
|
__decorateClass([
|
|
5240
|
-
|
|
5241
|
-
|
|
5272
|
+
ManyToOne53(() => AdminPermission),
|
|
5273
|
+
JoinColumn53({ name: "permission_id" })
|
|
5242
5274
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5243
5275
|
AdminRolePermission = __decorateClass([
|
|
5244
|
-
|
|
5276
|
+
Entity56("admin_role_permissions")
|
|
5245
5277
|
], AdminRolePermission);
|
|
5246
5278
|
|
|
5247
5279
|
// src/entities/admin-role.entity.ts
|
|
5248
5280
|
var AdminRole = class extends BaseEntity {
|
|
5249
5281
|
};
|
|
5250
5282
|
__decorateClass([
|
|
5251
|
-
|
|
5283
|
+
Column58({ name: "role_name", type: "varchar", nullable: true })
|
|
5252
5284
|
], AdminRole.prototype, "roleName", 2);
|
|
5253
5285
|
__decorateClass([
|
|
5254
|
-
|
|
5255
|
-
|
|
5286
|
+
Column58({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5287
|
+
Index50()
|
|
5256
5288
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5257
5289
|
__decorateClass([
|
|
5258
|
-
|
|
5290
|
+
Column58({ name: "role_description", type: "varchar", nullable: true })
|
|
5259
5291
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5260
5292
|
__decorateClass([
|
|
5261
|
-
|
|
5293
|
+
Column58({ name: "is_active", type: "boolean", default: true })
|
|
5262
5294
|
], AdminRole.prototype, "isActive", 2);
|
|
5263
5295
|
__decorateClass([
|
|
5264
|
-
|
|
5296
|
+
OneToMany22(
|
|
5265
5297
|
() => AdminRolePermission,
|
|
5266
5298
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5267
5299
|
)
|
|
5268
5300
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5269
5301
|
__decorateClass([
|
|
5270
|
-
|
|
5302
|
+
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5271
5303
|
], AdminRole.prototype, "userRoles", 2);
|
|
5272
5304
|
AdminRole = __decorateClass([
|
|
5273
|
-
|
|
5305
|
+
Entity57("admin_roles")
|
|
5274
5306
|
], AdminRole);
|
|
5275
5307
|
|
|
5276
5308
|
// src/entities/admin-user-role.entity.ts
|
|
5277
5309
|
var AdminUserRole = class extends BaseEntity {
|
|
5278
5310
|
};
|
|
5279
5311
|
__decorateClass([
|
|
5280
|
-
|
|
5312
|
+
Column59({
|
|
5281
5313
|
name: "user_id",
|
|
5282
5314
|
type: "int",
|
|
5283
5315
|
nullable: true,
|
|
@@ -5285,11 +5317,11 @@ __decorateClass([
|
|
|
5285
5317
|
})
|
|
5286
5318
|
], AdminUserRole.prototype, "userId", 2);
|
|
5287
5319
|
__decorateClass([
|
|
5288
|
-
|
|
5289
|
-
|
|
5320
|
+
ManyToOne54(() => User),
|
|
5321
|
+
JoinColumn54({ name: "user_id" })
|
|
5290
5322
|
], AdminUserRole.prototype, "user", 2);
|
|
5291
5323
|
__decorateClass([
|
|
5292
|
-
|
|
5324
|
+
Column59({
|
|
5293
5325
|
name: "role_id",
|
|
5294
5326
|
type: "int",
|
|
5295
5327
|
nullable: true,
|
|
@@ -5297,70 +5329,70 @@ __decorateClass([
|
|
|
5297
5329
|
})
|
|
5298
5330
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5299
5331
|
__decorateClass([
|
|
5300
|
-
|
|
5301
|
-
|
|
5332
|
+
ManyToOne54(() => AdminRole),
|
|
5333
|
+
JoinColumn54({ name: "role_id" })
|
|
5302
5334
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5303
5335
|
AdminUserRole = __decorateClass([
|
|
5304
|
-
|
|
5336
|
+
Entity58("admin_user_roles")
|
|
5305
5337
|
], AdminUserRole);
|
|
5306
5338
|
|
|
5307
5339
|
// src/entities/freelancer-resume.entity.ts
|
|
5308
5340
|
import {
|
|
5309
|
-
Entity as
|
|
5310
|
-
Column as
|
|
5311
|
-
Index as
|
|
5312
|
-
ManyToOne as
|
|
5313
|
-
JoinColumn as
|
|
5341
|
+
Entity as Entity59,
|
|
5342
|
+
Column as Column60,
|
|
5343
|
+
Index as Index52,
|
|
5344
|
+
ManyToOne as ManyToOne55,
|
|
5345
|
+
JoinColumn as JoinColumn55
|
|
5314
5346
|
} from "typeorm";
|
|
5315
5347
|
var FreelancerResume = class extends BaseEntity {
|
|
5316
5348
|
};
|
|
5317
5349
|
// individual index to find profile by user
|
|
5318
5350
|
__decorateClass([
|
|
5319
|
-
|
|
5320
|
-
|
|
5351
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5352
|
+
Index52()
|
|
5321
5353
|
], FreelancerResume.prototype, "userId", 2);
|
|
5322
5354
|
__decorateClass([
|
|
5323
|
-
|
|
5324
|
-
|
|
5355
|
+
ManyToOne55(() => User, (user) => user.freelancerProfile),
|
|
5356
|
+
JoinColumn55({ name: "user_id" })
|
|
5325
5357
|
], FreelancerResume.prototype, "user", 2);
|
|
5326
5358
|
__decorateClass([
|
|
5327
|
-
|
|
5359
|
+
Column60({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5328
5360
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5329
5361
|
__decorateClass([
|
|
5330
|
-
|
|
5362
|
+
Column60({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5331
5363
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5332
5364
|
FreelancerResume = __decorateClass([
|
|
5333
|
-
|
|
5365
|
+
Entity59("freelancer_resumes")
|
|
5334
5366
|
], FreelancerResume);
|
|
5335
5367
|
|
|
5336
5368
|
// src/entities/signature.entity.ts
|
|
5337
5369
|
import {
|
|
5338
|
-
Entity as
|
|
5339
|
-
Column as
|
|
5340
|
-
Index as
|
|
5341
|
-
ManyToOne as
|
|
5342
|
-
JoinColumn as
|
|
5370
|
+
Entity as Entity60,
|
|
5371
|
+
Column as Column61,
|
|
5372
|
+
Index as Index53,
|
|
5373
|
+
ManyToOne as ManyToOne56,
|
|
5374
|
+
JoinColumn as JoinColumn56
|
|
5343
5375
|
} from "typeorm";
|
|
5344
5376
|
var Signature = class extends BaseEntity {
|
|
5345
5377
|
};
|
|
5346
5378
|
// individual index to find profile by user
|
|
5347
5379
|
__decorateClass([
|
|
5348
|
-
|
|
5349
|
-
|
|
5380
|
+
Column61({ name: "user_id", type: "integer", nullable: true }),
|
|
5381
|
+
Index53()
|
|
5350
5382
|
], Signature.prototype, "userId", 2);
|
|
5351
5383
|
__decorateClass([
|
|
5352
|
-
|
|
5353
|
-
|
|
5384
|
+
ManyToOne56(() => User, (user) => user.signatures),
|
|
5385
|
+
JoinColumn56({ name: "user_id" })
|
|
5354
5386
|
], Signature.prototype, "user", 2);
|
|
5355
5387
|
__decorateClass([
|
|
5356
|
-
|
|
5388
|
+
Column61({ name: "signature_url", type: "text", nullable: true })
|
|
5357
5389
|
], Signature.prototype, "signatureUrl", 2);
|
|
5358
5390
|
Signature = __decorateClass([
|
|
5359
|
-
|
|
5391
|
+
Entity60("signatures")
|
|
5360
5392
|
], Signature);
|
|
5361
5393
|
|
|
5362
5394
|
// src/entities/dispute.entity.ts
|
|
5363
|
-
import { Entity as
|
|
5395
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, JoinColumn as JoinColumn57, ManyToOne as ManyToOne57 } from "typeorm";
|
|
5364
5396
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5365
5397
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5366
5398
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5381,36 +5413,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5381
5413
|
var Dispute = class extends BaseEntity {
|
|
5382
5414
|
};
|
|
5383
5415
|
__decorateClass([
|
|
5384
|
-
|
|
5385
|
-
|
|
5416
|
+
Column62({ name: "client_id", type: "integer", nullable: true }),
|
|
5417
|
+
Index54()
|
|
5386
5418
|
], Dispute.prototype, "clientId", 2);
|
|
5387
5419
|
__decorateClass([
|
|
5388
|
-
|
|
5389
|
-
|
|
5420
|
+
ManyToOne57(() => User, (user) => user.clientDisputes),
|
|
5421
|
+
JoinColumn57({ name: "client_id" })
|
|
5390
5422
|
], Dispute.prototype, "client", 2);
|
|
5391
5423
|
__decorateClass([
|
|
5392
|
-
|
|
5393
|
-
|
|
5424
|
+
Column62({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5425
|
+
Index54()
|
|
5394
5426
|
], Dispute.prototype, "freelancerId", 2);
|
|
5395
5427
|
__decorateClass([
|
|
5396
|
-
|
|
5397
|
-
|
|
5428
|
+
ManyToOne57(() => User, (user) => user.freelancerDisputes),
|
|
5429
|
+
JoinColumn57({ name: "freelancer_id" })
|
|
5398
5430
|
], Dispute.prototype, "freelancer", 2);
|
|
5399
5431
|
__decorateClass([
|
|
5400
|
-
|
|
5432
|
+
Column62({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5401
5433
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5402
5434
|
__decorateClass([
|
|
5403
|
-
|
|
5404
|
-
|
|
5435
|
+
Column62({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5436
|
+
Index54()
|
|
5405
5437
|
], Dispute.prototype, "disputeType", 2);
|
|
5406
5438
|
__decorateClass([
|
|
5407
|
-
|
|
5439
|
+
Column62({ name: "description", type: "varchar", nullable: true })
|
|
5408
5440
|
], Dispute.prototype, "description", 2);
|
|
5409
5441
|
__decorateClass([
|
|
5410
|
-
|
|
5442
|
+
Column62({ name: "comment", type: "varchar", nullable: true })
|
|
5411
5443
|
], Dispute.prototype, "comment", 2);
|
|
5412
5444
|
__decorateClass([
|
|
5413
|
-
|
|
5445
|
+
Column62({
|
|
5414
5446
|
name: "status",
|
|
5415
5447
|
type: "enum",
|
|
5416
5448
|
enum: DisputeStatusEnum,
|
|
@@ -5418,7 +5450,7 @@ __decorateClass([
|
|
|
5418
5450
|
})
|
|
5419
5451
|
], Dispute.prototype, "status", 2);
|
|
5420
5452
|
__decorateClass([
|
|
5421
|
-
|
|
5453
|
+
Column62({
|
|
5422
5454
|
name: "initiator_type",
|
|
5423
5455
|
type: "enum",
|
|
5424
5456
|
enum: InitiatorTypeEnum,
|
|
@@ -5427,33 +5459,33 @@ __decorateClass([
|
|
|
5427
5459
|
})
|
|
5428
5460
|
], Dispute.prototype, "initiatorType", 2);
|
|
5429
5461
|
__decorateClass([
|
|
5430
|
-
|
|
5431
|
-
|
|
5462
|
+
Column62({ name: "initiator_id", type: "integer" }),
|
|
5463
|
+
Index54()
|
|
5432
5464
|
], Dispute.prototype, "initiatorId", 2);
|
|
5433
5465
|
__decorateClass([
|
|
5434
|
-
|
|
5435
|
-
|
|
5466
|
+
ManyToOne57(() => User, (user) => user.initiatedDisputes),
|
|
5467
|
+
JoinColumn57({ name: "initiator_id" })
|
|
5436
5468
|
], Dispute.prototype, "initiator", 2);
|
|
5437
5469
|
__decorateClass([
|
|
5438
|
-
|
|
5439
|
-
|
|
5470
|
+
Column62({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5471
|
+
Index54()
|
|
5440
5472
|
], Dispute.prototype, "respondentId", 2);
|
|
5441
5473
|
__decorateClass([
|
|
5442
|
-
|
|
5443
|
-
|
|
5474
|
+
ManyToOne57(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5475
|
+
JoinColumn57({ name: "respondent_id" })
|
|
5444
5476
|
], Dispute.prototype, "respondent", 2);
|
|
5445
5477
|
__decorateClass([
|
|
5446
|
-
|
|
5478
|
+
Column62({ name: "attachments", type: "jsonb", nullable: true })
|
|
5447
5479
|
], Dispute.prototype, "attachments", 2);
|
|
5448
5480
|
__decorateClass([
|
|
5449
|
-
|
|
5481
|
+
Column62({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5450
5482
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5451
5483
|
Dispute = __decorateClass([
|
|
5452
|
-
|
|
5484
|
+
Entity61("disputes")
|
|
5453
5485
|
], Dispute);
|
|
5454
5486
|
|
|
5455
5487
|
// src/entities/stripe-transaction.entity.ts
|
|
5456
|
-
import { Entity as
|
|
5488
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
|
|
5457
5489
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5458
5490
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5459
5491
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5475,97 +5507,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5475
5507
|
// Full Stripe session response
|
|
5476
5508
|
};
|
|
5477
5509
|
__decorateClass([
|
|
5478
|
-
|
|
5479
|
-
|
|
5510
|
+
Column63({ name: "user_id", type: "integer", nullable: true }),
|
|
5511
|
+
Index55()
|
|
5480
5512
|
], StripeTransaction.prototype, "userId", 2);
|
|
5481
5513
|
__decorateClass([
|
|
5482
|
-
|
|
5483
|
-
|
|
5514
|
+
ManyToOne58(() => User, (user) => user.stripeTransactions),
|
|
5515
|
+
JoinColumn58({ name: "user_id" })
|
|
5484
5516
|
], StripeTransaction.prototype, "user", 2);
|
|
5485
5517
|
__decorateClass([
|
|
5486
|
-
|
|
5518
|
+
Column63({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5487
5519
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5488
5520
|
__decorateClass([
|
|
5489
|
-
|
|
5521
|
+
Column63({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5490
5522
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5491
5523
|
__decorateClass([
|
|
5492
|
-
|
|
5524
|
+
Column63({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5493
5525
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5494
5526
|
__decorateClass([
|
|
5495
|
-
|
|
5527
|
+
Column63({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5496
5528
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5497
5529
|
__decorateClass([
|
|
5498
|
-
|
|
5530
|
+
Column63({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5499
5531
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5500
5532
|
__decorateClass([
|
|
5501
|
-
|
|
5533
|
+
Column63({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5502
5534
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5503
5535
|
__decorateClass([
|
|
5504
|
-
|
|
5536
|
+
Column63({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5505
5537
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5506
5538
|
__decorateClass([
|
|
5507
|
-
|
|
5539
|
+
Column63({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5508
5540
|
], StripeTransaction.prototype, "type", 2);
|
|
5509
5541
|
__decorateClass([
|
|
5510
|
-
|
|
5542
|
+
Column63({ name: "currency", type: "varchar", nullable: true })
|
|
5511
5543
|
], StripeTransaction.prototype, "currency", 2);
|
|
5512
5544
|
__decorateClass([
|
|
5513
|
-
|
|
5545
|
+
Column63({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
5514
5546
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5515
5547
|
__decorateClass([
|
|
5516
|
-
|
|
5548
|
+
Column63({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5517
5549
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5518
5550
|
__decorateClass([
|
|
5519
|
-
|
|
5551
|
+
Column63({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5520
5552
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5521
5553
|
__decorateClass([
|
|
5522
|
-
|
|
5554
|
+
Column63({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5523
5555
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5524
5556
|
__decorateClass([
|
|
5525
|
-
|
|
5557
|
+
Column63({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
5526
5558
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5527
5559
|
__decorateClass([
|
|
5528
|
-
|
|
5560
|
+
Column63({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5529
5561
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5530
5562
|
__decorateClass([
|
|
5531
|
-
|
|
5563
|
+
Column63({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5532
5564
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5533
5565
|
__decorateClass([
|
|
5534
|
-
|
|
5566
|
+
Column63({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
5535
5567
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5536
5568
|
__decorateClass([
|
|
5537
|
-
|
|
5569
|
+
Column63({ name: "description", type: "text", nullable: true })
|
|
5538
5570
|
], StripeTransaction.prototype, "description", 2);
|
|
5539
5571
|
__decorateClass([
|
|
5540
|
-
|
|
5572
|
+
Column63({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5541
5573
|
], StripeTransaction.prototype, "status", 2);
|
|
5542
5574
|
__decorateClass([
|
|
5543
|
-
|
|
5575
|
+
Column63({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5544
5576
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5545
5577
|
__decorateClass([
|
|
5546
|
-
|
|
5578
|
+
Column63({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5547
5579
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5548
5580
|
__decorateClass([
|
|
5549
|
-
|
|
5581
|
+
Column63({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5550
5582
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5551
5583
|
__decorateClass([
|
|
5552
|
-
|
|
5584
|
+
Column63({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5553
5585
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5554
5586
|
__decorateClass([
|
|
5555
|
-
|
|
5587
|
+
Column63({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5556
5588
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5557
5589
|
__decorateClass([
|
|
5558
|
-
|
|
5590
|
+
Column63({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5559
5591
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5560
5592
|
StripeTransaction = __decorateClass([
|
|
5561
|
-
|
|
5593
|
+
Entity62("stripe_transactions")
|
|
5562
5594
|
], StripeTransaction);
|
|
5563
5595
|
|
|
5564
5596
|
// src/entities/wallet.entity.ts
|
|
5565
|
-
import { Entity as
|
|
5597
|
+
import { Entity as Entity64, Column as Column65, Index as Index57, JoinColumn as JoinColumn60, OneToOne as OneToOne12, OneToMany as OneToMany23 } from "typeorm";
|
|
5566
5598
|
|
|
5567
5599
|
// src/entities/wallet-transaction.entity.ts
|
|
5568
|
-
import { Entity as
|
|
5600
|
+
import { Entity as Entity63, Column as Column64, Index as Index56, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
|
|
5569
5601
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5570
5602
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5571
5603
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5582,46 +5614,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5582
5614
|
var WalletTransaction = class extends BaseEntity {
|
|
5583
5615
|
};
|
|
5584
5616
|
__decorateClass([
|
|
5585
|
-
|
|
5586
|
-
|
|
5617
|
+
Column64({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5618
|
+
Index56()
|
|
5587
5619
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5588
5620
|
__decorateClass([
|
|
5589
|
-
|
|
5590
|
-
|
|
5621
|
+
ManyToOne59(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5622
|
+
JoinColumn59({ name: "wallet_id" })
|
|
5591
5623
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5592
5624
|
__decorateClass([
|
|
5593
|
-
|
|
5625
|
+
Column64({ name: "amount", type: "bigint", nullable: true })
|
|
5594
5626
|
], WalletTransaction.prototype, "amount", 2);
|
|
5595
5627
|
__decorateClass([
|
|
5596
|
-
|
|
5628
|
+
Column64({ name: "balance_before", type: "bigint", nullable: true })
|
|
5597
5629
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5598
5630
|
__decorateClass([
|
|
5599
|
-
|
|
5631
|
+
Column64({ name: "balance_after", type: "bigint", nullable: true })
|
|
5600
5632
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5601
5633
|
__decorateClass([
|
|
5602
|
-
|
|
5634
|
+
Column64({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5603
5635
|
], WalletTransaction.prototype, "type", 2);
|
|
5604
5636
|
__decorateClass([
|
|
5605
|
-
|
|
5637
|
+
Column64({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5606
5638
|
], WalletTransaction.prototype, "status", 2);
|
|
5607
5639
|
__decorateClass([
|
|
5608
|
-
|
|
5640
|
+
Column64({ name: "description", type: "text", nullable: true })
|
|
5609
5641
|
], WalletTransaction.prototype, "description", 2);
|
|
5610
5642
|
__decorateClass([
|
|
5611
|
-
|
|
5643
|
+
Column64({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5612
5644
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5613
5645
|
__decorateClass([
|
|
5614
|
-
|
|
5646
|
+
Column64({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5615
5647
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5616
5648
|
__decorateClass([
|
|
5617
|
-
|
|
5649
|
+
Column64({ name: "meta_data", type: "varchar", nullable: true })
|
|
5618
5650
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5619
5651
|
__decorateClass([
|
|
5620
|
-
|
|
5621
|
-
|
|
5652
|
+
Column64({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5653
|
+
Index56()
|
|
5622
5654
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5623
5655
|
WalletTransaction = __decorateClass([
|
|
5624
|
-
|
|
5656
|
+
Entity63("wallet_transactions")
|
|
5625
5657
|
], WalletTransaction);
|
|
5626
5658
|
|
|
5627
5659
|
// src/entities/wallet.entity.ts
|
|
@@ -5639,48 +5671,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5639
5671
|
var Wallet = class extends BaseEntity {
|
|
5640
5672
|
};
|
|
5641
5673
|
__decorateClass([
|
|
5642
|
-
|
|
5643
|
-
|
|
5674
|
+
Column65({ name: "user_id", type: "integer", nullable: true }),
|
|
5675
|
+
Index57()
|
|
5644
5676
|
], Wallet.prototype, "userId", 2);
|
|
5645
5677
|
__decorateClass([
|
|
5646
5678
|
OneToOne12(() => User, (user) => user.wallet),
|
|
5647
|
-
|
|
5679
|
+
JoinColumn60({ name: "user_id" })
|
|
5648
5680
|
], Wallet.prototype, "user", 2);
|
|
5649
5681
|
__decorateClass([
|
|
5650
|
-
|
|
5682
|
+
Column65({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5651
5683
|
], Wallet.prototype, "accountType", 2);
|
|
5652
5684
|
__decorateClass([
|
|
5653
|
-
|
|
5685
|
+
Column65({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5654
5686
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5655
5687
|
__decorateClass([
|
|
5656
|
-
|
|
5688
|
+
Column65({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5657
5689
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5658
5690
|
__decorateClass([
|
|
5659
|
-
|
|
5691
|
+
Column65({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5660
5692
|
], Wallet.prototype, "walletBalance", 2);
|
|
5661
5693
|
__decorateClass([
|
|
5662
|
-
|
|
5694
|
+
Column65({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
5663
5695
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5664
5696
|
__decorateClass([
|
|
5665
|
-
|
|
5697
|
+
Column65({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5666
5698
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5667
5699
|
__decorateClass([
|
|
5668
|
-
|
|
5700
|
+
Column65({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5669
5701
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5670
5702
|
__decorateClass([
|
|
5671
|
-
|
|
5703
|
+
OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5672
5704
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5673
5705
|
Wallet = __decorateClass([
|
|
5674
|
-
|
|
5706
|
+
Entity64("wallets")
|
|
5675
5707
|
], Wallet);
|
|
5676
5708
|
|
|
5677
5709
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5678
5710
|
import {
|
|
5679
|
-
Entity as
|
|
5680
|
-
Column as
|
|
5681
|
-
ManyToOne as
|
|
5682
|
-
Index as
|
|
5683
|
-
JoinColumn as
|
|
5711
|
+
Entity as Entity65,
|
|
5712
|
+
Column as Column66,
|
|
5713
|
+
ManyToOne as ManyToOne60,
|
|
5714
|
+
Index as Index58,
|
|
5715
|
+
JoinColumn as JoinColumn61
|
|
5684
5716
|
} from "typeorm";
|
|
5685
5717
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5686
5718
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -5691,23 +5723,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5691
5723
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5692
5724
|
};
|
|
5693
5725
|
__decorateClass([
|
|
5694
|
-
|
|
5695
|
-
|
|
5726
|
+
Column66({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5727
|
+
Index58()
|
|
5696
5728
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5697
5729
|
__decorateClass([
|
|
5698
|
-
|
|
5699
|
-
|
|
5730
|
+
ManyToOne60(() => User, (user) => user.freelancerAssessmentRequests),
|
|
5731
|
+
JoinColumn61({ name: "freelancer_id" })
|
|
5700
5732
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5701
5733
|
__decorateClass([
|
|
5702
|
-
|
|
5703
|
-
|
|
5734
|
+
Column66({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5735
|
+
Index58()
|
|
5704
5736
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5705
5737
|
__decorateClass([
|
|
5706
|
-
|
|
5707
|
-
|
|
5738
|
+
ManyToOne60(() => User, (user) => user.assessmentRequests),
|
|
5739
|
+
JoinColumn61({ name: "approved_by_id" })
|
|
5708
5740
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5709
5741
|
__decorateClass([
|
|
5710
|
-
|
|
5742
|
+
Column66({
|
|
5711
5743
|
name: "status",
|
|
5712
5744
|
type: "enum",
|
|
5713
5745
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5715,10 +5747,10 @@ __decorateClass([
|
|
|
5715
5747
|
})
|
|
5716
5748
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5717
5749
|
__decorateClass([
|
|
5718
|
-
|
|
5750
|
+
Column66({ name: "assessment_link", type: "text", nullable: true })
|
|
5719
5751
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5720
5752
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5721
|
-
|
|
5753
|
+
Entity65({ name: "freelancer_assessment_requests" })
|
|
5722
5754
|
], FreelancerAssessmentRequest);
|
|
5723
5755
|
|
|
5724
5756
|
// src/entities/user.entity.ts
|
|
@@ -5747,51 +5779,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5747
5779
|
var User = class extends BaseEntity {
|
|
5748
5780
|
};
|
|
5749
5781
|
__decorateClass([
|
|
5750
|
-
|
|
5782
|
+
Column67({ name: "unique_id", type: "varchar", unique: true })
|
|
5751
5783
|
], User.prototype, "uniqueId", 2);
|
|
5752
5784
|
__decorateClass([
|
|
5753
|
-
|
|
5754
|
-
|
|
5785
|
+
Column67({ name: "parent_id", type: "integer", nullable: true }),
|
|
5786
|
+
Index59()
|
|
5755
5787
|
], User.prototype, "parentId", 2);
|
|
5756
5788
|
__decorateClass([
|
|
5757
|
-
|
|
5758
|
-
|
|
5789
|
+
ManyToOne61(() => User, (user) => user.children, { nullable: true }),
|
|
5790
|
+
JoinColumn62({ name: "parent_id" })
|
|
5759
5791
|
], User.prototype, "parent", 2);
|
|
5760
5792
|
__decorateClass([
|
|
5761
|
-
|
|
5793
|
+
OneToMany24(() => User, (user) => user.parent)
|
|
5762
5794
|
], User.prototype, "children", 2);
|
|
5763
5795
|
__decorateClass([
|
|
5764
|
-
|
|
5796
|
+
Column67({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5765
5797
|
], User.prototype, "username", 2);
|
|
5766
5798
|
__decorateClass([
|
|
5767
|
-
|
|
5799
|
+
Column67({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5768
5800
|
], User.prototype, "firstName", 2);
|
|
5769
5801
|
__decorateClass([
|
|
5770
|
-
|
|
5802
|
+
Column67({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5771
5803
|
], User.prototype, "lastName", 2);
|
|
5772
5804
|
__decorateClass([
|
|
5773
|
-
|
|
5805
|
+
Column67({ name: "date_of_birth", type: "date", nullable: true })
|
|
5774
5806
|
], User.prototype, "dateOfBirth", 2);
|
|
5775
5807
|
__decorateClass([
|
|
5776
|
-
|
|
5808
|
+
Column67({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5777
5809
|
], User.prototype, "gender", 2);
|
|
5778
5810
|
__decorateClass([
|
|
5779
|
-
|
|
5811
|
+
Column67({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5780
5812
|
], User.prototype, "profilePictureUrl", 2);
|
|
5781
5813
|
__decorateClass([
|
|
5782
|
-
|
|
5814
|
+
Column67({ name: "email", type: "varchar", unique: true })
|
|
5783
5815
|
], User.prototype, "email", 2);
|
|
5784
5816
|
__decorateClass([
|
|
5785
|
-
|
|
5817
|
+
Column67({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5786
5818
|
], User.prototype, "mobileCode", 2);
|
|
5787
5819
|
__decorateClass([
|
|
5788
|
-
|
|
5820
|
+
Column67({ name: "mobile", type: "varchar", nullable: true })
|
|
5789
5821
|
], User.prototype, "mobile", 2);
|
|
5790
5822
|
__decorateClass([
|
|
5791
|
-
|
|
5823
|
+
Column67({ name: "password", type: "varchar", nullable: true })
|
|
5792
5824
|
], User.prototype, "password", 2);
|
|
5793
5825
|
__decorateClass([
|
|
5794
|
-
|
|
5826
|
+
Column67({
|
|
5795
5827
|
name: "account_type",
|
|
5796
5828
|
type: "enum",
|
|
5797
5829
|
enum: AccountType2,
|
|
@@ -5799,7 +5831,7 @@ __decorateClass([
|
|
|
5799
5831
|
})
|
|
5800
5832
|
], User.prototype, "accountType", 2);
|
|
5801
5833
|
__decorateClass([
|
|
5802
|
-
|
|
5834
|
+
Column67({
|
|
5803
5835
|
name: "account_status",
|
|
5804
5836
|
type: "enum",
|
|
5805
5837
|
enum: AccountStatus,
|
|
@@ -5807,42 +5839,42 @@ __decorateClass([
|
|
|
5807
5839
|
})
|
|
5808
5840
|
], User.prototype, "accountStatus", 2);
|
|
5809
5841
|
__decorateClass([
|
|
5810
|
-
|
|
5842
|
+
Column67({ name: "is_email_verified", type: "boolean", default: false })
|
|
5811
5843
|
], User.prototype, "isEmailVerified", 2);
|
|
5812
5844
|
__decorateClass([
|
|
5813
|
-
|
|
5845
|
+
Column67({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5814
5846
|
], User.prototype, "isMobileVerified", 2);
|
|
5815
5847
|
__decorateClass([
|
|
5816
|
-
|
|
5848
|
+
Column67({ name: "is_social", type: "boolean", default: false })
|
|
5817
5849
|
], User.prototype, "isSocial", 2);
|
|
5818
5850
|
__decorateClass([
|
|
5819
|
-
|
|
5851
|
+
Column67({
|
|
5820
5852
|
name: "last_login_at",
|
|
5821
5853
|
type: "timestamp with time zone",
|
|
5822
5854
|
nullable: true
|
|
5823
5855
|
})
|
|
5824
5856
|
], User.prototype, "lastLoginAt", 2);
|
|
5825
5857
|
__decorateClass([
|
|
5826
|
-
|
|
5858
|
+
Column67({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5827
5859
|
], User.prototype, "lastLoginIp", 2);
|
|
5828
5860
|
__decorateClass([
|
|
5829
|
-
|
|
5861
|
+
Column67({ name: "reset_token", type: "varchar", nullable: true })
|
|
5830
5862
|
], User.prototype, "resetToken", 2);
|
|
5831
5863
|
__decorateClass([
|
|
5832
|
-
|
|
5864
|
+
Column67({
|
|
5833
5865
|
name: "reset_token_expire_at",
|
|
5834
5866
|
type: "timestamp with time zone",
|
|
5835
5867
|
nullable: true
|
|
5836
5868
|
})
|
|
5837
5869
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5838
5870
|
__decorateClass([
|
|
5839
|
-
|
|
5871
|
+
Column67({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5840
5872
|
], User.prototype, "setPasswordToken", 2);
|
|
5841
5873
|
__decorateClass([
|
|
5842
|
-
|
|
5874
|
+
OneToMany24(() => RefreshToken, (token) => token.user)
|
|
5843
5875
|
], User.prototype, "refreshTokens", 2);
|
|
5844
5876
|
__decorateClass([
|
|
5845
|
-
|
|
5877
|
+
Column67({
|
|
5846
5878
|
name: "provider",
|
|
5847
5879
|
type: "enum",
|
|
5848
5880
|
enum: Provider,
|
|
@@ -5851,43 +5883,43 @@ __decorateClass([
|
|
|
5851
5883
|
})
|
|
5852
5884
|
], User.prototype, "provider", 2);
|
|
5853
5885
|
__decorateClass([
|
|
5854
|
-
|
|
5886
|
+
Column67({ name: "provider_token", type: "varchar", nullable: true })
|
|
5855
5887
|
], User.prototype, "providerToken", 2);
|
|
5856
5888
|
__decorateClass([
|
|
5857
|
-
|
|
5889
|
+
Column67({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5858
5890
|
], User.prototype, "linkedInId", 2);
|
|
5859
5891
|
__decorateClass([
|
|
5860
|
-
|
|
5892
|
+
Column67({ name: "google_id", type: "varchar", nullable: true })
|
|
5861
5893
|
], User.prototype, "googleId", 2);
|
|
5862
5894
|
__decorateClass([
|
|
5863
|
-
|
|
5895
|
+
Column67({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5864
5896
|
], User.prototype, "gitLabsId", 2);
|
|
5865
5897
|
__decorateClass([
|
|
5866
|
-
|
|
5898
|
+
Column67({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5867
5899
|
], User.prototype, "onBoardedBy", 2);
|
|
5868
5900
|
__decorateClass([
|
|
5869
|
-
|
|
5901
|
+
OneToMany24(() => Otp, (otp) => otp.user)
|
|
5870
5902
|
], User.prototype, "otps", 2);
|
|
5871
5903
|
__decorateClass([
|
|
5872
|
-
|
|
5904
|
+
OneToMany24(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5873
5905
|
], User.prototype, "senseloafLogs", 2);
|
|
5874
5906
|
__decorateClass([
|
|
5875
5907
|
OneToOne13(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5876
5908
|
], User.prototype, "companyProfile", 2);
|
|
5877
5909
|
__decorateClass([
|
|
5878
|
-
|
|
5910
|
+
OneToMany24(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5879
5911
|
], User.prototype, "companySkills", 2);
|
|
5880
5912
|
__decorateClass([
|
|
5881
|
-
|
|
5913
|
+
OneToMany24(
|
|
5882
5914
|
() => CompanyMemberRole,
|
|
5883
5915
|
(companyMemberRole) => companyMemberRole.user
|
|
5884
5916
|
)
|
|
5885
5917
|
], User.prototype, "companyMemberRoles", 2);
|
|
5886
5918
|
__decorateClass([
|
|
5887
|
-
|
|
5919
|
+
OneToMany24(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5888
5920
|
], User.prototype, "companyAiInterview", 2);
|
|
5889
5921
|
__decorateClass([
|
|
5890
|
-
|
|
5922
|
+
OneToMany24(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5891
5923
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5892
5924
|
__decorateClass([
|
|
5893
5925
|
OneToOne13(
|
|
@@ -5899,61 +5931,61 @@ __decorateClass([
|
|
|
5899
5931
|
OneToOne13(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5900
5932
|
], User.prototype, "freelancerResume", 2);
|
|
5901
5933
|
__decorateClass([
|
|
5902
|
-
|
|
5934
|
+
OneToMany24(
|
|
5903
5935
|
() => FreelancerAssessmentRequest,
|
|
5904
5936
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
5905
5937
|
)
|
|
5906
5938
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
5907
5939
|
__decorateClass([
|
|
5908
|
-
|
|
5940
|
+
OneToMany24(
|
|
5909
5941
|
() => FreelancerAssessmentRequest,
|
|
5910
5942
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
5911
5943
|
)
|
|
5912
5944
|
], User.prototype, "assessmentRequests", 2);
|
|
5913
5945
|
__decorateClass([
|
|
5914
|
-
|
|
5946
|
+
OneToMany24(
|
|
5915
5947
|
() => FreelancerAssessment,
|
|
5916
5948
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5917
5949
|
)
|
|
5918
5950
|
], User.prototype, "assessments", 2);
|
|
5919
5951
|
__decorateClass([
|
|
5920
|
-
|
|
5952
|
+
OneToMany24(
|
|
5921
5953
|
() => AssessmentAnswer,
|
|
5922
5954
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5923
5955
|
)
|
|
5924
5956
|
], User.prototype, "assessmentAnswers", 2);
|
|
5925
5957
|
__decorateClass([
|
|
5926
|
-
|
|
5958
|
+
OneToMany24(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5927
5959
|
], User.prototype, "freelancerSkills", 2);
|
|
5928
5960
|
__decorateClass([
|
|
5929
|
-
|
|
5961
|
+
OneToMany24(
|
|
5930
5962
|
() => FreelancerExperience,
|
|
5931
5963
|
(freelancerExperience) => freelancerExperience.user
|
|
5932
5964
|
)
|
|
5933
5965
|
], User.prototype, "freelancerExperience", 2);
|
|
5934
5966
|
__decorateClass([
|
|
5935
|
-
|
|
5967
|
+
OneToMany24(
|
|
5936
5968
|
() => FreelancerEducation,
|
|
5937
5969
|
(freelancerEducation) => freelancerEducation.user
|
|
5938
5970
|
)
|
|
5939
5971
|
], User.prototype, "freelancerEducation", 2);
|
|
5940
5972
|
__decorateClass([
|
|
5941
|
-
|
|
5973
|
+
OneToMany24(
|
|
5942
5974
|
() => FreelancerProject,
|
|
5943
5975
|
(freelancerProject) => freelancerProject.user
|
|
5944
5976
|
)
|
|
5945
5977
|
], User.prototype, "freelancerProject", 2);
|
|
5946
5978
|
__decorateClass([
|
|
5947
|
-
|
|
5979
|
+
OneToMany24(
|
|
5948
5980
|
() => FreelancerCaseStudy,
|
|
5949
5981
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5950
5982
|
)
|
|
5951
5983
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5952
5984
|
__decorateClass([
|
|
5953
|
-
|
|
5985
|
+
OneToMany24(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5954
5986
|
], User.prototype, "freelancerTool", 2);
|
|
5955
5987
|
__decorateClass([
|
|
5956
|
-
|
|
5988
|
+
OneToMany24(
|
|
5957
5989
|
() => FreelancerFramework,
|
|
5958
5990
|
(freelancerFramework) => freelancerFramework.user
|
|
5959
5991
|
)
|
|
@@ -5965,134 +5997,134 @@ __decorateClass([
|
|
|
5965
5997
|
)
|
|
5966
5998
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5967
5999
|
__decorateClass([
|
|
5968
|
-
|
|
6000
|
+
OneToMany24(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5969
6001
|
], User.prototype, "freelancerMcq", 2);
|
|
5970
6002
|
__decorateClass([
|
|
5971
|
-
|
|
6003
|
+
OneToMany24(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5972
6004
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5973
6005
|
__decorateClass([
|
|
5974
|
-
|
|
6006
|
+
OneToMany24(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5975
6007
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5976
6008
|
__decorateClass([
|
|
5977
|
-
|
|
6009
|
+
OneToMany24(
|
|
5978
6010
|
() => F2fInterviewRescheduleRequest,
|
|
5979
6011
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5980
6012
|
)
|
|
5981
6013
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5982
6014
|
__decorateClass([
|
|
5983
|
-
|
|
6015
|
+
OneToMany24(
|
|
5984
6016
|
() => AiInterviewRescheduleRequest,
|
|
5985
6017
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
5986
6018
|
)
|
|
5987
6019
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
5988
6020
|
__decorateClass([
|
|
5989
|
-
|
|
6021
|
+
OneToMany24(
|
|
5990
6022
|
() => AiInterviewRescheduleRequest,
|
|
5991
6023
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
5992
6024
|
)
|
|
5993
6025
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
5994
6026
|
__decorateClass([
|
|
5995
|
-
|
|
6027
|
+
OneToMany24(() => Job, (job) => job.user)
|
|
5996
6028
|
], User.prototype, "jobs", 2);
|
|
5997
6029
|
__decorateClass([
|
|
5998
|
-
|
|
6030
|
+
OneToMany24(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5999
6031
|
], User.prototype, "jobApplications", 2);
|
|
6000
6032
|
__decorateClass([
|
|
6001
|
-
|
|
6033
|
+
OneToMany24(() => Interview, (interview) => interview.user)
|
|
6002
6034
|
], User.prototype, "interviews", 2);
|
|
6003
6035
|
__decorateClass([
|
|
6004
|
-
|
|
6036
|
+
OneToMany24(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6005
6037
|
], User.prototype, "bankDetail", 2);
|
|
6006
6038
|
__decorateClass([
|
|
6007
|
-
|
|
6039
|
+
OneToMany24(
|
|
6008
6040
|
() => SystemPreference,
|
|
6009
6041
|
(systemPreference) => systemPreference.user
|
|
6010
6042
|
)
|
|
6011
6043
|
], User.prototype, "systemPreference", 2);
|
|
6012
6044
|
__decorateClass([
|
|
6013
|
-
|
|
6045
|
+
OneToMany24(() => Rating, (rating) => rating.reviewer)
|
|
6014
6046
|
], User.prototype, "givenRatings", 2);
|
|
6015
6047
|
__decorateClass([
|
|
6016
|
-
|
|
6048
|
+
OneToMany24(() => Rating, (rating) => rating.reviewee)
|
|
6017
6049
|
], User.prototype, "receivedRatings", 2);
|
|
6018
6050
|
__decorateClass([
|
|
6019
|
-
|
|
6051
|
+
OneToMany24(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6020
6052
|
], User.prototype, "adminUserRoles", 2);
|
|
6021
6053
|
__decorateClass([
|
|
6022
|
-
|
|
6054
|
+
OneToMany24(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6023
6055
|
cascade: true
|
|
6024
6056
|
})
|
|
6025
6057
|
], User.prototype, "clientContractSummaries", 2);
|
|
6026
6058
|
__decorateClass([
|
|
6027
|
-
|
|
6059
|
+
OneToMany24(() => Contract, (contract) => contract.client)
|
|
6028
6060
|
], User.prototype, "clientContracts", 2);
|
|
6029
6061
|
__decorateClass([
|
|
6030
|
-
|
|
6062
|
+
OneToMany24(() => Hiring, (hiring) => hiring.client)
|
|
6031
6063
|
], User.prototype, "clientHirings", 2);
|
|
6032
6064
|
__decorateClass([
|
|
6033
|
-
|
|
6065
|
+
OneToMany24(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6034
6066
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6035
6067
|
__decorateClass([
|
|
6036
|
-
|
|
6068
|
+
OneToMany24(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6037
6069
|
cascade: true
|
|
6038
6070
|
})
|
|
6039
6071
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6040
6072
|
__decorateClass([
|
|
6041
|
-
|
|
6073
|
+
OneToMany24(() => Contract, (contract) => contract.freelancer)
|
|
6042
6074
|
], User.prototype, "freelancerContracts", 2);
|
|
6043
6075
|
__decorateClass([
|
|
6044
|
-
|
|
6076
|
+
OneToMany24(() => Hiring, (hiring) => hiring.freelancer)
|
|
6045
6077
|
], User.prototype, "freelancerHirings", 2);
|
|
6046
6078
|
__decorateClass([
|
|
6047
|
-
|
|
6079
|
+
OneToMany24(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6048
6080
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6049
6081
|
__decorateClass([
|
|
6050
6082
|
OneToOne13(() => Signature, (signature) => signature.user)
|
|
6051
6083
|
], User.prototype, "signatures", 2);
|
|
6052
6084
|
__decorateClass([
|
|
6053
|
-
|
|
6085
|
+
OneToMany24(() => Timesheet, (timesheet) => timesheet.client)
|
|
6054
6086
|
], User.prototype, "clientTimesheets", 2);
|
|
6055
6087
|
__decorateClass([
|
|
6056
|
-
|
|
6088
|
+
OneToMany24(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6057
6089
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6058
6090
|
__decorateClass([
|
|
6059
|
-
|
|
6091
|
+
OneToMany24(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6060
6092
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6061
6093
|
__decorateClass([
|
|
6062
|
-
|
|
6094
|
+
OneToMany24(() => Invoice, (invoice) => invoice.client)
|
|
6063
6095
|
], User.prototype, "clientInvoice", 2);
|
|
6064
6096
|
__decorateClass([
|
|
6065
|
-
|
|
6097
|
+
OneToMany24(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6066
6098
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6067
6099
|
__decorateClass([
|
|
6068
|
-
|
|
6100
|
+
OneToMany24(() => Invoice, (invoice) => invoice.freelancer)
|
|
6069
6101
|
], User.prototype, "freelancerInvoice", 2);
|
|
6070
6102
|
__decorateClass([
|
|
6071
|
-
|
|
6103
|
+
OneToMany24(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6072
6104
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6073
6105
|
__decorateClass([
|
|
6074
|
-
|
|
6106
|
+
OneToMany24(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6075
6107
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6076
6108
|
__decorateClass([
|
|
6077
|
-
|
|
6109
|
+
OneToMany24(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6078
6110
|
], User.prototype, "initiatedDisputes", 2);
|
|
6079
6111
|
__decorateClass([
|
|
6080
|
-
|
|
6112
|
+
OneToMany24(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6081
6113
|
], User.prototype, "respondentDisputes", 2);
|
|
6082
6114
|
__decorateClass([
|
|
6083
6115
|
OneToOne13(() => Wallet, (wallet) => wallet.user)
|
|
6084
6116
|
], User.prototype, "wallet", 2);
|
|
6085
6117
|
__decorateClass([
|
|
6086
|
-
|
|
6118
|
+
OneToMany24(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6087
6119
|
], User.prototype, "stripeTransactions", 2);
|
|
6088
6120
|
__decorateClass([
|
|
6089
|
-
|
|
6121
|
+
OneToMany24(() => Dispute, (dispute) => dispute.client)
|
|
6090
6122
|
], User.prototype, "clientDisputes", 2);
|
|
6091
6123
|
__decorateClass([
|
|
6092
|
-
|
|
6124
|
+
OneToMany24(() => Dispute, (dispute) => dispute.freelancer)
|
|
6093
6125
|
], User.prototype, "freelancerDisputes", 2);
|
|
6094
6126
|
User = __decorateClass([
|
|
6095
|
-
|
|
6127
|
+
Entity66("users")
|
|
6096
6128
|
], User);
|
|
6097
6129
|
|
|
6098
6130
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -12582,11 +12614,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12582
12614
|
};
|
|
12583
12615
|
|
|
12584
12616
|
// src/entities/sequence-generator.entity.ts
|
|
12585
|
-
import { Entity as
|
|
12617
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
12586
12618
|
var SequenceGenerator = class extends BaseEntity {
|
|
12587
12619
|
};
|
|
12588
12620
|
__decorateClass([
|
|
12589
|
-
|
|
12621
|
+
Column68({
|
|
12590
12622
|
name: "module",
|
|
12591
12623
|
type: "varchar",
|
|
12592
12624
|
length: 50,
|
|
@@ -12595,7 +12627,7 @@ __decorateClass([
|
|
|
12595
12627
|
})
|
|
12596
12628
|
], SequenceGenerator.prototype, "module", 2);
|
|
12597
12629
|
__decorateClass([
|
|
12598
|
-
|
|
12630
|
+
Column68({
|
|
12599
12631
|
name: "prefix",
|
|
12600
12632
|
type: "varchar",
|
|
12601
12633
|
length: 10,
|
|
@@ -12604,7 +12636,7 @@ __decorateClass([
|
|
|
12604
12636
|
})
|
|
12605
12637
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12606
12638
|
__decorateClass([
|
|
12607
|
-
|
|
12639
|
+
Column68({
|
|
12608
12640
|
name: "last_sequence",
|
|
12609
12641
|
type: "int",
|
|
12610
12642
|
nullable: false,
|
|
@@ -12612,7 +12644,7 @@ __decorateClass([
|
|
|
12612
12644
|
})
|
|
12613
12645
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12614
12646
|
__decorateClass([
|
|
12615
|
-
|
|
12647
|
+
Column68({
|
|
12616
12648
|
name: "year",
|
|
12617
12649
|
type: "int",
|
|
12618
12650
|
nullable: true,
|
|
@@ -12620,11 +12652,11 @@ __decorateClass([
|
|
|
12620
12652
|
})
|
|
12621
12653
|
], SequenceGenerator.prototype, "year", 2);
|
|
12622
12654
|
SequenceGenerator = __decorateClass([
|
|
12623
|
-
|
|
12655
|
+
Entity67("sequence_generators")
|
|
12624
12656
|
], SequenceGenerator);
|
|
12625
12657
|
|
|
12626
12658
|
// src/entities/question.entity.ts
|
|
12627
|
-
import { Entity as
|
|
12659
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
12628
12660
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12629
12661
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12630
12662
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12633,16 +12665,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12633
12665
|
var Question = class extends BaseEntity {
|
|
12634
12666
|
};
|
|
12635
12667
|
__decorateClass([
|
|
12636
|
-
|
|
12668
|
+
Column69({ name: "question", type: "varchar" })
|
|
12637
12669
|
], Question.prototype, "question", 2);
|
|
12638
12670
|
__decorateClass([
|
|
12639
|
-
|
|
12671
|
+
Column69({ name: "hint", type: "varchar", nullable: true })
|
|
12640
12672
|
], Question.prototype, "hint", 2);
|
|
12641
12673
|
__decorateClass([
|
|
12642
|
-
|
|
12674
|
+
Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12643
12675
|
], Question.prototype, "slug", 2);
|
|
12644
12676
|
__decorateClass([
|
|
12645
|
-
|
|
12677
|
+
Column69({
|
|
12646
12678
|
name: "question_for",
|
|
12647
12679
|
type: "enum",
|
|
12648
12680
|
enum: QuestionFor,
|
|
@@ -12650,49 +12682,49 @@ __decorateClass([
|
|
|
12650
12682
|
})
|
|
12651
12683
|
], Question.prototype, "questionFor", 2);
|
|
12652
12684
|
__decorateClass([
|
|
12653
|
-
|
|
12685
|
+
Column69({ name: "type", type: "varchar", nullable: true })
|
|
12654
12686
|
], Question.prototype, "type", 2);
|
|
12655
12687
|
__decorateClass([
|
|
12656
|
-
|
|
12688
|
+
Column69({ name: "options", type: "jsonb", nullable: true })
|
|
12657
12689
|
], Question.prototype, "options", 2);
|
|
12658
12690
|
__decorateClass([
|
|
12659
|
-
|
|
12691
|
+
Column69({ name: "is_active", type: "boolean", default: false })
|
|
12660
12692
|
], Question.prototype, "isActive", 2);
|
|
12661
12693
|
Question = __decorateClass([
|
|
12662
|
-
|
|
12694
|
+
Entity68("questions")
|
|
12663
12695
|
], Question);
|
|
12664
12696
|
|
|
12665
12697
|
// src/entities/skill.entity.ts
|
|
12666
|
-
import { Entity as
|
|
12698
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
12667
12699
|
var Skill = class extends BaseEntity {
|
|
12668
12700
|
};
|
|
12669
12701
|
__decorateClass([
|
|
12670
|
-
|
|
12702
|
+
Column70({ name: "name", type: "varchar", nullable: true })
|
|
12671
12703
|
], Skill.prototype, "name", 2);
|
|
12672
12704
|
__decorateClass([
|
|
12673
|
-
|
|
12705
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12674
12706
|
], Skill.prototype, "slug", 2);
|
|
12675
12707
|
__decorateClass([
|
|
12676
|
-
|
|
12708
|
+
Column70({ name: "is_active", type: "boolean", default: false })
|
|
12677
12709
|
], Skill.prototype, "isActive", 2);
|
|
12678
12710
|
Skill = __decorateClass([
|
|
12679
|
-
|
|
12711
|
+
Entity69("skills")
|
|
12680
12712
|
], Skill);
|
|
12681
12713
|
|
|
12682
12714
|
// src/entities/skill-catalog.entity.ts
|
|
12683
12715
|
import {
|
|
12684
|
-
Entity as
|
|
12685
|
-
Column as
|
|
12686
|
-
Index as
|
|
12716
|
+
Entity as Entity70,
|
|
12717
|
+
Column as Column71,
|
|
12718
|
+
Index as Index60
|
|
12687
12719
|
} from "typeorm";
|
|
12688
12720
|
var SkillCatalog = class extends BaseEntity {
|
|
12689
12721
|
};
|
|
12690
12722
|
__decorateClass([
|
|
12691
|
-
|
|
12692
|
-
|
|
12723
|
+
Column71({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
12724
|
+
Index60()
|
|
12693
12725
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12694
12726
|
__decorateClass([
|
|
12695
|
-
|
|
12727
|
+
Column71({
|
|
12696
12728
|
name: "aliases",
|
|
12697
12729
|
type: "text",
|
|
12698
12730
|
array: true,
|
|
@@ -12700,20 +12732,20 @@ __decorateClass([
|
|
|
12700
12732
|
})
|
|
12701
12733
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12702
12734
|
__decorateClass([
|
|
12703
|
-
|
|
12735
|
+
Column71({
|
|
12704
12736
|
name: "variations",
|
|
12705
12737
|
type: "jsonb",
|
|
12706
12738
|
default: "{}"
|
|
12707
12739
|
})
|
|
12708
12740
|
], SkillCatalog.prototype, "variations", 2);
|
|
12709
12741
|
__decorateClass([
|
|
12710
|
-
|
|
12742
|
+
Column71({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12711
12743
|
], SkillCatalog.prototype, "category", 2);
|
|
12712
12744
|
__decorateClass([
|
|
12713
|
-
|
|
12745
|
+
Column71({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12714
12746
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12715
12747
|
__decorateClass([
|
|
12716
|
-
|
|
12748
|
+
Column71({
|
|
12717
12749
|
name: "related_skills",
|
|
12718
12750
|
type: "text",
|
|
12719
12751
|
array: true,
|
|
@@ -12721,113 +12753,113 @@ __decorateClass([
|
|
|
12721
12753
|
})
|
|
12722
12754
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12723
12755
|
__decorateClass([
|
|
12724
|
-
|
|
12725
|
-
|
|
12756
|
+
Column71({ name: "usage_count", type: "integer", default: 0 }),
|
|
12757
|
+
Index60()
|
|
12726
12758
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12727
12759
|
__decorateClass([
|
|
12728
|
-
|
|
12760
|
+
Column71({ name: "is_verified", type: "boolean", default: false })
|
|
12729
12761
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12730
12762
|
__decorateClass([
|
|
12731
|
-
|
|
12763
|
+
Column71({ name: "first_seen_date", type: "date" })
|
|
12732
12764
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
12733
12765
|
__decorateClass([
|
|
12734
|
-
|
|
12766
|
+
Column71({ name: "last_updated_date", type: "date" })
|
|
12735
12767
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
12736
12768
|
__decorateClass([
|
|
12737
|
-
|
|
12769
|
+
Column71({
|
|
12738
12770
|
name: "search_vector",
|
|
12739
12771
|
type: "tsvector",
|
|
12740
12772
|
nullable: true
|
|
12741
12773
|
})
|
|
12742
12774
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
12743
12775
|
SkillCatalog = __decorateClass([
|
|
12744
|
-
|
|
12776
|
+
Entity70("skill_catalogs")
|
|
12745
12777
|
], SkillCatalog);
|
|
12746
12778
|
|
|
12747
12779
|
// src/entities/job-role.entity.ts
|
|
12748
|
-
import { Entity as
|
|
12780
|
+
import { Entity as Entity71, Column as Column72 } from "typeorm";
|
|
12749
12781
|
var JobRoles = class extends BaseEntity {
|
|
12750
12782
|
};
|
|
12751
12783
|
__decorateClass([
|
|
12752
|
-
|
|
12784
|
+
Column72({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12753
12785
|
], JobRoles.prototype, "slug", 2);
|
|
12754
12786
|
__decorateClass([
|
|
12755
|
-
|
|
12787
|
+
Column72({ name: "name", type: "varchar", nullable: true })
|
|
12756
12788
|
], JobRoles.prototype, "name", 2);
|
|
12757
12789
|
__decorateClass([
|
|
12758
|
-
|
|
12790
|
+
Column72({ name: "is_active", type: "boolean", default: true })
|
|
12759
12791
|
], JobRoles.prototype, "isActive", 2);
|
|
12760
12792
|
JobRoles = __decorateClass([
|
|
12761
|
-
|
|
12793
|
+
Entity71("job_roles")
|
|
12762
12794
|
], JobRoles);
|
|
12763
12795
|
|
|
12764
12796
|
// src/entities/plan.entity.ts
|
|
12765
|
-
import { Entity as
|
|
12797
|
+
import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
12766
12798
|
|
|
12767
12799
|
// src/entities/feature.entity.ts
|
|
12768
|
-
import { Entity as
|
|
12800
|
+
import { Entity as Entity72, Column as Column73, ManyToMany as ManyToMany2 } from "typeorm";
|
|
12769
12801
|
var Feature = class extends BaseEntity {
|
|
12770
12802
|
};
|
|
12771
12803
|
__decorateClass([
|
|
12772
|
-
|
|
12804
|
+
Column73({ name: "name", type: "varchar", unique: true })
|
|
12773
12805
|
], Feature.prototype, "name", 2);
|
|
12774
12806
|
__decorateClass([
|
|
12775
12807
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
12776
12808
|
], Feature.prototype, "plans", 2);
|
|
12777
12809
|
Feature = __decorateClass([
|
|
12778
|
-
|
|
12810
|
+
Entity72("features")
|
|
12779
12811
|
], Feature);
|
|
12780
12812
|
|
|
12781
12813
|
// src/entities/plan.entity.ts
|
|
12782
12814
|
var Plan = class extends BaseEntity {
|
|
12783
12815
|
};
|
|
12784
12816
|
__decorateClass([
|
|
12785
|
-
|
|
12817
|
+
Column74({ name: "name", type: "varchar", unique: true })
|
|
12786
12818
|
], Plan.prototype, "name", 2);
|
|
12787
12819
|
__decorateClass([
|
|
12788
|
-
|
|
12820
|
+
Column74({ name: "description", type: "varchar", nullable: true })
|
|
12789
12821
|
], Plan.prototype, "description", 2);
|
|
12790
12822
|
__decorateClass([
|
|
12791
|
-
|
|
12823
|
+
Column74({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
12792
12824
|
], Plan.prototype, "price", 2);
|
|
12793
12825
|
__decorateClass([
|
|
12794
|
-
|
|
12826
|
+
Column74({ name: "billing_period", type: "varchar" })
|
|
12795
12827
|
], Plan.prototype, "billingPeriod", 2);
|
|
12796
12828
|
__decorateClass([
|
|
12797
|
-
|
|
12829
|
+
Column74({ name: "is_current", type: "boolean", default: false })
|
|
12798
12830
|
], Plan.prototype, "isCurrent", 2);
|
|
12799
12831
|
__decorateClass([
|
|
12800
12832
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
12801
12833
|
JoinTable()
|
|
12802
12834
|
], Plan.prototype, "features", 2);
|
|
12803
12835
|
Plan = __decorateClass([
|
|
12804
|
-
|
|
12836
|
+
Entity73("plans")
|
|
12805
12837
|
], Plan);
|
|
12806
12838
|
|
|
12807
12839
|
// src/entities/cms.entity.ts
|
|
12808
|
-
import { Entity as
|
|
12840
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
12809
12841
|
var Cms = class extends BaseEntity {
|
|
12810
12842
|
};
|
|
12811
12843
|
__decorateClass([
|
|
12812
|
-
|
|
12844
|
+
Column75({ name: "title", type: "varchar", nullable: true })
|
|
12813
12845
|
], Cms.prototype, "title", 2);
|
|
12814
12846
|
__decorateClass([
|
|
12815
|
-
|
|
12847
|
+
Column75({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12816
12848
|
], Cms.prototype, "slug", 2);
|
|
12817
12849
|
__decorateClass([
|
|
12818
|
-
|
|
12850
|
+
Column75({ name: "content", type: "varchar", nullable: true })
|
|
12819
12851
|
], Cms.prototype, "content", 2);
|
|
12820
12852
|
__decorateClass([
|
|
12821
|
-
|
|
12853
|
+
Column75({ name: "is_active", type: "boolean", default: true })
|
|
12822
12854
|
], Cms.prototype, "isActive", 2);
|
|
12823
12855
|
Cms = __decorateClass([
|
|
12824
|
-
|
|
12856
|
+
Entity74("cms")
|
|
12825
12857
|
], Cms);
|
|
12826
12858
|
|
|
12827
12859
|
// src/entities/lead.entity.ts
|
|
12828
12860
|
import {
|
|
12829
|
-
Entity as
|
|
12830
|
-
Column as
|
|
12861
|
+
Entity as Entity75,
|
|
12862
|
+
Column as Column76
|
|
12831
12863
|
} from "typeorm";
|
|
12832
12864
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
12833
12865
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -12837,22 +12869,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
12837
12869
|
var Lead = class extends BaseEntity {
|
|
12838
12870
|
};
|
|
12839
12871
|
__decorateClass([
|
|
12840
|
-
|
|
12872
|
+
Column76({ name: "name", type: "varchar", nullable: true })
|
|
12841
12873
|
], Lead.prototype, "name", 2);
|
|
12842
12874
|
__decorateClass([
|
|
12843
|
-
|
|
12875
|
+
Column76({ name: "mobile_code", type: "varchar", nullable: true })
|
|
12844
12876
|
], Lead.prototype, "mobileCode", 2);
|
|
12845
12877
|
__decorateClass([
|
|
12846
|
-
|
|
12878
|
+
Column76({ name: "mobile", type: "varchar", nullable: true })
|
|
12847
12879
|
], Lead.prototype, "mobile", 2);
|
|
12848
12880
|
__decorateClass([
|
|
12849
|
-
|
|
12881
|
+
Column76({ name: "email", type: "varchar", nullable: true })
|
|
12850
12882
|
], Lead.prototype, "email", 2);
|
|
12851
12883
|
__decorateClass([
|
|
12852
|
-
|
|
12884
|
+
Column76({ name: "description", type: "varchar", nullable: true })
|
|
12853
12885
|
], Lead.prototype, "description", 2);
|
|
12854
12886
|
__decorateClass([
|
|
12855
|
-
|
|
12887
|
+
Column76({
|
|
12856
12888
|
name: "category",
|
|
12857
12889
|
type: "enum",
|
|
12858
12890
|
enum: CategoryEmum,
|
|
@@ -12860,7 +12892,7 @@ __decorateClass([
|
|
|
12860
12892
|
})
|
|
12861
12893
|
], Lead.prototype, "category", 2);
|
|
12862
12894
|
Lead = __decorateClass([
|
|
12863
|
-
|
|
12895
|
+
Entity75("leads")
|
|
12864
12896
|
], Lead);
|
|
12865
12897
|
|
|
12866
12898
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -13101,7 +13133,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13101
13133
|
], ClientFreelancerRecommendation);
|
|
13102
13134
|
|
|
13103
13135
|
// src/entities/commission.entity.ts
|
|
13104
|
-
import { Entity as
|
|
13136
|
+
import { Entity as Entity76, Column as Column77 } from "typeorm";
|
|
13105
13137
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13106
13138
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13107
13139
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13110,7 +13142,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13110
13142
|
var Commission = class extends BaseEntity {
|
|
13111
13143
|
};
|
|
13112
13144
|
__decorateClass([
|
|
13113
|
-
|
|
13145
|
+
Column77({
|
|
13114
13146
|
name: "freelancer_commission_type",
|
|
13115
13147
|
type: "enum",
|
|
13116
13148
|
enum: CommissionTypeEnum,
|
|
@@ -13118,10 +13150,10 @@ __decorateClass([
|
|
|
13118
13150
|
})
|
|
13119
13151
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13120
13152
|
__decorateClass([
|
|
13121
|
-
|
|
13153
|
+
Column77({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13122
13154
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13123
13155
|
__decorateClass([
|
|
13124
|
-
|
|
13156
|
+
Column77({
|
|
13125
13157
|
name: "client_commission_type",
|
|
13126
13158
|
type: "enum",
|
|
13127
13159
|
enum: CommissionTypeEnum,
|
|
@@ -13129,124 +13161,124 @@ __decorateClass([
|
|
|
13129
13161
|
})
|
|
13130
13162
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13131
13163
|
__decorateClass([
|
|
13132
|
-
|
|
13164
|
+
Column77({ name: "client_commission", type: "integer", default: 0 })
|
|
13133
13165
|
], Commission.prototype, "clientCommission", 2);
|
|
13134
13166
|
Commission = __decorateClass([
|
|
13135
|
-
|
|
13167
|
+
Entity76("commissions")
|
|
13136
13168
|
], Commission);
|
|
13137
13169
|
|
|
13138
13170
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13139
13171
|
import {
|
|
13140
|
-
Entity as
|
|
13141
|
-
Column as
|
|
13142
|
-
Index as
|
|
13172
|
+
Entity as Entity77,
|
|
13173
|
+
Column as Column78,
|
|
13174
|
+
Index as Index61
|
|
13143
13175
|
} from "typeorm";
|
|
13144
13176
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13145
13177
|
};
|
|
13146
13178
|
__decorateClass([
|
|
13147
|
-
|
|
13148
|
-
|
|
13179
|
+
Column78({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13180
|
+
Index61()
|
|
13149
13181
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13150
13182
|
__decorateClass([
|
|
13151
|
-
|
|
13183
|
+
Column78({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13152
13184
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13153
13185
|
__decorateClass([
|
|
13154
|
-
|
|
13186
|
+
Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13155
13187
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13156
13188
|
CalendlyMeetingLog = __decorateClass([
|
|
13157
|
-
|
|
13189
|
+
Entity77("calendly_meeting_logs")
|
|
13158
13190
|
], CalendlyMeetingLog);
|
|
13159
13191
|
|
|
13160
13192
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13161
13193
|
import {
|
|
13162
|
-
Entity as
|
|
13163
|
-
Column as
|
|
13164
|
-
Index as
|
|
13194
|
+
Entity as Entity78,
|
|
13195
|
+
Column as Column79,
|
|
13196
|
+
Index as Index62
|
|
13165
13197
|
} from "typeorm";
|
|
13166
13198
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13167
13199
|
};
|
|
13168
13200
|
__decorateClass([
|
|
13169
|
-
|
|
13170
|
-
|
|
13201
|
+
Column79({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13202
|
+
Index62()
|
|
13171
13203
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13172
13204
|
__decorateClass([
|
|
13173
|
-
|
|
13205
|
+
Column79({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13174
13206
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13175
13207
|
__decorateClass([
|
|
13176
|
-
|
|
13208
|
+
Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13177
13209
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13178
13210
|
ZoomMeetingLog = __decorateClass([
|
|
13179
|
-
|
|
13211
|
+
Entity78("zoom_meeting_logs")
|
|
13180
13212
|
], ZoomMeetingLog);
|
|
13181
13213
|
|
|
13182
13214
|
// src/entities/stripe-logs.entity.ts
|
|
13183
|
-
import { Entity as
|
|
13215
|
+
import { Entity as Entity79, Column as Column80 } from "typeorm";
|
|
13184
13216
|
var StripeLog = class extends BaseEntity {
|
|
13185
13217
|
};
|
|
13186
13218
|
__decorateClass([
|
|
13187
|
-
|
|
13219
|
+
Column80({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13188
13220
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13189
13221
|
__decorateClass([
|
|
13190
|
-
|
|
13222
|
+
Column80({ name: "event_type", type: "varchar", nullable: true })
|
|
13191
13223
|
], StripeLog.prototype, "eventType", 2);
|
|
13192
13224
|
__decorateClass([
|
|
13193
|
-
|
|
13225
|
+
Column80({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13194
13226
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13195
13227
|
__decorateClass([
|
|
13196
|
-
|
|
13228
|
+
Column80({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13197
13229
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13198
13230
|
StripeLog = __decorateClass([
|
|
13199
|
-
|
|
13231
|
+
Entity79("stripe_logs")
|
|
13200
13232
|
], StripeLog);
|
|
13201
13233
|
|
|
13202
13234
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13203
13235
|
import {
|
|
13204
|
-
Entity as
|
|
13205
|
-
Column as
|
|
13206
|
-
Index as
|
|
13236
|
+
Entity as Entity80,
|
|
13237
|
+
Column as Column81,
|
|
13238
|
+
Index as Index63
|
|
13207
13239
|
} from "typeorm";
|
|
13208
13240
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13209
13241
|
};
|
|
13210
13242
|
__decorateClass([
|
|
13211
|
-
|
|
13243
|
+
Column81({
|
|
13212
13244
|
type: "varchar",
|
|
13213
13245
|
length: 100,
|
|
13214
13246
|
unique: true,
|
|
13215
13247
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13216
13248
|
}),
|
|
13217
|
-
|
|
13249
|
+
Index63()
|
|
13218
13250
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13219
13251
|
__decorateClass([
|
|
13220
|
-
|
|
13252
|
+
Column81({
|
|
13221
13253
|
type: "jsonb",
|
|
13222
13254
|
comment: "JSON object containing weight values",
|
|
13223
13255
|
nullable: true
|
|
13224
13256
|
})
|
|
13225
13257
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13226
13258
|
__decorateClass([
|
|
13227
|
-
|
|
13259
|
+
Column81({ name: "is_active", type: "boolean", default: true })
|
|
13228
13260
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13229
13261
|
RecommendationWeightageConfig = __decorateClass([
|
|
13230
|
-
|
|
13262
|
+
Entity80("recommendation_weightage_configs")
|
|
13231
13263
|
], RecommendationWeightageConfig);
|
|
13232
13264
|
|
|
13233
13265
|
// src/entities/global-setting.entity.ts
|
|
13234
13266
|
import {
|
|
13235
|
-
Entity as
|
|
13236
|
-
Column as
|
|
13237
|
-
Index as
|
|
13267
|
+
Entity as Entity81,
|
|
13268
|
+
Column as Column82,
|
|
13269
|
+
Index as Index64
|
|
13238
13270
|
} from "typeorm";
|
|
13239
13271
|
var GlobalSetting = class extends BaseEntity {
|
|
13240
13272
|
};
|
|
13241
13273
|
__decorateClass([
|
|
13242
|
-
|
|
13274
|
+
Column82({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13243
13275
|
], GlobalSetting.prototype, "key", 2);
|
|
13244
13276
|
__decorateClass([
|
|
13245
|
-
|
|
13277
|
+
Column82({ name: "value", type: "text", nullable: false })
|
|
13246
13278
|
], GlobalSetting.prototype, "value", 2);
|
|
13247
13279
|
GlobalSetting = __decorateClass([
|
|
13248
|
-
|
|
13249
|
-
|
|
13280
|
+
Entity81("global_settings"),
|
|
13281
|
+
Index64(["key"], { unique: true })
|
|
13250
13282
|
], GlobalSetting);
|
|
13251
13283
|
export {
|
|
13252
13284
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -13379,6 +13411,7 @@ export {
|
|
|
13379
13411
|
DiscordTransport,
|
|
13380
13412
|
Dispute,
|
|
13381
13413
|
DisputeStatusEnum,
|
|
13414
|
+
DocuSeal,
|
|
13382
13415
|
DocumentType,
|
|
13383
13416
|
DurationTypeEnum,
|
|
13384
13417
|
EMAIL_PATTERN,
|