@experts_hub/shared 1.0.502 → 1.0.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/ai-interview.entity.d.ts +2 -0
- package/dist/entities/contract-history.entity.d.ts +27 -0
- package/dist/entities/contract.entity.d.ts +3 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/index.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +823 -725
- package/dist/index.mjs +826 -730
- package/dist/modules/contract/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1512,17 +1512,17 @@ import {
|
|
|
1512
1512
|
} from "class-validator";
|
|
1513
1513
|
|
|
1514
1514
|
// src/entities/rating.entity.ts
|
|
1515
|
-
import { Entity as
|
|
1515
|
+
import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne55, JoinColumn as JoinColumn56, Index as Index54 } from "typeorm";
|
|
1516
1516
|
|
|
1517
1517
|
// src/entities/user.entity.ts
|
|
1518
1518
|
import {
|
|
1519
|
-
Entity as
|
|
1520
|
-
Column as
|
|
1521
|
-
OneToMany as
|
|
1519
|
+
Entity as Entity60,
|
|
1520
|
+
Column as Column61,
|
|
1521
|
+
OneToMany as OneToMany22,
|
|
1522
1522
|
OneToOne as OneToOne11,
|
|
1523
|
-
Index as
|
|
1524
|
-
ManyToOne as
|
|
1525
|
-
JoinColumn as
|
|
1523
|
+
Index as Index53,
|
|
1524
|
+
ManyToOne as ManyToOne54,
|
|
1525
|
+
JoinColumn as JoinColumn55
|
|
1526
1526
|
} from "typeorm";
|
|
1527
1527
|
|
|
1528
1528
|
// src/entities/base.entity.ts
|
|
@@ -2344,12 +2344,12 @@ FreelancerProfile = __decorateClass([
|
|
|
2344
2344
|
|
|
2345
2345
|
// src/entities/job.entity.ts
|
|
2346
2346
|
import {
|
|
2347
|
-
Entity as
|
|
2348
|
-
Column as
|
|
2349
|
-
Index as
|
|
2350
|
-
ManyToOne as
|
|
2351
|
-
JoinColumn as
|
|
2352
|
-
OneToMany as
|
|
2347
|
+
Entity as Entity30,
|
|
2348
|
+
Column as Column31,
|
|
2349
|
+
Index as Index24,
|
|
2350
|
+
ManyToOne as ManyToOne29,
|
|
2351
|
+
JoinColumn as JoinColumn29,
|
|
2352
|
+
OneToMany as OneToMany13
|
|
2353
2353
|
} from "typeorm";
|
|
2354
2354
|
|
|
2355
2355
|
// src/entities/job-skill.entity.ts
|
|
@@ -2757,6 +2757,21 @@ __decorateClass([
|
|
|
2757
2757
|
__decorateClass([
|
|
2758
2758
|
Column15({ name: "invite_id", type: "integer", nullable: true })
|
|
2759
2759
|
], AiInterview.prototype, "inviteId", 2);
|
|
2760
|
+
__decorateClass([
|
|
2761
|
+
Column15({
|
|
2762
|
+
name: "candidate_interview_id",
|
|
2763
|
+
type: "varchar",
|
|
2764
|
+
nullable: true
|
|
2765
|
+
})
|
|
2766
|
+
], AiInterview.prototype, "candidateInterviewId", 2);
|
|
2767
|
+
__decorateClass([
|
|
2768
|
+
Column15({
|
|
2769
|
+
name: "candidate_interview_link",
|
|
2770
|
+
type: "varchar",
|
|
2771
|
+
nullable: true
|
|
2772
|
+
}),
|
|
2773
|
+
Index10()
|
|
2774
|
+
], AiInterview.prototype, "candidateInterviewLink", 2);
|
|
2760
2775
|
__decorateClass([
|
|
2761
2776
|
Column15({
|
|
2762
2777
|
name: "status",
|
|
@@ -3279,7 +3294,7 @@ JobRecommendation = __decorateClass([
|
|
|
3279
3294
|
], JobRecommendation);
|
|
3280
3295
|
|
|
3281
3296
|
// src/entities/contract.entity.ts
|
|
3282
|
-
import { Entity as
|
|
3297
|
+
import { Entity as Entity28, Column as Column29, Index as Index22, ManyToOne as ManyToOne27, JoinColumn as JoinColumn27, OneToOne as OneToOne8, OneToMany as OneToMany11 } from "typeorm";
|
|
3283
3298
|
|
|
3284
3299
|
// src/entities/escrow-wallet.entity.ts
|
|
3285
3300
|
import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToOne as OneToOne7, OneToMany as OneToMany10, ManyToOne as ManyToOne25 } from "typeorm";
|
|
@@ -3712,6 +3727,77 @@ EscrowWallet = __decorateClass([
|
|
|
3712
3727
|
Entity26("escrow_wallets")
|
|
3713
3728
|
], EscrowWallet);
|
|
3714
3729
|
|
|
3730
|
+
// src/entities/contract-history.entity.ts
|
|
3731
|
+
import { Entity as Entity27, Column as Column28, Index as Index21, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26 } from "typeorm";
|
|
3732
|
+
var ContractHistoryActionEnum = /* @__PURE__ */ ((ContractHistoryActionEnum2) => {
|
|
3733
|
+
ContractHistoryActionEnum2["GENERATED"] = "GENERATED";
|
|
3734
|
+
ContractHistoryActionEnum2["DRAFTED"] = "DRAFTED";
|
|
3735
|
+
ContractHistoryActionEnum2["SENT"] = "SENT";
|
|
3736
|
+
ContractHistoryActionEnum2["SIGNED"] = "SIGNED";
|
|
3737
|
+
ContractHistoryActionEnum2["ACTIVE"] = "ACTIVE";
|
|
3738
|
+
ContractHistoryActionEnum2["CANCELLED"] = "CANCELLED";
|
|
3739
|
+
ContractHistoryActionEnum2["DISPUTED"] = "DISPUTED";
|
|
3740
|
+
ContractHistoryActionEnum2["REJECTED"] = "REJECTED";
|
|
3741
|
+
ContractHistoryActionEnum2["RENEWED"] = "RENEWED";
|
|
3742
|
+
ContractHistoryActionEnum2["EXPIRED"] = "EXPIRED";
|
|
3743
|
+
ContractHistoryActionEnum2["VIEWED"] = "VIEWED";
|
|
3744
|
+
return ContractHistoryActionEnum2;
|
|
3745
|
+
})(ContractHistoryActionEnum || {});
|
|
3746
|
+
var ContractHistory = class extends BaseEntity {
|
|
3747
|
+
};
|
|
3748
|
+
__decorateClass([
|
|
3749
|
+
Column28({ name: "contract_id", type: "integer", nullable: false }),
|
|
3750
|
+
Index21()
|
|
3751
|
+
], ContractHistory.prototype, "contractId", 2);
|
|
3752
|
+
__decorateClass([
|
|
3753
|
+
ManyToOne26(() => Contract, (contract) => contract.history),
|
|
3754
|
+
JoinColumn26({ name: "contract_id" })
|
|
3755
|
+
], ContractHistory.prototype, "contract", 2);
|
|
3756
|
+
__decorateClass([
|
|
3757
|
+
Column28({ name: "action_by", type: "integer", nullable: true })
|
|
3758
|
+
], ContractHistory.prototype, "actionBy", 2);
|
|
3759
|
+
__decorateClass([
|
|
3760
|
+
Column28({ name: "action_by_type", type: "varchar", nullable: true })
|
|
3761
|
+
], ContractHistory.prototype, "actionByType", 2);
|
|
3762
|
+
__decorateClass([
|
|
3763
|
+
Column28({
|
|
3764
|
+
name: "previous_status",
|
|
3765
|
+
type: "enum",
|
|
3766
|
+
enum: ContractStatusEnum,
|
|
3767
|
+
nullable: true
|
|
3768
|
+
})
|
|
3769
|
+
], ContractHistory.prototype, "previousStatus", 2);
|
|
3770
|
+
__decorateClass([
|
|
3771
|
+
Column28({
|
|
3772
|
+
name: "new_status",
|
|
3773
|
+
type: "enum",
|
|
3774
|
+
enum: ContractStatusEnum,
|
|
3775
|
+
nullable: false
|
|
3776
|
+
})
|
|
3777
|
+
], ContractHistory.prototype, "newStatus", 2);
|
|
3778
|
+
__decorateClass([
|
|
3779
|
+
Column28({
|
|
3780
|
+
name: "type",
|
|
3781
|
+
type: "enum",
|
|
3782
|
+
enum: ContractTypeEnum,
|
|
3783
|
+
nullable: true
|
|
3784
|
+
})
|
|
3785
|
+
], ContractHistory.prototype, "type", 2);
|
|
3786
|
+
__decorateClass([
|
|
3787
|
+
Column28({
|
|
3788
|
+
name: "action_type",
|
|
3789
|
+
type: "enum",
|
|
3790
|
+
enum: ContractHistoryActionEnum,
|
|
3791
|
+
nullable: false
|
|
3792
|
+
})
|
|
3793
|
+
], ContractHistory.prototype, "actionType", 2);
|
|
3794
|
+
__decorateClass([
|
|
3795
|
+
Column28({ name: "remarks", type: "varchar", nullable: true })
|
|
3796
|
+
], ContractHistory.prototype, "remarks", 2);
|
|
3797
|
+
ContractHistory = __decorateClass([
|
|
3798
|
+
Entity27("contract_histories")
|
|
3799
|
+
], ContractHistory);
|
|
3800
|
+
|
|
3715
3801
|
// src/entities/contract.entity.ts
|
|
3716
3802
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3717
3803
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3734,37 +3820,41 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3734
3820
|
var Contract = class extends BaseEntity {
|
|
3735
3821
|
};
|
|
3736
3822
|
__decorateClass([
|
|
3737
|
-
|
|
3823
|
+
Column29({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3738
3824
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3739
3825
|
__decorateClass([
|
|
3740
|
-
|
|
3741
|
-
|
|
3826
|
+
Column29({ name: "job_id", type: "integer", nullable: true }),
|
|
3827
|
+
Index22()
|
|
3742
3828
|
], Contract.prototype, "jobId", 2);
|
|
3743
3829
|
__decorateClass([
|
|
3744
|
-
|
|
3745
|
-
|
|
3830
|
+
ManyToOne27(() => Job, (job) => job.contracts),
|
|
3831
|
+
JoinColumn27({ name: "job_id" })
|
|
3746
3832
|
], Contract.prototype, "job", 2);
|
|
3747
3833
|
__decorateClass([
|
|
3748
|
-
|
|
3749
|
-
|
|
3834
|
+
Column29({ name: "client_id", type: "integer", nullable: true }),
|
|
3835
|
+
Index22()
|
|
3750
3836
|
], Contract.prototype, "clientId", 2);
|
|
3751
3837
|
__decorateClass([
|
|
3752
|
-
|
|
3753
|
-
|
|
3838
|
+
ManyToOne27(() => User, (user) => user.clientContracts),
|
|
3839
|
+
JoinColumn27({ name: "client_id" })
|
|
3754
3840
|
], Contract.prototype, "client", 2);
|
|
3755
3841
|
__decorateClass([
|
|
3756
|
-
|
|
3757
|
-
|
|
3842
|
+
Column29({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3843
|
+
Index22()
|
|
3758
3844
|
], Contract.prototype, "freelancerId", 2);
|
|
3759
3845
|
__decorateClass([
|
|
3760
|
-
|
|
3761
|
-
|
|
3846
|
+
ManyToOne27(() => User, (user) => user.freelancerContracts),
|
|
3847
|
+
JoinColumn27({ name: "freelancer_id" })
|
|
3762
3848
|
], Contract.prototype, "freelancer", 2);
|
|
3763
3849
|
__decorateClass([
|
|
3764
|
-
|
|
3850
|
+
OneToMany11(() => ContractHistory, (history) => history.contract),
|
|
3851
|
+
JoinColumn27({ name: "contract_id" })
|
|
3852
|
+
], Contract.prototype, "history", 2);
|
|
3853
|
+
__decorateClass([
|
|
3854
|
+
Column29({ name: "duration", type: "integer", nullable: true })
|
|
3765
3855
|
], Contract.prototype, "duration", 2);
|
|
3766
3856
|
__decorateClass([
|
|
3767
|
-
|
|
3857
|
+
Column29({
|
|
3768
3858
|
name: "status",
|
|
3769
3859
|
type: "enum",
|
|
3770
3860
|
enum: ContractStatusEnum,
|
|
@@ -3772,7 +3862,7 @@ __decorateClass([
|
|
|
3772
3862
|
})
|
|
3773
3863
|
], Contract.prototype, "status", 2);
|
|
3774
3864
|
__decorateClass([
|
|
3775
|
-
|
|
3865
|
+
Column29({
|
|
3776
3866
|
name: "type",
|
|
3777
3867
|
type: "enum",
|
|
3778
3868
|
enum: ContractTypeEnum,
|
|
@@ -3780,10 +3870,10 @@ __decorateClass([
|
|
|
3780
3870
|
})
|
|
3781
3871
|
], Contract.prototype, "type", 2);
|
|
3782
3872
|
__decorateClass([
|
|
3783
|
-
|
|
3873
|
+
Column29({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3784
3874
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3785
3875
|
__decorateClass([
|
|
3786
|
-
|
|
3876
|
+
Column29({
|
|
3787
3877
|
name: "escrow_deposite_amount",
|
|
3788
3878
|
type: "decimal",
|
|
3789
3879
|
precision: 10,
|
|
@@ -3792,77 +3882,80 @@ __decorateClass([
|
|
|
3792
3882
|
})
|
|
3793
3883
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3794
3884
|
__decorateClass([
|
|
3795
|
-
|
|
3885
|
+
Column29({
|
|
3796
3886
|
name: "start_date",
|
|
3797
3887
|
type: "timestamp with time zone",
|
|
3798
3888
|
nullable: true
|
|
3799
3889
|
})
|
|
3800
3890
|
], Contract.prototype, "startDate", 2);
|
|
3801
3891
|
__decorateClass([
|
|
3802
|
-
|
|
3892
|
+
Column29({
|
|
3803
3893
|
name: "end_date",
|
|
3804
3894
|
type: "timestamp with time zone",
|
|
3805
3895
|
nullable: true
|
|
3806
3896
|
})
|
|
3807
3897
|
], Contract.prototype, "endDate", 2);
|
|
3808
3898
|
__decorateClass([
|
|
3809
|
-
|
|
3899
|
+
Column29({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3810
3900
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3811
3901
|
__decorateClass([
|
|
3812
|
-
|
|
3902
|
+
Column29({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3813
3903
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3814
3904
|
__decorateClass([
|
|
3815
|
-
|
|
3905
|
+
Column29({
|
|
3816
3906
|
name: "client_signed_at",
|
|
3817
3907
|
type: "timestamp with time zone",
|
|
3818
3908
|
nullable: true
|
|
3819
3909
|
})
|
|
3820
3910
|
], Contract.prototype, "clientSignedAt", 2);
|
|
3821
3911
|
__decorateClass([
|
|
3822
|
-
|
|
3912
|
+
Column29({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3823
3913
|
], Contract.prototype, "freelancerViewed", 2);
|
|
3824
3914
|
__decorateClass([
|
|
3825
|
-
|
|
3915
|
+
Column29({
|
|
3826
3916
|
name: "freelancer_viewed_at",
|
|
3827
3917
|
type: "timestamp with time zone",
|
|
3828
3918
|
nullable: true
|
|
3829
3919
|
})
|
|
3830
3920
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3831
3921
|
__decorateClass([
|
|
3832
|
-
|
|
3922
|
+
Column29({
|
|
3833
3923
|
name: "freelancer_signed_at",
|
|
3834
3924
|
type: "timestamp with time zone",
|
|
3835
3925
|
nullable: true
|
|
3836
3926
|
})
|
|
3837
3927
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3838
3928
|
__decorateClass([
|
|
3839
|
-
|
|
3929
|
+
Column29({
|
|
3840
3930
|
name: "rejectd_at",
|
|
3841
3931
|
type: "timestamp with time zone",
|
|
3842
3932
|
nullable: true
|
|
3843
3933
|
})
|
|
3844
3934
|
], Contract.prototype, "rejectedAt", 2);
|
|
3845
3935
|
__decorateClass([
|
|
3846
|
-
|
|
3936
|
+
Column29({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3847
3937
|
], Contract.prototype, "rejectReason", 2);
|
|
3848
3938
|
__decorateClass([
|
|
3849
|
-
|
|
3939
|
+
Column29({ name: "resend_count", type: "integer", default: 0 })
|
|
3940
|
+
], Contract.prototype, "resendCount", 2);
|
|
3941
|
+
__decorateClass([
|
|
3942
|
+
Column29({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3850
3943
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
3851
3944
|
__decorateClass([
|
|
3852
|
-
|
|
3945
|
+
Column29({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3853
3946
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3854
3947
|
__decorateClass([
|
|
3855
|
-
|
|
3948
|
+
Column29({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3856
3949
|
], Contract.prototype, "signaturePositions", 2);
|
|
3857
3950
|
__decorateClass([
|
|
3858
3951
|
OneToOne8(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
3859
3952
|
], Contract.prototype, "escrowWallet", 2);
|
|
3860
3953
|
Contract = __decorateClass([
|
|
3861
|
-
|
|
3954
|
+
Entity28("contracts")
|
|
3862
3955
|
], Contract);
|
|
3863
3956
|
|
|
3864
3957
|
// src/entities/timesheets.entity.ts
|
|
3865
|
-
import { Entity as
|
|
3958
|
+
import { Entity as Entity29, Column as Column30, Index as Index23, JoinColumn as JoinColumn28, ManyToOne as ManyToOne28 } from "typeorm";
|
|
3866
3959
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3867
3960
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3868
3961
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3875,87 +3968,87 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3875
3968
|
var Timesheet = class extends BaseEntity {
|
|
3876
3969
|
};
|
|
3877
3970
|
__decorateClass([
|
|
3878
|
-
|
|
3879
|
-
|
|
3971
|
+
Column30({ name: "job_id", type: "integer", nullable: true }),
|
|
3972
|
+
Index23()
|
|
3880
3973
|
], Timesheet.prototype, "jobId", 2);
|
|
3881
3974
|
__decorateClass([
|
|
3882
|
-
|
|
3883
|
-
|
|
3975
|
+
ManyToOne28(() => Job, (job) => job.timesheets),
|
|
3976
|
+
JoinColumn28({ name: "job_id" })
|
|
3884
3977
|
], Timesheet.prototype, "job", 2);
|
|
3885
3978
|
__decorateClass([
|
|
3886
|
-
|
|
3887
|
-
|
|
3979
|
+
Column30({ name: "client_id", type: "integer", nullable: true }),
|
|
3980
|
+
Index23()
|
|
3888
3981
|
], Timesheet.prototype, "clientId", 2);
|
|
3889
3982
|
__decorateClass([
|
|
3890
|
-
|
|
3891
|
-
|
|
3983
|
+
ManyToOne28(() => User, (user) => user.clientTimesheets),
|
|
3984
|
+
JoinColumn28({ name: "client_id" })
|
|
3892
3985
|
], Timesheet.prototype, "client", 2);
|
|
3893
3986
|
__decorateClass([
|
|
3894
|
-
|
|
3895
|
-
|
|
3987
|
+
Column30({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3988
|
+
Index23()
|
|
3896
3989
|
], Timesheet.prototype, "freelancerId", 2);
|
|
3897
3990
|
__decorateClass([
|
|
3898
|
-
|
|
3899
|
-
|
|
3991
|
+
ManyToOne28(() => User, (user) => user.freelancerTimesheets),
|
|
3992
|
+
JoinColumn28({ name: "freelancer_id" })
|
|
3900
3993
|
], Timesheet.prototype, "freelancer", 2);
|
|
3901
3994
|
__decorateClass([
|
|
3902
|
-
|
|
3995
|
+
Column30({
|
|
3903
3996
|
name: "start_date",
|
|
3904
3997
|
type: "date",
|
|
3905
3998
|
nullable: true
|
|
3906
3999
|
})
|
|
3907
4000
|
], Timesheet.prototype, "startDate", 2);
|
|
3908
4001
|
__decorateClass([
|
|
3909
|
-
|
|
4002
|
+
Column30({
|
|
3910
4003
|
name: "end_date",
|
|
3911
4004
|
type: "date",
|
|
3912
4005
|
nullable: true
|
|
3913
4006
|
})
|
|
3914
4007
|
], Timesheet.prototype, "endDate", 2);
|
|
3915
4008
|
__decorateClass([
|
|
3916
|
-
|
|
4009
|
+
Column30({ name: "start_time", type: "varchar", nullable: true })
|
|
3917
4010
|
], Timesheet.prototype, "startTime", 2);
|
|
3918
4011
|
__decorateClass([
|
|
3919
|
-
|
|
4012
|
+
Column30({ name: "end_time", type: "varchar", nullable: true })
|
|
3920
4013
|
], Timesheet.prototype, "endTime", 2);
|
|
3921
4014
|
__decorateClass([
|
|
3922
|
-
|
|
4015
|
+
Column30({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3923
4016
|
], Timesheet.prototype, "workedHours", 2);
|
|
3924
4017
|
__decorateClass([
|
|
3925
|
-
|
|
4018
|
+
Column30({ name: "task_id", type: "integer", nullable: true })
|
|
3926
4019
|
], Timesheet.prototype, "taskId", 2);
|
|
3927
4020
|
__decorateClass([
|
|
3928
|
-
|
|
4021
|
+
Column30({ name: "task_name", type: "varchar", nullable: true })
|
|
3929
4022
|
], Timesheet.prototype, "taskName", 2);
|
|
3930
4023
|
__decorateClass([
|
|
3931
|
-
|
|
4024
|
+
Column30({ name: "description", type: "varchar", nullable: true })
|
|
3932
4025
|
], Timesheet.prototype, "description", 2);
|
|
3933
4026
|
__decorateClass([
|
|
3934
|
-
|
|
4027
|
+
Column30({ name: "week_start_date", type: "date", nullable: true })
|
|
3935
4028
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
3936
4029
|
__decorateClass([
|
|
3937
|
-
|
|
4030
|
+
Column30({ name: "week_end_date", type: "date", nullable: true })
|
|
3938
4031
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
3939
4032
|
__decorateClass([
|
|
3940
|
-
|
|
4033
|
+
Column30({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3941
4034
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
3942
4035
|
__decorateClass([
|
|
3943
|
-
|
|
4036
|
+
Column30({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3944
4037
|
], Timesheet.prototype, "submittedAt", 2);
|
|
3945
4038
|
__decorateClass([
|
|
3946
|
-
|
|
4039
|
+
Column30({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3947
4040
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3948
4041
|
__decorateClass([
|
|
3949
|
-
|
|
4042
|
+
Column30({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3950
4043
|
], Timesheet.prototype, "approvedAt", 2);
|
|
3951
4044
|
__decorateClass([
|
|
3952
|
-
|
|
4045
|
+
Column30({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3953
4046
|
], Timesheet.prototype, "status", 2);
|
|
3954
4047
|
__decorateClass([
|
|
3955
|
-
|
|
4048
|
+
Column30({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3956
4049
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3957
4050
|
Timesheet = __decorateClass([
|
|
3958
|
-
|
|
4051
|
+
Entity29("timesheets")
|
|
3959
4052
|
], Timesheet);
|
|
3960
4053
|
|
|
3961
4054
|
// src/entities/job.entity.ts
|
|
@@ -3999,55 +4092,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3999
4092
|
var Job = class extends BaseEntity {
|
|
4000
4093
|
};
|
|
4001
4094
|
__decorateClass([
|
|
4002
|
-
|
|
4095
|
+
Column31({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4003
4096
|
], Job.prototype, "jobId", 2);
|
|
4004
4097
|
// individual index to find jobs by user
|
|
4005
4098
|
__decorateClass([
|
|
4006
|
-
|
|
4007
|
-
|
|
4099
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
4100
|
+
Index24()
|
|
4008
4101
|
], Job.prototype, "userId", 2);
|
|
4009
4102
|
__decorateClass([
|
|
4010
|
-
|
|
4011
|
-
|
|
4103
|
+
ManyToOne29(() => User, (user) => user.jobs),
|
|
4104
|
+
JoinColumn29({ name: "user_id" })
|
|
4012
4105
|
], Job.prototype, "user", 2);
|
|
4013
4106
|
__decorateClass([
|
|
4014
|
-
|
|
4107
|
+
Column31({ name: "country_id", type: "int", nullable: true })
|
|
4015
4108
|
], Job.prototype, "countryId", 2);
|
|
4016
4109
|
__decorateClass([
|
|
4017
|
-
|
|
4018
|
-
|
|
4110
|
+
ManyToOne29(() => Country),
|
|
4111
|
+
JoinColumn29({ name: "country_id" })
|
|
4019
4112
|
], Job.prototype, "country", 2);
|
|
4020
4113
|
__decorateClass([
|
|
4021
|
-
|
|
4114
|
+
Column31({ name: "state_id", type: "int", nullable: true })
|
|
4022
4115
|
], Job.prototype, "stateId", 2);
|
|
4023
4116
|
__decorateClass([
|
|
4024
|
-
|
|
4025
|
-
|
|
4117
|
+
ManyToOne29(() => State),
|
|
4118
|
+
JoinColumn29({ name: "state_id" })
|
|
4026
4119
|
], Job.prototype, "state", 2);
|
|
4027
4120
|
__decorateClass([
|
|
4028
|
-
|
|
4121
|
+
Column31({ name: "city_id", type: "int", nullable: true })
|
|
4029
4122
|
], Job.prototype, "cityId", 2);
|
|
4030
4123
|
__decorateClass([
|
|
4031
|
-
|
|
4032
|
-
|
|
4124
|
+
ManyToOne29(() => City),
|
|
4125
|
+
JoinColumn29({ name: "city_id" })
|
|
4033
4126
|
], Job.prototype, "city", 2);
|
|
4034
4127
|
__decorateClass([
|
|
4035
|
-
|
|
4128
|
+
Column31({ name: "job_role", type: "varchar", nullable: true })
|
|
4036
4129
|
], Job.prototype, "jobRole", 2);
|
|
4037
4130
|
__decorateClass([
|
|
4038
|
-
|
|
4131
|
+
Column31({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4039
4132
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4040
4133
|
__decorateClass([
|
|
4041
|
-
|
|
4134
|
+
Column31({ name: "project_name", type: "varchar", nullable: true })
|
|
4042
4135
|
], Job.prototype, "projectName", 2);
|
|
4043
4136
|
__decorateClass([
|
|
4044
|
-
|
|
4137
|
+
Column31({ name: "note", type: "varchar", nullable: true })
|
|
4045
4138
|
], Job.prototype, "note", 2);
|
|
4046
4139
|
__decorateClass([
|
|
4047
|
-
|
|
4140
|
+
Column31({ name: "openings", type: "integer", default: 0 })
|
|
4048
4141
|
], Job.prototype, "openings", 2);
|
|
4049
4142
|
__decorateClass([
|
|
4050
|
-
|
|
4143
|
+
Column31({
|
|
4051
4144
|
name: "location",
|
|
4052
4145
|
type: "enum",
|
|
4053
4146
|
enum: JobLocationEnum,
|
|
@@ -4055,7 +4148,7 @@ __decorateClass([
|
|
|
4055
4148
|
})
|
|
4056
4149
|
], Job.prototype, "location", 2);
|
|
4057
4150
|
__decorateClass([
|
|
4058
|
-
|
|
4151
|
+
Column31({
|
|
4059
4152
|
name: "type_of_employment",
|
|
4060
4153
|
type: "enum",
|
|
4061
4154
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4063,19 +4156,19 @@ __decorateClass([
|
|
|
4063
4156
|
})
|
|
4064
4157
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4065
4158
|
__decorateClass([
|
|
4066
|
-
|
|
4159
|
+
Column31({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4067
4160
|
], Job.prototype, "academicQualification", 2);
|
|
4068
4161
|
__decorateClass([
|
|
4069
|
-
|
|
4162
|
+
Column31({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4070
4163
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4071
4164
|
__decorateClass([
|
|
4072
|
-
|
|
4165
|
+
Column31({ name: "business_industry", type: "varchar", nullable: true })
|
|
4073
4166
|
], Job.prototype, "businessIndustry", 2);
|
|
4074
4167
|
__decorateClass([
|
|
4075
|
-
|
|
4168
|
+
Column31({ name: "currency", type: "varchar", default: "USD" })
|
|
4076
4169
|
], Job.prototype, "currency", 2);
|
|
4077
4170
|
__decorateClass([
|
|
4078
|
-
|
|
4171
|
+
Column31({
|
|
4079
4172
|
name: "expected_salary_from",
|
|
4080
4173
|
type: "decimal",
|
|
4081
4174
|
precision: 10,
|
|
@@ -4084,14 +4177,14 @@ __decorateClass([
|
|
|
4084
4177
|
})
|
|
4085
4178
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4086
4179
|
__decorateClass([
|
|
4087
|
-
|
|
4180
|
+
Column31({
|
|
4088
4181
|
name: "hide_expected_salary_from",
|
|
4089
4182
|
type: "boolean",
|
|
4090
4183
|
default: false
|
|
4091
4184
|
})
|
|
4092
4185
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4093
4186
|
__decorateClass([
|
|
4094
|
-
|
|
4187
|
+
Column31({
|
|
4095
4188
|
name: "expected_salary_to",
|
|
4096
4189
|
type: "decimal",
|
|
4097
4190
|
precision: 10,
|
|
@@ -4100,32 +4193,32 @@ __decorateClass([
|
|
|
4100
4193
|
})
|
|
4101
4194
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4102
4195
|
__decorateClass([
|
|
4103
|
-
|
|
4196
|
+
Column31({
|
|
4104
4197
|
name: "hide_expected_salary_to",
|
|
4105
4198
|
type: "boolean",
|
|
4106
4199
|
default: false
|
|
4107
4200
|
})
|
|
4108
4201
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4109
4202
|
__decorateClass([
|
|
4110
|
-
|
|
4203
|
+
Column31({ name: "years", type: "varchar", nullable: true })
|
|
4111
4204
|
], Job.prototype, "years", 2);
|
|
4112
4205
|
__decorateClass([
|
|
4113
|
-
|
|
4206
|
+
Column31({ name: "months", type: "varchar", nullable: true })
|
|
4114
4207
|
], Job.prototype, "months", 2);
|
|
4115
4208
|
__decorateClass([
|
|
4116
|
-
|
|
4209
|
+
Column31({ name: "weeks", type: "varchar", nullable: true })
|
|
4117
4210
|
], Job.prototype, "weeks", 2);
|
|
4118
4211
|
__decorateClass([
|
|
4119
|
-
|
|
4212
|
+
Column31({ name: "days", type: "varchar", nullable: true })
|
|
4120
4213
|
], Job.prototype, "days", 2);
|
|
4121
4214
|
__decorateClass([
|
|
4122
|
-
|
|
4215
|
+
Column31({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4123
4216
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4124
4217
|
__decorateClass([
|
|
4125
|
-
|
|
4218
|
+
Column31({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4126
4219
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4127
4220
|
__decorateClass([
|
|
4128
|
-
|
|
4221
|
+
Column31({
|
|
4129
4222
|
name: "duration_type",
|
|
4130
4223
|
type: "enum",
|
|
4131
4224
|
enum: DurationTypeEnum,
|
|
@@ -4133,10 +4226,10 @@ __decorateClass([
|
|
|
4133
4226
|
})
|
|
4134
4227
|
], Job.prototype, "durationType", 2);
|
|
4135
4228
|
__decorateClass([
|
|
4136
|
-
|
|
4229
|
+
Column31({ name: "duration", type: "varchar", nullable: true })
|
|
4137
4230
|
], Job.prototype, "duration", 2);
|
|
4138
4231
|
__decorateClass([
|
|
4139
|
-
|
|
4232
|
+
Column31({
|
|
4140
4233
|
name: "number_of_hours",
|
|
4141
4234
|
type: "decimal",
|
|
4142
4235
|
precision: 4,
|
|
@@ -4145,13 +4238,13 @@ __decorateClass([
|
|
|
4145
4238
|
})
|
|
4146
4239
|
], Job.prototype, "numberOfHours", 2);
|
|
4147
4240
|
__decorateClass([
|
|
4148
|
-
|
|
4241
|
+
Column31({ name: "description", type: "varchar", nullable: true })
|
|
4149
4242
|
], Job.prototype, "description", 2);
|
|
4150
4243
|
__decorateClass([
|
|
4151
|
-
|
|
4244
|
+
Column31({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4152
4245
|
], Job.prototype, "additionalComment", 2);
|
|
4153
4246
|
__decorateClass([
|
|
4154
|
-
|
|
4247
|
+
Column31({
|
|
4155
4248
|
name: "onboarding_tat",
|
|
4156
4249
|
type: "varchar",
|
|
4157
4250
|
length: 50,
|
|
@@ -4159,14 +4252,14 @@ __decorateClass([
|
|
|
4159
4252
|
})
|
|
4160
4253
|
], Job.prototype, "onboardingTat", 2);
|
|
4161
4254
|
__decorateClass([
|
|
4162
|
-
|
|
4255
|
+
Column31({
|
|
4163
4256
|
name: "candidate_communication_skills",
|
|
4164
4257
|
type: "varchar",
|
|
4165
4258
|
nullable: true
|
|
4166
4259
|
})
|
|
4167
4260
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4168
4261
|
__decorateClass([
|
|
4169
|
-
|
|
4262
|
+
Column31({
|
|
4170
4263
|
name: "step_completed",
|
|
4171
4264
|
type: "enum",
|
|
4172
4265
|
enum: Step,
|
|
@@ -4174,7 +4267,7 @@ __decorateClass([
|
|
|
4174
4267
|
})
|
|
4175
4268
|
], Job.prototype, "stepCompleted", 2);
|
|
4176
4269
|
__decorateClass([
|
|
4177
|
-
|
|
4270
|
+
Column31({
|
|
4178
4271
|
name: "status",
|
|
4179
4272
|
type: "enum",
|
|
4180
4273
|
enum: JobStatusEnum,
|
|
@@ -4182,40 +4275,40 @@ __decorateClass([
|
|
|
4182
4275
|
})
|
|
4183
4276
|
], Job.prototype, "status", 2);
|
|
4184
4277
|
__decorateClass([
|
|
4185
|
-
|
|
4278
|
+
Column31({ name: "viewed_count", type: "integer", default: 0 })
|
|
4186
4279
|
], Job.prototype, "viewedCount", 2);
|
|
4187
4280
|
__decorateClass([
|
|
4188
|
-
|
|
4281
|
+
Column31({ name: "application_count", type: "integer", default: 0 })
|
|
4189
4282
|
], Job.prototype, "applicationCount", 2);
|
|
4190
4283
|
__decorateClass([
|
|
4191
|
-
|
|
4284
|
+
Column31({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4192
4285
|
], Job.prototype, "isContractSigned", 2);
|
|
4193
4286
|
__decorateClass([
|
|
4194
|
-
|
|
4287
|
+
Column31({ name: "is_interview_created", type: "boolean", default: false })
|
|
4195
4288
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4196
4289
|
__decorateClass([
|
|
4197
|
-
|
|
4290
|
+
OneToMany13(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4198
4291
|
], Job.prototype, "interviewInvites", 2);
|
|
4199
4292
|
__decorateClass([
|
|
4200
|
-
|
|
4293
|
+
OneToMany13(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4201
4294
|
], Job.prototype, "jobSkills", 2);
|
|
4202
4295
|
__decorateClass([
|
|
4203
|
-
|
|
4296
|
+
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4204
4297
|
cascade: true
|
|
4205
4298
|
})
|
|
4206
4299
|
], Job.prototype, "jobApplications", 2);
|
|
4207
4300
|
__decorateClass([
|
|
4208
|
-
|
|
4301
|
+
OneToMany13(() => Interview, (interview) => interview.job, {
|
|
4209
4302
|
cascade: true
|
|
4210
4303
|
})
|
|
4211
4304
|
], Job.prototype, "interviews", 2);
|
|
4212
4305
|
__decorateClass([
|
|
4213
|
-
|
|
4306
|
+
OneToMany13(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4214
4307
|
cascade: true
|
|
4215
4308
|
})
|
|
4216
4309
|
], Job.prototype, "f2fInterviews", 2);
|
|
4217
4310
|
__decorateClass([
|
|
4218
|
-
|
|
4311
|
+
OneToMany13(
|
|
4219
4312
|
() => JobRecommendation,
|
|
4220
4313
|
(jobRecommendation) => jobRecommendation.job,
|
|
4221
4314
|
{
|
|
@@ -4224,44 +4317,44 @@ __decorateClass([
|
|
|
4224
4317
|
)
|
|
4225
4318
|
], Job.prototype, "recommendations", 2);
|
|
4226
4319
|
__decorateClass([
|
|
4227
|
-
|
|
4320
|
+
OneToMany13(() => Contract, (contract) => contract.job, {
|
|
4228
4321
|
cascade: true
|
|
4229
4322
|
})
|
|
4230
4323
|
], Job.prototype, "contracts", 2);
|
|
4231
4324
|
__decorateClass([
|
|
4232
|
-
|
|
4325
|
+
OneToMany13(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4233
4326
|
cascade: true
|
|
4234
4327
|
})
|
|
4235
4328
|
], Job.prototype, "escrowWallets", 2);
|
|
4236
4329
|
__decorateClass([
|
|
4237
|
-
|
|
4330
|
+
OneToMany13(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4238
4331
|
cascade: true
|
|
4239
4332
|
})
|
|
4240
4333
|
], Job.prototype, "timesheets", 2);
|
|
4241
4334
|
__decorateClass([
|
|
4242
|
-
|
|
4335
|
+
OneToMany13(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4243
4336
|
cascade: true
|
|
4244
4337
|
})
|
|
4245
4338
|
], Job.prototype, "timesheetLine", 2);
|
|
4246
4339
|
__decorateClass([
|
|
4247
|
-
|
|
4340
|
+
OneToMany13(() => Invoice, (invoice) => invoice.job, {
|
|
4248
4341
|
cascade: true
|
|
4249
4342
|
})
|
|
4250
4343
|
], Job.prototype, "invoice", 2);
|
|
4251
4344
|
__decorateClass([
|
|
4252
|
-
|
|
4345
|
+
OneToMany13(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4253
4346
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4254
4347
|
Job = __decorateClass([
|
|
4255
|
-
|
|
4348
|
+
Entity30("jobs")
|
|
4256
4349
|
], Job);
|
|
4257
4350
|
|
|
4258
4351
|
// src/entities/bank-details.entity.ts
|
|
4259
4352
|
import {
|
|
4260
|
-
Entity as
|
|
4261
|
-
Column as
|
|
4262
|
-
Index as
|
|
4263
|
-
ManyToOne as
|
|
4264
|
-
JoinColumn as
|
|
4353
|
+
Entity as Entity31,
|
|
4354
|
+
Column as Column32,
|
|
4355
|
+
Index as Index25,
|
|
4356
|
+
ManyToOne as ManyToOne30,
|
|
4357
|
+
JoinColumn as JoinColumn30
|
|
4265
4358
|
} from "typeorm";
|
|
4266
4359
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4267
4360
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4277,51 +4370,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4277
4370
|
};
|
|
4278
4371
|
// individual index to find bank details by user
|
|
4279
4372
|
__decorateClass([
|
|
4280
|
-
|
|
4281
|
-
|
|
4373
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
4374
|
+
Index25()
|
|
4282
4375
|
], BankDetail.prototype, "userId", 2);
|
|
4283
4376
|
__decorateClass([
|
|
4284
|
-
|
|
4285
|
-
|
|
4377
|
+
ManyToOne30(() => User, (user) => user.bankDetail),
|
|
4378
|
+
JoinColumn30({ name: "user_id" })
|
|
4286
4379
|
], BankDetail.prototype, "user", 2);
|
|
4287
4380
|
__decorateClass([
|
|
4288
|
-
|
|
4381
|
+
Column32({ name: "name", type: "varchar", nullable: true })
|
|
4289
4382
|
], BankDetail.prototype, "name", 2);
|
|
4290
4383
|
__decorateClass([
|
|
4291
|
-
|
|
4384
|
+
Column32({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4292
4385
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4293
4386
|
__decorateClass([
|
|
4294
|
-
|
|
4387
|
+
Column32({ name: "mobile", type: "varchar", nullable: true })
|
|
4295
4388
|
], BankDetail.prototype, "mobile", 2);
|
|
4296
4389
|
__decorateClass([
|
|
4297
|
-
|
|
4390
|
+
Column32({ name: "email", type: "varchar" })
|
|
4298
4391
|
], BankDetail.prototype, "email", 2);
|
|
4299
4392
|
__decorateClass([
|
|
4300
|
-
|
|
4393
|
+
Column32({ name: "address", type: "varchar", nullable: true })
|
|
4301
4394
|
], BankDetail.prototype, "address", 2);
|
|
4302
4395
|
__decorateClass([
|
|
4303
|
-
|
|
4396
|
+
Column32({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4304
4397
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4305
4398
|
__decorateClass([
|
|
4306
|
-
|
|
4399
|
+
Column32({ name: "bank_name", type: "varchar", nullable: true })
|
|
4307
4400
|
], BankDetail.prototype, "bankName", 2);
|
|
4308
4401
|
__decorateClass([
|
|
4309
|
-
|
|
4402
|
+
Column32({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4310
4403
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4311
4404
|
__decorateClass([
|
|
4312
|
-
|
|
4405
|
+
Column32({ name: "branch_name", type: "varchar", nullable: true })
|
|
4313
4406
|
], BankDetail.prototype, "branchName", 2);
|
|
4314
4407
|
__decorateClass([
|
|
4315
|
-
|
|
4408
|
+
Column32({ name: "routing_no", type: "varchar", nullable: true })
|
|
4316
4409
|
], BankDetail.prototype, "routingNo", 2);
|
|
4317
4410
|
__decorateClass([
|
|
4318
|
-
|
|
4411
|
+
Column32({ name: "aba_no", type: "varchar", nullable: true })
|
|
4319
4412
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4320
4413
|
__decorateClass([
|
|
4321
|
-
|
|
4414
|
+
Column32({ name: "iban", type: "varchar", nullable: true })
|
|
4322
4415
|
], BankDetail.prototype, "iban", 2);
|
|
4323
4416
|
__decorateClass([
|
|
4324
|
-
|
|
4417
|
+
Column32({
|
|
4325
4418
|
name: "account_type",
|
|
4326
4419
|
type: "enum",
|
|
4327
4420
|
enum: BankAccountTypeEnum,
|
|
@@ -4329,7 +4422,7 @@ __decorateClass([
|
|
|
4329
4422
|
})
|
|
4330
4423
|
], BankDetail.prototype, "accountType", 2);
|
|
4331
4424
|
__decorateClass([
|
|
4332
|
-
|
|
4425
|
+
Column32({
|
|
4333
4426
|
name: "account_scope",
|
|
4334
4427
|
type: "enum",
|
|
4335
4428
|
enum: BankAccountScopeEnum,
|
|
@@ -4337,185 +4430,185 @@ __decorateClass([
|
|
|
4337
4430
|
})
|
|
4338
4431
|
], BankDetail.prototype, "accountScope", 2);
|
|
4339
4432
|
BankDetail = __decorateClass([
|
|
4340
|
-
|
|
4433
|
+
Entity31("bank_details")
|
|
4341
4434
|
], BankDetail);
|
|
4342
4435
|
|
|
4343
4436
|
// src/entities/system-preference.entity.ts
|
|
4344
4437
|
import {
|
|
4345
|
-
Entity as
|
|
4346
|
-
Column as
|
|
4347
|
-
Index as
|
|
4348
|
-
ManyToOne as
|
|
4349
|
-
JoinColumn as
|
|
4438
|
+
Entity as Entity32,
|
|
4439
|
+
Column as Column33,
|
|
4440
|
+
Index as Index26,
|
|
4441
|
+
ManyToOne as ManyToOne31,
|
|
4442
|
+
JoinColumn as JoinColumn31
|
|
4350
4443
|
} from "typeorm";
|
|
4351
4444
|
var SystemPreference = class extends BaseEntity {
|
|
4352
4445
|
};
|
|
4353
4446
|
// individual index to find system preference by user
|
|
4354
4447
|
__decorateClass([
|
|
4355
|
-
|
|
4356
|
-
|
|
4448
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
4449
|
+
Index26()
|
|
4357
4450
|
], SystemPreference.prototype, "userId", 2);
|
|
4358
4451
|
__decorateClass([
|
|
4359
|
-
|
|
4360
|
-
|
|
4452
|
+
ManyToOne31(() => User, (user) => user.systemPreference),
|
|
4453
|
+
JoinColumn31({ name: "user_id" })
|
|
4361
4454
|
], SystemPreference.prototype, "user", 2);
|
|
4362
4455
|
__decorateClass([
|
|
4363
|
-
|
|
4456
|
+
Column33({ name: "key", type: "varchar", nullable: false })
|
|
4364
4457
|
], SystemPreference.prototype, "key", 2);
|
|
4365
4458
|
__decorateClass([
|
|
4366
|
-
|
|
4459
|
+
Column33({ name: "value", type: "boolean", default: false })
|
|
4367
4460
|
], SystemPreference.prototype, "value", 2);
|
|
4368
4461
|
SystemPreference = __decorateClass([
|
|
4369
|
-
|
|
4462
|
+
Entity32("system_preferences")
|
|
4370
4463
|
], SystemPreference);
|
|
4371
4464
|
|
|
4372
4465
|
// src/entities/freelancer-experience.entity.ts
|
|
4373
4466
|
import {
|
|
4374
|
-
Entity as
|
|
4375
|
-
Column as
|
|
4376
|
-
Index as
|
|
4377
|
-
ManyToOne as
|
|
4378
|
-
JoinColumn as
|
|
4467
|
+
Entity as Entity33,
|
|
4468
|
+
Column as Column34,
|
|
4469
|
+
Index as Index27,
|
|
4470
|
+
ManyToOne as ManyToOne32,
|
|
4471
|
+
JoinColumn as JoinColumn32
|
|
4379
4472
|
} from "typeorm";
|
|
4380
4473
|
var FreelancerExperience = class extends BaseEntity {
|
|
4381
4474
|
};
|
|
4382
4475
|
// individual index to find experence by user
|
|
4383
4476
|
__decorateClass([
|
|
4384
|
-
|
|
4385
|
-
|
|
4477
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
4478
|
+
Index27()
|
|
4386
4479
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4387
4480
|
__decorateClass([
|
|
4388
|
-
|
|
4389
|
-
|
|
4481
|
+
ManyToOne32(() => User, (user) => user.freelancerExperience),
|
|
4482
|
+
JoinColumn32({ name: "user_id" })
|
|
4390
4483
|
], FreelancerExperience.prototype, "user", 2);
|
|
4391
4484
|
__decorateClass([
|
|
4392
|
-
|
|
4485
|
+
Column34({ name: "company_name", type: "varchar", nullable: true })
|
|
4393
4486
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4394
4487
|
__decorateClass([
|
|
4395
|
-
|
|
4488
|
+
Column34({ name: "designation", type: "varchar", nullable: true })
|
|
4396
4489
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4397
4490
|
__decorateClass([
|
|
4398
|
-
|
|
4491
|
+
Column34({ name: "job_duration", type: "varchar", nullable: true })
|
|
4399
4492
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4400
4493
|
__decorateClass([
|
|
4401
|
-
|
|
4494
|
+
Column34({ name: "description", type: "varchar", nullable: true })
|
|
4402
4495
|
], FreelancerExperience.prototype, "description", 2);
|
|
4403
4496
|
FreelancerExperience = __decorateClass([
|
|
4404
|
-
|
|
4497
|
+
Entity33("freelancer_experiences")
|
|
4405
4498
|
], FreelancerExperience);
|
|
4406
4499
|
|
|
4407
4500
|
// src/entities/freelancer-education.entity.ts
|
|
4408
4501
|
import {
|
|
4409
|
-
Entity as
|
|
4410
|
-
Column as
|
|
4411
|
-
Index as
|
|
4412
|
-
ManyToOne as
|
|
4413
|
-
JoinColumn as
|
|
4502
|
+
Entity as Entity34,
|
|
4503
|
+
Column as Column35,
|
|
4504
|
+
Index as Index28,
|
|
4505
|
+
ManyToOne as ManyToOne33,
|
|
4506
|
+
JoinColumn as JoinColumn33
|
|
4414
4507
|
} from "typeorm";
|
|
4415
4508
|
var FreelancerEducation = class extends BaseEntity {
|
|
4416
4509
|
};
|
|
4417
4510
|
// individual index to find education by user
|
|
4418
4511
|
__decorateClass([
|
|
4419
|
-
|
|
4420
|
-
|
|
4512
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
4513
|
+
Index28()
|
|
4421
4514
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4422
4515
|
__decorateClass([
|
|
4423
|
-
|
|
4424
|
-
|
|
4516
|
+
ManyToOne33(() => User, (user) => user.freelancerEducation),
|
|
4517
|
+
JoinColumn33({ name: "user_id" })
|
|
4425
4518
|
], FreelancerEducation.prototype, "user", 2);
|
|
4426
4519
|
__decorateClass([
|
|
4427
|
-
|
|
4520
|
+
Column35({ name: "degree", type: "varchar", nullable: true })
|
|
4428
4521
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4429
4522
|
__decorateClass([
|
|
4430
|
-
|
|
4523
|
+
Column35({ name: "university", type: "varchar", nullable: true })
|
|
4431
4524
|
], FreelancerEducation.prototype, "university", 2);
|
|
4432
4525
|
__decorateClass([
|
|
4433
|
-
|
|
4526
|
+
Column35({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4434
4527
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4435
4528
|
FreelancerEducation = __decorateClass([
|
|
4436
|
-
|
|
4529
|
+
Entity34("freelancer_educations")
|
|
4437
4530
|
], FreelancerEducation);
|
|
4438
4531
|
|
|
4439
4532
|
// src/entities/freelancer-project.entity.ts
|
|
4440
4533
|
import {
|
|
4441
|
-
Entity as
|
|
4442
|
-
Column as
|
|
4443
|
-
Index as
|
|
4444
|
-
ManyToOne as
|
|
4445
|
-
JoinColumn as
|
|
4534
|
+
Entity as Entity35,
|
|
4535
|
+
Column as Column36,
|
|
4536
|
+
Index as Index29,
|
|
4537
|
+
ManyToOne as ManyToOne34,
|
|
4538
|
+
JoinColumn as JoinColumn34
|
|
4446
4539
|
} from "typeorm";
|
|
4447
4540
|
var FreelancerProject = class extends BaseEntity {
|
|
4448
4541
|
};
|
|
4449
4542
|
// individual index to find project by user
|
|
4450
4543
|
__decorateClass([
|
|
4451
|
-
|
|
4452
|
-
|
|
4544
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4545
|
+
Index29()
|
|
4453
4546
|
], FreelancerProject.prototype, "userId", 2);
|
|
4454
4547
|
__decorateClass([
|
|
4455
|
-
|
|
4456
|
-
|
|
4548
|
+
ManyToOne34(() => User, (user) => user.freelancerProject),
|
|
4549
|
+
JoinColumn34({ name: "user_id" })
|
|
4457
4550
|
], FreelancerProject.prototype, "user", 2);
|
|
4458
4551
|
__decorateClass([
|
|
4459
|
-
|
|
4552
|
+
Column36({ name: "project_name", type: "varchar", nullable: true })
|
|
4460
4553
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4461
4554
|
__decorateClass([
|
|
4462
|
-
|
|
4555
|
+
Column36({ name: "start_date", type: "date", nullable: true })
|
|
4463
4556
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4464
4557
|
__decorateClass([
|
|
4465
|
-
|
|
4558
|
+
Column36({ name: "end_date", type: "date", nullable: true })
|
|
4466
4559
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4467
4560
|
__decorateClass([
|
|
4468
|
-
|
|
4561
|
+
Column36({ name: "client_name", type: "varchar", nullable: true })
|
|
4469
4562
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4470
4563
|
__decorateClass([
|
|
4471
|
-
|
|
4564
|
+
Column36({ name: "git_link", type: "varchar", nullable: true })
|
|
4472
4565
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4473
4566
|
__decorateClass([
|
|
4474
|
-
|
|
4567
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
4475
4568
|
], FreelancerProject.prototype, "description", 2);
|
|
4476
4569
|
FreelancerProject = __decorateClass([
|
|
4477
|
-
|
|
4570
|
+
Entity35("freelancer_projects")
|
|
4478
4571
|
], FreelancerProject);
|
|
4479
4572
|
|
|
4480
4573
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4481
4574
|
import {
|
|
4482
|
-
Entity as
|
|
4483
|
-
Column as
|
|
4484
|
-
Index as
|
|
4485
|
-
ManyToOne as
|
|
4486
|
-
JoinColumn as
|
|
4575
|
+
Entity as Entity36,
|
|
4576
|
+
Column as Column37,
|
|
4577
|
+
Index as Index30,
|
|
4578
|
+
ManyToOne as ManyToOne35,
|
|
4579
|
+
JoinColumn as JoinColumn35
|
|
4487
4580
|
} from "typeorm";
|
|
4488
4581
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4489
4582
|
};
|
|
4490
4583
|
// individual index to find case study by user
|
|
4491
4584
|
__decorateClass([
|
|
4492
|
-
|
|
4493
|
-
|
|
4585
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4586
|
+
Index30()
|
|
4494
4587
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4495
4588
|
__decorateClass([
|
|
4496
|
-
|
|
4497
|
-
|
|
4589
|
+
ManyToOne35(() => User, (user) => user.freelancerCaseStudy),
|
|
4590
|
+
JoinColumn35({ name: "user_id" })
|
|
4498
4591
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4499
4592
|
__decorateClass([
|
|
4500
|
-
|
|
4593
|
+
Column37({ name: "project_name", type: "varchar", nullable: true })
|
|
4501
4594
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4502
4595
|
__decorateClass([
|
|
4503
|
-
|
|
4596
|
+
Column37({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4504
4597
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4505
4598
|
__decorateClass([
|
|
4506
|
-
|
|
4599
|
+
Column37({ name: "description", type: "varchar", nullable: true })
|
|
4507
4600
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4508
4601
|
FreelancerCaseStudy = __decorateClass([
|
|
4509
|
-
|
|
4602
|
+
Entity36("freelancer_case_studies")
|
|
4510
4603
|
], FreelancerCaseStudy);
|
|
4511
4604
|
|
|
4512
4605
|
// src/entities/freelancer-skill.entity.ts
|
|
4513
4606
|
import {
|
|
4514
|
-
Entity as
|
|
4515
|
-
Column as
|
|
4516
|
-
Index as
|
|
4517
|
-
ManyToOne as
|
|
4518
|
-
JoinColumn as
|
|
4607
|
+
Entity as Entity37,
|
|
4608
|
+
Column as Column38,
|
|
4609
|
+
Index as Index31,
|
|
4610
|
+
ManyToOne as ManyToOne36,
|
|
4611
|
+
JoinColumn as JoinColumn36
|
|
4519
4612
|
} from "typeorm";
|
|
4520
4613
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4521
4614
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4526,18 +4619,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4526
4619
|
};
|
|
4527
4620
|
// individual index to find core skills by user
|
|
4528
4621
|
__decorateClass([
|
|
4529
|
-
|
|
4530
|
-
|
|
4622
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4623
|
+
Index31()
|
|
4531
4624
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4532
4625
|
__decorateClass([
|
|
4533
|
-
|
|
4534
|
-
|
|
4626
|
+
ManyToOne36(() => User, (user) => user.freelancerSkills),
|
|
4627
|
+
JoinColumn36({ name: "user_id" })
|
|
4535
4628
|
], FreelancerSkill.prototype, "user", 2);
|
|
4536
4629
|
__decorateClass([
|
|
4537
|
-
|
|
4630
|
+
Column38({ name: "skill_name", type: "varchar", nullable: true })
|
|
4538
4631
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4539
4632
|
__decorateClass([
|
|
4540
|
-
|
|
4633
|
+
Column38({
|
|
4541
4634
|
name: "skill_category",
|
|
4542
4635
|
type: "smallint",
|
|
4543
4636
|
default: 1,
|
|
@@ -4545,68 +4638,68 @@ __decorateClass([
|
|
|
4545
4638
|
})
|
|
4546
4639
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4547
4640
|
FreelancerSkill = __decorateClass([
|
|
4548
|
-
|
|
4641
|
+
Entity37("freelancer_skills")
|
|
4549
4642
|
], FreelancerSkill);
|
|
4550
4643
|
|
|
4551
4644
|
// src/entities/freelancer-tool.entity.ts
|
|
4552
4645
|
import {
|
|
4553
|
-
Entity as
|
|
4554
|
-
Column as
|
|
4555
|
-
Index as
|
|
4556
|
-
ManyToOne as
|
|
4557
|
-
JoinColumn as
|
|
4646
|
+
Entity as Entity38,
|
|
4647
|
+
Column as Column39,
|
|
4648
|
+
Index as Index32,
|
|
4649
|
+
ManyToOne as ManyToOne37,
|
|
4650
|
+
JoinColumn as JoinColumn37
|
|
4558
4651
|
} from "typeorm";
|
|
4559
4652
|
var FreelancerTool = class extends BaseEntity {
|
|
4560
4653
|
};
|
|
4561
4654
|
// individual index to find tool by user
|
|
4562
4655
|
__decorateClass([
|
|
4563
|
-
|
|
4564
|
-
|
|
4656
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4657
|
+
Index32()
|
|
4565
4658
|
], FreelancerTool.prototype, "userId", 2);
|
|
4566
4659
|
__decorateClass([
|
|
4567
|
-
|
|
4568
|
-
|
|
4660
|
+
ManyToOne37(() => User, (user) => user.freelancerTool),
|
|
4661
|
+
JoinColumn37({ name: "user_id" })
|
|
4569
4662
|
], FreelancerTool.prototype, "user", 2);
|
|
4570
4663
|
__decorateClass([
|
|
4571
|
-
|
|
4664
|
+
Column39({ name: "tool_name", type: "varchar", nullable: true })
|
|
4572
4665
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4573
4666
|
FreelancerTool = __decorateClass([
|
|
4574
|
-
|
|
4667
|
+
Entity38("freelancer_tools")
|
|
4575
4668
|
], FreelancerTool);
|
|
4576
4669
|
|
|
4577
4670
|
// src/entities/freelancer-framework.entity.ts
|
|
4578
4671
|
import {
|
|
4579
|
-
Entity as
|
|
4580
|
-
Column as
|
|
4581
|
-
Index as
|
|
4582
|
-
ManyToOne as
|
|
4583
|
-
JoinColumn as
|
|
4672
|
+
Entity as Entity39,
|
|
4673
|
+
Column as Column40,
|
|
4674
|
+
Index as Index33,
|
|
4675
|
+
ManyToOne as ManyToOne38,
|
|
4676
|
+
JoinColumn as JoinColumn38
|
|
4584
4677
|
} from "typeorm";
|
|
4585
4678
|
var FreelancerFramework = class extends BaseEntity {
|
|
4586
4679
|
};
|
|
4587
4680
|
// individual index to find framework by user
|
|
4588
4681
|
__decorateClass([
|
|
4589
|
-
|
|
4590
|
-
|
|
4682
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4683
|
+
Index33()
|
|
4591
4684
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4592
4685
|
__decorateClass([
|
|
4593
|
-
|
|
4594
|
-
|
|
4686
|
+
ManyToOne38(() => User, (user) => user.freelancerFramework),
|
|
4687
|
+
JoinColumn38({ name: "user_id" })
|
|
4595
4688
|
], FreelancerFramework.prototype, "user", 2);
|
|
4596
4689
|
__decorateClass([
|
|
4597
|
-
|
|
4690
|
+
Column40({ name: "framework_name", type: "varchar", nullable: true })
|
|
4598
4691
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4599
4692
|
FreelancerFramework = __decorateClass([
|
|
4600
|
-
|
|
4693
|
+
Entity39("freelancer_frameworks")
|
|
4601
4694
|
], FreelancerFramework);
|
|
4602
4695
|
|
|
4603
4696
|
// src/entities/freelancer-assessment.entity.ts
|
|
4604
4697
|
import {
|
|
4605
|
-
Entity as
|
|
4606
|
-
Column as
|
|
4607
|
-
Index as
|
|
4608
|
-
ManyToOne as
|
|
4609
|
-
JoinColumn as
|
|
4698
|
+
Entity as Entity40,
|
|
4699
|
+
Column as Column41,
|
|
4700
|
+
Index as Index34,
|
|
4701
|
+
ManyToOne as ManyToOne39,
|
|
4702
|
+
JoinColumn as JoinColumn39
|
|
4610
4703
|
} from "typeorm";
|
|
4611
4704
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4612
4705
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4623,30 +4716,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4623
4716
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4624
4717
|
};
|
|
4625
4718
|
__decorateClass([
|
|
4626
|
-
|
|
4627
|
-
|
|
4719
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4720
|
+
Index34()
|
|
4628
4721
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4629
4722
|
__decorateClass([
|
|
4630
|
-
|
|
4631
|
-
|
|
4723
|
+
ManyToOne39(() => User, (user) => user.assessments),
|
|
4724
|
+
JoinColumn39({ name: "user_id" })
|
|
4632
4725
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4633
4726
|
__decorateClass([
|
|
4634
|
-
|
|
4727
|
+
Column41({ name: "interview_id", type: "varchar", nullable: true })
|
|
4635
4728
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4636
4729
|
__decorateClass([
|
|
4637
|
-
|
|
4730
|
+
Column41({ name: "interview_link", type: "text", nullable: true })
|
|
4638
4731
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4639
4732
|
__decorateClass([
|
|
4640
|
-
|
|
4733
|
+
Column41({ name: "recording_link", type: "text", nullable: true })
|
|
4641
4734
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4642
4735
|
__decorateClass([
|
|
4643
|
-
|
|
4736
|
+
Column41({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4644
4737
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4645
4738
|
__decorateClass([
|
|
4646
|
-
|
|
4739
|
+
Column41({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4647
4740
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4648
4741
|
__decorateClass([
|
|
4649
|
-
|
|
4742
|
+
Column41({
|
|
4650
4743
|
name: "status",
|
|
4651
4744
|
type: "enum",
|
|
4652
4745
|
enum: AssessmentStatusEnum,
|
|
@@ -4654,11 +4747,11 @@ __decorateClass([
|
|
|
4654
4747
|
})
|
|
4655
4748
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4656
4749
|
FreelancerAssessment = __decorateClass([
|
|
4657
|
-
|
|
4750
|
+
Entity40("freelancer_assessments")
|
|
4658
4751
|
], FreelancerAssessment);
|
|
4659
4752
|
|
|
4660
4753
|
// src/entities/freelancer-declaration.entity.ts
|
|
4661
|
-
import { Entity as
|
|
4754
|
+
import { Entity as Entity41, Column as Column42, Index as Index35, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40 } from "typeorm";
|
|
4662
4755
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4663
4756
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4664
4757
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4670,15 +4763,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4670
4763
|
};
|
|
4671
4764
|
// individual index to find declaration by user
|
|
4672
4765
|
__decorateClass([
|
|
4673
|
-
|
|
4674
|
-
|
|
4766
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4767
|
+
Index35()
|
|
4675
4768
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4676
4769
|
__decorateClass([
|
|
4677
|
-
|
|
4678
|
-
|
|
4770
|
+
ManyToOne40(() => User, (user) => user.freelancerDeclaration),
|
|
4771
|
+
JoinColumn40({ name: "user_id" })
|
|
4679
4772
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4680
4773
|
__decorateClass([
|
|
4681
|
-
|
|
4774
|
+
Column42({
|
|
4682
4775
|
name: "document_type",
|
|
4683
4776
|
type: "enum",
|
|
4684
4777
|
enum: DocumentType,
|
|
@@ -4686,175 +4779,175 @@ __decorateClass([
|
|
|
4686
4779
|
})
|
|
4687
4780
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4688
4781
|
__decorateClass([
|
|
4689
|
-
|
|
4782
|
+
Column42({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4690
4783
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4691
4784
|
__decorateClass([
|
|
4692
|
-
|
|
4785
|
+
Column42({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4693
4786
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4694
4787
|
__decorateClass([
|
|
4695
|
-
|
|
4788
|
+
Column42({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4696
4789
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4697
4790
|
__decorateClass([
|
|
4698
|
-
|
|
4791
|
+
Column42({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4699
4792
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4700
4793
|
FreelancerDeclaration = __decorateClass([
|
|
4701
|
-
|
|
4794
|
+
Entity41("freelancer_declaration")
|
|
4702
4795
|
], FreelancerDeclaration);
|
|
4703
4796
|
|
|
4704
4797
|
// src/entities/company-members-roles.entity.ts
|
|
4798
|
+
import {
|
|
4799
|
+
Column as Column46,
|
|
4800
|
+
Entity as Entity45,
|
|
4801
|
+
ManyToOne as ManyToOne43,
|
|
4802
|
+
JoinColumn as JoinColumn43,
|
|
4803
|
+
Index as Index39
|
|
4804
|
+
} from "typeorm";
|
|
4805
|
+
|
|
4806
|
+
// src/entities/company-role.entity.ts
|
|
4705
4807
|
import {
|
|
4706
4808
|
Column as Column45,
|
|
4707
4809
|
Entity as Entity44,
|
|
4708
|
-
|
|
4810
|
+
Index as Index38,
|
|
4709
4811
|
JoinColumn as JoinColumn42,
|
|
4710
|
-
|
|
4812
|
+
ManyToOne as ManyToOne42,
|
|
4813
|
+
OneToMany as OneToMany15
|
|
4711
4814
|
} from "typeorm";
|
|
4712
4815
|
|
|
4713
|
-
// src/entities/company-role.entity.ts
|
|
4816
|
+
// src/entities/company-role-permission.entity.ts
|
|
4714
4817
|
import {
|
|
4715
4818
|
Column as Column44,
|
|
4716
4819
|
Entity as Entity43,
|
|
4717
|
-
Index as Index37,
|
|
4718
|
-
JoinColumn as JoinColumn41,
|
|
4719
4820
|
ManyToOne as ManyToOne41,
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
// src/entities/company-role-permission.entity.ts
|
|
4724
|
-
import {
|
|
4725
|
-
Column as Column43,
|
|
4726
|
-
Entity as Entity42,
|
|
4727
|
-
ManyToOne as ManyToOne40,
|
|
4728
|
-
JoinColumn as JoinColumn40,
|
|
4729
|
-
Index as Index36
|
|
4821
|
+
JoinColumn as JoinColumn41,
|
|
4822
|
+
Index as Index37
|
|
4730
4823
|
} from "typeorm";
|
|
4731
4824
|
|
|
4732
4825
|
// src/entities/permission.entity.ts
|
|
4733
|
-
import { Column as
|
|
4826
|
+
import { Column as Column43, Entity as Entity42, Index as Index36 } from "typeorm";
|
|
4734
4827
|
var Permission = class extends BaseEntity {
|
|
4735
4828
|
};
|
|
4736
4829
|
__decorateClass([
|
|
4737
|
-
|
|
4830
|
+
Column43({ name: "name", type: "varchar", nullable: true })
|
|
4738
4831
|
], Permission.prototype, "name", 2);
|
|
4739
4832
|
__decorateClass([
|
|
4740
|
-
|
|
4741
|
-
|
|
4833
|
+
Column43({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4834
|
+
Index36()
|
|
4742
4835
|
], Permission.prototype, "slug", 2);
|
|
4743
4836
|
__decorateClass([
|
|
4744
|
-
|
|
4837
|
+
Column43({ name: "description", type: "text", nullable: true })
|
|
4745
4838
|
], Permission.prototype, "description", 2);
|
|
4746
4839
|
__decorateClass([
|
|
4747
|
-
|
|
4840
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
4748
4841
|
], Permission.prototype, "isActive", 2);
|
|
4749
4842
|
Permission = __decorateClass([
|
|
4750
|
-
|
|
4843
|
+
Entity42("permissions")
|
|
4751
4844
|
], Permission);
|
|
4752
4845
|
|
|
4753
4846
|
// src/entities/company-role-permission.entity.ts
|
|
4754
4847
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4755
4848
|
};
|
|
4756
4849
|
__decorateClass([
|
|
4757
|
-
|
|
4758
|
-
|
|
4850
|
+
Column44({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4851
|
+
Index37()
|
|
4759
4852
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4760
4853
|
__decorateClass([
|
|
4761
|
-
|
|
4854
|
+
ManyToOne41(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4762
4855
|
onDelete: "CASCADE"
|
|
4763
4856
|
}),
|
|
4764
|
-
|
|
4857
|
+
JoinColumn41({ name: "company_role_id" })
|
|
4765
4858
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4766
4859
|
__decorateClass([
|
|
4767
|
-
|
|
4768
|
-
|
|
4860
|
+
Column44({ name: "permission_id", type: "integer" }),
|
|
4861
|
+
Index37()
|
|
4769
4862
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4770
4863
|
__decorateClass([
|
|
4771
|
-
|
|
4772
|
-
|
|
4864
|
+
ManyToOne41(() => Permission, { onDelete: "CASCADE" }),
|
|
4865
|
+
JoinColumn41({ name: "permission_id" })
|
|
4773
4866
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4774
4867
|
__decorateClass([
|
|
4775
|
-
|
|
4868
|
+
Column44({ name: "assigned_by", type: "integer", nullable: true })
|
|
4776
4869
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4777
4870
|
CompanyRolePermission = __decorateClass([
|
|
4778
|
-
|
|
4871
|
+
Entity43("company_role_permissions")
|
|
4779
4872
|
], CompanyRolePermission);
|
|
4780
4873
|
|
|
4781
4874
|
// src/entities/company-role.entity.ts
|
|
4782
4875
|
var CompanyRole = class extends BaseEntity {
|
|
4783
4876
|
};
|
|
4784
4877
|
__decorateClass([
|
|
4785
|
-
|
|
4786
|
-
|
|
4878
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4879
|
+
Index38()
|
|
4787
4880
|
], CompanyRole.prototype, "userId", 2);
|
|
4788
4881
|
__decorateClass([
|
|
4789
|
-
|
|
4790
|
-
|
|
4882
|
+
ManyToOne42(() => User, (user) => user.otps),
|
|
4883
|
+
JoinColumn42({ name: "user_id" })
|
|
4791
4884
|
], CompanyRole.prototype, "user", 2);
|
|
4792
4885
|
__decorateClass([
|
|
4793
|
-
|
|
4886
|
+
Column45({ name: "name", type: "varchar" })
|
|
4794
4887
|
], CompanyRole.prototype, "name", 2);
|
|
4795
4888
|
__decorateClass([
|
|
4796
|
-
|
|
4797
|
-
|
|
4889
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4890
|
+
Index38()
|
|
4798
4891
|
], CompanyRole.prototype, "slug", 2);
|
|
4799
4892
|
__decorateClass([
|
|
4800
|
-
|
|
4893
|
+
Column45({ name: "description", type: "text", nullable: true })
|
|
4801
4894
|
], CompanyRole.prototype, "description", 2);
|
|
4802
4895
|
__decorateClass([
|
|
4803
|
-
|
|
4896
|
+
Column45({ name: "is_active", type: "boolean", default: true })
|
|
4804
4897
|
], CompanyRole.prototype, "isActive", 2);
|
|
4805
4898
|
__decorateClass([
|
|
4806
|
-
|
|
4899
|
+
OneToMany15(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4807
4900
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4808
4901
|
CompanyRole = __decorateClass([
|
|
4809
|
-
|
|
4902
|
+
Entity44("company_roles")
|
|
4810
4903
|
], CompanyRole);
|
|
4811
4904
|
|
|
4812
4905
|
// src/entities/company-members-roles.entity.ts
|
|
4813
4906
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4814
4907
|
};
|
|
4815
4908
|
__decorateClass([
|
|
4816
|
-
|
|
4817
|
-
|
|
4909
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4910
|
+
Index39()
|
|
4818
4911
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4819
4912
|
__decorateClass([
|
|
4820
|
-
|
|
4821
|
-
|
|
4913
|
+
ManyToOne43(() => User),
|
|
4914
|
+
JoinColumn43({ name: "user_id" })
|
|
4822
4915
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4823
4916
|
__decorateClass([
|
|
4824
|
-
|
|
4825
|
-
|
|
4917
|
+
ManyToOne43(() => CompanyRole),
|
|
4918
|
+
JoinColumn43({ name: "company_role_id" })
|
|
4826
4919
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4827
4920
|
__decorateClass([
|
|
4828
|
-
|
|
4829
|
-
|
|
4921
|
+
Column46({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4922
|
+
Index39()
|
|
4830
4923
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4831
4924
|
__decorateClass([
|
|
4832
|
-
|
|
4925
|
+
Column46({ name: "assigned_by", type: "integer", nullable: true })
|
|
4833
4926
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4834
4927
|
CompanyMemberRole = __decorateClass([
|
|
4835
|
-
|
|
4928
|
+
Entity45("company_member_roles")
|
|
4836
4929
|
], CompanyMemberRole);
|
|
4837
4930
|
|
|
4838
4931
|
// src/entities/assessment-answer.entity.ts
|
|
4839
4932
|
import {
|
|
4840
|
-
Entity as
|
|
4841
|
-
Column as
|
|
4842
|
-
ManyToOne as
|
|
4843
|
-
Index as
|
|
4844
|
-
JoinColumn as
|
|
4933
|
+
Entity as Entity48,
|
|
4934
|
+
Column as Column49,
|
|
4935
|
+
ManyToOne as ManyToOne45,
|
|
4936
|
+
Index as Index41,
|
|
4937
|
+
JoinColumn as JoinColumn45
|
|
4845
4938
|
} from "typeorm";
|
|
4846
4939
|
|
|
4847
4940
|
// src/entities/assessment-question.entity.ts
|
|
4848
|
-
import { Entity as
|
|
4941
|
+
import { Entity as Entity47, Column as Column48, OneToMany as OneToMany17 } from "typeorm";
|
|
4849
4942
|
|
|
4850
4943
|
// src/entities/assessment-question-option.entity.ts
|
|
4851
4944
|
import {
|
|
4852
|
-
Entity as
|
|
4853
|
-
Column as
|
|
4854
|
-
OneToMany as
|
|
4855
|
-
ManyToOne as
|
|
4856
|
-
Index as
|
|
4857
|
-
JoinColumn as
|
|
4945
|
+
Entity as Entity46,
|
|
4946
|
+
Column as Column47,
|
|
4947
|
+
OneToMany as OneToMany16,
|
|
4948
|
+
ManyToOne as ManyToOne44,
|
|
4949
|
+
Index as Index40,
|
|
4950
|
+
JoinColumn as JoinColumn44
|
|
4858
4951
|
} from "typeorm";
|
|
4859
4952
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4860
4953
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -4865,21 +4958,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4865
4958
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4866
4959
|
};
|
|
4867
4960
|
__decorateClass([
|
|
4868
|
-
|
|
4869
|
-
|
|
4961
|
+
Column47({ name: "question_id", type: "integer", nullable: true }),
|
|
4962
|
+
Index40()
|
|
4870
4963
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4871
4964
|
__decorateClass([
|
|
4872
|
-
|
|
4965
|
+
ManyToOne44(
|
|
4873
4966
|
() => AssessmetQuestion,
|
|
4874
4967
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4875
4968
|
),
|
|
4876
|
-
|
|
4969
|
+
JoinColumn44({ name: "question_id" })
|
|
4877
4970
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4878
4971
|
__decorateClass([
|
|
4879
|
-
|
|
4972
|
+
Column47({ name: "text", type: "varchar", nullable: true })
|
|
4880
4973
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4881
4974
|
__decorateClass([
|
|
4882
|
-
|
|
4975
|
+
Column47({
|
|
4883
4976
|
name: "answer_type",
|
|
4884
4977
|
type: "enum",
|
|
4885
4978
|
enum: AnswerTypeEnum,
|
|
@@ -4887,13 +4980,13 @@ __decorateClass([
|
|
|
4887
4980
|
})
|
|
4888
4981
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4889
4982
|
__decorateClass([
|
|
4890
|
-
|
|
4983
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
4891
4984
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4892
4985
|
__decorateClass([
|
|
4893
|
-
|
|
4986
|
+
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4894
4987
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4895
4988
|
AssessmetQuestionOption = __decorateClass([
|
|
4896
|
-
|
|
4989
|
+
Entity46("assessment_question_options")
|
|
4897
4990
|
], AssessmetQuestionOption);
|
|
4898
4991
|
|
|
4899
4992
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4905,10 +4998,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4905
4998
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4906
4999
|
};
|
|
4907
5000
|
__decorateClass([
|
|
4908
|
-
|
|
5001
|
+
Column48({ name: "text", type: "varchar", nullable: true })
|
|
4909
5002
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4910
5003
|
__decorateClass([
|
|
4911
|
-
|
|
5004
|
+
Column48({
|
|
4912
5005
|
name: "question_for",
|
|
4913
5006
|
type: "enum",
|
|
4914
5007
|
enum: QuestionForEnum,
|
|
@@ -4916,16 +5009,16 @@ __decorateClass([
|
|
|
4916
5009
|
})
|
|
4917
5010
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4918
5011
|
__decorateClass([
|
|
4919
|
-
|
|
5012
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4920
5013
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4921
5014
|
__decorateClass([
|
|
4922
|
-
|
|
5015
|
+
OneToMany17(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
4923
5016
|
], AssessmetQuestion.prototype, "options", 2);
|
|
4924
5017
|
__decorateClass([
|
|
4925
|
-
|
|
5018
|
+
OneToMany17(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4926
5019
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4927
5020
|
AssessmetQuestion = __decorateClass([
|
|
4928
|
-
|
|
5021
|
+
Entity47("assessment_questions")
|
|
4929
5022
|
], AssessmetQuestion);
|
|
4930
5023
|
|
|
4931
5024
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4938,118 +5031,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4938
5031
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4939
5032
|
};
|
|
4940
5033
|
__decorateClass([
|
|
4941
|
-
|
|
4942
|
-
|
|
5034
|
+
Column49({ name: "user_id", type: "integer" }),
|
|
5035
|
+
Index41()
|
|
4943
5036
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4944
5037
|
__decorateClass([
|
|
4945
|
-
|
|
4946
|
-
|
|
5038
|
+
ManyToOne45(() => User, (user) => user.assessmentAnswers),
|
|
5039
|
+
JoinColumn45({ name: "user_id" })
|
|
4947
5040
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4948
5041
|
__decorateClass([
|
|
4949
|
-
|
|
4950
|
-
|
|
5042
|
+
Column49({ name: "question_id", type: "integer" }),
|
|
5043
|
+
Index41()
|
|
4951
5044
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4952
5045
|
__decorateClass([
|
|
4953
|
-
|
|
5046
|
+
ManyToOne45(
|
|
4954
5047
|
() => AssessmetQuestion,
|
|
4955
5048
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4956
5049
|
),
|
|
4957
|
-
|
|
5050
|
+
JoinColumn45({ name: "question_id" })
|
|
4958
5051
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4959
5052
|
__decorateClass([
|
|
4960
|
-
|
|
4961
|
-
|
|
5053
|
+
Column49({ name: "selected_option_id", type: "integer" }),
|
|
5054
|
+
Index41()
|
|
4962
5055
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4963
5056
|
__decorateClass([
|
|
4964
|
-
|
|
5057
|
+
ManyToOne45(
|
|
4965
5058
|
() => AssessmetQuestionOption,
|
|
4966
5059
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4967
5060
|
),
|
|
4968
|
-
|
|
5061
|
+
JoinColumn45({ name: "selected_option_id" })
|
|
4969
5062
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4970
5063
|
__decorateClass([
|
|
4971
|
-
|
|
5064
|
+
Column49({
|
|
4972
5065
|
name: "selected_answer_type",
|
|
4973
5066
|
type: "enum",
|
|
4974
5067
|
enum: SelectedAnswerTypeEnum
|
|
4975
5068
|
})
|
|
4976
5069
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4977
5070
|
__decorateClass([
|
|
4978
|
-
|
|
5071
|
+
Column49({ name: "score", type: "float" })
|
|
4979
5072
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4980
5073
|
AssessmentAnswer = __decorateClass([
|
|
4981
|
-
|
|
5074
|
+
Entity48("assessment_answers")
|
|
4982
5075
|
], AssessmentAnswer);
|
|
4983
5076
|
|
|
4984
5077
|
// src/entities/company-skill.entity.ts
|
|
4985
|
-
import { Entity as
|
|
5078
|
+
import { Entity as Entity49, Column as Column50, Index as Index42, ManyToOne as ManyToOne46, JoinColumn as JoinColumn46 } from "typeorm";
|
|
4986
5079
|
var CompanySkill = class extends BaseEntity {
|
|
4987
5080
|
};
|
|
4988
5081
|
// individual index to find core skills by user
|
|
4989
5082
|
__decorateClass([
|
|
4990
|
-
|
|
4991
|
-
|
|
5083
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
5084
|
+
Index42()
|
|
4992
5085
|
], CompanySkill.prototype, "userId", 2);
|
|
4993
5086
|
__decorateClass([
|
|
4994
|
-
|
|
4995
|
-
|
|
5087
|
+
ManyToOne46(() => User, (user) => user.freelancerSkills),
|
|
5088
|
+
JoinColumn46({ name: "user_id" })
|
|
4996
5089
|
], CompanySkill.prototype, "user", 2);
|
|
4997
5090
|
__decorateClass([
|
|
4998
|
-
|
|
5091
|
+
Column50({ name: "skill_name", type: "varchar", nullable: true })
|
|
4999
5092
|
], CompanySkill.prototype, "skillName", 2);
|
|
5000
5093
|
CompanySkill = __decorateClass([
|
|
5001
|
-
|
|
5094
|
+
Entity49("company_skills")
|
|
5002
5095
|
], CompanySkill);
|
|
5003
5096
|
|
|
5004
5097
|
// src/entities/admin-user-role.entity.ts
|
|
5005
|
-
import { Entity as
|
|
5098
|
+
import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
5006
5099
|
|
|
5007
5100
|
// src/entities/admin-role.entity.ts
|
|
5008
|
-
import { Entity as
|
|
5101
|
+
import { Entity as Entity52, Column as Column53, Index as Index45, OneToMany as OneToMany20 } from "typeorm";
|
|
5009
5102
|
|
|
5010
5103
|
// src/entities/admin-role-permission.entity.ts
|
|
5011
|
-
import { Entity as
|
|
5104
|
+
import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
5012
5105
|
|
|
5013
5106
|
// src/entities/admin-permission.entity.ts
|
|
5014
|
-
import { Entity as
|
|
5107
|
+
import { Entity as Entity50, Column as Column51, Index as Index43, OneToMany as OneToMany19 } from "typeorm";
|
|
5015
5108
|
var AdminPermission = class extends BaseEntity {
|
|
5016
5109
|
};
|
|
5017
5110
|
__decorateClass([
|
|
5018
|
-
|
|
5111
|
+
Column51({ name: "permission_name", type: "varchar", nullable: true })
|
|
5019
5112
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5020
5113
|
__decorateClass([
|
|
5021
|
-
|
|
5114
|
+
Column51({
|
|
5022
5115
|
name: "permission_slug",
|
|
5023
5116
|
type: "varchar",
|
|
5024
5117
|
unique: true,
|
|
5025
5118
|
nullable: true
|
|
5026
5119
|
}),
|
|
5027
|
-
|
|
5120
|
+
Index43()
|
|
5028
5121
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5029
5122
|
__decorateClass([
|
|
5030
|
-
|
|
5123
|
+
Column51({ name: "permission_description", type: "varchar", nullable: true })
|
|
5031
5124
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5032
5125
|
__decorateClass([
|
|
5033
|
-
|
|
5126
|
+
Column51({ name: "module", type: "varchar", nullable: true })
|
|
5034
5127
|
], AdminPermission.prototype, "module", 2);
|
|
5035
5128
|
__decorateClass([
|
|
5036
|
-
|
|
5129
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5037
5130
|
], AdminPermission.prototype, "isActive", 2);
|
|
5038
5131
|
__decorateClass([
|
|
5039
|
-
|
|
5132
|
+
OneToMany19(
|
|
5040
5133
|
() => AdminRolePermission,
|
|
5041
5134
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5042
5135
|
)
|
|
5043
5136
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5044
5137
|
AdminPermission = __decorateClass([
|
|
5045
|
-
|
|
5138
|
+
Entity50("admin_permissions")
|
|
5046
5139
|
], AdminPermission);
|
|
5047
5140
|
|
|
5048
5141
|
// src/entities/admin-role-permission.entity.ts
|
|
5049
5142
|
var AdminRolePermission = class extends BaseEntity {
|
|
5050
5143
|
};
|
|
5051
5144
|
__decorateClass([
|
|
5052
|
-
|
|
5145
|
+
Column52({
|
|
5053
5146
|
name: "role_id",
|
|
5054
5147
|
type: "int",
|
|
5055
5148
|
nullable: true,
|
|
@@ -5057,11 +5150,11 @@ __decorateClass([
|
|
|
5057
5150
|
})
|
|
5058
5151
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5059
5152
|
__decorateClass([
|
|
5060
|
-
|
|
5061
|
-
|
|
5153
|
+
ManyToOne47(() => AdminRole),
|
|
5154
|
+
JoinColumn47({ name: "role_id" })
|
|
5062
5155
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5063
5156
|
__decorateClass([
|
|
5064
|
-
|
|
5157
|
+
Column52({
|
|
5065
5158
|
name: "permission_id",
|
|
5066
5159
|
type: "int",
|
|
5067
5160
|
nullable: true,
|
|
@@ -5069,47 +5162,47 @@ __decorateClass([
|
|
|
5069
5162
|
})
|
|
5070
5163
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5071
5164
|
__decorateClass([
|
|
5072
|
-
|
|
5073
|
-
|
|
5165
|
+
ManyToOne47(() => AdminPermission),
|
|
5166
|
+
JoinColumn47({ name: "permission_id" })
|
|
5074
5167
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5075
5168
|
AdminRolePermission = __decorateClass([
|
|
5076
|
-
|
|
5169
|
+
Entity51("admin_role_permissions")
|
|
5077
5170
|
], AdminRolePermission);
|
|
5078
5171
|
|
|
5079
5172
|
// src/entities/admin-role.entity.ts
|
|
5080
5173
|
var AdminRole = class extends BaseEntity {
|
|
5081
5174
|
};
|
|
5082
5175
|
__decorateClass([
|
|
5083
|
-
|
|
5176
|
+
Column53({ name: "role_name", type: "varchar", nullable: true })
|
|
5084
5177
|
], AdminRole.prototype, "roleName", 2);
|
|
5085
5178
|
__decorateClass([
|
|
5086
|
-
|
|
5087
|
-
|
|
5179
|
+
Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5180
|
+
Index45()
|
|
5088
5181
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5089
5182
|
__decorateClass([
|
|
5090
|
-
|
|
5183
|
+
Column53({ name: "role_description", type: "varchar", nullable: true })
|
|
5091
5184
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5092
5185
|
__decorateClass([
|
|
5093
|
-
|
|
5186
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5094
5187
|
], AdminRole.prototype, "isActive", 2);
|
|
5095
5188
|
__decorateClass([
|
|
5096
|
-
|
|
5189
|
+
OneToMany20(
|
|
5097
5190
|
() => AdminRolePermission,
|
|
5098
5191
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5099
5192
|
)
|
|
5100
5193
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5101
5194
|
__decorateClass([
|
|
5102
|
-
|
|
5195
|
+
OneToMany20(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5103
5196
|
], AdminRole.prototype, "userRoles", 2);
|
|
5104
5197
|
AdminRole = __decorateClass([
|
|
5105
|
-
|
|
5198
|
+
Entity52("admin_roles")
|
|
5106
5199
|
], AdminRole);
|
|
5107
5200
|
|
|
5108
5201
|
// src/entities/admin-user-role.entity.ts
|
|
5109
5202
|
var AdminUserRole = class extends BaseEntity {
|
|
5110
5203
|
};
|
|
5111
5204
|
__decorateClass([
|
|
5112
|
-
|
|
5205
|
+
Column54({
|
|
5113
5206
|
name: "user_id",
|
|
5114
5207
|
type: "int",
|
|
5115
5208
|
nullable: true,
|
|
@@ -5117,11 +5210,11 @@ __decorateClass([
|
|
|
5117
5210
|
})
|
|
5118
5211
|
], AdminUserRole.prototype, "userId", 2);
|
|
5119
5212
|
__decorateClass([
|
|
5120
|
-
|
|
5121
|
-
|
|
5213
|
+
ManyToOne48(() => User),
|
|
5214
|
+
JoinColumn48({ name: "user_id" })
|
|
5122
5215
|
], AdminUserRole.prototype, "user", 2);
|
|
5123
5216
|
__decorateClass([
|
|
5124
|
-
|
|
5217
|
+
Column54({
|
|
5125
5218
|
name: "role_id",
|
|
5126
5219
|
type: "int",
|
|
5127
5220
|
nullable: true,
|
|
@@ -5129,70 +5222,70 @@ __decorateClass([
|
|
|
5129
5222
|
})
|
|
5130
5223
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5131
5224
|
__decorateClass([
|
|
5132
|
-
|
|
5133
|
-
|
|
5225
|
+
ManyToOne48(() => AdminRole),
|
|
5226
|
+
JoinColumn48({ name: "role_id" })
|
|
5134
5227
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5135
5228
|
AdminUserRole = __decorateClass([
|
|
5136
|
-
|
|
5229
|
+
Entity53("admin_user_roles")
|
|
5137
5230
|
], AdminUserRole);
|
|
5138
5231
|
|
|
5139
5232
|
// src/entities/freelancer-resume.entity.ts
|
|
5140
5233
|
import {
|
|
5141
|
-
Entity as
|
|
5142
|
-
Column as
|
|
5143
|
-
Index as
|
|
5144
|
-
ManyToOne as
|
|
5145
|
-
JoinColumn as
|
|
5234
|
+
Entity as Entity54,
|
|
5235
|
+
Column as Column55,
|
|
5236
|
+
Index as Index47,
|
|
5237
|
+
ManyToOne as ManyToOne49,
|
|
5238
|
+
JoinColumn as JoinColumn49
|
|
5146
5239
|
} from "typeorm";
|
|
5147
5240
|
var FreelancerResume = class extends BaseEntity {
|
|
5148
5241
|
};
|
|
5149
5242
|
// individual index to find profile by user
|
|
5150
5243
|
__decorateClass([
|
|
5151
|
-
|
|
5152
|
-
|
|
5244
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5245
|
+
Index47()
|
|
5153
5246
|
], FreelancerResume.prototype, "userId", 2);
|
|
5154
5247
|
__decorateClass([
|
|
5155
|
-
|
|
5156
|
-
|
|
5248
|
+
ManyToOne49(() => User, (user) => user.freelancerProfile),
|
|
5249
|
+
JoinColumn49({ name: "user_id" })
|
|
5157
5250
|
], FreelancerResume.prototype, "user", 2);
|
|
5158
5251
|
__decorateClass([
|
|
5159
|
-
|
|
5252
|
+
Column55({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5160
5253
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5161
5254
|
__decorateClass([
|
|
5162
|
-
|
|
5255
|
+
Column55({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5163
5256
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5164
5257
|
FreelancerResume = __decorateClass([
|
|
5165
|
-
|
|
5258
|
+
Entity54("freelancer_resumes")
|
|
5166
5259
|
], FreelancerResume);
|
|
5167
5260
|
|
|
5168
5261
|
// src/entities/signature.entity.ts
|
|
5169
5262
|
import {
|
|
5170
|
-
Entity as
|
|
5171
|
-
Column as
|
|
5172
|
-
Index as
|
|
5173
|
-
ManyToOne as
|
|
5174
|
-
JoinColumn as
|
|
5263
|
+
Entity as Entity55,
|
|
5264
|
+
Column as Column56,
|
|
5265
|
+
Index as Index48,
|
|
5266
|
+
ManyToOne as ManyToOne50,
|
|
5267
|
+
JoinColumn as JoinColumn50
|
|
5175
5268
|
} from "typeorm";
|
|
5176
5269
|
var Signature = class extends BaseEntity {
|
|
5177
5270
|
};
|
|
5178
5271
|
// individual index to find profile by user
|
|
5179
5272
|
__decorateClass([
|
|
5180
|
-
|
|
5181
|
-
|
|
5273
|
+
Column56({ name: "user_id", type: "integer", nullable: true }),
|
|
5274
|
+
Index48()
|
|
5182
5275
|
], Signature.prototype, "userId", 2);
|
|
5183
5276
|
__decorateClass([
|
|
5184
|
-
|
|
5185
|
-
|
|
5277
|
+
ManyToOne50(() => User, (user) => user.signatures),
|
|
5278
|
+
JoinColumn50({ name: "user_id" })
|
|
5186
5279
|
], Signature.prototype, "user", 2);
|
|
5187
5280
|
__decorateClass([
|
|
5188
|
-
|
|
5281
|
+
Column56({ name: "signature_url", type: "text", nullable: true })
|
|
5189
5282
|
], Signature.prototype, "signatureUrl", 2);
|
|
5190
5283
|
Signature = __decorateClass([
|
|
5191
|
-
|
|
5284
|
+
Entity55("signatures")
|
|
5192
5285
|
], Signature);
|
|
5193
5286
|
|
|
5194
5287
|
// src/entities/dispute.entity.ts
|
|
5195
|
-
import { Entity as
|
|
5288
|
+
import { Entity as Entity56, Column as Column57, Index as Index49, JoinColumn as JoinColumn51, ManyToOne as ManyToOne51 } from "typeorm";
|
|
5196
5289
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5197
5290
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5198
5291
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5213,36 +5306,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5213
5306
|
var Dispute = class extends BaseEntity {
|
|
5214
5307
|
};
|
|
5215
5308
|
__decorateClass([
|
|
5216
|
-
|
|
5217
|
-
|
|
5309
|
+
Column57({ name: "client_id", type: "integer", nullable: true }),
|
|
5310
|
+
Index49()
|
|
5218
5311
|
], Dispute.prototype, "clientId", 2);
|
|
5219
5312
|
__decorateClass([
|
|
5220
|
-
|
|
5221
|
-
|
|
5313
|
+
ManyToOne51(() => User, (user) => user.clientDisputes),
|
|
5314
|
+
JoinColumn51({ name: "client_id" })
|
|
5222
5315
|
], Dispute.prototype, "client", 2);
|
|
5223
5316
|
__decorateClass([
|
|
5224
|
-
|
|
5225
|
-
|
|
5317
|
+
Column57({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5318
|
+
Index49()
|
|
5226
5319
|
], Dispute.prototype, "freelancerId", 2);
|
|
5227
5320
|
__decorateClass([
|
|
5228
|
-
|
|
5229
|
-
|
|
5321
|
+
ManyToOne51(() => User, (user) => user.freelancerDisputes),
|
|
5322
|
+
JoinColumn51({ name: "freelancer_id" })
|
|
5230
5323
|
], Dispute.prototype, "freelancer", 2);
|
|
5231
5324
|
__decorateClass([
|
|
5232
|
-
|
|
5325
|
+
Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5233
5326
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5234
5327
|
__decorateClass([
|
|
5235
|
-
|
|
5236
|
-
|
|
5328
|
+
Column57({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5329
|
+
Index49()
|
|
5237
5330
|
], Dispute.prototype, "disputeType", 2);
|
|
5238
5331
|
__decorateClass([
|
|
5239
|
-
|
|
5332
|
+
Column57({ name: "description", type: "varchar", nullable: true })
|
|
5240
5333
|
], Dispute.prototype, "description", 2);
|
|
5241
5334
|
__decorateClass([
|
|
5242
|
-
|
|
5335
|
+
Column57({ name: "comment", type: "varchar", nullable: true })
|
|
5243
5336
|
], Dispute.prototype, "comment", 2);
|
|
5244
5337
|
__decorateClass([
|
|
5245
|
-
|
|
5338
|
+
Column57({
|
|
5246
5339
|
name: "status",
|
|
5247
5340
|
type: "enum",
|
|
5248
5341
|
enum: DisputeStatusEnum,
|
|
@@ -5250,7 +5343,7 @@ __decorateClass([
|
|
|
5250
5343
|
})
|
|
5251
5344
|
], Dispute.prototype, "status", 2);
|
|
5252
5345
|
__decorateClass([
|
|
5253
|
-
|
|
5346
|
+
Column57({
|
|
5254
5347
|
name: "initiator_type",
|
|
5255
5348
|
type: "enum",
|
|
5256
5349
|
enum: InitiatorTypeEnum,
|
|
@@ -5259,33 +5352,33 @@ __decorateClass([
|
|
|
5259
5352
|
})
|
|
5260
5353
|
], Dispute.prototype, "initiatorType", 2);
|
|
5261
5354
|
__decorateClass([
|
|
5262
|
-
|
|
5263
|
-
|
|
5355
|
+
Column57({ name: "initiator_id", type: "integer" }),
|
|
5356
|
+
Index49()
|
|
5264
5357
|
], Dispute.prototype, "initiatorId", 2);
|
|
5265
5358
|
__decorateClass([
|
|
5266
|
-
|
|
5267
|
-
|
|
5359
|
+
ManyToOne51(() => User, (user) => user.initiatedDisputes),
|
|
5360
|
+
JoinColumn51({ name: "initiator_id" })
|
|
5268
5361
|
], Dispute.prototype, "initiator", 2);
|
|
5269
5362
|
__decorateClass([
|
|
5270
|
-
|
|
5271
|
-
|
|
5363
|
+
Column57({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5364
|
+
Index49()
|
|
5272
5365
|
], Dispute.prototype, "respondentId", 2);
|
|
5273
5366
|
__decorateClass([
|
|
5274
|
-
|
|
5275
|
-
|
|
5367
|
+
ManyToOne51(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5368
|
+
JoinColumn51({ name: "respondent_id" })
|
|
5276
5369
|
], Dispute.prototype, "respondent", 2);
|
|
5277
5370
|
__decorateClass([
|
|
5278
|
-
|
|
5371
|
+
Column57({ name: "attachments", type: "jsonb", nullable: true })
|
|
5279
5372
|
], Dispute.prototype, "attachments", 2);
|
|
5280
5373
|
__decorateClass([
|
|
5281
|
-
|
|
5374
|
+
Column57({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5282
5375
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5283
5376
|
Dispute = __decorateClass([
|
|
5284
|
-
|
|
5377
|
+
Entity56("disputes")
|
|
5285
5378
|
], Dispute);
|
|
5286
5379
|
|
|
5287
5380
|
// src/entities/stripe-transaction.entity.ts
|
|
5288
|
-
import { Entity as
|
|
5381
|
+
import { Entity as Entity57, Column as Column58, Index as Index50, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
|
|
5289
5382
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5290
5383
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5291
5384
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5307,97 +5400,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5307
5400
|
// Full Stripe session response
|
|
5308
5401
|
};
|
|
5309
5402
|
__decorateClass([
|
|
5310
|
-
|
|
5311
|
-
|
|
5403
|
+
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
5404
|
+
Index50()
|
|
5312
5405
|
], StripeTransaction.prototype, "userId", 2);
|
|
5313
5406
|
__decorateClass([
|
|
5314
|
-
|
|
5315
|
-
|
|
5407
|
+
ManyToOne52(() => User, (user) => user.stripeTransactions),
|
|
5408
|
+
JoinColumn52({ name: "user_id" })
|
|
5316
5409
|
], StripeTransaction.prototype, "user", 2);
|
|
5317
5410
|
__decorateClass([
|
|
5318
|
-
|
|
5411
|
+
Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5319
5412
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5320
5413
|
__decorateClass([
|
|
5321
|
-
|
|
5414
|
+
Column58({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5322
5415
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5323
5416
|
__decorateClass([
|
|
5324
|
-
|
|
5417
|
+
Column58({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5325
5418
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5326
5419
|
__decorateClass([
|
|
5327
|
-
|
|
5420
|
+
Column58({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5328
5421
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5329
5422
|
__decorateClass([
|
|
5330
|
-
|
|
5423
|
+
Column58({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5331
5424
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5332
5425
|
__decorateClass([
|
|
5333
|
-
|
|
5426
|
+
Column58({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5334
5427
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5335
5428
|
__decorateClass([
|
|
5336
|
-
|
|
5429
|
+
Column58({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5337
5430
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5338
5431
|
__decorateClass([
|
|
5339
|
-
|
|
5432
|
+
Column58({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5340
5433
|
], StripeTransaction.prototype, "type", 2);
|
|
5341
5434
|
__decorateClass([
|
|
5342
|
-
|
|
5435
|
+
Column58({ name: "currency", type: "varchar", nullable: true })
|
|
5343
5436
|
], StripeTransaction.prototype, "currency", 2);
|
|
5344
5437
|
__decorateClass([
|
|
5345
|
-
|
|
5438
|
+
Column58({ 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" })
|
|
5346
5439
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5347
5440
|
__decorateClass([
|
|
5348
|
-
|
|
5441
|
+
Column58({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5349
5442
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5350
5443
|
__decorateClass([
|
|
5351
|
-
|
|
5444
|
+
Column58({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5352
5445
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5353
5446
|
__decorateClass([
|
|
5354
|
-
|
|
5447
|
+
Column58({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5355
5448
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5356
5449
|
__decorateClass([
|
|
5357
|
-
|
|
5450
|
+
Column58({ 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" })
|
|
5358
5451
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5359
5452
|
__decorateClass([
|
|
5360
|
-
|
|
5453
|
+
Column58({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5361
5454
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5362
5455
|
__decorateClass([
|
|
5363
|
-
|
|
5456
|
+
Column58({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5364
5457
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5365
5458
|
__decorateClass([
|
|
5366
|
-
|
|
5459
|
+
Column58({ 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" })
|
|
5367
5460
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5368
5461
|
__decorateClass([
|
|
5369
|
-
|
|
5462
|
+
Column58({ name: "description", type: "text", nullable: true })
|
|
5370
5463
|
], StripeTransaction.prototype, "description", 2);
|
|
5371
5464
|
__decorateClass([
|
|
5372
|
-
|
|
5465
|
+
Column58({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5373
5466
|
], StripeTransaction.prototype, "status", 2);
|
|
5374
5467
|
__decorateClass([
|
|
5375
|
-
|
|
5468
|
+
Column58({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5376
5469
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5377
5470
|
__decorateClass([
|
|
5378
|
-
|
|
5471
|
+
Column58({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5379
5472
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5380
5473
|
__decorateClass([
|
|
5381
|
-
|
|
5474
|
+
Column58({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5382
5475
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5383
5476
|
__decorateClass([
|
|
5384
|
-
|
|
5477
|
+
Column58({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5385
5478
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5386
5479
|
__decorateClass([
|
|
5387
|
-
|
|
5480
|
+
Column58({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5388
5481
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5389
5482
|
__decorateClass([
|
|
5390
|
-
|
|
5483
|
+
Column58({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5391
5484
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5392
5485
|
StripeTransaction = __decorateClass([
|
|
5393
|
-
|
|
5486
|
+
Entity57("stripe_transactions")
|
|
5394
5487
|
], StripeTransaction);
|
|
5395
5488
|
|
|
5396
5489
|
// src/entities/wallet.entity.ts
|
|
5397
|
-
import { Entity as
|
|
5490
|
+
import { Entity as Entity59, Column as Column60, Index as Index52, JoinColumn as JoinColumn54, OneToOne as OneToOne10, OneToMany as OneToMany21 } from "typeorm";
|
|
5398
5491
|
|
|
5399
5492
|
// src/entities/wallet-transaction.entity.ts
|
|
5400
|
-
import { Entity as
|
|
5493
|
+
import { Entity as Entity58, Column as Column59, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5401
5494
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5402
5495
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5403
5496
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5414,46 +5507,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5414
5507
|
var WalletTransaction = class extends BaseEntity {
|
|
5415
5508
|
};
|
|
5416
5509
|
__decorateClass([
|
|
5417
|
-
|
|
5418
|
-
|
|
5510
|
+
Column59({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5511
|
+
Index51()
|
|
5419
5512
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5420
5513
|
__decorateClass([
|
|
5421
|
-
|
|
5422
|
-
|
|
5514
|
+
ManyToOne53(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5515
|
+
JoinColumn53({ name: "wallet_id" })
|
|
5423
5516
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5424
5517
|
__decorateClass([
|
|
5425
|
-
|
|
5518
|
+
Column59({ name: "amount", type: "bigint", nullable: true })
|
|
5426
5519
|
], WalletTransaction.prototype, "amount", 2);
|
|
5427
5520
|
__decorateClass([
|
|
5428
|
-
|
|
5521
|
+
Column59({ name: "balance_before", type: "bigint", nullable: true })
|
|
5429
5522
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5430
5523
|
__decorateClass([
|
|
5431
|
-
|
|
5524
|
+
Column59({ name: "balance_after", type: "bigint", nullable: true })
|
|
5432
5525
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5433
5526
|
__decorateClass([
|
|
5434
|
-
|
|
5527
|
+
Column59({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5435
5528
|
], WalletTransaction.prototype, "type", 2);
|
|
5436
5529
|
__decorateClass([
|
|
5437
|
-
|
|
5530
|
+
Column59({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5438
5531
|
], WalletTransaction.prototype, "status", 2);
|
|
5439
5532
|
__decorateClass([
|
|
5440
|
-
|
|
5533
|
+
Column59({ name: "description", type: "text", nullable: true })
|
|
5441
5534
|
], WalletTransaction.prototype, "description", 2);
|
|
5442
5535
|
__decorateClass([
|
|
5443
|
-
|
|
5536
|
+
Column59({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5444
5537
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5445
5538
|
__decorateClass([
|
|
5446
|
-
|
|
5539
|
+
Column59({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5447
5540
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5448
5541
|
__decorateClass([
|
|
5449
|
-
|
|
5542
|
+
Column59({ name: "meta_data", type: "varchar", nullable: true })
|
|
5450
5543
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5451
5544
|
__decorateClass([
|
|
5452
|
-
|
|
5453
|
-
|
|
5545
|
+
Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5546
|
+
Index51()
|
|
5454
5547
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5455
5548
|
WalletTransaction = __decorateClass([
|
|
5456
|
-
|
|
5549
|
+
Entity58("wallet_transactions")
|
|
5457
5550
|
], WalletTransaction);
|
|
5458
5551
|
|
|
5459
5552
|
// src/entities/wallet.entity.ts
|
|
@@ -5471,39 +5564,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5471
5564
|
var Wallet = class extends BaseEntity {
|
|
5472
5565
|
};
|
|
5473
5566
|
__decorateClass([
|
|
5474
|
-
|
|
5475
|
-
|
|
5567
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5568
|
+
Index52()
|
|
5476
5569
|
], Wallet.prototype, "userId", 2);
|
|
5477
5570
|
__decorateClass([
|
|
5478
5571
|
OneToOne10(() => User, (user) => user.wallet),
|
|
5479
|
-
|
|
5572
|
+
JoinColumn54({ name: "user_id" })
|
|
5480
5573
|
], Wallet.prototype, "user", 2);
|
|
5481
5574
|
__decorateClass([
|
|
5482
|
-
|
|
5575
|
+
Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5483
5576
|
], Wallet.prototype, "accountType", 2);
|
|
5484
5577
|
__decorateClass([
|
|
5485
|
-
|
|
5578
|
+
Column60({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5486
5579
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5487
5580
|
__decorateClass([
|
|
5488
|
-
|
|
5581
|
+
Column60({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5489
5582
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5490
5583
|
__decorateClass([
|
|
5491
|
-
|
|
5584
|
+
Column60({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5492
5585
|
], Wallet.prototype, "walletBalance", 2);
|
|
5493
5586
|
__decorateClass([
|
|
5494
|
-
|
|
5587
|
+
Column60({ 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" })
|
|
5495
5588
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5496
5589
|
__decorateClass([
|
|
5497
|
-
|
|
5590
|
+
Column60({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5498
5591
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5499
5592
|
__decorateClass([
|
|
5500
|
-
|
|
5593
|
+
Column60({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5501
5594
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5502
5595
|
__decorateClass([
|
|
5503
|
-
|
|
5596
|
+
OneToMany21(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5504
5597
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5505
5598
|
Wallet = __decorateClass([
|
|
5506
|
-
|
|
5599
|
+
Entity59("wallets")
|
|
5507
5600
|
], Wallet);
|
|
5508
5601
|
|
|
5509
5602
|
// src/entities/user.entity.ts
|
|
@@ -5531,51 +5624,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5531
5624
|
var User = class extends BaseEntity {
|
|
5532
5625
|
};
|
|
5533
5626
|
__decorateClass([
|
|
5534
|
-
|
|
5627
|
+
Column61({ name: "unique_id", type: "varchar", unique: true })
|
|
5535
5628
|
], User.prototype, "uniqueId", 2);
|
|
5536
5629
|
__decorateClass([
|
|
5537
|
-
|
|
5538
|
-
|
|
5630
|
+
Column61({ name: "parent_id", type: "integer", nullable: true }),
|
|
5631
|
+
Index53()
|
|
5539
5632
|
], User.prototype, "parentId", 2);
|
|
5540
5633
|
__decorateClass([
|
|
5541
|
-
|
|
5542
|
-
|
|
5634
|
+
ManyToOne54(() => User, (user) => user.children, { nullable: true }),
|
|
5635
|
+
JoinColumn55({ name: "parent_id" })
|
|
5543
5636
|
], User.prototype, "parent", 2);
|
|
5544
5637
|
__decorateClass([
|
|
5545
|
-
|
|
5638
|
+
OneToMany22(() => User, (user) => user.parent)
|
|
5546
5639
|
], User.prototype, "children", 2);
|
|
5547
5640
|
__decorateClass([
|
|
5548
|
-
|
|
5641
|
+
Column61({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5549
5642
|
], User.prototype, "username", 2);
|
|
5550
5643
|
__decorateClass([
|
|
5551
|
-
|
|
5644
|
+
Column61({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5552
5645
|
], User.prototype, "firstName", 2);
|
|
5553
5646
|
__decorateClass([
|
|
5554
|
-
|
|
5647
|
+
Column61({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5555
5648
|
], User.prototype, "lastName", 2);
|
|
5556
5649
|
__decorateClass([
|
|
5557
|
-
|
|
5650
|
+
Column61({ name: "date_of_birth", type: "date", nullable: true })
|
|
5558
5651
|
], User.prototype, "dateOfBirth", 2);
|
|
5559
5652
|
__decorateClass([
|
|
5560
|
-
|
|
5653
|
+
Column61({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5561
5654
|
], User.prototype, "gender", 2);
|
|
5562
5655
|
__decorateClass([
|
|
5563
|
-
|
|
5656
|
+
Column61({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5564
5657
|
], User.prototype, "profilePictureUrl", 2);
|
|
5565
5658
|
__decorateClass([
|
|
5566
|
-
|
|
5659
|
+
Column61({ name: "email", type: "varchar", unique: true })
|
|
5567
5660
|
], User.prototype, "email", 2);
|
|
5568
5661
|
__decorateClass([
|
|
5569
|
-
|
|
5662
|
+
Column61({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5570
5663
|
], User.prototype, "mobileCode", 2);
|
|
5571
5664
|
__decorateClass([
|
|
5572
|
-
|
|
5665
|
+
Column61({ name: "mobile", type: "varchar", nullable: true })
|
|
5573
5666
|
], User.prototype, "mobile", 2);
|
|
5574
5667
|
__decorateClass([
|
|
5575
|
-
|
|
5668
|
+
Column61({ name: "password", type: "varchar", nullable: true })
|
|
5576
5669
|
], User.prototype, "password", 2);
|
|
5577
5670
|
__decorateClass([
|
|
5578
|
-
|
|
5671
|
+
Column61({
|
|
5579
5672
|
name: "account_type",
|
|
5580
5673
|
type: "enum",
|
|
5581
5674
|
enum: AccountType,
|
|
@@ -5583,7 +5676,7 @@ __decorateClass([
|
|
|
5583
5676
|
})
|
|
5584
5677
|
], User.prototype, "accountType", 2);
|
|
5585
5678
|
__decorateClass([
|
|
5586
|
-
|
|
5679
|
+
Column61({
|
|
5587
5680
|
name: "account_status",
|
|
5588
5681
|
type: "enum",
|
|
5589
5682
|
enum: AccountStatus,
|
|
@@ -5591,42 +5684,42 @@ __decorateClass([
|
|
|
5591
5684
|
})
|
|
5592
5685
|
], User.prototype, "accountStatus", 2);
|
|
5593
5686
|
__decorateClass([
|
|
5594
|
-
|
|
5687
|
+
Column61({ name: "is_email_verified", type: "boolean", default: false })
|
|
5595
5688
|
], User.prototype, "isEmailVerified", 2);
|
|
5596
5689
|
__decorateClass([
|
|
5597
|
-
|
|
5690
|
+
Column61({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5598
5691
|
], User.prototype, "isMobileVerified", 2);
|
|
5599
5692
|
__decorateClass([
|
|
5600
|
-
|
|
5693
|
+
Column61({ name: "is_social", type: "boolean", default: false })
|
|
5601
5694
|
], User.prototype, "isSocial", 2);
|
|
5602
5695
|
__decorateClass([
|
|
5603
|
-
|
|
5696
|
+
Column61({
|
|
5604
5697
|
name: "last_login_at",
|
|
5605
5698
|
type: "timestamp with time zone",
|
|
5606
5699
|
nullable: true
|
|
5607
5700
|
})
|
|
5608
5701
|
], User.prototype, "lastLoginAt", 2);
|
|
5609
5702
|
__decorateClass([
|
|
5610
|
-
|
|
5703
|
+
Column61({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5611
5704
|
], User.prototype, "lastLoginIp", 2);
|
|
5612
5705
|
__decorateClass([
|
|
5613
|
-
|
|
5706
|
+
Column61({ name: "reset_token", type: "varchar", nullable: true })
|
|
5614
5707
|
], User.prototype, "resetToken", 2);
|
|
5615
5708
|
__decorateClass([
|
|
5616
|
-
|
|
5709
|
+
Column61({
|
|
5617
5710
|
name: "reset_token_expire_at",
|
|
5618
5711
|
type: "timestamp with time zone",
|
|
5619
5712
|
nullable: true
|
|
5620
5713
|
})
|
|
5621
5714
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5622
5715
|
__decorateClass([
|
|
5623
|
-
|
|
5716
|
+
Column61({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5624
5717
|
], User.prototype, "setPasswordToken", 2);
|
|
5625
5718
|
__decorateClass([
|
|
5626
|
-
|
|
5719
|
+
OneToMany22(() => RefreshToken, (token) => token.user)
|
|
5627
5720
|
], User.prototype, "refreshTokens", 2);
|
|
5628
5721
|
__decorateClass([
|
|
5629
|
-
|
|
5722
|
+
Column61({
|
|
5630
5723
|
name: "provider",
|
|
5631
5724
|
type: "enum",
|
|
5632
5725
|
enum: Provider,
|
|
@@ -5635,43 +5728,43 @@ __decorateClass([
|
|
|
5635
5728
|
})
|
|
5636
5729
|
], User.prototype, "provider", 2);
|
|
5637
5730
|
__decorateClass([
|
|
5638
|
-
|
|
5731
|
+
Column61({ name: "provider_token", type: "varchar", nullable: true })
|
|
5639
5732
|
], User.prototype, "providerToken", 2);
|
|
5640
5733
|
__decorateClass([
|
|
5641
|
-
|
|
5734
|
+
Column61({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5642
5735
|
], User.prototype, "linkedInId", 2);
|
|
5643
5736
|
__decorateClass([
|
|
5644
|
-
|
|
5737
|
+
Column61({ name: "google_id", type: "varchar", nullable: true })
|
|
5645
5738
|
], User.prototype, "googleId", 2);
|
|
5646
5739
|
__decorateClass([
|
|
5647
|
-
|
|
5740
|
+
Column61({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5648
5741
|
], User.prototype, "gitLabsId", 2);
|
|
5649
5742
|
__decorateClass([
|
|
5650
|
-
|
|
5743
|
+
Column61({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5651
5744
|
], User.prototype, "onBoardedBy", 2);
|
|
5652
5745
|
__decorateClass([
|
|
5653
|
-
|
|
5746
|
+
OneToMany22(() => Otp, (otp) => otp.user)
|
|
5654
5747
|
], User.prototype, "otps", 2);
|
|
5655
5748
|
__decorateClass([
|
|
5656
|
-
|
|
5749
|
+
OneToMany22(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5657
5750
|
], User.prototype, "senseloafLogs", 2);
|
|
5658
5751
|
__decorateClass([
|
|
5659
5752
|
OneToOne11(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5660
5753
|
], User.prototype, "companyProfile", 2);
|
|
5661
5754
|
__decorateClass([
|
|
5662
|
-
|
|
5755
|
+
OneToMany22(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5663
5756
|
], User.prototype, "companySkills", 2);
|
|
5664
5757
|
__decorateClass([
|
|
5665
|
-
|
|
5758
|
+
OneToMany22(
|
|
5666
5759
|
() => CompanyMemberRole,
|
|
5667
5760
|
(companyMemberRole) => companyMemberRole.user
|
|
5668
5761
|
)
|
|
5669
5762
|
], User.prototype, "companyMemberRoles", 2);
|
|
5670
5763
|
__decorateClass([
|
|
5671
|
-
|
|
5764
|
+
OneToMany22(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5672
5765
|
], User.prototype, "companyAiInterview", 2);
|
|
5673
5766
|
__decorateClass([
|
|
5674
|
-
|
|
5767
|
+
OneToMany22(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5675
5768
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5676
5769
|
__decorateClass([
|
|
5677
5770
|
OneToOne11(
|
|
@@ -5683,49 +5776,49 @@ __decorateClass([
|
|
|
5683
5776
|
OneToOne11(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5684
5777
|
], User.prototype, "freelancerResume", 2);
|
|
5685
5778
|
__decorateClass([
|
|
5686
|
-
|
|
5779
|
+
OneToMany22(
|
|
5687
5780
|
() => FreelancerAssessment,
|
|
5688
5781
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5689
5782
|
)
|
|
5690
5783
|
], User.prototype, "assessments", 2);
|
|
5691
5784
|
__decorateClass([
|
|
5692
|
-
|
|
5785
|
+
OneToMany22(
|
|
5693
5786
|
() => AssessmentAnswer,
|
|
5694
5787
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5695
5788
|
)
|
|
5696
5789
|
], User.prototype, "assessmentAnswers", 2);
|
|
5697
5790
|
__decorateClass([
|
|
5698
|
-
|
|
5791
|
+
OneToMany22(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5699
5792
|
], User.prototype, "freelancerSkills", 2);
|
|
5700
5793
|
__decorateClass([
|
|
5701
|
-
|
|
5794
|
+
OneToMany22(
|
|
5702
5795
|
() => FreelancerExperience,
|
|
5703
5796
|
(freelancerExperience) => freelancerExperience.user
|
|
5704
5797
|
)
|
|
5705
5798
|
], User.prototype, "freelancerExperience", 2);
|
|
5706
5799
|
__decorateClass([
|
|
5707
|
-
|
|
5800
|
+
OneToMany22(
|
|
5708
5801
|
() => FreelancerEducation,
|
|
5709
5802
|
(freelancerEducation) => freelancerEducation.user
|
|
5710
5803
|
)
|
|
5711
5804
|
], User.prototype, "freelancerEducation", 2);
|
|
5712
5805
|
__decorateClass([
|
|
5713
|
-
|
|
5806
|
+
OneToMany22(
|
|
5714
5807
|
() => FreelancerProject,
|
|
5715
5808
|
(freelancerProject) => freelancerProject.user
|
|
5716
5809
|
)
|
|
5717
5810
|
], User.prototype, "freelancerProject", 2);
|
|
5718
5811
|
__decorateClass([
|
|
5719
|
-
|
|
5812
|
+
OneToMany22(
|
|
5720
5813
|
() => FreelancerCaseStudy,
|
|
5721
5814
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5722
5815
|
)
|
|
5723
5816
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5724
5817
|
__decorateClass([
|
|
5725
|
-
|
|
5818
|
+
OneToMany22(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5726
5819
|
], User.prototype, "freelancerTool", 2);
|
|
5727
5820
|
__decorateClass([
|
|
5728
|
-
|
|
5821
|
+
OneToMany22(
|
|
5729
5822
|
() => FreelancerFramework,
|
|
5730
5823
|
(freelancerFramework) => freelancerFramework.user
|
|
5731
5824
|
)
|
|
@@ -5737,103 +5830,103 @@ __decorateClass([
|
|
|
5737
5830
|
)
|
|
5738
5831
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5739
5832
|
__decorateClass([
|
|
5740
|
-
|
|
5833
|
+
OneToMany22(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5741
5834
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5742
5835
|
__decorateClass([
|
|
5743
|
-
|
|
5836
|
+
OneToMany22(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5744
5837
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5745
5838
|
__decorateClass([
|
|
5746
|
-
|
|
5839
|
+
OneToMany22(
|
|
5747
5840
|
() => F2fInterviewRescheduleRequest,
|
|
5748
5841
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5749
5842
|
)
|
|
5750
5843
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5751
5844
|
__decorateClass([
|
|
5752
|
-
|
|
5845
|
+
OneToMany22(() => Job, (job) => job.user)
|
|
5753
5846
|
], User.prototype, "jobs", 2);
|
|
5754
5847
|
__decorateClass([
|
|
5755
|
-
|
|
5848
|
+
OneToMany22(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5756
5849
|
], User.prototype, "jobApplications", 2);
|
|
5757
5850
|
__decorateClass([
|
|
5758
|
-
|
|
5851
|
+
OneToMany22(() => Interview, (interview) => interview.user)
|
|
5759
5852
|
], User.prototype, "interviews", 2);
|
|
5760
5853
|
__decorateClass([
|
|
5761
|
-
|
|
5854
|
+
OneToMany22(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5762
5855
|
], User.prototype, "bankDetail", 2);
|
|
5763
5856
|
__decorateClass([
|
|
5764
|
-
|
|
5857
|
+
OneToMany22(
|
|
5765
5858
|
() => SystemPreference,
|
|
5766
5859
|
(systemPreference) => systemPreference.user
|
|
5767
5860
|
)
|
|
5768
5861
|
], User.prototype, "systemPreference", 2);
|
|
5769
5862
|
__decorateClass([
|
|
5770
|
-
|
|
5863
|
+
OneToMany22(() => Rating, (rating) => rating.reviewer)
|
|
5771
5864
|
], User.prototype, "givenRatings", 2);
|
|
5772
5865
|
__decorateClass([
|
|
5773
|
-
|
|
5866
|
+
OneToMany22(() => Rating, (rating) => rating.reviewee)
|
|
5774
5867
|
], User.prototype, "receivedRatings", 2);
|
|
5775
5868
|
__decorateClass([
|
|
5776
|
-
|
|
5869
|
+
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5777
5870
|
], User.prototype, "adminUserRoles", 2);
|
|
5778
5871
|
__decorateClass([
|
|
5779
|
-
|
|
5872
|
+
OneToMany22(() => Contract, (contract) => contract.client)
|
|
5780
5873
|
], User.prototype, "clientContracts", 2);
|
|
5781
5874
|
__decorateClass([
|
|
5782
|
-
|
|
5875
|
+
OneToMany22(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
5783
5876
|
], User.prototype, "clientEscrowWallets", 2);
|
|
5784
5877
|
__decorateClass([
|
|
5785
|
-
|
|
5878
|
+
OneToMany22(() => Contract, (contract) => contract.freelancer)
|
|
5786
5879
|
], User.prototype, "freelancerContracts", 2);
|
|
5787
5880
|
__decorateClass([
|
|
5788
|
-
|
|
5881
|
+
OneToMany22(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
5789
5882
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
5790
5883
|
__decorateClass([
|
|
5791
5884
|
OneToOne11(() => Signature, (signature) => signature.user)
|
|
5792
5885
|
], User.prototype, "signatures", 2);
|
|
5793
5886
|
__decorateClass([
|
|
5794
|
-
|
|
5887
|
+
OneToMany22(() => Timesheet, (timesheet) => timesheet.client)
|
|
5795
5888
|
], User.prototype, "clientTimesheets", 2);
|
|
5796
5889
|
__decorateClass([
|
|
5797
|
-
|
|
5890
|
+
OneToMany22(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5798
5891
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5799
5892
|
__decorateClass([
|
|
5800
|
-
|
|
5893
|
+
OneToMany22(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5801
5894
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5802
5895
|
__decorateClass([
|
|
5803
|
-
|
|
5896
|
+
OneToMany22(() => Invoice, (invoice) => invoice.client)
|
|
5804
5897
|
], User.prototype, "clientInvoice", 2);
|
|
5805
5898
|
__decorateClass([
|
|
5806
|
-
|
|
5899
|
+
OneToMany22(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5807
5900
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5808
5901
|
__decorateClass([
|
|
5809
|
-
|
|
5902
|
+
OneToMany22(() => Invoice, (invoice) => invoice.freelancer)
|
|
5810
5903
|
], User.prototype, "freelancerInvoice", 2);
|
|
5811
5904
|
__decorateClass([
|
|
5812
|
-
|
|
5905
|
+
OneToMany22(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5813
5906
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5814
5907
|
__decorateClass([
|
|
5815
|
-
|
|
5908
|
+
OneToMany22(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5816
5909
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5817
5910
|
__decorateClass([
|
|
5818
|
-
|
|
5911
|
+
OneToMany22(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5819
5912
|
], User.prototype, "initiatedDisputes", 2);
|
|
5820
5913
|
__decorateClass([
|
|
5821
|
-
|
|
5914
|
+
OneToMany22(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5822
5915
|
], User.prototype, "respondentDisputes", 2);
|
|
5823
5916
|
__decorateClass([
|
|
5824
5917
|
OneToOne11(() => Wallet, (wallet) => wallet.user)
|
|
5825
5918
|
], User.prototype, "wallet", 2);
|
|
5826
5919
|
__decorateClass([
|
|
5827
|
-
|
|
5920
|
+
OneToMany22(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5828
5921
|
], User.prototype, "stripeTransactions", 2);
|
|
5829
5922
|
__decorateClass([
|
|
5830
|
-
|
|
5923
|
+
OneToMany22(() => Dispute, (dispute) => dispute.client)
|
|
5831
5924
|
], User.prototype, "clientDisputes", 2);
|
|
5832
5925
|
__decorateClass([
|
|
5833
|
-
|
|
5926
|
+
OneToMany22(() => Dispute, (dispute) => dispute.freelancer)
|
|
5834
5927
|
], User.prototype, "freelancerDisputes", 2);
|
|
5835
5928
|
User = __decorateClass([
|
|
5836
|
-
|
|
5929
|
+
Entity60("users")
|
|
5837
5930
|
], User);
|
|
5838
5931
|
|
|
5839
5932
|
// src/entities/rating.entity.ts
|
|
@@ -5845,36 +5938,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5845
5938
|
var Rating = class extends BaseEntity {
|
|
5846
5939
|
};
|
|
5847
5940
|
__decorateClass([
|
|
5848
|
-
|
|
5849
|
-
|
|
5941
|
+
Column62({ name: "reviewer_id", type: "integer" }),
|
|
5942
|
+
Index54()
|
|
5850
5943
|
], Rating.prototype, "reviewer_id", 2);
|
|
5851
5944
|
__decorateClass([
|
|
5852
|
-
|
|
5853
|
-
|
|
5945
|
+
ManyToOne55(() => User, { onDelete: "CASCADE" }),
|
|
5946
|
+
JoinColumn56({ name: "reviewer_id" })
|
|
5854
5947
|
], Rating.prototype, "reviewer", 2);
|
|
5855
5948
|
__decorateClass([
|
|
5856
|
-
|
|
5857
|
-
|
|
5949
|
+
Column62({ name: "reviewee_id", type: "integer" }),
|
|
5950
|
+
Index54()
|
|
5858
5951
|
], Rating.prototype, "reviewee_id", 2);
|
|
5859
5952
|
__decorateClass([
|
|
5860
|
-
|
|
5861
|
-
|
|
5953
|
+
ManyToOne55(() => User, { onDelete: "CASCADE" }),
|
|
5954
|
+
JoinColumn56({ name: "reviewee_id" })
|
|
5862
5955
|
], Rating.prototype, "reviewee", 2);
|
|
5863
5956
|
__decorateClass([
|
|
5864
|
-
|
|
5957
|
+
Column62({
|
|
5865
5958
|
type: "enum",
|
|
5866
5959
|
enum: RatingTypeEnum,
|
|
5867
5960
|
nullable: true
|
|
5868
5961
|
})
|
|
5869
5962
|
], Rating.prototype, "ratingType", 2);
|
|
5870
5963
|
__decorateClass([
|
|
5871
|
-
|
|
5964
|
+
Column62({ type: "integer", nullable: true })
|
|
5872
5965
|
], Rating.prototype, "rating", 2);
|
|
5873
5966
|
__decorateClass([
|
|
5874
|
-
|
|
5967
|
+
Column62({ type: "text", nullable: true })
|
|
5875
5968
|
], Rating.prototype, "review", 2);
|
|
5876
5969
|
Rating = __decorateClass([
|
|
5877
|
-
|
|
5970
|
+
Entity61("ratings")
|
|
5878
5971
|
], Rating);
|
|
5879
5972
|
|
|
5880
5973
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7212,7 +7305,8 @@ var CONTRACT_PATTERN = {
|
|
|
7212
7305
|
fetchContractsForClientContractRepository: "fetch.contracts.for.client.contract.repository",
|
|
7213
7306
|
fetchClientsForFreelancerContractRepository: "fetch.clients.for.feelancer.contract.repository",
|
|
7214
7307
|
fetchJobsForFreelancerContractRepository: "fetch.jobs.for.freelancer.contract.repository",
|
|
7215
|
-
fetchContractsForFreelancerContractRepository: "fetch.contracts.for.freelancer.contract.repository"
|
|
7308
|
+
fetchContractsForFreelancerContractRepository: "fetch.contracts.for.freelancer.contract.repository",
|
|
7309
|
+
resendContractForFreelancer: "resend.contract.for.freelancer"
|
|
7216
7310
|
};
|
|
7217
7311
|
|
|
7218
7312
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
@@ -7862,11 +7956,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
7862
7956
|
};
|
|
7863
7957
|
|
|
7864
7958
|
// src/entities/sequence-generator.entity.ts
|
|
7865
|
-
import { Entity as
|
|
7959
|
+
import { Entity as Entity62, Column as Column63 } from "typeorm";
|
|
7866
7960
|
var SequenceGenerator = class extends BaseEntity {
|
|
7867
7961
|
};
|
|
7868
7962
|
__decorateClass([
|
|
7869
|
-
|
|
7963
|
+
Column63({
|
|
7870
7964
|
name: "module",
|
|
7871
7965
|
type: "varchar",
|
|
7872
7966
|
length: 50,
|
|
@@ -7875,7 +7969,7 @@ __decorateClass([
|
|
|
7875
7969
|
})
|
|
7876
7970
|
], SequenceGenerator.prototype, "module", 2);
|
|
7877
7971
|
__decorateClass([
|
|
7878
|
-
|
|
7972
|
+
Column63({
|
|
7879
7973
|
name: "prefix",
|
|
7880
7974
|
type: "varchar",
|
|
7881
7975
|
length: 10,
|
|
@@ -7884,7 +7978,7 @@ __decorateClass([
|
|
|
7884
7978
|
})
|
|
7885
7979
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7886
7980
|
__decorateClass([
|
|
7887
|
-
|
|
7981
|
+
Column63({
|
|
7888
7982
|
name: "last_sequence",
|
|
7889
7983
|
type: "int",
|
|
7890
7984
|
nullable: false,
|
|
@@ -7892,7 +7986,7 @@ __decorateClass([
|
|
|
7892
7986
|
})
|
|
7893
7987
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7894
7988
|
__decorateClass([
|
|
7895
|
-
|
|
7989
|
+
Column63({
|
|
7896
7990
|
name: "year",
|
|
7897
7991
|
type: "int",
|
|
7898
7992
|
nullable: true,
|
|
@@ -7900,11 +7994,11 @@ __decorateClass([
|
|
|
7900
7994
|
})
|
|
7901
7995
|
], SequenceGenerator.prototype, "year", 2);
|
|
7902
7996
|
SequenceGenerator = __decorateClass([
|
|
7903
|
-
|
|
7997
|
+
Entity62("sequence_generators")
|
|
7904
7998
|
], SequenceGenerator);
|
|
7905
7999
|
|
|
7906
8000
|
// src/entities/question.entity.ts
|
|
7907
|
-
import { Entity as
|
|
8001
|
+
import { Entity as Entity63, Column as Column64 } from "typeorm";
|
|
7908
8002
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7909
8003
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7910
8004
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7913,16 +8007,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7913
8007
|
var Question = class extends BaseEntity {
|
|
7914
8008
|
};
|
|
7915
8009
|
__decorateClass([
|
|
7916
|
-
|
|
8010
|
+
Column64({ name: "question", type: "varchar" })
|
|
7917
8011
|
], Question.prototype, "question", 2);
|
|
7918
8012
|
__decorateClass([
|
|
7919
|
-
|
|
8013
|
+
Column64({ name: "hint", type: "varchar", nullable: true })
|
|
7920
8014
|
], Question.prototype, "hint", 2);
|
|
7921
8015
|
__decorateClass([
|
|
7922
|
-
|
|
8016
|
+
Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7923
8017
|
], Question.prototype, "slug", 2);
|
|
7924
8018
|
__decorateClass([
|
|
7925
|
-
|
|
8019
|
+
Column64({
|
|
7926
8020
|
name: "question_for",
|
|
7927
8021
|
type: "enum",
|
|
7928
8022
|
enum: QuestionFor,
|
|
@@ -7930,49 +8024,49 @@ __decorateClass([
|
|
|
7930
8024
|
})
|
|
7931
8025
|
], Question.prototype, "questionFor", 2);
|
|
7932
8026
|
__decorateClass([
|
|
7933
|
-
|
|
8027
|
+
Column64({ name: "type", type: "varchar", nullable: true })
|
|
7934
8028
|
], Question.prototype, "type", 2);
|
|
7935
8029
|
__decorateClass([
|
|
7936
|
-
|
|
8030
|
+
Column64({ name: "options", type: "jsonb", nullable: true })
|
|
7937
8031
|
], Question.prototype, "options", 2);
|
|
7938
8032
|
__decorateClass([
|
|
7939
|
-
|
|
8033
|
+
Column64({ name: "is_active", type: "boolean", default: false })
|
|
7940
8034
|
], Question.prototype, "isActive", 2);
|
|
7941
8035
|
Question = __decorateClass([
|
|
7942
|
-
|
|
8036
|
+
Entity63("questions")
|
|
7943
8037
|
], Question);
|
|
7944
8038
|
|
|
7945
8039
|
// src/entities/skill.entity.ts
|
|
7946
|
-
import { Entity as
|
|
8040
|
+
import { Entity as Entity64, Column as Column65 } from "typeorm";
|
|
7947
8041
|
var Skill = class extends BaseEntity {
|
|
7948
8042
|
};
|
|
7949
8043
|
__decorateClass([
|
|
7950
|
-
|
|
8044
|
+
Column65({ name: "name", type: "varchar", nullable: true })
|
|
7951
8045
|
], Skill.prototype, "name", 2);
|
|
7952
8046
|
__decorateClass([
|
|
7953
|
-
|
|
8047
|
+
Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7954
8048
|
], Skill.prototype, "slug", 2);
|
|
7955
8049
|
__decorateClass([
|
|
7956
|
-
|
|
8050
|
+
Column65({ name: "is_active", type: "boolean", default: false })
|
|
7957
8051
|
], Skill.prototype, "isActive", 2);
|
|
7958
8052
|
Skill = __decorateClass([
|
|
7959
|
-
|
|
8053
|
+
Entity64("skills")
|
|
7960
8054
|
], Skill);
|
|
7961
8055
|
|
|
7962
8056
|
// src/entities/skill-catalog.entity.ts
|
|
7963
8057
|
import {
|
|
7964
|
-
Entity as
|
|
7965
|
-
Column as
|
|
7966
|
-
Index as
|
|
8058
|
+
Entity as Entity65,
|
|
8059
|
+
Column as Column66,
|
|
8060
|
+
Index as Index55
|
|
7967
8061
|
} from "typeorm";
|
|
7968
8062
|
var SkillCatalog = class extends BaseEntity {
|
|
7969
8063
|
};
|
|
7970
8064
|
__decorateClass([
|
|
7971
|
-
|
|
7972
|
-
|
|
8065
|
+
Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8066
|
+
Index55()
|
|
7973
8067
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
7974
8068
|
__decorateClass([
|
|
7975
|
-
|
|
8069
|
+
Column66({
|
|
7976
8070
|
name: "aliases",
|
|
7977
8071
|
type: "text",
|
|
7978
8072
|
array: true,
|
|
@@ -7980,20 +8074,20 @@ __decorateClass([
|
|
|
7980
8074
|
})
|
|
7981
8075
|
], SkillCatalog.prototype, "aliases", 2);
|
|
7982
8076
|
__decorateClass([
|
|
7983
|
-
|
|
8077
|
+
Column66({
|
|
7984
8078
|
name: "variations",
|
|
7985
8079
|
type: "jsonb",
|
|
7986
8080
|
default: "{}"
|
|
7987
8081
|
})
|
|
7988
8082
|
], SkillCatalog.prototype, "variations", 2);
|
|
7989
8083
|
__decorateClass([
|
|
7990
|
-
|
|
8084
|
+
Column66({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
7991
8085
|
], SkillCatalog.prototype, "category", 2);
|
|
7992
8086
|
__decorateClass([
|
|
7993
|
-
|
|
8087
|
+
Column66({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
7994
8088
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
7995
8089
|
__decorateClass([
|
|
7996
|
-
|
|
8090
|
+
Column66({
|
|
7997
8091
|
name: "related_skills",
|
|
7998
8092
|
type: "text",
|
|
7999
8093
|
array: true,
|
|
@@ -8001,113 +8095,113 @@ __decorateClass([
|
|
|
8001
8095
|
})
|
|
8002
8096
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8003
8097
|
__decorateClass([
|
|
8004
|
-
|
|
8005
|
-
|
|
8098
|
+
Column66({ name: "usage_count", type: "integer", default: 0 }),
|
|
8099
|
+
Index55()
|
|
8006
8100
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8007
8101
|
__decorateClass([
|
|
8008
|
-
|
|
8102
|
+
Column66({ name: "is_verified", type: "boolean", default: false })
|
|
8009
8103
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8010
8104
|
__decorateClass([
|
|
8011
|
-
|
|
8105
|
+
Column66({ name: "first_seen_date", type: "date" })
|
|
8012
8106
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8013
8107
|
__decorateClass([
|
|
8014
|
-
|
|
8108
|
+
Column66({ name: "last_updated_date", type: "date" })
|
|
8015
8109
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8016
8110
|
__decorateClass([
|
|
8017
|
-
|
|
8111
|
+
Column66({
|
|
8018
8112
|
name: "search_vector",
|
|
8019
8113
|
type: "tsvector",
|
|
8020
8114
|
nullable: true
|
|
8021
8115
|
})
|
|
8022
8116
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8023
8117
|
SkillCatalog = __decorateClass([
|
|
8024
|
-
|
|
8118
|
+
Entity65("skill_catalogs")
|
|
8025
8119
|
], SkillCatalog);
|
|
8026
8120
|
|
|
8027
8121
|
// src/entities/job-role.entity.ts
|
|
8028
|
-
import { Entity as
|
|
8122
|
+
import { Entity as Entity66, Column as Column67 } from "typeorm";
|
|
8029
8123
|
var JobRoles = class extends BaseEntity {
|
|
8030
8124
|
};
|
|
8031
8125
|
__decorateClass([
|
|
8032
|
-
|
|
8126
|
+
Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8033
8127
|
], JobRoles.prototype, "slug", 2);
|
|
8034
8128
|
__decorateClass([
|
|
8035
|
-
|
|
8129
|
+
Column67({ name: "name", type: "varchar", nullable: true })
|
|
8036
8130
|
], JobRoles.prototype, "name", 2);
|
|
8037
8131
|
__decorateClass([
|
|
8038
|
-
|
|
8132
|
+
Column67({ name: "is_active", type: "boolean", default: true })
|
|
8039
8133
|
], JobRoles.prototype, "isActive", 2);
|
|
8040
8134
|
JobRoles = __decorateClass([
|
|
8041
|
-
|
|
8135
|
+
Entity66("job_roles")
|
|
8042
8136
|
], JobRoles);
|
|
8043
8137
|
|
|
8044
8138
|
// src/entities/plan.entity.ts
|
|
8045
|
-
import { Entity as
|
|
8139
|
+
import { Entity as Entity68, Column as Column69, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
8046
8140
|
|
|
8047
8141
|
// src/entities/feature.entity.ts
|
|
8048
|
-
import { Entity as
|
|
8142
|
+
import { Entity as Entity67, Column as Column68, ManyToMany as ManyToMany2 } from "typeorm";
|
|
8049
8143
|
var Feature = class extends BaseEntity {
|
|
8050
8144
|
};
|
|
8051
8145
|
__decorateClass([
|
|
8052
|
-
|
|
8146
|
+
Column68({ name: "name", type: "varchar", unique: true })
|
|
8053
8147
|
], Feature.prototype, "name", 2);
|
|
8054
8148
|
__decorateClass([
|
|
8055
8149
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
8056
8150
|
], Feature.prototype, "plans", 2);
|
|
8057
8151
|
Feature = __decorateClass([
|
|
8058
|
-
|
|
8152
|
+
Entity67("features")
|
|
8059
8153
|
], Feature);
|
|
8060
8154
|
|
|
8061
8155
|
// src/entities/plan.entity.ts
|
|
8062
8156
|
var Plan = class extends BaseEntity {
|
|
8063
8157
|
};
|
|
8064
8158
|
__decorateClass([
|
|
8065
|
-
|
|
8159
|
+
Column69({ name: "name", type: "varchar", unique: true })
|
|
8066
8160
|
], Plan.prototype, "name", 2);
|
|
8067
8161
|
__decorateClass([
|
|
8068
|
-
|
|
8162
|
+
Column69({ name: "description", type: "varchar", nullable: true })
|
|
8069
8163
|
], Plan.prototype, "description", 2);
|
|
8070
8164
|
__decorateClass([
|
|
8071
|
-
|
|
8165
|
+
Column69({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8072
8166
|
], Plan.prototype, "price", 2);
|
|
8073
8167
|
__decorateClass([
|
|
8074
|
-
|
|
8168
|
+
Column69({ name: "billing_period", type: "varchar" })
|
|
8075
8169
|
], Plan.prototype, "billingPeriod", 2);
|
|
8076
8170
|
__decorateClass([
|
|
8077
|
-
|
|
8171
|
+
Column69({ name: "is_current", type: "boolean", default: false })
|
|
8078
8172
|
], Plan.prototype, "isCurrent", 2);
|
|
8079
8173
|
__decorateClass([
|
|
8080
8174
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8081
8175
|
JoinTable()
|
|
8082
8176
|
], Plan.prototype, "features", 2);
|
|
8083
8177
|
Plan = __decorateClass([
|
|
8084
|
-
|
|
8178
|
+
Entity68("plans")
|
|
8085
8179
|
], Plan);
|
|
8086
8180
|
|
|
8087
8181
|
// src/entities/cms.entity.ts
|
|
8088
|
-
import { Entity as
|
|
8182
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
8089
8183
|
var Cms = class extends BaseEntity {
|
|
8090
8184
|
};
|
|
8091
8185
|
__decorateClass([
|
|
8092
|
-
|
|
8186
|
+
Column70({ name: "title", type: "varchar", nullable: true })
|
|
8093
8187
|
], Cms.prototype, "title", 2);
|
|
8094
8188
|
__decorateClass([
|
|
8095
|
-
|
|
8189
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8096
8190
|
], Cms.prototype, "slug", 2);
|
|
8097
8191
|
__decorateClass([
|
|
8098
|
-
|
|
8192
|
+
Column70({ name: "content", type: "varchar", nullable: true })
|
|
8099
8193
|
], Cms.prototype, "content", 2);
|
|
8100
8194
|
__decorateClass([
|
|
8101
|
-
|
|
8195
|
+
Column70({ name: "is_active", type: "boolean", default: true })
|
|
8102
8196
|
], Cms.prototype, "isActive", 2);
|
|
8103
8197
|
Cms = __decorateClass([
|
|
8104
|
-
|
|
8198
|
+
Entity69("cms")
|
|
8105
8199
|
], Cms);
|
|
8106
8200
|
|
|
8107
8201
|
// src/entities/lead.entity.ts
|
|
8108
8202
|
import {
|
|
8109
|
-
Entity as
|
|
8110
|
-
Column as
|
|
8203
|
+
Entity as Entity70,
|
|
8204
|
+
Column as Column71
|
|
8111
8205
|
} from "typeorm";
|
|
8112
8206
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8113
8207
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -8117,22 +8211,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8117
8211
|
var Lead = class extends BaseEntity {
|
|
8118
8212
|
};
|
|
8119
8213
|
__decorateClass([
|
|
8120
|
-
|
|
8214
|
+
Column71({ name: "name", type: "varchar", nullable: true })
|
|
8121
8215
|
], Lead.prototype, "name", 2);
|
|
8122
8216
|
__decorateClass([
|
|
8123
|
-
|
|
8217
|
+
Column71({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8124
8218
|
], Lead.prototype, "mobileCode", 2);
|
|
8125
8219
|
__decorateClass([
|
|
8126
|
-
|
|
8220
|
+
Column71({ name: "mobile", type: "varchar", nullable: true })
|
|
8127
8221
|
], Lead.prototype, "mobile", 2);
|
|
8128
8222
|
__decorateClass([
|
|
8129
|
-
|
|
8223
|
+
Column71({ name: "email", type: "varchar", nullable: true })
|
|
8130
8224
|
], Lead.prototype, "email", 2);
|
|
8131
8225
|
__decorateClass([
|
|
8132
|
-
|
|
8226
|
+
Column71({ name: "description", type: "varchar", nullable: true })
|
|
8133
8227
|
], Lead.prototype, "description", 2);
|
|
8134
8228
|
__decorateClass([
|
|
8135
|
-
|
|
8229
|
+
Column71({
|
|
8136
8230
|
name: "category",
|
|
8137
8231
|
type: "enum",
|
|
8138
8232
|
enum: CategoryEmum,
|
|
@@ -8140,7 +8234,7 @@ __decorateClass([
|
|
|
8140
8234
|
})
|
|
8141
8235
|
], Lead.prototype, "category", 2);
|
|
8142
8236
|
Lead = __decorateClass([
|
|
8143
|
-
|
|
8237
|
+
Entity70("leads")
|
|
8144
8238
|
], Lead);
|
|
8145
8239
|
|
|
8146
8240
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -8381,7 +8475,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8381
8475
|
], ClientFreelancerRecommendation);
|
|
8382
8476
|
|
|
8383
8477
|
// src/entities/commission.entity.ts
|
|
8384
|
-
import { Entity as
|
|
8478
|
+
import { Entity as Entity71, Column as Column72 } from "typeorm";
|
|
8385
8479
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8386
8480
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8387
8481
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8390,7 +8484,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8390
8484
|
var Commission = class extends BaseEntity {
|
|
8391
8485
|
};
|
|
8392
8486
|
__decorateClass([
|
|
8393
|
-
|
|
8487
|
+
Column72({
|
|
8394
8488
|
name: "freelancer_commission_type",
|
|
8395
8489
|
type: "enum",
|
|
8396
8490
|
enum: CommissionTypeEnum,
|
|
@@ -8398,10 +8492,10 @@ __decorateClass([
|
|
|
8398
8492
|
})
|
|
8399
8493
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8400
8494
|
__decorateClass([
|
|
8401
|
-
|
|
8495
|
+
Column72({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8402
8496
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8403
8497
|
__decorateClass([
|
|
8404
|
-
|
|
8498
|
+
Column72({
|
|
8405
8499
|
name: "client_commission_type",
|
|
8406
8500
|
type: "enum",
|
|
8407
8501
|
enum: CommissionTypeEnum,
|
|
@@ -8409,105 +8503,105 @@ __decorateClass([
|
|
|
8409
8503
|
})
|
|
8410
8504
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8411
8505
|
__decorateClass([
|
|
8412
|
-
|
|
8506
|
+
Column72({ name: "client_commission", type: "integer", default: 0 })
|
|
8413
8507
|
], Commission.prototype, "clientCommission", 2);
|
|
8414
8508
|
Commission = __decorateClass([
|
|
8415
|
-
|
|
8509
|
+
Entity71("commissions")
|
|
8416
8510
|
], Commission);
|
|
8417
8511
|
|
|
8418
8512
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8419
8513
|
import {
|
|
8420
|
-
Entity as
|
|
8421
|
-
Column as
|
|
8422
|
-
Index as
|
|
8514
|
+
Entity as Entity72,
|
|
8515
|
+
Column as Column73,
|
|
8516
|
+
Index as Index56
|
|
8423
8517
|
} from "typeorm";
|
|
8424
8518
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8425
8519
|
};
|
|
8426
8520
|
__decorateClass([
|
|
8427
|
-
|
|
8428
|
-
|
|
8521
|
+
Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8522
|
+
Index56()
|
|
8429
8523
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8430
8524
|
__decorateClass([
|
|
8431
|
-
|
|
8525
|
+
Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8432
8526
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8433
8527
|
__decorateClass([
|
|
8434
|
-
|
|
8528
|
+
Column73({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8435
8529
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8436
8530
|
CalendlyMeetingLog = __decorateClass([
|
|
8437
|
-
|
|
8531
|
+
Entity72("calendly_meeting_logs")
|
|
8438
8532
|
], CalendlyMeetingLog);
|
|
8439
8533
|
|
|
8440
8534
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8441
8535
|
import {
|
|
8442
|
-
Entity as
|
|
8443
|
-
Column as
|
|
8444
|
-
Index as
|
|
8536
|
+
Entity as Entity73,
|
|
8537
|
+
Column as Column74,
|
|
8538
|
+
Index as Index57
|
|
8445
8539
|
} from "typeorm";
|
|
8446
8540
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8447
8541
|
};
|
|
8448
8542
|
__decorateClass([
|
|
8449
|
-
|
|
8450
|
-
|
|
8543
|
+
Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8544
|
+
Index57()
|
|
8451
8545
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8452
8546
|
__decorateClass([
|
|
8453
|
-
|
|
8547
|
+
Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8454
8548
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8455
8549
|
__decorateClass([
|
|
8456
|
-
|
|
8550
|
+
Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8457
8551
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8458
8552
|
ZoomMeetingLog = __decorateClass([
|
|
8459
|
-
|
|
8553
|
+
Entity73("zoom_meeting_logs")
|
|
8460
8554
|
], ZoomMeetingLog);
|
|
8461
8555
|
|
|
8462
8556
|
// src/entities/stripe-logs.entity.ts
|
|
8463
|
-
import { Entity as
|
|
8557
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
8464
8558
|
var StripeLog = class extends BaseEntity {
|
|
8465
8559
|
};
|
|
8466
8560
|
__decorateClass([
|
|
8467
|
-
|
|
8561
|
+
Column75({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8468
8562
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8469
8563
|
__decorateClass([
|
|
8470
|
-
|
|
8564
|
+
Column75({ name: "event_type", type: "varchar", nullable: true })
|
|
8471
8565
|
], StripeLog.prototype, "eventType", 2);
|
|
8472
8566
|
__decorateClass([
|
|
8473
|
-
|
|
8567
|
+
Column75({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8474
8568
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8475
8569
|
__decorateClass([
|
|
8476
|
-
|
|
8570
|
+
Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8477
8571
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8478
8572
|
StripeLog = __decorateClass([
|
|
8479
|
-
|
|
8573
|
+
Entity74("stripe_logs")
|
|
8480
8574
|
], StripeLog);
|
|
8481
8575
|
|
|
8482
8576
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8483
8577
|
import {
|
|
8484
|
-
Entity as
|
|
8485
|
-
Column as
|
|
8486
|
-
Index as
|
|
8578
|
+
Entity as Entity75,
|
|
8579
|
+
Column as Column76,
|
|
8580
|
+
Index as Index58
|
|
8487
8581
|
} from "typeorm";
|
|
8488
8582
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8489
8583
|
};
|
|
8490
8584
|
__decorateClass([
|
|
8491
|
-
|
|
8585
|
+
Column76({
|
|
8492
8586
|
type: "varchar",
|
|
8493
8587
|
length: 100,
|
|
8494
8588
|
unique: true,
|
|
8495
8589
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8496
8590
|
}),
|
|
8497
|
-
|
|
8591
|
+
Index58()
|
|
8498
8592
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8499
8593
|
__decorateClass([
|
|
8500
|
-
|
|
8594
|
+
Column76({
|
|
8501
8595
|
type: "jsonb",
|
|
8502
8596
|
comment: "JSON object containing weight values",
|
|
8503
8597
|
nullable: true
|
|
8504
8598
|
})
|
|
8505
8599
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8506
8600
|
__decorateClass([
|
|
8507
|
-
|
|
8601
|
+
Column76({ name: "is_active", type: "boolean", default: true })
|
|
8508
8602
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8509
8603
|
RecommendationWeightageConfig = __decorateClass([
|
|
8510
|
-
|
|
8604
|
+
Entity75("recommendation_weightage_configs")
|
|
8511
8605
|
], RecommendationWeightageConfig);
|
|
8512
8606
|
export {
|
|
8513
8607
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -8574,6 +8668,8 @@ export {
|
|
|
8574
8668
|
CompanyRolePermission,
|
|
8575
8669
|
CompanySkill,
|
|
8576
8670
|
Contract,
|
|
8671
|
+
ContractHistory,
|
|
8672
|
+
ContractHistoryActionEnum,
|
|
8577
8673
|
ContractRMQAdapter,
|
|
8578
8674
|
ContractStatusEnum,
|
|
8579
8675
|
ContractTCPAdapter,
|