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