@experts_hub/shared 1.0.506 → 1.0.508
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/assessment-question.entity.d.ts +3 -0
- package/dist/entities/contract.entity.d.ts +0 -2
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/job-location.entity.d.ts +15 -0
- package/dist/entities/job.entity.d.ts +9 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +25 -45
- package/dist/index.d.ts +25 -45
- package/dist/index.js +146 -173
- package/dist/index.mjs +309 -327
- package/package.json +1 -1
- package/dist/entities/contract-history.entity.d.ts +0 -42
package/dist/index.mjs
CHANGED
|
@@ -1001,11 +1001,11 @@ import {
|
|
|
1001
1001
|
Max
|
|
1002
1002
|
} from "class-validator";
|
|
1003
1003
|
import { Type } from "class-transformer";
|
|
1004
|
-
var JobLocation = /* @__PURE__ */ ((
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
return
|
|
1004
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation3) => {
|
|
1005
|
+
JobLocation3["ONSITE"] = "ONSITE";
|
|
1006
|
+
JobLocation3["REMOTE"] = "REMOTE";
|
|
1007
|
+
JobLocation3["HYBRID"] = "HYBRID";
|
|
1008
|
+
return JobLocation3;
|
|
1009
1009
|
})(JobLocation || {});
|
|
1010
1010
|
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1011
1011
|
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
@@ -1515,17 +1515,17 @@ import {
|
|
|
1515
1515
|
} from "class-validator";
|
|
1516
1516
|
|
|
1517
1517
|
// src/entities/rating.entity.ts
|
|
1518
|
-
import { Entity as Entity61, Column as Column62, ManyToOne as
|
|
1518
|
+
import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne56, JoinColumn as JoinColumn57, Index as Index55 } from "typeorm";
|
|
1519
1519
|
|
|
1520
1520
|
// src/entities/user.entity.ts
|
|
1521
1521
|
import {
|
|
1522
1522
|
Entity as Entity60,
|
|
1523
1523
|
Column as Column61,
|
|
1524
|
-
OneToMany as
|
|
1524
|
+
OneToMany as OneToMany21,
|
|
1525
1525
|
OneToOne as OneToOne11,
|
|
1526
|
-
Index as
|
|
1527
|
-
ManyToOne as
|
|
1528
|
-
JoinColumn as
|
|
1526
|
+
Index as Index54,
|
|
1527
|
+
ManyToOne as ManyToOne55,
|
|
1528
|
+
JoinColumn as JoinColumn56
|
|
1529
1529
|
} from "typeorm";
|
|
1530
1530
|
|
|
1531
1531
|
// src/entities/base.entity.ts
|
|
@@ -2352,7 +2352,7 @@ import {
|
|
|
2352
2352
|
Index as Index24,
|
|
2353
2353
|
ManyToOne as ManyToOne29,
|
|
2354
2354
|
JoinColumn as JoinColumn29,
|
|
2355
|
-
OneToMany as
|
|
2355
|
+
OneToMany as OneToMany12
|
|
2356
2356
|
} from "typeorm";
|
|
2357
2357
|
|
|
2358
2358
|
// src/entities/job-skill.entity.ts
|
|
@@ -3297,7 +3297,7 @@ JobRecommendation = __decorateClass([
|
|
|
3297
3297
|
], JobRecommendation);
|
|
3298
3298
|
|
|
3299
3299
|
// src/entities/contract.entity.ts
|
|
3300
|
-
import { Entity as
|
|
3300
|
+
import { Entity as Entity27, Column as Column28, Index as Index21, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, OneToOne as OneToOne8 } from "typeorm";
|
|
3301
3301
|
|
|
3302
3302
|
// src/entities/escrow-wallet.entity.ts
|
|
3303
3303
|
import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToOne as OneToOne7, OneToMany as OneToMany10, ManyToOne as ManyToOne25 } from "typeorm";
|
|
@@ -3730,95 +3730,6 @@ EscrowWallet = __decorateClass([
|
|
|
3730
3730
|
Entity26("escrow_wallets")
|
|
3731
3731
|
], EscrowWallet);
|
|
3732
3732
|
|
|
3733
|
-
// src/entities/contract-history.entity.ts
|
|
3734
|
-
import { Entity as Entity27, Column as Column28, Index as Index21, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26 } from "typeorm";
|
|
3735
|
-
var ContractHistoryStatusEnum = /* @__PURE__ */ ((ContractHistoryStatusEnum2) => {
|
|
3736
|
-
ContractHistoryStatusEnum2["GENERATED"] = "GENERATED";
|
|
3737
|
-
ContractHistoryStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3738
|
-
ContractHistoryStatusEnum2["SENT"] = "SENT";
|
|
3739
|
-
ContractHistoryStatusEnum2["SIGNED"] = "SIGNED";
|
|
3740
|
-
ContractHistoryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3741
|
-
ContractHistoryStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3742
|
-
ContractHistoryStatusEnum2["DISPUTED"] = "DISPUTED";
|
|
3743
|
-
ContractHistoryStatusEnum2["REJECTED"] = "REJECTED";
|
|
3744
|
-
ContractHistoryStatusEnum2["RENEWED"] = "RENEWED";
|
|
3745
|
-
ContractHistoryStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
3746
|
-
return ContractHistoryStatusEnum2;
|
|
3747
|
-
})(ContractHistoryStatusEnum || {});
|
|
3748
|
-
var ContractHistoryTypeEnum = /* @__PURE__ */ ((ContractHistoryTypeEnum2) => {
|
|
3749
|
-
ContractHistoryTypeEnum2["NDA"] = "NDA";
|
|
3750
|
-
ContractHistoryTypeEnum2["WORK"] = "WORK";
|
|
3751
|
-
return ContractHistoryTypeEnum2;
|
|
3752
|
-
})(ContractHistoryTypeEnum || {});
|
|
3753
|
-
var ContractHistoryActionEnum = /* @__PURE__ */ ((ContractHistoryActionEnum2) => {
|
|
3754
|
-
ContractHistoryActionEnum2["GENERATED"] = "GENERATED";
|
|
3755
|
-
ContractHistoryActionEnum2["DRAFTED"] = "DRAFTED";
|
|
3756
|
-
ContractHistoryActionEnum2["SENT"] = "SENT";
|
|
3757
|
-
ContractHistoryActionEnum2["SIGNED"] = "SIGNED";
|
|
3758
|
-
ContractHistoryActionEnum2["ACTIVE"] = "ACTIVE";
|
|
3759
|
-
ContractHistoryActionEnum2["CANCELLED"] = "CANCELLED";
|
|
3760
|
-
ContractHistoryActionEnum2["DISPUTED"] = "DISPUTED";
|
|
3761
|
-
ContractHistoryActionEnum2["REJECTED"] = "REJECTED";
|
|
3762
|
-
ContractHistoryActionEnum2["RENEWED"] = "RENEWED";
|
|
3763
|
-
ContractHistoryActionEnum2["EXPIRED"] = "EXPIRED";
|
|
3764
|
-
ContractHistoryActionEnum2["VIEWED"] = "VIEWED";
|
|
3765
|
-
return ContractHistoryActionEnum2;
|
|
3766
|
-
})(ContractHistoryActionEnum || {});
|
|
3767
|
-
var ContractHistory = class extends BaseEntity {
|
|
3768
|
-
};
|
|
3769
|
-
__decorateClass([
|
|
3770
|
-
Column28({ name: "contract_id", type: "integer", nullable: false }),
|
|
3771
|
-
Index21()
|
|
3772
|
-
], ContractHistory.prototype, "contractId", 2);
|
|
3773
|
-
__decorateClass([
|
|
3774
|
-
ManyToOne26(() => Contract, (contract) => contract.history),
|
|
3775
|
-
JoinColumn26({ name: "contract_id" })
|
|
3776
|
-
], ContractHistory.prototype, "contract", 2);
|
|
3777
|
-
__decorateClass([
|
|
3778
|
-
Column28({ name: "action_by", type: "integer", nullable: true })
|
|
3779
|
-
], ContractHistory.prototype, "actionBy", 2);
|
|
3780
|
-
__decorateClass([
|
|
3781
|
-
Column28({ name: "action_by_type", type: "varchar", nullable: true })
|
|
3782
|
-
], ContractHistory.prototype, "actionByType", 2);
|
|
3783
|
-
__decorateClass([
|
|
3784
|
-
Column28({
|
|
3785
|
-
name: "previous_status",
|
|
3786
|
-
type: "enum",
|
|
3787
|
-
enum: ContractHistoryStatusEnum,
|
|
3788
|
-
nullable: true
|
|
3789
|
-
})
|
|
3790
|
-
], ContractHistory.prototype, "previousStatus", 2);
|
|
3791
|
-
__decorateClass([
|
|
3792
|
-
Column28({
|
|
3793
|
-
name: "new_status",
|
|
3794
|
-
type: "enum",
|
|
3795
|
-
enum: ContractHistoryStatusEnum,
|
|
3796
|
-
nullable: false
|
|
3797
|
-
})
|
|
3798
|
-
], ContractHistory.prototype, "newStatus", 2);
|
|
3799
|
-
__decorateClass([
|
|
3800
|
-
Column28({
|
|
3801
|
-
name: "type",
|
|
3802
|
-
type: "enum",
|
|
3803
|
-
enum: ContractHistoryTypeEnum,
|
|
3804
|
-
nullable: true
|
|
3805
|
-
})
|
|
3806
|
-
], ContractHistory.prototype, "type", 2);
|
|
3807
|
-
__decorateClass([
|
|
3808
|
-
Column28({
|
|
3809
|
-
name: "action_type",
|
|
3810
|
-
type: "enum",
|
|
3811
|
-
enum: ContractHistoryActionEnum,
|
|
3812
|
-
nullable: false
|
|
3813
|
-
})
|
|
3814
|
-
], ContractHistory.prototype, "actionType", 2);
|
|
3815
|
-
__decorateClass([
|
|
3816
|
-
Column28({ name: "remarks", type: "varchar", nullable: true })
|
|
3817
|
-
], ContractHistory.prototype, "remarks", 2);
|
|
3818
|
-
ContractHistory = __decorateClass([
|
|
3819
|
-
Entity27("contract_histories")
|
|
3820
|
-
], ContractHistory);
|
|
3821
|
-
|
|
3822
3733
|
// src/entities/contract.entity.ts
|
|
3823
3734
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3824
3735
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3841,41 +3752,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3841
3752
|
var Contract = class extends BaseEntity {
|
|
3842
3753
|
};
|
|
3843
3754
|
__decorateClass([
|
|
3844
|
-
|
|
3755
|
+
Column28({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3845
3756
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3846
3757
|
__decorateClass([
|
|
3847
|
-
|
|
3848
|
-
|
|
3758
|
+
Column28({ name: "job_id", type: "integer", nullable: true }),
|
|
3759
|
+
Index21()
|
|
3849
3760
|
], Contract.prototype, "jobId", 2);
|
|
3850
3761
|
__decorateClass([
|
|
3851
|
-
|
|
3852
|
-
|
|
3762
|
+
ManyToOne26(() => Job, (job) => job.contracts),
|
|
3763
|
+
JoinColumn26({ name: "job_id" })
|
|
3853
3764
|
], Contract.prototype, "job", 2);
|
|
3854
3765
|
__decorateClass([
|
|
3855
|
-
|
|
3856
|
-
|
|
3766
|
+
Column28({ name: "client_id", type: "integer", nullable: true }),
|
|
3767
|
+
Index21()
|
|
3857
3768
|
], Contract.prototype, "clientId", 2);
|
|
3858
3769
|
__decorateClass([
|
|
3859
|
-
|
|
3860
|
-
|
|
3770
|
+
ManyToOne26(() => User, (user) => user.clientContracts),
|
|
3771
|
+
JoinColumn26({ name: "client_id" })
|
|
3861
3772
|
], Contract.prototype, "client", 2);
|
|
3862
3773
|
__decorateClass([
|
|
3863
|
-
|
|
3864
|
-
|
|
3774
|
+
Column28({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3775
|
+
Index21()
|
|
3865
3776
|
], Contract.prototype, "freelancerId", 2);
|
|
3866
3777
|
__decorateClass([
|
|
3867
|
-
|
|
3868
|
-
|
|
3778
|
+
ManyToOne26(() => User, (user) => user.freelancerContracts),
|
|
3779
|
+
JoinColumn26({ name: "freelancer_id" })
|
|
3869
3780
|
], Contract.prototype, "freelancer", 2);
|
|
3870
3781
|
__decorateClass([
|
|
3871
|
-
|
|
3872
|
-
JoinColumn27({ name: "contract_id" })
|
|
3873
|
-
], Contract.prototype, "history", 2);
|
|
3874
|
-
__decorateClass([
|
|
3875
|
-
Column29({ name: "duration", type: "integer", nullable: true })
|
|
3782
|
+
Column28({ name: "duration", type: "integer", nullable: true })
|
|
3876
3783
|
], Contract.prototype, "duration", 2);
|
|
3877
3784
|
__decorateClass([
|
|
3878
|
-
|
|
3785
|
+
Column28({
|
|
3879
3786
|
name: "status",
|
|
3880
3787
|
type: "enum",
|
|
3881
3788
|
enum: ContractStatusEnum,
|
|
@@ -3883,7 +3790,7 @@ __decorateClass([
|
|
|
3883
3790
|
})
|
|
3884
3791
|
], Contract.prototype, "status", 2);
|
|
3885
3792
|
__decorateClass([
|
|
3886
|
-
|
|
3793
|
+
Column28({
|
|
3887
3794
|
name: "type",
|
|
3888
3795
|
type: "enum",
|
|
3889
3796
|
enum: ContractTypeEnum,
|
|
@@ -3891,10 +3798,10 @@ __decorateClass([
|
|
|
3891
3798
|
})
|
|
3892
3799
|
], Contract.prototype, "type", 2);
|
|
3893
3800
|
__decorateClass([
|
|
3894
|
-
|
|
3801
|
+
Column28({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3895
3802
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3896
3803
|
__decorateClass([
|
|
3897
|
-
|
|
3804
|
+
Column28({
|
|
3898
3805
|
name: "escrow_deposite_amount",
|
|
3899
3806
|
type: "decimal",
|
|
3900
3807
|
precision: 10,
|
|
@@ -3903,80 +3810,80 @@ __decorateClass([
|
|
|
3903
3810
|
})
|
|
3904
3811
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3905
3812
|
__decorateClass([
|
|
3906
|
-
|
|
3813
|
+
Column28({
|
|
3907
3814
|
name: "start_date",
|
|
3908
3815
|
type: "timestamp with time zone",
|
|
3909
3816
|
nullable: true
|
|
3910
3817
|
})
|
|
3911
3818
|
], Contract.prototype, "startDate", 2);
|
|
3912
3819
|
__decorateClass([
|
|
3913
|
-
|
|
3820
|
+
Column28({
|
|
3914
3821
|
name: "end_date",
|
|
3915
3822
|
type: "timestamp with time zone",
|
|
3916
3823
|
nullable: true
|
|
3917
3824
|
})
|
|
3918
3825
|
], Contract.prototype, "endDate", 2);
|
|
3919
3826
|
__decorateClass([
|
|
3920
|
-
|
|
3827
|
+
Column28({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3921
3828
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3922
3829
|
__decorateClass([
|
|
3923
|
-
|
|
3830
|
+
Column28({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3924
3831
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3925
3832
|
__decorateClass([
|
|
3926
|
-
|
|
3833
|
+
Column28({
|
|
3927
3834
|
name: "client_signed_at",
|
|
3928
3835
|
type: "timestamp with time zone",
|
|
3929
3836
|
nullable: true
|
|
3930
3837
|
})
|
|
3931
3838
|
], Contract.prototype, "clientSignedAt", 2);
|
|
3932
3839
|
__decorateClass([
|
|
3933
|
-
|
|
3840
|
+
Column28({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3934
3841
|
], Contract.prototype, "freelancerViewed", 2);
|
|
3935
3842
|
__decorateClass([
|
|
3936
|
-
|
|
3843
|
+
Column28({
|
|
3937
3844
|
name: "freelancer_viewed_at",
|
|
3938
3845
|
type: "timestamp with time zone",
|
|
3939
3846
|
nullable: true
|
|
3940
3847
|
})
|
|
3941
3848
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3942
3849
|
__decorateClass([
|
|
3943
|
-
|
|
3850
|
+
Column28({
|
|
3944
3851
|
name: "freelancer_signed_at",
|
|
3945
3852
|
type: "timestamp with time zone",
|
|
3946
3853
|
nullable: true
|
|
3947
3854
|
})
|
|
3948
3855
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3949
3856
|
__decorateClass([
|
|
3950
|
-
|
|
3857
|
+
Column28({
|
|
3951
3858
|
name: "rejectd_at",
|
|
3952
3859
|
type: "timestamp with time zone",
|
|
3953
3860
|
nullable: true
|
|
3954
3861
|
})
|
|
3955
3862
|
], Contract.prototype, "rejectedAt", 2);
|
|
3956
3863
|
__decorateClass([
|
|
3957
|
-
|
|
3864
|
+
Column28({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3958
3865
|
], Contract.prototype, "rejectReason", 2);
|
|
3959
3866
|
__decorateClass([
|
|
3960
|
-
|
|
3867
|
+
Column28({ name: "resend_count", type: "integer", default: 0 })
|
|
3961
3868
|
], Contract.prototype, "resendCount", 2);
|
|
3962
3869
|
__decorateClass([
|
|
3963
|
-
|
|
3870
|
+
Column28({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3964
3871
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
3965
3872
|
__decorateClass([
|
|
3966
|
-
|
|
3873
|
+
Column28({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3967
3874
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3968
3875
|
__decorateClass([
|
|
3969
|
-
|
|
3876
|
+
Column28({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3970
3877
|
], Contract.prototype, "signaturePositions", 2);
|
|
3971
3878
|
__decorateClass([
|
|
3972
3879
|
OneToOne8(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
3973
3880
|
], Contract.prototype, "escrowWallet", 2);
|
|
3974
3881
|
Contract = __decorateClass([
|
|
3975
|
-
|
|
3882
|
+
Entity27("contracts")
|
|
3976
3883
|
], Contract);
|
|
3977
3884
|
|
|
3978
3885
|
// src/entities/timesheets.entity.ts
|
|
3979
|
-
import { Entity as
|
|
3886
|
+
import { Entity as Entity28, Column as Column29, Index as Index22, JoinColumn as JoinColumn27, ManyToOne as ManyToOne27 } from "typeorm";
|
|
3980
3887
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3981
3888
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3982
3889
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3989,89 +3896,132 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3989
3896
|
var Timesheet = class extends BaseEntity {
|
|
3990
3897
|
};
|
|
3991
3898
|
__decorateClass([
|
|
3992
|
-
|
|
3993
|
-
|
|
3899
|
+
Column29({ name: "job_id", type: "integer", nullable: true }),
|
|
3900
|
+
Index22()
|
|
3994
3901
|
], Timesheet.prototype, "jobId", 2);
|
|
3995
3902
|
__decorateClass([
|
|
3996
|
-
|
|
3997
|
-
|
|
3903
|
+
ManyToOne27(() => Job, (job) => job.timesheets),
|
|
3904
|
+
JoinColumn27({ name: "job_id" })
|
|
3998
3905
|
], Timesheet.prototype, "job", 2);
|
|
3999
3906
|
__decorateClass([
|
|
4000
|
-
|
|
4001
|
-
|
|
3907
|
+
Column29({ name: "client_id", type: "integer", nullable: true }),
|
|
3908
|
+
Index22()
|
|
4002
3909
|
], Timesheet.prototype, "clientId", 2);
|
|
4003
3910
|
__decorateClass([
|
|
4004
|
-
|
|
4005
|
-
|
|
3911
|
+
ManyToOne27(() => User, (user) => user.clientTimesheets),
|
|
3912
|
+
JoinColumn27({ name: "client_id" })
|
|
4006
3913
|
], Timesheet.prototype, "client", 2);
|
|
4007
3914
|
__decorateClass([
|
|
4008
|
-
|
|
4009
|
-
|
|
3915
|
+
Column29({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3916
|
+
Index22()
|
|
4010
3917
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4011
3918
|
__decorateClass([
|
|
4012
|
-
|
|
4013
|
-
|
|
3919
|
+
ManyToOne27(() => User, (user) => user.freelancerTimesheets),
|
|
3920
|
+
JoinColumn27({ name: "freelancer_id" })
|
|
4014
3921
|
], Timesheet.prototype, "freelancer", 2);
|
|
4015
3922
|
__decorateClass([
|
|
4016
|
-
|
|
3923
|
+
Column29({
|
|
4017
3924
|
name: "start_date",
|
|
4018
3925
|
type: "date",
|
|
4019
3926
|
nullable: true
|
|
4020
3927
|
})
|
|
4021
3928
|
], Timesheet.prototype, "startDate", 2);
|
|
4022
3929
|
__decorateClass([
|
|
4023
|
-
|
|
3930
|
+
Column29({
|
|
4024
3931
|
name: "end_date",
|
|
4025
3932
|
type: "date",
|
|
4026
3933
|
nullable: true
|
|
4027
3934
|
})
|
|
4028
3935
|
], Timesheet.prototype, "endDate", 2);
|
|
4029
3936
|
__decorateClass([
|
|
4030
|
-
|
|
3937
|
+
Column29({ name: "start_time", type: "varchar", nullable: true })
|
|
4031
3938
|
], Timesheet.prototype, "startTime", 2);
|
|
4032
3939
|
__decorateClass([
|
|
4033
|
-
|
|
3940
|
+
Column29({ name: "end_time", type: "varchar", nullable: true })
|
|
4034
3941
|
], Timesheet.prototype, "endTime", 2);
|
|
4035
3942
|
__decorateClass([
|
|
4036
|
-
|
|
3943
|
+
Column29({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4037
3944
|
], Timesheet.prototype, "workedHours", 2);
|
|
4038
3945
|
__decorateClass([
|
|
4039
|
-
|
|
3946
|
+
Column29({ name: "task_id", type: "integer", nullable: true })
|
|
4040
3947
|
], Timesheet.prototype, "taskId", 2);
|
|
4041
3948
|
__decorateClass([
|
|
4042
|
-
|
|
3949
|
+
Column29({ name: "task_name", type: "varchar", nullable: true })
|
|
4043
3950
|
], Timesheet.prototype, "taskName", 2);
|
|
4044
3951
|
__decorateClass([
|
|
4045
|
-
|
|
3952
|
+
Column29({ name: "description", type: "varchar", nullable: true })
|
|
4046
3953
|
], Timesheet.prototype, "description", 2);
|
|
4047
3954
|
__decorateClass([
|
|
4048
|
-
|
|
3955
|
+
Column29({ name: "week_start_date", type: "date", nullable: true })
|
|
4049
3956
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4050
3957
|
__decorateClass([
|
|
4051
|
-
|
|
3958
|
+
Column29({ name: "week_end_date", type: "date", nullable: true })
|
|
4052
3959
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4053
3960
|
__decorateClass([
|
|
4054
|
-
|
|
3961
|
+
Column29({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4055
3962
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4056
3963
|
__decorateClass([
|
|
4057
|
-
|
|
3964
|
+
Column29({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4058
3965
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4059
3966
|
__decorateClass([
|
|
4060
|
-
|
|
3967
|
+
Column29({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4061
3968
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4062
3969
|
__decorateClass([
|
|
4063
|
-
|
|
3970
|
+
Column29({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4064
3971
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4065
3972
|
__decorateClass([
|
|
4066
|
-
|
|
3973
|
+
Column29({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4067
3974
|
], Timesheet.prototype, "status", 2);
|
|
4068
3975
|
__decorateClass([
|
|
4069
|
-
|
|
3976
|
+
Column29({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4070
3977
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4071
3978
|
Timesheet = __decorateClass([
|
|
4072
|
-
|
|
3979
|
+
Entity28("timesheets")
|
|
4073
3980
|
], Timesheet);
|
|
4074
3981
|
|
|
3982
|
+
// src/entities/job-location.entity.ts
|
|
3983
|
+
import {
|
|
3984
|
+
Entity as Entity29,
|
|
3985
|
+
Column as Column30,
|
|
3986
|
+
ManyToOne as ManyToOne28,
|
|
3987
|
+
JoinColumn as JoinColumn28,
|
|
3988
|
+
Index as Index23
|
|
3989
|
+
} from "typeorm";
|
|
3990
|
+
var JobLocation2 = class extends BaseEntity {
|
|
3991
|
+
};
|
|
3992
|
+
__decorateClass([
|
|
3993
|
+
Column30({ name: "job_id", type: "integer", nullable: false }),
|
|
3994
|
+
Index23()
|
|
3995
|
+
], JobLocation2.prototype, "jobId", 2);
|
|
3996
|
+
__decorateClass([
|
|
3997
|
+
ManyToOne28(() => Job, (job) => job.jobLocations),
|
|
3998
|
+
JoinColumn28({ name: "job_id" })
|
|
3999
|
+
], JobLocation2.prototype, "job", 2);
|
|
4000
|
+
__decorateClass([
|
|
4001
|
+
Column30({ name: "country_id", type: "int", nullable: false })
|
|
4002
|
+
], JobLocation2.prototype, "countryId", 2);
|
|
4003
|
+
__decorateClass([
|
|
4004
|
+
ManyToOne28(() => Country),
|
|
4005
|
+
JoinColumn28({ name: "country_id" })
|
|
4006
|
+
], JobLocation2.prototype, "country", 2);
|
|
4007
|
+
__decorateClass([
|
|
4008
|
+
Column30({ name: "state_id", type: "int", nullable: false })
|
|
4009
|
+
], JobLocation2.prototype, "stateId", 2);
|
|
4010
|
+
__decorateClass([
|
|
4011
|
+
ManyToOne28(() => State),
|
|
4012
|
+
JoinColumn28({ name: "state_id" })
|
|
4013
|
+
], JobLocation2.prototype, "state", 2);
|
|
4014
|
+
__decorateClass([
|
|
4015
|
+
Column30({ name: "city_id", type: "int", nullable: false })
|
|
4016
|
+
], JobLocation2.prototype, "cityId", 2);
|
|
4017
|
+
__decorateClass([
|
|
4018
|
+
ManyToOne28(() => City),
|
|
4019
|
+
JoinColumn28({ name: "city_id" })
|
|
4020
|
+
], JobLocation2.prototype, "city", 2);
|
|
4021
|
+
JobLocation2 = __decorateClass([
|
|
4022
|
+
Entity29("job_locations")
|
|
4023
|
+
], JobLocation2);
|
|
4024
|
+
|
|
4075
4025
|
// src/entities/job.entity.ts
|
|
4076
4026
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
4077
4027
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4080,6 +4030,11 @@ var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
|
4080
4030
|
JobLocationEnum2["BOTH"] = "BOTH";
|
|
4081
4031
|
return JobLocationEnum2;
|
|
4082
4032
|
})(JobLocationEnum || {});
|
|
4033
|
+
var typeOfExperienceEnum = /* @__PURE__ */ ((typeOfExperienceEnum2) => {
|
|
4034
|
+
typeOfExperienceEnum2["SINGLE"] = "SINGLE";
|
|
4035
|
+
typeOfExperienceEnum2["RANGE"] = "RANGE";
|
|
4036
|
+
return typeOfExperienceEnum2;
|
|
4037
|
+
})(typeOfExperienceEnum || {});
|
|
4083
4038
|
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
4084
4039
|
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
4085
4040
|
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
@@ -4179,9 +4134,23 @@ __decorateClass([
|
|
|
4179
4134
|
__decorateClass([
|
|
4180
4135
|
Column31({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4181
4136
|
], Job.prototype, "academicQualification", 2);
|
|
4137
|
+
__decorateClass([
|
|
4138
|
+
Column31({
|
|
4139
|
+
name: "type_of_experience",
|
|
4140
|
+
type: "enum",
|
|
4141
|
+
enum: typeOfExperienceEnum,
|
|
4142
|
+
nullable: true
|
|
4143
|
+
})
|
|
4144
|
+
], Job.prototype, "typeOfExperience", 2);
|
|
4182
4145
|
__decorateClass([
|
|
4183
4146
|
Column31({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4184
4147
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4148
|
+
__decorateClass([
|
|
4149
|
+
Column31({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4150
|
+
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4151
|
+
__decorateClass([
|
|
4152
|
+
Column31({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4153
|
+
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4185
4154
|
__decorateClass([
|
|
4186
4155
|
Column31({ name: "business_industry", type: "varchar", nullable: true })
|
|
4187
4156
|
], Job.prototype, "businessIndustry", 2);
|
|
@@ -4308,28 +4277,28 @@ __decorateClass([
|
|
|
4308
4277
|
Column31({ name: "is_interview_created", type: "boolean", default: false })
|
|
4309
4278
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4310
4279
|
__decorateClass([
|
|
4311
|
-
|
|
4280
|
+
OneToMany12(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4312
4281
|
], Job.prototype, "interviewInvites", 2);
|
|
4313
4282
|
__decorateClass([
|
|
4314
|
-
|
|
4283
|
+
OneToMany12(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4315
4284
|
], Job.prototype, "jobSkills", 2);
|
|
4316
4285
|
__decorateClass([
|
|
4317
|
-
|
|
4286
|
+
OneToMany12(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4318
4287
|
cascade: true
|
|
4319
4288
|
})
|
|
4320
4289
|
], Job.prototype, "jobApplications", 2);
|
|
4321
4290
|
__decorateClass([
|
|
4322
|
-
|
|
4291
|
+
OneToMany12(() => Interview, (interview) => interview.job, {
|
|
4323
4292
|
cascade: true
|
|
4324
4293
|
})
|
|
4325
4294
|
], Job.prototype, "interviews", 2);
|
|
4326
4295
|
__decorateClass([
|
|
4327
|
-
|
|
4296
|
+
OneToMany12(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4328
4297
|
cascade: true
|
|
4329
4298
|
})
|
|
4330
4299
|
], Job.prototype, "f2fInterviews", 2);
|
|
4331
4300
|
__decorateClass([
|
|
4332
|
-
|
|
4301
|
+
OneToMany12(
|
|
4333
4302
|
() => JobRecommendation,
|
|
4334
4303
|
(jobRecommendation) => jobRecommendation.job,
|
|
4335
4304
|
{
|
|
@@ -4338,33 +4307,38 @@ __decorateClass([
|
|
|
4338
4307
|
)
|
|
4339
4308
|
], Job.prototype, "recommendations", 2);
|
|
4340
4309
|
__decorateClass([
|
|
4341
|
-
|
|
4310
|
+
OneToMany12(() => Contract, (contract) => contract.job, {
|
|
4342
4311
|
cascade: true
|
|
4343
4312
|
})
|
|
4344
4313
|
], Job.prototype, "contracts", 2);
|
|
4345
4314
|
__decorateClass([
|
|
4346
|
-
|
|
4315
|
+
OneToMany12(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4347
4316
|
cascade: true
|
|
4348
4317
|
})
|
|
4349
4318
|
], Job.prototype, "escrowWallets", 2);
|
|
4350
4319
|
__decorateClass([
|
|
4351
|
-
|
|
4320
|
+
OneToMany12(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4352
4321
|
cascade: true
|
|
4353
4322
|
})
|
|
4354
4323
|
], Job.prototype, "timesheets", 2);
|
|
4355
4324
|
__decorateClass([
|
|
4356
|
-
|
|
4325
|
+
OneToMany12(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4357
4326
|
cascade: true
|
|
4358
4327
|
})
|
|
4359
4328
|
], Job.prototype, "timesheetLine", 2);
|
|
4360
4329
|
__decorateClass([
|
|
4361
|
-
|
|
4330
|
+
OneToMany12(() => Invoice, (invoice) => invoice.job, {
|
|
4362
4331
|
cascade: true
|
|
4363
4332
|
})
|
|
4364
4333
|
], Job.prototype, "invoice", 2);
|
|
4365
4334
|
__decorateClass([
|
|
4366
|
-
|
|
4335
|
+
OneToMany12(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4367
4336
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4337
|
+
__decorateClass([
|
|
4338
|
+
OneToMany12(() => JobLocation2, (jobLocation) => jobLocation.job, {
|
|
4339
|
+
cascade: true
|
|
4340
|
+
})
|
|
4341
|
+
], Job.prototype, "jobLocations", 2);
|
|
4368
4342
|
Job = __decorateClass([
|
|
4369
4343
|
Entity30("jobs")
|
|
4370
4344
|
], Job);
|
|
@@ -4831,7 +4805,7 @@ import {
|
|
|
4831
4805
|
Index as Index38,
|
|
4832
4806
|
JoinColumn as JoinColumn42,
|
|
4833
4807
|
ManyToOne as ManyToOne42,
|
|
4834
|
-
OneToMany as
|
|
4808
|
+
OneToMany as OneToMany14
|
|
4835
4809
|
} from "typeorm";
|
|
4836
4810
|
|
|
4837
4811
|
// src/entities/company-role-permission.entity.ts
|
|
@@ -4917,7 +4891,7 @@ __decorateClass([
|
|
|
4917
4891
|
Column45({ name: "is_active", type: "boolean", default: true })
|
|
4918
4892
|
], CompanyRole.prototype, "isActive", 2);
|
|
4919
4893
|
__decorateClass([
|
|
4920
|
-
|
|
4894
|
+
OneToMany14(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4921
4895
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4922
4896
|
CompanyRole = __decorateClass([
|
|
4923
4897
|
Entity44("company_roles")
|
|
@@ -4953,19 +4927,19 @@ CompanyMemberRole = __decorateClass([
|
|
|
4953
4927
|
import {
|
|
4954
4928
|
Entity as Entity48,
|
|
4955
4929
|
Column as Column49,
|
|
4956
|
-
ManyToOne as
|
|
4957
|
-
Index as
|
|
4958
|
-
JoinColumn as
|
|
4930
|
+
ManyToOne as ManyToOne46,
|
|
4931
|
+
Index as Index42,
|
|
4932
|
+
JoinColumn as JoinColumn46
|
|
4959
4933
|
} from "typeorm";
|
|
4960
4934
|
|
|
4961
4935
|
// src/entities/assessment-question.entity.ts
|
|
4962
|
-
import { Entity as Entity47, Column as Column48, OneToMany as
|
|
4936
|
+
import { Entity as Entity47, Column as Column48, OneToMany as OneToMany16, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4963
4937
|
|
|
4964
4938
|
// src/entities/assessment-question-option.entity.ts
|
|
4965
4939
|
import {
|
|
4966
4940
|
Entity as Entity46,
|
|
4967
4941
|
Column as Column47,
|
|
4968
|
-
OneToMany as
|
|
4942
|
+
OneToMany as OneToMany15,
|
|
4969
4943
|
ManyToOne as ManyToOne44,
|
|
4970
4944
|
Index as Index40,
|
|
4971
4945
|
JoinColumn as JoinColumn44
|
|
@@ -5004,7 +4978,7 @@ __decorateClass([
|
|
|
5004
4978
|
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5005
4979
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5006
4980
|
__decorateClass([
|
|
5007
|
-
|
|
4981
|
+
OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5008
4982
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5009
4983
|
AssessmetQuestionOption = __decorateClass([
|
|
5010
4984
|
Entity46("assessment_question_options")
|
|
@@ -5033,10 +5007,18 @@ __decorateClass([
|
|
|
5033
5007
|
Column48({ name: "is_active", type: "boolean", default: true })
|
|
5034
5008
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5035
5009
|
__decorateClass([
|
|
5036
|
-
|
|
5010
|
+
Column48({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5011
|
+
Index41()
|
|
5012
|
+
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5013
|
+
__decorateClass([
|
|
5014
|
+
ManyToOne45(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5015
|
+
JoinColumn45({ name: "candidate_id" })
|
|
5016
|
+
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5017
|
+
__decorateClass([
|
|
5018
|
+
OneToMany16(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5037
5019
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5038
5020
|
__decorateClass([
|
|
5039
|
-
|
|
5021
|
+
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5040
5022
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5041
5023
|
AssessmetQuestion = __decorateClass([
|
|
5042
5024
|
Entity47("assessment_questions")
|
|
@@ -5053,33 +5035,33 @@ var AssessmentAnswer = class extends BaseEntity {
|
|
|
5053
5035
|
};
|
|
5054
5036
|
__decorateClass([
|
|
5055
5037
|
Column49({ name: "user_id", type: "integer" }),
|
|
5056
|
-
|
|
5038
|
+
Index42()
|
|
5057
5039
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5058
5040
|
__decorateClass([
|
|
5059
|
-
|
|
5060
|
-
|
|
5041
|
+
ManyToOne46(() => User, (user) => user.assessmentAnswers),
|
|
5042
|
+
JoinColumn46({ name: "user_id" })
|
|
5061
5043
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5062
5044
|
__decorateClass([
|
|
5063
5045
|
Column49({ name: "question_id", type: "integer" }),
|
|
5064
|
-
|
|
5046
|
+
Index42()
|
|
5065
5047
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5066
5048
|
__decorateClass([
|
|
5067
|
-
|
|
5049
|
+
ManyToOne46(
|
|
5068
5050
|
() => AssessmetQuestion,
|
|
5069
5051
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5070
5052
|
),
|
|
5071
|
-
|
|
5053
|
+
JoinColumn46({ name: "question_id" })
|
|
5072
5054
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5073
5055
|
__decorateClass([
|
|
5074
5056
|
Column49({ name: "selected_option_id", type: "integer" }),
|
|
5075
|
-
|
|
5057
|
+
Index42()
|
|
5076
5058
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5077
5059
|
__decorateClass([
|
|
5078
|
-
|
|
5060
|
+
ManyToOne46(
|
|
5079
5061
|
() => AssessmetQuestionOption,
|
|
5080
5062
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5081
5063
|
),
|
|
5082
|
-
|
|
5064
|
+
JoinColumn46({ name: "selected_option_id" })
|
|
5083
5065
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5084
5066
|
__decorateClass([
|
|
5085
5067
|
Column49({
|
|
@@ -5096,17 +5078,17 @@ AssessmentAnswer = __decorateClass([
|
|
|
5096
5078
|
], AssessmentAnswer);
|
|
5097
5079
|
|
|
5098
5080
|
// src/entities/company-skill.entity.ts
|
|
5099
|
-
import { Entity as Entity49, Column as Column50, Index as
|
|
5081
|
+
import { Entity as Entity49, Column as Column50, Index as Index43, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
5100
5082
|
var CompanySkill = class extends BaseEntity {
|
|
5101
5083
|
};
|
|
5102
5084
|
// individual index to find core skills by user
|
|
5103
5085
|
__decorateClass([
|
|
5104
5086
|
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
5105
|
-
|
|
5087
|
+
Index43()
|
|
5106
5088
|
], CompanySkill.prototype, "userId", 2);
|
|
5107
5089
|
__decorateClass([
|
|
5108
|
-
|
|
5109
|
-
|
|
5090
|
+
ManyToOne47(() => User, (user) => user.freelancerSkills),
|
|
5091
|
+
JoinColumn47({ name: "user_id" })
|
|
5110
5092
|
], CompanySkill.prototype, "user", 2);
|
|
5111
5093
|
__decorateClass([
|
|
5112
5094
|
Column50({ name: "skill_name", type: "varchar", nullable: true })
|
|
@@ -5116,16 +5098,16 @@ CompanySkill = __decorateClass([
|
|
|
5116
5098
|
], CompanySkill);
|
|
5117
5099
|
|
|
5118
5100
|
// src/entities/admin-user-role.entity.ts
|
|
5119
|
-
import { Entity as Entity53, Column as Column54, ManyToOne as
|
|
5101
|
+
import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
5120
5102
|
|
|
5121
5103
|
// src/entities/admin-role.entity.ts
|
|
5122
|
-
import { Entity as Entity52, Column as Column53, Index as
|
|
5104
|
+
import { Entity as Entity52, Column as Column53, Index as Index46, OneToMany as OneToMany19 } from "typeorm";
|
|
5123
5105
|
|
|
5124
5106
|
// src/entities/admin-role-permission.entity.ts
|
|
5125
|
-
import { Entity as Entity51, Column as Column52, ManyToOne as
|
|
5107
|
+
import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
5126
5108
|
|
|
5127
5109
|
// src/entities/admin-permission.entity.ts
|
|
5128
|
-
import { Entity as Entity50, Column as Column51, Index as
|
|
5110
|
+
import { Entity as Entity50, Column as Column51, Index as Index44, OneToMany as OneToMany18 } from "typeorm";
|
|
5129
5111
|
var AdminPermission = class extends BaseEntity {
|
|
5130
5112
|
};
|
|
5131
5113
|
__decorateClass([
|
|
@@ -5138,7 +5120,7 @@ __decorateClass([
|
|
|
5138
5120
|
unique: true,
|
|
5139
5121
|
nullable: true
|
|
5140
5122
|
}),
|
|
5141
|
-
|
|
5123
|
+
Index44()
|
|
5142
5124
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5143
5125
|
__decorateClass([
|
|
5144
5126
|
Column51({ name: "permission_description", type: "varchar", nullable: true })
|
|
@@ -5150,7 +5132,7 @@ __decorateClass([
|
|
|
5150
5132
|
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5151
5133
|
], AdminPermission.prototype, "isActive", 2);
|
|
5152
5134
|
__decorateClass([
|
|
5153
|
-
|
|
5135
|
+
OneToMany18(
|
|
5154
5136
|
() => AdminRolePermission,
|
|
5155
5137
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5156
5138
|
)
|
|
@@ -5171,8 +5153,8 @@ __decorateClass([
|
|
|
5171
5153
|
})
|
|
5172
5154
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5173
5155
|
__decorateClass([
|
|
5174
|
-
|
|
5175
|
-
|
|
5156
|
+
ManyToOne48(() => AdminRole),
|
|
5157
|
+
JoinColumn48({ name: "role_id" })
|
|
5176
5158
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5177
5159
|
__decorateClass([
|
|
5178
5160
|
Column52({
|
|
@@ -5183,8 +5165,8 @@ __decorateClass([
|
|
|
5183
5165
|
})
|
|
5184
5166
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5185
5167
|
__decorateClass([
|
|
5186
|
-
|
|
5187
|
-
|
|
5168
|
+
ManyToOne48(() => AdminPermission),
|
|
5169
|
+
JoinColumn48({ name: "permission_id" })
|
|
5188
5170
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5189
5171
|
AdminRolePermission = __decorateClass([
|
|
5190
5172
|
Entity51("admin_role_permissions")
|
|
@@ -5198,7 +5180,7 @@ __decorateClass([
|
|
|
5198
5180
|
], AdminRole.prototype, "roleName", 2);
|
|
5199
5181
|
__decorateClass([
|
|
5200
5182
|
Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5201
|
-
|
|
5183
|
+
Index46()
|
|
5202
5184
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5203
5185
|
__decorateClass([
|
|
5204
5186
|
Column53({ name: "role_description", type: "varchar", nullable: true })
|
|
@@ -5207,13 +5189,13 @@ __decorateClass([
|
|
|
5207
5189
|
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5208
5190
|
], AdminRole.prototype, "isActive", 2);
|
|
5209
5191
|
__decorateClass([
|
|
5210
|
-
|
|
5192
|
+
OneToMany19(
|
|
5211
5193
|
() => AdminRolePermission,
|
|
5212
5194
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5213
5195
|
)
|
|
5214
5196
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5215
5197
|
__decorateClass([
|
|
5216
|
-
|
|
5198
|
+
OneToMany19(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5217
5199
|
], AdminRole.prototype, "userRoles", 2);
|
|
5218
5200
|
AdminRole = __decorateClass([
|
|
5219
5201
|
Entity52("admin_roles")
|
|
@@ -5231,8 +5213,8 @@ __decorateClass([
|
|
|
5231
5213
|
})
|
|
5232
5214
|
], AdminUserRole.prototype, "userId", 2);
|
|
5233
5215
|
__decorateClass([
|
|
5234
|
-
|
|
5235
|
-
|
|
5216
|
+
ManyToOne49(() => User),
|
|
5217
|
+
JoinColumn49({ name: "user_id" })
|
|
5236
5218
|
], AdminUserRole.prototype, "user", 2);
|
|
5237
5219
|
__decorateClass([
|
|
5238
5220
|
Column54({
|
|
@@ -5243,8 +5225,8 @@ __decorateClass([
|
|
|
5243
5225
|
})
|
|
5244
5226
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5245
5227
|
__decorateClass([
|
|
5246
|
-
|
|
5247
|
-
|
|
5228
|
+
ManyToOne49(() => AdminRole),
|
|
5229
|
+
JoinColumn49({ name: "role_id" })
|
|
5248
5230
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5249
5231
|
AdminUserRole = __decorateClass([
|
|
5250
5232
|
Entity53("admin_user_roles")
|
|
@@ -5254,20 +5236,20 @@ AdminUserRole = __decorateClass([
|
|
|
5254
5236
|
import {
|
|
5255
5237
|
Entity as Entity54,
|
|
5256
5238
|
Column as Column55,
|
|
5257
|
-
Index as
|
|
5258
|
-
ManyToOne as
|
|
5259
|
-
JoinColumn as
|
|
5239
|
+
Index as Index48,
|
|
5240
|
+
ManyToOne as ManyToOne50,
|
|
5241
|
+
JoinColumn as JoinColumn50
|
|
5260
5242
|
} from "typeorm";
|
|
5261
5243
|
var FreelancerResume = class extends BaseEntity {
|
|
5262
5244
|
};
|
|
5263
5245
|
// individual index to find profile by user
|
|
5264
5246
|
__decorateClass([
|
|
5265
5247
|
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5266
|
-
|
|
5248
|
+
Index48()
|
|
5267
5249
|
], FreelancerResume.prototype, "userId", 2);
|
|
5268
5250
|
__decorateClass([
|
|
5269
|
-
|
|
5270
|
-
|
|
5251
|
+
ManyToOne50(() => User, (user) => user.freelancerProfile),
|
|
5252
|
+
JoinColumn50({ name: "user_id" })
|
|
5271
5253
|
], FreelancerResume.prototype, "user", 2);
|
|
5272
5254
|
__decorateClass([
|
|
5273
5255
|
Column55({ name: "resume_data", type: "jsonb", nullable: true })
|
|
@@ -5283,20 +5265,20 @@ FreelancerResume = __decorateClass([
|
|
|
5283
5265
|
import {
|
|
5284
5266
|
Entity as Entity55,
|
|
5285
5267
|
Column as Column56,
|
|
5286
|
-
Index as
|
|
5287
|
-
ManyToOne as
|
|
5288
|
-
JoinColumn as
|
|
5268
|
+
Index as Index49,
|
|
5269
|
+
ManyToOne as ManyToOne51,
|
|
5270
|
+
JoinColumn as JoinColumn51
|
|
5289
5271
|
} from "typeorm";
|
|
5290
5272
|
var Signature = class extends BaseEntity {
|
|
5291
5273
|
};
|
|
5292
5274
|
// individual index to find profile by user
|
|
5293
5275
|
__decorateClass([
|
|
5294
5276
|
Column56({ name: "user_id", type: "integer", nullable: true }),
|
|
5295
|
-
|
|
5277
|
+
Index49()
|
|
5296
5278
|
], Signature.prototype, "userId", 2);
|
|
5297
5279
|
__decorateClass([
|
|
5298
|
-
|
|
5299
|
-
|
|
5280
|
+
ManyToOne51(() => User, (user) => user.signatures),
|
|
5281
|
+
JoinColumn51({ name: "user_id" })
|
|
5300
5282
|
], Signature.prototype, "user", 2);
|
|
5301
5283
|
__decorateClass([
|
|
5302
5284
|
Column56({ name: "signature_url", type: "text", nullable: true })
|
|
@@ -5306,7 +5288,7 @@ Signature = __decorateClass([
|
|
|
5306
5288
|
], Signature);
|
|
5307
5289
|
|
|
5308
5290
|
// src/entities/dispute.entity.ts
|
|
5309
|
-
import { Entity as Entity56, Column as Column57, Index as
|
|
5291
|
+
import { Entity as Entity56, Column as Column57, Index as Index50, JoinColumn as JoinColumn52, ManyToOne as ManyToOne52 } from "typeorm";
|
|
5310
5292
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5311
5293
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5312
5294
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5328,26 +5310,26 @@ var Dispute = class extends BaseEntity {
|
|
|
5328
5310
|
};
|
|
5329
5311
|
__decorateClass([
|
|
5330
5312
|
Column57({ name: "client_id", type: "integer", nullable: true }),
|
|
5331
|
-
|
|
5313
|
+
Index50()
|
|
5332
5314
|
], Dispute.prototype, "clientId", 2);
|
|
5333
5315
|
__decorateClass([
|
|
5334
|
-
|
|
5335
|
-
|
|
5316
|
+
ManyToOne52(() => User, (user) => user.clientDisputes),
|
|
5317
|
+
JoinColumn52({ name: "client_id" })
|
|
5336
5318
|
], Dispute.prototype, "client", 2);
|
|
5337
5319
|
__decorateClass([
|
|
5338
5320
|
Column57({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5339
|
-
|
|
5321
|
+
Index50()
|
|
5340
5322
|
], Dispute.prototype, "freelancerId", 2);
|
|
5341
5323
|
__decorateClass([
|
|
5342
|
-
|
|
5343
|
-
|
|
5324
|
+
ManyToOne52(() => User, (user) => user.freelancerDisputes),
|
|
5325
|
+
JoinColumn52({ name: "freelancer_id" })
|
|
5344
5326
|
], Dispute.prototype, "freelancer", 2);
|
|
5345
5327
|
__decorateClass([
|
|
5346
5328
|
Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5347
5329
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5348
5330
|
__decorateClass([
|
|
5349
5331
|
Column57({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5350
|
-
|
|
5332
|
+
Index50()
|
|
5351
5333
|
], Dispute.prototype, "disputeType", 2);
|
|
5352
5334
|
__decorateClass([
|
|
5353
5335
|
Column57({ name: "description", type: "varchar", nullable: true })
|
|
@@ -5374,19 +5356,19 @@ __decorateClass([
|
|
|
5374
5356
|
], Dispute.prototype, "initiatorType", 2);
|
|
5375
5357
|
__decorateClass([
|
|
5376
5358
|
Column57({ name: "initiator_id", type: "integer" }),
|
|
5377
|
-
|
|
5359
|
+
Index50()
|
|
5378
5360
|
], Dispute.prototype, "initiatorId", 2);
|
|
5379
5361
|
__decorateClass([
|
|
5380
|
-
|
|
5381
|
-
|
|
5362
|
+
ManyToOne52(() => User, (user) => user.initiatedDisputes),
|
|
5363
|
+
JoinColumn52({ name: "initiator_id" })
|
|
5382
5364
|
], Dispute.prototype, "initiator", 2);
|
|
5383
5365
|
__decorateClass([
|
|
5384
5366
|
Column57({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5385
|
-
|
|
5367
|
+
Index50()
|
|
5386
5368
|
], Dispute.prototype, "respondentId", 2);
|
|
5387
5369
|
__decorateClass([
|
|
5388
|
-
|
|
5389
|
-
|
|
5370
|
+
ManyToOne52(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5371
|
+
JoinColumn52({ name: "respondent_id" })
|
|
5390
5372
|
], Dispute.prototype, "respondent", 2);
|
|
5391
5373
|
__decorateClass([
|
|
5392
5374
|
Column57({ name: "attachments", type: "jsonb", nullable: true })
|
|
@@ -5399,7 +5381,7 @@ Dispute = __decorateClass([
|
|
|
5399
5381
|
], Dispute);
|
|
5400
5382
|
|
|
5401
5383
|
// src/entities/stripe-transaction.entity.ts
|
|
5402
|
-
import { Entity as Entity57, Column as Column58, Index as
|
|
5384
|
+
import { Entity as Entity57, Column as Column58, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5403
5385
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5404
5386
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5405
5387
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5422,11 +5404,11 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5422
5404
|
};
|
|
5423
5405
|
__decorateClass([
|
|
5424
5406
|
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
5425
|
-
|
|
5407
|
+
Index51()
|
|
5426
5408
|
], StripeTransaction.prototype, "userId", 2);
|
|
5427
5409
|
__decorateClass([
|
|
5428
|
-
|
|
5429
|
-
|
|
5410
|
+
ManyToOne53(() => User, (user) => user.stripeTransactions),
|
|
5411
|
+
JoinColumn53({ name: "user_id" })
|
|
5430
5412
|
], StripeTransaction.prototype, "user", 2);
|
|
5431
5413
|
__decorateClass([
|
|
5432
5414
|
Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
@@ -5508,10 +5490,10 @@ StripeTransaction = __decorateClass([
|
|
|
5508
5490
|
], StripeTransaction);
|
|
5509
5491
|
|
|
5510
5492
|
// src/entities/wallet.entity.ts
|
|
5511
|
-
import { Entity as Entity59, Column as Column60, Index as
|
|
5493
|
+
import { Entity as Entity59, Column as Column60, Index as Index53, JoinColumn as JoinColumn55, OneToOne as OneToOne10, OneToMany as OneToMany20 } from "typeorm";
|
|
5512
5494
|
|
|
5513
5495
|
// src/entities/wallet-transaction.entity.ts
|
|
5514
|
-
import { Entity as Entity58, Column as Column59, Index as
|
|
5496
|
+
import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5515
5497
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5516
5498
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5517
5499
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5529,11 +5511,11 @@ var WalletTransaction = class extends BaseEntity {
|
|
|
5529
5511
|
};
|
|
5530
5512
|
__decorateClass([
|
|
5531
5513
|
Column59({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5532
|
-
|
|
5514
|
+
Index52()
|
|
5533
5515
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5534
5516
|
__decorateClass([
|
|
5535
|
-
|
|
5536
|
-
|
|
5517
|
+
ManyToOne54(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5518
|
+
JoinColumn54({ name: "wallet_id" })
|
|
5537
5519
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5538
5520
|
__decorateClass([
|
|
5539
5521
|
Column59({ name: "amount", type: "bigint", nullable: true })
|
|
@@ -5564,7 +5546,7 @@ __decorateClass([
|
|
|
5564
5546
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5565
5547
|
__decorateClass([
|
|
5566
5548
|
Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5567
|
-
|
|
5549
|
+
Index52()
|
|
5568
5550
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5569
5551
|
WalletTransaction = __decorateClass([
|
|
5570
5552
|
Entity58("wallet_transactions")
|
|
@@ -5586,11 +5568,11 @@ var Wallet = class extends BaseEntity {
|
|
|
5586
5568
|
};
|
|
5587
5569
|
__decorateClass([
|
|
5588
5570
|
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5589
|
-
|
|
5571
|
+
Index53()
|
|
5590
5572
|
], Wallet.prototype, "userId", 2);
|
|
5591
5573
|
__decorateClass([
|
|
5592
5574
|
OneToOne10(() => User, (user) => user.wallet),
|
|
5593
|
-
|
|
5575
|
+
JoinColumn55({ name: "user_id" })
|
|
5594
5576
|
], Wallet.prototype, "user", 2);
|
|
5595
5577
|
__decorateClass([
|
|
5596
5578
|
Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
@@ -5614,7 +5596,7 @@ __decorateClass([
|
|
|
5614
5596
|
Column60({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5615
5597
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5616
5598
|
__decorateClass([
|
|
5617
|
-
|
|
5599
|
+
OneToMany20(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5618
5600
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5619
5601
|
Wallet = __decorateClass([
|
|
5620
5602
|
Entity59("wallets")
|
|
@@ -5649,14 +5631,14 @@ __decorateClass([
|
|
|
5649
5631
|
], User.prototype, "uniqueId", 2);
|
|
5650
5632
|
__decorateClass([
|
|
5651
5633
|
Column61({ name: "parent_id", type: "integer", nullable: true }),
|
|
5652
|
-
|
|
5634
|
+
Index54()
|
|
5653
5635
|
], User.prototype, "parentId", 2);
|
|
5654
5636
|
__decorateClass([
|
|
5655
|
-
|
|
5656
|
-
|
|
5637
|
+
ManyToOne55(() => User, (user) => user.children, { nullable: true }),
|
|
5638
|
+
JoinColumn56({ name: "parent_id" })
|
|
5657
5639
|
], User.prototype, "parent", 2);
|
|
5658
5640
|
__decorateClass([
|
|
5659
|
-
|
|
5641
|
+
OneToMany21(() => User, (user) => user.parent)
|
|
5660
5642
|
], User.prototype, "children", 2);
|
|
5661
5643
|
__decorateClass([
|
|
5662
5644
|
Column61({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
@@ -5737,7 +5719,7 @@ __decorateClass([
|
|
|
5737
5719
|
Column61({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5738
5720
|
], User.prototype, "setPasswordToken", 2);
|
|
5739
5721
|
__decorateClass([
|
|
5740
|
-
|
|
5722
|
+
OneToMany21(() => RefreshToken, (token) => token.user)
|
|
5741
5723
|
], User.prototype, "refreshTokens", 2);
|
|
5742
5724
|
__decorateClass([
|
|
5743
5725
|
Column61({
|
|
@@ -5764,28 +5746,28 @@ __decorateClass([
|
|
|
5764
5746
|
Column61({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5765
5747
|
], User.prototype, "onBoardedBy", 2);
|
|
5766
5748
|
__decorateClass([
|
|
5767
|
-
|
|
5749
|
+
OneToMany21(() => Otp, (otp) => otp.user)
|
|
5768
5750
|
], User.prototype, "otps", 2);
|
|
5769
5751
|
__decorateClass([
|
|
5770
|
-
|
|
5752
|
+
OneToMany21(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5771
5753
|
], User.prototype, "senseloafLogs", 2);
|
|
5772
5754
|
__decorateClass([
|
|
5773
5755
|
OneToOne11(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5774
5756
|
], User.prototype, "companyProfile", 2);
|
|
5775
5757
|
__decorateClass([
|
|
5776
|
-
|
|
5758
|
+
OneToMany21(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5777
5759
|
], User.prototype, "companySkills", 2);
|
|
5778
5760
|
__decorateClass([
|
|
5779
|
-
|
|
5761
|
+
OneToMany21(
|
|
5780
5762
|
() => CompanyMemberRole,
|
|
5781
5763
|
(companyMemberRole) => companyMemberRole.user
|
|
5782
5764
|
)
|
|
5783
5765
|
], User.prototype, "companyMemberRoles", 2);
|
|
5784
5766
|
__decorateClass([
|
|
5785
|
-
|
|
5767
|
+
OneToMany21(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5786
5768
|
], User.prototype, "companyAiInterview", 2);
|
|
5787
5769
|
__decorateClass([
|
|
5788
|
-
|
|
5770
|
+
OneToMany21(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5789
5771
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5790
5772
|
__decorateClass([
|
|
5791
5773
|
OneToOne11(
|
|
@@ -5797,49 +5779,49 @@ __decorateClass([
|
|
|
5797
5779
|
OneToOne11(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5798
5780
|
], User.prototype, "freelancerResume", 2);
|
|
5799
5781
|
__decorateClass([
|
|
5800
|
-
|
|
5782
|
+
OneToMany21(
|
|
5801
5783
|
() => FreelancerAssessment,
|
|
5802
5784
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5803
5785
|
)
|
|
5804
5786
|
], User.prototype, "assessments", 2);
|
|
5805
5787
|
__decorateClass([
|
|
5806
|
-
|
|
5788
|
+
OneToMany21(
|
|
5807
5789
|
() => AssessmentAnswer,
|
|
5808
5790
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5809
5791
|
)
|
|
5810
5792
|
], User.prototype, "assessmentAnswers", 2);
|
|
5811
5793
|
__decorateClass([
|
|
5812
|
-
|
|
5794
|
+
OneToMany21(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5813
5795
|
], User.prototype, "freelancerSkills", 2);
|
|
5814
5796
|
__decorateClass([
|
|
5815
|
-
|
|
5797
|
+
OneToMany21(
|
|
5816
5798
|
() => FreelancerExperience,
|
|
5817
5799
|
(freelancerExperience) => freelancerExperience.user
|
|
5818
5800
|
)
|
|
5819
5801
|
], User.prototype, "freelancerExperience", 2);
|
|
5820
5802
|
__decorateClass([
|
|
5821
|
-
|
|
5803
|
+
OneToMany21(
|
|
5822
5804
|
() => FreelancerEducation,
|
|
5823
5805
|
(freelancerEducation) => freelancerEducation.user
|
|
5824
5806
|
)
|
|
5825
5807
|
], User.prototype, "freelancerEducation", 2);
|
|
5826
5808
|
__decorateClass([
|
|
5827
|
-
|
|
5809
|
+
OneToMany21(
|
|
5828
5810
|
() => FreelancerProject,
|
|
5829
5811
|
(freelancerProject) => freelancerProject.user
|
|
5830
5812
|
)
|
|
5831
5813
|
], User.prototype, "freelancerProject", 2);
|
|
5832
5814
|
__decorateClass([
|
|
5833
|
-
|
|
5815
|
+
OneToMany21(
|
|
5834
5816
|
() => FreelancerCaseStudy,
|
|
5835
5817
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5836
5818
|
)
|
|
5837
5819
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5838
5820
|
__decorateClass([
|
|
5839
|
-
|
|
5821
|
+
OneToMany21(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5840
5822
|
], User.prototype, "freelancerTool", 2);
|
|
5841
5823
|
__decorateClass([
|
|
5842
|
-
|
|
5824
|
+
OneToMany21(
|
|
5843
5825
|
() => FreelancerFramework,
|
|
5844
5826
|
(freelancerFramework) => freelancerFramework.user
|
|
5845
5827
|
)
|
|
@@ -5851,100 +5833,103 @@ __decorateClass([
|
|
|
5851
5833
|
)
|
|
5852
5834
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5853
5835
|
__decorateClass([
|
|
5854
|
-
|
|
5836
|
+
OneToMany21(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5837
|
+
], User.prototype, "freelancerMcq", 2);
|
|
5838
|
+
__decorateClass([
|
|
5839
|
+
OneToMany21(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5855
5840
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5856
5841
|
__decorateClass([
|
|
5857
|
-
|
|
5842
|
+
OneToMany21(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5858
5843
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5859
5844
|
__decorateClass([
|
|
5860
|
-
|
|
5845
|
+
OneToMany21(
|
|
5861
5846
|
() => F2fInterviewRescheduleRequest,
|
|
5862
5847
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5863
5848
|
)
|
|
5864
5849
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5865
5850
|
__decorateClass([
|
|
5866
|
-
|
|
5851
|
+
OneToMany21(() => Job, (job) => job.user)
|
|
5867
5852
|
], User.prototype, "jobs", 2);
|
|
5868
5853
|
__decorateClass([
|
|
5869
|
-
|
|
5854
|
+
OneToMany21(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5870
5855
|
], User.prototype, "jobApplications", 2);
|
|
5871
5856
|
__decorateClass([
|
|
5872
|
-
|
|
5857
|
+
OneToMany21(() => Interview, (interview) => interview.user)
|
|
5873
5858
|
], User.prototype, "interviews", 2);
|
|
5874
5859
|
__decorateClass([
|
|
5875
|
-
|
|
5860
|
+
OneToMany21(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5876
5861
|
], User.prototype, "bankDetail", 2);
|
|
5877
5862
|
__decorateClass([
|
|
5878
|
-
|
|
5863
|
+
OneToMany21(
|
|
5879
5864
|
() => SystemPreference,
|
|
5880
5865
|
(systemPreference) => systemPreference.user
|
|
5881
5866
|
)
|
|
5882
5867
|
], User.prototype, "systemPreference", 2);
|
|
5883
5868
|
__decorateClass([
|
|
5884
|
-
|
|
5869
|
+
OneToMany21(() => Rating, (rating) => rating.reviewer)
|
|
5885
5870
|
], User.prototype, "givenRatings", 2);
|
|
5886
5871
|
__decorateClass([
|
|
5887
|
-
|
|
5872
|
+
OneToMany21(() => Rating, (rating) => rating.reviewee)
|
|
5888
5873
|
], User.prototype, "receivedRatings", 2);
|
|
5889
5874
|
__decorateClass([
|
|
5890
|
-
|
|
5875
|
+
OneToMany21(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5891
5876
|
], User.prototype, "adminUserRoles", 2);
|
|
5892
5877
|
__decorateClass([
|
|
5893
|
-
|
|
5878
|
+
OneToMany21(() => Contract, (contract) => contract.client)
|
|
5894
5879
|
], User.prototype, "clientContracts", 2);
|
|
5895
5880
|
__decorateClass([
|
|
5896
|
-
|
|
5881
|
+
OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
5897
5882
|
], User.prototype, "clientEscrowWallets", 2);
|
|
5898
5883
|
__decorateClass([
|
|
5899
|
-
|
|
5884
|
+
OneToMany21(() => Contract, (contract) => contract.freelancer)
|
|
5900
5885
|
], User.prototype, "freelancerContracts", 2);
|
|
5901
5886
|
__decorateClass([
|
|
5902
|
-
|
|
5887
|
+
OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
5903
5888
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
5904
5889
|
__decorateClass([
|
|
5905
5890
|
OneToOne11(() => Signature, (signature) => signature.user)
|
|
5906
5891
|
], User.prototype, "signatures", 2);
|
|
5907
5892
|
__decorateClass([
|
|
5908
|
-
|
|
5893
|
+
OneToMany21(() => Timesheet, (timesheet) => timesheet.client)
|
|
5909
5894
|
], User.prototype, "clientTimesheets", 2);
|
|
5910
5895
|
__decorateClass([
|
|
5911
|
-
|
|
5896
|
+
OneToMany21(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5912
5897
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5913
5898
|
__decorateClass([
|
|
5914
|
-
|
|
5899
|
+
OneToMany21(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5915
5900
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5916
5901
|
__decorateClass([
|
|
5917
|
-
|
|
5902
|
+
OneToMany21(() => Invoice, (invoice) => invoice.client)
|
|
5918
5903
|
], User.prototype, "clientInvoice", 2);
|
|
5919
5904
|
__decorateClass([
|
|
5920
|
-
|
|
5905
|
+
OneToMany21(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5921
5906
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5922
5907
|
__decorateClass([
|
|
5923
|
-
|
|
5908
|
+
OneToMany21(() => Invoice, (invoice) => invoice.freelancer)
|
|
5924
5909
|
], User.prototype, "freelancerInvoice", 2);
|
|
5925
5910
|
__decorateClass([
|
|
5926
|
-
|
|
5911
|
+
OneToMany21(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5927
5912
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5928
5913
|
__decorateClass([
|
|
5929
|
-
|
|
5914
|
+
OneToMany21(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5930
5915
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5931
5916
|
__decorateClass([
|
|
5932
|
-
|
|
5917
|
+
OneToMany21(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5933
5918
|
], User.prototype, "initiatedDisputes", 2);
|
|
5934
5919
|
__decorateClass([
|
|
5935
|
-
|
|
5920
|
+
OneToMany21(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5936
5921
|
], User.prototype, "respondentDisputes", 2);
|
|
5937
5922
|
__decorateClass([
|
|
5938
5923
|
OneToOne11(() => Wallet, (wallet) => wallet.user)
|
|
5939
5924
|
], User.prototype, "wallet", 2);
|
|
5940
5925
|
__decorateClass([
|
|
5941
|
-
|
|
5926
|
+
OneToMany21(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5942
5927
|
], User.prototype, "stripeTransactions", 2);
|
|
5943
5928
|
__decorateClass([
|
|
5944
|
-
|
|
5929
|
+
OneToMany21(() => Dispute, (dispute) => dispute.client)
|
|
5945
5930
|
], User.prototype, "clientDisputes", 2);
|
|
5946
5931
|
__decorateClass([
|
|
5947
|
-
|
|
5932
|
+
OneToMany21(() => Dispute, (dispute) => dispute.freelancer)
|
|
5948
5933
|
], User.prototype, "freelancerDisputes", 2);
|
|
5949
5934
|
User = __decorateClass([
|
|
5950
5935
|
Entity60("users")
|
|
@@ -5960,19 +5945,19 @@ var Rating = class extends BaseEntity {
|
|
|
5960
5945
|
};
|
|
5961
5946
|
__decorateClass([
|
|
5962
5947
|
Column62({ name: "reviewer_id", type: "integer" }),
|
|
5963
|
-
|
|
5948
|
+
Index55()
|
|
5964
5949
|
], Rating.prototype, "reviewer_id", 2);
|
|
5965
5950
|
__decorateClass([
|
|
5966
|
-
|
|
5967
|
-
|
|
5951
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5952
|
+
JoinColumn57({ name: "reviewer_id" })
|
|
5968
5953
|
], Rating.prototype, "reviewer", 2);
|
|
5969
5954
|
__decorateClass([
|
|
5970
5955
|
Column62({ name: "reviewee_id", type: "integer" }),
|
|
5971
|
-
|
|
5956
|
+
Index55()
|
|
5972
5957
|
], Rating.prototype, "reviewee_id", 2);
|
|
5973
5958
|
__decorateClass([
|
|
5974
|
-
|
|
5975
|
-
|
|
5959
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5960
|
+
JoinColumn57({ name: "reviewee_id" })
|
|
5976
5961
|
], Rating.prototype, "reviewee", 2);
|
|
5977
5962
|
__decorateClass([
|
|
5978
5963
|
Column62({
|
|
@@ -8078,13 +8063,13 @@ Skill = __decorateClass([
|
|
|
8078
8063
|
import {
|
|
8079
8064
|
Entity as Entity65,
|
|
8080
8065
|
Column as Column66,
|
|
8081
|
-
Index as
|
|
8066
|
+
Index as Index56
|
|
8082
8067
|
} from "typeorm";
|
|
8083
8068
|
var SkillCatalog = class extends BaseEntity {
|
|
8084
8069
|
};
|
|
8085
8070
|
__decorateClass([
|
|
8086
8071
|
Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8087
|
-
|
|
8072
|
+
Index56()
|
|
8088
8073
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8089
8074
|
__decorateClass([
|
|
8090
8075
|
Column66({
|
|
@@ -8117,7 +8102,7 @@ __decorateClass([
|
|
|
8117
8102
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8118
8103
|
__decorateClass([
|
|
8119
8104
|
Column66({ name: "usage_count", type: "integer", default: 0 }),
|
|
8120
|
-
|
|
8105
|
+
Index56()
|
|
8121
8106
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8122
8107
|
__decorateClass([
|
|
8123
8108
|
Column66({ name: "is_verified", type: "boolean", default: false })
|
|
@@ -8534,13 +8519,13 @@ Commission = __decorateClass([
|
|
|
8534
8519
|
import {
|
|
8535
8520
|
Entity as Entity72,
|
|
8536
8521
|
Column as Column73,
|
|
8537
|
-
Index as
|
|
8522
|
+
Index as Index57
|
|
8538
8523
|
} from "typeorm";
|
|
8539
8524
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8540
8525
|
};
|
|
8541
8526
|
__decorateClass([
|
|
8542
8527
|
Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8543
|
-
|
|
8528
|
+
Index57()
|
|
8544
8529
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8545
8530
|
__decorateClass([
|
|
8546
8531
|
Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
@@ -8556,13 +8541,13 @@ CalendlyMeetingLog = __decorateClass([
|
|
|
8556
8541
|
import {
|
|
8557
8542
|
Entity as Entity73,
|
|
8558
8543
|
Column as Column74,
|
|
8559
|
-
Index as
|
|
8544
|
+
Index as Index58
|
|
8560
8545
|
} from "typeorm";
|
|
8561
8546
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8562
8547
|
};
|
|
8563
8548
|
__decorateClass([
|
|
8564
8549
|
Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8565
|
-
|
|
8550
|
+
Index58()
|
|
8566
8551
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8567
8552
|
__decorateClass([
|
|
8568
8553
|
Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
@@ -8598,7 +8583,7 @@ StripeLog = __decorateClass([
|
|
|
8598
8583
|
import {
|
|
8599
8584
|
Entity as Entity75,
|
|
8600
8585
|
Column as Column76,
|
|
8601
|
-
Index as
|
|
8586
|
+
Index as Index59
|
|
8602
8587
|
} from "typeorm";
|
|
8603
8588
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8604
8589
|
};
|
|
@@ -8609,7 +8594,7 @@ __decorateClass([
|
|
|
8609
8594
|
unique: true,
|
|
8610
8595
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8611
8596
|
}),
|
|
8612
|
-
|
|
8597
|
+
Index59()
|
|
8613
8598
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8614
8599
|
__decorateClass([
|
|
8615
8600
|
Column76({
|
|
@@ -8689,10 +8674,6 @@ export {
|
|
|
8689
8674
|
CompanyRolePermission,
|
|
8690
8675
|
CompanySkill,
|
|
8691
8676
|
Contract,
|
|
8692
|
-
ContractHistory,
|
|
8693
|
-
ContractHistoryActionEnum,
|
|
8694
|
-
ContractHistoryStatusEnum,
|
|
8695
|
-
ContractHistoryTypeEnum,
|
|
8696
8677
|
ContractRMQAdapter,
|
|
8697
8678
|
ContractStatusEnum,
|
|
8698
8679
|
ContractTCPAdapter,
|
|
@@ -8920,5 +8901,6 @@ export {
|
|
|
8920
8901
|
WalletTransaction,
|
|
8921
8902
|
WalletTransactionStatusEnum,
|
|
8922
8903
|
WalletTransactionTypeEnum,
|
|
8923
|
-
ZoomMeetingLog
|
|
8904
|
+
ZoomMeetingLog,
|
|
8905
|
+
typeOfExperienceEnum
|
|
8924
8906
|
};
|