@experts_hub/shared 1.0.657 → 1.0.660
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/company-profile.entity.d.ts +1 -0
- package/dist/entities/contract.entity.d.ts +0 -2
- package/dist/entities/docuseal.entity.d.ts +7 -3
- package/dist/entities/freelancer-profile.entity.d.ts +1 -0
- package/dist/index.d.mts +17 -10
- package/dist/index.d.ts +17 -10
- package/dist/index.js +852 -838
- package/dist/index.mjs +780 -767
- package/dist/modules/job/dto/create-job-via-ai.dto..d.ts +1 -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
|
|
985
|
+
Entity as Entity66,
|
|
986
|
+
Column as Column67,
|
|
987
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
|
|
@@ -1410,6 +1410,9 @@ __decorateClass([
|
|
|
1410
1410
|
default: 0
|
|
1411
1411
|
})
|
|
1412
1412
|
], CompanyProfile.prototype, "rating", 2);
|
|
1413
|
+
__decorateClass([
|
|
1414
|
+
Column5({ name: "signature_url", type: "varchar", nullable: true })
|
|
1415
|
+
], CompanyProfile.prototype, "signatureUrl", 2);
|
|
1413
1416
|
CompanyProfile = __decorateClass([
|
|
1414
1417
|
Entity4("company_profiles")
|
|
1415
1418
|
], CompanyProfile);
|
|
@@ -1853,17 +1856,20 @@ __decorateClass([
|
|
|
1853
1856
|
default: 0
|
|
1854
1857
|
})
|
|
1855
1858
|
], FreelancerProfile.prototype, "rating", 2);
|
|
1859
|
+
__decorateClass([
|
|
1860
|
+
Column9({ name: "signature_url", type: "varchar", nullable: true })
|
|
1861
|
+
], FreelancerProfile.prototype, "signatureUrl", 2);
|
|
1856
1862
|
FreelancerProfile = __decorateClass([
|
|
1857
1863
|
Entity8("freelancer_profiles")
|
|
1858
1864
|
], FreelancerProfile);
|
|
1859
1865
|
|
|
1860
1866
|
// src/entities/job.entity.ts
|
|
1861
1867
|
import {
|
|
1862
|
-
Entity as
|
|
1863
|
-
Column as
|
|
1864
|
-
Index as
|
|
1865
|
-
ManyToOne as
|
|
1866
|
-
JoinColumn as
|
|
1868
|
+
Entity as Entity34,
|
|
1869
|
+
Column as Column35,
|
|
1870
|
+
Index as Index27,
|
|
1871
|
+
ManyToOne as ManyToOne33,
|
|
1872
|
+
JoinColumn as JoinColumn33,
|
|
1867
1873
|
OneToMany as OneToMany15
|
|
1868
1874
|
} from "typeorm";
|
|
1869
1875
|
|
|
@@ -2943,7 +2949,7 @@ JobRecommendation = __decorateClass([
|
|
|
2943
2949
|
], JobRecommendation);
|
|
2944
2950
|
|
|
2945
2951
|
// src/entities/contract.entity.ts
|
|
2946
|
-
import { Entity as
|
|
2952
|
+
import { Entity as Entity30, Column as Column31, Index as Index23, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29, OneToOne as OneToOne10 } from "typeorm";
|
|
2947
2953
|
|
|
2948
2954
|
// src/entities/escrow-wallet.entity.ts
|
|
2949
2955
|
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,32 +3586,6 @@ EscrowWallet = __decorateClass([
|
|
|
3580
3586
|
Entity29("escrow_wallets")
|
|
3581
3587
|
], EscrowWallet);
|
|
3582
3588
|
|
|
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
|
-
|
|
3609
3589
|
// src/entities/contract.entity.ts
|
|
3610
3590
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3611
3591
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3631,45 +3611,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3631
3611
|
var Contract = class extends BaseEntity {
|
|
3632
3612
|
};
|
|
3633
3613
|
__decorateClass([
|
|
3634
|
-
|
|
3614
|
+
Column31({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3635
3615
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3636
3616
|
__decorateClass([
|
|
3637
|
-
|
|
3638
|
-
|
|
3617
|
+
Column31({ name: "contract_summary_id", type: "integer", nullable: true }),
|
|
3618
|
+
Index23()
|
|
3639
3619
|
], Contract.prototype, "contractSummaryId", 2);
|
|
3640
3620
|
__decorateClass([
|
|
3641
|
-
|
|
3642
|
-
|
|
3621
|
+
ManyToOne29(() => ContractSummary, (contractSummary) => contractSummary.contracts),
|
|
3622
|
+
JoinColumn29({ name: "contract_summary_id" })
|
|
3643
3623
|
], Contract.prototype, "contractSummary", 2);
|
|
3644
3624
|
__decorateClass([
|
|
3645
|
-
|
|
3646
|
-
|
|
3625
|
+
Column31({ name: "job_id", type: "integer", nullable: true }),
|
|
3626
|
+
Index23()
|
|
3647
3627
|
], Contract.prototype, "jobId", 2);
|
|
3648
3628
|
__decorateClass([
|
|
3649
|
-
|
|
3650
|
-
|
|
3629
|
+
ManyToOne29(() => Job, (job) => job.contracts),
|
|
3630
|
+
JoinColumn29({ name: "job_id" })
|
|
3651
3631
|
], Contract.prototype, "job", 2);
|
|
3652
3632
|
__decorateClass([
|
|
3653
|
-
|
|
3654
|
-
|
|
3633
|
+
Column31({ name: "client_id", type: "integer", nullable: true }),
|
|
3634
|
+
Index23()
|
|
3655
3635
|
], Contract.prototype, "clientId", 2);
|
|
3656
3636
|
__decorateClass([
|
|
3657
|
-
|
|
3658
|
-
|
|
3637
|
+
ManyToOne29(() => User, (user) => user.clientContracts),
|
|
3638
|
+
JoinColumn29({ name: "client_id" })
|
|
3659
3639
|
], Contract.prototype, "client", 2);
|
|
3660
3640
|
__decorateClass([
|
|
3661
|
-
|
|
3662
|
-
|
|
3641
|
+
Column31({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3642
|
+
Index23()
|
|
3663
3643
|
], Contract.prototype, "freelancerId", 2);
|
|
3664
3644
|
__decorateClass([
|
|
3665
|
-
|
|
3666
|
-
|
|
3645
|
+
ManyToOne29(() => User, (user) => user.freelancerContracts),
|
|
3646
|
+
JoinColumn29({ name: "freelancer_id" })
|
|
3667
3647
|
], Contract.prototype, "freelancer", 2);
|
|
3668
3648
|
__decorateClass([
|
|
3669
|
-
|
|
3649
|
+
Column31({ name: "duration", type: "integer", nullable: true })
|
|
3670
3650
|
], Contract.prototype, "duration", 2);
|
|
3671
3651
|
__decorateClass([
|
|
3672
|
-
|
|
3652
|
+
Column31({
|
|
3673
3653
|
name: "status",
|
|
3674
3654
|
type: "enum",
|
|
3675
3655
|
enum: ContractStatusEnum,
|
|
@@ -3677,7 +3657,7 @@ __decorateClass([
|
|
|
3677
3657
|
})
|
|
3678
3658
|
], Contract.prototype, "status", 2);
|
|
3679
3659
|
__decorateClass([
|
|
3680
|
-
|
|
3660
|
+
Column31({
|
|
3681
3661
|
name: "type",
|
|
3682
3662
|
type: "enum",
|
|
3683
3663
|
enum: ContractTypeEnum,
|
|
@@ -3685,10 +3665,10 @@ __decorateClass([
|
|
|
3685
3665
|
})
|
|
3686
3666
|
], Contract.prototype, "type", 2);
|
|
3687
3667
|
__decorateClass([
|
|
3688
|
-
|
|
3668
|
+
Column31({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3689
3669
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3690
3670
|
__decorateClass([
|
|
3691
|
-
|
|
3671
|
+
Column31({
|
|
3692
3672
|
name: "escrow_deposite_amount",
|
|
3693
3673
|
type: "decimal",
|
|
3694
3674
|
precision: 10,
|
|
@@ -3697,103 +3677,100 @@ __decorateClass([
|
|
|
3697
3677
|
})
|
|
3698
3678
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3699
3679
|
__decorateClass([
|
|
3700
|
-
|
|
3680
|
+
Column31({
|
|
3701
3681
|
name: "start_date",
|
|
3702
3682
|
type: "timestamp with time zone",
|
|
3703
3683
|
nullable: true
|
|
3704
3684
|
})
|
|
3705
3685
|
], Contract.prototype, "startDate", 2);
|
|
3706
3686
|
__decorateClass([
|
|
3707
|
-
|
|
3687
|
+
Column31({
|
|
3708
3688
|
name: "end_date",
|
|
3709
3689
|
type: "timestamp with time zone",
|
|
3710
3690
|
nullable: true
|
|
3711
3691
|
})
|
|
3712
3692
|
], Contract.prototype, "endDate", 2);
|
|
3713
3693
|
__decorateClass([
|
|
3714
|
-
|
|
3694
|
+
Column31({
|
|
3715
3695
|
name: "actual_start_date",
|
|
3716
3696
|
type: "timestamp with time zone",
|
|
3717
3697
|
nullable: true
|
|
3718
3698
|
})
|
|
3719
3699
|
], Contract.prototype, "actualStartDate", 2);
|
|
3720
3700
|
__decorateClass([
|
|
3721
|
-
|
|
3701
|
+
Column31({
|
|
3722
3702
|
name: "actual_end_date",
|
|
3723
3703
|
type: "timestamp with time zone",
|
|
3724
3704
|
nullable: true
|
|
3725
3705
|
})
|
|
3726
3706
|
], Contract.prototype, "actualEndDate", 2);
|
|
3727
3707
|
__decorateClass([
|
|
3728
|
-
|
|
3708
|
+
Column31({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3729
3709
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3730
3710
|
__decorateClass([
|
|
3731
|
-
|
|
3711
|
+
Column31({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3732
3712
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3733
3713
|
__decorateClass([
|
|
3734
|
-
|
|
3714
|
+
Column31({
|
|
3735
3715
|
name: "client_signed_at",
|
|
3736
3716
|
type: "timestamp with time zone",
|
|
3737
3717
|
nullable: true
|
|
3738
3718
|
})
|
|
3739
3719
|
], Contract.prototype, "clientSignedAt", 2);
|
|
3740
3720
|
__decorateClass([
|
|
3741
|
-
|
|
3721
|
+
Column31({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3742
3722
|
], Contract.prototype, "freelancerViewed", 2);
|
|
3743
3723
|
__decorateClass([
|
|
3744
|
-
|
|
3724
|
+
Column31({
|
|
3745
3725
|
name: "freelancer_viewed_at",
|
|
3746
3726
|
type: "timestamp with time zone",
|
|
3747
3727
|
nullable: true
|
|
3748
3728
|
})
|
|
3749
3729
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3750
3730
|
__decorateClass([
|
|
3751
|
-
|
|
3731
|
+
Column31({
|
|
3752
3732
|
name: "freelancer_signed_at",
|
|
3753
3733
|
type: "timestamp with time zone",
|
|
3754
3734
|
nullable: true
|
|
3755
3735
|
})
|
|
3756
3736
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3757
3737
|
__decorateClass([
|
|
3758
|
-
|
|
3738
|
+
Column31({
|
|
3759
3739
|
name: "rejectd_at",
|
|
3760
3740
|
type: "timestamp with time zone",
|
|
3761
3741
|
nullable: true
|
|
3762
3742
|
})
|
|
3763
3743
|
], Contract.prototype, "rejectedAt", 2);
|
|
3764
3744
|
__decorateClass([
|
|
3765
|
-
|
|
3745
|
+
Column31({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3766
3746
|
], Contract.prototype, "rejectReason", 2);
|
|
3767
3747
|
__decorateClass([
|
|
3768
|
-
|
|
3748
|
+
Column31({ name: "resend_count", type: "integer", default: 0 })
|
|
3769
3749
|
], Contract.prototype, "resendCount", 2);
|
|
3770
3750
|
__decorateClass([
|
|
3771
|
-
|
|
3751
|
+
Column31({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3772
3752
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
3773
3753
|
__decorateClass([
|
|
3774
|
-
|
|
3754
|
+
Column31({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3775
3755
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3776
3756
|
__decorateClass([
|
|
3777
|
-
|
|
3757
|
+
Column31({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3778
3758
|
], Contract.prototype, "signaturePositions", 2);
|
|
3779
3759
|
__decorateClass([
|
|
3780
|
-
|
|
3760
|
+
Column31({ name: "signature_url", type: "varchar", nullable: true })
|
|
3781
3761
|
], Contract.prototype, "signatureUrl", 2);
|
|
3782
3762
|
__decorateClass([
|
|
3783
|
-
|
|
3763
|
+
Column31({ name: "meta_data", type: "jsonb", nullable: true })
|
|
3784
3764
|
], Contract.prototype, "metaData", 2);
|
|
3785
3765
|
__decorateClass([
|
|
3786
3766
|
OneToOne10(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
3787
3767
|
], Contract.prototype, "escrowWallet", 2);
|
|
3788
|
-
__decorateClass([
|
|
3789
|
-
OneToOne10(() => DocuSeal, (docuseal) => docuseal.contract)
|
|
3790
|
-
], Contract.prototype, "docuseal", 2);
|
|
3791
3768
|
Contract = __decorateClass([
|
|
3792
|
-
|
|
3769
|
+
Entity30("contracts")
|
|
3793
3770
|
], Contract);
|
|
3794
3771
|
|
|
3795
3772
|
// src/entities/timesheets.entity.ts
|
|
3796
|
-
import { Entity as
|
|
3773
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, JoinColumn as JoinColumn30, ManyToOne as ManyToOne30 } from "typeorm";
|
|
3797
3774
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3798
3775
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3799
3776
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3806,146 +3783,146 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3806
3783
|
var Timesheet = class extends BaseEntity {
|
|
3807
3784
|
};
|
|
3808
3785
|
__decorateClass([
|
|
3809
|
-
|
|
3810
|
-
|
|
3786
|
+
Column32({ name: "job_id", type: "integer", nullable: true }),
|
|
3787
|
+
Index24()
|
|
3811
3788
|
], Timesheet.prototype, "jobId", 2);
|
|
3812
3789
|
__decorateClass([
|
|
3813
|
-
|
|
3814
|
-
|
|
3790
|
+
ManyToOne30(() => Job, (job) => job.timesheets),
|
|
3791
|
+
JoinColumn30({ name: "job_id" })
|
|
3815
3792
|
], Timesheet.prototype, "job", 2);
|
|
3816
3793
|
__decorateClass([
|
|
3817
|
-
|
|
3818
|
-
|
|
3794
|
+
Column32({ name: "client_id", type: "integer", nullable: true }),
|
|
3795
|
+
Index24()
|
|
3819
3796
|
], Timesheet.prototype, "clientId", 2);
|
|
3820
3797
|
__decorateClass([
|
|
3821
|
-
|
|
3822
|
-
|
|
3798
|
+
ManyToOne30(() => User, (user) => user.clientTimesheets),
|
|
3799
|
+
JoinColumn30({ name: "client_id" })
|
|
3823
3800
|
], Timesheet.prototype, "client", 2);
|
|
3824
3801
|
__decorateClass([
|
|
3825
|
-
|
|
3826
|
-
|
|
3802
|
+
Column32({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3803
|
+
Index24()
|
|
3827
3804
|
], Timesheet.prototype, "freelancerId", 2);
|
|
3828
3805
|
__decorateClass([
|
|
3829
|
-
|
|
3830
|
-
|
|
3806
|
+
ManyToOne30(() => User, (user) => user.freelancerTimesheets),
|
|
3807
|
+
JoinColumn30({ name: "freelancer_id" })
|
|
3831
3808
|
], Timesheet.prototype, "freelancer", 2);
|
|
3832
3809
|
__decorateClass([
|
|
3833
|
-
|
|
3810
|
+
Column32({
|
|
3834
3811
|
name: "start_date",
|
|
3835
3812
|
type: "date",
|
|
3836
3813
|
nullable: true
|
|
3837
3814
|
})
|
|
3838
3815
|
], Timesheet.prototype, "startDate", 2);
|
|
3839
3816
|
__decorateClass([
|
|
3840
|
-
|
|
3817
|
+
Column32({
|
|
3841
3818
|
name: "end_date",
|
|
3842
3819
|
type: "date",
|
|
3843
3820
|
nullable: true
|
|
3844
3821
|
})
|
|
3845
3822
|
], Timesheet.prototype, "endDate", 2);
|
|
3846
3823
|
__decorateClass([
|
|
3847
|
-
|
|
3824
|
+
Column32({ name: "start_time", type: "varchar", nullable: true })
|
|
3848
3825
|
], Timesheet.prototype, "startTime", 2);
|
|
3849
3826
|
__decorateClass([
|
|
3850
|
-
|
|
3827
|
+
Column32({ name: "end_time", type: "varchar", nullable: true })
|
|
3851
3828
|
], Timesheet.prototype, "endTime", 2);
|
|
3852
3829
|
__decorateClass([
|
|
3853
|
-
|
|
3830
|
+
Column32({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3854
3831
|
], Timesheet.prototype, "workedHours", 2);
|
|
3855
3832
|
__decorateClass([
|
|
3856
|
-
|
|
3833
|
+
Column32({ name: "task_id", type: "integer", nullable: true })
|
|
3857
3834
|
], Timesheet.prototype, "taskId", 2);
|
|
3858
3835
|
__decorateClass([
|
|
3859
|
-
|
|
3836
|
+
Column32({ name: "task_name", type: "varchar", nullable: true })
|
|
3860
3837
|
], Timesheet.prototype, "taskName", 2);
|
|
3861
3838
|
__decorateClass([
|
|
3862
|
-
|
|
3839
|
+
Column32({ name: "description", type: "varchar", nullable: true })
|
|
3863
3840
|
], Timesheet.prototype, "description", 2);
|
|
3864
3841
|
__decorateClass([
|
|
3865
|
-
|
|
3842
|
+
Column32({ name: "week_start_date", type: "date", nullable: true })
|
|
3866
3843
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
3867
3844
|
__decorateClass([
|
|
3868
|
-
|
|
3845
|
+
Column32({ name: "week_end_date", type: "date", nullable: true })
|
|
3869
3846
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
3870
3847
|
__decorateClass([
|
|
3871
|
-
|
|
3848
|
+
Column32({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3872
3849
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
3873
3850
|
__decorateClass([
|
|
3874
|
-
|
|
3851
|
+
Column32({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3875
3852
|
], Timesheet.prototype, "submittedAt", 2);
|
|
3876
3853
|
__decorateClass([
|
|
3877
|
-
|
|
3854
|
+
Column32({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3878
3855
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3879
3856
|
__decorateClass([
|
|
3880
|
-
|
|
3857
|
+
Column32({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3881
3858
|
], Timesheet.prototype, "approvedAt", 2);
|
|
3882
3859
|
__decorateClass([
|
|
3883
|
-
|
|
3860
|
+
Column32({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3884
3861
|
], Timesheet.prototype, "status", 2);
|
|
3885
3862
|
__decorateClass([
|
|
3886
|
-
|
|
3863
|
+
Column32({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3887
3864
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3888
3865
|
Timesheet = __decorateClass([
|
|
3889
|
-
|
|
3866
|
+
Entity31("timesheets")
|
|
3890
3867
|
], Timesheet);
|
|
3891
3868
|
|
|
3892
3869
|
// src/entities/job-location.entity.ts
|
|
3893
3870
|
import {
|
|
3894
|
-
Entity as
|
|
3895
|
-
Column as
|
|
3896
|
-
ManyToOne as
|
|
3897
|
-
JoinColumn as
|
|
3898
|
-
Index as
|
|
3871
|
+
Entity as Entity32,
|
|
3872
|
+
Column as Column33,
|
|
3873
|
+
ManyToOne as ManyToOne31,
|
|
3874
|
+
JoinColumn as JoinColumn31,
|
|
3875
|
+
Index as Index25
|
|
3899
3876
|
} from "typeorm";
|
|
3900
3877
|
var JobLocation = class extends BaseEntity {
|
|
3901
3878
|
};
|
|
3902
3879
|
__decorateClass([
|
|
3903
|
-
|
|
3904
|
-
|
|
3880
|
+
Column33({ name: "job_id", type: "integer", nullable: false }),
|
|
3881
|
+
Index25()
|
|
3905
3882
|
], JobLocation.prototype, "jobId", 2);
|
|
3906
3883
|
__decorateClass([
|
|
3907
|
-
|
|
3908
|
-
|
|
3884
|
+
ManyToOne31(() => Job, (job) => job.jobLocations),
|
|
3885
|
+
JoinColumn31({ name: "job_id" })
|
|
3909
3886
|
], JobLocation.prototype, "job", 2);
|
|
3910
3887
|
__decorateClass([
|
|
3911
|
-
|
|
3888
|
+
Column33({ name: "country_id", type: "int", nullable: false })
|
|
3912
3889
|
], JobLocation.prototype, "countryId", 2);
|
|
3913
3890
|
__decorateClass([
|
|
3914
|
-
|
|
3891
|
+
Column33({ name: "country_name", type: "varchar", nullable: true })
|
|
3915
3892
|
], JobLocation.prototype, "countryName", 2);
|
|
3916
3893
|
__decorateClass([
|
|
3917
|
-
|
|
3918
|
-
|
|
3894
|
+
ManyToOne31(() => Country),
|
|
3895
|
+
JoinColumn31({ name: "country_id" })
|
|
3919
3896
|
], JobLocation.prototype, "country", 2);
|
|
3920
3897
|
__decorateClass([
|
|
3921
|
-
|
|
3898
|
+
Column33({ name: "state_id", type: "int", nullable: false })
|
|
3922
3899
|
], JobLocation.prototype, "stateId", 2);
|
|
3923
3900
|
__decorateClass([
|
|
3924
|
-
|
|
3901
|
+
Column33({ name: "state_name", type: "varchar", nullable: true })
|
|
3925
3902
|
], JobLocation.prototype, "stateName", 2);
|
|
3926
3903
|
__decorateClass([
|
|
3927
|
-
|
|
3928
|
-
|
|
3904
|
+
ManyToOne31(() => State),
|
|
3905
|
+
JoinColumn31({ name: "state_id" })
|
|
3929
3906
|
], JobLocation.prototype, "state", 2);
|
|
3930
3907
|
__decorateClass([
|
|
3931
|
-
|
|
3908
|
+
Column33({ name: "city_id", type: "int", nullable: false })
|
|
3932
3909
|
], JobLocation.prototype, "cityId", 2);
|
|
3933
3910
|
__decorateClass([
|
|
3934
|
-
|
|
3911
|
+
Column33({ name: "city_name", type: "varchar", nullable: true })
|
|
3935
3912
|
], JobLocation.prototype, "cityName", 2);
|
|
3936
3913
|
__decorateClass([
|
|
3937
|
-
|
|
3938
|
-
|
|
3914
|
+
ManyToOne31(() => City),
|
|
3915
|
+
JoinColumn31({ name: "city_id" })
|
|
3939
3916
|
], JobLocation.prototype, "city", 2);
|
|
3940
3917
|
__decorateClass([
|
|
3941
|
-
|
|
3918
|
+
Column33({ name: "location_wise_openings", type: "int", default: 0 })
|
|
3942
3919
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
3943
3920
|
JobLocation = __decorateClass([
|
|
3944
|
-
|
|
3921
|
+
Entity32("job_locations")
|
|
3945
3922
|
], JobLocation);
|
|
3946
3923
|
|
|
3947
3924
|
// src/entities/rating.entity.ts
|
|
3948
|
-
import { Entity as
|
|
3925
|
+
import { Entity as Entity33, Column as Column34, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32, Index as Index26 } from "typeorm";
|
|
3949
3926
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
3950
3927
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
3951
3928
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -3954,31 +3931,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3954
3931
|
var Rating = class extends BaseEntity {
|
|
3955
3932
|
};
|
|
3956
3933
|
__decorateClass([
|
|
3957
|
-
|
|
3958
|
-
|
|
3934
|
+
Column34({ name: "reviewer_id", type: "integer" }),
|
|
3935
|
+
Index26()
|
|
3959
3936
|
], Rating.prototype, "reviewerId", 2);
|
|
3960
3937
|
__decorateClass([
|
|
3961
|
-
|
|
3962
|
-
|
|
3938
|
+
ManyToOne32(() => User, { onDelete: "CASCADE" }),
|
|
3939
|
+
JoinColumn32({ name: "reviewer_id" })
|
|
3963
3940
|
], Rating.prototype, "reviewer", 2);
|
|
3964
3941
|
__decorateClass([
|
|
3965
|
-
|
|
3966
|
-
|
|
3942
|
+
Column34({ name: "reviewee_id", type: "integer" }),
|
|
3943
|
+
Index26()
|
|
3967
3944
|
], Rating.prototype, "revieweeId", 2);
|
|
3968
3945
|
__decorateClass([
|
|
3969
|
-
|
|
3970
|
-
|
|
3946
|
+
ManyToOne32(() => User, { onDelete: "CASCADE" }),
|
|
3947
|
+
JoinColumn32({ name: "reviewee_id" })
|
|
3971
3948
|
], Rating.prototype, "reviewee", 2);
|
|
3972
3949
|
__decorateClass([
|
|
3973
|
-
|
|
3974
|
-
|
|
3950
|
+
Column34({ name: "job_id", type: "integer" }),
|
|
3951
|
+
Index26()
|
|
3975
3952
|
], Rating.prototype, "jobId", 2);
|
|
3976
3953
|
__decorateClass([
|
|
3977
|
-
|
|
3978
|
-
|
|
3954
|
+
ManyToOne32(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
3955
|
+
JoinColumn32({ name: "job_id" })
|
|
3979
3956
|
], Rating.prototype, "job", 2);
|
|
3980
3957
|
__decorateClass([
|
|
3981
|
-
|
|
3958
|
+
Column34({
|
|
3982
3959
|
name: "rating_type",
|
|
3983
3960
|
type: "enum",
|
|
3984
3961
|
enum: RatingTypeEnum,
|
|
@@ -3986,67 +3963,67 @@ __decorateClass([
|
|
|
3986
3963
|
})
|
|
3987
3964
|
], Rating.prototype, "ratingType", 2);
|
|
3988
3965
|
__decorateClass([
|
|
3989
|
-
|
|
3966
|
+
Column34({ name: "reviewer_comment", type: "text", nullable: true })
|
|
3990
3967
|
], Rating.prototype, "reviewerComment", 2);
|
|
3991
3968
|
__decorateClass([
|
|
3992
|
-
|
|
3969
|
+
Column34({
|
|
3993
3970
|
name: "overall_experience",
|
|
3994
3971
|
type: "float",
|
|
3995
3972
|
default: 0
|
|
3996
3973
|
})
|
|
3997
3974
|
], Rating.prototype, "overAllExperience", 2);
|
|
3998
3975
|
__decorateClass([
|
|
3999
|
-
|
|
3976
|
+
Column34({
|
|
4000
3977
|
name: "work_quality",
|
|
4001
3978
|
type: "float",
|
|
4002
3979
|
default: 0
|
|
4003
3980
|
})
|
|
4004
3981
|
], Rating.prototype, "workQuality", 2);
|
|
4005
3982
|
__decorateClass([
|
|
4006
|
-
|
|
3983
|
+
Column34({
|
|
4007
3984
|
name: "one_time_delivery",
|
|
4008
3985
|
type: "float",
|
|
4009
3986
|
default: 0
|
|
4010
3987
|
})
|
|
4011
3988
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
4012
3989
|
__decorateClass([
|
|
4013
|
-
|
|
3990
|
+
Column34({
|
|
4014
3991
|
name: "understaning",
|
|
4015
3992
|
type: "float",
|
|
4016
3993
|
default: 0
|
|
4017
3994
|
})
|
|
4018
3995
|
], Rating.prototype, "understaning", 2);
|
|
4019
3996
|
__decorateClass([
|
|
4020
|
-
|
|
3997
|
+
Column34({
|
|
4021
3998
|
name: "communication",
|
|
4022
3999
|
type: "float",
|
|
4023
4000
|
default: 0
|
|
4024
4001
|
})
|
|
4025
4002
|
], Rating.prototype, "communication", 2);
|
|
4026
4003
|
__decorateClass([
|
|
4027
|
-
|
|
4004
|
+
Column34({
|
|
4028
4005
|
name: "skill_utilized",
|
|
4029
4006
|
type: "float",
|
|
4030
4007
|
default: 0
|
|
4031
4008
|
})
|
|
4032
4009
|
], Rating.prototype, "skillUtilized", 2);
|
|
4033
4010
|
__decorateClass([
|
|
4034
|
-
|
|
4011
|
+
Column34({ name: "communication_clarity", type: "float", default: 0 })
|
|
4035
4012
|
], Rating.prototype, "communicationClarity", 2);
|
|
4036
4013
|
__decorateClass([
|
|
4037
|
-
|
|
4014
|
+
Column34({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4038
4015
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4039
4016
|
__decorateClass([
|
|
4040
|
-
|
|
4017
|
+
Column34({ name: "responsiveness", type: "float", default: 0 })
|
|
4041
4018
|
], Rating.prototype, "responsiveness", 2);
|
|
4042
4019
|
__decorateClass([
|
|
4043
|
-
|
|
4020
|
+
Column34({ name: "payment_promptness", type: "float", default: 0 })
|
|
4044
4021
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4045
4022
|
__decorateClass([
|
|
4046
|
-
|
|
4023
|
+
Column34({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4047
4024
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4048
4025
|
Rating = __decorateClass([
|
|
4049
|
-
|
|
4026
|
+
Entity33("ratings")
|
|
4050
4027
|
], Rating);
|
|
4051
4028
|
|
|
4052
4029
|
// src/entities/job.entity.ts
|
|
@@ -4101,58 +4078,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4101
4078
|
var Job = class extends BaseEntity {
|
|
4102
4079
|
};
|
|
4103
4080
|
__decorateClass([
|
|
4104
|
-
|
|
4081
|
+
Column35({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4105
4082
|
], Job.prototype, "jobId", 2);
|
|
4106
4083
|
// individual index to find jobs by user
|
|
4107
4084
|
__decorateClass([
|
|
4108
|
-
|
|
4109
|
-
|
|
4085
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
4086
|
+
Index27()
|
|
4110
4087
|
], Job.prototype, "userId", 2);
|
|
4111
4088
|
__decorateClass([
|
|
4112
|
-
|
|
4113
|
-
|
|
4089
|
+
ManyToOne33(() => User, (user) => user.jobs),
|
|
4090
|
+
JoinColumn33({ name: "user_id" })
|
|
4114
4091
|
], Job.prototype, "user", 2);
|
|
4115
4092
|
__decorateClass([
|
|
4116
|
-
|
|
4093
|
+
Column35({ name: "country_id", type: "int", nullable: true })
|
|
4117
4094
|
], Job.prototype, "countryId", 2);
|
|
4118
4095
|
__decorateClass([
|
|
4119
|
-
|
|
4120
|
-
|
|
4096
|
+
ManyToOne33(() => Country),
|
|
4097
|
+
JoinColumn33({ name: "country_id" })
|
|
4121
4098
|
], Job.prototype, "country", 2);
|
|
4122
4099
|
__decorateClass([
|
|
4123
|
-
|
|
4100
|
+
Column35({ name: "state_id", type: "int", nullable: true })
|
|
4124
4101
|
], Job.prototype, "stateId", 2);
|
|
4125
4102
|
__decorateClass([
|
|
4126
|
-
|
|
4127
|
-
|
|
4103
|
+
ManyToOne33(() => State),
|
|
4104
|
+
JoinColumn33({ name: "state_id" })
|
|
4128
4105
|
], Job.prototype, "state", 2);
|
|
4129
4106
|
__decorateClass([
|
|
4130
|
-
|
|
4107
|
+
Column35({ name: "city_id", type: "int", nullable: true })
|
|
4131
4108
|
], Job.prototype, "cityId", 2);
|
|
4132
4109
|
__decorateClass([
|
|
4133
|
-
|
|
4134
|
-
|
|
4110
|
+
ManyToOne33(() => City),
|
|
4111
|
+
JoinColumn33({ name: "city_id" })
|
|
4135
4112
|
], Job.prototype, "city", 2);
|
|
4136
4113
|
__decorateClass([
|
|
4137
|
-
|
|
4114
|
+
Column35({ name: "job_role", type: "varchar", nullable: true })
|
|
4138
4115
|
], Job.prototype, "jobRole", 2);
|
|
4139
4116
|
__decorateClass([
|
|
4140
|
-
|
|
4117
|
+
Column35({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4141
4118
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4142
4119
|
__decorateClass([
|
|
4143
|
-
|
|
4120
|
+
Column35({ name: "project_name", type: "varchar", nullable: true })
|
|
4144
4121
|
], Job.prototype, "projectName", 2);
|
|
4145
4122
|
__decorateClass([
|
|
4146
|
-
|
|
4123
|
+
Column35({ name: "note", type: "varchar", nullable: true })
|
|
4147
4124
|
], Job.prototype, "note", 2);
|
|
4148
4125
|
__decorateClass([
|
|
4149
|
-
|
|
4126
|
+
Column35({ name: "openings", type: "integer", default: 0 })
|
|
4150
4127
|
], Job.prototype, "openings", 2);
|
|
4151
4128
|
__decorateClass([
|
|
4152
|
-
|
|
4129
|
+
Column35({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4153
4130
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4154
4131
|
__decorateClass([
|
|
4155
|
-
|
|
4132
|
+
Column35({
|
|
4156
4133
|
name: "location",
|
|
4157
4134
|
type: "enum",
|
|
4158
4135
|
enum: JobLocationEnum,
|
|
@@ -4160,7 +4137,7 @@ __decorateClass([
|
|
|
4160
4137
|
})
|
|
4161
4138
|
], Job.prototype, "location", 2);
|
|
4162
4139
|
__decorateClass([
|
|
4163
|
-
|
|
4140
|
+
Column35({
|
|
4164
4141
|
name: "type_of_employment",
|
|
4165
4142
|
type: "enum",
|
|
4166
4143
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4168,7 +4145,7 @@ __decorateClass([
|
|
|
4168
4145
|
})
|
|
4169
4146
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4170
4147
|
__decorateClass([
|
|
4171
|
-
|
|
4148
|
+
Column35({
|
|
4172
4149
|
name: "billing_cycle",
|
|
4173
4150
|
type: "enum",
|
|
4174
4151
|
enum: BillingCycleEnum,
|
|
@@ -4176,10 +4153,10 @@ __decorateClass([
|
|
|
4176
4153
|
})
|
|
4177
4154
|
], Job.prototype, "billingCycle", 2);
|
|
4178
4155
|
__decorateClass([
|
|
4179
|
-
|
|
4156
|
+
Column35({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4180
4157
|
], Job.prototype, "academicQualification", 2);
|
|
4181
4158
|
__decorateClass([
|
|
4182
|
-
|
|
4159
|
+
Column35({
|
|
4183
4160
|
name: "type_of_experience",
|
|
4184
4161
|
type: "enum",
|
|
4185
4162
|
enum: typeOfExperienceEnum,
|
|
@@ -4187,22 +4164,22 @@ __decorateClass([
|
|
|
4187
4164
|
})
|
|
4188
4165
|
], Job.prototype, "typeOfExperience", 2);
|
|
4189
4166
|
__decorateClass([
|
|
4190
|
-
|
|
4167
|
+
Column35({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4191
4168
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4192
4169
|
__decorateClass([
|
|
4193
|
-
|
|
4170
|
+
Column35({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4194
4171
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4195
4172
|
__decorateClass([
|
|
4196
|
-
|
|
4173
|
+
Column35({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4197
4174
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4198
4175
|
__decorateClass([
|
|
4199
|
-
|
|
4176
|
+
Column35({ name: "business_industry", type: "varchar", nullable: true })
|
|
4200
4177
|
], Job.prototype, "businessIndustry", 2);
|
|
4201
4178
|
__decorateClass([
|
|
4202
|
-
|
|
4179
|
+
Column35({ name: "currency", type: "varchar", default: "USD" })
|
|
4203
4180
|
], Job.prototype, "currency", 2);
|
|
4204
4181
|
__decorateClass([
|
|
4205
|
-
|
|
4182
|
+
Column35({
|
|
4206
4183
|
name: "expected_salary_from",
|
|
4207
4184
|
type: "decimal",
|
|
4208
4185
|
precision: 10,
|
|
@@ -4211,14 +4188,14 @@ __decorateClass([
|
|
|
4211
4188
|
})
|
|
4212
4189
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4213
4190
|
__decorateClass([
|
|
4214
|
-
|
|
4191
|
+
Column35({
|
|
4215
4192
|
name: "hide_expected_salary_from",
|
|
4216
4193
|
type: "boolean",
|
|
4217
4194
|
default: false
|
|
4218
4195
|
})
|
|
4219
4196
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4220
4197
|
__decorateClass([
|
|
4221
|
-
|
|
4198
|
+
Column35({
|
|
4222
4199
|
name: "expected_salary_to",
|
|
4223
4200
|
type: "decimal",
|
|
4224
4201
|
precision: 10,
|
|
@@ -4227,14 +4204,14 @@ __decorateClass([
|
|
|
4227
4204
|
})
|
|
4228
4205
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4229
4206
|
__decorateClass([
|
|
4230
|
-
|
|
4207
|
+
Column35({
|
|
4231
4208
|
name: "hide_expected_salary_to",
|
|
4232
4209
|
type: "boolean",
|
|
4233
4210
|
default: false
|
|
4234
4211
|
})
|
|
4235
4212
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4236
4213
|
__decorateClass([
|
|
4237
|
-
|
|
4214
|
+
Column35({
|
|
4238
4215
|
name: "expected_annual_budget_from",
|
|
4239
4216
|
type: "decimal",
|
|
4240
4217
|
precision: 10,
|
|
@@ -4243,14 +4220,14 @@ __decorateClass([
|
|
|
4243
4220
|
})
|
|
4244
4221
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4245
4222
|
__decorateClass([
|
|
4246
|
-
|
|
4223
|
+
Column35({
|
|
4247
4224
|
name: "hide_expected_annual_budget_from",
|
|
4248
4225
|
type: "boolean",
|
|
4249
4226
|
default: false
|
|
4250
4227
|
})
|
|
4251
4228
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4252
4229
|
__decorateClass([
|
|
4253
|
-
|
|
4230
|
+
Column35({
|
|
4254
4231
|
name: "expected_annual_budget_to",
|
|
4255
4232
|
type: "decimal",
|
|
4256
4233
|
precision: 10,
|
|
@@ -4259,32 +4236,32 @@ __decorateClass([
|
|
|
4259
4236
|
})
|
|
4260
4237
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4261
4238
|
__decorateClass([
|
|
4262
|
-
|
|
4239
|
+
Column35({
|
|
4263
4240
|
name: "hide_expected_annual_budget_to",
|
|
4264
4241
|
type: "boolean",
|
|
4265
4242
|
default: false
|
|
4266
4243
|
})
|
|
4267
4244
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4268
4245
|
__decorateClass([
|
|
4269
|
-
|
|
4246
|
+
Column35({ name: "years", type: "varchar", nullable: true })
|
|
4270
4247
|
], Job.prototype, "years", 2);
|
|
4271
4248
|
__decorateClass([
|
|
4272
|
-
|
|
4249
|
+
Column35({ name: "months", type: "varchar", nullable: true })
|
|
4273
4250
|
], Job.prototype, "months", 2);
|
|
4274
4251
|
__decorateClass([
|
|
4275
|
-
|
|
4252
|
+
Column35({ name: "weeks", type: "varchar", nullable: true })
|
|
4276
4253
|
], Job.prototype, "weeks", 2);
|
|
4277
4254
|
__decorateClass([
|
|
4278
|
-
|
|
4255
|
+
Column35({ name: "days", type: "varchar", nullable: true })
|
|
4279
4256
|
], Job.prototype, "days", 2);
|
|
4280
4257
|
__decorateClass([
|
|
4281
|
-
|
|
4258
|
+
Column35({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4282
4259
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4283
4260
|
__decorateClass([
|
|
4284
|
-
|
|
4261
|
+
Column35({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4285
4262
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4286
4263
|
__decorateClass([
|
|
4287
|
-
|
|
4264
|
+
Column35({
|
|
4288
4265
|
name: "duration_type",
|
|
4289
4266
|
type: "enum",
|
|
4290
4267
|
enum: DurationTypeEnum,
|
|
@@ -4292,10 +4269,10 @@ __decorateClass([
|
|
|
4292
4269
|
})
|
|
4293
4270
|
], Job.prototype, "durationType", 2);
|
|
4294
4271
|
__decorateClass([
|
|
4295
|
-
|
|
4272
|
+
Column35({ name: "duration", type: "varchar", nullable: true })
|
|
4296
4273
|
], Job.prototype, "duration", 2);
|
|
4297
4274
|
__decorateClass([
|
|
4298
|
-
|
|
4275
|
+
Column35({
|
|
4299
4276
|
name: "number_of_hours",
|
|
4300
4277
|
type: "decimal",
|
|
4301
4278
|
precision: 4,
|
|
@@ -4304,13 +4281,13 @@ __decorateClass([
|
|
|
4304
4281
|
})
|
|
4305
4282
|
], Job.prototype, "numberOfHours", 2);
|
|
4306
4283
|
__decorateClass([
|
|
4307
|
-
|
|
4284
|
+
Column35({ name: "description", type: "varchar", nullable: true })
|
|
4308
4285
|
], Job.prototype, "description", 2);
|
|
4309
4286
|
__decorateClass([
|
|
4310
|
-
|
|
4287
|
+
Column35({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4311
4288
|
], Job.prototype, "additionalComment", 2);
|
|
4312
4289
|
__decorateClass([
|
|
4313
|
-
|
|
4290
|
+
Column35({
|
|
4314
4291
|
name: "onboarding_tat",
|
|
4315
4292
|
type: "varchar",
|
|
4316
4293
|
length: 50,
|
|
@@ -4318,14 +4295,14 @@ __decorateClass([
|
|
|
4318
4295
|
})
|
|
4319
4296
|
], Job.prototype, "onboardingTat", 2);
|
|
4320
4297
|
__decorateClass([
|
|
4321
|
-
|
|
4298
|
+
Column35({
|
|
4322
4299
|
name: "candidate_communication_skills",
|
|
4323
4300
|
type: "varchar",
|
|
4324
4301
|
nullable: true
|
|
4325
4302
|
})
|
|
4326
4303
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4327
4304
|
__decorateClass([
|
|
4328
|
-
|
|
4305
|
+
Column35({
|
|
4329
4306
|
name: "step_completed",
|
|
4330
4307
|
type: "enum",
|
|
4331
4308
|
enum: Step,
|
|
@@ -4333,7 +4310,7 @@ __decorateClass([
|
|
|
4333
4310
|
})
|
|
4334
4311
|
], Job.prototype, "stepCompleted", 2);
|
|
4335
4312
|
__decorateClass([
|
|
4336
|
-
|
|
4313
|
+
Column35({
|
|
4337
4314
|
name: "status",
|
|
4338
4315
|
type: "enum",
|
|
4339
4316
|
enum: JobStatusEnum,
|
|
@@ -4341,19 +4318,19 @@ __decorateClass([
|
|
|
4341
4318
|
})
|
|
4342
4319
|
], Job.prototype, "status", 2);
|
|
4343
4320
|
__decorateClass([
|
|
4344
|
-
|
|
4321
|
+
Column35({ name: "viewed_count", type: "integer", default: 0 })
|
|
4345
4322
|
], Job.prototype, "viewedCount", 2);
|
|
4346
4323
|
__decorateClass([
|
|
4347
|
-
|
|
4324
|
+
Column35({ name: "application_count", type: "integer", default: 0 })
|
|
4348
4325
|
], Job.prototype, "applicationCount", 2);
|
|
4349
4326
|
__decorateClass([
|
|
4350
|
-
|
|
4327
|
+
Column35({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4351
4328
|
], Job.prototype, "isContractSigned", 2);
|
|
4352
4329
|
__decorateClass([
|
|
4353
|
-
|
|
4330
|
+
Column35({ name: "is_interview_created", type: "boolean", default: false })
|
|
4354
4331
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4355
4332
|
__decorateClass([
|
|
4356
|
-
|
|
4333
|
+
Column35({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4357
4334
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4358
4335
|
__decorateClass([
|
|
4359
4336
|
OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
@@ -4434,16 +4411,16 @@ __decorateClass([
|
|
|
4434
4411
|
})
|
|
4435
4412
|
], Job.prototype, "ratings", 2);
|
|
4436
4413
|
Job = __decorateClass([
|
|
4437
|
-
|
|
4414
|
+
Entity34("jobs")
|
|
4438
4415
|
], Job);
|
|
4439
4416
|
|
|
4440
4417
|
// src/entities/bank-details.entity.ts
|
|
4441
4418
|
import {
|
|
4442
|
-
Entity as
|
|
4443
|
-
Column as
|
|
4444
|
-
Index as
|
|
4445
|
-
ManyToOne as
|
|
4446
|
-
JoinColumn as
|
|
4419
|
+
Entity as Entity35,
|
|
4420
|
+
Column as Column36,
|
|
4421
|
+
Index as Index28,
|
|
4422
|
+
ManyToOne as ManyToOne34,
|
|
4423
|
+
JoinColumn as JoinColumn34
|
|
4447
4424
|
} from "typeorm";
|
|
4448
4425
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4449
4426
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4459,51 +4436,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4459
4436
|
};
|
|
4460
4437
|
// individual index to find bank details by user
|
|
4461
4438
|
__decorateClass([
|
|
4462
|
-
|
|
4463
|
-
|
|
4439
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4440
|
+
Index28()
|
|
4464
4441
|
], BankDetail.prototype, "userId", 2);
|
|
4465
4442
|
__decorateClass([
|
|
4466
|
-
|
|
4467
|
-
|
|
4443
|
+
ManyToOne34(() => User, (user) => user.bankDetail),
|
|
4444
|
+
JoinColumn34({ name: "user_id" })
|
|
4468
4445
|
], BankDetail.prototype, "user", 2);
|
|
4469
4446
|
__decorateClass([
|
|
4470
|
-
|
|
4447
|
+
Column36({ name: "name", type: "varchar", nullable: true })
|
|
4471
4448
|
], BankDetail.prototype, "name", 2);
|
|
4472
4449
|
__decorateClass([
|
|
4473
|
-
|
|
4450
|
+
Column36({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4474
4451
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4475
4452
|
__decorateClass([
|
|
4476
|
-
|
|
4453
|
+
Column36({ name: "mobile", type: "varchar", nullable: true })
|
|
4477
4454
|
], BankDetail.prototype, "mobile", 2);
|
|
4478
4455
|
__decorateClass([
|
|
4479
|
-
|
|
4456
|
+
Column36({ name: "email", type: "varchar" })
|
|
4480
4457
|
], BankDetail.prototype, "email", 2);
|
|
4481
4458
|
__decorateClass([
|
|
4482
|
-
|
|
4459
|
+
Column36({ name: "address", type: "varchar", nullable: true })
|
|
4483
4460
|
], BankDetail.prototype, "address", 2);
|
|
4484
4461
|
__decorateClass([
|
|
4485
|
-
|
|
4462
|
+
Column36({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4486
4463
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4487
4464
|
__decorateClass([
|
|
4488
|
-
|
|
4465
|
+
Column36({ name: "bank_name", type: "varchar", nullable: true })
|
|
4489
4466
|
], BankDetail.prototype, "bankName", 2);
|
|
4490
4467
|
__decorateClass([
|
|
4491
|
-
|
|
4468
|
+
Column36({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4492
4469
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4493
4470
|
__decorateClass([
|
|
4494
|
-
|
|
4471
|
+
Column36({ name: "branch_name", type: "varchar", nullable: true })
|
|
4495
4472
|
], BankDetail.prototype, "branchName", 2);
|
|
4496
4473
|
__decorateClass([
|
|
4497
|
-
|
|
4474
|
+
Column36({ name: "routing_no", type: "varchar", nullable: true })
|
|
4498
4475
|
], BankDetail.prototype, "routingNo", 2);
|
|
4499
4476
|
__decorateClass([
|
|
4500
|
-
|
|
4477
|
+
Column36({ name: "aba_no", type: "varchar", nullable: true })
|
|
4501
4478
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4502
4479
|
__decorateClass([
|
|
4503
|
-
|
|
4480
|
+
Column36({ name: "iban", type: "varchar", nullable: true })
|
|
4504
4481
|
], BankDetail.prototype, "iban", 2);
|
|
4505
4482
|
__decorateClass([
|
|
4506
|
-
|
|
4483
|
+
Column36({
|
|
4507
4484
|
name: "account_type",
|
|
4508
4485
|
type: "enum",
|
|
4509
4486
|
enum: BankAccountTypeEnum,
|
|
@@ -4511,7 +4488,7 @@ __decorateClass([
|
|
|
4511
4488
|
})
|
|
4512
4489
|
], BankDetail.prototype, "accountType", 2);
|
|
4513
4490
|
__decorateClass([
|
|
4514
|
-
|
|
4491
|
+
Column36({
|
|
4515
4492
|
name: "account_scope",
|
|
4516
4493
|
type: "enum",
|
|
4517
4494
|
enum: BankAccountScopeEnum,
|
|
@@ -4519,185 +4496,185 @@ __decorateClass([
|
|
|
4519
4496
|
})
|
|
4520
4497
|
], BankDetail.prototype, "accountScope", 2);
|
|
4521
4498
|
BankDetail = __decorateClass([
|
|
4522
|
-
|
|
4499
|
+
Entity35("bank_details")
|
|
4523
4500
|
], BankDetail);
|
|
4524
4501
|
|
|
4525
4502
|
// src/entities/system-preference.entity.ts
|
|
4526
4503
|
import {
|
|
4527
|
-
Entity as
|
|
4528
|
-
Column as
|
|
4529
|
-
Index as
|
|
4530
|
-
ManyToOne as
|
|
4531
|
-
JoinColumn as
|
|
4504
|
+
Entity as Entity36,
|
|
4505
|
+
Column as Column37,
|
|
4506
|
+
Index as Index29,
|
|
4507
|
+
ManyToOne as ManyToOne35,
|
|
4508
|
+
JoinColumn as JoinColumn35
|
|
4532
4509
|
} from "typeorm";
|
|
4533
4510
|
var SystemPreference = class extends BaseEntity {
|
|
4534
4511
|
};
|
|
4535
4512
|
// individual index to find system preference by user
|
|
4536
4513
|
__decorateClass([
|
|
4537
|
-
|
|
4538
|
-
|
|
4514
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4515
|
+
Index29()
|
|
4539
4516
|
], SystemPreference.prototype, "userId", 2);
|
|
4540
4517
|
__decorateClass([
|
|
4541
|
-
|
|
4542
|
-
|
|
4518
|
+
ManyToOne35(() => User, (user) => user.systemPreference),
|
|
4519
|
+
JoinColumn35({ name: "user_id" })
|
|
4543
4520
|
], SystemPreference.prototype, "user", 2);
|
|
4544
4521
|
__decorateClass([
|
|
4545
|
-
|
|
4522
|
+
Column37({ name: "key", type: "varchar", nullable: false })
|
|
4546
4523
|
], SystemPreference.prototype, "key", 2);
|
|
4547
4524
|
__decorateClass([
|
|
4548
|
-
|
|
4525
|
+
Column37({ name: "value", type: "boolean", default: false })
|
|
4549
4526
|
], SystemPreference.prototype, "value", 2);
|
|
4550
4527
|
SystemPreference = __decorateClass([
|
|
4551
|
-
|
|
4528
|
+
Entity36("system_preferences")
|
|
4552
4529
|
], SystemPreference);
|
|
4553
4530
|
|
|
4554
4531
|
// src/entities/freelancer-experience.entity.ts
|
|
4555
4532
|
import {
|
|
4556
|
-
Entity as
|
|
4557
|
-
Column as
|
|
4558
|
-
Index as
|
|
4559
|
-
ManyToOne as
|
|
4560
|
-
JoinColumn as
|
|
4533
|
+
Entity as Entity37,
|
|
4534
|
+
Column as Column38,
|
|
4535
|
+
Index as Index30,
|
|
4536
|
+
ManyToOne as ManyToOne36,
|
|
4537
|
+
JoinColumn as JoinColumn36
|
|
4561
4538
|
} from "typeorm";
|
|
4562
4539
|
var FreelancerExperience = class extends BaseEntity {
|
|
4563
4540
|
};
|
|
4564
4541
|
// individual index to find experence by user
|
|
4565
4542
|
__decorateClass([
|
|
4566
|
-
|
|
4567
|
-
|
|
4543
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4544
|
+
Index30()
|
|
4568
4545
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4569
4546
|
__decorateClass([
|
|
4570
|
-
|
|
4571
|
-
|
|
4547
|
+
ManyToOne36(() => User, (user) => user.freelancerExperience),
|
|
4548
|
+
JoinColumn36({ name: "user_id" })
|
|
4572
4549
|
], FreelancerExperience.prototype, "user", 2);
|
|
4573
4550
|
__decorateClass([
|
|
4574
|
-
|
|
4551
|
+
Column38({ name: "company_name", type: "varchar", nullable: true })
|
|
4575
4552
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4576
4553
|
__decorateClass([
|
|
4577
|
-
|
|
4554
|
+
Column38({ name: "designation", type: "varchar", nullable: true })
|
|
4578
4555
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4579
4556
|
__decorateClass([
|
|
4580
|
-
|
|
4557
|
+
Column38({ name: "job_duration", type: "varchar", nullable: true })
|
|
4581
4558
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4582
4559
|
__decorateClass([
|
|
4583
|
-
|
|
4560
|
+
Column38({ name: "description", type: "varchar", nullable: true })
|
|
4584
4561
|
], FreelancerExperience.prototype, "description", 2);
|
|
4585
4562
|
FreelancerExperience = __decorateClass([
|
|
4586
|
-
|
|
4563
|
+
Entity37("freelancer_experiences")
|
|
4587
4564
|
], FreelancerExperience);
|
|
4588
4565
|
|
|
4589
4566
|
// src/entities/freelancer-education.entity.ts
|
|
4590
4567
|
import {
|
|
4591
|
-
Entity as
|
|
4592
|
-
Column as
|
|
4593
|
-
Index as
|
|
4594
|
-
ManyToOne as
|
|
4595
|
-
JoinColumn as
|
|
4568
|
+
Entity as Entity38,
|
|
4569
|
+
Column as Column39,
|
|
4570
|
+
Index as Index31,
|
|
4571
|
+
ManyToOne as ManyToOne37,
|
|
4572
|
+
JoinColumn as JoinColumn37
|
|
4596
4573
|
} from "typeorm";
|
|
4597
4574
|
var FreelancerEducation = class extends BaseEntity {
|
|
4598
4575
|
};
|
|
4599
4576
|
// individual index to find education by user
|
|
4600
4577
|
__decorateClass([
|
|
4601
|
-
|
|
4602
|
-
|
|
4578
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4579
|
+
Index31()
|
|
4603
4580
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4604
4581
|
__decorateClass([
|
|
4605
|
-
|
|
4606
|
-
|
|
4582
|
+
ManyToOne37(() => User, (user) => user.freelancerEducation),
|
|
4583
|
+
JoinColumn37({ name: "user_id" })
|
|
4607
4584
|
], FreelancerEducation.prototype, "user", 2);
|
|
4608
4585
|
__decorateClass([
|
|
4609
|
-
|
|
4586
|
+
Column39({ name: "degree", type: "varchar", nullable: true })
|
|
4610
4587
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4611
4588
|
__decorateClass([
|
|
4612
|
-
|
|
4589
|
+
Column39({ name: "university", type: "varchar", nullable: true })
|
|
4613
4590
|
], FreelancerEducation.prototype, "university", 2);
|
|
4614
4591
|
__decorateClass([
|
|
4615
|
-
|
|
4592
|
+
Column39({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4616
4593
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4617
4594
|
FreelancerEducation = __decorateClass([
|
|
4618
|
-
|
|
4595
|
+
Entity38("freelancer_educations")
|
|
4619
4596
|
], FreelancerEducation);
|
|
4620
4597
|
|
|
4621
4598
|
// src/entities/freelancer-project.entity.ts
|
|
4622
4599
|
import {
|
|
4623
|
-
Entity as
|
|
4624
|
-
Column as
|
|
4625
|
-
Index as
|
|
4626
|
-
ManyToOne as
|
|
4627
|
-
JoinColumn as
|
|
4600
|
+
Entity as Entity39,
|
|
4601
|
+
Column as Column40,
|
|
4602
|
+
Index as Index32,
|
|
4603
|
+
ManyToOne as ManyToOne38,
|
|
4604
|
+
JoinColumn as JoinColumn38
|
|
4628
4605
|
} from "typeorm";
|
|
4629
4606
|
var FreelancerProject = class extends BaseEntity {
|
|
4630
4607
|
};
|
|
4631
4608
|
// individual index to find project by user
|
|
4632
4609
|
__decorateClass([
|
|
4633
|
-
|
|
4634
|
-
|
|
4610
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4611
|
+
Index32()
|
|
4635
4612
|
], FreelancerProject.prototype, "userId", 2);
|
|
4636
4613
|
__decorateClass([
|
|
4637
|
-
|
|
4638
|
-
|
|
4614
|
+
ManyToOne38(() => User, (user) => user.freelancerProject),
|
|
4615
|
+
JoinColumn38({ name: "user_id" })
|
|
4639
4616
|
], FreelancerProject.prototype, "user", 2);
|
|
4640
4617
|
__decorateClass([
|
|
4641
|
-
|
|
4618
|
+
Column40({ name: "project_name", type: "varchar", nullable: true })
|
|
4642
4619
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4643
4620
|
__decorateClass([
|
|
4644
|
-
|
|
4621
|
+
Column40({ name: "start_date", type: "date", nullable: true })
|
|
4645
4622
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4646
4623
|
__decorateClass([
|
|
4647
|
-
|
|
4624
|
+
Column40({ name: "end_date", type: "date", nullable: true })
|
|
4648
4625
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4649
4626
|
__decorateClass([
|
|
4650
|
-
|
|
4627
|
+
Column40({ name: "client_name", type: "varchar", nullable: true })
|
|
4651
4628
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4652
4629
|
__decorateClass([
|
|
4653
|
-
|
|
4630
|
+
Column40({ name: "git_link", type: "varchar", nullable: true })
|
|
4654
4631
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4655
4632
|
__decorateClass([
|
|
4656
|
-
|
|
4633
|
+
Column40({ name: "description", type: "varchar", nullable: true })
|
|
4657
4634
|
], FreelancerProject.prototype, "description", 2);
|
|
4658
4635
|
FreelancerProject = __decorateClass([
|
|
4659
|
-
|
|
4636
|
+
Entity39("freelancer_projects")
|
|
4660
4637
|
], FreelancerProject);
|
|
4661
4638
|
|
|
4662
4639
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4663
4640
|
import {
|
|
4664
|
-
Entity as
|
|
4665
|
-
Column as
|
|
4666
|
-
Index as
|
|
4667
|
-
ManyToOne as
|
|
4668
|
-
JoinColumn as
|
|
4641
|
+
Entity as Entity40,
|
|
4642
|
+
Column as Column41,
|
|
4643
|
+
Index as Index33,
|
|
4644
|
+
ManyToOne as ManyToOne39,
|
|
4645
|
+
JoinColumn as JoinColumn39
|
|
4669
4646
|
} from "typeorm";
|
|
4670
4647
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4671
4648
|
};
|
|
4672
4649
|
// individual index to find case study by user
|
|
4673
4650
|
__decorateClass([
|
|
4674
|
-
|
|
4675
|
-
|
|
4651
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4652
|
+
Index33()
|
|
4676
4653
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4677
4654
|
__decorateClass([
|
|
4678
|
-
|
|
4679
|
-
|
|
4655
|
+
ManyToOne39(() => User, (user) => user.freelancerCaseStudy),
|
|
4656
|
+
JoinColumn39({ name: "user_id" })
|
|
4680
4657
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4681
4658
|
__decorateClass([
|
|
4682
|
-
|
|
4659
|
+
Column41({ name: "project_name", type: "varchar", nullable: true })
|
|
4683
4660
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4684
4661
|
__decorateClass([
|
|
4685
|
-
|
|
4662
|
+
Column41({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4686
4663
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4687
4664
|
__decorateClass([
|
|
4688
|
-
|
|
4665
|
+
Column41({ name: "description", type: "varchar", nullable: true })
|
|
4689
4666
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4690
4667
|
FreelancerCaseStudy = __decorateClass([
|
|
4691
|
-
|
|
4668
|
+
Entity40("freelancer_case_studies")
|
|
4692
4669
|
], FreelancerCaseStudy);
|
|
4693
4670
|
|
|
4694
4671
|
// src/entities/freelancer-skill.entity.ts
|
|
4695
4672
|
import {
|
|
4696
|
-
Entity as
|
|
4697
|
-
Column as
|
|
4698
|
-
Index as
|
|
4699
|
-
ManyToOne as
|
|
4700
|
-
JoinColumn as
|
|
4673
|
+
Entity as Entity41,
|
|
4674
|
+
Column as Column42,
|
|
4675
|
+
Index as Index34,
|
|
4676
|
+
ManyToOne as ManyToOne40,
|
|
4677
|
+
JoinColumn as JoinColumn40
|
|
4701
4678
|
} from "typeorm";
|
|
4702
4679
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4703
4680
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4708,18 +4685,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4708
4685
|
};
|
|
4709
4686
|
// individual index to find core skills by user
|
|
4710
4687
|
__decorateClass([
|
|
4711
|
-
|
|
4712
|
-
|
|
4688
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4689
|
+
Index34()
|
|
4713
4690
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4714
4691
|
__decorateClass([
|
|
4715
|
-
|
|
4716
|
-
|
|
4692
|
+
ManyToOne40(() => User, (user) => user.freelancerSkills),
|
|
4693
|
+
JoinColumn40({ name: "user_id" })
|
|
4717
4694
|
], FreelancerSkill.prototype, "user", 2);
|
|
4718
4695
|
__decorateClass([
|
|
4719
|
-
|
|
4696
|
+
Column42({ name: "skill_name", type: "varchar", nullable: true })
|
|
4720
4697
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4721
4698
|
__decorateClass([
|
|
4722
|
-
|
|
4699
|
+
Column42({
|
|
4723
4700
|
name: "skill_category",
|
|
4724
4701
|
type: "smallint",
|
|
4725
4702
|
default: 1,
|
|
@@ -4727,68 +4704,68 @@ __decorateClass([
|
|
|
4727
4704
|
})
|
|
4728
4705
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4729
4706
|
FreelancerSkill = __decorateClass([
|
|
4730
|
-
|
|
4707
|
+
Entity41("freelancer_skills")
|
|
4731
4708
|
], FreelancerSkill);
|
|
4732
4709
|
|
|
4733
4710
|
// src/entities/freelancer-tool.entity.ts
|
|
4734
4711
|
import {
|
|
4735
|
-
Entity as
|
|
4736
|
-
Column as
|
|
4737
|
-
Index as
|
|
4738
|
-
ManyToOne as
|
|
4739
|
-
JoinColumn as
|
|
4712
|
+
Entity as Entity42,
|
|
4713
|
+
Column as Column43,
|
|
4714
|
+
Index as Index35,
|
|
4715
|
+
ManyToOne as ManyToOne41,
|
|
4716
|
+
JoinColumn as JoinColumn41
|
|
4740
4717
|
} from "typeorm";
|
|
4741
4718
|
var FreelancerTool = class extends BaseEntity {
|
|
4742
4719
|
};
|
|
4743
4720
|
// individual index to find tool by user
|
|
4744
4721
|
__decorateClass([
|
|
4745
|
-
|
|
4746
|
-
|
|
4722
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
4723
|
+
Index35()
|
|
4747
4724
|
], FreelancerTool.prototype, "userId", 2);
|
|
4748
4725
|
__decorateClass([
|
|
4749
|
-
|
|
4750
|
-
|
|
4726
|
+
ManyToOne41(() => User, (user) => user.freelancerTool),
|
|
4727
|
+
JoinColumn41({ name: "user_id" })
|
|
4751
4728
|
], FreelancerTool.prototype, "user", 2);
|
|
4752
4729
|
__decorateClass([
|
|
4753
|
-
|
|
4730
|
+
Column43({ name: "tool_name", type: "varchar", nullable: true })
|
|
4754
4731
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4755
4732
|
FreelancerTool = __decorateClass([
|
|
4756
|
-
|
|
4733
|
+
Entity42("freelancer_tools")
|
|
4757
4734
|
], FreelancerTool);
|
|
4758
4735
|
|
|
4759
4736
|
// src/entities/freelancer-framework.entity.ts
|
|
4760
4737
|
import {
|
|
4761
|
-
Entity as
|
|
4762
|
-
Column as
|
|
4763
|
-
Index as
|
|
4764
|
-
ManyToOne as
|
|
4765
|
-
JoinColumn as
|
|
4738
|
+
Entity as Entity43,
|
|
4739
|
+
Column as Column44,
|
|
4740
|
+
Index as Index36,
|
|
4741
|
+
ManyToOne as ManyToOne42,
|
|
4742
|
+
JoinColumn as JoinColumn42
|
|
4766
4743
|
} from "typeorm";
|
|
4767
4744
|
var FreelancerFramework = class extends BaseEntity {
|
|
4768
4745
|
};
|
|
4769
4746
|
// individual index to find framework by user
|
|
4770
4747
|
__decorateClass([
|
|
4771
|
-
|
|
4772
|
-
|
|
4748
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
4749
|
+
Index36()
|
|
4773
4750
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4774
4751
|
__decorateClass([
|
|
4775
|
-
|
|
4776
|
-
|
|
4752
|
+
ManyToOne42(() => User, (user) => user.freelancerFramework),
|
|
4753
|
+
JoinColumn42({ name: "user_id" })
|
|
4777
4754
|
], FreelancerFramework.prototype, "user", 2);
|
|
4778
4755
|
__decorateClass([
|
|
4779
|
-
|
|
4756
|
+
Column44({ name: "framework_name", type: "varchar", nullable: true })
|
|
4780
4757
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4781
4758
|
FreelancerFramework = __decorateClass([
|
|
4782
|
-
|
|
4759
|
+
Entity43("freelancer_frameworks")
|
|
4783
4760
|
], FreelancerFramework);
|
|
4784
4761
|
|
|
4785
4762
|
// src/entities/freelancer-assessment.entity.ts
|
|
4786
4763
|
import {
|
|
4787
|
-
Entity as
|
|
4788
|
-
Column as
|
|
4789
|
-
Index as
|
|
4790
|
-
ManyToOne as
|
|
4791
|
-
JoinColumn as
|
|
4764
|
+
Entity as Entity44,
|
|
4765
|
+
Column as Column45,
|
|
4766
|
+
Index as Index37,
|
|
4767
|
+
ManyToOne as ManyToOne43,
|
|
4768
|
+
JoinColumn as JoinColumn43
|
|
4792
4769
|
} from "typeorm";
|
|
4793
4770
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4794
4771
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4806,33 +4783,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4806
4783
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4807
4784
|
};
|
|
4808
4785
|
__decorateClass([
|
|
4809
|
-
|
|
4810
|
-
|
|
4786
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4787
|
+
Index37()
|
|
4811
4788
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4812
4789
|
__decorateClass([
|
|
4813
|
-
|
|
4814
|
-
|
|
4790
|
+
ManyToOne43(() => User, (user) => user.assessments),
|
|
4791
|
+
JoinColumn43({ name: "user_id" })
|
|
4815
4792
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4816
4793
|
__decorateClass([
|
|
4817
|
-
|
|
4794
|
+
Column45({ name: "interview_id", type: "varchar", nullable: true })
|
|
4818
4795
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4819
4796
|
__decorateClass([
|
|
4820
|
-
|
|
4797
|
+
Column45({ name: "interview_link", type: "text", nullable: true })
|
|
4821
4798
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4822
4799
|
__decorateClass([
|
|
4823
|
-
|
|
4800
|
+
Column45({ name: "recording_link", type: "text", nullable: true })
|
|
4824
4801
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4825
4802
|
__decorateClass([
|
|
4826
|
-
|
|
4803
|
+
Column45({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4827
4804
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4828
4805
|
__decorateClass([
|
|
4829
|
-
|
|
4806
|
+
Column45({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4830
4807
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4831
4808
|
__decorateClass([
|
|
4832
|
-
|
|
4809
|
+
Column45({ name: "score", type: "float", nullable: true })
|
|
4833
4810
|
], FreelancerAssessment.prototype, "score", 2);
|
|
4834
4811
|
__decorateClass([
|
|
4835
|
-
|
|
4812
|
+
Column45({
|
|
4836
4813
|
name: "status",
|
|
4837
4814
|
type: "enum",
|
|
4838
4815
|
enum: AssessmentStatusEnum,
|
|
@@ -4840,17 +4817,17 @@ __decorateClass([
|
|
|
4840
4817
|
})
|
|
4841
4818
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4842
4819
|
__decorateClass([
|
|
4843
|
-
|
|
4820
|
+
Column45({ name: "task_id", type: "varchar", nullable: true })
|
|
4844
4821
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
4845
4822
|
__decorateClass([
|
|
4846
|
-
|
|
4823
|
+
Column45({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4847
4824
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
4848
4825
|
FreelancerAssessment = __decorateClass([
|
|
4849
|
-
|
|
4826
|
+
Entity44("freelancer_assessments")
|
|
4850
4827
|
], FreelancerAssessment);
|
|
4851
4828
|
|
|
4852
4829
|
// src/entities/freelancer-declaration.entity.ts
|
|
4853
|
-
import { Entity as
|
|
4830
|
+
import { Entity as Entity45, Column as Column46, Index as Index38, ManyToOne as ManyToOne44, JoinColumn as JoinColumn44 } from "typeorm";
|
|
4854
4831
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4855
4832
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4856
4833
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4862,15 +4839,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4862
4839
|
};
|
|
4863
4840
|
// individual index to find declaration by user
|
|
4864
4841
|
__decorateClass([
|
|
4865
|
-
|
|
4866
|
-
|
|
4842
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4843
|
+
Index38()
|
|
4867
4844
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4868
4845
|
__decorateClass([
|
|
4869
|
-
|
|
4870
|
-
|
|
4846
|
+
ManyToOne44(() => User, (user) => user.freelancerDeclaration),
|
|
4847
|
+
JoinColumn44({ name: "user_id" })
|
|
4871
4848
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4872
4849
|
__decorateClass([
|
|
4873
|
-
|
|
4850
|
+
Column46({
|
|
4874
4851
|
name: "document_type",
|
|
4875
4852
|
type: "enum",
|
|
4876
4853
|
enum: DocumentType,
|
|
@@ -4878,175 +4855,175 @@ __decorateClass([
|
|
|
4878
4855
|
})
|
|
4879
4856
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4880
4857
|
__decorateClass([
|
|
4881
|
-
|
|
4858
|
+
Column46({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4882
4859
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4883
4860
|
__decorateClass([
|
|
4884
|
-
|
|
4861
|
+
Column46({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4885
4862
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4886
4863
|
__decorateClass([
|
|
4887
|
-
|
|
4864
|
+
Column46({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4888
4865
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4889
4866
|
__decorateClass([
|
|
4890
|
-
|
|
4867
|
+
Column46({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4891
4868
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4892
4869
|
FreelancerDeclaration = __decorateClass([
|
|
4893
|
-
|
|
4870
|
+
Entity45("freelancer_declaration")
|
|
4894
4871
|
], FreelancerDeclaration);
|
|
4895
4872
|
|
|
4896
4873
|
// 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
|
|
4906
4874
|
import {
|
|
4907
4875
|
Column as Column50,
|
|
4908
4876
|
Entity as Entity49,
|
|
4909
|
-
Index as Index42,
|
|
4910
|
-
JoinColumn as JoinColumn47,
|
|
4911
4877
|
ManyToOne as ManyToOne47,
|
|
4912
|
-
|
|
4878
|
+
JoinColumn as JoinColumn47,
|
|
4879
|
+
Index as Index42
|
|
4913
4880
|
} from "typeorm";
|
|
4914
4881
|
|
|
4915
|
-
// src/entities/company-role
|
|
4882
|
+
// src/entities/company-role.entity.ts
|
|
4916
4883
|
import {
|
|
4917
4884
|
Column as Column49,
|
|
4918
4885
|
Entity as Entity48,
|
|
4919
|
-
|
|
4886
|
+
Index as Index41,
|
|
4920
4887
|
JoinColumn as JoinColumn46,
|
|
4921
|
-
|
|
4888
|
+
ManyToOne as ManyToOne46,
|
|
4889
|
+
OneToMany as OneToMany17
|
|
4890
|
+
} from "typeorm";
|
|
4891
|
+
|
|
4892
|
+
// src/entities/company-role-permission.entity.ts
|
|
4893
|
+
import {
|
|
4894
|
+
Column as Column48,
|
|
4895
|
+
Entity as Entity47,
|
|
4896
|
+
ManyToOne as ManyToOne45,
|
|
4897
|
+
JoinColumn as JoinColumn45,
|
|
4898
|
+
Index as Index40
|
|
4922
4899
|
} from "typeorm";
|
|
4923
4900
|
|
|
4924
4901
|
// src/entities/permission.entity.ts
|
|
4925
|
-
import { Column as
|
|
4902
|
+
import { Column as Column47, Entity as Entity46, Index as Index39 } from "typeorm";
|
|
4926
4903
|
var Permission = class extends BaseEntity {
|
|
4927
4904
|
};
|
|
4928
4905
|
__decorateClass([
|
|
4929
|
-
|
|
4906
|
+
Column47({ name: "name", type: "varchar", nullable: true })
|
|
4930
4907
|
], Permission.prototype, "name", 2);
|
|
4931
4908
|
__decorateClass([
|
|
4932
|
-
|
|
4933
|
-
|
|
4909
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4910
|
+
Index39()
|
|
4934
4911
|
], Permission.prototype, "slug", 2);
|
|
4935
4912
|
__decorateClass([
|
|
4936
|
-
|
|
4913
|
+
Column47({ name: "description", type: "text", nullable: true })
|
|
4937
4914
|
], Permission.prototype, "description", 2);
|
|
4938
4915
|
__decorateClass([
|
|
4939
|
-
|
|
4916
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
4940
4917
|
], Permission.prototype, "isActive", 2);
|
|
4941
4918
|
Permission = __decorateClass([
|
|
4942
|
-
|
|
4919
|
+
Entity46("permissions")
|
|
4943
4920
|
], Permission);
|
|
4944
4921
|
|
|
4945
4922
|
// src/entities/company-role-permission.entity.ts
|
|
4946
4923
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4947
4924
|
};
|
|
4948
4925
|
__decorateClass([
|
|
4949
|
-
|
|
4950
|
-
|
|
4926
|
+
Column48({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4927
|
+
Index40()
|
|
4951
4928
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4952
4929
|
__decorateClass([
|
|
4953
|
-
|
|
4930
|
+
ManyToOne45(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4954
4931
|
onDelete: "CASCADE"
|
|
4955
4932
|
}),
|
|
4956
|
-
|
|
4933
|
+
JoinColumn45({ name: "company_role_id" })
|
|
4957
4934
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4958
4935
|
__decorateClass([
|
|
4959
|
-
|
|
4960
|
-
|
|
4936
|
+
Column48({ name: "permission_id", type: "integer" }),
|
|
4937
|
+
Index40()
|
|
4961
4938
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4962
4939
|
__decorateClass([
|
|
4963
|
-
|
|
4964
|
-
|
|
4940
|
+
ManyToOne45(() => Permission, { onDelete: "CASCADE" }),
|
|
4941
|
+
JoinColumn45({ name: "permission_id" })
|
|
4965
4942
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4966
4943
|
__decorateClass([
|
|
4967
|
-
|
|
4944
|
+
Column48({ name: "assigned_by", type: "integer", nullable: true })
|
|
4968
4945
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4969
4946
|
CompanyRolePermission = __decorateClass([
|
|
4970
|
-
|
|
4947
|
+
Entity47("company_role_permissions")
|
|
4971
4948
|
], CompanyRolePermission);
|
|
4972
4949
|
|
|
4973
4950
|
// src/entities/company-role.entity.ts
|
|
4974
4951
|
var CompanyRole = class extends BaseEntity {
|
|
4975
4952
|
};
|
|
4976
4953
|
__decorateClass([
|
|
4977
|
-
|
|
4978
|
-
|
|
4954
|
+
Column49({ name: "user_id", type: "integer", nullable: true }),
|
|
4955
|
+
Index41()
|
|
4979
4956
|
], CompanyRole.prototype, "userId", 2);
|
|
4980
4957
|
__decorateClass([
|
|
4981
|
-
|
|
4982
|
-
|
|
4958
|
+
ManyToOne46(() => User, (user) => user.otps),
|
|
4959
|
+
JoinColumn46({ name: "user_id" })
|
|
4983
4960
|
], CompanyRole.prototype, "user", 2);
|
|
4984
4961
|
__decorateClass([
|
|
4985
|
-
|
|
4962
|
+
Column49({ name: "name", type: "varchar" })
|
|
4986
4963
|
], CompanyRole.prototype, "name", 2);
|
|
4987
4964
|
__decorateClass([
|
|
4988
|
-
|
|
4989
|
-
|
|
4965
|
+
Column49({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4966
|
+
Index41()
|
|
4990
4967
|
], CompanyRole.prototype, "slug", 2);
|
|
4991
4968
|
__decorateClass([
|
|
4992
|
-
|
|
4969
|
+
Column49({ name: "description", type: "text", nullable: true })
|
|
4993
4970
|
], CompanyRole.prototype, "description", 2);
|
|
4994
4971
|
__decorateClass([
|
|
4995
|
-
|
|
4972
|
+
Column49({ name: "is_active", type: "boolean", default: true })
|
|
4996
4973
|
], CompanyRole.prototype, "isActive", 2);
|
|
4997
4974
|
__decorateClass([
|
|
4998
4975
|
OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4999
4976
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5000
4977
|
CompanyRole = __decorateClass([
|
|
5001
|
-
|
|
4978
|
+
Entity48("company_roles")
|
|
5002
4979
|
], CompanyRole);
|
|
5003
4980
|
|
|
5004
4981
|
// src/entities/company-members-roles.entity.ts
|
|
5005
4982
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5006
4983
|
};
|
|
5007
4984
|
__decorateClass([
|
|
5008
|
-
|
|
5009
|
-
|
|
4985
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
4986
|
+
Index42()
|
|
5010
4987
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5011
4988
|
__decorateClass([
|
|
5012
|
-
|
|
5013
|
-
|
|
4989
|
+
ManyToOne47(() => User),
|
|
4990
|
+
JoinColumn47({ name: "user_id" })
|
|
5014
4991
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5015
4992
|
__decorateClass([
|
|
5016
|
-
|
|
5017
|
-
|
|
4993
|
+
ManyToOne47(() => CompanyRole),
|
|
4994
|
+
JoinColumn47({ name: "company_role_id" })
|
|
5018
4995
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5019
4996
|
__decorateClass([
|
|
5020
|
-
|
|
5021
|
-
|
|
4997
|
+
Column50({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4998
|
+
Index42()
|
|
5022
4999
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5023
5000
|
__decorateClass([
|
|
5024
|
-
|
|
5001
|
+
Column50({ name: "assigned_by", type: "integer", nullable: true })
|
|
5025
5002
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5026
5003
|
CompanyMemberRole = __decorateClass([
|
|
5027
|
-
|
|
5004
|
+
Entity49("company_member_roles")
|
|
5028
5005
|
], CompanyMemberRole);
|
|
5029
5006
|
|
|
5030
5007
|
// src/entities/assessment-answer.entity.ts
|
|
5031
5008
|
import {
|
|
5032
|
-
Entity as
|
|
5033
|
-
Column as
|
|
5034
|
-
ManyToOne as
|
|
5035
|
-
Index as
|
|
5036
|
-
JoinColumn as
|
|
5009
|
+
Entity as Entity52,
|
|
5010
|
+
Column as Column53,
|
|
5011
|
+
ManyToOne as ManyToOne50,
|
|
5012
|
+
Index as Index45,
|
|
5013
|
+
JoinColumn as JoinColumn50
|
|
5037
5014
|
} from "typeorm";
|
|
5038
5015
|
|
|
5039
5016
|
// src/entities/assessment-question.entity.ts
|
|
5040
|
-
import { Entity as
|
|
5017
|
+
import { Entity as Entity51, Column as Column52, OneToMany as OneToMany19, Index as Index44, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
5041
5018
|
|
|
5042
5019
|
// src/entities/assessment-question-option.entity.ts
|
|
5043
5020
|
import {
|
|
5044
|
-
Entity as
|
|
5045
|
-
Column as
|
|
5021
|
+
Entity as Entity50,
|
|
5022
|
+
Column as Column51,
|
|
5046
5023
|
OneToMany as OneToMany18,
|
|
5047
|
-
ManyToOne as
|
|
5048
|
-
Index as
|
|
5049
|
-
JoinColumn as
|
|
5024
|
+
ManyToOne as ManyToOne48,
|
|
5025
|
+
Index as Index43,
|
|
5026
|
+
JoinColumn as JoinColumn48
|
|
5050
5027
|
} from "typeorm";
|
|
5051
5028
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5052
5029
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5057,21 +5034,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5057
5034
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5058
5035
|
};
|
|
5059
5036
|
__decorateClass([
|
|
5060
|
-
|
|
5061
|
-
|
|
5037
|
+
Column51({ name: "question_id", type: "integer", nullable: true }),
|
|
5038
|
+
Index43()
|
|
5062
5039
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5063
5040
|
__decorateClass([
|
|
5064
|
-
|
|
5041
|
+
ManyToOne48(
|
|
5065
5042
|
() => AssessmetQuestion,
|
|
5066
5043
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5067
5044
|
),
|
|
5068
|
-
|
|
5045
|
+
JoinColumn48({ name: "question_id" })
|
|
5069
5046
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5070
5047
|
__decorateClass([
|
|
5071
|
-
|
|
5048
|
+
Column51({ name: "text", type: "varchar", nullable: true })
|
|
5072
5049
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5073
5050
|
__decorateClass([
|
|
5074
|
-
|
|
5051
|
+
Column51({
|
|
5075
5052
|
name: "answer_type",
|
|
5076
5053
|
type: "enum",
|
|
5077
5054
|
enum: AnswerTypeEnum,
|
|
@@ -5079,13 +5056,13 @@ __decorateClass([
|
|
|
5079
5056
|
})
|
|
5080
5057
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5081
5058
|
__decorateClass([
|
|
5082
|
-
|
|
5059
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5083
5060
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5084
5061
|
__decorateClass([
|
|
5085
5062
|
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5086
5063
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5087
5064
|
AssessmetQuestionOption = __decorateClass([
|
|
5088
|
-
|
|
5065
|
+
Entity50("assessment_question_options")
|
|
5089
5066
|
], AssessmetQuestionOption);
|
|
5090
5067
|
|
|
5091
5068
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5097,10 +5074,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5097
5074
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5098
5075
|
};
|
|
5099
5076
|
__decorateClass([
|
|
5100
|
-
|
|
5077
|
+
Column52({ name: "text", type: "varchar", nullable: true })
|
|
5101
5078
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5102
5079
|
__decorateClass([
|
|
5103
|
-
|
|
5080
|
+
Column52({
|
|
5104
5081
|
name: "question_for",
|
|
5105
5082
|
type: "enum",
|
|
5106
5083
|
enum: QuestionForEnum,
|
|
@@ -5108,15 +5085,15 @@ __decorateClass([
|
|
|
5108
5085
|
})
|
|
5109
5086
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5110
5087
|
__decorateClass([
|
|
5111
|
-
|
|
5088
|
+
Column52({ name: "is_active", type: "boolean", default: true })
|
|
5112
5089
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5113
5090
|
__decorateClass([
|
|
5114
|
-
|
|
5115
|
-
|
|
5091
|
+
Column52({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5092
|
+
Index44()
|
|
5116
5093
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5117
5094
|
__decorateClass([
|
|
5118
|
-
|
|
5119
|
-
|
|
5095
|
+
ManyToOne49(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5096
|
+
JoinColumn49({ name: "candidate_id" })
|
|
5120
5097
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5121
5098
|
__decorateClass([
|
|
5122
5099
|
OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -5125,7 +5102,7 @@ __decorateClass([
|
|
|
5125
5102
|
OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5126
5103
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5127
5104
|
AssessmetQuestion = __decorateClass([
|
|
5128
|
-
|
|
5105
|
+
Entity51("assessment_questions")
|
|
5129
5106
|
], AssessmetQuestion);
|
|
5130
5107
|
|
|
5131
5108
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5138,102 +5115,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5138
5115
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5139
5116
|
};
|
|
5140
5117
|
__decorateClass([
|
|
5141
|
-
|
|
5142
|
-
|
|
5118
|
+
Column53({ name: "user_id", type: "integer" }),
|
|
5119
|
+
Index45()
|
|
5143
5120
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5144
5121
|
__decorateClass([
|
|
5145
|
-
|
|
5146
|
-
|
|
5122
|
+
ManyToOne50(() => User, (user) => user.assessmentAnswers),
|
|
5123
|
+
JoinColumn50({ name: "user_id" })
|
|
5147
5124
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5148
5125
|
__decorateClass([
|
|
5149
|
-
|
|
5150
|
-
|
|
5126
|
+
Column53({ name: "question_id", type: "integer" }),
|
|
5127
|
+
Index45()
|
|
5151
5128
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5152
5129
|
__decorateClass([
|
|
5153
|
-
|
|
5130
|
+
ManyToOne50(
|
|
5154
5131
|
() => AssessmetQuestion,
|
|
5155
5132
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5156
5133
|
),
|
|
5157
|
-
|
|
5134
|
+
JoinColumn50({ name: "question_id" })
|
|
5158
5135
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5159
5136
|
__decorateClass([
|
|
5160
|
-
|
|
5161
|
-
|
|
5137
|
+
Column53({ name: "selected_option_id", type: "integer" }),
|
|
5138
|
+
Index45()
|
|
5162
5139
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5163
5140
|
__decorateClass([
|
|
5164
|
-
|
|
5141
|
+
ManyToOne50(
|
|
5165
5142
|
() => AssessmetQuestionOption,
|
|
5166
5143
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5167
5144
|
),
|
|
5168
|
-
|
|
5145
|
+
JoinColumn50({ name: "selected_option_id" })
|
|
5169
5146
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5170
5147
|
__decorateClass([
|
|
5171
|
-
|
|
5148
|
+
Column53({
|
|
5172
5149
|
name: "selected_answer_type",
|
|
5173
5150
|
type: "enum",
|
|
5174
5151
|
enum: SelectedAnswerTypeEnum
|
|
5175
5152
|
})
|
|
5176
5153
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5177
5154
|
__decorateClass([
|
|
5178
|
-
|
|
5155
|
+
Column53({ name: "score", type: "float" })
|
|
5179
5156
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5180
5157
|
AssessmentAnswer = __decorateClass([
|
|
5181
|
-
|
|
5158
|
+
Entity52("assessment_answers")
|
|
5182
5159
|
], AssessmentAnswer);
|
|
5183
5160
|
|
|
5184
5161
|
// src/entities/company-skill.entity.ts
|
|
5185
|
-
import { Entity as
|
|
5162
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
|
|
5186
5163
|
var CompanySkill = class extends BaseEntity {
|
|
5187
5164
|
};
|
|
5188
5165
|
// individual index to find core skills by user
|
|
5189
5166
|
__decorateClass([
|
|
5190
|
-
|
|
5191
|
-
|
|
5167
|
+
Column54({ name: "user_id", type: "integer", nullable: true }),
|
|
5168
|
+
Index46()
|
|
5192
5169
|
], CompanySkill.prototype, "userId", 2);
|
|
5193
5170
|
__decorateClass([
|
|
5194
|
-
|
|
5195
|
-
|
|
5171
|
+
ManyToOne51(() => User, (user) => user.companySkills),
|
|
5172
|
+
JoinColumn51({ name: "user_id" })
|
|
5196
5173
|
], CompanySkill.prototype, "user", 2);
|
|
5197
5174
|
__decorateClass([
|
|
5198
|
-
|
|
5175
|
+
Column54({ name: "skill_name", type: "varchar", nullable: true })
|
|
5199
5176
|
], CompanySkill.prototype, "skillName", 2);
|
|
5200
5177
|
CompanySkill = __decorateClass([
|
|
5201
|
-
|
|
5178
|
+
Entity53("company_skills")
|
|
5202
5179
|
], CompanySkill);
|
|
5203
5180
|
|
|
5204
5181
|
// src/entities/admin-user-role.entity.ts
|
|
5205
|
-
import { Entity as
|
|
5182
|
+
import { Entity as Entity57, Column as Column58, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5206
5183
|
|
|
5207
5184
|
// src/entities/admin-role.entity.ts
|
|
5208
|
-
import { Entity as
|
|
5185
|
+
import { Entity as Entity56, Column as Column57, Index as Index49, OneToMany as OneToMany22 } from "typeorm";
|
|
5209
5186
|
|
|
5210
5187
|
// src/entities/admin-role-permission.entity.ts
|
|
5211
|
-
import { Entity as
|
|
5188
|
+
import { Entity as Entity55, Column as Column56, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
5212
5189
|
|
|
5213
5190
|
// src/entities/admin-permission.entity.ts
|
|
5214
|
-
import { Entity as
|
|
5191
|
+
import { Entity as Entity54, Column as Column55, Index as Index47, OneToMany as OneToMany21 } from "typeorm";
|
|
5215
5192
|
var AdminPermission = class extends BaseEntity {
|
|
5216
5193
|
};
|
|
5217
5194
|
__decorateClass([
|
|
5218
|
-
|
|
5195
|
+
Column55({ name: "permission_name", type: "varchar", nullable: true })
|
|
5219
5196
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5220
5197
|
__decorateClass([
|
|
5221
|
-
|
|
5198
|
+
Column55({
|
|
5222
5199
|
name: "permission_slug",
|
|
5223
5200
|
type: "varchar",
|
|
5224
5201
|
unique: true,
|
|
5225
5202
|
nullable: true
|
|
5226
5203
|
}),
|
|
5227
|
-
|
|
5204
|
+
Index47()
|
|
5228
5205
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5229
5206
|
__decorateClass([
|
|
5230
|
-
|
|
5207
|
+
Column55({ name: "permission_description", type: "varchar", nullable: true })
|
|
5231
5208
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5232
5209
|
__decorateClass([
|
|
5233
|
-
|
|
5210
|
+
Column55({ name: "module", type: "varchar", nullable: true })
|
|
5234
5211
|
], AdminPermission.prototype, "module", 2);
|
|
5235
5212
|
__decorateClass([
|
|
5236
|
-
|
|
5213
|
+
Column55({ name: "is_active", type: "boolean", default: true })
|
|
5237
5214
|
], AdminPermission.prototype, "isActive", 2);
|
|
5238
5215
|
__decorateClass([
|
|
5239
5216
|
OneToMany21(
|
|
@@ -5242,14 +5219,14 @@ __decorateClass([
|
|
|
5242
5219
|
)
|
|
5243
5220
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5244
5221
|
AdminPermission = __decorateClass([
|
|
5245
|
-
|
|
5222
|
+
Entity54("admin_permissions")
|
|
5246
5223
|
], AdminPermission);
|
|
5247
5224
|
|
|
5248
5225
|
// src/entities/admin-role-permission.entity.ts
|
|
5249
5226
|
var AdminRolePermission = class extends BaseEntity {
|
|
5250
5227
|
};
|
|
5251
5228
|
__decorateClass([
|
|
5252
|
-
|
|
5229
|
+
Column56({
|
|
5253
5230
|
name: "role_id",
|
|
5254
5231
|
type: "int",
|
|
5255
5232
|
nullable: true,
|
|
@@ -5257,11 +5234,11 @@ __decorateClass([
|
|
|
5257
5234
|
})
|
|
5258
5235
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5259
5236
|
__decorateClass([
|
|
5260
|
-
|
|
5261
|
-
|
|
5237
|
+
ManyToOne52(() => AdminRole),
|
|
5238
|
+
JoinColumn52({ name: "role_id" })
|
|
5262
5239
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5263
5240
|
__decorateClass([
|
|
5264
|
-
|
|
5241
|
+
Column56({
|
|
5265
5242
|
name: "permission_id",
|
|
5266
5243
|
type: "int",
|
|
5267
5244
|
nullable: true,
|
|
@@ -5269,28 +5246,28 @@ __decorateClass([
|
|
|
5269
5246
|
})
|
|
5270
5247
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5271
5248
|
__decorateClass([
|
|
5272
|
-
|
|
5273
|
-
|
|
5249
|
+
ManyToOne52(() => AdminPermission),
|
|
5250
|
+
JoinColumn52({ name: "permission_id" })
|
|
5274
5251
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5275
5252
|
AdminRolePermission = __decorateClass([
|
|
5276
|
-
|
|
5253
|
+
Entity55("admin_role_permissions")
|
|
5277
5254
|
], AdminRolePermission);
|
|
5278
5255
|
|
|
5279
5256
|
// src/entities/admin-role.entity.ts
|
|
5280
5257
|
var AdminRole = class extends BaseEntity {
|
|
5281
5258
|
};
|
|
5282
5259
|
__decorateClass([
|
|
5283
|
-
|
|
5260
|
+
Column57({ name: "role_name", type: "varchar", nullable: true })
|
|
5284
5261
|
], AdminRole.prototype, "roleName", 2);
|
|
5285
5262
|
__decorateClass([
|
|
5286
|
-
|
|
5287
|
-
|
|
5263
|
+
Column57({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5264
|
+
Index49()
|
|
5288
5265
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5289
5266
|
__decorateClass([
|
|
5290
|
-
|
|
5267
|
+
Column57({ name: "role_description", type: "varchar", nullable: true })
|
|
5291
5268
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5292
5269
|
__decorateClass([
|
|
5293
|
-
|
|
5270
|
+
Column57({ name: "is_active", type: "boolean", default: true })
|
|
5294
5271
|
], AdminRole.prototype, "isActive", 2);
|
|
5295
5272
|
__decorateClass([
|
|
5296
5273
|
OneToMany22(
|
|
@@ -5302,14 +5279,14 @@ __decorateClass([
|
|
|
5302
5279
|
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5303
5280
|
], AdminRole.prototype, "userRoles", 2);
|
|
5304
5281
|
AdminRole = __decorateClass([
|
|
5305
|
-
|
|
5282
|
+
Entity56("admin_roles")
|
|
5306
5283
|
], AdminRole);
|
|
5307
5284
|
|
|
5308
5285
|
// src/entities/admin-user-role.entity.ts
|
|
5309
5286
|
var AdminUserRole = class extends BaseEntity {
|
|
5310
5287
|
};
|
|
5311
5288
|
__decorateClass([
|
|
5312
|
-
|
|
5289
|
+
Column58({
|
|
5313
5290
|
name: "user_id",
|
|
5314
5291
|
type: "int",
|
|
5315
5292
|
nullable: true,
|
|
@@ -5317,11 +5294,11 @@ __decorateClass([
|
|
|
5317
5294
|
})
|
|
5318
5295
|
], AdminUserRole.prototype, "userId", 2);
|
|
5319
5296
|
__decorateClass([
|
|
5320
|
-
|
|
5321
|
-
|
|
5297
|
+
ManyToOne53(() => User),
|
|
5298
|
+
JoinColumn53({ name: "user_id" })
|
|
5322
5299
|
], AdminUserRole.prototype, "user", 2);
|
|
5323
5300
|
__decorateClass([
|
|
5324
|
-
|
|
5301
|
+
Column58({
|
|
5325
5302
|
name: "role_id",
|
|
5326
5303
|
type: "int",
|
|
5327
5304
|
nullable: true,
|
|
@@ -5329,70 +5306,70 @@ __decorateClass([
|
|
|
5329
5306
|
})
|
|
5330
5307
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5331
5308
|
__decorateClass([
|
|
5332
|
-
|
|
5333
|
-
|
|
5309
|
+
ManyToOne53(() => AdminRole),
|
|
5310
|
+
JoinColumn53({ name: "role_id" })
|
|
5334
5311
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5335
5312
|
AdminUserRole = __decorateClass([
|
|
5336
|
-
|
|
5313
|
+
Entity57("admin_user_roles")
|
|
5337
5314
|
], AdminUserRole);
|
|
5338
5315
|
|
|
5339
5316
|
// src/entities/freelancer-resume.entity.ts
|
|
5340
5317
|
import {
|
|
5341
|
-
Entity as
|
|
5342
|
-
Column as
|
|
5343
|
-
Index as
|
|
5344
|
-
ManyToOne as
|
|
5345
|
-
JoinColumn as
|
|
5318
|
+
Entity as Entity58,
|
|
5319
|
+
Column as Column59,
|
|
5320
|
+
Index as Index51,
|
|
5321
|
+
ManyToOne as ManyToOne54,
|
|
5322
|
+
JoinColumn as JoinColumn54
|
|
5346
5323
|
} from "typeorm";
|
|
5347
5324
|
var FreelancerResume = class extends BaseEntity {
|
|
5348
5325
|
};
|
|
5349
5326
|
// individual index to find profile by user
|
|
5350
5327
|
__decorateClass([
|
|
5351
|
-
|
|
5352
|
-
|
|
5328
|
+
Column59({ name: "user_id", type: "integer", nullable: true }),
|
|
5329
|
+
Index51()
|
|
5353
5330
|
], FreelancerResume.prototype, "userId", 2);
|
|
5354
5331
|
__decorateClass([
|
|
5355
|
-
|
|
5356
|
-
|
|
5332
|
+
ManyToOne54(() => User, (user) => user.freelancerProfile),
|
|
5333
|
+
JoinColumn54({ name: "user_id" })
|
|
5357
5334
|
], FreelancerResume.prototype, "user", 2);
|
|
5358
5335
|
__decorateClass([
|
|
5359
|
-
|
|
5336
|
+
Column59({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5360
5337
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5361
5338
|
__decorateClass([
|
|
5362
|
-
|
|
5339
|
+
Column59({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5363
5340
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5364
5341
|
FreelancerResume = __decorateClass([
|
|
5365
|
-
|
|
5342
|
+
Entity58("freelancer_resumes")
|
|
5366
5343
|
], FreelancerResume);
|
|
5367
5344
|
|
|
5368
5345
|
// src/entities/signature.entity.ts
|
|
5369
5346
|
import {
|
|
5370
|
-
Entity as
|
|
5371
|
-
Column as
|
|
5372
|
-
Index as
|
|
5373
|
-
ManyToOne as
|
|
5374
|
-
JoinColumn as
|
|
5347
|
+
Entity as Entity59,
|
|
5348
|
+
Column as Column60,
|
|
5349
|
+
Index as Index52,
|
|
5350
|
+
ManyToOne as ManyToOne55,
|
|
5351
|
+
JoinColumn as JoinColumn55
|
|
5375
5352
|
} from "typeorm";
|
|
5376
5353
|
var Signature = class extends BaseEntity {
|
|
5377
5354
|
};
|
|
5378
5355
|
// individual index to find profile by user
|
|
5379
5356
|
__decorateClass([
|
|
5380
|
-
|
|
5381
|
-
|
|
5357
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5358
|
+
Index52()
|
|
5382
5359
|
], Signature.prototype, "userId", 2);
|
|
5383
5360
|
__decorateClass([
|
|
5384
|
-
|
|
5385
|
-
|
|
5361
|
+
ManyToOne55(() => User, (user) => user.signatures),
|
|
5362
|
+
JoinColumn55({ name: "user_id" })
|
|
5386
5363
|
], Signature.prototype, "user", 2);
|
|
5387
5364
|
__decorateClass([
|
|
5388
|
-
|
|
5365
|
+
Column60({ name: "signature_url", type: "text", nullable: true })
|
|
5389
5366
|
], Signature.prototype, "signatureUrl", 2);
|
|
5390
5367
|
Signature = __decorateClass([
|
|
5391
|
-
|
|
5368
|
+
Entity59("signatures")
|
|
5392
5369
|
], Signature);
|
|
5393
5370
|
|
|
5394
5371
|
// src/entities/dispute.entity.ts
|
|
5395
|
-
import { Entity as
|
|
5372
|
+
import { Entity as Entity60, Column as Column61, Index as Index53, JoinColumn as JoinColumn56, ManyToOne as ManyToOne56 } from "typeorm";
|
|
5396
5373
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5397
5374
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5398
5375
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5413,36 +5390,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5413
5390
|
var Dispute = class extends BaseEntity {
|
|
5414
5391
|
};
|
|
5415
5392
|
__decorateClass([
|
|
5416
|
-
|
|
5417
|
-
|
|
5393
|
+
Column61({ name: "client_id", type: "integer", nullable: true }),
|
|
5394
|
+
Index53()
|
|
5418
5395
|
], Dispute.prototype, "clientId", 2);
|
|
5419
5396
|
__decorateClass([
|
|
5420
|
-
|
|
5421
|
-
|
|
5397
|
+
ManyToOne56(() => User, (user) => user.clientDisputes),
|
|
5398
|
+
JoinColumn56({ name: "client_id" })
|
|
5422
5399
|
], Dispute.prototype, "client", 2);
|
|
5423
5400
|
__decorateClass([
|
|
5424
|
-
|
|
5425
|
-
|
|
5401
|
+
Column61({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5402
|
+
Index53()
|
|
5426
5403
|
], Dispute.prototype, "freelancerId", 2);
|
|
5427
5404
|
__decorateClass([
|
|
5428
|
-
|
|
5429
|
-
|
|
5405
|
+
ManyToOne56(() => User, (user) => user.freelancerDisputes),
|
|
5406
|
+
JoinColumn56({ name: "freelancer_id" })
|
|
5430
5407
|
], Dispute.prototype, "freelancer", 2);
|
|
5431
5408
|
__decorateClass([
|
|
5432
|
-
|
|
5409
|
+
Column61({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5433
5410
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5434
5411
|
__decorateClass([
|
|
5435
|
-
|
|
5436
|
-
|
|
5412
|
+
Column61({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5413
|
+
Index53()
|
|
5437
5414
|
], Dispute.prototype, "disputeType", 2);
|
|
5438
5415
|
__decorateClass([
|
|
5439
|
-
|
|
5416
|
+
Column61({ name: "description", type: "varchar", nullable: true })
|
|
5440
5417
|
], Dispute.prototype, "description", 2);
|
|
5441
5418
|
__decorateClass([
|
|
5442
|
-
|
|
5419
|
+
Column61({ name: "comment", type: "varchar", nullable: true })
|
|
5443
5420
|
], Dispute.prototype, "comment", 2);
|
|
5444
5421
|
__decorateClass([
|
|
5445
|
-
|
|
5422
|
+
Column61({
|
|
5446
5423
|
name: "status",
|
|
5447
5424
|
type: "enum",
|
|
5448
5425
|
enum: DisputeStatusEnum,
|
|
@@ -5450,7 +5427,7 @@ __decorateClass([
|
|
|
5450
5427
|
})
|
|
5451
5428
|
], Dispute.prototype, "status", 2);
|
|
5452
5429
|
__decorateClass([
|
|
5453
|
-
|
|
5430
|
+
Column61({
|
|
5454
5431
|
name: "initiator_type",
|
|
5455
5432
|
type: "enum",
|
|
5456
5433
|
enum: InitiatorTypeEnum,
|
|
@@ -5459,33 +5436,33 @@ __decorateClass([
|
|
|
5459
5436
|
})
|
|
5460
5437
|
], Dispute.prototype, "initiatorType", 2);
|
|
5461
5438
|
__decorateClass([
|
|
5462
|
-
|
|
5463
|
-
|
|
5439
|
+
Column61({ name: "initiator_id", type: "integer" }),
|
|
5440
|
+
Index53()
|
|
5464
5441
|
], Dispute.prototype, "initiatorId", 2);
|
|
5465
5442
|
__decorateClass([
|
|
5466
|
-
|
|
5467
|
-
|
|
5443
|
+
ManyToOne56(() => User, (user) => user.initiatedDisputes),
|
|
5444
|
+
JoinColumn56({ name: "initiator_id" })
|
|
5468
5445
|
], Dispute.prototype, "initiator", 2);
|
|
5469
5446
|
__decorateClass([
|
|
5470
|
-
|
|
5471
|
-
|
|
5447
|
+
Column61({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5448
|
+
Index53()
|
|
5472
5449
|
], Dispute.prototype, "respondentId", 2);
|
|
5473
5450
|
__decorateClass([
|
|
5474
|
-
|
|
5475
|
-
|
|
5451
|
+
ManyToOne56(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5452
|
+
JoinColumn56({ name: "respondent_id" })
|
|
5476
5453
|
], Dispute.prototype, "respondent", 2);
|
|
5477
5454
|
__decorateClass([
|
|
5478
|
-
|
|
5455
|
+
Column61({ name: "attachments", type: "jsonb", nullable: true })
|
|
5479
5456
|
], Dispute.prototype, "attachments", 2);
|
|
5480
5457
|
__decorateClass([
|
|
5481
|
-
|
|
5458
|
+
Column61({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5482
5459
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5483
5460
|
Dispute = __decorateClass([
|
|
5484
|
-
|
|
5461
|
+
Entity60("disputes")
|
|
5485
5462
|
], Dispute);
|
|
5486
5463
|
|
|
5487
5464
|
// src/entities/stripe-transaction.entity.ts
|
|
5488
|
-
import { Entity as
|
|
5465
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
|
|
5489
5466
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5490
5467
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5491
5468
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5507,97 +5484,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5507
5484
|
// Full Stripe session response
|
|
5508
5485
|
};
|
|
5509
5486
|
__decorateClass([
|
|
5510
|
-
|
|
5511
|
-
|
|
5487
|
+
Column62({ name: "user_id", type: "integer", nullable: true }),
|
|
5488
|
+
Index54()
|
|
5512
5489
|
], StripeTransaction.prototype, "userId", 2);
|
|
5513
5490
|
__decorateClass([
|
|
5514
|
-
|
|
5515
|
-
|
|
5491
|
+
ManyToOne57(() => User, (user) => user.stripeTransactions),
|
|
5492
|
+
JoinColumn57({ name: "user_id" })
|
|
5516
5493
|
], StripeTransaction.prototype, "user", 2);
|
|
5517
5494
|
__decorateClass([
|
|
5518
|
-
|
|
5495
|
+
Column62({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5519
5496
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5520
5497
|
__decorateClass([
|
|
5521
|
-
|
|
5498
|
+
Column62({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5522
5499
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5523
5500
|
__decorateClass([
|
|
5524
|
-
|
|
5501
|
+
Column62({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5525
5502
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5526
5503
|
__decorateClass([
|
|
5527
|
-
|
|
5504
|
+
Column62({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5528
5505
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5529
5506
|
__decorateClass([
|
|
5530
|
-
|
|
5507
|
+
Column62({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5531
5508
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5532
5509
|
__decorateClass([
|
|
5533
|
-
|
|
5510
|
+
Column62({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5534
5511
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5535
5512
|
__decorateClass([
|
|
5536
|
-
|
|
5513
|
+
Column62({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5537
5514
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5538
5515
|
__decorateClass([
|
|
5539
|
-
|
|
5516
|
+
Column62({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5540
5517
|
], StripeTransaction.prototype, "type", 2);
|
|
5541
5518
|
__decorateClass([
|
|
5542
|
-
|
|
5519
|
+
Column62({ name: "currency", type: "varchar", nullable: true })
|
|
5543
5520
|
], StripeTransaction.prototype, "currency", 2);
|
|
5544
5521
|
__decorateClass([
|
|
5545
|
-
|
|
5522
|
+
Column62({ 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" })
|
|
5546
5523
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5547
5524
|
__decorateClass([
|
|
5548
|
-
|
|
5525
|
+
Column62({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5549
5526
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5550
5527
|
__decorateClass([
|
|
5551
|
-
|
|
5528
|
+
Column62({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5552
5529
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5553
5530
|
__decorateClass([
|
|
5554
|
-
|
|
5531
|
+
Column62({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5555
5532
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5556
5533
|
__decorateClass([
|
|
5557
|
-
|
|
5534
|
+
Column62({ 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" })
|
|
5558
5535
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5559
5536
|
__decorateClass([
|
|
5560
|
-
|
|
5537
|
+
Column62({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5561
5538
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5562
5539
|
__decorateClass([
|
|
5563
|
-
|
|
5540
|
+
Column62({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5564
5541
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5565
5542
|
__decorateClass([
|
|
5566
|
-
|
|
5543
|
+
Column62({ 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" })
|
|
5567
5544
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5568
5545
|
__decorateClass([
|
|
5569
|
-
|
|
5546
|
+
Column62({ name: "description", type: "text", nullable: true })
|
|
5570
5547
|
], StripeTransaction.prototype, "description", 2);
|
|
5571
5548
|
__decorateClass([
|
|
5572
|
-
|
|
5549
|
+
Column62({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5573
5550
|
], StripeTransaction.prototype, "status", 2);
|
|
5574
5551
|
__decorateClass([
|
|
5575
|
-
|
|
5552
|
+
Column62({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5576
5553
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5577
5554
|
__decorateClass([
|
|
5578
|
-
|
|
5555
|
+
Column62({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5579
5556
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5580
5557
|
__decorateClass([
|
|
5581
|
-
|
|
5558
|
+
Column62({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5582
5559
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5583
5560
|
__decorateClass([
|
|
5584
|
-
|
|
5561
|
+
Column62({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5585
5562
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5586
5563
|
__decorateClass([
|
|
5587
|
-
|
|
5564
|
+
Column62({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5588
5565
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5589
5566
|
__decorateClass([
|
|
5590
|
-
|
|
5567
|
+
Column62({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5591
5568
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5592
5569
|
StripeTransaction = __decorateClass([
|
|
5593
|
-
|
|
5570
|
+
Entity61("stripe_transactions")
|
|
5594
5571
|
], StripeTransaction);
|
|
5595
5572
|
|
|
5596
5573
|
// src/entities/wallet.entity.ts
|
|
5597
|
-
import { Entity as
|
|
5574
|
+
import { Entity as Entity63, Column as Column64, Index as Index56, JoinColumn as JoinColumn59, OneToOne as OneToOne12, OneToMany as OneToMany23 } from "typeorm";
|
|
5598
5575
|
|
|
5599
5576
|
// src/entities/wallet-transaction.entity.ts
|
|
5600
|
-
import { Entity as
|
|
5577
|
+
import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
|
|
5601
5578
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5602
5579
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5603
5580
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5614,46 +5591,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5614
5591
|
var WalletTransaction = class extends BaseEntity {
|
|
5615
5592
|
};
|
|
5616
5593
|
__decorateClass([
|
|
5617
|
-
|
|
5618
|
-
|
|
5594
|
+
Column63({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5595
|
+
Index55()
|
|
5619
5596
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5620
5597
|
__decorateClass([
|
|
5621
|
-
|
|
5622
|
-
|
|
5598
|
+
ManyToOne58(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5599
|
+
JoinColumn58({ name: "wallet_id" })
|
|
5623
5600
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5624
5601
|
__decorateClass([
|
|
5625
|
-
|
|
5602
|
+
Column63({ name: "amount", type: "bigint", nullable: true })
|
|
5626
5603
|
], WalletTransaction.prototype, "amount", 2);
|
|
5627
5604
|
__decorateClass([
|
|
5628
|
-
|
|
5605
|
+
Column63({ name: "balance_before", type: "bigint", nullable: true })
|
|
5629
5606
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5630
5607
|
__decorateClass([
|
|
5631
|
-
|
|
5608
|
+
Column63({ name: "balance_after", type: "bigint", nullable: true })
|
|
5632
5609
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5633
5610
|
__decorateClass([
|
|
5634
|
-
|
|
5611
|
+
Column63({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5635
5612
|
], WalletTransaction.prototype, "type", 2);
|
|
5636
5613
|
__decorateClass([
|
|
5637
|
-
|
|
5614
|
+
Column63({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5638
5615
|
], WalletTransaction.prototype, "status", 2);
|
|
5639
5616
|
__decorateClass([
|
|
5640
|
-
|
|
5617
|
+
Column63({ name: "description", type: "text", nullable: true })
|
|
5641
5618
|
], WalletTransaction.prototype, "description", 2);
|
|
5642
5619
|
__decorateClass([
|
|
5643
|
-
|
|
5620
|
+
Column63({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5644
5621
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5645
5622
|
__decorateClass([
|
|
5646
|
-
|
|
5623
|
+
Column63({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5647
5624
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5648
5625
|
__decorateClass([
|
|
5649
|
-
|
|
5626
|
+
Column63({ name: "meta_data", type: "varchar", nullable: true })
|
|
5650
5627
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5651
5628
|
__decorateClass([
|
|
5652
|
-
|
|
5653
|
-
|
|
5629
|
+
Column63({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5630
|
+
Index55()
|
|
5654
5631
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5655
5632
|
WalletTransaction = __decorateClass([
|
|
5656
|
-
|
|
5633
|
+
Entity62("wallet_transactions")
|
|
5657
5634
|
], WalletTransaction);
|
|
5658
5635
|
|
|
5659
5636
|
// src/entities/wallet.entity.ts
|
|
@@ -5671,48 +5648,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5671
5648
|
var Wallet = class extends BaseEntity {
|
|
5672
5649
|
};
|
|
5673
5650
|
__decorateClass([
|
|
5674
|
-
|
|
5675
|
-
|
|
5651
|
+
Column64({ name: "user_id", type: "integer", nullable: true }),
|
|
5652
|
+
Index56()
|
|
5676
5653
|
], Wallet.prototype, "userId", 2);
|
|
5677
5654
|
__decorateClass([
|
|
5678
5655
|
OneToOne12(() => User, (user) => user.wallet),
|
|
5679
|
-
|
|
5656
|
+
JoinColumn59({ name: "user_id" })
|
|
5680
5657
|
], Wallet.prototype, "user", 2);
|
|
5681
5658
|
__decorateClass([
|
|
5682
|
-
|
|
5659
|
+
Column64({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5683
5660
|
], Wallet.prototype, "accountType", 2);
|
|
5684
5661
|
__decorateClass([
|
|
5685
|
-
|
|
5662
|
+
Column64({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5686
5663
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5687
5664
|
__decorateClass([
|
|
5688
|
-
|
|
5665
|
+
Column64({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5689
5666
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5690
5667
|
__decorateClass([
|
|
5691
|
-
|
|
5668
|
+
Column64({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5692
5669
|
], Wallet.prototype, "walletBalance", 2);
|
|
5693
5670
|
__decorateClass([
|
|
5694
|
-
|
|
5671
|
+
Column64({ 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" })
|
|
5695
5672
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5696
5673
|
__decorateClass([
|
|
5697
|
-
|
|
5674
|
+
Column64({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5698
5675
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5699
5676
|
__decorateClass([
|
|
5700
|
-
|
|
5677
|
+
Column64({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5701
5678
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5702
5679
|
__decorateClass([
|
|
5703
5680
|
OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5704
5681
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5705
5682
|
Wallet = __decorateClass([
|
|
5706
|
-
|
|
5683
|
+
Entity63("wallets")
|
|
5707
5684
|
], Wallet);
|
|
5708
5685
|
|
|
5709
5686
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5710
5687
|
import {
|
|
5711
|
-
Entity as
|
|
5712
|
-
Column as
|
|
5713
|
-
ManyToOne as
|
|
5714
|
-
Index as
|
|
5715
|
-
JoinColumn as
|
|
5688
|
+
Entity as Entity64,
|
|
5689
|
+
Column as Column65,
|
|
5690
|
+
ManyToOne as ManyToOne59,
|
|
5691
|
+
Index as Index57,
|
|
5692
|
+
JoinColumn as JoinColumn60
|
|
5716
5693
|
} from "typeorm";
|
|
5717
5694
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5718
5695
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -5723,23 +5700,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5723
5700
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5724
5701
|
};
|
|
5725
5702
|
__decorateClass([
|
|
5726
|
-
|
|
5727
|
-
|
|
5703
|
+
Column65({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5704
|
+
Index57()
|
|
5728
5705
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5729
5706
|
__decorateClass([
|
|
5730
|
-
|
|
5731
|
-
|
|
5707
|
+
ManyToOne59(() => User, (user) => user.freelancerAssessmentRequests),
|
|
5708
|
+
JoinColumn60({ name: "freelancer_id" })
|
|
5732
5709
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5733
5710
|
__decorateClass([
|
|
5734
|
-
|
|
5735
|
-
|
|
5711
|
+
Column65({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5712
|
+
Index57()
|
|
5736
5713
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5737
5714
|
__decorateClass([
|
|
5738
|
-
|
|
5739
|
-
|
|
5715
|
+
ManyToOne59(() => User, (user) => user.assessmentRequests),
|
|
5716
|
+
JoinColumn60({ name: "approved_by_id" })
|
|
5740
5717
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5741
5718
|
__decorateClass([
|
|
5742
|
-
|
|
5719
|
+
Column65({
|
|
5743
5720
|
name: "status",
|
|
5744
5721
|
type: "enum",
|
|
5745
5722
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5747,44 +5724,44 @@ __decorateClass([
|
|
|
5747
5724
|
})
|
|
5748
5725
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5749
5726
|
__decorateClass([
|
|
5750
|
-
|
|
5727
|
+
Column65({ name: "assessment_link", type: "text", nullable: true })
|
|
5751
5728
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5752
5729
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5753
|
-
|
|
5730
|
+
Entity64({ name: "freelancer_assessment_requests" })
|
|
5754
5731
|
], FreelancerAssessmentRequest);
|
|
5755
5732
|
|
|
5756
5733
|
// src/entities/in-app-notification.entity.ts
|
|
5757
|
-
import { Entity as
|
|
5734
|
+
import { Entity as Entity65, Column as Column66, Index as Index58, ManyToOne as ManyToOne60, JoinColumn as JoinColumn61 } from "typeorm";
|
|
5758
5735
|
var InAppNotification = class extends BaseEntity {
|
|
5759
5736
|
};
|
|
5760
5737
|
__decorateClass([
|
|
5761
|
-
|
|
5762
|
-
|
|
5738
|
+
Column66({ name: "user_id", type: "integer", nullable: true }),
|
|
5739
|
+
Index58()
|
|
5763
5740
|
], InAppNotification.prototype, "userId", 2);
|
|
5764
5741
|
__decorateClass([
|
|
5765
|
-
|
|
5766
|
-
|
|
5742
|
+
ManyToOne60(() => User, (user) => user.inAppNotifications),
|
|
5743
|
+
JoinColumn61({ name: "user_id" })
|
|
5767
5744
|
], InAppNotification.prototype, "user", 2);
|
|
5768
5745
|
__decorateClass([
|
|
5769
|
-
|
|
5746
|
+
Column66({ name: "event", type: "varchar", nullable: true })
|
|
5770
5747
|
], InAppNotification.prototype, "event", 2);
|
|
5771
5748
|
__decorateClass([
|
|
5772
|
-
|
|
5749
|
+
Column66({ name: "title", type: "varchar", nullable: true })
|
|
5773
5750
|
], InAppNotification.prototype, "title", 2);
|
|
5774
5751
|
__decorateClass([
|
|
5775
|
-
|
|
5752
|
+
Column66({ name: "message", type: "varchar", nullable: true })
|
|
5776
5753
|
], InAppNotification.prototype, "message", 2);
|
|
5777
5754
|
__decorateClass([
|
|
5778
|
-
|
|
5755
|
+
Column66({ name: "redirect_url", type: "varchar", nullable: true })
|
|
5779
5756
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
5780
5757
|
__decorateClass([
|
|
5781
|
-
|
|
5758
|
+
Column66({ name: "is_read", type: "boolean", default: false })
|
|
5782
5759
|
], InAppNotification.prototype, "isRead", 2);
|
|
5783
5760
|
__decorateClass([
|
|
5784
|
-
|
|
5761
|
+
Column66({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5785
5762
|
], InAppNotification.prototype, "metaData", 2);
|
|
5786
5763
|
InAppNotification = __decorateClass([
|
|
5787
|
-
|
|
5764
|
+
Entity65("in_app_notifications")
|
|
5788
5765
|
], InAppNotification);
|
|
5789
5766
|
|
|
5790
5767
|
// src/entities/user.entity.ts
|
|
@@ -5813,51 +5790,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5813
5790
|
var User = class extends BaseEntity {
|
|
5814
5791
|
};
|
|
5815
5792
|
__decorateClass([
|
|
5816
|
-
|
|
5793
|
+
Column67({ name: "unique_id", type: "varchar", unique: true })
|
|
5817
5794
|
], User.prototype, "uniqueId", 2);
|
|
5818
5795
|
__decorateClass([
|
|
5819
|
-
|
|
5820
|
-
|
|
5796
|
+
Column67({ name: "parent_id", type: "integer", nullable: true }),
|
|
5797
|
+
Index59()
|
|
5821
5798
|
], User.prototype, "parentId", 2);
|
|
5822
5799
|
__decorateClass([
|
|
5823
|
-
|
|
5824
|
-
|
|
5800
|
+
ManyToOne61(() => User, (user) => user.children, { nullable: true }),
|
|
5801
|
+
JoinColumn62({ name: "parent_id" })
|
|
5825
5802
|
], User.prototype, "parent", 2);
|
|
5826
5803
|
__decorateClass([
|
|
5827
5804
|
OneToMany24(() => User, (user) => user.parent)
|
|
5828
5805
|
], User.prototype, "children", 2);
|
|
5829
5806
|
__decorateClass([
|
|
5830
|
-
|
|
5807
|
+
Column67({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5831
5808
|
], User.prototype, "username", 2);
|
|
5832
5809
|
__decorateClass([
|
|
5833
|
-
|
|
5810
|
+
Column67({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5834
5811
|
], User.prototype, "firstName", 2);
|
|
5835
5812
|
__decorateClass([
|
|
5836
|
-
|
|
5813
|
+
Column67({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5837
5814
|
], User.prototype, "lastName", 2);
|
|
5838
5815
|
__decorateClass([
|
|
5839
|
-
|
|
5816
|
+
Column67({ name: "date_of_birth", type: "date", nullable: true })
|
|
5840
5817
|
], User.prototype, "dateOfBirth", 2);
|
|
5841
5818
|
__decorateClass([
|
|
5842
|
-
|
|
5819
|
+
Column67({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5843
5820
|
], User.prototype, "gender", 2);
|
|
5844
5821
|
__decorateClass([
|
|
5845
|
-
|
|
5822
|
+
Column67({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5846
5823
|
], User.prototype, "profilePictureUrl", 2);
|
|
5847
5824
|
__decorateClass([
|
|
5848
|
-
|
|
5825
|
+
Column67({ name: "email", type: "varchar", unique: true })
|
|
5849
5826
|
], User.prototype, "email", 2);
|
|
5850
5827
|
__decorateClass([
|
|
5851
|
-
|
|
5828
|
+
Column67({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5852
5829
|
], User.prototype, "mobileCode", 2);
|
|
5853
5830
|
__decorateClass([
|
|
5854
|
-
|
|
5831
|
+
Column67({ name: "mobile", type: "varchar", nullable: true })
|
|
5855
5832
|
], User.prototype, "mobile", 2);
|
|
5856
5833
|
__decorateClass([
|
|
5857
|
-
|
|
5834
|
+
Column67({ name: "password", type: "varchar", nullable: true })
|
|
5858
5835
|
], User.prototype, "password", 2);
|
|
5859
5836
|
__decorateClass([
|
|
5860
|
-
|
|
5837
|
+
Column67({
|
|
5861
5838
|
name: "account_type",
|
|
5862
5839
|
type: "enum",
|
|
5863
5840
|
enum: AccountType2,
|
|
@@ -5865,7 +5842,7 @@ __decorateClass([
|
|
|
5865
5842
|
})
|
|
5866
5843
|
], User.prototype, "accountType", 2);
|
|
5867
5844
|
__decorateClass([
|
|
5868
|
-
|
|
5845
|
+
Column67({
|
|
5869
5846
|
name: "account_status",
|
|
5870
5847
|
type: "enum",
|
|
5871
5848
|
enum: AccountStatus,
|
|
@@ -5873,42 +5850,42 @@ __decorateClass([
|
|
|
5873
5850
|
})
|
|
5874
5851
|
], User.prototype, "accountStatus", 2);
|
|
5875
5852
|
__decorateClass([
|
|
5876
|
-
|
|
5853
|
+
Column67({ name: "is_email_verified", type: "boolean", default: false })
|
|
5877
5854
|
], User.prototype, "isEmailVerified", 2);
|
|
5878
5855
|
__decorateClass([
|
|
5879
|
-
|
|
5856
|
+
Column67({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5880
5857
|
], User.prototype, "isMobileVerified", 2);
|
|
5881
5858
|
__decorateClass([
|
|
5882
|
-
|
|
5859
|
+
Column67({ name: "is_social", type: "boolean", default: false })
|
|
5883
5860
|
], User.prototype, "isSocial", 2);
|
|
5884
5861
|
__decorateClass([
|
|
5885
|
-
|
|
5862
|
+
Column67({
|
|
5886
5863
|
name: "last_login_at",
|
|
5887
5864
|
type: "timestamp with time zone",
|
|
5888
5865
|
nullable: true
|
|
5889
5866
|
})
|
|
5890
5867
|
], User.prototype, "lastLoginAt", 2);
|
|
5891
5868
|
__decorateClass([
|
|
5892
|
-
|
|
5869
|
+
Column67({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5893
5870
|
], User.prototype, "lastLoginIp", 2);
|
|
5894
5871
|
__decorateClass([
|
|
5895
|
-
|
|
5872
|
+
Column67({ name: "reset_token", type: "varchar", nullable: true })
|
|
5896
5873
|
], User.prototype, "resetToken", 2);
|
|
5897
5874
|
__decorateClass([
|
|
5898
|
-
|
|
5875
|
+
Column67({
|
|
5899
5876
|
name: "reset_token_expire_at",
|
|
5900
5877
|
type: "timestamp with time zone",
|
|
5901
5878
|
nullable: true
|
|
5902
5879
|
})
|
|
5903
5880
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5904
5881
|
__decorateClass([
|
|
5905
|
-
|
|
5882
|
+
Column67({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5906
5883
|
], User.prototype, "setPasswordToken", 2);
|
|
5907
5884
|
__decorateClass([
|
|
5908
5885
|
OneToMany24(() => RefreshToken, (token) => token.user)
|
|
5909
5886
|
], User.prototype, "refreshTokens", 2);
|
|
5910
5887
|
__decorateClass([
|
|
5911
|
-
|
|
5888
|
+
Column67({
|
|
5912
5889
|
name: "provider",
|
|
5913
5890
|
type: "enum",
|
|
5914
5891
|
enum: Provider,
|
|
@@ -5917,19 +5894,19 @@ __decorateClass([
|
|
|
5917
5894
|
})
|
|
5918
5895
|
], User.prototype, "provider", 2);
|
|
5919
5896
|
__decorateClass([
|
|
5920
|
-
|
|
5897
|
+
Column67({ name: "provider_token", type: "varchar", nullable: true })
|
|
5921
5898
|
], User.prototype, "providerToken", 2);
|
|
5922
5899
|
__decorateClass([
|
|
5923
|
-
|
|
5900
|
+
Column67({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5924
5901
|
], User.prototype, "linkedInId", 2);
|
|
5925
5902
|
__decorateClass([
|
|
5926
|
-
|
|
5903
|
+
Column67({ name: "google_id", type: "varchar", nullable: true })
|
|
5927
5904
|
], User.prototype, "googleId", 2);
|
|
5928
5905
|
__decorateClass([
|
|
5929
|
-
|
|
5906
|
+
Column67({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5930
5907
|
], User.prototype, "gitLabsId", 2);
|
|
5931
5908
|
__decorateClass([
|
|
5932
|
-
|
|
5909
|
+
Column67({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5933
5910
|
], User.prototype, "onBoardedBy", 2);
|
|
5934
5911
|
__decorateClass([
|
|
5935
5912
|
OneToMany24(() => Otp, (otp) => otp.user)
|
|
@@ -6161,7 +6138,7 @@ __decorateClass([
|
|
|
6161
6138
|
OneToMany24(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6162
6139
|
], User.prototype, "inAppNotifications", 2);
|
|
6163
6140
|
User = __decorateClass([
|
|
6164
|
-
|
|
6141
|
+
Entity66("users")
|
|
6165
6142
|
], User);
|
|
6166
6143
|
|
|
6167
6144
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -6762,6 +6739,10 @@ var CreateJobViaAIDto = class {
|
|
|
6762
6739
|
this.isDraft = false;
|
|
6763
6740
|
}
|
|
6764
6741
|
};
|
|
6742
|
+
__decorateClass([
|
|
6743
|
+
IsNumber4({}, { message: "User ID must be a number" }),
|
|
6744
|
+
Type3(() => Number)
|
|
6745
|
+
], CreateJobViaAIDto.prototype, "userId", 2);
|
|
6765
6746
|
__decorateClass([
|
|
6766
6747
|
IsOptional22(),
|
|
6767
6748
|
Type3(() => Boolean)
|
|
@@ -12849,11 +12830,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12849
12830
|
};
|
|
12850
12831
|
|
|
12851
12832
|
// src/entities/sequence-generator.entity.ts
|
|
12852
|
-
import { Entity as
|
|
12833
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
12853
12834
|
var SequenceGenerator = class extends BaseEntity {
|
|
12854
12835
|
};
|
|
12855
12836
|
__decorateClass([
|
|
12856
|
-
|
|
12837
|
+
Column68({
|
|
12857
12838
|
name: "module",
|
|
12858
12839
|
type: "varchar",
|
|
12859
12840
|
length: 50,
|
|
@@ -12862,7 +12843,7 @@ __decorateClass([
|
|
|
12862
12843
|
})
|
|
12863
12844
|
], SequenceGenerator.prototype, "module", 2);
|
|
12864
12845
|
__decorateClass([
|
|
12865
|
-
|
|
12846
|
+
Column68({
|
|
12866
12847
|
name: "prefix",
|
|
12867
12848
|
type: "varchar",
|
|
12868
12849
|
length: 10,
|
|
@@ -12871,7 +12852,7 @@ __decorateClass([
|
|
|
12871
12852
|
})
|
|
12872
12853
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12873
12854
|
__decorateClass([
|
|
12874
|
-
|
|
12855
|
+
Column68({
|
|
12875
12856
|
name: "last_sequence",
|
|
12876
12857
|
type: "int",
|
|
12877
12858
|
nullable: false,
|
|
@@ -12879,7 +12860,7 @@ __decorateClass([
|
|
|
12879
12860
|
})
|
|
12880
12861
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12881
12862
|
__decorateClass([
|
|
12882
|
-
|
|
12863
|
+
Column68({
|
|
12883
12864
|
name: "year",
|
|
12884
12865
|
type: "int",
|
|
12885
12866
|
nullable: true,
|
|
@@ -12887,11 +12868,11 @@ __decorateClass([
|
|
|
12887
12868
|
})
|
|
12888
12869
|
], SequenceGenerator.prototype, "year", 2);
|
|
12889
12870
|
SequenceGenerator = __decorateClass([
|
|
12890
|
-
|
|
12871
|
+
Entity67("sequence_generators")
|
|
12891
12872
|
], SequenceGenerator);
|
|
12892
12873
|
|
|
12893
12874
|
// src/entities/question.entity.ts
|
|
12894
|
-
import { Entity as
|
|
12875
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
12895
12876
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12896
12877
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12897
12878
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12900,16 +12881,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12900
12881
|
var Question = class extends BaseEntity {
|
|
12901
12882
|
};
|
|
12902
12883
|
__decorateClass([
|
|
12903
|
-
|
|
12884
|
+
Column69({ name: "question", type: "varchar" })
|
|
12904
12885
|
], Question.prototype, "question", 2);
|
|
12905
12886
|
__decorateClass([
|
|
12906
|
-
|
|
12887
|
+
Column69({ name: "hint", type: "varchar", nullable: true })
|
|
12907
12888
|
], Question.prototype, "hint", 2);
|
|
12908
12889
|
__decorateClass([
|
|
12909
|
-
|
|
12890
|
+
Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12910
12891
|
], Question.prototype, "slug", 2);
|
|
12911
12892
|
__decorateClass([
|
|
12912
|
-
|
|
12893
|
+
Column69({
|
|
12913
12894
|
name: "question_for",
|
|
12914
12895
|
type: "enum",
|
|
12915
12896
|
enum: QuestionFor,
|
|
@@ -12917,49 +12898,49 @@ __decorateClass([
|
|
|
12917
12898
|
})
|
|
12918
12899
|
], Question.prototype, "questionFor", 2);
|
|
12919
12900
|
__decorateClass([
|
|
12920
|
-
|
|
12901
|
+
Column69({ name: "type", type: "varchar", nullable: true })
|
|
12921
12902
|
], Question.prototype, "type", 2);
|
|
12922
12903
|
__decorateClass([
|
|
12923
|
-
|
|
12904
|
+
Column69({ name: "options", type: "jsonb", nullable: true })
|
|
12924
12905
|
], Question.prototype, "options", 2);
|
|
12925
12906
|
__decorateClass([
|
|
12926
|
-
|
|
12907
|
+
Column69({ name: "is_active", type: "boolean", default: false })
|
|
12927
12908
|
], Question.prototype, "isActive", 2);
|
|
12928
12909
|
Question = __decorateClass([
|
|
12929
|
-
|
|
12910
|
+
Entity68("questions")
|
|
12930
12911
|
], Question);
|
|
12931
12912
|
|
|
12932
12913
|
// src/entities/skill.entity.ts
|
|
12933
|
-
import { Entity as
|
|
12914
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
12934
12915
|
var Skill = class extends BaseEntity {
|
|
12935
12916
|
};
|
|
12936
12917
|
__decorateClass([
|
|
12937
|
-
|
|
12918
|
+
Column70({ name: "name", type: "varchar", nullable: true })
|
|
12938
12919
|
], Skill.prototype, "name", 2);
|
|
12939
12920
|
__decorateClass([
|
|
12940
|
-
|
|
12921
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12941
12922
|
], Skill.prototype, "slug", 2);
|
|
12942
12923
|
__decorateClass([
|
|
12943
|
-
|
|
12924
|
+
Column70({ name: "is_active", type: "boolean", default: false })
|
|
12944
12925
|
], Skill.prototype, "isActive", 2);
|
|
12945
12926
|
Skill = __decorateClass([
|
|
12946
|
-
|
|
12927
|
+
Entity69("skills")
|
|
12947
12928
|
], Skill);
|
|
12948
12929
|
|
|
12949
12930
|
// src/entities/skill-catalog.entity.ts
|
|
12950
12931
|
import {
|
|
12951
|
-
Entity as
|
|
12952
|
-
Column as
|
|
12953
|
-
Index as
|
|
12932
|
+
Entity as Entity70,
|
|
12933
|
+
Column as Column71,
|
|
12934
|
+
Index as Index60
|
|
12954
12935
|
} from "typeorm";
|
|
12955
12936
|
var SkillCatalog = class extends BaseEntity {
|
|
12956
12937
|
};
|
|
12957
12938
|
__decorateClass([
|
|
12958
|
-
|
|
12959
|
-
|
|
12939
|
+
Column71({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
12940
|
+
Index60()
|
|
12960
12941
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12961
12942
|
__decorateClass([
|
|
12962
|
-
|
|
12943
|
+
Column71({
|
|
12963
12944
|
name: "aliases",
|
|
12964
12945
|
type: "text",
|
|
12965
12946
|
array: true,
|
|
@@ -12967,20 +12948,20 @@ __decorateClass([
|
|
|
12967
12948
|
})
|
|
12968
12949
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12969
12950
|
__decorateClass([
|
|
12970
|
-
|
|
12951
|
+
Column71({
|
|
12971
12952
|
name: "variations",
|
|
12972
12953
|
type: "jsonb",
|
|
12973
12954
|
default: "{}"
|
|
12974
12955
|
})
|
|
12975
12956
|
], SkillCatalog.prototype, "variations", 2);
|
|
12976
12957
|
__decorateClass([
|
|
12977
|
-
|
|
12958
|
+
Column71({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12978
12959
|
], SkillCatalog.prototype, "category", 2);
|
|
12979
12960
|
__decorateClass([
|
|
12980
|
-
|
|
12961
|
+
Column71({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12981
12962
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12982
12963
|
__decorateClass([
|
|
12983
|
-
|
|
12964
|
+
Column71({
|
|
12984
12965
|
name: "related_skills",
|
|
12985
12966
|
type: "text",
|
|
12986
12967
|
array: true,
|
|
@@ -12988,113 +12969,113 @@ __decorateClass([
|
|
|
12988
12969
|
})
|
|
12989
12970
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12990
12971
|
__decorateClass([
|
|
12991
|
-
|
|
12992
|
-
|
|
12972
|
+
Column71({ name: "usage_count", type: "integer", default: 0 }),
|
|
12973
|
+
Index60()
|
|
12993
12974
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12994
12975
|
__decorateClass([
|
|
12995
|
-
|
|
12976
|
+
Column71({ name: "is_verified", type: "boolean", default: false })
|
|
12996
12977
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12997
12978
|
__decorateClass([
|
|
12998
|
-
|
|
12979
|
+
Column71({ name: "first_seen_date", type: "date" })
|
|
12999
12980
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13000
12981
|
__decorateClass([
|
|
13001
|
-
|
|
12982
|
+
Column71({ name: "last_updated_date", type: "date" })
|
|
13002
12983
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13003
12984
|
__decorateClass([
|
|
13004
|
-
|
|
12985
|
+
Column71({
|
|
13005
12986
|
name: "search_vector",
|
|
13006
12987
|
type: "tsvector",
|
|
13007
12988
|
nullable: true
|
|
13008
12989
|
})
|
|
13009
12990
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13010
12991
|
SkillCatalog = __decorateClass([
|
|
13011
|
-
|
|
12992
|
+
Entity70("skill_catalogs")
|
|
13012
12993
|
], SkillCatalog);
|
|
13013
12994
|
|
|
13014
12995
|
// src/entities/job-role.entity.ts
|
|
13015
|
-
import { Entity as
|
|
12996
|
+
import { Entity as Entity71, Column as Column72 } from "typeorm";
|
|
13016
12997
|
var JobRoles = class extends BaseEntity {
|
|
13017
12998
|
};
|
|
13018
12999
|
__decorateClass([
|
|
13019
|
-
|
|
13000
|
+
Column72({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13020
13001
|
], JobRoles.prototype, "slug", 2);
|
|
13021
13002
|
__decorateClass([
|
|
13022
|
-
|
|
13003
|
+
Column72({ name: "name", type: "varchar", nullable: true })
|
|
13023
13004
|
], JobRoles.prototype, "name", 2);
|
|
13024
13005
|
__decorateClass([
|
|
13025
|
-
|
|
13006
|
+
Column72({ name: "is_active", type: "boolean", default: true })
|
|
13026
13007
|
], JobRoles.prototype, "isActive", 2);
|
|
13027
13008
|
JobRoles = __decorateClass([
|
|
13028
|
-
|
|
13009
|
+
Entity71("job_roles")
|
|
13029
13010
|
], JobRoles);
|
|
13030
13011
|
|
|
13031
13012
|
// src/entities/plan.entity.ts
|
|
13032
|
-
import { Entity as
|
|
13013
|
+
import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
13033
13014
|
|
|
13034
13015
|
// src/entities/feature.entity.ts
|
|
13035
|
-
import { Entity as
|
|
13016
|
+
import { Entity as Entity72, Column as Column73, ManyToMany as ManyToMany2 } from "typeorm";
|
|
13036
13017
|
var Feature = class extends BaseEntity {
|
|
13037
13018
|
};
|
|
13038
13019
|
__decorateClass([
|
|
13039
|
-
|
|
13020
|
+
Column73({ name: "name", type: "varchar", unique: true })
|
|
13040
13021
|
], Feature.prototype, "name", 2);
|
|
13041
13022
|
__decorateClass([
|
|
13042
13023
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
13043
13024
|
], Feature.prototype, "plans", 2);
|
|
13044
13025
|
Feature = __decorateClass([
|
|
13045
|
-
|
|
13026
|
+
Entity72("features")
|
|
13046
13027
|
], Feature);
|
|
13047
13028
|
|
|
13048
13029
|
// src/entities/plan.entity.ts
|
|
13049
13030
|
var Plan = class extends BaseEntity {
|
|
13050
13031
|
};
|
|
13051
13032
|
__decorateClass([
|
|
13052
|
-
|
|
13033
|
+
Column74({ name: "name", type: "varchar", unique: true })
|
|
13053
13034
|
], Plan.prototype, "name", 2);
|
|
13054
13035
|
__decorateClass([
|
|
13055
|
-
|
|
13036
|
+
Column74({ name: "description", type: "varchar", nullable: true })
|
|
13056
13037
|
], Plan.prototype, "description", 2);
|
|
13057
13038
|
__decorateClass([
|
|
13058
|
-
|
|
13039
|
+
Column74({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
13059
13040
|
], Plan.prototype, "price", 2);
|
|
13060
13041
|
__decorateClass([
|
|
13061
|
-
|
|
13042
|
+
Column74({ name: "billing_period", type: "varchar" })
|
|
13062
13043
|
], Plan.prototype, "billingPeriod", 2);
|
|
13063
13044
|
__decorateClass([
|
|
13064
|
-
|
|
13045
|
+
Column74({ name: "is_current", type: "boolean", default: false })
|
|
13065
13046
|
], Plan.prototype, "isCurrent", 2);
|
|
13066
13047
|
__decorateClass([
|
|
13067
13048
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
13068
13049
|
JoinTable()
|
|
13069
13050
|
], Plan.prototype, "features", 2);
|
|
13070
13051
|
Plan = __decorateClass([
|
|
13071
|
-
|
|
13052
|
+
Entity73("plans")
|
|
13072
13053
|
], Plan);
|
|
13073
13054
|
|
|
13074
13055
|
// src/entities/cms.entity.ts
|
|
13075
|
-
import { Entity as
|
|
13056
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
13076
13057
|
var Cms = class extends BaseEntity {
|
|
13077
13058
|
};
|
|
13078
13059
|
__decorateClass([
|
|
13079
|
-
|
|
13060
|
+
Column75({ name: "title", type: "varchar", nullable: true })
|
|
13080
13061
|
], Cms.prototype, "title", 2);
|
|
13081
13062
|
__decorateClass([
|
|
13082
|
-
|
|
13063
|
+
Column75({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13083
13064
|
], Cms.prototype, "slug", 2);
|
|
13084
13065
|
__decorateClass([
|
|
13085
|
-
|
|
13066
|
+
Column75({ name: "content", type: "varchar", nullable: true })
|
|
13086
13067
|
], Cms.prototype, "content", 2);
|
|
13087
13068
|
__decorateClass([
|
|
13088
|
-
|
|
13069
|
+
Column75({ name: "is_active", type: "boolean", default: true })
|
|
13089
13070
|
], Cms.prototype, "isActive", 2);
|
|
13090
13071
|
Cms = __decorateClass([
|
|
13091
|
-
|
|
13072
|
+
Entity74("cms")
|
|
13092
13073
|
], Cms);
|
|
13093
13074
|
|
|
13094
13075
|
// src/entities/lead.entity.ts
|
|
13095
13076
|
import {
|
|
13096
|
-
Entity as
|
|
13097
|
-
Column as
|
|
13077
|
+
Entity as Entity75,
|
|
13078
|
+
Column as Column76
|
|
13098
13079
|
} from "typeorm";
|
|
13099
13080
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13100
13081
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -13104,22 +13085,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13104
13085
|
var Lead = class extends BaseEntity {
|
|
13105
13086
|
};
|
|
13106
13087
|
__decorateClass([
|
|
13107
|
-
|
|
13088
|
+
Column76({ name: "name", type: "varchar", nullable: true })
|
|
13108
13089
|
], Lead.prototype, "name", 2);
|
|
13109
13090
|
__decorateClass([
|
|
13110
|
-
|
|
13091
|
+
Column76({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13111
13092
|
], Lead.prototype, "mobileCode", 2);
|
|
13112
13093
|
__decorateClass([
|
|
13113
|
-
|
|
13094
|
+
Column76({ name: "mobile", type: "varchar", nullable: true })
|
|
13114
13095
|
], Lead.prototype, "mobile", 2);
|
|
13115
13096
|
__decorateClass([
|
|
13116
|
-
|
|
13097
|
+
Column76({ name: "email", type: "varchar", nullable: true })
|
|
13117
13098
|
], Lead.prototype, "email", 2);
|
|
13118
13099
|
__decorateClass([
|
|
13119
|
-
|
|
13100
|
+
Column76({ name: "description", type: "varchar", nullable: true })
|
|
13120
13101
|
], Lead.prototype, "description", 2);
|
|
13121
13102
|
__decorateClass([
|
|
13122
|
-
|
|
13103
|
+
Column76({
|
|
13123
13104
|
name: "category",
|
|
13124
13105
|
type: "enum",
|
|
13125
13106
|
enum: CategoryEmum,
|
|
@@ -13127,7 +13108,7 @@ __decorateClass([
|
|
|
13127
13108
|
})
|
|
13128
13109
|
], Lead.prototype, "category", 2);
|
|
13129
13110
|
Lead = __decorateClass([
|
|
13130
|
-
|
|
13111
|
+
Entity75("leads")
|
|
13131
13112
|
], Lead);
|
|
13132
13113
|
|
|
13133
13114
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -13368,7 +13349,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13368
13349
|
], ClientFreelancerRecommendation);
|
|
13369
13350
|
|
|
13370
13351
|
// src/entities/commission.entity.ts
|
|
13371
|
-
import { Entity as
|
|
13352
|
+
import { Entity as Entity76, Column as Column77 } from "typeorm";
|
|
13372
13353
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13373
13354
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13374
13355
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13377,7 +13358,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13377
13358
|
var Commission = class extends BaseEntity {
|
|
13378
13359
|
};
|
|
13379
13360
|
__decorateClass([
|
|
13380
|
-
|
|
13361
|
+
Column77({
|
|
13381
13362
|
name: "freelancer_commission_type",
|
|
13382
13363
|
type: "enum",
|
|
13383
13364
|
enum: CommissionTypeEnum,
|
|
@@ -13385,10 +13366,10 @@ __decorateClass([
|
|
|
13385
13366
|
})
|
|
13386
13367
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13387
13368
|
__decorateClass([
|
|
13388
|
-
|
|
13369
|
+
Column77({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13389
13370
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13390
13371
|
__decorateClass([
|
|
13391
|
-
|
|
13372
|
+
Column77({
|
|
13392
13373
|
name: "client_commission_type",
|
|
13393
13374
|
type: "enum",
|
|
13394
13375
|
enum: CommissionTypeEnum,
|
|
@@ -13396,56 +13377,87 @@ __decorateClass([
|
|
|
13396
13377
|
})
|
|
13397
13378
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13398
13379
|
__decorateClass([
|
|
13399
|
-
|
|
13380
|
+
Column77({ name: "client_commission", type: "integer", default: 0 })
|
|
13400
13381
|
], Commission.prototype, "clientCommission", 2);
|
|
13401
13382
|
Commission = __decorateClass([
|
|
13402
|
-
|
|
13383
|
+
Entity76("commissions")
|
|
13403
13384
|
], Commission);
|
|
13404
13385
|
|
|
13405
13386
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13406
13387
|
import {
|
|
13407
|
-
Entity as
|
|
13408
|
-
Column as
|
|
13409
|
-
Index as
|
|
13388
|
+
Entity as Entity77,
|
|
13389
|
+
Column as Column78,
|
|
13390
|
+
Index as Index61
|
|
13410
13391
|
} from "typeorm";
|
|
13411
13392
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13412
13393
|
};
|
|
13413
13394
|
__decorateClass([
|
|
13414
|
-
|
|
13415
|
-
|
|
13395
|
+
Column78({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13396
|
+
Index61()
|
|
13416
13397
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13417
13398
|
__decorateClass([
|
|
13418
|
-
|
|
13399
|
+
Column78({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13419
13400
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13420
13401
|
__decorateClass([
|
|
13421
|
-
|
|
13402
|
+
Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13422
13403
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13423
13404
|
CalendlyMeetingLog = __decorateClass([
|
|
13424
|
-
|
|
13405
|
+
Entity77("calendly_meeting_logs")
|
|
13425
13406
|
], CalendlyMeetingLog);
|
|
13426
13407
|
|
|
13427
13408
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13428
13409
|
import {
|
|
13429
|
-
Entity as
|
|
13430
|
-
Column as
|
|
13431
|
-
Index as
|
|
13410
|
+
Entity as Entity78,
|
|
13411
|
+
Column as Column79,
|
|
13412
|
+
Index as Index62
|
|
13432
13413
|
} from "typeorm";
|
|
13433
13414
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13434
13415
|
};
|
|
13435
13416
|
__decorateClass([
|
|
13436
|
-
|
|
13437
|
-
|
|
13417
|
+
Column79({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13418
|
+
Index62()
|
|
13438
13419
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13439
13420
|
__decorateClass([
|
|
13440
|
-
|
|
13421
|
+
Column79({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13441
13422
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13442
13423
|
__decorateClass([
|
|
13443
|
-
|
|
13424
|
+
Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13444
13425
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13445
13426
|
ZoomMeetingLog = __decorateClass([
|
|
13446
|
-
|
|
13427
|
+
Entity78("zoom_meeting_logs")
|
|
13447
13428
|
], ZoomMeetingLog);
|
|
13448
13429
|
|
|
13430
|
+
// src/entities/docuseal.entity.ts
|
|
13431
|
+
import { Entity as Entity79, Column as Column80, Index as Index63 } from "typeorm";
|
|
13432
|
+
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13433
|
+
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13434
|
+
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
13435
|
+
DocuSealTypeEnum2["CONTRACT"] = "CONTRACT";
|
|
13436
|
+
return DocuSealTypeEnum2;
|
|
13437
|
+
})(DocuSealTypeEnum || {});
|
|
13438
|
+
var DocuSeal = class extends BaseEntity {
|
|
13439
|
+
};
|
|
13440
|
+
__decorateClass([
|
|
13441
|
+
Column80({ name: "reference_id", type: "integer", nullable: false }),
|
|
13442
|
+
Index63()
|
|
13443
|
+
], DocuSeal.prototype, "referenceId", 2);
|
|
13444
|
+
__decorateClass([
|
|
13445
|
+
Column80({ name: "submitter_id", type: "integer", nullable: true }),
|
|
13446
|
+
Index63()
|
|
13447
|
+
], DocuSeal.prototype, "submitterId", 2);
|
|
13448
|
+
__decorateClass([
|
|
13449
|
+
Column80({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13450
|
+
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13451
|
+
__decorateClass([
|
|
13452
|
+
Column80({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13453
|
+
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13454
|
+
__decorateClass([
|
|
13455
|
+
Column80({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13456
|
+
], DocuSeal.prototype, "type", 2);
|
|
13457
|
+
DocuSeal = __decorateClass([
|
|
13458
|
+
Entity79("docuseal")
|
|
13459
|
+
], DocuSeal);
|
|
13460
|
+
|
|
13449
13461
|
// src/entities/stripe-logs.entity.ts
|
|
13450
13462
|
import { Entity as Entity80, Column as Column81 } from "typeorm";
|
|
13451
13463
|
var StripeLog = class extends BaseEntity {
|
|
@@ -13653,6 +13665,7 @@ export {
|
|
|
13653
13665
|
DocuSeal,
|
|
13654
13666
|
DocuSealMessageDto,
|
|
13655
13667
|
DocuSealSubmitterDto,
|
|
13668
|
+
DocuSealTypeEnum,
|
|
13656
13669
|
DocumentType,
|
|
13657
13670
|
DurationTypeEnum,
|
|
13658
13671
|
EMAIL_PATTERN,
|