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