@experts_hub/shared 1.0.650 → 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/entities/job.entity.d.ts +5 -0
- package/dist/index.d.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +882 -811
- package/dist/index.mjs +895 -826
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +5 -0
- package/dist/modules/job-admin/dto/admin-job-basic-information-v2.dto.d.ts +5 -0
- 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
|
|
@@ -4030,6 +4062,11 @@ var typeOfExperienceEnum = /* @__PURE__ */ ((typeOfExperienceEnum2) => {
|
|
|
4030
4062
|
typeOfExperienceEnum2["RANGE"] = "RANGE";
|
|
4031
4063
|
return typeOfExperienceEnum2;
|
|
4032
4064
|
})(typeOfExperienceEnum || {});
|
|
4065
|
+
var BillingCycleEnum = /* @__PURE__ */ ((BillingCycleEnum2) => {
|
|
4066
|
+
BillingCycleEnum2["WEEKLY"] = "WEEKLY";
|
|
4067
|
+
BillingCycleEnum2["DELIVERABLE"] = "DELIVERABLE";
|
|
4068
|
+
return BillingCycleEnum2;
|
|
4069
|
+
})(BillingCycleEnum || {});
|
|
4033
4070
|
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
4034
4071
|
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
4035
4072
|
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
@@ -4064,58 +4101,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4064
4101
|
var Job = class extends BaseEntity {
|
|
4065
4102
|
};
|
|
4066
4103
|
__decorateClass([
|
|
4067
|
-
|
|
4104
|
+
Column36({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4068
4105
|
], Job.prototype, "jobId", 2);
|
|
4069
4106
|
// individual index to find jobs by user
|
|
4070
4107
|
__decorateClass([
|
|
4071
|
-
|
|
4072
|
-
|
|
4108
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4109
|
+
Index28()
|
|
4073
4110
|
], Job.prototype, "userId", 2);
|
|
4074
4111
|
__decorateClass([
|
|
4075
|
-
|
|
4076
|
-
|
|
4112
|
+
ManyToOne34(() => User, (user) => user.jobs),
|
|
4113
|
+
JoinColumn34({ name: "user_id" })
|
|
4077
4114
|
], Job.prototype, "user", 2);
|
|
4078
4115
|
__decorateClass([
|
|
4079
|
-
|
|
4116
|
+
Column36({ name: "country_id", type: "int", nullable: true })
|
|
4080
4117
|
], Job.prototype, "countryId", 2);
|
|
4081
4118
|
__decorateClass([
|
|
4082
|
-
|
|
4083
|
-
|
|
4119
|
+
ManyToOne34(() => Country),
|
|
4120
|
+
JoinColumn34({ name: "country_id" })
|
|
4084
4121
|
], Job.prototype, "country", 2);
|
|
4085
4122
|
__decorateClass([
|
|
4086
|
-
|
|
4123
|
+
Column36({ name: "state_id", type: "int", nullable: true })
|
|
4087
4124
|
], Job.prototype, "stateId", 2);
|
|
4088
4125
|
__decorateClass([
|
|
4089
|
-
|
|
4090
|
-
|
|
4126
|
+
ManyToOne34(() => State),
|
|
4127
|
+
JoinColumn34({ name: "state_id" })
|
|
4091
4128
|
], Job.prototype, "state", 2);
|
|
4092
4129
|
__decorateClass([
|
|
4093
|
-
|
|
4130
|
+
Column36({ name: "city_id", type: "int", nullable: true })
|
|
4094
4131
|
], Job.prototype, "cityId", 2);
|
|
4095
4132
|
__decorateClass([
|
|
4096
|
-
|
|
4097
|
-
|
|
4133
|
+
ManyToOne34(() => City),
|
|
4134
|
+
JoinColumn34({ name: "city_id" })
|
|
4098
4135
|
], Job.prototype, "city", 2);
|
|
4099
4136
|
__decorateClass([
|
|
4100
|
-
|
|
4137
|
+
Column36({ name: "job_role", type: "varchar", nullable: true })
|
|
4101
4138
|
], Job.prototype, "jobRole", 2);
|
|
4102
4139
|
__decorateClass([
|
|
4103
|
-
|
|
4140
|
+
Column36({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4104
4141
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4105
4142
|
__decorateClass([
|
|
4106
|
-
|
|
4143
|
+
Column36({ name: "project_name", type: "varchar", nullable: true })
|
|
4107
4144
|
], Job.prototype, "projectName", 2);
|
|
4108
4145
|
__decorateClass([
|
|
4109
|
-
|
|
4146
|
+
Column36({ name: "note", type: "varchar", nullable: true })
|
|
4110
4147
|
], Job.prototype, "note", 2);
|
|
4111
4148
|
__decorateClass([
|
|
4112
|
-
|
|
4149
|
+
Column36({ name: "openings", type: "integer", default: 0 })
|
|
4113
4150
|
], Job.prototype, "openings", 2);
|
|
4114
4151
|
__decorateClass([
|
|
4115
|
-
|
|
4152
|
+
Column36({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4116
4153
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4117
4154
|
__decorateClass([
|
|
4118
|
-
|
|
4155
|
+
Column36({
|
|
4119
4156
|
name: "location",
|
|
4120
4157
|
type: "enum",
|
|
4121
4158
|
enum: JobLocationEnum,
|
|
@@ -4123,7 +4160,7 @@ __decorateClass([
|
|
|
4123
4160
|
})
|
|
4124
4161
|
], Job.prototype, "location", 2);
|
|
4125
4162
|
__decorateClass([
|
|
4126
|
-
|
|
4163
|
+
Column36({
|
|
4127
4164
|
name: "type_of_employment",
|
|
4128
4165
|
type: "enum",
|
|
4129
4166
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4131,10 +4168,18 @@ __decorateClass([
|
|
|
4131
4168
|
})
|
|
4132
4169
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4133
4170
|
__decorateClass([
|
|
4134
|
-
|
|
4171
|
+
Column36({
|
|
4172
|
+
name: "billing_cycle",
|
|
4173
|
+
type: "enum",
|
|
4174
|
+
enum: BillingCycleEnum,
|
|
4175
|
+
nullable: true
|
|
4176
|
+
})
|
|
4177
|
+
], Job.prototype, "billingCycle", 2);
|
|
4178
|
+
__decorateClass([
|
|
4179
|
+
Column36({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4135
4180
|
], Job.prototype, "academicQualification", 2);
|
|
4136
4181
|
__decorateClass([
|
|
4137
|
-
|
|
4182
|
+
Column36({
|
|
4138
4183
|
name: "type_of_experience",
|
|
4139
4184
|
type: "enum",
|
|
4140
4185
|
enum: typeOfExperienceEnum,
|
|
@@ -4142,22 +4187,22 @@ __decorateClass([
|
|
|
4142
4187
|
})
|
|
4143
4188
|
], Job.prototype, "typeOfExperience", 2);
|
|
4144
4189
|
__decorateClass([
|
|
4145
|
-
|
|
4190
|
+
Column36({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4146
4191
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4147
4192
|
__decorateClass([
|
|
4148
|
-
|
|
4193
|
+
Column36({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4149
4194
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4150
4195
|
__decorateClass([
|
|
4151
|
-
|
|
4196
|
+
Column36({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4152
4197
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4153
4198
|
__decorateClass([
|
|
4154
|
-
|
|
4199
|
+
Column36({ name: "business_industry", type: "varchar", nullable: true })
|
|
4155
4200
|
], Job.prototype, "businessIndustry", 2);
|
|
4156
4201
|
__decorateClass([
|
|
4157
|
-
|
|
4202
|
+
Column36({ name: "currency", type: "varchar", default: "USD" })
|
|
4158
4203
|
], Job.prototype, "currency", 2);
|
|
4159
4204
|
__decorateClass([
|
|
4160
|
-
|
|
4205
|
+
Column36({
|
|
4161
4206
|
name: "expected_salary_from",
|
|
4162
4207
|
type: "decimal",
|
|
4163
4208
|
precision: 10,
|
|
@@ -4166,14 +4211,14 @@ __decorateClass([
|
|
|
4166
4211
|
})
|
|
4167
4212
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4168
4213
|
__decorateClass([
|
|
4169
|
-
|
|
4214
|
+
Column36({
|
|
4170
4215
|
name: "hide_expected_salary_from",
|
|
4171
4216
|
type: "boolean",
|
|
4172
4217
|
default: false
|
|
4173
4218
|
})
|
|
4174
4219
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4175
4220
|
__decorateClass([
|
|
4176
|
-
|
|
4221
|
+
Column36({
|
|
4177
4222
|
name: "expected_salary_to",
|
|
4178
4223
|
type: "decimal",
|
|
4179
4224
|
precision: 10,
|
|
@@ -4182,14 +4227,14 @@ __decorateClass([
|
|
|
4182
4227
|
})
|
|
4183
4228
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4184
4229
|
__decorateClass([
|
|
4185
|
-
|
|
4230
|
+
Column36({
|
|
4186
4231
|
name: "hide_expected_salary_to",
|
|
4187
4232
|
type: "boolean",
|
|
4188
4233
|
default: false
|
|
4189
4234
|
})
|
|
4190
4235
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4191
4236
|
__decorateClass([
|
|
4192
|
-
|
|
4237
|
+
Column36({
|
|
4193
4238
|
name: "expected_annual_budget_from",
|
|
4194
4239
|
type: "decimal",
|
|
4195
4240
|
precision: 10,
|
|
@@ -4198,14 +4243,14 @@ __decorateClass([
|
|
|
4198
4243
|
})
|
|
4199
4244
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4200
4245
|
__decorateClass([
|
|
4201
|
-
|
|
4246
|
+
Column36({
|
|
4202
4247
|
name: "hide_expected_annual_budget_from",
|
|
4203
4248
|
type: "boolean",
|
|
4204
4249
|
default: false
|
|
4205
4250
|
})
|
|
4206
4251
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4207
4252
|
__decorateClass([
|
|
4208
|
-
|
|
4253
|
+
Column36({
|
|
4209
4254
|
name: "expected_annual_budget_to",
|
|
4210
4255
|
type: "decimal",
|
|
4211
4256
|
precision: 10,
|
|
@@ -4214,32 +4259,32 @@ __decorateClass([
|
|
|
4214
4259
|
})
|
|
4215
4260
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4216
4261
|
__decorateClass([
|
|
4217
|
-
|
|
4262
|
+
Column36({
|
|
4218
4263
|
name: "hide_expected_annual_budget_to",
|
|
4219
4264
|
type: "boolean",
|
|
4220
4265
|
default: false
|
|
4221
4266
|
})
|
|
4222
4267
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4223
4268
|
__decorateClass([
|
|
4224
|
-
|
|
4269
|
+
Column36({ name: "years", type: "varchar", nullable: true })
|
|
4225
4270
|
], Job.prototype, "years", 2);
|
|
4226
4271
|
__decorateClass([
|
|
4227
|
-
|
|
4272
|
+
Column36({ name: "months", type: "varchar", nullable: true })
|
|
4228
4273
|
], Job.prototype, "months", 2);
|
|
4229
4274
|
__decorateClass([
|
|
4230
|
-
|
|
4275
|
+
Column36({ name: "weeks", type: "varchar", nullable: true })
|
|
4231
4276
|
], Job.prototype, "weeks", 2);
|
|
4232
4277
|
__decorateClass([
|
|
4233
|
-
|
|
4278
|
+
Column36({ name: "days", type: "varchar", nullable: true })
|
|
4234
4279
|
], Job.prototype, "days", 2);
|
|
4235
4280
|
__decorateClass([
|
|
4236
|
-
|
|
4281
|
+
Column36({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4237
4282
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4238
4283
|
__decorateClass([
|
|
4239
|
-
|
|
4284
|
+
Column36({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4240
4285
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4241
4286
|
__decorateClass([
|
|
4242
|
-
|
|
4287
|
+
Column36({
|
|
4243
4288
|
name: "duration_type",
|
|
4244
4289
|
type: "enum",
|
|
4245
4290
|
enum: DurationTypeEnum,
|
|
@@ -4247,10 +4292,10 @@ __decorateClass([
|
|
|
4247
4292
|
})
|
|
4248
4293
|
], Job.prototype, "durationType", 2);
|
|
4249
4294
|
__decorateClass([
|
|
4250
|
-
|
|
4295
|
+
Column36({ name: "duration", type: "varchar", nullable: true })
|
|
4251
4296
|
], Job.prototype, "duration", 2);
|
|
4252
4297
|
__decorateClass([
|
|
4253
|
-
|
|
4298
|
+
Column36({
|
|
4254
4299
|
name: "number_of_hours",
|
|
4255
4300
|
type: "decimal",
|
|
4256
4301
|
precision: 4,
|
|
@@ -4259,13 +4304,13 @@ __decorateClass([
|
|
|
4259
4304
|
})
|
|
4260
4305
|
], Job.prototype, "numberOfHours", 2);
|
|
4261
4306
|
__decorateClass([
|
|
4262
|
-
|
|
4307
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
4263
4308
|
], Job.prototype, "description", 2);
|
|
4264
4309
|
__decorateClass([
|
|
4265
|
-
|
|
4310
|
+
Column36({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4266
4311
|
], Job.prototype, "additionalComment", 2);
|
|
4267
4312
|
__decorateClass([
|
|
4268
|
-
|
|
4313
|
+
Column36({
|
|
4269
4314
|
name: "onboarding_tat",
|
|
4270
4315
|
type: "varchar",
|
|
4271
4316
|
length: 50,
|
|
@@ -4273,14 +4318,14 @@ __decorateClass([
|
|
|
4273
4318
|
})
|
|
4274
4319
|
], Job.prototype, "onboardingTat", 2);
|
|
4275
4320
|
__decorateClass([
|
|
4276
|
-
|
|
4321
|
+
Column36({
|
|
4277
4322
|
name: "candidate_communication_skills",
|
|
4278
4323
|
type: "varchar",
|
|
4279
4324
|
nullable: true
|
|
4280
4325
|
})
|
|
4281
4326
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4282
4327
|
__decorateClass([
|
|
4283
|
-
|
|
4328
|
+
Column36({
|
|
4284
4329
|
name: "step_completed",
|
|
4285
4330
|
type: "enum",
|
|
4286
4331
|
enum: Step,
|
|
@@ -4288,7 +4333,7 @@ __decorateClass([
|
|
|
4288
4333
|
})
|
|
4289
4334
|
], Job.prototype, "stepCompleted", 2);
|
|
4290
4335
|
__decorateClass([
|
|
4291
|
-
|
|
4336
|
+
Column36({
|
|
4292
4337
|
name: "status",
|
|
4293
4338
|
type: "enum",
|
|
4294
4339
|
enum: JobStatusEnum,
|
|
@@ -4296,43 +4341,43 @@ __decorateClass([
|
|
|
4296
4341
|
})
|
|
4297
4342
|
], Job.prototype, "status", 2);
|
|
4298
4343
|
__decorateClass([
|
|
4299
|
-
|
|
4344
|
+
Column36({ name: "viewed_count", type: "integer", default: 0 })
|
|
4300
4345
|
], Job.prototype, "viewedCount", 2);
|
|
4301
4346
|
__decorateClass([
|
|
4302
|
-
|
|
4347
|
+
Column36({ name: "application_count", type: "integer", default: 0 })
|
|
4303
4348
|
], Job.prototype, "applicationCount", 2);
|
|
4304
4349
|
__decorateClass([
|
|
4305
|
-
|
|
4350
|
+
Column36({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4306
4351
|
], Job.prototype, "isContractSigned", 2);
|
|
4307
4352
|
__decorateClass([
|
|
4308
|
-
|
|
4353
|
+
Column36({ name: "is_interview_created", type: "boolean", default: false })
|
|
4309
4354
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4310
4355
|
__decorateClass([
|
|
4311
|
-
|
|
4356
|
+
Column36({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4312
4357
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4313
4358
|
__decorateClass([
|
|
4314
|
-
|
|
4359
|
+
OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4315
4360
|
], Job.prototype, "interviewInvites", 2);
|
|
4316
4361
|
__decorateClass([
|
|
4317
|
-
|
|
4362
|
+
OneToMany15(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4318
4363
|
], Job.prototype, "jobSkills", 2);
|
|
4319
4364
|
__decorateClass([
|
|
4320
|
-
|
|
4365
|
+
OneToMany15(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4321
4366
|
cascade: true
|
|
4322
4367
|
})
|
|
4323
4368
|
], Job.prototype, "jobApplications", 2);
|
|
4324
4369
|
__decorateClass([
|
|
4325
|
-
|
|
4370
|
+
OneToMany15(() => Interview, (interview) => interview.job, {
|
|
4326
4371
|
cascade: true
|
|
4327
4372
|
})
|
|
4328
4373
|
], Job.prototype, "interviews", 2);
|
|
4329
4374
|
__decorateClass([
|
|
4330
|
-
|
|
4375
|
+
OneToMany15(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4331
4376
|
cascade: true
|
|
4332
4377
|
})
|
|
4333
4378
|
], Job.prototype, "f2fInterviews", 2);
|
|
4334
4379
|
__decorateClass([
|
|
4335
|
-
|
|
4380
|
+
OneToMany15(
|
|
4336
4381
|
() => JobRecommendation,
|
|
4337
4382
|
(jobRecommendation) => jobRecommendation.job,
|
|
4338
4383
|
{
|
|
@@ -4341,64 +4386,64 @@ __decorateClass([
|
|
|
4341
4386
|
)
|
|
4342
4387
|
], Job.prototype, "recommendations", 2);
|
|
4343
4388
|
__decorateClass([
|
|
4344
|
-
|
|
4389
|
+
OneToMany15(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4345
4390
|
cascade: true
|
|
4346
4391
|
})
|
|
4347
4392
|
], Job.prototype, "contractSummaries", 2);
|
|
4348
4393
|
__decorateClass([
|
|
4349
|
-
|
|
4394
|
+
OneToMany15(() => Contract, (contract) => contract.job, {
|
|
4350
4395
|
cascade: true
|
|
4351
4396
|
})
|
|
4352
4397
|
], Job.prototype, "contracts", 2);
|
|
4353
4398
|
__decorateClass([
|
|
4354
|
-
|
|
4399
|
+
OneToMany15(() => Hiring, (hiring) => hiring.job, {
|
|
4355
4400
|
cascade: true
|
|
4356
4401
|
})
|
|
4357
4402
|
], Job.prototype, "hirings", 2);
|
|
4358
4403
|
__decorateClass([
|
|
4359
|
-
|
|
4404
|
+
OneToMany15(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4360
4405
|
cascade: true
|
|
4361
4406
|
})
|
|
4362
4407
|
], Job.prototype, "escrowWallets", 2);
|
|
4363
4408
|
__decorateClass([
|
|
4364
|
-
|
|
4409
|
+
OneToMany15(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4365
4410
|
cascade: true
|
|
4366
4411
|
})
|
|
4367
4412
|
], Job.prototype, "timesheets", 2);
|
|
4368
4413
|
__decorateClass([
|
|
4369
|
-
|
|
4414
|
+
OneToMany15(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4370
4415
|
cascade: true
|
|
4371
4416
|
})
|
|
4372
4417
|
], Job.prototype, "timesheetLine", 2);
|
|
4373
4418
|
__decorateClass([
|
|
4374
|
-
|
|
4419
|
+
OneToMany15(() => Invoice, (invoice) => invoice.job, {
|
|
4375
4420
|
cascade: true
|
|
4376
4421
|
})
|
|
4377
4422
|
], Job.prototype, "invoice", 2);
|
|
4378
4423
|
__decorateClass([
|
|
4379
|
-
|
|
4424
|
+
OneToMany15(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4380
4425
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4381
4426
|
__decorateClass([
|
|
4382
|
-
|
|
4427
|
+
OneToMany15(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4383
4428
|
cascade: true
|
|
4384
4429
|
})
|
|
4385
4430
|
], Job.prototype, "jobLocations", 2);
|
|
4386
4431
|
__decorateClass([
|
|
4387
|
-
|
|
4432
|
+
OneToMany15(() => Rating, (rating) => rating.job, {
|
|
4388
4433
|
cascade: true
|
|
4389
4434
|
})
|
|
4390
4435
|
], Job.prototype, "ratings", 2);
|
|
4391
4436
|
Job = __decorateClass([
|
|
4392
|
-
|
|
4437
|
+
Entity35("jobs")
|
|
4393
4438
|
], Job);
|
|
4394
4439
|
|
|
4395
4440
|
// src/entities/bank-details.entity.ts
|
|
4396
4441
|
import {
|
|
4397
|
-
Entity as
|
|
4398
|
-
Column as
|
|
4399
|
-
Index as
|
|
4400
|
-
ManyToOne as
|
|
4401
|
-
JoinColumn as
|
|
4442
|
+
Entity as Entity36,
|
|
4443
|
+
Column as Column37,
|
|
4444
|
+
Index as Index29,
|
|
4445
|
+
ManyToOne as ManyToOne35,
|
|
4446
|
+
JoinColumn as JoinColumn35
|
|
4402
4447
|
} from "typeorm";
|
|
4403
4448
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4404
4449
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4414,51 +4459,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4414
4459
|
};
|
|
4415
4460
|
// individual index to find bank details by user
|
|
4416
4461
|
__decorateClass([
|
|
4417
|
-
|
|
4418
|
-
|
|
4462
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4463
|
+
Index29()
|
|
4419
4464
|
], BankDetail.prototype, "userId", 2);
|
|
4420
4465
|
__decorateClass([
|
|
4421
|
-
|
|
4422
|
-
|
|
4466
|
+
ManyToOne35(() => User, (user) => user.bankDetail),
|
|
4467
|
+
JoinColumn35({ name: "user_id" })
|
|
4423
4468
|
], BankDetail.prototype, "user", 2);
|
|
4424
4469
|
__decorateClass([
|
|
4425
|
-
|
|
4470
|
+
Column37({ name: "name", type: "varchar", nullable: true })
|
|
4426
4471
|
], BankDetail.prototype, "name", 2);
|
|
4427
4472
|
__decorateClass([
|
|
4428
|
-
|
|
4473
|
+
Column37({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4429
4474
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4430
4475
|
__decorateClass([
|
|
4431
|
-
|
|
4476
|
+
Column37({ name: "mobile", type: "varchar", nullable: true })
|
|
4432
4477
|
], BankDetail.prototype, "mobile", 2);
|
|
4433
4478
|
__decorateClass([
|
|
4434
|
-
|
|
4479
|
+
Column37({ name: "email", type: "varchar" })
|
|
4435
4480
|
], BankDetail.prototype, "email", 2);
|
|
4436
4481
|
__decorateClass([
|
|
4437
|
-
|
|
4482
|
+
Column37({ name: "address", type: "varchar", nullable: true })
|
|
4438
4483
|
], BankDetail.prototype, "address", 2);
|
|
4439
4484
|
__decorateClass([
|
|
4440
|
-
|
|
4485
|
+
Column37({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4441
4486
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4442
4487
|
__decorateClass([
|
|
4443
|
-
|
|
4488
|
+
Column37({ name: "bank_name", type: "varchar", nullable: true })
|
|
4444
4489
|
], BankDetail.prototype, "bankName", 2);
|
|
4445
4490
|
__decorateClass([
|
|
4446
|
-
|
|
4491
|
+
Column37({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4447
4492
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4448
4493
|
__decorateClass([
|
|
4449
|
-
|
|
4494
|
+
Column37({ name: "branch_name", type: "varchar", nullable: true })
|
|
4450
4495
|
], BankDetail.prototype, "branchName", 2);
|
|
4451
4496
|
__decorateClass([
|
|
4452
|
-
|
|
4497
|
+
Column37({ name: "routing_no", type: "varchar", nullable: true })
|
|
4453
4498
|
], BankDetail.prototype, "routingNo", 2);
|
|
4454
4499
|
__decorateClass([
|
|
4455
|
-
|
|
4500
|
+
Column37({ name: "aba_no", type: "varchar", nullable: true })
|
|
4456
4501
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4457
4502
|
__decorateClass([
|
|
4458
|
-
|
|
4503
|
+
Column37({ name: "iban", type: "varchar", nullable: true })
|
|
4459
4504
|
], BankDetail.prototype, "iban", 2);
|
|
4460
4505
|
__decorateClass([
|
|
4461
|
-
|
|
4506
|
+
Column37({
|
|
4462
4507
|
name: "account_type",
|
|
4463
4508
|
type: "enum",
|
|
4464
4509
|
enum: BankAccountTypeEnum,
|
|
@@ -4466,7 +4511,7 @@ __decorateClass([
|
|
|
4466
4511
|
})
|
|
4467
4512
|
], BankDetail.prototype, "accountType", 2);
|
|
4468
4513
|
__decorateClass([
|
|
4469
|
-
|
|
4514
|
+
Column37({
|
|
4470
4515
|
name: "account_scope",
|
|
4471
4516
|
type: "enum",
|
|
4472
4517
|
enum: BankAccountScopeEnum,
|
|
@@ -4474,185 +4519,185 @@ __decorateClass([
|
|
|
4474
4519
|
})
|
|
4475
4520
|
], BankDetail.prototype, "accountScope", 2);
|
|
4476
4521
|
BankDetail = __decorateClass([
|
|
4477
|
-
|
|
4522
|
+
Entity36("bank_details")
|
|
4478
4523
|
], BankDetail);
|
|
4479
4524
|
|
|
4480
4525
|
// src/entities/system-preference.entity.ts
|
|
4481
4526
|
import {
|
|
4482
|
-
Entity as
|
|
4483
|
-
Column as
|
|
4484
|
-
Index as
|
|
4485
|
-
ManyToOne as
|
|
4486
|
-
JoinColumn as
|
|
4527
|
+
Entity as Entity37,
|
|
4528
|
+
Column as Column38,
|
|
4529
|
+
Index as Index30,
|
|
4530
|
+
ManyToOne as ManyToOne36,
|
|
4531
|
+
JoinColumn as JoinColumn36
|
|
4487
4532
|
} from "typeorm";
|
|
4488
4533
|
var SystemPreference = class extends BaseEntity {
|
|
4489
4534
|
};
|
|
4490
4535
|
// individual index to find system preference by user
|
|
4491
4536
|
__decorateClass([
|
|
4492
|
-
|
|
4493
|
-
|
|
4537
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4538
|
+
Index30()
|
|
4494
4539
|
], SystemPreference.prototype, "userId", 2);
|
|
4495
4540
|
__decorateClass([
|
|
4496
|
-
|
|
4497
|
-
|
|
4541
|
+
ManyToOne36(() => User, (user) => user.systemPreference),
|
|
4542
|
+
JoinColumn36({ name: "user_id" })
|
|
4498
4543
|
], SystemPreference.prototype, "user", 2);
|
|
4499
4544
|
__decorateClass([
|
|
4500
|
-
|
|
4545
|
+
Column38({ name: "key", type: "varchar", nullable: false })
|
|
4501
4546
|
], SystemPreference.prototype, "key", 2);
|
|
4502
4547
|
__decorateClass([
|
|
4503
|
-
|
|
4548
|
+
Column38({ name: "value", type: "boolean", default: false })
|
|
4504
4549
|
], SystemPreference.prototype, "value", 2);
|
|
4505
4550
|
SystemPreference = __decorateClass([
|
|
4506
|
-
|
|
4551
|
+
Entity37("system_preferences")
|
|
4507
4552
|
], SystemPreference);
|
|
4508
4553
|
|
|
4509
4554
|
// src/entities/freelancer-experience.entity.ts
|
|
4510
4555
|
import {
|
|
4511
|
-
Entity as
|
|
4512
|
-
Column as
|
|
4513
|
-
Index as
|
|
4514
|
-
ManyToOne as
|
|
4515
|
-
JoinColumn as
|
|
4556
|
+
Entity as Entity38,
|
|
4557
|
+
Column as Column39,
|
|
4558
|
+
Index as Index31,
|
|
4559
|
+
ManyToOne as ManyToOne37,
|
|
4560
|
+
JoinColumn as JoinColumn37
|
|
4516
4561
|
} from "typeorm";
|
|
4517
4562
|
var FreelancerExperience = class extends BaseEntity {
|
|
4518
4563
|
};
|
|
4519
4564
|
// individual index to find experence by user
|
|
4520
4565
|
__decorateClass([
|
|
4521
|
-
|
|
4522
|
-
|
|
4566
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4567
|
+
Index31()
|
|
4523
4568
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4524
4569
|
__decorateClass([
|
|
4525
|
-
|
|
4526
|
-
|
|
4570
|
+
ManyToOne37(() => User, (user) => user.freelancerExperience),
|
|
4571
|
+
JoinColumn37({ name: "user_id" })
|
|
4527
4572
|
], FreelancerExperience.prototype, "user", 2);
|
|
4528
4573
|
__decorateClass([
|
|
4529
|
-
|
|
4574
|
+
Column39({ name: "company_name", type: "varchar", nullable: true })
|
|
4530
4575
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4531
4576
|
__decorateClass([
|
|
4532
|
-
|
|
4577
|
+
Column39({ name: "designation", type: "varchar", nullable: true })
|
|
4533
4578
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4534
4579
|
__decorateClass([
|
|
4535
|
-
|
|
4580
|
+
Column39({ name: "job_duration", type: "varchar", nullable: true })
|
|
4536
4581
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4537
4582
|
__decorateClass([
|
|
4538
|
-
|
|
4583
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
4539
4584
|
], FreelancerExperience.prototype, "description", 2);
|
|
4540
4585
|
FreelancerExperience = __decorateClass([
|
|
4541
|
-
|
|
4586
|
+
Entity38("freelancer_experiences")
|
|
4542
4587
|
], FreelancerExperience);
|
|
4543
4588
|
|
|
4544
4589
|
// src/entities/freelancer-education.entity.ts
|
|
4545
4590
|
import {
|
|
4546
|
-
Entity as
|
|
4547
|
-
Column as
|
|
4548
|
-
Index as
|
|
4549
|
-
ManyToOne as
|
|
4550
|
-
JoinColumn as
|
|
4591
|
+
Entity as Entity39,
|
|
4592
|
+
Column as Column40,
|
|
4593
|
+
Index as Index32,
|
|
4594
|
+
ManyToOne as ManyToOne38,
|
|
4595
|
+
JoinColumn as JoinColumn38
|
|
4551
4596
|
} from "typeorm";
|
|
4552
4597
|
var FreelancerEducation = class extends BaseEntity {
|
|
4553
4598
|
};
|
|
4554
4599
|
// individual index to find education by user
|
|
4555
4600
|
__decorateClass([
|
|
4556
|
-
|
|
4557
|
-
|
|
4601
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4602
|
+
Index32()
|
|
4558
4603
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4559
4604
|
__decorateClass([
|
|
4560
|
-
|
|
4561
|
-
|
|
4605
|
+
ManyToOne38(() => User, (user) => user.freelancerEducation),
|
|
4606
|
+
JoinColumn38({ name: "user_id" })
|
|
4562
4607
|
], FreelancerEducation.prototype, "user", 2);
|
|
4563
4608
|
__decorateClass([
|
|
4564
|
-
|
|
4609
|
+
Column40({ name: "degree", type: "varchar", nullable: true })
|
|
4565
4610
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4566
4611
|
__decorateClass([
|
|
4567
|
-
|
|
4612
|
+
Column40({ name: "university", type: "varchar", nullable: true })
|
|
4568
4613
|
], FreelancerEducation.prototype, "university", 2);
|
|
4569
4614
|
__decorateClass([
|
|
4570
|
-
|
|
4615
|
+
Column40({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4571
4616
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4572
4617
|
FreelancerEducation = __decorateClass([
|
|
4573
|
-
|
|
4618
|
+
Entity39("freelancer_educations")
|
|
4574
4619
|
], FreelancerEducation);
|
|
4575
4620
|
|
|
4576
4621
|
// src/entities/freelancer-project.entity.ts
|
|
4577
4622
|
import {
|
|
4578
|
-
Entity as
|
|
4579
|
-
Column as
|
|
4580
|
-
Index as
|
|
4581
|
-
ManyToOne as
|
|
4582
|
-
JoinColumn as
|
|
4623
|
+
Entity as Entity40,
|
|
4624
|
+
Column as Column41,
|
|
4625
|
+
Index as Index33,
|
|
4626
|
+
ManyToOne as ManyToOne39,
|
|
4627
|
+
JoinColumn as JoinColumn39
|
|
4583
4628
|
} from "typeorm";
|
|
4584
4629
|
var FreelancerProject = class extends BaseEntity {
|
|
4585
4630
|
};
|
|
4586
4631
|
// individual index to find project by user
|
|
4587
4632
|
__decorateClass([
|
|
4588
|
-
|
|
4589
|
-
|
|
4633
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4634
|
+
Index33()
|
|
4590
4635
|
], FreelancerProject.prototype, "userId", 2);
|
|
4591
4636
|
__decorateClass([
|
|
4592
|
-
|
|
4593
|
-
|
|
4637
|
+
ManyToOne39(() => User, (user) => user.freelancerProject),
|
|
4638
|
+
JoinColumn39({ name: "user_id" })
|
|
4594
4639
|
], FreelancerProject.prototype, "user", 2);
|
|
4595
4640
|
__decorateClass([
|
|
4596
|
-
|
|
4641
|
+
Column41({ name: "project_name", type: "varchar", nullable: true })
|
|
4597
4642
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4598
4643
|
__decorateClass([
|
|
4599
|
-
|
|
4644
|
+
Column41({ name: "start_date", type: "date", nullable: true })
|
|
4600
4645
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4601
4646
|
__decorateClass([
|
|
4602
|
-
|
|
4647
|
+
Column41({ name: "end_date", type: "date", nullable: true })
|
|
4603
4648
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4604
4649
|
__decorateClass([
|
|
4605
|
-
|
|
4650
|
+
Column41({ name: "client_name", type: "varchar", nullable: true })
|
|
4606
4651
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4607
4652
|
__decorateClass([
|
|
4608
|
-
|
|
4653
|
+
Column41({ name: "git_link", type: "varchar", nullable: true })
|
|
4609
4654
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4610
4655
|
__decorateClass([
|
|
4611
|
-
|
|
4656
|
+
Column41({ name: "description", type: "varchar", nullable: true })
|
|
4612
4657
|
], FreelancerProject.prototype, "description", 2);
|
|
4613
4658
|
FreelancerProject = __decorateClass([
|
|
4614
|
-
|
|
4659
|
+
Entity40("freelancer_projects")
|
|
4615
4660
|
], FreelancerProject);
|
|
4616
4661
|
|
|
4617
4662
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4618
4663
|
import {
|
|
4619
|
-
Entity as
|
|
4620
|
-
Column as
|
|
4621
|
-
Index as
|
|
4622
|
-
ManyToOne as
|
|
4623
|
-
JoinColumn as
|
|
4664
|
+
Entity as Entity41,
|
|
4665
|
+
Column as Column42,
|
|
4666
|
+
Index as Index34,
|
|
4667
|
+
ManyToOne as ManyToOne40,
|
|
4668
|
+
JoinColumn as JoinColumn40
|
|
4624
4669
|
} from "typeorm";
|
|
4625
4670
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4626
4671
|
};
|
|
4627
4672
|
// individual index to find case study by user
|
|
4628
4673
|
__decorateClass([
|
|
4629
|
-
|
|
4630
|
-
|
|
4674
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4675
|
+
Index34()
|
|
4631
4676
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4632
4677
|
__decorateClass([
|
|
4633
|
-
|
|
4634
|
-
|
|
4678
|
+
ManyToOne40(() => User, (user) => user.freelancerCaseStudy),
|
|
4679
|
+
JoinColumn40({ name: "user_id" })
|
|
4635
4680
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4636
4681
|
__decorateClass([
|
|
4637
|
-
|
|
4682
|
+
Column42({ name: "project_name", type: "varchar", nullable: true })
|
|
4638
4683
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4639
4684
|
__decorateClass([
|
|
4640
|
-
|
|
4685
|
+
Column42({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4641
4686
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4642
4687
|
__decorateClass([
|
|
4643
|
-
|
|
4688
|
+
Column42({ name: "description", type: "varchar", nullable: true })
|
|
4644
4689
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4645
4690
|
FreelancerCaseStudy = __decorateClass([
|
|
4646
|
-
|
|
4691
|
+
Entity41("freelancer_case_studies")
|
|
4647
4692
|
], FreelancerCaseStudy);
|
|
4648
4693
|
|
|
4649
4694
|
// src/entities/freelancer-skill.entity.ts
|
|
4650
4695
|
import {
|
|
4651
|
-
Entity as
|
|
4652
|
-
Column as
|
|
4653
|
-
Index as
|
|
4654
|
-
ManyToOne as
|
|
4655
|
-
JoinColumn as
|
|
4696
|
+
Entity as Entity42,
|
|
4697
|
+
Column as Column43,
|
|
4698
|
+
Index as Index35,
|
|
4699
|
+
ManyToOne as ManyToOne41,
|
|
4700
|
+
JoinColumn as JoinColumn41
|
|
4656
4701
|
} from "typeorm";
|
|
4657
4702
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4658
4703
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4663,18 +4708,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4663
4708
|
};
|
|
4664
4709
|
// individual index to find core skills by user
|
|
4665
4710
|
__decorateClass([
|
|
4666
|
-
|
|
4667
|
-
|
|
4711
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
4712
|
+
Index35()
|
|
4668
4713
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4669
4714
|
__decorateClass([
|
|
4670
|
-
|
|
4671
|
-
|
|
4715
|
+
ManyToOne41(() => User, (user) => user.freelancerSkills),
|
|
4716
|
+
JoinColumn41({ name: "user_id" })
|
|
4672
4717
|
], FreelancerSkill.prototype, "user", 2);
|
|
4673
4718
|
__decorateClass([
|
|
4674
|
-
|
|
4719
|
+
Column43({ name: "skill_name", type: "varchar", nullable: true })
|
|
4675
4720
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4676
4721
|
__decorateClass([
|
|
4677
|
-
|
|
4722
|
+
Column43({
|
|
4678
4723
|
name: "skill_category",
|
|
4679
4724
|
type: "smallint",
|
|
4680
4725
|
default: 1,
|
|
@@ -4682,68 +4727,68 @@ __decorateClass([
|
|
|
4682
4727
|
})
|
|
4683
4728
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4684
4729
|
FreelancerSkill = __decorateClass([
|
|
4685
|
-
|
|
4730
|
+
Entity42("freelancer_skills")
|
|
4686
4731
|
], FreelancerSkill);
|
|
4687
4732
|
|
|
4688
4733
|
// src/entities/freelancer-tool.entity.ts
|
|
4689
4734
|
import {
|
|
4690
|
-
Entity as
|
|
4691
|
-
Column as
|
|
4692
|
-
Index as
|
|
4693
|
-
ManyToOne as
|
|
4694
|
-
JoinColumn as
|
|
4735
|
+
Entity as Entity43,
|
|
4736
|
+
Column as Column44,
|
|
4737
|
+
Index as Index36,
|
|
4738
|
+
ManyToOne as ManyToOne42,
|
|
4739
|
+
JoinColumn as JoinColumn42
|
|
4695
4740
|
} from "typeorm";
|
|
4696
4741
|
var FreelancerTool = class extends BaseEntity {
|
|
4697
4742
|
};
|
|
4698
4743
|
// individual index to find tool by user
|
|
4699
4744
|
__decorateClass([
|
|
4700
|
-
|
|
4701
|
-
|
|
4745
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
4746
|
+
Index36()
|
|
4702
4747
|
], FreelancerTool.prototype, "userId", 2);
|
|
4703
4748
|
__decorateClass([
|
|
4704
|
-
|
|
4705
|
-
|
|
4749
|
+
ManyToOne42(() => User, (user) => user.freelancerTool),
|
|
4750
|
+
JoinColumn42({ name: "user_id" })
|
|
4706
4751
|
], FreelancerTool.prototype, "user", 2);
|
|
4707
4752
|
__decorateClass([
|
|
4708
|
-
|
|
4753
|
+
Column44({ name: "tool_name", type: "varchar", nullable: true })
|
|
4709
4754
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4710
4755
|
FreelancerTool = __decorateClass([
|
|
4711
|
-
|
|
4756
|
+
Entity43("freelancer_tools")
|
|
4712
4757
|
], FreelancerTool);
|
|
4713
4758
|
|
|
4714
4759
|
// src/entities/freelancer-framework.entity.ts
|
|
4715
4760
|
import {
|
|
4716
|
-
Entity as
|
|
4717
|
-
Column as
|
|
4718
|
-
Index as
|
|
4719
|
-
ManyToOne as
|
|
4720
|
-
JoinColumn as
|
|
4761
|
+
Entity as Entity44,
|
|
4762
|
+
Column as Column45,
|
|
4763
|
+
Index as Index37,
|
|
4764
|
+
ManyToOne as ManyToOne43,
|
|
4765
|
+
JoinColumn as JoinColumn43
|
|
4721
4766
|
} from "typeorm";
|
|
4722
4767
|
var FreelancerFramework = class extends BaseEntity {
|
|
4723
4768
|
};
|
|
4724
4769
|
// individual index to find framework by user
|
|
4725
4770
|
__decorateClass([
|
|
4726
|
-
|
|
4727
|
-
|
|
4771
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4772
|
+
Index37()
|
|
4728
4773
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4729
4774
|
__decorateClass([
|
|
4730
|
-
|
|
4731
|
-
|
|
4775
|
+
ManyToOne43(() => User, (user) => user.freelancerFramework),
|
|
4776
|
+
JoinColumn43({ name: "user_id" })
|
|
4732
4777
|
], FreelancerFramework.prototype, "user", 2);
|
|
4733
4778
|
__decorateClass([
|
|
4734
|
-
|
|
4779
|
+
Column45({ name: "framework_name", type: "varchar", nullable: true })
|
|
4735
4780
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4736
4781
|
FreelancerFramework = __decorateClass([
|
|
4737
|
-
|
|
4782
|
+
Entity44("freelancer_frameworks")
|
|
4738
4783
|
], FreelancerFramework);
|
|
4739
4784
|
|
|
4740
4785
|
// src/entities/freelancer-assessment.entity.ts
|
|
4741
4786
|
import {
|
|
4742
|
-
Entity as
|
|
4743
|
-
Column as
|
|
4744
|
-
Index as
|
|
4745
|
-
ManyToOne as
|
|
4746
|
-
JoinColumn as
|
|
4787
|
+
Entity as Entity45,
|
|
4788
|
+
Column as Column46,
|
|
4789
|
+
Index as Index38,
|
|
4790
|
+
ManyToOne as ManyToOne44,
|
|
4791
|
+
JoinColumn as JoinColumn44
|
|
4747
4792
|
} from "typeorm";
|
|
4748
4793
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4749
4794
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4761,33 +4806,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4761
4806
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4762
4807
|
};
|
|
4763
4808
|
__decorateClass([
|
|
4764
|
-
|
|
4765
|
-
|
|
4809
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4810
|
+
Index38()
|
|
4766
4811
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4767
4812
|
__decorateClass([
|
|
4768
|
-
|
|
4769
|
-
|
|
4813
|
+
ManyToOne44(() => User, (user) => user.assessments),
|
|
4814
|
+
JoinColumn44({ name: "user_id" })
|
|
4770
4815
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4771
4816
|
__decorateClass([
|
|
4772
|
-
|
|
4817
|
+
Column46({ name: "interview_id", type: "varchar", nullable: true })
|
|
4773
4818
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4774
4819
|
__decorateClass([
|
|
4775
|
-
|
|
4820
|
+
Column46({ name: "interview_link", type: "text", nullable: true })
|
|
4776
4821
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4777
4822
|
__decorateClass([
|
|
4778
|
-
|
|
4823
|
+
Column46({ name: "recording_link", type: "text", nullable: true })
|
|
4779
4824
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4780
4825
|
__decorateClass([
|
|
4781
|
-
|
|
4826
|
+
Column46({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4782
4827
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4783
4828
|
__decorateClass([
|
|
4784
|
-
|
|
4829
|
+
Column46({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4785
4830
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4786
4831
|
__decorateClass([
|
|
4787
|
-
|
|
4832
|
+
Column46({ name: "score", type: "float", nullable: true })
|
|
4788
4833
|
], FreelancerAssessment.prototype, "score", 2);
|
|
4789
4834
|
__decorateClass([
|
|
4790
|
-
|
|
4835
|
+
Column46({
|
|
4791
4836
|
name: "status",
|
|
4792
4837
|
type: "enum",
|
|
4793
4838
|
enum: AssessmentStatusEnum,
|
|
@@ -4795,17 +4840,17 @@ __decorateClass([
|
|
|
4795
4840
|
})
|
|
4796
4841
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4797
4842
|
__decorateClass([
|
|
4798
|
-
|
|
4843
|
+
Column46({ name: "task_id", type: "varchar", nullable: true })
|
|
4799
4844
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
4800
4845
|
__decorateClass([
|
|
4801
|
-
|
|
4846
|
+
Column46({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4802
4847
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
4803
4848
|
FreelancerAssessment = __decorateClass([
|
|
4804
|
-
|
|
4849
|
+
Entity45("freelancer_assessments")
|
|
4805
4850
|
], FreelancerAssessment);
|
|
4806
4851
|
|
|
4807
4852
|
// src/entities/freelancer-declaration.entity.ts
|
|
4808
|
-
import { Entity as
|
|
4853
|
+
import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4809
4854
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4810
4855
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4811
4856
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4817,15 +4862,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4817
4862
|
};
|
|
4818
4863
|
// individual index to find declaration by user
|
|
4819
4864
|
__decorateClass([
|
|
4820
|
-
|
|
4821
|
-
|
|
4865
|
+
Column47({ name: "user_id", type: "integer", nullable: true }),
|
|
4866
|
+
Index39()
|
|
4822
4867
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4823
4868
|
__decorateClass([
|
|
4824
|
-
|
|
4825
|
-
|
|
4869
|
+
ManyToOne45(() => User, (user) => user.freelancerDeclaration),
|
|
4870
|
+
JoinColumn45({ name: "user_id" })
|
|
4826
4871
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4827
4872
|
__decorateClass([
|
|
4828
|
-
|
|
4873
|
+
Column47({
|
|
4829
4874
|
name: "document_type",
|
|
4830
4875
|
type: "enum",
|
|
4831
4876
|
enum: DocumentType,
|
|
@@ -4833,175 +4878,175 @@ __decorateClass([
|
|
|
4833
4878
|
})
|
|
4834
4879
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4835
4880
|
__decorateClass([
|
|
4836
|
-
|
|
4881
|
+
Column47({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4837
4882
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4838
4883
|
__decorateClass([
|
|
4839
|
-
|
|
4884
|
+
Column47({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4840
4885
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4841
4886
|
__decorateClass([
|
|
4842
|
-
|
|
4887
|
+
Column47({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4843
4888
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4844
4889
|
__decorateClass([
|
|
4845
|
-
|
|
4890
|
+
Column47({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4846
4891
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4847
4892
|
FreelancerDeclaration = __decorateClass([
|
|
4848
|
-
|
|
4893
|
+
Entity46("freelancer_declaration")
|
|
4849
4894
|
], FreelancerDeclaration);
|
|
4850
4895
|
|
|
4851
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
|
|
4852
4906
|
import {
|
|
4853
4907
|
Column as Column50,
|
|
4854
4908
|
Entity as Entity49,
|
|
4855
|
-
|
|
4909
|
+
Index as Index42,
|
|
4856
4910
|
JoinColumn as JoinColumn47,
|
|
4857
|
-
|
|
4911
|
+
ManyToOne as ManyToOne47,
|
|
4912
|
+
OneToMany as OneToMany17
|
|
4858
4913
|
} from "typeorm";
|
|
4859
4914
|
|
|
4860
|
-
// src/entities/company-role.entity.ts
|
|
4915
|
+
// src/entities/company-role-permission.entity.ts
|
|
4861
4916
|
import {
|
|
4862
4917
|
Column as Column49,
|
|
4863
4918
|
Entity as Entity48,
|
|
4864
|
-
Index as Index41,
|
|
4865
|
-
JoinColumn as JoinColumn46,
|
|
4866
4919
|
ManyToOne as ManyToOne46,
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
// src/entities/company-role-permission.entity.ts
|
|
4871
|
-
import {
|
|
4872
|
-
Column as Column48,
|
|
4873
|
-
Entity as Entity47,
|
|
4874
|
-
ManyToOne as ManyToOne45,
|
|
4875
|
-
JoinColumn as JoinColumn45,
|
|
4876
|
-
Index as Index40
|
|
4920
|
+
JoinColumn as JoinColumn46,
|
|
4921
|
+
Index as Index41
|
|
4877
4922
|
} from "typeorm";
|
|
4878
4923
|
|
|
4879
4924
|
// src/entities/permission.entity.ts
|
|
4880
|
-
import { Column as
|
|
4925
|
+
import { Column as Column48, Entity as Entity47, Index as Index40 } from "typeorm";
|
|
4881
4926
|
var Permission = class extends BaseEntity {
|
|
4882
4927
|
};
|
|
4883
4928
|
__decorateClass([
|
|
4884
|
-
|
|
4929
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
4885
4930
|
], Permission.prototype, "name", 2);
|
|
4886
4931
|
__decorateClass([
|
|
4887
|
-
|
|
4888
|
-
|
|
4932
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4933
|
+
Index40()
|
|
4889
4934
|
], Permission.prototype, "slug", 2);
|
|
4890
4935
|
__decorateClass([
|
|
4891
|
-
|
|
4936
|
+
Column48({ name: "description", type: "text", nullable: true })
|
|
4892
4937
|
], Permission.prototype, "description", 2);
|
|
4893
4938
|
__decorateClass([
|
|
4894
|
-
|
|
4939
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4895
4940
|
], Permission.prototype, "isActive", 2);
|
|
4896
4941
|
Permission = __decorateClass([
|
|
4897
|
-
|
|
4942
|
+
Entity47("permissions")
|
|
4898
4943
|
], Permission);
|
|
4899
4944
|
|
|
4900
4945
|
// src/entities/company-role-permission.entity.ts
|
|
4901
4946
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4902
4947
|
};
|
|
4903
4948
|
__decorateClass([
|
|
4904
|
-
|
|
4905
|
-
|
|
4949
|
+
Column49({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4950
|
+
Index41()
|
|
4906
4951
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4907
4952
|
__decorateClass([
|
|
4908
|
-
|
|
4953
|
+
ManyToOne46(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4909
4954
|
onDelete: "CASCADE"
|
|
4910
4955
|
}),
|
|
4911
|
-
|
|
4956
|
+
JoinColumn46({ name: "company_role_id" })
|
|
4912
4957
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4913
4958
|
__decorateClass([
|
|
4914
|
-
|
|
4915
|
-
|
|
4959
|
+
Column49({ name: "permission_id", type: "integer" }),
|
|
4960
|
+
Index41()
|
|
4916
4961
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4917
4962
|
__decorateClass([
|
|
4918
|
-
|
|
4919
|
-
|
|
4963
|
+
ManyToOne46(() => Permission, { onDelete: "CASCADE" }),
|
|
4964
|
+
JoinColumn46({ name: "permission_id" })
|
|
4920
4965
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4921
4966
|
__decorateClass([
|
|
4922
|
-
|
|
4967
|
+
Column49({ name: "assigned_by", type: "integer", nullable: true })
|
|
4923
4968
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4924
4969
|
CompanyRolePermission = __decorateClass([
|
|
4925
|
-
|
|
4970
|
+
Entity48("company_role_permissions")
|
|
4926
4971
|
], CompanyRolePermission);
|
|
4927
4972
|
|
|
4928
4973
|
// src/entities/company-role.entity.ts
|
|
4929
4974
|
var CompanyRole = class extends BaseEntity {
|
|
4930
4975
|
};
|
|
4931
4976
|
__decorateClass([
|
|
4932
|
-
|
|
4933
|
-
|
|
4977
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
4978
|
+
Index42()
|
|
4934
4979
|
], CompanyRole.prototype, "userId", 2);
|
|
4935
4980
|
__decorateClass([
|
|
4936
|
-
|
|
4937
|
-
|
|
4981
|
+
ManyToOne47(() => User, (user) => user.otps),
|
|
4982
|
+
JoinColumn47({ name: "user_id" })
|
|
4938
4983
|
], CompanyRole.prototype, "user", 2);
|
|
4939
4984
|
__decorateClass([
|
|
4940
|
-
|
|
4985
|
+
Column50({ name: "name", type: "varchar" })
|
|
4941
4986
|
], CompanyRole.prototype, "name", 2);
|
|
4942
4987
|
__decorateClass([
|
|
4943
|
-
|
|
4944
|
-
|
|
4988
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4989
|
+
Index42()
|
|
4945
4990
|
], CompanyRole.prototype, "slug", 2);
|
|
4946
4991
|
__decorateClass([
|
|
4947
|
-
|
|
4992
|
+
Column50({ name: "description", type: "text", nullable: true })
|
|
4948
4993
|
], CompanyRole.prototype, "description", 2);
|
|
4949
4994
|
__decorateClass([
|
|
4950
|
-
|
|
4995
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
4951
4996
|
], CompanyRole.prototype, "isActive", 2);
|
|
4952
4997
|
__decorateClass([
|
|
4953
|
-
|
|
4998
|
+
OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4954
4999
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4955
5000
|
CompanyRole = __decorateClass([
|
|
4956
|
-
|
|
5001
|
+
Entity49("company_roles")
|
|
4957
5002
|
], CompanyRole);
|
|
4958
5003
|
|
|
4959
5004
|
// src/entities/company-members-roles.entity.ts
|
|
4960
5005
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4961
5006
|
};
|
|
4962
5007
|
__decorateClass([
|
|
4963
|
-
|
|
4964
|
-
|
|
5008
|
+
Column51({ name: "user_id", type: "integer", nullable: true }),
|
|
5009
|
+
Index43()
|
|
4965
5010
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4966
5011
|
__decorateClass([
|
|
4967
|
-
|
|
4968
|
-
|
|
5012
|
+
ManyToOne48(() => User),
|
|
5013
|
+
JoinColumn48({ name: "user_id" })
|
|
4969
5014
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4970
5015
|
__decorateClass([
|
|
4971
|
-
|
|
4972
|
-
|
|
5016
|
+
ManyToOne48(() => CompanyRole),
|
|
5017
|
+
JoinColumn48({ name: "company_role_id" })
|
|
4973
5018
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4974
5019
|
__decorateClass([
|
|
4975
|
-
|
|
4976
|
-
|
|
5020
|
+
Column51({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5021
|
+
Index43()
|
|
4977
5022
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4978
5023
|
__decorateClass([
|
|
4979
|
-
|
|
5024
|
+
Column51({ name: "assigned_by", type: "integer", nullable: true })
|
|
4980
5025
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4981
5026
|
CompanyMemberRole = __decorateClass([
|
|
4982
|
-
|
|
5027
|
+
Entity50("company_member_roles")
|
|
4983
5028
|
], CompanyMemberRole);
|
|
4984
5029
|
|
|
4985
5030
|
// src/entities/assessment-answer.entity.ts
|
|
4986
5031
|
import {
|
|
4987
|
-
Entity as
|
|
4988
|
-
Column as
|
|
4989
|
-
ManyToOne as
|
|
4990
|
-
Index as
|
|
4991
|
-
JoinColumn as
|
|
5032
|
+
Entity as Entity53,
|
|
5033
|
+
Column as Column54,
|
|
5034
|
+
ManyToOne as ManyToOne51,
|
|
5035
|
+
Index as Index46,
|
|
5036
|
+
JoinColumn as JoinColumn51
|
|
4992
5037
|
} from "typeorm";
|
|
4993
5038
|
|
|
4994
5039
|
// src/entities/assessment-question.entity.ts
|
|
4995
|
-
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";
|
|
4996
5041
|
|
|
4997
5042
|
// src/entities/assessment-question-option.entity.ts
|
|
4998
5043
|
import {
|
|
4999
|
-
Entity as
|
|
5000
|
-
Column as
|
|
5001
|
-
OneToMany as
|
|
5002
|
-
ManyToOne as
|
|
5003
|
-
Index as
|
|
5004
|
-
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
|
|
5005
5050
|
} from "typeorm";
|
|
5006
5051
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5007
5052
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5012,21 +5057,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5012
5057
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5013
5058
|
};
|
|
5014
5059
|
__decorateClass([
|
|
5015
|
-
|
|
5016
|
-
|
|
5060
|
+
Column52({ name: "question_id", type: "integer", nullable: true }),
|
|
5061
|
+
Index44()
|
|
5017
5062
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5018
5063
|
__decorateClass([
|
|
5019
|
-
|
|
5064
|
+
ManyToOne49(
|
|
5020
5065
|
() => AssessmetQuestion,
|
|
5021
5066
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5022
5067
|
),
|
|
5023
|
-
|
|
5068
|
+
JoinColumn49({ name: "question_id" })
|
|
5024
5069
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5025
5070
|
__decorateClass([
|
|
5026
|
-
|
|
5071
|
+
Column52({ name: "text", type: "varchar", nullable: true })
|
|
5027
5072
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5028
5073
|
__decorateClass([
|
|
5029
|
-
|
|
5074
|
+
Column52({
|
|
5030
5075
|
name: "answer_type",
|
|
5031
5076
|
type: "enum",
|
|
5032
5077
|
enum: AnswerTypeEnum,
|
|
@@ -5034,13 +5079,13 @@ __decorateClass([
|
|
|
5034
5079
|
})
|
|
5035
5080
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5036
5081
|
__decorateClass([
|
|
5037
|
-
|
|
5082
|
+
Column52({ name: "is_active", type: "boolean", default: true })
|
|
5038
5083
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5039
5084
|
__decorateClass([
|
|
5040
|
-
|
|
5085
|
+
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5041
5086
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5042
5087
|
AssessmetQuestionOption = __decorateClass([
|
|
5043
|
-
|
|
5088
|
+
Entity51("assessment_question_options")
|
|
5044
5089
|
], AssessmetQuestionOption);
|
|
5045
5090
|
|
|
5046
5091
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5052,10 +5097,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5052
5097
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5053
5098
|
};
|
|
5054
5099
|
__decorateClass([
|
|
5055
|
-
|
|
5100
|
+
Column53({ name: "text", type: "varchar", nullable: true })
|
|
5056
5101
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5057
5102
|
__decorateClass([
|
|
5058
|
-
|
|
5103
|
+
Column53({
|
|
5059
5104
|
name: "question_for",
|
|
5060
5105
|
type: "enum",
|
|
5061
5106
|
enum: QuestionForEnum,
|
|
@@ -5063,24 +5108,24 @@ __decorateClass([
|
|
|
5063
5108
|
})
|
|
5064
5109
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5065
5110
|
__decorateClass([
|
|
5066
|
-
|
|
5111
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5067
5112
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5068
5113
|
__decorateClass([
|
|
5069
|
-
|
|
5070
|
-
|
|
5114
|
+
Column53({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5115
|
+
Index45()
|
|
5071
5116
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5072
5117
|
__decorateClass([
|
|
5073
|
-
|
|
5074
|
-
|
|
5118
|
+
ManyToOne50(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5119
|
+
JoinColumn50({ name: "candidate_id" })
|
|
5075
5120
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5076
5121
|
__decorateClass([
|
|
5077
|
-
|
|
5122
|
+
OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5078
5123
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5079
5124
|
__decorateClass([
|
|
5080
|
-
|
|
5125
|
+
OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5081
5126
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5082
5127
|
AssessmetQuestion = __decorateClass([
|
|
5083
|
-
|
|
5128
|
+
Entity52("assessment_questions")
|
|
5084
5129
|
], AssessmetQuestion);
|
|
5085
5130
|
|
|
5086
5131
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5093,118 +5138,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5093
5138
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5094
5139
|
};
|
|
5095
5140
|
__decorateClass([
|
|
5096
|
-
|
|
5097
|
-
|
|
5141
|
+
Column54({ name: "user_id", type: "integer" }),
|
|
5142
|
+
Index46()
|
|
5098
5143
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5099
5144
|
__decorateClass([
|
|
5100
|
-
|
|
5101
|
-
|
|
5145
|
+
ManyToOne51(() => User, (user) => user.assessmentAnswers),
|
|
5146
|
+
JoinColumn51({ name: "user_id" })
|
|
5102
5147
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5103
5148
|
__decorateClass([
|
|
5104
|
-
|
|
5105
|
-
|
|
5149
|
+
Column54({ name: "question_id", type: "integer" }),
|
|
5150
|
+
Index46()
|
|
5106
5151
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5107
5152
|
__decorateClass([
|
|
5108
|
-
|
|
5153
|
+
ManyToOne51(
|
|
5109
5154
|
() => AssessmetQuestion,
|
|
5110
5155
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5111
5156
|
),
|
|
5112
|
-
|
|
5157
|
+
JoinColumn51({ name: "question_id" })
|
|
5113
5158
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5114
5159
|
__decorateClass([
|
|
5115
|
-
|
|
5116
|
-
|
|
5160
|
+
Column54({ name: "selected_option_id", type: "integer" }),
|
|
5161
|
+
Index46()
|
|
5117
5162
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5118
5163
|
__decorateClass([
|
|
5119
|
-
|
|
5164
|
+
ManyToOne51(
|
|
5120
5165
|
() => AssessmetQuestionOption,
|
|
5121
5166
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5122
5167
|
),
|
|
5123
|
-
|
|
5168
|
+
JoinColumn51({ name: "selected_option_id" })
|
|
5124
5169
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5125
5170
|
__decorateClass([
|
|
5126
|
-
|
|
5171
|
+
Column54({
|
|
5127
5172
|
name: "selected_answer_type",
|
|
5128
5173
|
type: "enum",
|
|
5129
5174
|
enum: SelectedAnswerTypeEnum
|
|
5130
5175
|
})
|
|
5131
5176
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5132
5177
|
__decorateClass([
|
|
5133
|
-
|
|
5178
|
+
Column54({ name: "score", type: "float" })
|
|
5134
5179
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5135
5180
|
AssessmentAnswer = __decorateClass([
|
|
5136
|
-
|
|
5181
|
+
Entity53("assessment_answers")
|
|
5137
5182
|
], AssessmentAnswer);
|
|
5138
5183
|
|
|
5139
5184
|
// src/entities/company-skill.entity.ts
|
|
5140
|
-
import { Entity as
|
|
5185
|
+
import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
5141
5186
|
var CompanySkill = class extends BaseEntity {
|
|
5142
5187
|
};
|
|
5143
5188
|
// individual index to find core skills by user
|
|
5144
5189
|
__decorateClass([
|
|
5145
|
-
|
|
5146
|
-
|
|
5190
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5191
|
+
Index47()
|
|
5147
5192
|
], CompanySkill.prototype, "userId", 2);
|
|
5148
5193
|
__decorateClass([
|
|
5149
|
-
|
|
5150
|
-
|
|
5194
|
+
ManyToOne52(() => User, (user) => user.companySkills),
|
|
5195
|
+
JoinColumn52({ name: "user_id" })
|
|
5151
5196
|
], CompanySkill.prototype, "user", 2);
|
|
5152
5197
|
__decorateClass([
|
|
5153
|
-
|
|
5198
|
+
Column55({ name: "skill_name", type: "varchar", nullable: true })
|
|
5154
5199
|
], CompanySkill.prototype, "skillName", 2);
|
|
5155
5200
|
CompanySkill = __decorateClass([
|
|
5156
|
-
|
|
5201
|
+
Entity54("company_skills")
|
|
5157
5202
|
], CompanySkill);
|
|
5158
5203
|
|
|
5159
5204
|
// src/entities/admin-user-role.entity.ts
|
|
5160
|
-
import { Entity as
|
|
5205
|
+
import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5161
5206
|
|
|
5162
5207
|
// src/entities/admin-role.entity.ts
|
|
5163
|
-
import { Entity as
|
|
5208
|
+
import { Entity as Entity57, Column as Column58, Index as Index50, OneToMany as OneToMany22 } from "typeorm";
|
|
5164
5209
|
|
|
5165
5210
|
// src/entities/admin-role-permission.entity.ts
|
|
5166
|
-
import { Entity as
|
|
5211
|
+
import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5167
5212
|
|
|
5168
5213
|
// src/entities/admin-permission.entity.ts
|
|
5169
|
-
import { Entity as
|
|
5214
|
+
import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as OneToMany21 } from "typeorm";
|
|
5170
5215
|
var AdminPermission = class extends BaseEntity {
|
|
5171
5216
|
};
|
|
5172
5217
|
__decorateClass([
|
|
5173
|
-
|
|
5218
|
+
Column56({ name: "permission_name", type: "varchar", nullable: true })
|
|
5174
5219
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5175
5220
|
__decorateClass([
|
|
5176
|
-
|
|
5221
|
+
Column56({
|
|
5177
5222
|
name: "permission_slug",
|
|
5178
5223
|
type: "varchar",
|
|
5179
5224
|
unique: true,
|
|
5180
5225
|
nullable: true
|
|
5181
5226
|
}),
|
|
5182
|
-
|
|
5227
|
+
Index48()
|
|
5183
5228
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5184
5229
|
__decorateClass([
|
|
5185
|
-
|
|
5230
|
+
Column56({ name: "permission_description", type: "varchar", nullable: true })
|
|
5186
5231
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5187
5232
|
__decorateClass([
|
|
5188
|
-
|
|
5233
|
+
Column56({ name: "module", type: "varchar", nullable: true })
|
|
5189
5234
|
], AdminPermission.prototype, "module", 2);
|
|
5190
5235
|
__decorateClass([
|
|
5191
|
-
|
|
5236
|
+
Column56({ name: "is_active", type: "boolean", default: true })
|
|
5192
5237
|
], AdminPermission.prototype, "isActive", 2);
|
|
5193
5238
|
__decorateClass([
|
|
5194
|
-
|
|
5239
|
+
OneToMany21(
|
|
5195
5240
|
() => AdminRolePermission,
|
|
5196
5241
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5197
5242
|
)
|
|
5198
5243
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5199
5244
|
AdminPermission = __decorateClass([
|
|
5200
|
-
|
|
5245
|
+
Entity55("admin_permissions")
|
|
5201
5246
|
], AdminPermission);
|
|
5202
5247
|
|
|
5203
5248
|
// src/entities/admin-role-permission.entity.ts
|
|
5204
5249
|
var AdminRolePermission = class extends BaseEntity {
|
|
5205
5250
|
};
|
|
5206
5251
|
__decorateClass([
|
|
5207
|
-
|
|
5252
|
+
Column57({
|
|
5208
5253
|
name: "role_id",
|
|
5209
5254
|
type: "int",
|
|
5210
5255
|
nullable: true,
|
|
@@ -5212,11 +5257,11 @@ __decorateClass([
|
|
|
5212
5257
|
})
|
|
5213
5258
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5214
5259
|
__decorateClass([
|
|
5215
|
-
|
|
5216
|
-
|
|
5260
|
+
ManyToOne53(() => AdminRole),
|
|
5261
|
+
JoinColumn53({ name: "role_id" })
|
|
5217
5262
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5218
5263
|
__decorateClass([
|
|
5219
|
-
|
|
5264
|
+
Column57({
|
|
5220
5265
|
name: "permission_id",
|
|
5221
5266
|
type: "int",
|
|
5222
5267
|
nullable: true,
|
|
@@ -5224,47 +5269,47 @@ __decorateClass([
|
|
|
5224
5269
|
})
|
|
5225
5270
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5226
5271
|
__decorateClass([
|
|
5227
|
-
|
|
5228
|
-
|
|
5272
|
+
ManyToOne53(() => AdminPermission),
|
|
5273
|
+
JoinColumn53({ name: "permission_id" })
|
|
5229
5274
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5230
5275
|
AdminRolePermission = __decorateClass([
|
|
5231
|
-
|
|
5276
|
+
Entity56("admin_role_permissions")
|
|
5232
5277
|
], AdminRolePermission);
|
|
5233
5278
|
|
|
5234
5279
|
// src/entities/admin-role.entity.ts
|
|
5235
5280
|
var AdminRole = class extends BaseEntity {
|
|
5236
5281
|
};
|
|
5237
5282
|
__decorateClass([
|
|
5238
|
-
|
|
5283
|
+
Column58({ name: "role_name", type: "varchar", nullable: true })
|
|
5239
5284
|
], AdminRole.prototype, "roleName", 2);
|
|
5240
5285
|
__decorateClass([
|
|
5241
|
-
|
|
5242
|
-
|
|
5286
|
+
Column58({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5287
|
+
Index50()
|
|
5243
5288
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5244
5289
|
__decorateClass([
|
|
5245
|
-
|
|
5290
|
+
Column58({ name: "role_description", type: "varchar", nullable: true })
|
|
5246
5291
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5247
5292
|
__decorateClass([
|
|
5248
|
-
|
|
5293
|
+
Column58({ name: "is_active", type: "boolean", default: true })
|
|
5249
5294
|
], AdminRole.prototype, "isActive", 2);
|
|
5250
5295
|
__decorateClass([
|
|
5251
|
-
|
|
5296
|
+
OneToMany22(
|
|
5252
5297
|
() => AdminRolePermission,
|
|
5253
5298
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5254
5299
|
)
|
|
5255
5300
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5256
5301
|
__decorateClass([
|
|
5257
|
-
|
|
5302
|
+
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5258
5303
|
], AdminRole.prototype, "userRoles", 2);
|
|
5259
5304
|
AdminRole = __decorateClass([
|
|
5260
|
-
|
|
5305
|
+
Entity57("admin_roles")
|
|
5261
5306
|
], AdminRole);
|
|
5262
5307
|
|
|
5263
5308
|
// src/entities/admin-user-role.entity.ts
|
|
5264
5309
|
var AdminUserRole = class extends BaseEntity {
|
|
5265
5310
|
};
|
|
5266
5311
|
__decorateClass([
|
|
5267
|
-
|
|
5312
|
+
Column59({
|
|
5268
5313
|
name: "user_id",
|
|
5269
5314
|
type: "int",
|
|
5270
5315
|
nullable: true,
|
|
@@ -5272,11 +5317,11 @@ __decorateClass([
|
|
|
5272
5317
|
})
|
|
5273
5318
|
], AdminUserRole.prototype, "userId", 2);
|
|
5274
5319
|
__decorateClass([
|
|
5275
|
-
|
|
5276
|
-
|
|
5320
|
+
ManyToOne54(() => User),
|
|
5321
|
+
JoinColumn54({ name: "user_id" })
|
|
5277
5322
|
], AdminUserRole.prototype, "user", 2);
|
|
5278
5323
|
__decorateClass([
|
|
5279
|
-
|
|
5324
|
+
Column59({
|
|
5280
5325
|
name: "role_id",
|
|
5281
5326
|
type: "int",
|
|
5282
5327
|
nullable: true,
|
|
@@ -5284,70 +5329,70 @@ __decorateClass([
|
|
|
5284
5329
|
})
|
|
5285
5330
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5286
5331
|
__decorateClass([
|
|
5287
|
-
|
|
5288
|
-
|
|
5332
|
+
ManyToOne54(() => AdminRole),
|
|
5333
|
+
JoinColumn54({ name: "role_id" })
|
|
5289
5334
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5290
5335
|
AdminUserRole = __decorateClass([
|
|
5291
|
-
|
|
5336
|
+
Entity58("admin_user_roles")
|
|
5292
5337
|
], AdminUserRole);
|
|
5293
5338
|
|
|
5294
5339
|
// src/entities/freelancer-resume.entity.ts
|
|
5295
5340
|
import {
|
|
5296
|
-
Entity as
|
|
5297
|
-
Column as
|
|
5298
|
-
Index as
|
|
5299
|
-
ManyToOne as
|
|
5300
|
-
JoinColumn as
|
|
5341
|
+
Entity as Entity59,
|
|
5342
|
+
Column as Column60,
|
|
5343
|
+
Index as Index52,
|
|
5344
|
+
ManyToOne as ManyToOne55,
|
|
5345
|
+
JoinColumn as JoinColumn55
|
|
5301
5346
|
} from "typeorm";
|
|
5302
5347
|
var FreelancerResume = class extends BaseEntity {
|
|
5303
5348
|
};
|
|
5304
5349
|
// individual index to find profile by user
|
|
5305
5350
|
__decorateClass([
|
|
5306
|
-
|
|
5307
|
-
|
|
5351
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5352
|
+
Index52()
|
|
5308
5353
|
], FreelancerResume.prototype, "userId", 2);
|
|
5309
5354
|
__decorateClass([
|
|
5310
|
-
|
|
5311
|
-
|
|
5355
|
+
ManyToOne55(() => User, (user) => user.freelancerProfile),
|
|
5356
|
+
JoinColumn55({ name: "user_id" })
|
|
5312
5357
|
], FreelancerResume.prototype, "user", 2);
|
|
5313
5358
|
__decorateClass([
|
|
5314
|
-
|
|
5359
|
+
Column60({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5315
5360
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5316
5361
|
__decorateClass([
|
|
5317
|
-
|
|
5362
|
+
Column60({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5318
5363
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5319
5364
|
FreelancerResume = __decorateClass([
|
|
5320
|
-
|
|
5365
|
+
Entity59("freelancer_resumes")
|
|
5321
5366
|
], FreelancerResume);
|
|
5322
5367
|
|
|
5323
5368
|
// src/entities/signature.entity.ts
|
|
5324
5369
|
import {
|
|
5325
|
-
Entity as
|
|
5326
|
-
Column as
|
|
5327
|
-
Index as
|
|
5328
|
-
ManyToOne as
|
|
5329
|
-
JoinColumn as
|
|
5370
|
+
Entity as Entity60,
|
|
5371
|
+
Column as Column61,
|
|
5372
|
+
Index as Index53,
|
|
5373
|
+
ManyToOne as ManyToOne56,
|
|
5374
|
+
JoinColumn as JoinColumn56
|
|
5330
5375
|
} from "typeorm";
|
|
5331
5376
|
var Signature = class extends BaseEntity {
|
|
5332
5377
|
};
|
|
5333
5378
|
// individual index to find profile by user
|
|
5334
5379
|
__decorateClass([
|
|
5335
|
-
|
|
5336
|
-
|
|
5380
|
+
Column61({ name: "user_id", type: "integer", nullable: true }),
|
|
5381
|
+
Index53()
|
|
5337
5382
|
], Signature.prototype, "userId", 2);
|
|
5338
5383
|
__decorateClass([
|
|
5339
|
-
|
|
5340
|
-
|
|
5384
|
+
ManyToOne56(() => User, (user) => user.signatures),
|
|
5385
|
+
JoinColumn56({ name: "user_id" })
|
|
5341
5386
|
], Signature.prototype, "user", 2);
|
|
5342
5387
|
__decorateClass([
|
|
5343
|
-
|
|
5388
|
+
Column61({ name: "signature_url", type: "text", nullable: true })
|
|
5344
5389
|
], Signature.prototype, "signatureUrl", 2);
|
|
5345
5390
|
Signature = __decorateClass([
|
|
5346
|
-
|
|
5391
|
+
Entity60("signatures")
|
|
5347
5392
|
], Signature);
|
|
5348
5393
|
|
|
5349
5394
|
// src/entities/dispute.entity.ts
|
|
5350
|
-
import { Entity as
|
|
5395
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, JoinColumn as JoinColumn57, ManyToOne as ManyToOne57 } from "typeorm";
|
|
5351
5396
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5352
5397
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5353
5398
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5368,36 +5413,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5368
5413
|
var Dispute = class extends BaseEntity {
|
|
5369
5414
|
};
|
|
5370
5415
|
__decorateClass([
|
|
5371
|
-
|
|
5372
|
-
|
|
5416
|
+
Column62({ name: "client_id", type: "integer", nullable: true }),
|
|
5417
|
+
Index54()
|
|
5373
5418
|
], Dispute.prototype, "clientId", 2);
|
|
5374
5419
|
__decorateClass([
|
|
5375
|
-
|
|
5376
|
-
|
|
5420
|
+
ManyToOne57(() => User, (user) => user.clientDisputes),
|
|
5421
|
+
JoinColumn57({ name: "client_id" })
|
|
5377
5422
|
], Dispute.prototype, "client", 2);
|
|
5378
5423
|
__decorateClass([
|
|
5379
|
-
|
|
5380
|
-
|
|
5424
|
+
Column62({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5425
|
+
Index54()
|
|
5381
5426
|
], Dispute.prototype, "freelancerId", 2);
|
|
5382
5427
|
__decorateClass([
|
|
5383
|
-
|
|
5384
|
-
|
|
5428
|
+
ManyToOne57(() => User, (user) => user.freelancerDisputes),
|
|
5429
|
+
JoinColumn57({ name: "freelancer_id" })
|
|
5385
5430
|
], Dispute.prototype, "freelancer", 2);
|
|
5386
5431
|
__decorateClass([
|
|
5387
|
-
|
|
5432
|
+
Column62({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5388
5433
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5389
5434
|
__decorateClass([
|
|
5390
|
-
|
|
5391
|
-
|
|
5435
|
+
Column62({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5436
|
+
Index54()
|
|
5392
5437
|
], Dispute.prototype, "disputeType", 2);
|
|
5393
5438
|
__decorateClass([
|
|
5394
|
-
|
|
5439
|
+
Column62({ name: "description", type: "varchar", nullable: true })
|
|
5395
5440
|
], Dispute.prototype, "description", 2);
|
|
5396
5441
|
__decorateClass([
|
|
5397
|
-
|
|
5442
|
+
Column62({ name: "comment", type: "varchar", nullable: true })
|
|
5398
5443
|
], Dispute.prototype, "comment", 2);
|
|
5399
5444
|
__decorateClass([
|
|
5400
|
-
|
|
5445
|
+
Column62({
|
|
5401
5446
|
name: "status",
|
|
5402
5447
|
type: "enum",
|
|
5403
5448
|
enum: DisputeStatusEnum,
|
|
@@ -5405,7 +5450,7 @@ __decorateClass([
|
|
|
5405
5450
|
})
|
|
5406
5451
|
], Dispute.prototype, "status", 2);
|
|
5407
5452
|
__decorateClass([
|
|
5408
|
-
|
|
5453
|
+
Column62({
|
|
5409
5454
|
name: "initiator_type",
|
|
5410
5455
|
type: "enum",
|
|
5411
5456
|
enum: InitiatorTypeEnum,
|
|
@@ -5414,33 +5459,33 @@ __decorateClass([
|
|
|
5414
5459
|
})
|
|
5415
5460
|
], Dispute.prototype, "initiatorType", 2);
|
|
5416
5461
|
__decorateClass([
|
|
5417
|
-
|
|
5418
|
-
|
|
5462
|
+
Column62({ name: "initiator_id", type: "integer" }),
|
|
5463
|
+
Index54()
|
|
5419
5464
|
], Dispute.prototype, "initiatorId", 2);
|
|
5420
5465
|
__decorateClass([
|
|
5421
|
-
|
|
5422
|
-
|
|
5466
|
+
ManyToOne57(() => User, (user) => user.initiatedDisputes),
|
|
5467
|
+
JoinColumn57({ name: "initiator_id" })
|
|
5423
5468
|
], Dispute.prototype, "initiator", 2);
|
|
5424
5469
|
__decorateClass([
|
|
5425
|
-
|
|
5426
|
-
|
|
5470
|
+
Column62({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5471
|
+
Index54()
|
|
5427
5472
|
], Dispute.prototype, "respondentId", 2);
|
|
5428
5473
|
__decorateClass([
|
|
5429
|
-
|
|
5430
|
-
|
|
5474
|
+
ManyToOne57(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5475
|
+
JoinColumn57({ name: "respondent_id" })
|
|
5431
5476
|
], Dispute.prototype, "respondent", 2);
|
|
5432
5477
|
__decorateClass([
|
|
5433
|
-
|
|
5478
|
+
Column62({ name: "attachments", type: "jsonb", nullable: true })
|
|
5434
5479
|
], Dispute.prototype, "attachments", 2);
|
|
5435
5480
|
__decorateClass([
|
|
5436
|
-
|
|
5481
|
+
Column62({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5437
5482
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5438
5483
|
Dispute = __decorateClass([
|
|
5439
|
-
|
|
5484
|
+
Entity61("disputes")
|
|
5440
5485
|
], Dispute);
|
|
5441
5486
|
|
|
5442
5487
|
// src/entities/stripe-transaction.entity.ts
|
|
5443
|
-
import { Entity as
|
|
5488
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
|
|
5444
5489
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5445
5490
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5446
5491
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5462,97 +5507,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5462
5507
|
// Full Stripe session response
|
|
5463
5508
|
};
|
|
5464
5509
|
__decorateClass([
|
|
5465
|
-
|
|
5466
|
-
|
|
5510
|
+
Column63({ name: "user_id", type: "integer", nullable: true }),
|
|
5511
|
+
Index55()
|
|
5467
5512
|
], StripeTransaction.prototype, "userId", 2);
|
|
5468
5513
|
__decorateClass([
|
|
5469
|
-
|
|
5470
|
-
|
|
5514
|
+
ManyToOne58(() => User, (user) => user.stripeTransactions),
|
|
5515
|
+
JoinColumn58({ name: "user_id" })
|
|
5471
5516
|
], StripeTransaction.prototype, "user", 2);
|
|
5472
5517
|
__decorateClass([
|
|
5473
|
-
|
|
5518
|
+
Column63({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5474
5519
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5475
5520
|
__decorateClass([
|
|
5476
|
-
|
|
5521
|
+
Column63({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5477
5522
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5478
5523
|
__decorateClass([
|
|
5479
|
-
|
|
5524
|
+
Column63({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5480
5525
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5481
5526
|
__decorateClass([
|
|
5482
|
-
|
|
5527
|
+
Column63({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5483
5528
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5484
5529
|
__decorateClass([
|
|
5485
|
-
|
|
5530
|
+
Column63({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5486
5531
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5487
5532
|
__decorateClass([
|
|
5488
|
-
|
|
5533
|
+
Column63({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5489
5534
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5490
5535
|
__decorateClass([
|
|
5491
|
-
|
|
5536
|
+
Column63({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5492
5537
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5493
5538
|
__decorateClass([
|
|
5494
|
-
|
|
5539
|
+
Column63({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5495
5540
|
], StripeTransaction.prototype, "type", 2);
|
|
5496
5541
|
__decorateClass([
|
|
5497
|
-
|
|
5542
|
+
Column63({ name: "currency", type: "varchar", nullable: true })
|
|
5498
5543
|
], StripeTransaction.prototype, "currency", 2);
|
|
5499
5544
|
__decorateClass([
|
|
5500
|
-
|
|
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" })
|
|
5501
5546
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5502
5547
|
__decorateClass([
|
|
5503
|
-
|
|
5548
|
+
Column63({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5504
5549
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5505
5550
|
__decorateClass([
|
|
5506
|
-
|
|
5551
|
+
Column63({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5507
5552
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5508
5553
|
__decorateClass([
|
|
5509
|
-
|
|
5554
|
+
Column63({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5510
5555
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5511
5556
|
__decorateClass([
|
|
5512
|
-
|
|
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" })
|
|
5513
5558
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5514
5559
|
__decorateClass([
|
|
5515
|
-
|
|
5560
|
+
Column63({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5516
5561
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5517
5562
|
__decorateClass([
|
|
5518
|
-
|
|
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" })
|
|
5519
5564
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5520
5565
|
__decorateClass([
|
|
5521
|
-
|
|
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" })
|
|
5522
5567
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5523
5568
|
__decorateClass([
|
|
5524
|
-
|
|
5569
|
+
Column63({ name: "description", type: "text", nullable: true })
|
|
5525
5570
|
], StripeTransaction.prototype, "description", 2);
|
|
5526
5571
|
__decorateClass([
|
|
5527
|
-
|
|
5572
|
+
Column63({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5528
5573
|
], StripeTransaction.prototype, "status", 2);
|
|
5529
5574
|
__decorateClass([
|
|
5530
|
-
|
|
5575
|
+
Column63({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5531
5576
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5532
5577
|
__decorateClass([
|
|
5533
|
-
|
|
5578
|
+
Column63({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5534
5579
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5535
5580
|
__decorateClass([
|
|
5536
|
-
|
|
5581
|
+
Column63({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5537
5582
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5538
5583
|
__decorateClass([
|
|
5539
|
-
|
|
5584
|
+
Column63({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5540
5585
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5541
5586
|
__decorateClass([
|
|
5542
|
-
|
|
5587
|
+
Column63({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5543
5588
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5544
5589
|
__decorateClass([
|
|
5545
|
-
|
|
5590
|
+
Column63({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5546
5591
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5547
5592
|
StripeTransaction = __decorateClass([
|
|
5548
|
-
|
|
5593
|
+
Entity62("stripe_transactions")
|
|
5549
5594
|
], StripeTransaction);
|
|
5550
5595
|
|
|
5551
5596
|
// src/entities/wallet.entity.ts
|
|
5552
|
-
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";
|
|
5553
5598
|
|
|
5554
5599
|
// src/entities/wallet-transaction.entity.ts
|
|
5555
|
-
import { Entity as
|
|
5600
|
+
import { Entity as Entity63, Column as Column64, Index as Index56, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
|
|
5556
5601
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5557
5602
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5558
5603
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5569,46 +5614,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5569
5614
|
var WalletTransaction = class extends BaseEntity {
|
|
5570
5615
|
};
|
|
5571
5616
|
__decorateClass([
|
|
5572
|
-
|
|
5573
|
-
|
|
5617
|
+
Column64({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5618
|
+
Index56()
|
|
5574
5619
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5575
5620
|
__decorateClass([
|
|
5576
|
-
|
|
5577
|
-
|
|
5621
|
+
ManyToOne59(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5622
|
+
JoinColumn59({ name: "wallet_id" })
|
|
5578
5623
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5579
5624
|
__decorateClass([
|
|
5580
|
-
|
|
5625
|
+
Column64({ name: "amount", type: "bigint", nullable: true })
|
|
5581
5626
|
], WalletTransaction.prototype, "amount", 2);
|
|
5582
5627
|
__decorateClass([
|
|
5583
|
-
|
|
5628
|
+
Column64({ name: "balance_before", type: "bigint", nullable: true })
|
|
5584
5629
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5585
5630
|
__decorateClass([
|
|
5586
|
-
|
|
5631
|
+
Column64({ name: "balance_after", type: "bigint", nullable: true })
|
|
5587
5632
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5588
5633
|
__decorateClass([
|
|
5589
|
-
|
|
5634
|
+
Column64({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5590
5635
|
], WalletTransaction.prototype, "type", 2);
|
|
5591
5636
|
__decorateClass([
|
|
5592
|
-
|
|
5637
|
+
Column64({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5593
5638
|
], WalletTransaction.prototype, "status", 2);
|
|
5594
5639
|
__decorateClass([
|
|
5595
|
-
|
|
5640
|
+
Column64({ name: "description", type: "text", nullable: true })
|
|
5596
5641
|
], WalletTransaction.prototype, "description", 2);
|
|
5597
5642
|
__decorateClass([
|
|
5598
|
-
|
|
5643
|
+
Column64({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5599
5644
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5600
5645
|
__decorateClass([
|
|
5601
|
-
|
|
5646
|
+
Column64({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5602
5647
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5603
5648
|
__decorateClass([
|
|
5604
|
-
|
|
5649
|
+
Column64({ name: "meta_data", type: "varchar", nullable: true })
|
|
5605
5650
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5606
5651
|
__decorateClass([
|
|
5607
|
-
|
|
5608
|
-
|
|
5652
|
+
Column64({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5653
|
+
Index56()
|
|
5609
5654
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5610
5655
|
WalletTransaction = __decorateClass([
|
|
5611
|
-
|
|
5656
|
+
Entity63("wallet_transactions")
|
|
5612
5657
|
], WalletTransaction);
|
|
5613
5658
|
|
|
5614
5659
|
// src/entities/wallet.entity.ts
|
|
@@ -5626,48 +5671,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5626
5671
|
var Wallet = class extends BaseEntity {
|
|
5627
5672
|
};
|
|
5628
5673
|
__decorateClass([
|
|
5629
|
-
|
|
5630
|
-
|
|
5674
|
+
Column65({ name: "user_id", type: "integer", nullable: true }),
|
|
5675
|
+
Index57()
|
|
5631
5676
|
], Wallet.prototype, "userId", 2);
|
|
5632
5677
|
__decorateClass([
|
|
5633
5678
|
OneToOne12(() => User, (user) => user.wallet),
|
|
5634
|
-
|
|
5679
|
+
JoinColumn60({ name: "user_id" })
|
|
5635
5680
|
], Wallet.prototype, "user", 2);
|
|
5636
5681
|
__decorateClass([
|
|
5637
|
-
|
|
5682
|
+
Column65({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5638
5683
|
], Wallet.prototype, "accountType", 2);
|
|
5639
5684
|
__decorateClass([
|
|
5640
|
-
|
|
5685
|
+
Column65({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5641
5686
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5642
5687
|
__decorateClass([
|
|
5643
|
-
|
|
5688
|
+
Column65({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5644
5689
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5645
5690
|
__decorateClass([
|
|
5646
|
-
|
|
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" })
|
|
5647
5692
|
], Wallet.prototype, "walletBalance", 2);
|
|
5648
5693
|
__decorateClass([
|
|
5649
|
-
|
|
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" })
|
|
5650
5695
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5651
5696
|
__decorateClass([
|
|
5652
|
-
|
|
5697
|
+
Column65({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5653
5698
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5654
5699
|
__decorateClass([
|
|
5655
|
-
|
|
5700
|
+
Column65({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5656
5701
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5657
5702
|
__decorateClass([
|
|
5658
|
-
|
|
5703
|
+
OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5659
5704
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5660
5705
|
Wallet = __decorateClass([
|
|
5661
|
-
|
|
5706
|
+
Entity64("wallets")
|
|
5662
5707
|
], Wallet);
|
|
5663
5708
|
|
|
5664
5709
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5665
5710
|
import {
|
|
5666
|
-
Entity as
|
|
5667
|
-
Column as
|
|
5668
|
-
ManyToOne as
|
|
5669
|
-
Index as
|
|
5670
|
-
JoinColumn as
|
|
5711
|
+
Entity as Entity65,
|
|
5712
|
+
Column as Column66,
|
|
5713
|
+
ManyToOne as ManyToOne60,
|
|
5714
|
+
Index as Index58,
|
|
5715
|
+
JoinColumn as JoinColumn61
|
|
5671
5716
|
} from "typeorm";
|
|
5672
5717
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5673
5718
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -5678,23 +5723,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5678
5723
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5679
5724
|
};
|
|
5680
5725
|
__decorateClass([
|
|
5681
|
-
|
|
5682
|
-
|
|
5726
|
+
Column66({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5727
|
+
Index58()
|
|
5683
5728
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5684
5729
|
__decorateClass([
|
|
5685
|
-
|
|
5686
|
-
|
|
5730
|
+
ManyToOne60(() => User, (user) => user.freelancerAssessmentRequests),
|
|
5731
|
+
JoinColumn61({ name: "freelancer_id" })
|
|
5687
5732
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5688
5733
|
__decorateClass([
|
|
5689
|
-
|
|
5690
|
-
|
|
5734
|
+
Column66({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5735
|
+
Index58()
|
|
5691
5736
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5692
5737
|
__decorateClass([
|
|
5693
|
-
|
|
5694
|
-
|
|
5738
|
+
ManyToOne60(() => User, (user) => user.assessmentRequests),
|
|
5739
|
+
JoinColumn61({ name: "approved_by_id" })
|
|
5695
5740
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5696
5741
|
__decorateClass([
|
|
5697
|
-
|
|
5742
|
+
Column66({
|
|
5698
5743
|
name: "status",
|
|
5699
5744
|
type: "enum",
|
|
5700
5745
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5702,10 +5747,10 @@ __decorateClass([
|
|
|
5702
5747
|
})
|
|
5703
5748
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5704
5749
|
__decorateClass([
|
|
5705
|
-
|
|
5750
|
+
Column66({ name: "assessment_link", type: "text", nullable: true })
|
|
5706
5751
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5707
5752
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5708
|
-
|
|
5753
|
+
Entity65({ name: "freelancer_assessment_requests" })
|
|
5709
5754
|
], FreelancerAssessmentRequest);
|
|
5710
5755
|
|
|
5711
5756
|
// src/entities/user.entity.ts
|
|
@@ -5734,51 +5779,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5734
5779
|
var User = class extends BaseEntity {
|
|
5735
5780
|
};
|
|
5736
5781
|
__decorateClass([
|
|
5737
|
-
|
|
5782
|
+
Column67({ name: "unique_id", type: "varchar", unique: true })
|
|
5738
5783
|
], User.prototype, "uniqueId", 2);
|
|
5739
5784
|
__decorateClass([
|
|
5740
|
-
|
|
5741
|
-
|
|
5785
|
+
Column67({ name: "parent_id", type: "integer", nullable: true }),
|
|
5786
|
+
Index59()
|
|
5742
5787
|
], User.prototype, "parentId", 2);
|
|
5743
5788
|
__decorateClass([
|
|
5744
|
-
|
|
5745
|
-
|
|
5789
|
+
ManyToOne61(() => User, (user) => user.children, { nullable: true }),
|
|
5790
|
+
JoinColumn62({ name: "parent_id" })
|
|
5746
5791
|
], User.prototype, "parent", 2);
|
|
5747
5792
|
__decorateClass([
|
|
5748
|
-
|
|
5793
|
+
OneToMany24(() => User, (user) => user.parent)
|
|
5749
5794
|
], User.prototype, "children", 2);
|
|
5750
5795
|
__decorateClass([
|
|
5751
|
-
|
|
5796
|
+
Column67({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5752
5797
|
], User.prototype, "username", 2);
|
|
5753
5798
|
__decorateClass([
|
|
5754
|
-
|
|
5799
|
+
Column67({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5755
5800
|
], User.prototype, "firstName", 2);
|
|
5756
5801
|
__decorateClass([
|
|
5757
|
-
|
|
5802
|
+
Column67({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5758
5803
|
], User.prototype, "lastName", 2);
|
|
5759
5804
|
__decorateClass([
|
|
5760
|
-
|
|
5805
|
+
Column67({ name: "date_of_birth", type: "date", nullable: true })
|
|
5761
5806
|
], User.prototype, "dateOfBirth", 2);
|
|
5762
5807
|
__decorateClass([
|
|
5763
|
-
|
|
5808
|
+
Column67({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5764
5809
|
], User.prototype, "gender", 2);
|
|
5765
5810
|
__decorateClass([
|
|
5766
|
-
|
|
5811
|
+
Column67({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5767
5812
|
], User.prototype, "profilePictureUrl", 2);
|
|
5768
5813
|
__decorateClass([
|
|
5769
|
-
|
|
5814
|
+
Column67({ name: "email", type: "varchar", unique: true })
|
|
5770
5815
|
], User.prototype, "email", 2);
|
|
5771
5816
|
__decorateClass([
|
|
5772
|
-
|
|
5817
|
+
Column67({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5773
5818
|
], User.prototype, "mobileCode", 2);
|
|
5774
5819
|
__decorateClass([
|
|
5775
|
-
|
|
5820
|
+
Column67({ name: "mobile", type: "varchar", nullable: true })
|
|
5776
5821
|
], User.prototype, "mobile", 2);
|
|
5777
5822
|
__decorateClass([
|
|
5778
|
-
|
|
5823
|
+
Column67({ name: "password", type: "varchar", nullable: true })
|
|
5779
5824
|
], User.prototype, "password", 2);
|
|
5780
5825
|
__decorateClass([
|
|
5781
|
-
|
|
5826
|
+
Column67({
|
|
5782
5827
|
name: "account_type",
|
|
5783
5828
|
type: "enum",
|
|
5784
5829
|
enum: AccountType2,
|
|
@@ -5786,7 +5831,7 @@ __decorateClass([
|
|
|
5786
5831
|
})
|
|
5787
5832
|
], User.prototype, "accountType", 2);
|
|
5788
5833
|
__decorateClass([
|
|
5789
|
-
|
|
5834
|
+
Column67({
|
|
5790
5835
|
name: "account_status",
|
|
5791
5836
|
type: "enum",
|
|
5792
5837
|
enum: AccountStatus,
|
|
@@ -5794,42 +5839,42 @@ __decorateClass([
|
|
|
5794
5839
|
})
|
|
5795
5840
|
], User.prototype, "accountStatus", 2);
|
|
5796
5841
|
__decorateClass([
|
|
5797
|
-
|
|
5842
|
+
Column67({ name: "is_email_verified", type: "boolean", default: false })
|
|
5798
5843
|
], User.prototype, "isEmailVerified", 2);
|
|
5799
5844
|
__decorateClass([
|
|
5800
|
-
|
|
5845
|
+
Column67({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5801
5846
|
], User.prototype, "isMobileVerified", 2);
|
|
5802
5847
|
__decorateClass([
|
|
5803
|
-
|
|
5848
|
+
Column67({ name: "is_social", type: "boolean", default: false })
|
|
5804
5849
|
], User.prototype, "isSocial", 2);
|
|
5805
5850
|
__decorateClass([
|
|
5806
|
-
|
|
5851
|
+
Column67({
|
|
5807
5852
|
name: "last_login_at",
|
|
5808
5853
|
type: "timestamp with time zone",
|
|
5809
5854
|
nullable: true
|
|
5810
5855
|
})
|
|
5811
5856
|
], User.prototype, "lastLoginAt", 2);
|
|
5812
5857
|
__decorateClass([
|
|
5813
|
-
|
|
5858
|
+
Column67({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5814
5859
|
], User.prototype, "lastLoginIp", 2);
|
|
5815
5860
|
__decorateClass([
|
|
5816
|
-
|
|
5861
|
+
Column67({ name: "reset_token", type: "varchar", nullable: true })
|
|
5817
5862
|
], User.prototype, "resetToken", 2);
|
|
5818
5863
|
__decorateClass([
|
|
5819
|
-
|
|
5864
|
+
Column67({
|
|
5820
5865
|
name: "reset_token_expire_at",
|
|
5821
5866
|
type: "timestamp with time zone",
|
|
5822
5867
|
nullable: true
|
|
5823
5868
|
})
|
|
5824
5869
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5825
5870
|
__decorateClass([
|
|
5826
|
-
|
|
5871
|
+
Column67({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5827
5872
|
], User.prototype, "setPasswordToken", 2);
|
|
5828
5873
|
__decorateClass([
|
|
5829
|
-
|
|
5874
|
+
OneToMany24(() => RefreshToken, (token) => token.user)
|
|
5830
5875
|
], User.prototype, "refreshTokens", 2);
|
|
5831
5876
|
__decorateClass([
|
|
5832
|
-
|
|
5877
|
+
Column67({
|
|
5833
5878
|
name: "provider",
|
|
5834
5879
|
type: "enum",
|
|
5835
5880
|
enum: Provider,
|
|
@@ -5838,43 +5883,43 @@ __decorateClass([
|
|
|
5838
5883
|
})
|
|
5839
5884
|
], User.prototype, "provider", 2);
|
|
5840
5885
|
__decorateClass([
|
|
5841
|
-
|
|
5886
|
+
Column67({ name: "provider_token", type: "varchar", nullable: true })
|
|
5842
5887
|
], User.prototype, "providerToken", 2);
|
|
5843
5888
|
__decorateClass([
|
|
5844
|
-
|
|
5889
|
+
Column67({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5845
5890
|
], User.prototype, "linkedInId", 2);
|
|
5846
5891
|
__decorateClass([
|
|
5847
|
-
|
|
5892
|
+
Column67({ name: "google_id", type: "varchar", nullable: true })
|
|
5848
5893
|
], User.prototype, "googleId", 2);
|
|
5849
5894
|
__decorateClass([
|
|
5850
|
-
|
|
5895
|
+
Column67({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5851
5896
|
], User.prototype, "gitLabsId", 2);
|
|
5852
5897
|
__decorateClass([
|
|
5853
|
-
|
|
5898
|
+
Column67({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5854
5899
|
], User.prototype, "onBoardedBy", 2);
|
|
5855
5900
|
__decorateClass([
|
|
5856
|
-
|
|
5901
|
+
OneToMany24(() => Otp, (otp) => otp.user)
|
|
5857
5902
|
], User.prototype, "otps", 2);
|
|
5858
5903
|
__decorateClass([
|
|
5859
|
-
|
|
5904
|
+
OneToMany24(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5860
5905
|
], User.prototype, "senseloafLogs", 2);
|
|
5861
5906
|
__decorateClass([
|
|
5862
5907
|
OneToOne13(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5863
5908
|
], User.prototype, "companyProfile", 2);
|
|
5864
5909
|
__decorateClass([
|
|
5865
|
-
|
|
5910
|
+
OneToMany24(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5866
5911
|
], User.prototype, "companySkills", 2);
|
|
5867
5912
|
__decorateClass([
|
|
5868
|
-
|
|
5913
|
+
OneToMany24(
|
|
5869
5914
|
() => CompanyMemberRole,
|
|
5870
5915
|
(companyMemberRole) => companyMemberRole.user
|
|
5871
5916
|
)
|
|
5872
5917
|
], User.prototype, "companyMemberRoles", 2);
|
|
5873
5918
|
__decorateClass([
|
|
5874
|
-
|
|
5919
|
+
OneToMany24(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5875
5920
|
], User.prototype, "companyAiInterview", 2);
|
|
5876
5921
|
__decorateClass([
|
|
5877
|
-
|
|
5922
|
+
OneToMany24(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5878
5923
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5879
5924
|
__decorateClass([
|
|
5880
5925
|
OneToOne13(
|
|
@@ -5886,61 +5931,61 @@ __decorateClass([
|
|
|
5886
5931
|
OneToOne13(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5887
5932
|
], User.prototype, "freelancerResume", 2);
|
|
5888
5933
|
__decorateClass([
|
|
5889
|
-
|
|
5934
|
+
OneToMany24(
|
|
5890
5935
|
() => FreelancerAssessmentRequest,
|
|
5891
5936
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
5892
5937
|
)
|
|
5893
5938
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
5894
5939
|
__decorateClass([
|
|
5895
|
-
|
|
5940
|
+
OneToMany24(
|
|
5896
5941
|
() => FreelancerAssessmentRequest,
|
|
5897
5942
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
5898
5943
|
)
|
|
5899
5944
|
], User.prototype, "assessmentRequests", 2);
|
|
5900
5945
|
__decorateClass([
|
|
5901
|
-
|
|
5946
|
+
OneToMany24(
|
|
5902
5947
|
() => FreelancerAssessment,
|
|
5903
5948
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5904
5949
|
)
|
|
5905
5950
|
], User.prototype, "assessments", 2);
|
|
5906
5951
|
__decorateClass([
|
|
5907
|
-
|
|
5952
|
+
OneToMany24(
|
|
5908
5953
|
() => AssessmentAnswer,
|
|
5909
5954
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5910
5955
|
)
|
|
5911
5956
|
], User.prototype, "assessmentAnswers", 2);
|
|
5912
5957
|
__decorateClass([
|
|
5913
|
-
|
|
5958
|
+
OneToMany24(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5914
5959
|
], User.prototype, "freelancerSkills", 2);
|
|
5915
5960
|
__decorateClass([
|
|
5916
|
-
|
|
5961
|
+
OneToMany24(
|
|
5917
5962
|
() => FreelancerExperience,
|
|
5918
5963
|
(freelancerExperience) => freelancerExperience.user
|
|
5919
5964
|
)
|
|
5920
5965
|
], User.prototype, "freelancerExperience", 2);
|
|
5921
5966
|
__decorateClass([
|
|
5922
|
-
|
|
5967
|
+
OneToMany24(
|
|
5923
5968
|
() => FreelancerEducation,
|
|
5924
5969
|
(freelancerEducation) => freelancerEducation.user
|
|
5925
5970
|
)
|
|
5926
5971
|
], User.prototype, "freelancerEducation", 2);
|
|
5927
5972
|
__decorateClass([
|
|
5928
|
-
|
|
5973
|
+
OneToMany24(
|
|
5929
5974
|
() => FreelancerProject,
|
|
5930
5975
|
(freelancerProject) => freelancerProject.user
|
|
5931
5976
|
)
|
|
5932
5977
|
], User.prototype, "freelancerProject", 2);
|
|
5933
5978
|
__decorateClass([
|
|
5934
|
-
|
|
5979
|
+
OneToMany24(
|
|
5935
5980
|
() => FreelancerCaseStudy,
|
|
5936
5981
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5937
5982
|
)
|
|
5938
5983
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5939
5984
|
__decorateClass([
|
|
5940
|
-
|
|
5985
|
+
OneToMany24(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5941
5986
|
], User.prototype, "freelancerTool", 2);
|
|
5942
5987
|
__decorateClass([
|
|
5943
|
-
|
|
5988
|
+
OneToMany24(
|
|
5944
5989
|
() => FreelancerFramework,
|
|
5945
5990
|
(freelancerFramework) => freelancerFramework.user
|
|
5946
5991
|
)
|
|
@@ -5952,134 +5997,134 @@ __decorateClass([
|
|
|
5952
5997
|
)
|
|
5953
5998
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5954
5999
|
__decorateClass([
|
|
5955
|
-
|
|
6000
|
+
OneToMany24(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5956
6001
|
], User.prototype, "freelancerMcq", 2);
|
|
5957
6002
|
__decorateClass([
|
|
5958
|
-
|
|
6003
|
+
OneToMany24(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5959
6004
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5960
6005
|
__decorateClass([
|
|
5961
|
-
|
|
6006
|
+
OneToMany24(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5962
6007
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5963
6008
|
__decorateClass([
|
|
5964
|
-
|
|
6009
|
+
OneToMany24(
|
|
5965
6010
|
() => F2fInterviewRescheduleRequest,
|
|
5966
6011
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5967
6012
|
)
|
|
5968
6013
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5969
6014
|
__decorateClass([
|
|
5970
|
-
|
|
6015
|
+
OneToMany24(
|
|
5971
6016
|
() => AiInterviewRescheduleRequest,
|
|
5972
6017
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
5973
6018
|
)
|
|
5974
6019
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
5975
6020
|
__decorateClass([
|
|
5976
|
-
|
|
6021
|
+
OneToMany24(
|
|
5977
6022
|
() => AiInterviewRescheduleRequest,
|
|
5978
6023
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
5979
6024
|
)
|
|
5980
6025
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
5981
6026
|
__decorateClass([
|
|
5982
|
-
|
|
6027
|
+
OneToMany24(() => Job, (job) => job.user)
|
|
5983
6028
|
], User.prototype, "jobs", 2);
|
|
5984
6029
|
__decorateClass([
|
|
5985
|
-
|
|
6030
|
+
OneToMany24(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5986
6031
|
], User.prototype, "jobApplications", 2);
|
|
5987
6032
|
__decorateClass([
|
|
5988
|
-
|
|
6033
|
+
OneToMany24(() => Interview, (interview) => interview.user)
|
|
5989
6034
|
], User.prototype, "interviews", 2);
|
|
5990
6035
|
__decorateClass([
|
|
5991
|
-
|
|
6036
|
+
OneToMany24(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5992
6037
|
], User.prototype, "bankDetail", 2);
|
|
5993
6038
|
__decorateClass([
|
|
5994
|
-
|
|
6039
|
+
OneToMany24(
|
|
5995
6040
|
() => SystemPreference,
|
|
5996
6041
|
(systemPreference) => systemPreference.user
|
|
5997
6042
|
)
|
|
5998
6043
|
], User.prototype, "systemPreference", 2);
|
|
5999
6044
|
__decorateClass([
|
|
6000
|
-
|
|
6045
|
+
OneToMany24(() => Rating, (rating) => rating.reviewer)
|
|
6001
6046
|
], User.prototype, "givenRatings", 2);
|
|
6002
6047
|
__decorateClass([
|
|
6003
|
-
|
|
6048
|
+
OneToMany24(() => Rating, (rating) => rating.reviewee)
|
|
6004
6049
|
], User.prototype, "receivedRatings", 2);
|
|
6005
6050
|
__decorateClass([
|
|
6006
|
-
|
|
6051
|
+
OneToMany24(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6007
6052
|
], User.prototype, "adminUserRoles", 2);
|
|
6008
6053
|
__decorateClass([
|
|
6009
|
-
|
|
6054
|
+
OneToMany24(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6010
6055
|
cascade: true
|
|
6011
6056
|
})
|
|
6012
6057
|
], User.prototype, "clientContractSummaries", 2);
|
|
6013
6058
|
__decorateClass([
|
|
6014
|
-
|
|
6059
|
+
OneToMany24(() => Contract, (contract) => contract.client)
|
|
6015
6060
|
], User.prototype, "clientContracts", 2);
|
|
6016
6061
|
__decorateClass([
|
|
6017
|
-
|
|
6062
|
+
OneToMany24(() => Hiring, (hiring) => hiring.client)
|
|
6018
6063
|
], User.prototype, "clientHirings", 2);
|
|
6019
6064
|
__decorateClass([
|
|
6020
|
-
|
|
6065
|
+
OneToMany24(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6021
6066
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6022
6067
|
__decorateClass([
|
|
6023
|
-
|
|
6068
|
+
OneToMany24(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6024
6069
|
cascade: true
|
|
6025
6070
|
})
|
|
6026
6071
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6027
6072
|
__decorateClass([
|
|
6028
|
-
|
|
6073
|
+
OneToMany24(() => Contract, (contract) => contract.freelancer)
|
|
6029
6074
|
], User.prototype, "freelancerContracts", 2);
|
|
6030
6075
|
__decorateClass([
|
|
6031
|
-
|
|
6076
|
+
OneToMany24(() => Hiring, (hiring) => hiring.freelancer)
|
|
6032
6077
|
], User.prototype, "freelancerHirings", 2);
|
|
6033
6078
|
__decorateClass([
|
|
6034
|
-
|
|
6079
|
+
OneToMany24(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6035
6080
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6036
6081
|
__decorateClass([
|
|
6037
6082
|
OneToOne13(() => Signature, (signature) => signature.user)
|
|
6038
6083
|
], User.prototype, "signatures", 2);
|
|
6039
6084
|
__decorateClass([
|
|
6040
|
-
|
|
6085
|
+
OneToMany24(() => Timesheet, (timesheet) => timesheet.client)
|
|
6041
6086
|
], User.prototype, "clientTimesheets", 2);
|
|
6042
6087
|
__decorateClass([
|
|
6043
|
-
|
|
6088
|
+
OneToMany24(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6044
6089
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6045
6090
|
__decorateClass([
|
|
6046
|
-
|
|
6091
|
+
OneToMany24(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6047
6092
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6048
6093
|
__decorateClass([
|
|
6049
|
-
|
|
6094
|
+
OneToMany24(() => Invoice, (invoice) => invoice.client)
|
|
6050
6095
|
], User.prototype, "clientInvoice", 2);
|
|
6051
6096
|
__decorateClass([
|
|
6052
|
-
|
|
6097
|
+
OneToMany24(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6053
6098
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6054
6099
|
__decorateClass([
|
|
6055
|
-
|
|
6100
|
+
OneToMany24(() => Invoice, (invoice) => invoice.freelancer)
|
|
6056
6101
|
], User.prototype, "freelancerInvoice", 2);
|
|
6057
6102
|
__decorateClass([
|
|
6058
|
-
|
|
6103
|
+
OneToMany24(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6059
6104
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6060
6105
|
__decorateClass([
|
|
6061
|
-
|
|
6106
|
+
OneToMany24(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6062
6107
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6063
6108
|
__decorateClass([
|
|
6064
|
-
|
|
6109
|
+
OneToMany24(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6065
6110
|
], User.prototype, "initiatedDisputes", 2);
|
|
6066
6111
|
__decorateClass([
|
|
6067
|
-
|
|
6112
|
+
OneToMany24(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6068
6113
|
], User.prototype, "respondentDisputes", 2);
|
|
6069
6114
|
__decorateClass([
|
|
6070
6115
|
OneToOne13(() => Wallet, (wallet) => wallet.user)
|
|
6071
6116
|
], User.prototype, "wallet", 2);
|
|
6072
6117
|
__decorateClass([
|
|
6073
|
-
|
|
6118
|
+
OneToMany24(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6074
6119
|
], User.prototype, "stripeTransactions", 2);
|
|
6075
6120
|
__decorateClass([
|
|
6076
|
-
|
|
6121
|
+
OneToMany24(() => Dispute, (dispute) => dispute.client)
|
|
6077
6122
|
], User.prototype, "clientDisputes", 2);
|
|
6078
6123
|
__decorateClass([
|
|
6079
|
-
|
|
6124
|
+
OneToMany24(() => Dispute, (dispute) => dispute.freelancer)
|
|
6080
6125
|
], User.prototype, "freelancerDisputes", 2);
|
|
6081
6126
|
User = __decorateClass([
|
|
6082
|
-
|
|
6127
|
+
Entity66("users")
|
|
6083
6128
|
], User);
|
|
6084
6129
|
|
|
6085
6130
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -6906,6 +6951,11 @@ var StepCompletedEnumV22 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
|
6906
6951
|
StepCompletedEnumV23["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
6907
6952
|
return StepCompletedEnumV23;
|
|
6908
6953
|
})(StepCompletedEnumV22 || {});
|
|
6954
|
+
var BillingCycleEnumV2 = /* @__PURE__ */ ((BillingCycleEnumV23) => {
|
|
6955
|
+
BillingCycleEnumV23["WEEKLY"] = "WEEKLY";
|
|
6956
|
+
BillingCycleEnumV23["DELIVERABLE"] = "DELIVERABLE";
|
|
6957
|
+
return BillingCycleEnumV23;
|
|
6958
|
+
})(BillingCycleEnumV2 || {});
|
|
6909
6959
|
var JobLocationDto2 = class {
|
|
6910
6960
|
};
|
|
6911
6961
|
__decorateClass([
|
|
@@ -7000,6 +7050,12 @@ __decorateClass([
|
|
|
7000
7050
|
).join(", ")}`
|
|
7001
7051
|
})
|
|
7002
7052
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7053
|
+
__decorateClass([
|
|
7054
|
+
IsOptional23(),
|
|
7055
|
+
IsEnum18(BillingCycleEnumV2, {
|
|
7056
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV2).join(", ")}`
|
|
7057
|
+
})
|
|
7058
|
+
], JobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
7003
7059
|
__decorateClass([
|
|
7004
7060
|
ValidateIf5((o) => !o.isDraft),
|
|
7005
7061
|
IsString24({ message: "Currency must be a string" })
|
|
@@ -9462,6 +9518,11 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9462
9518
|
AdminStepCompletedEnumV22["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
9463
9519
|
return AdminStepCompletedEnumV22;
|
|
9464
9520
|
})(AdminStepCompletedEnumV2 || {});
|
|
9521
|
+
var BillingCycleEnumV22 = /* @__PURE__ */ ((BillingCycleEnumV23) => {
|
|
9522
|
+
BillingCycleEnumV23["WEEKLY"] = "WEEKLY";
|
|
9523
|
+
BillingCycleEnumV23["DELIVERABLE"] = "DELIVERABLE";
|
|
9524
|
+
return BillingCycleEnumV23;
|
|
9525
|
+
})(BillingCycleEnumV22 || {});
|
|
9465
9526
|
var JobLocationAdminDto = class {
|
|
9466
9527
|
};
|
|
9467
9528
|
__decorateClass([
|
|
@@ -9526,6 +9587,12 @@ __decorateClass([
|
|
|
9526
9587
|
).join(", ")}`
|
|
9527
9588
|
})
|
|
9528
9589
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9590
|
+
__decorateClass([
|
|
9591
|
+
IsOptional53(),
|
|
9592
|
+
IsEnum36(BillingCycleEnumV22, {
|
|
9593
|
+
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV22).join(", ")}`
|
|
9594
|
+
})
|
|
9595
|
+
], AdminJobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
9529
9596
|
__decorateClass([
|
|
9530
9597
|
IsOptional53(),
|
|
9531
9598
|
IsNumber16({}, { message: "Expected salary (from) must be a number" }),
|
|
@@ -12547,11 +12614,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12547
12614
|
};
|
|
12548
12615
|
|
|
12549
12616
|
// src/entities/sequence-generator.entity.ts
|
|
12550
|
-
import { Entity as
|
|
12617
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
12551
12618
|
var SequenceGenerator = class extends BaseEntity {
|
|
12552
12619
|
};
|
|
12553
12620
|
__decorateClass([
|
|
12554
|
-
|
|
12621
|
+
Column68({
|
|
12555
12622
|
name: "module",
|
|
12556
12623
|
type: "varchar",
|
|
12557
12624
|
length: 50,
|
|
@@ -12560,7 +12627,7 @@ __decorateClass([
|
|
|
12560
12627
|
})
|
|
12561
12628
|
], SequenceGenerator.prototype, "module", 2);
|
|
12562
12629
|
__decorateClass([
|
|
12563
|
-
|
|
12630
|
+
Column68({
|
|
12564
12631
|
name: "prefix",
|
|
12565
12632
|
type: "varchar",
|
|
12566
12633
|
length: 10,
|
|
@@ -12569,7 +12636,7 @@ __decorateClass([
|
|
|
12569
12636
|
})
|
|
12570
12637
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12571
12638
|
__decorateClass([
|
|
12572
|
-
|
|
12639
|
+
Column68({
|
|
12573
12640
|
name: "last_sequence",
|
|
12574
12641
|
type: "int",
|
|
12575
12642
|
nullable: false,
|
|
@@ -12577,7 +12644,7 @@ __decorateClass([
|
|
|
12577
12644
|
})
|
|
12578
12645
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12579
12646
|
__decorateClass([
|
|
12580
|
-
|
|
12647
|
+
Column68({
|
|
12581
12648
|
name: "year",
|
|
12582
12649
|
type: "int",
|
|
12583
12650
|
nullable: true,
|
|
@@ -12585,11 +12652,11 @@ __decorateClass([
|
|
|
12585
12652
|
})
|
|
12586
12653
|
], SequenceGenerator.prototype, "year", 2);
|
|
12587
12654
|
SequenceGenerator = __decorateClass([
|
|
12588
|
-
|
|
12655
|
+
Entity67("sequence_generators")
|
|
12589
12656
|
], SequenceGenerator);
|
|
12590
12657
|
|
|
12591
12658
|
// src/entities/question.entity.ts
|
|
12592
|
-
import { Entity as
|
|
12659
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
12593
12660
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12594
12661
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12595
12662
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12598,16 +12665,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12598
12665
|
var Question = class extends BaseEntity {
|
|
12599
12666
|
};
|
|
12600
12667
|
__decorateClass([
|
|
12601
|
-
|
|
12668
|
+
Column69({ name: "question", type: "varchar" })
|
|
12602
12669
|
], Question.prototype, "question", 2);
|
|
12603
12670
|
__decorateClass([
|
|
12604
|
-
|
|
12671
|
+
Column69({ name: "hint", type: "varchar", nullable: true })
|
|
12605
12672
|
], Question.prototype, "hint", 2);
|
|
12606
12673
|
__decorateClass([
|
|
12607
|
-
|
|
12674
|
+
Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12608
12675
|
], Question.prototype, "slug", 2);
|
|
12609
12676
|
__decorateClass([
|
|
12610
|
-
|
|
12677
|
+
Column69({
|
|
12611
12678
|
name: "question_for",
|
|
12612
12679
|
type: "enum",
|
|
12613
12680
|
enum: QuestionFor,
|
|
@@ -12615,49 +12682,49 @@ __decorateClass([
|
|
|
12615
12682
|
})
|
|
12616
12683
|
], Question.prototype, "questionFor", 2);
|
|
12617
12684
|
__decorateClass([
|
|
12618
|
-
|
|
12685
|
+
Column69({ name: "type", type: "varchar", nullable: true })
|
|
12619
12686
|
], Question.prototype, "type", 2);
|
|
12620
12687
|
__decorateClass([
|
|
12621
|
-
|
|
12688
|
+
Column69({ name: "options", type: "jsonb", nullable: true })
|
|
12622
12689
|
], Question.prototype, "options", 2);
|
|
12623
12690
|
__decorateClass([
|
|
12624
|
-
|
|
12691
|
+
Column69({ name: "is_active", type: "boolean", default: false })
|
|
12625
12692
|
], Question.prototype, "isActive", 2);
|
|
12626
12693
|
Question = __decorateClass([
|
|
12627
|
-
|
|
12694
|
+
Entity68("questions")
|
|
12628
12695
|
], Question);
|
|
12629
12696
|
|
|
12630
12697
|
// src/entities/skill.entity.ts
|
|
12631
|
-
import { Entity as
|
|
12698
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
12632
12699
|
var Skill = class extends BaseEntity {
|
|
12633
12700
|
};
|
|
12634
12701
|
__decorateClass([
|
|
12635
|
-
|
|
12702
|
+
Column70({ name: "name", type: "varchar", nullable: true })
|
|
12636
12703
|
], Skill.prototype, "name", 2);
|
|
12637
12704
|
__decorateClass([
|
|
12638
|
-
|
|
12705
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12639
12706
|
], Skill.prototype, "slug", 2);
|
|
12640
12707
|
__decorateClass([
|
|
12641
|
-
|
|
12708
|
+
Column70({ name: "is_active", type: "boolean", default: false })
|
|
12642
12709
|
], Skill.prototype, "isActive", 2);
|
|
12643
12710
|
Skill = __decorateClass([
|
|
12644
|
-
|
|
12711
|
+
Entity69("skills")
|
|
12645
12712
|
], Skill);
|
|
12646
12713
|
|
|
12647
12714
|
// src/entities/skill-catalog.entity.ts
|
|
12648
12715
|
import {
|
|
12649
|
-
Entity as
|
|
12650
|
-
Column as
|
|
12651
|
-
Index as
|
|
12716
|
+
Entity as Entity70,
|
|
12717
|
+
Column as Column71,
|
|
12718
|
+
Index as Index60
|
|
12652
12719
|
} from "typeorm";
|
|
12653
12720
|
var SkillCatalog = class extends BaseEntity {
|
|
12654
12721
|
};
|
|
12655
12722
|
__decorateClass([
|
|
12656
|
-
|
|
12657
|
-
|
|
12723
|
+
Column71({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
12724
|
+
Index60()
|
|
12658
12725
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12659
12726
|
__decorateClass([
|
|
12660
|
-
|
|
12727
|
+
Column71({
|
|
12661
12728
|
name: "aliases",
|
|
12662
12729
|
type: "text",
|
|
12663
12730
|
array: true,
|
|
@@ -12665,20 +12732,20 @@ __decorateClass([
|
|
|
12665
12732
|
})
|
|
12666
12733
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12667
12734
|
__decorateClass([
|
|
12668
|
-
|
|
12735
|
+
Column71({
|
|
12669
12736
|
name: "variations",
|
|
12670
12737
|
type: "jsonb",
|
|
12671
12738
|
default: "{}"
|
|
12672
12739
|
})
|
|
12673
12740
|
], SkillCatalog.prototype, "variations", 2);
|
|
12674
12741
|
__decorateClass([
|
|
12675
|
-
|
|
12742
|
+
Column71({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12676
12743
|
], SkillCatalog.prototype, "category", 2);
|
|
12677
12744
|
__decorateClass([
|
|
12678
|
-
|
|
12745
|
+
Column71({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12679
12746
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12680
12747
|
__decorateClass([
|
|
12681
|
-
|
|
12748
|
+
Column71({
|
|
12682
12749
|
name: "related_skills",
|
|
12683
12750
|
type: "text",
|
|
12684
12751
|
array: true,
|
|
@@ -12686,113 +12753,113 @@ __decorateClass([
|
|
|
12686
12753
|
})
|
|
12687
12754
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12688
12755
|
__decorateClass([
|
|
12689
|
-
|
|
12690
|
-
|
|
12756
|
+
Column71({ name: "usage_count", type: "integer", default: 0 }),
|
|
12757
|
+
Index60()
|
|
12691
12758
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12692
12759
|
__decorateClass([
|
|
12693
|
-
|
|
12760
|
+
Column71({ name: "is_verified", type: "boolean", default: false })
|
|
12694
12761
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12695
12762
|
__decorateClass([
|
|
12696
|
-
|
|
12763
|
+
Column71({ name: "first_seen_date", type: "date" })
|
|
12697
12764
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
12698
12765
|
__decorateClass([
|
|
12699
|
-
|
|
12766
|
+
Column71({ name: "last_updated_date", type: "date" })
|
|
12700
12767
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
12701
12768
|
__decorateClass([
|
|
12702
|
-
|
|
12769
|
+
Column71({
|
|
12703
12770
|
name: "search_vector",
|
|
12704
12771
|
type: "tsvector",
|
|
12705
12772
|
nullable: true
|
|
12706
12773
|
})
|
|
12707
12774
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
12708
12775
|
SkillCatalog = __decorateClass([
|
|
12709
|
-
|
|
12776
|
+
Entity70("skill_catalogs")
|
|
12710
12777
|
], SkillCatalog);
|
|
12711
12778
|
|
|
12712
12779
|
// src/entities/job-role.entity.ts
|
|
12713
|
-
import { Entity as
|
|
12780
|
+
import { Entity as Entity71, Column as Column72 } from "typeorm";
|
|
12714
12781
|
var JobRoles = class extends BaseEntity {
|
|
12715
12782
|
};
|
|
12716
12783
|
__decorateClass([
|
|
12717
|
-
|
|
12784
|
+
Column72({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12718
12785
|
], JobRoles.prototype, "slug", 2);
|
|
12719
12786
|
__decorateClass([
|
|
12720
|
-
|
|
12787
|
+
Column72({ name: "name", type: "varchar", nullable: true })
|
|
12721
12788
|
], JobRoles.prototype, "name", 2);
|
|
12722
12789
|
__decorateClass([
|
|
12723
|
-
|
|
12790
|
+
Column72({ name: "is_active", type: "boolean", default: true })
|
|
12724
12791
|
], JobRoles.prototype, "isActive", 2);
|
|
12725
12792
|
JobRoles = __decorateClass([
|
|
12726
|
-
|
|
12793
|
+
Entity71("job_roles")
|
|
12727
12794
|
], JobRoles);
|
|
12728
12795
|
|
|
12729
12796
|
// src/entities/plan.entity.ts
|
|
12730
|
-
import { Entity as
|
|
12797
|
+
import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
12731
12798
|
|
|
12732
12799
|
// src/entities/feature.entity.ts
|
|
12733
|
-
import { Entity as
|
|
12800
|
+
import { Entity as Entity72, Column as Column73, ManyToMany as ManyToMany2 } from "typeorm";
|
|
12734
12801
|
var Feature = class extends BaseEntity {
|
|
12735
12802
|
};
|
|
12736
12803
|
__decorateClass([
|
|
12737
|
-
|
|
12804
|
+
Column73({ name: "name", type: "varchar", unique: true })
|
|
12738
12805
|
], Feature.prototype, "name", 2);
|
|
12739
12806
|
__decorateClass([
|
|
12740
12807
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
12741
12808
|
], Feature.prototype, "plans", 2);
|
|
12742
12809
|
Feature = __decorateClass([
|
|
12743
|
-
|
|
12810
|
+
Entity72("features")
|
|
12744
12811
|
], Feature);
|
|
12745
12812
|
|
|
12746
12813
|
// src/entities/plan.entity.ts
|
|
12747
12814
|
var Plan = class extends BaseEntity {
|
|
12748
12815
|
};
|
|
12749
12816
|
__decorateClass([
|
|
12750
|
-
|
|
12817
|
+
Column74({ name: "name", type: "varchar", unique: true })
|
|
12751
12818
|
], Plan.prototype, "name", 2);
|
|
12752
12819
|
__decorateClass([
|
|
12753
|
-
|
|
12820
|
+
Column74({ name: "description", type: "varchar", nullable: true })
|
|
12754
12821
|
], Plan.prototype, "description", 2);
|
|
12755
12822
|
__decorateClass([
|
|
12756
|
-
|
|
12823
|
+
Column74({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
12757
12824
|
], Plan.prototype, "price", 2);
|
|
12758
12825
|
__decorateClass([
|
|
12759
|
-
|
|
12826
|
+
Column74({ name: "billing_period", type: "varchar" })
|
|
12760
12827
|
], Plan.prototype, "billingPeriod", 2);
|
|
12761
12828
|
__decorateClass([
|
|
12762
|
-
|
|
12829
|
+
Column74({ name: "is_current", type: "boolean", default: false })
|
|
12763
12830
|
], Plan.prototype, "isCurrent", 2);
|
|
12764
12831
|
__decorateClass([
|
|
12765
12832
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
12766
12833
|
JoinTable()
|
|
12767
12834
|
], Plan.prototype, "features", 2);
|
|
12768
12835
|
Plan = __decorateClass([
|
|
12769
|
-
|
|
12836
|
+
Entity73("plans")
|
|
12770
12837
|
], Plan);
|
|
12771
12838
|
|
|
12772
12839
|
// src/entities/cms.entity.ts
|
|
12773
|
-
import { Entity as
|
|
12840
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
12774
12841
|
var Cms = class extends BaseEntity {
|
|
12775
12842
|
};
|
|
12776
12843
|
__decorateClass([
|
|
12777
|
-
|
|
12844
|
+
Column75({ name: "title", type: "varchar", nullable: true })
|
|
12778
12845
|
], Cms.prototype, "title", 2);
|
|
12779
12846
|
__decorateClass([
|
|
12780
|
-
|
|
12847
|
+
Column75({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12781
12848
|
], Cms.prototype, "slug", 2);
|
|
12782
12849
|
__decorateClass([
|
|
12783
|
-
|
|
12850
|
+
Column75({ name: "content", type: "varchar", nullable: true })
|
|
12784
12851
|
], Cms.prototype, "content", 2);
|
|
12785
12852
|
__decorateClass([
|
|
12786
|
-
|
|
12853
|
+
Column75({ name: "is_active", type: "boolean", default: true })
|
|
12787
12854
|
], Cms.prototype, "isActive", 2);
|
|
12788
12855
|
Cms = __decorateClass([
|
|
12789
|
-
|
|
12856
|
+
Entity74("cms")
|
|
12790
12857
|
], Cms);
|
|
12791
12858
|
|
|
12792
12859
|
// src/entities/lead.entity.ts
|
|
12793
12860
|
import {
|
|
12794
|
-
Entity as
|
|
12795
|
-
Column as
|
|
12861
|
+
Entity as Entity75,
|
|
12862
|
+
Column as Column76
|
|
12796
12863
|
} from "typeorm";
|
|
12797
12864
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
12798
12865
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -12802,22 +12869,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
12802
12869
|
var Lead = class extends BaseEntity {
|
|
12803
12870
|
};
|
|
12804
12871
|
__decorateClass([
|
|
12805
|
-
|
|
12872
|
+
Column76({ name: "name", type: "varchar", nullable: true })
|
|
12806
12873
|
], Lead.prototype, "name", 2);
|
|
12807
12874
|
__decorateClass([
|
|
12808
|
-
|
|
12875
|
+
Column76({ name: "mobile_code", type: "varchar", nullable: true })
|
|
12809
12876
|
], Lead.prototype, "mobileCode", 2);
|
|
12810
12877
|
__decorateClass([
|
|
12811
|
-
|
|
12878
|
+
Column76({ name: "mobile", type: "varchar", nullable: true })
|
|
12812
12879
|
], Lead.prototype, "mobile", 2);
|
|
12813
12880
|
__decorateClass([
|
|
12814
|
-
|
|
12881
|
+
Column76({ name: "email", type: "varchar", nullable: true })
|
|
12815
12882
|
], Lead.prototype, "email", 2);
|
|
12816
12883
|
__decorateClass([
|
|
12817
|
-
|
|
12884
|
+
Column76({ name: "description", type: "varchar", nullable: true })
|
|
12818
12885
|
], Lead.prototype, "description", 2);
|
|
12819
12886
|
__decorateClass([
|
|
12820
|
-
|
|
12887
|
+
Column76({
|
|
12821
12888
|
name: "category",
|
|
12822
12889
|
type: "enum",
|
|
12823
12890
|
enum: CategoryEmum,
|
|
@@ -12825,7 +12892,7 @@ __decorateClass([
|
|
|
12825
12892
|
})
|
|
12826
12893
|
], Lead.prototype, "category", 2);
|
|
12827
12894
|
Lead = __decorateClass([
|
|
12828
|
-
|
|
12895
|
+
Entity75("leads")
|
|
12829
12896
|
], Lead);
|
|
12830
12897
|
|
|
12831
12898
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -13066,7 +13133,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13066
13133
|
], ClientFreelancerRecommendation);
|
|
13067
13134
|
|
|
13068
13135
|
// src/entities/commission.entity.ts
|
|
13069
|
-
import { Entity as
|
|
13136
|
+
import { Entity as Entity76, Column as Column77 } from "typeorm";
|
|
13070
13137
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13071
13138
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13072
13139
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13075,7 +13142,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13075
13142
|
var Commission = class extends BaseEntity {
|
|
13076
13143
|
};
|
|
13077
13144
|
__decorateClass([
|
|
13078
|
-
|
|
13145
|
+
Column77({
|
|
13079
13146
|
name: "freelancer_commission_type",
|
|
13080
13147
|
type: "enum",
|
|
13081
13148
|
enum: CommissionTypeEnum,
|
|
@@ -13083,10 +13150,10 @@ __decorateClass([
|
|
|
13083
13150
|
})
|
|
13084
13151
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13085
13152
|
__decorateClass([
|
|
13086
|
-
|
|
13153
|
+
Column77({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13087
13154
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13088
13155
|
__decorateClass([
|
|
13089
|
-
|
|
13156
|
+
Column77({
|
|
13090
13157
|
name: "client_commission_type",
|
|
13091
13158
|
type: "enum",
|
|
13092
13159
|
enum: CommissionTypeEnum,
|
|
@@ -13094,124 +13161,124 @@ __decorateClass([
|
|
|
13094
13161
|
})
|
|
13095
13162
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13096
13163
|
__decorateClass([
|
|
13097
|
-
|
|
13164
|
+
Column77({ name: "client_commission", type: "integer", default: 0 })
|
|
13098
13165
|
], Commission.prototype, "clientCommission", 2);
|
|
13099
13166
|
Commission = __decorateClass([
|
|
13100
|
-
|
|
13167
|
+
Entity76("commissions")
|
|
13101
13168
|
], Commission);
|
|
13102
13169
|
|
|
13103
13170
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13104
13171
|
import {
|
|
13105
|
-
Entity as
|
|
13106
|
-
Column as
|
|
13107
|
-
Index as
|
|
13172
|
+
Entity as Entity77,
|
|
13173
|
+
Column as Column78,
|
|
13174
|
+
Index as Index61
|
|
13108
13175
|
} from "typeorm";
|
|
13109
13176
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13110
13177
|
};
|
|
13111
13178
|
__decorateClass([
|
|
13112
|
-
|
|
13113
|
-
|
|
13179
|
+
Column78({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13180
|
+
Index61()
|
|
13114
13181
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13115
13182
|
__decorateClass([
|
|
13116
|
-
|
|
13183
|
+
Column78({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13117
13184
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13118
13185
|
__decorateClass([
|
|
13119
|
-
|
|
13186
|
+
Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13120
13187
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13121
13188
|
CalendlyMeetingLog = __decorateClass([
|
|
13122
|
-
|
|
13189
|
+
Entity77("calendly_meeting_logs")
|
|
13123
13190
|
], CalendlyMeetingLog);
|
|
13124
13191
|
|
|
13125
13192
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13126
13193
|
import {
|
|
13127
|
-
Entity as
|
|
13128
|
-
Column as
|
|
13129
|
-
Index as
|
|
13194
|
+
Entity as Entity78,
|
|
13195
|
+
Column as Column79,
|
|
13196
|
+
Index as Index62
|
|
13130
13197
|
} from "typeorm";
|
|
13131
13198
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13132
13199
|
};
|
|
13133
13200
|
__decorateClass([
|
|
13134
|
-
|
|
13135
|
-
|
|
13201
|
+
Column79({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13202
|
+
Index62()
|
|
13136
13203
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13137
13204
|
__decorateClass([
|
|
13138
|
-
|
|
13205
|
+
Column79({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13139
13206
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13140
13207
|
__decorateClass([
|
|
13141
|
-
|
|
13208
|
+
Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13142
13209
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13143
13210
|
ZoomMeetingLog = __decorateClass([
|
|
13144
|
-
|
|
13211
|
+
Entity78("zoom_meeting_logs")
|
|
13145
13212
|
], ZoomMeetingLog);
|
|
13146
13213
|
|
|
13147
13214
|
// src/entities/stripe-logs.entity.ts
|
|
13148
|
-
import { Entity as
|
|
13215
|
+
import { Entity as Entity79, Column as Column80 } from "typeorm";
|
|
13149
13216
|
var StripeLog = class extends BaseEntity {
|
|
13150
13217
|
};
|
|
13151
13218
|
__decorateClass([
|
|
13152
|
-
|
|
13219
|
+
Column80({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13153
13220
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13154
13221
|
__decorateClass([
|
|
13155
|
-
|
|
13222
|
+
Column80({ name: "event_type", type: "varchar", nullable: true })
|
|
13156
13223
|
], StripeLog.prototype, "eventType", 2);
|
|
13157
13224
|
__decorateClass([
|
|
13158
|
-
|
|
13225
|
+
Column80({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13159
13226
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13160
13227
|
__decorateClass([
|
|
13161
|
-
|
|
13228
|
+
Column80({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13162
13229
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13163
13230
|
StripeLog = __decorateClass([
|
|
13164
|
-
|
|
13231
|
+
Entity79("stripe_logs")
|
|
13165
13232
|
], StripeLog);
|
|
13166
13233
|
|
|
13167
13234
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13168
13235
|
import {
|
|
13169
|
-
Entity as
|
|
13170
|
-
Column as
|
|
13171
|
-
Index as
|
|
13236
|
+
Entity as Entity80,
|
|
13237
|
+
Column as Column81,
|
|
13238
|
+
Index as Index63
|
|
13172
13239
|
} from "typeorm";
|
|
13173
13240
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13174
13241
|
};
|
|
13175
13242
|
__decorateClass([
|
|
13176
|
-
|
|
13243
|
+
Column81({
|
|
13177
13244
|
type: "varchar",
|
|
13178
13245
|
length: 100,
|
|
13179
13246
|
unique: true,
|
|
13180
13247
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13181
13248
|
}),
|
|
13182
|
-
|
|
13249
|
+
Index63()
|
|
13183
13250
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13184
13251
|
__decorateClass([
|
|
13185
|
-
|
|
13252
|
+
Column81({
|
|
13186
13253
|
type: "jsonb",
|
|
13187
13254
|
comment: "JSON object containing weight values",
|
|
13188
13255
|
nullable: true
|
|
13189
13256
|
})
|
|
13190
13257
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13191
13258
|
__decorateClass([
|
|
13192
|
-
|
|
13259
|
+
Column81({ name: "is_active", type: "boolean", default: true })
|
|
13193
13260
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13194
13261
|
RecommendationWeightageConfig = __decorateClass([
|
|
13195
|
-
|
|
13262
|
+
Entity80("recommendation_weightage_configs")
|
|
13196
13263
|
], RecommendationWeightageConfig);
|
|
13197
13264
|
|
|
13198
13265
|
// src/entities/global-setting.entity.ts
|
|
13199
13266
|
import {
|
|
13200
|
-
Entity as
|
|
13201
|
-
Column as
|
|
13202
|
-
Index as
|
|
13267
|
+
Entity as Entity81,
|
|
13268
|
+
Column as Column82,
|
|
13269
|
+
Index as Index64
|
|
13203
13270
|
} from "typeorm";
|
|
13204
13271
|
var GlobalSetting = class extends BaseEntity {
|
|
13205
13272
|
};
|
|
13206
13273
|
__decorateClass([
|
|
13207
|
-
|
|
13274
|
+
Column82({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13208
13275
|
], GlobalSetting.prototype, "key", 2);
|
|
13209
13276
|
__decorateClass([
|
|
13210
|
-
|
|
13277
|
+
Column82({ name: "value", type: "text", nullable: false })
|
|
13211
13278
|
], GlobalSetting.prototype, "value", 2);
|
|
13212
13279
|
GlobalSetting = __decorateClass([
|
|
13213
|
-
|
|
13214
|
-
|
|
13280
|
+
Entity81("global_settings"),
|
|
13281
|
+
Index64(["key"], { unique: true })
|
|
13215
13282
|
], GlobalSetting);
|
|
13216
13283
|
export {
|
|
13217
13284
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -13261,6 +13328,7 @@ export {
|
|
|
13261
13328
|
BankAccountTypeEnum,
|
|
13262
13329
|
BankDetail,
|
|
13263
13330
|
BaseEntity,
|
|
13331
|
+
BillingCycleEnum,
|
|
13264
13332
|
CALENDLY_PATTERN,
|
|
13265
13333
|
CITY_PATTERN,
|
|
13266
13334
|
CLIENT_ADMIN_PATTERNS,
|
|
@@ -13343,6 +13411,7 @@ export {
|
|
|
13343
13411
|
DiscordTransport,
|
|
13344
13412
|
Dispute,
|
|
13345
13413
|
DisputeStatusEnum,
|
|
13414
|
+
DocuSeal,
|
|
13346
13415
|
DocumentType,
|
|
13347
13416
|
DurationTypeEnum,
|
|
13348
13417
|
EMAIL_PATTERN,
|