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