@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.js
CHANGED
|
@@ -91,10 +91,6 @@ __export(index_exports, {
|
|
|
91
91
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
92
92
|
CompanySkill: () => CompanySkill,
|
|
93
93
|
Contract: () => Contract,
|
|
94
|
-
ContractHistory: () => ContractHistory,
|
|
95
|
-
ContractHistoryActionEnum: () => ContractHistoryActionEnum,
|
|
96
|
-
ContractHistoryStatusEnum: () => ContractHistoryStatusEnum,
|
|
97
|
-
ContractHistoryTypeEnum: () => ContractHistoryTypeEnum,
|
|
98
94
|
ContractRMQAdapter: () => ContractRMQAdapter,
|
|
99
95
|
ContractStatusEnum: () => ContractStatusEnum,
|
|
100
96
|
ContractTCPAdapter: () => ContractTCPAdapter,
|
|
@@ -322,7 +318,8 @@ __export(index_exports, {
|
|
|
322
318
|
WalletTransaction: () => WalletTransaction,
|
|
323
319
|
WalletTransactionStatusEnum: () => WalletTransactionStatusEnum,
|
|
324
320
|
WalletTransactionTypeEnum: () => WalletTransactionTypeEnum,
|
|
325
|
-
ZoomMeetingLog: () => ZoomMeetingLog
|
|
321
|
+
ZoomMeetingLog: () => ZoomMeetingLog,
|
|
322
|
+
typeOfExperienceEnum: () => typeOfExperienceEnum
|
|
326
323
|
});
|
|
327
324
|
module.exports = __toCommonJS(index_exports);
|
|
328
325
|
|
|
@@ -1711,10 +1708,10 @@ var RATING_PATTERN = {
|
|
|
1711
1708
|
var import_class_validator42 = require("class-validator");
|
|
1712
1709
|
|
|
1713
1710
|
// src/entities/rating.entity.ts
|
|
1714
|
-
var
|
|
1711
|
+
var import_typeorm61 = require("typeorm");
|
|
1715
1712
|
|
|
1716
1713
|
// src/entities/user.entity.ts
|
|
1717
|
-
var
|
|
1714
|
+
var import_typeorm60 = require("typeorm");
|
|
1718
1715
|
|
|
1719
1716
|
// src/entities/base.entity.ts
|
|
1720
1717
|
var import_typeorm = require("typeorm");
|
|
@@ -2488,7 +2485,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2488
2485
|
], FreelancerProfile);
|
|
2489
2486
|
|
|
2490
2487
|
// src/entities/job.entity.ts
|
|
2491
|
-
var
|
|
2488
|
+
var import_typeorm30 = require("typeorm");
|
|
2492
2489
|
|
|
2493
2490
|
// src/entities/job-skill.entity.ts
|
|
2494
2491
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3387,7 +3384,7 @@ JobRecommendation = __decorateClass([
|
|
|
3387
3384
|
], JobRecommendation);
|
|
3388
3385
|
|
|
3389
3386
|
// src/entities/contract.entity.ts
|
|
3390
|
-
var
|
|
3387
|
+
var import_typeorm28 = require("typeorm");
|
|
3391
3388
|
|
|
3392
3389
|
// src/entities/escrow-wallet.entity.ts
|
|
3393
3390
|
var import_typeorm27 = require("typeorm");
|
|
@@ -3820,95 +3817,6 @@ EscrowWallet = __decorateClass([
|
|
|
3820
3817
|
(0, import_typeorm27.Entity)("escrow_wallets")
|
|
3821
3818
|
], EscrowWallet);
|
|
3822
3819
|
|
|
3823
|
-
// src/entities/contract-history.entity.ts
|
|
3824
|
-
var import_typeorm28 = require("typeorm");
|
|
3825
|
-
var ContractHistoryStatusEnum = /* @__PURE__ */ ((ContractHistoryStatusEnum2) => {
|
|
3826
|
-
ContractHistoryStatusEnum2["GENERATED"] = "GENERATED";
|
|
3827
|
-
ContractHistoryStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3828
|
-
ContractHistoryStatusEnum2["SENT"] = "SENT";
|
|
3829
|
-
ContractHistoryStatusEnum2["SIGNED"] = "SIGNED";
|
|
3830
|
-
ContractHistoryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3831
|
-
ContractHistoryStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3832
|
-
ContractHistoryStatusEnum2["DISPUTED"] = "DISPUTED";
|
|
3833
|
-
ContractHistoryStatusEnum2["REJECTED"] = "REJECTED";
|
|
3834
|
-
ContractHistoryStatusEnum2["RENEWED"] = "RENEWED";
|
|
3835
|
-
ContractHistoryStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
3836
|
-
return ContractHistoryStatusEnum2;
|
|
3837
|
-
})(ContractHistoryStatusEnum || {});
|
|
3838
|
-
var ContractHistoryTypeEnum = /* @__PURE__ */ ((ContractHistoryTypeEnum2) => {
|
|
3839
|
-
ContractHistoryTypeEnum2["NDA"] = "NDA";
|
|
3840
|
-
ContractHistoryTypeEnum2["WORK"] = "WORK";
|
|
3841
|
-
return ContractHistoryTypeEnum2;
|
|
3842
|
-
})(ContractHistoryTypeEnum || {});
|
|
3843
|
-
var ContractHistoryActionEnum = /* @__PURE__ */ ((ContractHistoryActionEnum2) => {
|
|
3844
|
-
ContractHistoryActionEnum2["GENERATED"] = "GENERATED";
|
|
3845
|
-
ContractHistoryActionEnum2["DRAFTED"] = "DRAFTED";
|
|
3846
|
-
ContractHistoryActionEnum2["SENT"] = "SENT";
|
|
3847
|
-
ContractHistoryActionEnum2["SIGNED"] = "SIGNED";
|
|
3848
|
-
ContractHistoryActionEnum2["ACTIVE"] = "ACTIVE";
|
|
3849
|
-
ContractHistoryActionEnum2["CANCELLED"] = "CANCELLED";
|
|
3850
|
-
ContractHistoryActionEnum2["DISPUTED"] = "DISPUTED";
|
|
3851
|
-
ContractHistoryActionEnum2["REJECTED"] = "REJECTED";
|
|
3852
|
-
ContractHistoryActionEnum2["RENEWED"] = "RENEWED";
|
|
3853
|
-
ContractHistoryActionEnum2["EXPIRED"] = "EXPIRED";
|
|
3854
|
-
ContractHistoryActionEnum2["VIEWED"] = "VIEWED";
|
|
3855
|
-
return ContractHistoryActionEnum2;
|
|
3856
|
-
})(ContractHistoryActionEnum || {});
|
|
3857
|
-
var ContractHistory = class extends BaseEntity {
|
|
3858
|
-
};
|
|
3859
|
-
__decorateClass([
|
|
3860
|
-
(0, import_typeorm28.Column)({ name: "contract_id", type: "integer", nullable: false }),
|
|
3861
|
-
(0, import_typeorm28.Index)()
|
|
3862
|
-
], ContractHistory.prototype, "contractId", 2);
|
|
3863
|
-
__decorateClass([
|
|
3864
|
-
(0, import_typeorm28.ManyToOne)(() => Contract, (contract) => contract.history),
|
|
3865
|
-
(0, import_typeorm28.JoinColumn)({ name: "contract_id" })
|
|
3866
|
-
], ContractHistory.prototype, "contract", 2);
|
|
3867
|
-
__decorateClass([
|
|
3868
|
-
(0, import_typeorm28.Column)({ name: "action_by", type: "integer", nullable: true })
|
|
3869
|
-
], ContractHistory.prototype, "actionBy", 2);
|
|
3870
|
-
__decorateClass([
|
|
3871
|
-
(0, import_typeorm28.Column)({ name: "action_by_type", type: "varchar", nullable: true })
|
|
3872
|
-
], ContractHistory.prototype, "actionByType", 2);
|
|
3873
|
-
__decorateClass([
|
|
3874
|
-
(0, import_typeorm28.Column)({
|
|
3875
|
-
name: "previous_status",
|
|
3876
|
-
type: "enum",
|
|
3877
|
-
enum: ContractHistoryStatusEnum,
|
|
3878
|
-
nullable: true
|
|
3879
|
-
})
|
|
3880
|
-
], ContractHistory.prototype, "previousStatus", 2);
|
|
3881
|
-
__decorateClass([
|
|
3882
|
-
(0, import_typeorm28.Column)({
|
|
3883
|
-
name: "new_status",
|
|
3884
|
-
type: "enum",
|
|
3885
|
-
enum: ContractHistoryStatusEnum,
|
|
3886
|
-
nullable: false
|
|
3887
|
-
})
|
|
3888
|
-
], ContractHistory.prototype, "newStatus", 2);
|
|
3889
|
-
__decorateClass([
|
|
3890
|
-
(0, import_typeorm28.Column)({
|
|
3891
|
-
name: "type",
|
|
3892
|
-
type: "enum",
|
|
3893
|
-
enum: ContractHistoryTypeEnum,
|
|
3894
|
-
nullable: true
|
|
3895
|
-
})
|
|
3896
|
-
], ContractHistory.prototype, "type", 2);
|
|
3897
|
-
__decorateClass([
|
|
3898
|
-
(0, import_typeorm28.Column)({
|
|
3899
|
-
name: "action_type",
|
|
3900
|
-
type: "enum",
|
|
3901
|
-
enum: ContractHistoryActionEnum,
|
|
3902
|
-
nullable: false
|
|
3903
|
-
})
|
|
3904
|
-
], ContractHistory.prototype, "actionType", 2);
|
|
3905
|
-
__decorateClass([
|
|
3906
|
-
(0, import_typeorm28.Column)({ name: "remarks", type: "varchar", nullable: true })
|
|
3907
|
-
], ContractHistory.prototype, "remarks", 2);
|
|
3908
|
-
ContractHistory = __decorateClass([
|
|
3909
|
-
(0, import_typeorm28.Entity)("contract_histories")
|
|
3910
|
-
], ContractHistory);
|
|
3911
|
-
|
|
3912
3820
|
// src/entities/contract.entity.ts
|
|
3913
3821
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3914
3822
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3931,41 +3839,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3931
3839
|
var Contract = class extends BaseEntity {
|
|
3932
3840
|
};
|
|
3933
3841
|
__decorateClass([
|
|
3934
|
-
(0,
|
|
3842
|
+
(0, import_typeorm28.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3935
3843
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3936
3844
|
__decorateClass([
|
|
3937
|
-
(0,
|
|
3938
|
-
(0,
|
|
3845
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3846
|
+
(0, import_typeorm28.Index)()
|
|
3939
3847
|
], Contract.prototype, "jobId", 2);
|
|
3940
3848
|
__decorateClass([
|
|
3941
|
-
(0,
|
|
3942
|
-
(0,
|
|
3849
|
+
(0, import_typeorm28.ManyToOne)(() => Job, (job) => job.contracts),
|
|
3850
|
+
(0, import_typeorm28.JoinColumn)({ name: "job_id" })
|
|
3943
3851
|
], Contract.prototype, "job", 2);
|
|
3944
3852
|
__decorateClass([
|
|
3945
|
-
(0,
|
|
3946
|
-
(0,
|
|
3853
|
+
(0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3854
|
+
(0, import_typeorm28.Index)()
|
|
3947
3855
|
], Contract.prototype, "clientId", 2);
|
|
3948
3856
|
__decorateClass([
|
|
3949
|
-
(0,
|
|
3950
|
-
(0,
|
|
3857
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
3858
|
+
(0, import_typeorm28.JoinColumn)({ name: "client_id" })
|
|
3951
3859
|
], Contract.prototype, "client", 2);
|
|
3952
3860
|
__decorateClass([
|
|
3953
|
-
(0,
|
|
3954
|
-
(0,
|
|
3861
|
+
(0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3862
|
+
(0, import_typeorm28.Index)()
|
|
3955
3863
|
], Contract.prototype, "freelancerId", 2);
|
|
3956
3864
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
3958
|
-
(0,
|
|
3865
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
3866
|
+
(0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
|
|
3959
3867
|
], Contract.prototype, "freelancer", 2);
|
|
3960
3868
|
__decorateClass([
|
|
3961
|
-
(0,
|
|
3962
|
-
(0, import_typeorm29.JoinColumn)({ name: "contract_id" })
|
|
3963
|
-
], Contract.prototype, "history", 2);
|
|
3964
|
-
__decorateClass([
|
|
3965
|
-
(0, import_typeorm29.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3869
|
+
(0, import_typeorm28.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3966
3870
|
], Contract.prototype, "duration", 2);
|
|
3967
3871
|
__decorateClass([
|
|
3968
|
-
(0,
|
|
3872
|
+
(0, import_typeorm28.Column)({
|
|
3969
3873
|
name: "status",
|
|
3970
3874
|
type: "enum",
|
|
3971
3875
|
enum: ContractStatusEnum,
|
|
@@ -3973,7 +3877,7 @@ __decorateClass([
|
|
|
3973
3877
|
})
|
|
3974
3878
|
], Contract.prototype, "status", 2);
|
|
3975
3879
|
__decorateClass([
|
|
3976
|
-
(0,
|
|
3880
|
+
(0, import_typeorm28.Column)({
|
|
3977
3881
|
name: "type",
|
|
3978
3882
|
type: "enum",
|
|
3979
3883
|
enum: ContractTypeEnum,
|
|
@@ -3981,10 +3885,10 @@ __decorateClass([
|
|
|
3981
3885
|
})
|
|
3982
3886
|
], Contract.prototype, "type", 2);
|
|
3983
3887
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3888
|
+
(0, import_typeorm28.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3985
3889
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3986
3890
|
__decorateClass([
|
|
3987
|
-
(0,
|
|
3891
|
+
(0, import_typeorm28.Column)({
|
|
3988
3892
|
name: "escrow_deposite_amount",
|
|
3989
3893
|
type: "decimal",
|
|
3990
3894
|
precision: 10,
|
|
@@ -3993,80 +3897,80 @@ __decorateClass([
|
|
|
3993
3897
|
})
|
|
3994
3898
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3995
3899
|
__decorateClass([
|
|
3996
|
-
(0,
|
|
3900
|
+
(0, import_typeorm28.Column)({
|
|
3997
3901
|
name: "start_date",
|
|
3998
3902
|
type: "timestamp with time zone",
|
|
3999
3903
|
nullable: true
|
|
4000
3904
|
})
|
|
4001
3905
|
], Contract.prototype, "startDate", 2);
|
|
4002
3906
|
__decorateClass([
|
|
4003
|
-
(0,
|
|
3907
|
+
(0, import_typeorm28.Column)({
|
|
4004
3908
|
name: "end_date",
|
|
4005
3909
|
type: "timestamp with time zone",
|
|
4006
3910
|
nullable: true
|
|
4007
3911
|
})
|
|
4008
3912
|
], Contract.prototype, "endDate", 2);
|
|
4009
3913
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
3914
|
+
(0, import_typeorm28.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4011
3915
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4012
3916
|
__decorateClass([
|
|
4013
|
-
(0,
|
|
3917
|
+
(0, import_typeorm28.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4014
3918
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4015
3919
|
__decorateClass([
|
|
4016
|
-
(0,
|
|
3920
|
+
(0, import_typeorm28.Column)({
|
|
4017
3921
|
name: "client_signed_at",
|
|
4018
3922
|
type: "timestamp with time zone",
|
|
4019
3923
|
nullable: true
|
|
4020
3924
|
})
|
|
4021
3925
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4022
3926
|
__decorateClass([
|
|
4023
|
-
(0,
|
|
3927
|
+
(0, import_typeorm28.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4024
3928
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4025
3929
|
__decorateClass([
|
|
4026
|
-
(0,
|
|
3930
|
+
(0, import_typeorm28.Column)({
|
|
4027
3931
|
name: "freelancer_viewed_at",
|
|
4028
3932
|
type: "timestamp with time zone",
|
|
4029
3933
|
nullable: true
|
|
4030
3934
|
})
|
|
4031
3935
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4032
3936
|
__decorateClass([
|
|
4033
|
-
(0,
|
|
3937
|
+
(0, import_typeorm28.Column)({
|
|
4034
3938
|
name: "freelancer_signed_at",
|
|
4035
3939
|
type: "timestamp with time zone",
|
|
4036
3940
|
nullable: true
|
|
4037
3941
|
})
|
|
4038
3942
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4039
3943
|
__decorateClass([
|
|
4040
|
-
(0,
|
|
3944
|
+
(0, import_typeorm28.Column)({
|
|
4041
3945
|
name: "rejectd_at",
|
|
4042
3946
|
type: "timestamp with time zone",
|
|
4043
3947
|
nullable: true
|
|
4044
3948
|
})
|
|
4045
3949
|
], Contract.prototype, "rejectedAt", 2);
|
|
4046
3950
|
__decorateClass([
|
|
4047
|
-
(0,
|
|
3951
|
+
(0, import_typeorm28.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4048
3952
|
], Contract.prototype, "rejectReason", 2);
|
|
4049
3953
|
__decorateClass([
|
|
4050
|
-
(0,
|
|
3954
|
+
(0, import_typeorm28.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4051
3955
|
], Contract.prototype, "resendCount", 2);
|
|
4052
3956
|
__decorateClass([
|
|
4053
|
-
(0,
|
|
3957
|
+
(0, import_typeorm28.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4054
3958
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4055
3959
|
__decorateClass([
|
|
4056
|
-
(0,
|
|
3960
|
+
(0, import_typeorm28.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4057
3961
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4058
3962
|
__decorateClass([
|
|
4059
|
-
(0,
|
|
3963
|
+
(0, import_typeorm28.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4060
3964
|
], Contract.prototype, "signaturePositions", 2);
|
|
4061
3965
|
__decorateClass([
|
|
4062
|
-
(0,
|
|
3966
|
+
(0, import_typeorm28.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4063
3967
|
], Contract.prototype, "escrowWallet", 2);
|
|
4064
3968
|
Contract = __decorateClass([
|
|
4065
|
-
(0,
|
|
3969
|
+
(0, import_typeorm28.Entity)("contracts")
|
|
4066
3970
|
], Contract);
|
|
4067
3971
|
|
|
4068
3972
|
// src/entities/timesheets.entity.ts
|
|
4069
|
-
var
|
|
3973
|
+
var import_typeorm29 = require("typeorm");
|
|
4070
3974
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4071
3975
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4072
3976
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4079,87 +3983,87 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4079
3983
|
var Timesheet = class extends BaseEntity {
|
|
4080
3984
|
};
|
|
4081
3985
|
__decorateClass([
|
|
4082
|
-
(0,
|
|
4083
|
-
(0,
|
|
3986
|
+
(0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3987
|
+
(0, import_typeorm29.Index)()
|
|
4084
3988
|
], Timesheet.prototype, "jobId", 2);
|
|
4085
3989
|
__decorateClass([
|
|
4086
|
-
(0,
|
|
4087
|
-
(0,
|
|
3990
|
+
(0, import_typeorm29.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
3991
|
+
(0, import_typeorm29.JoinColumn)({ name: "job_id" })
|
|
4088
3992
|
], Timesheet.prototype, "job", 2);
|
|
4089
3993
|
__decorateClass([
|
|
4090
|
-
(0,
|
|
4091
|
-
(0,
|
|
3994
|
+
(0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3995
|
+
(0, import_typeorm29.Index)()
|
|
4092
3996
|
], Timesheet.prototype, "clientId", 2);
|
|
4093
3997
|
__decorateClass([
|
|
4094
|
-
(0,
|
|
4095
|
-
(0,
|
|
3998
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
3999
|
+
(0, import_typeorm29.JoinColumn)({ name: "client_id" })
|
|
4096
4000
|
], Timesheet.prototype, "client", 2);
|
|
4097
4001
|
__decorateClass([
|
|
4098
|
-
(0,
|
|
4099
|
-
(0,
|
|
4002
|
+
(0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4003
|
+
(0, import_typeorm29.Index)()
|
|
4100
4004
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4101
4005
|
__decorateClass([
|
|
4102
|
-
(0,
|
|
4103
|
-
(0,
|
|
4006
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4007
|
+
(0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
|
|
4104
4008
|
], Timesheet.prototype, "freelancer", 2);
|
|
4105
4009
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4010
|
+
(0, import_typeorm29.Column)({
|
|
4107
4011
|
name: "start_date",
|
|
4108
4012
|
type: "date",
|
|
4109
4013
|
nullable: true
|
|
4110
4014
|
})
|
|
4111
4015
|
], Timesheet.prototype, "startDate", 2);
|
|
4112
4016
|
__decorateClass([
|
|
4113
|
-
(0,
|
|
4017
|
+
(0, import_typeorm29.Column)({
|
|
4114
4018
|
name: "end_date",
|
|
4115
4019
|
type: "date",
|
|
4116
4020
|
nullable: true
|
|
4117
4021
|
})
|
|
4118
4022
|
], Timesheet.prototype, "endDate", 2);
|
|
4119
4023
|
__decorateClass([
|
|
4120
|
-
(0,
|
|
4024
|
+
(0, import_typeorm29.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4121
4025
|
], Timesheet.prototype, "startTime", 2);
|
|
4122
4026
|
__decorateClass([
|
|
4123
|
-
(0,
|
|
4027
|
+
(0, import_typeorm29.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4124
4028
|
], Timesheet.prototype, "endTime", 2);
|
|
4125
4029
|
__decorateClass([
|
|
4126
|
-
(0,
|
|
4030
|
+
(0, import_typeorm29.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4127
4031
|
], Timesheet.prototype, "workedHours", 2);
|
|
4128
4032
|
__decorateClass([
|
|
4129
|
-
(0,
|
|
4033
|
+
(0, import_typeorm29.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4130
4034
|
], Timesheet.prototype, "taskId", 2);
|
|
4131
4035
|
__decorateClass([
|
|
4132
|
-
(0,
|
|
4036
|
+
(0, import_typeorm29.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4133
4037
|
], Timesheet.prototype, "taskName", 2);
|
|
4134
4038
|
__decorateClass([
|
|
4135
|
-
(0,
|
|
4039
|
+
(0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4136
4040
|
], Timesheet.prototype, "description", 2);
|
|
4137
4041
|
__decorateClass([
|
|
4138
|
-
(0,
|
|
4042
|
+
(0, import_typeorm29.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4139
4043
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4140
4044
|
__decorateClass([
|
|
4141
|
-
(0,
|
|
4045
|
+
(0, import_typeorm29.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4142
4046
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4143
4047
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4048
|
+
(0, import_typeorm29.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4145
4049
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4146
4050
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4051
|
+
(0, import_typeorm29.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4148
4052
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4149
4053
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4054
|
+
(0, import_typeorm29.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4151
4055
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4152
4056
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4057
|
+
(0, import_typeorm29.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4154
4058
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4155
4059
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4060
|
+
(0, import_typeorm29.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4157
4061
|
], Timesheet.prototype, "status", 2);
|
|
4158
4062
|
__decorateClass([
|
|
4159
|
-
(0,
|
|
4063
|
+
(0, import_typeorm29.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4160
4064
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4161
4065
|
Timesheet = __decorateClass([
|
|
4162
|
-
(0,
|
|
4066
|
+
(0, import_typeorm29.Entity)("timesheets")
|
|
4163
4067
|
], Timesheet);
|
|
4164
4068
|
|
|
4165
4069
|
// src/entities/job.entity.ts
|
|
@@ -4170,6 +4074,11 @@ var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
|
4170
4074
|
JobLocationEnum2["BOTH"] = "BOTH";
|
|
4171
4075
|
return JobLocationEnum2;
|
|
4172
4076
|
})(JobLocationEnum || {});
|
|
4077
|
+
var typeOfExperienceEnum = /* @__PURE__ */ ((typeOfExperienceEnum2) => {
|
|
4078
|
+
typeOfExperienceEnum2["SINGLE"] = "SINGLE";
|
|
4079
|
+
typeOfExperienceEnum2["RANGE"] = "RANGE";
|
|
4080
|
+
return typeOfExperienceEnum2;
|
|
4081
|
+
})(typeOfExperienceEnum || {});
|
|
4173
4082
|
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
4174
4083
|
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
4175
4084
|
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
@@ -4201,57 +4110,61 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4201
4110
|
return DurationTypeEnum2;
|
|
4202
4111
|
})(DurationTypeEnum || {});
|
|
4203
4112
|
var Job = class extends BaseEntity {
|
|
4113
|
+
// @OneToMany(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4114
|
+
// cascade: true,
|
|
4115
|
+
// })
|
|
4116
|
+
// jobLocations: JobLocation[];
|
|
4204
4117
|
};
|
|
4205
4118
|
__decorateClass([
|
|
4206
|
-
(0,
|
|
4119
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4207
4120
|
], Job.prototype, "jobId", 2);
|
|
4208
4121
|
// individual index to find jobs by user
|
|
4209
4122
|
__decorateClass([
|
|
4210
|
-
(0,
|
|
4211
|
-
(0,
|
|
4123
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4124
|
+
(0, import_typeorm30.Index)()
|
|
4212
4125
|
], Job.prototype, "userId", 2);
|
|
4213
4126
|
__decorateClass([
|
|
4214
|
-
(0,
|
|
4215
|
-
(0,
|
|
4127
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.jobs),
|
|
4128
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
4216
4129
|
], Job.prototype, "user", 2);
|
|
4217
4130
|
__decorateClass([
|
|
4218
|
-
(0,
|
|
4131
|
+
(0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4219
4132
|
], Job.prototype, "countryId", 2);
|
|
4220
4133
|
__decorateClass([
|
|
4221
|
-
(0,
|
|
4222
|
-
(0,
|
|
4134
|
+
(0, import_typeorm30.ManyToOne)(() => Country),
|
|
4135
|
+
(0, import_typeorm30.JoinColumn)({ name: "country_id" })
|
|
4223
4136
|
], Job.prototype, "country", 2);
|
|
4224
4137
|
__decorateClass([
|
|
4225
|
-
(0,
|
|
4138
|
+
(0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4226
4139
|
], Job.prototype, "stateId", 2);
|
|
4227
4140
|
__decorateClass([
|
|
4228
|
-
(0,
|
|
4229
|
-
(0,
|
|
4141
|
+
(0, import_typeorm30.ManyToOne)(() => State),
|
|
4142
|
+
(0, import_typeorm30.JoinColumn)({ name: "state_id" })
|
|
4230
4143
|
], Job.prototype, "state", 2);
|
|
4231
4144
|
__decorateClass([
|
|
4232
|
-
(0,
|
|
4145
|
+
(0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4233
4146
|
], Job.prototype, "cityId", 2);
|
|
4234
4147
|
__decorateClass([
|
|
4235
|
-
(0,
|
|
4236
|
-
(0,
|
|
4148
|
+
(0, import_typeorm30.ManyToOne)(() => City),
|
|
4149
|
+
(0, import_typeorm30.JoinColumn)({ name: "city_id" })
|
|
4237
4150
|
], Job.prototype, "city", 2);
|
|
4238
4151
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4152
|
+
(0, import_typeorm30.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4240
4153
|
], Job.prototype, "jobRole", 2);
|
|
4241
4154
|
__decorateClass([
|
|
4242
|
-
(0,
|
|
4155
|
+
(0, import_typeorm30.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4243
4156
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4244
4157
|
__decorateClass([
|
|
4245
|
-
(0,
|
|
4158
|
+
(0, import_typeorm30.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4246
4159
|
], Job.prototype, "projectName", 2);
|
|
4247
4160
|
__decorateClass([
|
|
4248
|
-
(0,
|
|
4161
|
+
(0, import_typeorm30.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4249
4162
|
], Job.prototype, "note", 2);
|
|
4250
4163
|
__decorateClass([
|
|
4251
|
-
(0,
|
|
4164
|
+
(0, import_typeorm30.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4252
4165
|
], Job.prototype, "openings", 2);
|
|
4253
4166
|
__decorateClass([
|
|
4254
|
-
(0,
|
|
4167
|
+
(0, import_typeorm30.Column)({
|
|
4255
4168
|
name: "location",
|
|
4256
4169
|
type: "enum",
|
|
4257
4170
|
enum: JobLocationEnum,
|
|
@@ -4259,7 +4172,7 @@ __decorateClass([
|
|
|
4259
4172
|
})
|
|
4260
4173
|
], Job.prototype, "location", 2);
|
|
4261
4174
|
__decorateClass([
|
|
4262
|
-
(0,
|
|
4175
|
+
(0, import_typeorm30.Column)({
|
|
4263
4176
|
name: "type_of_employment",
|
|
4264
4177
|
type: "enum",
|
|
4265
4178
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4267,19 +4180,33 @@ __decorateClass([
|
|
|
4267
4180
|
})
|
|
4268
4181
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4269
4182
|
__decorateClass([
|
|
4270
|
-
(0,
|
|
4183
|
+
(0, import_typeorm30.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4271
4184
|
], Job.prototype, "academicQualification", 2);
|
|
4272
4185
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4186
|
+
(0, import_typeorm30.Column)({
|
|
4187
|
+
name: "type_of_experience",
|
|
4188
|
+
type: "enum",
|
|
4189
|
+
enum: typeOfExperienceEnum,
|
|
4190
|
+
nullable: true
|
|
4191
|
+
})
|
|
4192
|
+
], Job.prototype, "typeOfExperience", 2);
|
|
4193
|
+
__decorateClass([
|
|
4194
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4274
4195
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4275
4196
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4197
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4198
|
+
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4199
|
+
__decorateClass([
|
|
4200
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4201
|
+
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4202
|
+
__decorateClass([
|
|
4203
|
+
(0, import_typeorm30.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4277
4204
|
], Job.prototype, "businessIndustry", 2);
|
|
4278
4205
|
__decorateClass([
|
|
4279
|
-
(0,
|
|
4206
|
+
(0, import_typeorm30.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4280
4207
|
], Job.prototype, "currency", 2);
|
|
4281
4208
|
__decorateClass([
|
|
4282
|
-
(0,
|
|
4209
|
+
(0, import_typeorm30.Column)({
|
|
4283
4210
|
name: "expected_salary_from",
|
|
4284
4211
|
type: "decimal",
|
|
4285
4212
|
precision: 10,
|
|
@@ -4288,14 +4215,14 @@ __decorateClass([
|
|
|
4288
4215
|
})
|
|
4289
4216
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4290
4217
|
__decorateClass([
|
|
4291
|
-
(0,
|
|
4218
|
+
(0, import_typeorm30.Column)({
|
|
4292
4219
|
name: "hide_expected_salary_from",
|
|
4293
4220
|
type: "boolean",
|
|
4294
4221
|
default: false
|
|
4295
4222
|
})
|
|
4296
4223
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4297
4224
|
__decorateClass([
|
|
4298
|
-
(0,
|
|
4225
|
+
(0, import_typeorm30.Column)({
|
|
4299
4226
|
name: "expected_salary_to",
|
|
4300
4227
|
type: "decimal",
|
|
4301
4228
|
precision: 10,
|
|
@@ -4304,32 +4231,32 @@ __decorateClass([
|
|
|
4304
4231
|
})
|
|
4305
4232
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4306
4233
|
__decorateClass([
|
|
4307
|
-
(0,
|
|
4234
|
+
(0, import_typeorm30.Column)({
|
|
4308
4235
|
name: "hide_expected_salary_to",
|
|
4309
4236
|
type: "boolean",
|
|
4310
4237
|
default: false
|
|
4311
4238
|
})
|
|
4312
4239
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4313
4240
|
__decorateClass([
|
|
4314
|
-
(0,
|
|
4241
|
+
(0, import_typeorm30.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4315
4242
|
], Job.prototype, "years", 2);
|
|
4316
4243
|
__decorateClass([
|
|
4317
|
-
(0,
|
|
4244
|
+
(0, import_typeorm30.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4318
4245
|
], Job.prototype, "months", 2);
|
|
4319
4246
|
__decorateClass([
|
|
4320
|
-
(0,
|
|
4247
|
+
(0, import_typeorm30.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4321
4248
|
], Job.prototype, "weeks", 2);
|
|
4322
4249
|
__decorateClass([
|
|
4323
|
-
(0,
|
|
4250
|
+
(0, import_typeorm30.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4324
4251
|
], Job.prototype, "days", 2);
|
|
4325
4252
|
__decorateClass([
|
|
4326
|
-
(0,
|
|
4253
|
+
(0, import_typeorm30.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4327
4254
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4328
4255
|
__decorateClass([
|
|
4329
|
-
(0,
|
|
4256
|
+
(0, import_typeorm30.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4330
4257
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4331
4258
|
__decorateClass([
|
|
4332
|
-
(0,
|
|
4259
|
+
(0, import_typeorm30.Column)({
|
|
4333
4260
|
name: "duration_type",
|
|
4334
4261
|
type: "enum",
|
|
4335
4262
|
enum: DurationTypeEnum,
|
|
@@ -4337,10 +4264,10 @@ __decorateClass([
|
|
|
4337
4264
|
})
|
|
4338
4265
|
], Job.prototype, "durationType", 2);
|
|
4339
4266
|
__decorateClass([
|
|
4340
|
-
(0,
|
|
4267
|
+
(0, import_typeorm30.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4341
4268
|
], Job.prototype, "duration", 2);
|
|
4342
4269
|
__decorateClass([
|
|
4343
|
-
(0,
|
|
4270
|
+
(0, import_typeorm30.Column)({
|
|
4344
4271
|
name: "number_of_hours",
|
|
4345
4272
|
type: "decimal",
|
|
4346
4273
|
precision: 4,
|
|
@@ -4349,13 +4276,13 @@ __decorateClass([
|
|
|
4349
4276
|
})
|
|
4350
4277
|
], Job.prototype, "numberOfHours", 2);
|
|
4351
4278
|
__decorateClass([
|
|
4352
|
-
(0,
|
|
4279
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4353
4280
|
], Job.prototype, "description", 2);
|
|
4354
4281
|
__decorateClass([
|
|
4355
|
-
(0,
|
|
4282
|
+
(0, import_typeorm30.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4356
4283
|
], Job.prototype, "additionalComment", 2);
|
|
4357
4284
|
__decorateClass([
|
|
4358
|
-
(0,
|
|
4285
|
+
(0, import_typeorm30.Column)({
|
|
4359
4286
|
name: "onboarding_tat",
|
|
4360
4287
|
type: "varchar",
|
|
4361
4288
|
length: 50,
|
|
@@ -4363,14 +4290,14 @@ __decorateClass([
|
|
|
4363
4290
|
})
|
|
4364
4291
|
], Job.prototype, "onboardingTat", 2);
|
|
4365
4292
|
__decorateClass([
|
|
4366
|
-
(0,
|
|
4293
|
+
(0, import_typeorm30.Column)({
|
|
4367
4294
|
name: "candidate_communication_skills",
|
|
4368
4295
|
type: "varchar",
|
|
4369
4296
|
nullable: true
|
|
4370
4297
|
})
|
|
4371
4298
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4372
4299
|
__decorateClass([
|
|
4373
|
-
(0,
|
|
4300
|
+
(0, import_typeorm30.Column)({
|
|
4374
4301
|
name: "step_completed",
|
|
4375
4302
|
type: "enum",
|
|
4376
4303
|
enum: Step,
|
|
@@ -4378,7 +4305,7 @@ __decorateClass([
|
|
|
4378
4305
|
})
|
|
4379
4306
|
], Job.prototype, "stepCompleted", 2);
|
|
4380
4307
|
__decorateClass([
|
|
4381
|
-
(0,
|
|
4308
|
+
(0, import_typeorm30.Column)({
|
|
4382
4309
|
name: "status",
|
|
4383
4310
|
type: "enum",
|
|
4384
4311
|
enum: JobStatusEnum,
|
|
@@ -4386,40 +4313,40 @@ __decorateClass([
|
|
|
4386
4313
|
})
|
|
4387
4314
|
], Job.prototype, "status", 2);
|
|
4388
4315
|
__decorateClass([
|
|
4389
|
-
(0,
|
|
4316
|
+
(0, import_typeorm30.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4390
4317
|
], Job.prototype, "viewedCount", 2);
|
|
4391
4318
|
__decorateClass([
|
|
4392
|
-
(0,
|
|
4319
|
+
(0, import_typeorm30.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4393
4320
|
], Job.prototype, "applicationCount", 2);
|
|
4394
4321
|
__decorateClass([
|
|
4395
|
-
(0,
|
|
4322
|
+
(0, import_typeorm30.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4396
4323
|
], Job.prototype, "isContractSigned", 2);
|
|
4397
4324
|
__decorateClass([
|
|
4398
|
-
(0,
|
|
4325
|
+
(0, import_typeorm30.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4399
4326
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4400
4327
|
__decorateClass([
|
|
4401
|
-
(0,
|
|
4328
|
+
(0, import_typeorm30.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4402
4329
|
], Job.prototype, "interviewInvites", 2);
|
|
4403
4330
|
__decorateClass([
|
|
4404
|
-
(0,
|
|
4331
|
+
(0, import_typeorm30.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4405
4332
|
], Job.prototype, "jobSkills", 2);
|
|
4406
4333
|
__decorateClass([
|
|
4407
|
-
(0,
|
|
4334
|
+
(0, import_typeorm30.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4408
4335
|
cascade: true
|
|
4409
4336
|
})
|
|
4410
4337
|
], Job.prototype, "jobApplications", 2);
|
|
4411
4338
|
__decorateClass([
|
|
4412
|
-
(0,
|
|
4339
|
+
(0, import_typeorm30.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4413
4340
|
cascade: true
|
|
4414
4341
|
})
|
|
4415
4342
|
], Job.prototype, "interviews", 2);
|
|
4416
4343
|
__decorateClass([
|
|
4417
|
-
(0,
|
|
4344
|
+
(0, import_typeorm30.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4418
4345
|
cascade: true
|
|
4419
4346
|
})
|
|
4420
4347
|
], Job.prototype, "f2fInterviews", 2);
|
|
4421
4348
|
__decorateClass([
|
|
4422
|
-
(0,
|
|
4349
|
+
(0, import_typeorm30.OneToMany)(
|
|
4423
4350
|
() => JobRecommendation,
|
|
4424
4351
|
(jobRecommendation) => jobRecommendation.job,
|
|
4425
4352
|
{
|
|
@@ -4428,39 +4355,39 @@ __decorateClass([
|
|
|
4428
4355
|
)
|
|
4429
4356
|
], Job.prototype, "recommendations", 2);
|
|
4430
4357
|
__decorateClass([
|
|
4431
|
-
(0,
|
|
4358
|
+
(0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4432
4359
|
cascade: true
|
|
4433
4360
|
})
|
|
4434
4361
|
], Job.prototype, "contracts", 2);
|
|
4435
4362
|
__decorateClass([
|
|
4436
|
-
(0,
|
|
4363
|
+
(0, import_typeorm30.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4437
4364
|
cascade: true
|
|
4438
4365
|
})
|
|
4439
4366
|
], Job.prototype, "escrowWallets", 2);
|
|
4440
4367
|
__decorateClass([
|
|
4441
|
-
(0,
|
|
4368
|
+
(0, import_typeorm30.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4442
4369
|
cascade: true
|
|
4443
4370
|
})
|
|
4444
4371
|
], Job.prototype, "timesheets", 2);
|
|
4445
4372
|
__decorateClass([
|
|
4446
|
-
(0,
|
|
4373
|
+
(0, import_typeorm30.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4447
4374
|
cascade: true
|
|
4448
4375
|
})
|
|
4449
4376
|
], Job.prototype, "timesheetLine", 2);
|
|
4450
4377
|
__decorateClass([
|
|
4451
|
-
(0,
|
|
4378
|
+
(0, import_typeorm30.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4452
4379
|
cascade: true
|
|
4453
4380
|
})
|
|
4454
4381
|
], Job.prototype, "invoice", 2);
|
|
4455
4382
|
__decorateClass([
|
|
4456
|
-
(0,
|
|
4383
|
+
(0, import_typeorm30.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4457
4384
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4458
4385
|
Job = __decorateClass([
|
|
4459
|
-
(0,
|
|
4386
|
+
(0, import_typeorm30.Entity)("jobs")
|
|
4460
4387
|
], Job);
|
|
4461
4388
|
|
|
4462
4389
|
// src/entities/bank-details.entity.ts
|
|
4463
|
-
var
|
|
4390
|
+
var import_typeorm31 = require("typeorm");
|
|
4464
4391
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4465
4392
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4466
4393
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4475,51 +4402,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4475
4402
|
};
|
|
4476
4403
|
// individual index to find bank details by user
|
|
4477
4404
|
__decorateClass([
|
|
4478
|
-
(0,
|
|
4479
|
-
(0,
|
|
4405
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4406
|
+
(0, import_typeorm31.Index)()
|
|
4480
4407
|
], BankDetail.prototype, "userId", 2);
|
|
4481
4408
|
__decorateClass([
|
|
4482
|
-
(0,
|
|
4483
|
-
(0,
|
|
4409
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4410
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
4484
4411
|
], BankDetail.prototype, "user", 2);
|
|
4485
4412
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4413
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4487
4414
|
], BankDetail.prototype, "name", 2);
|
|
4488
4415
|
__decorateClass([
|
|
4489
|
-
(0,
|
|
4416
|
+
(0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4490
4417
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4491
4418
|
__decorateClass([
|
|
4492
|
-
(0,
|
|
4419
|
+
(0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4493
4420
|
], BankDetail.prototype, "mobile", 2);
|
|
4494
4421
|
__decorateClass([
|
|
4495
|
-
(0,
|
|
4422
|
+
(0, import_typeorm31.Column)({ name: "email", type: "varchar" })
|
|
4496
4423
|
], BankDetail.prototype, "email", 2);
|
|
4497
4424
|
__decorateClass([
|
|
4498
|
-
(0,
|
|
4425
|
+
(0, import_typeorm31.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4499
4426
|
], BankDetail.prototype, "address", 2);
|
|
4500
4427
|
__decorateClass([
|
|
4501
|
-
(0,
|
|
4428
|
+
(0, import_typeorm31.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4502
4429
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4503
4430
|
__decorateClass([
|
|
4504
|
-
(0,
|
|
4431
|
+
(0, import_typeorm31.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4505
4432
|
], BankDetail.prototype, "bankName", 2);
|
|
4506
4433
|
__decorateClass([
|
|
4507
|
-
(0,
|
|
4434
|
+
(0, import_typeorm31.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4508
4435
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4509
4436
|
__decorateClass([
|
|
4510
|
-
(0,
|
|
4437
|
+
(0, import_typeorm31.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4511
4438
|
], BankDetail.prototype, "branchName", 2);
|
|
4512
4439
|
__decorateClass([
|
|
4513
|
-
(0,
|
|
4440
|
+
(0, import_typeorm31.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4514
4441
|
], BankDetail.prototype, "routingNo", 2);
|
|
4515
4442
|
__decorateClass([
|
|
4516
|
-
(0,
|
|
4443
|
+
(0, import_typeorm31.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4517
4444
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4518
4445
|
__decorateClass([
|
|
4519
|
-
(0,
|
|
4446
|
+
(0, import_typeorm31.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4520
4447
|
], BankDetail.prototype, "iban", 2);
|
|
4521
4448
|
__decorateClass([
|
|
4522
|
-
(0,
|
|
4449
|
+
(0, import_typeorm31.Column)({
|
|
4523
4450
|
name: "account_type",
|
|
4524
4451
|
type: "enum",
|
|
4525
4452
|
enum: BankAccountTypeEnum,
|
|
@@ -4527,7 +4454,7 @@ __decorateClass([
|
|
|
4527
4454
|
})
|
|
4528
4455
|
], BankDetail.prototype, "accountType", 2);
|
|
4529
4456
|
__decorateClass([
|
|
4530
|
-
(0,
|
|
4457
|
+
(0, import_typeorm31.Column)({
|
|
4531
4458
|
name: "account_scope",
|
|
4532
4459
|
type: "enum",
|
|
4533
4460
|
enum: BankAccountScopeEnum,
|
|
@@ -4535,150 +4462,150 @@ __decorateClass([
|
|
|
4535
4462
|
})
|
|
4536
4463
|
], BankDetail.prototype, "accountScope", 2);
|
|
4537
4464
|
BankDetail = __decorateClass([
|
|
4538
|
-
(0,
|
|
4465
|
+
(0, import_typeorm31.Entity)("bank_details")
|
|
4539
4466
|
], BankDetail);
|
|
4540
4467
|
|
|
4541
4468
|
// src/entities/system-preference.entity.ts
|
|
4542
|
-
var
|
|
4469
|
+
var import_typeorm32 = require("typeorm");
|
|
4543
4470
|
var SystemPreference = class extends BaseEntity {
|
|
4544
4471
|
};
|
|
4545
4472
|
// individual index to find system preference by user
|
|
4546
4473
|
__decorateClass([
|
|
4547
|
-
(0,
|
|
4548
|
-
(0,
|
|
4474
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4475
|
+
(0, import_typeorm32.Index)()
|
|
4549
4476
|
], SystemPreference.prototype, "userId", 2);
|
|
4550
4477
|
__decorateClass([
|
|
4551
|
-
(0,
|
|
4552
|
-
(0,
|
|
4478
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4479
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
4553
4480
|
], SystemPreference.prototype, "user", 2);
|
|
4554
4481
|
__decorateClass([
|
|
4555
|
-
(0,
|
|
4482
|
+
(0, import_typeorm32.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4556
4483
|
], SystemPreference.prototype, "key", 2);
|
|
4557
4484
|
__decorateClass([
|
|
4558
|
-
(0,
|
|
4485
|
+
(0, import_typeorm32.Column)({ name: "value", type: "boolean", default: false })
|
|
4559
4486
|
], SystemPreference.prototype, "value", 2);
|
|
4560
4487
|
SystemPreference = __decorateClass([
|
|
4561
|
-
(0,
|
|
4488
|
+
(0, import_typeorm32.Entity)("system_preferences")
|
|
4562
4489
|
], SystemPreference);
|
|
4563
4490
|
|
|
4564
4491
|
// src/entities/freelancer-experience.entity.ts
|
|
4565
|
-
var
|
|
4492
|
+
var import_typeorm33 = require("typeorm");
|
|
4566
4493
|
var FreelancerExperience = class extends BaseEntity {
|
|
4567
4494
|
};
|
|
4568
4495
|
// individual index to find experence by user
|
|
4569
4496
|
__decorateClass([
|
|
4570
|
-
(0,
|
|
4571
|
-
(0,
|
|
4497
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4498
|
+
(0, import_typeorm33.Index)()
|
|
4572
4499
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4573
4500
|
__decorateClass([
|
|
4574
|
-
(0,
|
|
4575
|
-
(0,
|
|
4501
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4502
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
4576
4503
|
], FreelancerExperience.prototype, "user", 2);
|
|
4577
4504
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4505
|
+
(0, import_typeorm33.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4579
4506
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4580
4507
|
__decorateClass([
|
|
4581
|
-
(0,
|
|
4508
|
+
(0, import_typeorm33.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4582
4509
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4583
4510
|
__decorateClass([
|
|
4584
|
-
(0,
|
|
4511
|
+
(0, import_typeorm33.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4585
4512
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4586
4513
|
__decorateClass([
|
|
4587
|
-
(0,
|
|
4514
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4588
4515
|
], FreelancerExperience.prototype, "description", 2);
|
|
4589
4516
|
FreelancerExperience = __decorateClass([
|
|
4590
|
-
(0,
|
|
4517
|
+
(0, import_typeorm33.Entity)("freelancer_experiences")
|
|
4591
4518
|
], FreelancerExperience);
|
|
4592
4519
|
|
|
4593
4520
|
// src/entities/freelancer-education.entity.ts
|
|
4594
|
-
var
|
|
4521
|
+
var import_typeorm34 = require("typeorm");
|
|
4595
4522
|
var FreelancerEducation = class extends BaseEntity {
|
|
4596
4523
|
};
|
|
4597
4524
|
// individual index to find education by user
|
|
4598
4525
|
__decorateClass([
|
|
4599
|
-
(0,
|
|
4600
|
-
(0,
|
|
4526
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4527
|
+
(0, import_typeorm34.Index)()
|
|
4601
4528
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4602
4529
|
__decorateClass([
|
|
4603
|
-
(0,
|
|
4604
|
-
(0,
|
|
4530
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4531
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
4605
4532
|
], FreelancerEducation.prototype, "user", 2);
|
|
4606
4533
|
__decorateClass([
|
|
4607
|
-
(0,
|
|
4534
|
+
(0, import_typeorm34.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4608
4535
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4609
4536
|
__decorateClass([
|
|
4610
|
-
(0,
|
|
4537
|
+
(0, import_typeorm34.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4611
4538
|
], FreelancerEducation.prototype, "university", 2);
|
|
4612
4539
|
__decorateClass([
|
|
4613
|
-
(0,
|
|
4540
|
+
(0, import_typeorm34.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4614
4541
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4615
4542
|
FreelancerEducation = __decorateClass([
|
|
4616
|
-
(0,
|
|
4543
|
+
(0, import_typeorm34.Entity)("freelancer_educations")
|
|
4617
4544
|
], FreelancerEducation);
|
|
4618
4545
|
|
|
4619
4546
|
// src/entities/freelancer-project.entity.ts
|
|
4620
|
-
var
|
|
4547
|
+
var import_typeorm35 = require("typeorm");
|
|
4621
4548
|
var FreelancerProject = class extends BaseEntity {
|
|
4622
4549
|
};
|
|
4623
4550
|
// individual index to find project by user
|
|
4624
4551
|
__decorateClass([
|
|
4625
|
-
(0,
|
|
4626
|
-
(0,
|
|
4552
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4553
|
+
(0, import_typeorm35.Index)()
|
|
4627
4554
|
], FreelancerProject.prototype, "userId", 2);
|
|
4628
4555
|
__decorateClass([
|
|
4629
|
-
(0,
|
|
4630
|
-
(0,
|
|
4556
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4557
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4631
4558
|
], FreelancerProject.prototype, "user", 2);
|
|
4632
4559
|
__decorateClass([
|
|
4633
|
-
(0,
|
|
4560
|
+
(0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4634
4561
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4635
4562
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4563
|
+
(0, import_typeorm35.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4637
4564
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4638
4565
|
__decorateClass([
|
|
4639
|
-
(0,
|
|
4566
|
+
(0, import_typeorm35.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4640
4567
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4641
4568
|
__decorateClass([
|
|
4642
|
-
(0,
|
|
4569
|
+
(0, import_typeorm35.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4643
4570
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4644
4571
|
__decorateClass([
|
|
4645
|
-
(0,
|
|
4572
|
+
(0, import_typeorm35.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4646
4573
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4647
4574
|
__decorateClass([
|
|
4648
|
-
(0,
|
|
4575
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4649
4576
|
], FreelancerProject.prototype, "description", 2);
|
|
4650
4577
|
FreelancerProject = __decorateClass([
|
|
4651
|
-
(0,
|
|
4578
|
+
(0, import_typeorm35.Entity)("freelancer_projects")
|
|
4652
4579
|
], FreelancerProject);
|
|
4653
4580
|
|
|
4654
4581
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4655
|
-
var
|
|
4582
|
+
var import_typeorm36 = require("typeorm");
|
|
4656
4583
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4657
4584
|
};
|
|
4658
4585
|
// individual index to find case study by user
|
|
4659
4586
|
__decorateClass([
|
|
4660
|
-
(0,
|
|
4661
|
-
(0,
|
|
4587
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4588
|
+
(0, import_typeorm36.Index)()
|
|
4662
4589
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4663
4590
|
__decorateClass([
|
|
4664
|
-
(0,
|
|
4665
|
-
(0,
|
|
4591
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4592
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4666
4593
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4667
4594
|
__decorateClass([
|
|
4668
|
-
(0,
|
|
4595
|
+
(0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4669
4596
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4670
4597
|
__decorateClass([
|
|
4671
|
-
(0,
|
|
4598
|
+
(0, import_typeorm36.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4672
4599
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4673
4600
|
__decorateClass([
|
|
4674
|
-
(0,
|
|
4601
|
+
(0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4675
4602
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4676
4603
|
FreelancerCaseStudy = __decorateClass([
|
|
4677
|
-
(0,
|
|
4604
|
+
(0, import_typeorm36.Entity)("freelancer_case_studies")
|
|
4678
4605
|
], FreelancerCaseStudy);
|
|
4679
4606
|
|
|
4680
4607
|
// src/entities/freelancer-skill.entity.ts
|
|
4681
|
-
var
|
|
4608
|
+
var import_typeorm37 = require("typeorm");
|
|
4682
4609
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4683
4610
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4684
4611
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4688,18 +4615,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4688
4615
|
};
|
|
4689
4616
|
// individual index to find core skills by user
|
|
4690
4617
|
__decorateClass([
|
|
4691
|
-
(0,
|
|
4692
|
-
(0,
|
|
4618
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4619
|
+
(0, import_typeorm37.Index)()
|
|
4693
4620
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4694
4621
|
__decorateClass([
|
|
4695
|
-
(0,
|
|
4696
|
-
(0,
|
|
4622
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4623
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4697
4624
|
], FreelancerSkill.prototype, "user", 2);
|
|
4698
4625
|
__decorateClass([
|
|
4699
|
-
(0,
|
|
4626
|
+
(0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4700
4627
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4701
4628
|
__decorateClass([
|
|
4702
|
-
(0,
|
|
4629
|
+
(0, import_typeorm37.Column)({
|
|
4703
4630
|
name: "skill_category",
|
|
4704
4631
|
type: "smallint",
|
|
4705
4632
|
default: 1,
|
|
@@ -4707,51 +4634,51 @@ __decorateClass([
|
|
|
4707
4634
|
})
|
|
4708
4635
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4709
4636
|
FreelancerSkill = __decorateClass([
|
|
4710
|
-
(0,
|
|
4637
|
+
(0, import_typeorm37.Entity)("freelancer_skills")
|
|
4711
4638
|
], FreelancerSkill);
|
|
4712
4639
|
|
|
4713
4640
|
// src/entities/freelancer-tool.entity.ts
|
|
4714
|
-
var
|
|
4641
|
+
var import_typeorm38 = require("typeorm");
|
|
4715
4642
|
var FreelancerTool = class extends BaseEntity {
|
|
4716
4643
|
};
|
|
4717
4644
|
// individual index to find tool by user
|
|
4718
4645
|
__decorateClass([
|
|
4719
|
-
(0,
|
|
4720
|
-
(0,
|
|
4646
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4647
|
+
(0, import_typeorm38.Index)()
|
|
4721
4648
|
], FreelancerTool.prototype, "userId", 2);
|
|
4722
4649
|
__decorateClass([
|
|
4723
|
-
(0,
|
|
4724
|
-
(0,
|
|
4650
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4651
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4725
4652
|
], FreelancerTool.prototype, "user", 2);
|
|
4726
4653
|
__decorateClass([
|
|
4727
|
-
(0,
|
|
4654
|
+
(0, import_typeorm38.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4728
4655
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4729
4656
|
FreelancerTool = __decorateClass([
|
|
4730
|
-
(0,
|
|
4657
|
+
(0, import_typeorm38.Entity)("freelancer_tools")
|
|
4731
4658
|
], FreelancerTool);
|
|
4732
4659
|
|
|
4733
4660
|
// src/entities/freelancer-framework.entity.ts
|
|
4734
|
-
var
|
|
4661
|
+
var import_typeorm39 = require("typeorm");
|
|
4735
4662
|
var FreelancerFramework = class extends BaseEntity {
|
|
4736
4663
|
};
|
|
4737
4664
|
// individual index to find framework by user
|
|
4738
4665
|
__decorateClass([
|
|
4739
|
-
(0,
|
|
4740
|
-
(0,
|
|
4666
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4667
|
+
(0, import_typeorm39.Index)()
|
|
4741
4668
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4742
4669
|
__decorateClass([
|
|
4743
|
-
(0,
|
|
4744
|
-
(0,
|
|
4670
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4671
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4745
4672
|
], FreelancerFramework.prototype, "user", 2);
|
|
4746
4673
|
__decorateClass([
|
|
4747
|
-
(0,
|
|
4674
|
+
(0, import_typeorm39.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4748
4675
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4749
4676
|
FreelancerFramework = __decorateClass([
|
|
4750
|
-
(0,
|
|
4677
|
+
(0, import_typeorm39.Entity)("freelancer_frameworks")
|
|
4751
4678
|
], FreelancerFramework);
|
|
4752
4679
|
|
|
4753
4680
|
// src/entities/freelancer-assessment.entity.ts
|
|
4754
|
-
var
|
|
4681
|
+
var import_typeorm40 = require("typeorm");
|
|
4755
4682
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4756
4683
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4757
4684
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4767,30 +4694,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4767
4694
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4768
4695
|
};
|
|
4769
4696
|
__decorateClass([
|
|
4770
|
-
(0,
|
|
4771
|
-
(0,
|
|
4697
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4698
|
+
(0, import_typeorm40.Index)()
|
|
4772
4699
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4773
4700
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4775
|
-
(0,
|
|
4701
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.assessments),
|
|
4702
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4776
4703
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4777
4704
|
__decorateClass([
|
|
4778
|
-
(0,
|
|
4705
|
+
(0, import_typeorm40.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4779
4706
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4780
4707
|
__decorateClass([
|
|
4781
|
-
(0,
|
|
4708
|
+
(0, import_typeorm40.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4782
4709
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4783
4710
|
__decorateClass([
|
|
4784
|
-
(0,
|
|
4711
|
+
(0, import_typeorm40.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4785
4712
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4786
4713
|
__decorateClass([
|
|
4787
|
-
(0,
|
|
4714
|
+
(0, import_typeorm40.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4788
4715
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4789
4716
|
__decorateClass([
|
|
4790
|
-
(0,
|
|
4717
|
+
(0, import_typeorm40.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4791
4718
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4792
4719
|
__decorateClass([
|
|
4793
|
-
(0,
|
|
4720
|
+
(0, import_typeorm40.Column)({
|
|
4794
4721
|
name: "status",
|
|
4795
4722
|
type: "enum",
|
|
4796
4723
|
enum: AssessmentStatusEnum,
|
|
@@ -4798,11 +4725,11 @@ __decorateClass([
|
|
|
4798
4725
|
})
|
|
4799
4726
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4800
4727
|
FreelancerAssessment = __decorateClass([
|
|
4801
|
-
(0,
|
|
4728
|
+
(0, import_typeorm40.Entity)("freelancer_assessments")
|
|
4802
4729
|
], FreelancerAssessment);
|
|
4803
4730
|
|
|
4804
4731
|
// src/entities/freelancer-declaration.entity.ts
|
|
4805
|
-
var
|
|
4732
|
+
var import_typeorm41 = require("typeorm");
|
|
4806
4733
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4807
4734
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4808
4735
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4814,15 +4741,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4814
4741
|
};
|
|
4815
4742
|
// individual index to find declaration by user
|
|
4816
4743
|
__decorateClass([
|
|
4817
|
-
(0,
|
|
4818
|
-
(0,
|
|
4744
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4745
|
+
(0, import_typeorm41.Index)()
|
|
4819
4746
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4820
4747
|
__decorateClass([
|
|
4821
|
-
(0,
|
|
4822
|
-
(0,
|
|
4748
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
4749
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4823
4750
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4824
4751
|
__decorateClass([
|
|
4825
|
-
(0,
|
|
4752
|
+
(0, import_typeorm41.Column)({
|
|
4826
4753
|
name: "document_type",
|
|
4827
4754
|
type: "enum",
|
|
4828
4755
|
enum: DocumentType,
|
|
@@ -4830,144 +4757,144 @@ __decorateClass([
|
|
|
4830
4757
|
})
|
|
4831
4758
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4832
4759
|
__decorateClass([
|
|
4833
|
-
(0,
|
|
4760
|
+
(0, import_typeorm41.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4834
4761
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4835
4762
|
__decorateClass([
|
|
4836
|
-
(0,
|
|
4763
|
+
(0, import_typeorm41.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4837
4764
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4838
4765
|
__decorateClass([
|
|
4839
|
-
(0,
|
|
4766
|
+
(0, import_typeorm41.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4840
4767
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4841
4768
|
__decorateClass([
|
|
4842
|
-
(0,
|
|
4769
|
+
(0, import_typeorm41.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4843
4770
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4844
4771
|
FreelancerDeclaration = __decorateClass([
|
|
4845
|
-
(0,
|
|
4772
|
+
(0, import_typeorm41.Entity)("freelancer_declaration")
|
|
4846
4773
|
], FreelancerDeclaration);
|
|
4847
4774
|
|
|
4848
4775
|
// src/entities/company-members-roles.entity.ts
|
|
4849
|
-
var
|
|
4776
|
+
var import_typeorm45 = require("typeorm");
|
|
4850
4777
|
|
|
4851
4778
|
// src/entities/company-role.entity.ts
|
|
4852
|
-
var
|
|
4779
|
+
var import_typeorm44 = require("typeorm");
|
|
4853
4780
|
|
|
4854
4781
|
// src/entities/company-role-permission.entity.ts
|
|
4855
|
-
var
|
|
4782
|
+
var import_typeorm43 = require("typeorm");
|
|
4856
4783
|
|
|
4857
4784
|
// src/entities/permission.entity.ts
|
|
4858
|
-
var
|
|
4785
|
+
var import_typeorm42 = require("typeorm");
|
|
4859
4786
|
var Permission = class extends BaseEntity {
|
|
4860
4787
|
};
|
|
4861
4788
|
__decorateClass([
|
|
4862
|
-
(0,
|
|
4789
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4863
4790
|
], Permission.prototype, "name", 2);
|
|
4864
4791
|
__decorateClass([
|
|
4865
|
-
(0,
|
|
4866
|
-
(0,
|
|
4792
|
+
(0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4793
|
+
(0, import_typeorm42.Index)()
|
|
4867
4794
|
], Permission.prototype, "slug", 2);
|
|
4868
4795
|
__decorateClass([
|
|
4869
|
-
(0,
|
|
4796
|
+
(0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
|
|
4870
4797
|
], Permission.prototype, "description", 2);
|
|
4871
4798
|
__decorateClass([
|
|
4872
|
-
(0,
|
|
4799
|
+
(0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4873
4800
|
], Permission.prototype, "isActive", 2);
|
|
4874
4801
|
Permission = __decorateClass([
|
|
4875
|
-
(0,
|
|
4802
|
+
(0, import_typeorm42.Entity)("permissions")
|
|
4876
4803
|
], Permission);
|
|
4877
4804
|
|
|
4878
4805
|
// src/entities/company-role-permission.entity.ts
|
|
4879
4806
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4880
4807
|
};
|
|
4881
4808
|
__decorateClass([
|
|
4882
|
-
(0,
|
|
4883
|
-
(0,
|
|
4809
|
+
(0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4810
|
+
(0, import_typeorm43.Index)()
|
|
4884
4811
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4885
4812
|
__decorateClass([
|
|
4886
|
-
(0,
|
|
4813
|
+
(0, import_typeorm43.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4887
4814
|
onDelete: "CASCADE"
|
|
4888
4815
|
}),
|
|
4889
|
-
(0,
|
|
4816
|
+
(0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
|
|
4890
4817
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4891
4818
|
__decorateClass([
|
|
4892
|
-
(0,
|
|
4893
|
-
(0,
|
|
4819
|
+
(0, import_typeorm43.Column)({ name: "permission_id", type: "integer" }),
|
|
4820
|
+
(0, import_typeorm43.Index)()
|
|
4894
4821
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4895
4822
|
__decorateClass([
|
|
4896
|
-
(0,
|
|
4897
|
-
(0,
|
|
4823
|
+
(0, import_typeorm43.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
4824
|
+
(0, import_typeorm43.JoinColumn)({ name: "permission_id" })
|
|
4898
4825
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4899
4826
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
4827
|
+
(0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4901
4828
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4902
4829
|
CompanyRolePermission = __decorateClass([
|
|
4903
|
-
(0,
|
|
4830
|
+
(0, import_typeorm43.Entity)("company_role_permissions")
|
|
4904
4831
|
], CompanyRolePermission);
|
|
4905
4832
|
|
|
4906
4833
|
// src/entities/company-role.entity.ts
|
|
4907
4834
|
var CompanyRole = class extends BaseEntity {
|
|
4908
4835
|
};
|
|
4909
4836
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
4911
|
-
(0,
|
|
4837
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4838
|
+
(0, import_typeorm44.Index)()
|
|
4912
4839
|
], CompanyRole.prototype, "userId", 2);
|
|
4913
4840
|
__decorateClass([
|
|
4914
|
-
(0,
|
|
4915
|
-
(0,
|
|
4841
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.otps),
|
|
4842
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
4916
4843
|
], CompanyRole.prototype, "user", 2);
|
|
4917
4844
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
4845
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar" })
|
|
4919
4846
|
], CompanyRole.prototype, "name", 2);
|
|
4920
4847
|
__decorateClass([
|
|
4921
|
-
(0,
|
|
4922
|
-
(0,
|
|
4848
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4849
|
+
(0, import_typeorm44.Index)()
|
|
4923
4850
|
], CompanyRole.prototype, "slug", 2);
|
|
4924
4851
|
__decorateClass([
|
|
4925
|
-
(0,
|
|
4852
|
+
(0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
|
|
4926
4853
|
], CompanyRole.prototype, "description", 2);
|
|
4927
4854
|
__decorateClass([
|
|
4928
|
-
(0,
|
|
4855
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4929
4856
|
], CompanyRole.prototype, "isActive", 2);
|
|
4930
4857
|
__decorateClass([
|
|
4931
|
-
(0,
|
|
4858
|
+
(0, import_typeorm44.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4932
4859
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4933
4860
|
CompanyRole = __decorateClass([
|
|
4934
|
-
(0,
|
|
4861
|
+
(0, import_typeorm44.Entity)("company_roles")
|
|
4935
4862
|
], CompanyRole);
|
|
4936
4863
|
|
|
4937
4864
|
// src/entities/company-members-roles.entity.ts
|
|
4938
4865
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4939
4866
|
};
|
|
4940
4867
|
__decorateClass([
|
|
4941
|
-
(0,
|
|
4942
|
-
(0,
|
|
4868
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4869
|
+
(0, import_typeorm45.Index)()
|
|
4943
4870
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4944
4871
|
__decorateClass([
|
|
4945
|
-
(0,
|
|
4946
|
-
(0,
|
|
4872
|
+
(0, import_typeorm45.ManyToOne)(() => User),
|
|
4873
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
4947
4874
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4948
4875
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
4950
|
-
(0,
|
|
4876
|
+
(0, import_typeorm45.ManyToOne)(() => CompanyRole),
|
|
4877
|
+
(0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
|
|
4951
4878
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4952
4879
|
__decorateClass([
|
|
4953
|
-
(0,
|
|
4954
|
-
(0,
|
|
4880
|
+
(0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4881
|
+
(0, import_typeorm45.Index)()
|
|
4955
4882
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4956
4883
|
__decorateClass([
|
|
4957
|
-
(0,
|
|
4884
|
+
(0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4958
4885
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4959
4886
|
CompanyMemberRole = __decorateClass([
|
|
4960
|
-
(0,
|
|
4887
|
+
(0, import_typeorm45.Entity)("company_member_roles")
|
|
4961
4888
|
], CompanyMemberRole);
|
|
4962
4889
|
|
|
4963
4890
|
// src/entities/assessment-answer.entity.ts
|
|
4964
|
-
var
|
|
4891
|
+
var import_typeorm48 = require("typeorm");
|
|
4965
4892
|
|
|
4966
4893
|
// src/entities/assessment-question.entity.ts
|
|
4967
|
-
var
|
|
4894
|
+
var import_typeorm47 = require("typeorm");
|
|
4968
4895
|
|
|
4969
4896
|
// src/entities/assessment-question-option.entity.ts
|
|
4970
|
-
var
|
|
4897
|
+
var import_typeorm46 = require("typeorm");
|
|
4971
4898
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4972
4899
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
4973
4900
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -4977,21 +4904,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4977
4904
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4978
4905
|
};
|
|
4979
4906
|
__decorateClass([
|
|
4980
|
-
(0,
|
|
4981
|
-
(0,
|
|
4907
|
+
(0, import_typeorm46.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
4908
|
+
(0, import_typeorm46.Index)()
|
|
4982
4909
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4983
4910
|
__decorateClass([
|
|
4984
|
-
(0,
|
|
4911
|
+
(0, import_typeorm46.ManyToOne)(
|
|
4985
4912
|
() => AssessmetQuestion,
|
|
4986
4913
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4987
4914
|
),
|
|
4988
|
-
(0,
|
|
4915
|
+
(0, import_typeorm46.JoinColumn)({ name: "question_id" })
|
|
4989
4916
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4990
4917
|
__decorateClass([
|
|
4991
|
-
(0,
|
|
4918
|
+
(0, import_typeorm46.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4992
4919
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4993
4920
|
__decorateClass([
|
|
4994
|
-
(0,
|
|
4921
|
+
(0, import_typeorm46.Column)({
|
|
4995
4922
|
name: "answer_type",
|
|
4996
4923
|
type: "enum",
|
|
4997
4924
|
enum: AnswerTypeEnum,
|
|
@@ -4999,13 +4926,13 @@ __decorateClass([
|
|
|
4999
4926
|
})
|
|
5000
4927
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5001
4928
|
__decorateClass([
|
|
5002
|
-
(0,
|
|
4929
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5003
4930
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5004
4931
|
__decorateClass([
|
|
5005
|
-
(0,
|
|
4932
|
+
(0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5006
4933
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5007
4934
|
AssessmetQuestionOption = __decorateClass([
|
|
5008
|
-
(0,
|
|
4935
|
+
(0, import_typeorm46.Entity)("assessment_question_options")
|
|
5009
4936
|
], AssessmetQuestionOption);
|
|
5010
4937
|
|
|
5011
4938
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5017,10 +4944,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5017
4944
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5018
4945
|
};
|
|
5019
4946
|
__decorateClass([
|
|
5020
|
-
(0,
|
|
4947
|
+
(0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5021
4948
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5022
4949
|
__decorateClass([
|
|
5023
|
-
(0,
|
|
4950
|
+
(0, import_typeorm47.Column)({
|
|
5024
4951
|
name: "question_for",
|
|
5025
4952
|
type: "enum",
|
|
5026
4953
|
enum: QuestionForEnum,
|
|
@@ -5028,24 +4955,24 @@ __decorateClass([
|
|
|
5028
4955
|
})
|
|
5029
4956
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5030
4957
|
__decorateClass([
|
|
5031
|
-
(0,
|
|
4958
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5032
4959
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5033
4960
|
__decorateClass([
|
|
5034
|
-
(0,
|
|
5035
|
-
(0,
|
|
4961
|
+
(0, import_typeorm47.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
4962
|
+
(0, import_typeorm47.Index)()
|
|
5036
4963
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5037
4964
|
__decorateClass([
|
|
5038
|
-
(0,
|
|
5039
|
-
(0,
|
|
4965
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
4966
|
+
(0, import_typeorm47.JoinColumn)({ name: "candidate_id" })
|
|
5040
4967
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5041
4968
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
4969
|
+
(0, import_typeorm47.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5043
4970
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5044
4971
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
4972
|
+
(0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5046
4973
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5047
4974
|
AssessmetQuestion = __decorateClass([
|
|
5048
|
-
(0,
|
|
4975
|
+
(0, import_typeorm47.Entity)("assessment_questions")
|
|
5049
4976
|
], AssessmetQuestion);
|
|
5050
4977
|
|
|
5051
4978
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5058,118 +4985,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5058
4985
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5059
4986
|
};
|
|
5060
4987
|
__decorateClass([
|
|
5061
|
-
(0,
|
|
5062
|
-
(0,
|
|
4988
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer" }),
|
|
4989
|
+
(0, import_typeorm48.Index)()
|
|
5063
4990
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5064
4991
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5066
|
-
(0,
|
|
4992
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
4993
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
5067
4994
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5068
4995
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5070
|
-
(0,
|
|
4996
|
+
(0, import_typeorm48.Column)({ name: "question_id", type: "integer" }),
|
|
4997
|
+
(0, import_typeorm48.Index)()
|
|
5071
4998
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5072
4999
|
__decorateClass([
|
|
5073
|
-
(0,
|
|
5000
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5074
5001
|
() => AssessmetQuestion,
|
|
5075
5002
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5076
5003
|
),
|
|
5077
|
-
(0,
|
|
5004
|
+
(0, import_typeorm48.JoinColumn)({ name: "question_id" })
|
|
5078
5005
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5079
5006
|
__decorateClass([
|
|
5080
|
-
(0,
|
|
5081
|
-
(0,
|
|
5007
|
+
(0, import_typeorm48.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5008
|
+
(0, import_typeorm48.Index)()
|
|
5082
5009
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5083
5010
|
__decorateClass([
|
|
5084
|
-
(0,
|
|
5011
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5085
5012
|
() => AssessmetQuestionOption,
|
|
5086
5013
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5087
5014
|
),
|
|
5088
|
-
(0,
|
|
5015
|
+
(0, import_typeorm48.JoinColumn)({ name: "selected_option_id" })
|
|
5089
5016
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5090
5017
|
__decorateClass([
|
|
5091
|
-
(0,
|
|
5018
|
+
(0, import_typeorm48.Column)({
|
|
5092
5019
|
name: "selected_answer_type",
|
|
5093
5020
|
type: "enum",
|
|
5094
5021
|
enum: SelectedAnswerTypeEnum
|
|
5095
5022
|
})
|
|
5096
5023
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5097
5024
|
__decorateClass([
|
|
5098
|
-
(0,
|
|
5025
|
+
(0, import_typeorm48.Column)({ name: "score", type: "float" })
|
|
5099
5026
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5100
5027
|
AssessmentAnswer = __decorateClass([
|
|
5101
|
-
(0,
|
|
5028
|
+
(0, import_typeorm48.Entity)("assessment_answers")
|
|
5102
5029
|
], AssessmentAnswer);
|
|
5103
5030
|
|
|
5104
5031
|
// src/entities/company-skill.entity.ts
|
|
5105
|
-
var
|
|
5032
|
+
var import_typeorm49 = require("typeorm");
|
|
5106
5033
|
var CompanySkill = class extends BaseEntity {
|
|
5107
5034
|
};
|
|
5108
5035
|
// individual index to find core skills by user
|
|
5109
5036
|
__decorateClass([
|
|
5110
|
-
(0,
|
|
5111
|
-
(0,
|
|
5037
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5038
|
+
(0, import_typeorm49.Index)()
|
|
5112
5039
|
], CompanySkill.prototype, "userId", 2);
|
|
5113
5040
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5115
|
-
(0,
|
|
5041
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5042
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
5116
5043
|
], CompanySkill.prototype, "user", 2);
|
|
5117
5044
|
__decorateClass([
|
|
5118
|
-
(0,
|
|
5045
|
+
(0, import_typeorm49.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5119
5046
|
], CompanySkill.prototype, "skillName", 2);
|
|
5120
5047
|
CompanySkill = __decorateClass([
|
|
5121
|
-
(0,
|
|
5048
|
+
(0, import_typeorm49.Entity)("company_skills")
|
|
5122
5049
|
], CompanySkill);
|
|
5123
5050
|
|
|
5124
5051
|
// src/entities/admin-user-role.entity.ts
|
|
5125
|
-
var
|
|
5052
|
+
var import_typeorm53 = require("typeorm");
|
|
5126
5053
|
|
|
5127
5054
|
// src/entities/admin-role.entity.ts
|
|
5128
|
-
var
|
|
5055
|
+
var import_typeorm52 = require("typeorm");
|
|
5129
5056
|
|
|
5130
5057
|
// src/entities/admin-role-permission.entity.ts
|
|
5131
|
-
var
|
|
5058
|
+
var import_typeorm51 = require("typeorm");
|
|
5132
5059
|
|
|
5133
5060
|
// src/entities/admin-permission.entity.ts
|
|
5134
|
-
var
|
|
5061
|
+
var import_typeorm50 = require("typeorm");
|
|
5135
5062
|
var AdminPermission = class extends BaseEntity {
|
|
5136
5063
|
};
|
|
5137
5064
|
__decorateClass([
|
|
5138
|
-
(0,
|
|
5065
|
+
(0, import_typeorm50.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5139
5066
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5140
5067
|
__decorateClass([
|
|
5141
|
-
(0,
|
|
5068
|
+
(0, import_typeorm50.Column)({
|
|
5142
5069
|
name: "permission_slug",
|
|
5143
5070
|
type: "varchar",
|
|
5144
5071
|
unique: true,
|
|
5145
5072
|
nullable: true
|
|
5146
5073
|
}),
|
|
5147
|
-
(0,
|
|
5074
|
+
(0, import_typeorm50.Index)()
|
|
5148
5075
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5149
5076
|
__decorateClass([
|
|
5150
|
-
(0,
|
|
5077
|
+
(0, import_typeorm50.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5151
5078
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5152
5079
|
__decorateClass([
|
|
5153
|
-
(0,
|
|
5080
|
+
(0, import_typeorm50.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5154
5081
|
], AdminPermission.prototype, "module", 2);
|
|
5155
5082
|
__decorateClass([
|
|
5156
|
-
(0,
|
|
5083
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5157
5084
|
], AdminPermission.prototype, "isActive", 2);
|
|
5158
5085
|
__decorateClass([
|
|
5159
|
-
(0,
|
|
5086
|
+
(0, import_typeorm50.OneToMany)(
|
|
5160
5087
|
() => AdminRolePermission,
|
|
5161
5088
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5162
5089
|
)
|
|
5163
5090
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5164
5091
|
AdminPermission = __decorateClass([
|
|
5165
|
-
(0,
|
|
5092
|
+
(0, import_typeorm50.Entity)("admin_permissions")
|
|
5166
5093
|
], AdminPermission);
|
|
5167
5094
|
|
|
5168
5095
|
// src/entities/admin-role-permission.entity.ts
|
|
5169
5096
|
var AdminRolePermission = class extends BaseEntity {
|
|
5170
5097
|
};
|
|
5171
5098
|
__decorateClass([
|
|
5172
|
-
(0,
|
|
5099
|
+
(0, import_typeorm51.Column)({
|
|
5173
5100
|
name: "role_id",
|
|
5174
5101
|
type: "int",
|
|
5175
5102
|
nullable: true,
|
|
@@ -5177,11 +5104,11 @@ __decorateClass([
|
|
|
5177
5104
|
})
|
|
5178
5105
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5179
5106
|
__decorateClass([
|
|
5180
|
-
(0,
|
|
5181
|
-
(0,
|
|
5107
|
+
(0, import_typeorm51.ManyToOne)(() => AdminRole),
|
|
5108
|
+
(0, import_typeorm51.JoinColumn)({ name: "role_id" })
|
|
5182
5109
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5183
5110
|
__decorateClass([
|
|
5184
|
-
(0,
|
|
5111
|
+
(0, import_typeorm51.Column)({
|
|
5185
5112
|
name: "permission_id",
|
|
5186
5113
|
type: "int",
|
|
5187
5114
|
nullable: true,
|
|
@@ -5189,47 +5116,47 @@ __decorateClass([
|
|
|
5189
5116
|
})
|
|
5190
5117
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5191
5118
|
__decorateClass([
|
|
5192
|
-
(0,
|
|
5193
|
-
(0,
|
|
5119
|
+
(0, import_typeorm51.ManyToOne)(() => AdminPermission),
|
|
5120
|
+
(0, import_typeorm51.JoinColumn)({ name: "permission_id" })
|
|
5194
5121
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5195
5122
|
AdminRolePermission = __decorateClass([
|
|
5196
|
-
(0,
|
|
5123
|
+
(0, import_typeorm51.Entity)("admin_role_permissions")
|
|
5197
5124
|
], AdminRolePermission);
|
|
5198
5125
|
|
|
5199
5126
|
// src/entities/admin-role.entity.ts
|
|
5200
5127
|
var AdminRole = class extends BaseEntity {
|
|
5201
5128
|
};
|
|
5202
5129
|
__decorateClass([
|
|
5203
|
-
(0,
|
|
5130
|
+
(0, import_typeorm52.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5204
5131
|
], AdminRole.prototype, "roleName", 2);
|
|
5205
5132
|
__decorateClass([
|
|
5206
|
-
(0,
|
|
5207
|
-
(0,
|
|
5133
|
+
(0, import_typeorm52.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5134
|
+
(0, import_typeorm52.Index)()
|
|
5208
5135
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5209
5136
|
__decorateClass([
|
|
5210
|
-
(0,
|
|
5137
|
+
(0, import_typeorm52.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5211
5138
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5212
5139
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5140
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5214
5141
|
], AdminRole.prototype, "isActive", 2);
|
|
5215
5142
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5143
|
+
(0, import_typeorm52.OneToMany)(
|
|
5217
5144
|
() => AdminRolePermission,
|
|
5218
5145
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5219
5146
|
)
|
|
5220
5147
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5221
5148
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5149
|
+
(0, import_typeorm52.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5223
5150
|
], AdminRole.prototype, "userRoles", 2);
|
|
5224
5151
|
AdminRole = __decorateClass([
|
|
5225
|
-
(0,
|
|
5152
|
+
(0, import_typeorm52.Entity)("admin_roles")
|
|
5226
5153
|
], AdminRole);
|
|
5227
5154
|
|
|
5228
5155
|
// src/entities/admin-user-role.entity.ts
|
|
5229
5156
|
var AdminUserRole = class extends BaseEntity {
|
|
5230
5157
|
};
|
|
5231
5158
|
__decorateClass([
|
|
5232
|
-
(0,
|
|
5159
|
+
(0, import_typeorm53.Column)({
|
|
5233
5160
|
name: "user_id",
|
|
5234
5161
|
type: "int",
|
|
5235
5162
|
nullable: true,
|
|
@@ -5237,11 +5164,11 @@ __decorateClass([
|
|
|
5237
5164
|
})
|
|
5238
5165
|
], AdminUserRole.prototype, "userId", 2);
|
|
5239
5166
|
__decorateClass([
|
|
5240
|
-
(0,
|
|
5241
|
-
(0,
|
|
5167
|
+
(0, import_typeorm53.ManyToOne)(() => User),
|
|
5168
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
5242
5169
|
], AdminUserRole.prototype, "user", 2);
|
|
5243
5170
|
__decorateClass([
|
|
5244
|
-
(0,
|
|
5171
|
+
(0, import_typeorm53.Column)({
|
|
5245
5172
|
name: "role_id",
|
|
5246
5173
|
type: "int",
|
|
5247
5174
|
nullable: true,
|
|
@@ -5249,58 +5176,58 @@ __decorateClass([
|
|
|
5249
5176
|
})
|
|
5250
5177
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5251
5178
|
__decorateClass([
|
|
5252
|
-
(0,
|
|
5253
|
-
(0,
|
|
5179
|
+
(0, import_typeorm53.ManyToOne)(() => AdminRole),
|
|
5180
|
+
(0, import_typeorm53.JoinColumn)({ name: "role_id" })
|
|
5254
5181
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5255
5182
|
AdminUserRole = __decorateClass([
|
|
5256
|
-
(0,
|
|
5183
|
+
(0, import_typeorm53.Entity)("admin_user_roles")
|
|
5257
5184
|
], AdminUserRole);
|
|
5258
5185
|
|
|
5259
5186
|
// src/entities/freelancer-resume.entity.ts
|
|
5260
|
-
var
|
|
5187
|
+
var import_typeorm54 = require("typeorm");
|
|
5261
5188
|
var FreelancerResume = class extends BaseEntity {
|
|
5262
5189
|
};
|
|
5263
5190
|
// individual index to find profile by user
|
|
5264
5191
|
__decorateClass([
|
|
5265
|
-
(0,
|
|
5266
|
-
(0,
|
|
5192
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5193
|
+
(0, import_typeorm54.Index)()
|
|
5267
5194
|
], FreelancerResume.prototype, "userId", 2);
|
|
5268
5195
|
__decorateClass([
|
|
5269
|
-
(0,
|
|
5270
|
-
(0,
|
|
5196
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5197
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5271
5198
|
], FreelancerResume.prototype, "user", 2);
|
|
5272
5199
|
__decorateClass([
|
|
5273
|
-
(0,
|
|
5200
|
+
(0, import_typeorm54.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5274
5201
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5275
5202
|
__decorateClass([
|
|
5276
|
-
(0,
|
|
5203
|
+
(0, import_typeorm54.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5277
5204
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5278
5205
|
FreelancerResume = __decorateClass([
|
|
5279
|
-
(0,
|
|
5206
|
+
(0, import_typeorm54.Entity)("freelancer_resumes")
|
|
5280
5207
|
], FreelancerResume);
|
|
5281
5208
|
|
|
5282
5209
|
// src/entities/signature.entity.ts
|
|
5283
|
-
var
|
|
5210
|
+
var import_typeorm55 = require("typeorm");
|
|
5284
5211
|
var Signature = class extends BaseEntity {
|
|
5285
5212
|
};
|
|
5286
5213
|
// individual index to find profile by user
|
|
5287
5214
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5289
|
-
(0,
|
|
5215
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5216
|
+
(0, import_typeorm55.Index)()
|
|
5290
5217
|
], Signature.prototype, "userId", 2);
|
|
5291
5218
|
__decorateClass([
|
|
5292
|
-
(0,
|
|
5293
|
-
(0,
|
|
5219
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
|
|
5220
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5294
5221
|
], Signature.prototype, "user", 2);
|
|
5295
5222
|
__decorateClass([
|
|
5296
|
-
(0,
|
|
5223
|
+
(0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5297
5224
|
], Signature.prototype, "signatureUrl", 2);
|
|
5298
5225
|
Signature = __decorateClass([
|
|
5299
|
-
(0,
|
|
5226
|
+
(0, import_typeorm55.Entity)("signatures")
|
|
5300
5227
|
], Signature);
|
|
5301
5228
|
|
|
5302
5229
|
// src/entities/dispute.entity.ts
|
|
5303
|
-
var
|
|
5230
|
+
var import_typeorm56 = require("typeorm");
|
|
5304
5231
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5305
5232
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5306
5233
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5321,36 +5248,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5321
5248
|
var Dispute = class extends BaseEntity {
|
|
5322
5249
|
};
|
|
5323
5250
|
__decorateClass([
|
|
5324
|
-
(0,
|
|
5325
|
-
(0,
|
|
5251
|
+
(0, import_typeorm56.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5252
|
+
(0, import_typeorm56.Index)()
|
|
5326
5253
|
], Dispute.prototype, "clientId", 2);
|
|
5327
5254
|
__decorateClass([
|
|
5328
|
-
(0,
|
|
5329
|
-
(0,
|
|
5255
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5256
|
+
(0, import_typeorm56.JoinColumn)({ name: "client_id" })
|
|
5330
5257
|
], Dispute.prototype, "client", 2);
|
|
5331
5258
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5333
|
-
(0,
|
|
5259
|
+
(0, import_typeorm56.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5260
|
+
(0, import_typeorm56.Index)()
|
|
5334
5261
|
], Dispute.prototype, "freelancerId", 2);
|
|
5335
5262
|
__decorateClass([
|
|
5336
|
-
(0,
|
|
5337
|
-
(0,
|
|
5263
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5264
|
+
(0, import_typeorm56.JoinColumn)({ name: "freelancer_id" })
|
|
5338
5265
|
], Dispute.prototype, "freelancer", 2);
|
|
5339
5266
|
__decorateClass([
|
|
5340
|
-
(0,
|
|
5267
|
+
(0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5341
5268
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5342
5269
|
__decorateClass([
|
|
5343
|
-
(0,
|
|
5344
|
-
(0,
|
|
5270
|
+
(0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5271
|
+
(0, import_typeorm56.Index)()
|
|
5345
5272
|
], Dispute.prototype, "disputeType", 2);
|
|
5346
5273
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5274
|
+
(0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5348
5275
|
], Dispute.prototype, "description", 2);
|
|
5349
5276
|
__decorateClass([
|
|
5350
|
-
(0,
|
|
5277
|
+
(0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5351
5278
|
], Dispute.prototype, "comment", 2);
|
|
5352
5279
|
__decorateClass([
|
|
5353
|
-
(0,
|
|
5280
|
+
(0, import_typeorm56.Column)({
|
|
5354
5281
|
name: "status",
|
|
5355
5282
|
type: "enum",
|
|
5356
5283
|
enum: DisputeStatusEnum,
|
|
@@ -5358,7 +5285,7 @@ __decorateClass([
|
|
|
5358
5285
|
})
|
|
5359
5286
|
], Dispute.prototype, "status", 2);
|
|
5360
5287
|
__decorateClass([
|
|
5361
|
-
(0,
|
|
5288
|
+
(0, import_typeorm56.Column)({
|
|
5362
5289
|
name: "initiator_type",
|
|
5363
5290
|
type: "enum",
|
|
5364
5291
|
enum: InitiatorTypeEnum,
|
|
@@ -5367,33 +5294,33 @@ __decorateClass([
|
|
|
5367
5294
|
})
|
|
5368
5295
|
], Dispute.prototype, "initiatorType", 2);
|
|
5369
5296
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5371
|
-
(0,
|
|
5297
|
+
(0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
|
|
5298
|
+
(0, import_typeorm56.Index)()
|
|
5372
5299
|
], Dispute.prototype, "initiatorId", 2);
|
|
5373
5300
|
__decorateClass([
|
|
5374
|
-
(0,
|
|
5375
|
-
(0,
|
|
5301
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5302
|
+
(0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
|
|
5376
5303
|
], Dispute.prototype, "initiator", 2);
|
|
5377
5304
|
__decorateClass([
|
|
5378
|
-
(0,
|
|
5379
|
-
(0,
|
|
5305
|
+
(0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5306
|
+
(0, import_typeorm56.Index)()
|
|
5380
5307
|
], Dispute.prototype, "respondentId", 2);
|
|
5381
5308
|
__decorateClass([
|
|
5382
|
-
(0,
|
|
5383
|
-
(0,
|
|
5309
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5310
|
+
(0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
|
|
5384
5311
|
], Dispute.prototype, "respondent", 2);
|
|
5385
5312
|
__decorateClass([
|
|
5386
|
-
(0,
|
|
5313
|
+
(0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5387
5314
|
], Dispute.prototype, "attachments", 2);
|
|
5388
5315
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5316
|
+
(0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5390
5317
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5391
5318
|
Dispute = __decorateClass([
|
|
5392
|
-
(0,
|
|
5319
|
+
(0, import_typeorm56.Entity)("disputes")
|
|
5393
5320
|
], Dispute);
|
|
5394
5321
|
|
|
5395
5322
|
// src/entities/stripe-transaction.entity.ts
|
|
5396
|
-
var
|
|
5323
|
+
var import_typeorm57 = require("typeorm");
|
|
5397
5324
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5398
5325
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5399
5326
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5415,97 +5342,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5415
5342
|
// Full Stripe session response
|
|
5416
5343
|
};
|
|
5417
5344
|
__decorateClass([
|
|
5418
|
-
(0,
|
|
5419
|
-
(0,
|
|
5345
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5346
|
+
(0, import_typeorm57.Index)()
|
|
5420
5347
|
], StripeTransaction.prototype, "userId", 2);
|
|
5421
5348
|
__decorateClass([
|
|
5422
|
-
(0,
|
|
5423
|
-
(0,
|
|
5349
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5350
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5424
5351
|
], StripeTransaction.prototype, "user", 2);
|
|
5425
5352
|
__decorateClass([
|
|
5426
|
-
(0,
|
|
5353
|
+
(0, import_typeorm57.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5427
5354
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5428
5355
|
__decorateClass([
|
|
5429
|
-
(0,
|
|
5356
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5430
5357
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5431
5358
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5359
|
+
(0, import_typeorm57.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5433
5360
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5434
5361
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5362
|
+
(0, import_typeorm57.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5436
5363
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5437
5364
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5365
|
+
(0, import_typeorm57.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5439
5366
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5440
5367
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5368
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5442
5369
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5443
5370
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5371
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5445
5372
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5446
5373
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5374
|
+
(0, import_typeorm57.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5448
5375
|
], StripeTransaction.prototype, "type", 2);
|
|
5449
5376
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5377
|
+
(0, import_typeorm57.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5451
5378
|
], StripeTransaction.prototype, "currency", 2);
|
|
5452
5379
|
__decorateClass([
|
|
5453
|
-
(0,
|
|
5380
|
+
(0, import_typeorm57.Column)({ 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" })
|
|
5454
5381
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5455
5382
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5383
|
+
(0, import_typeorm57.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5457
5384
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5458
5385
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5386
|
+
(0, import_typeorm57.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5460
5387
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5461
5388
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5389
|
+
(0, import_typeorm57.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5463
5390
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5464
5391
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5392
|
+
(0, import_typeorm57.Column)({ 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" })
|
|
5466
5393
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5467
5394
|
__decorateClass([
|
|
5468
|
-
(0,
|
|
5395
|
+
(0, import_typeorm57.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5469
5396
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5470
5397
|
__decorateClass([
|
|
5471
|
-
(0,
|
|
5398
|
+
(0, import_typeorm57.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5472
5399
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5473
5400
|
__decorateClass([
|
|
5474
|
-
(0,
|
|
5401
|
+
(0, import_typeorm57.Column)({ 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" })
|
|
5475
5402
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5476
5403
|
__decorateClass([
|
|
5477
|
-
(0,
|
|
5404
|
+
(0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
|
|
5478
5405
|
], StripeTransaction.prototype, "description", 2);
|
|
5479
5406
|
__decorateClass([
|
|
5480
|
-
(0,
|
|
5407
|
+
(0, import_typeorm57.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5481
5408
|
], StripeTransaction.prototype, "status", 2);
|
|
5482
5409
|
__decorateClass([
|
|
5483
|
-
(0,
|
|
5410
|
+
(0, import_typeorm57.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5484
5411
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5485
5412
|
__decorateClass([
|
|
5486
|
-
(0,
|
|
5413
|
+
(0, import_typeorm57.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5487
5414
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5488
5415
|
__decorateClass([
|
|
5489
|
-
(0,
|
|
5416
|
+
(0, import_typeorm57.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5490
5417
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5491
5418
|
__decorateClass([
|
|
5492
|
-
(0,
|
|
5419
|
+
(0, import_typeorm57.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5493
5420
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5494
5421
|
__decorateClass([
|
|
5495
|
-
(0,
|
|
5422
|
+
(0, import_typeorm57.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5496
5423
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5497
5424
|
__decorateClass([
|
|
5498
|
-
(0,
|
|
5425
|
+
(0, import_typeorm57.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5499
5426
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5500
5427
|
StripeTransaction = __decorateClass([
|
|
5501
|
-
(0,
|
|
5428
|
+
(0, import_typeorm57.Entity)("stripe_transactions")
|
|
5502
5429
|
], StripeTransaction);
|
|
5503
5430
|
|
|
5504
5431
|
// src/entities/wallet.entity.ts
|
|
5505
|
-
var
|
|
5432
|
+
var import_typeorm59 = require("typeorm");
|
|
5506
5433
|
|
|
5507
5434
|
// src/entities/wallet-transaction.entity.ts
|
|
5508
|
-
var
|
|
5435
|
+
var import_typeorm58 = require("typeorm");
|
|
5509
5436
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5510
5437
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5511
5438
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5522,46 +5449,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5522
5449
|
var WalletTransaction = class extends BaseEntity {
|
|
5523
5450
|
};
|
|
5524
5451
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5526
|
-
(0,
|
|
5452
|
+
(0, import_typeorm58.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5453
|
+
(0, import_typeorm58.Index)()
|
|
5527
5454
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5528
5455
|
__decorateClass([
|
|
5529
|
-
(0,
|
|
5530
|
-
(0,
|
|
5456
|
+
(0, import_typeorm58.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5457
|
+
(0, import_typeorm58.JoinColumn)({ name: "wallet_id" })
|
|
5531
5458
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5532
5459
|
__decorateClass([
|
|
5533
|
-
(0,
|
|
5460
|
+
(0, import_typeorm58.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5534
5461
|
], WalletTransaction.prototype, "amount", 2);
|
|
5535
5462
|
__decorateClass([
|
|
5536
|
-
(0,
|
|
5463
|
+
(0, import_typeorm58.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5537
5464
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5538
5465
|
__decorateClass([
|
|
5539
|
-
(0,
|
|
5466
|
+
(0, import_typeorm58.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5540
5467
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5541
5468
|
__decorateClass([
|
|
5542
|
-
(0,
|
|
5469
|
+
(0, import_typeorm58.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5543
5470
|
], WalletTransaction.prototype, "type", 2);
|
|
5544
5471
|
__decorateClass([
|
|
5545
|
-
(0,
|
|
5472
|
+
(0, import_typeorm58.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5546
5473
|
], WalletTransaction.prototype, "status", 2);
|
|
5547
5474
|
__decorateClass([
|
|
5548
|
-
(0,
|
|
5475
|
+
(0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
|
|
5549
5476
|
], WalletTransaction.prototype, "description", 2);
|
|
5550
5477
|
__decorateClass([
|
|
5551
|
-
(0,
|
|
5478
|
+
(0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5552
5479
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5553
5480
|
__decorateClass([
|
|
5554
|
-
(0,
|
|
5481
|
+
(0, import_typeorm58.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5555
5482
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5556
5483
|
__decorateClass([
|
|
5557
|
-
(0,
|
|
5484
|
+
(0, import_typeorm58.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5558
5485
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5559
5486
|
__decorateClass([
|
|
5560
|
-
(0,
|
|
5561
|
-
(0,
|
|
5487
|
+
(0, import_typeorm58.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5488
|
+
(0, import_typeorm58.Index)()
|
|
5562
5489
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5563
5490
|
WalletTransaction = __decorateClass([
|
|
5564
|
-
(0,
|
|
5491
|
+
(0, import_typeorm58.Entity)("wallet_transactions")
|
|
5565
5492
|
], WalletTransaction);
|
|
5566
5493
|
|
|
5567
5494
|
// src/entities/wallet.entity.ts
|
|
@@ -5579,39 +5506,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5579
5506
|
var Wallet = class extends BaseEntity {
|
|
5580
5507
|
};
|
|
5581
5508
|
__decorateClass([
|
|
5582
|
-
(0,
|
|
5583
|
-
(0,
|
|
5509
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5510
|
+
(0, import_typeorm59.Index)()
|
|
5584
5511
|
], Wallet.prototype, "userId", 2);
|
|
5585
5512
|
__decorateClass([
|
|
5586
|
-
(0,
|
|
5587
|
-
(0,
|
|
5513
|
+
(0, import_typeorm59.OneToOne)(() => User, (user) => user.wallet),
|
|
5514
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5588
5515
|
], Wallet.prototype, "user", 2);
|
|
5589
5516
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5517
|
+
(0, import_typeorm59.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5591
5518
|
], Wallet.prototype, "accountType", 2);
|
|
5592
5519
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5520
|
+
(0, import_typeorm59.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5594
5521
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5595
5522
|
__decorateClass([
|
|
5596
|
-
(0,
|
|
5523
|
+
(0, import_typeorm59.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5597
5524
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5598
5525
|
__decorateClass([
|
|
5599
|
-
(0,
|
|
5526
|
+
(0, import_typeorm59.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5600
5527
|
], Wallet.prototype, "walletBalance", 2);
|
|
5601
5528
|
__decorateClass([
|
|
5602
|
-
(0,
|
|
5529
|
+
(0, import_typeorm59.Column)({ 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" })
|
|
5603
5530
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5604
5531
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5532
|
+
(0, import_typeorm59.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5606
5533
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5607
5534
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5535
|
+
(0, import_typeorm59.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5609
5536
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5610
5537
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5538
|
+
(0, import_typeorm59.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5612
5539
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5613
5540
|
Wallet = __decorateClass([
|
|
5614
|
-
(0,
|
|
5541
|
+
(0, import_typeorm59.Entity)("wallets")
|
|
5615
5542
|
], Wallet);
|
|
5616
5543
|
|
|
5617
5544
|
// src/entities/user.entity.ts
|
|
@@ -5639,51 +5566,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5639
5566
|
var User = class extends BaseEntity {
|
|
5640
5567
|
};
|
|
5641
5568
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5569
|
+
(0, import_typeorm60.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5643
5570
|
], User.prototype, "uniqueId", 2);
|
|
5644
5571
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5646
|
-
(0,
|
|
5572
|
+
(0, import_typeorm60.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5573
|
+
(0, import_typeorm60.Index)()
|
|
5647
5574
|
], User.prototype, "parentId", 2);
|
|
5648
5575
|
__decorateClass([
|
|
5649
|
-
(0,
|
|
5650
|
-
(0,
|
|
5576
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5577
|
+
(0, import_typeorm60.JoinColumn)({ name: "parent_id" })
|
|
5651
5578
|
], User.prototype, "parent", 2);
|
|
5652
5579
|
__decorateClass([
|
|
5653
|
-
(0,
|
|
5580
|
+
(0, import_typeorm60.OneToMany)(() => User, (user) => user.parent)
|
|
5654
5581
|
], User.prototype, "children", 2);
|
|
5655
5582
|
__decorateClass([
|
|
5656
|
-
(0,
|
|
5583
|
+
(0, import_typeorm60.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5657
5584
|
], User.prototype, "username", 2);
|
|
5658
5585
|
__decorateClass([
|
|
5659
|
-
(0,
|
|
5586
|
+
(0, import_typeorm60.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5660
5587
|
], User.prototype, "firstName", 2);
|
|
5661
5588
|
__decorateClass([
|
|
5662
|
-
(0,
|
|
5589
|
+
(0, import_typeorm60.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5663
5590
|
], User.prototype, "lastName", 2);
|
|
5664
5591
|
__decorateClass([
|
|
5665
|
-
(0,
|
|
5592
|
+
(0, import_typeorm60.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5666
5593
|
], User.prototype, "dateOfBirth", 2);
|
|
5667
5594
|
__decorateClass([
|
|
5668
|
-
(0,
|
|
5595
|
+
(0, import_typeorm60.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5669
5596
|
], User.prototype, "gender", 2);
|
|
5670
5597
|
__decorateClass([
|
|
5671
|
-
(0,
|
|
5598
|
+
(0, import_typeorm60.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5672
5599
|
], User.prototype, "profilePictureUrl", 2);
|
|
5673
5600
|
__decorateClass([
|
|
5674
|
-
(0,
|
|
5601
|
+
(0, import_typeorm60.Column)({ name: "email", type: "varchar", unique: true })
|
|
5675
5602
|
], User.prototype, "email", 2);
|
|
5676
5603
|
__decorateClass([
|
|
5677
|
-
(0,
|
|
5604
|
+
(0, import_typeorm60.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5678
5605
|
], User.prototype, "mobileCode", 2);
|
|
5679
5606
|
__decorateClass([
|
|
5680
|
-
(0,
|
|
5607
|
+
(0, import_typeorm60.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5681
5608
|
], User.prototype, "mobile", 2);
|
|
5682
5609
|
__decorateClass([
|
|
5683
|
-
(0,
|
|
5610
|
+
(0, import_typeorm60.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5684
5611
|
], User.prototype, "password", 2);
|
|
5685
5612
|
__decorateClass([
|
|
5686
|
-
(0,
|
|
5613
|
+
(0, import_typeorm60.Column)({
|
|
5687
5614
|
name: "account_type",
|
|
5688
5615
|
type: "enum",
|
|
5689
5616
|
enum: AccountType,
|
|
@@ -5691,7 +5618,7 @@ __decorateClass([
|
|
|
5691
5618
|
})
|
|
5692
5619
|
], User.prototype, "accountType", 2);
|
|
5693
5620
|
__decorateClass([
|
|
5694
|
-
(0,
|
|
5621
|
+
(0, import_typeorm60.Column)({
|
|
5695
5622
|
name: "account_status",
|
|
5696
5623
|
type: "enum",
|
|
5697
5624
|
enum: AccountStatus,
|
|
@@ -5699,42 +5626,42 @@ __decorateClass([
|
|
|
5699
5626
|
})
|
|
5700
5627
|
], User.prototype, "accountStatus", 2);
|
|
5701
5628
|
__decorateClass([
|
|
5702
|
-
(0,
|
|
5629
|
+
(0, import_typeorm60.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5703
5630
|
], User.prototype, "isEmailVerified", 2);
|
|
5704
5631
|
__decorateClass([
|
|
5705
|
-
(0,
|
|
5632
|
+
(0, import_typeorm60.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5706
5633
|
], User.prototype, "isMobileVerified", 2);
|
|
5707
5634
|
__decorateClass([
|
|
5708
|
-
(0,
|
|
5635
|
+
(0, import_typeorm60.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5709
5636
|
], User.prototype, "isSocial", 2);
|
|
5710
5637
|
__decorateClass([
|
|
5711
|
-
(0,
|
|
5638
|
+
(0, import_typeorm60.Column)({
|
|
5712
5639
|
name: "last_login_at",
|
|
5713
5640
|
type: "timestamp with time zone",
|
|
5714
5641
|
nullable: true
|
|
5715
5642
|
})
|
|
5716
5643
|
], User.prototype, "lastLoginAt", 2);
|
|
5717
5644
|
__decorateClass([
|
|
5718
|
-
(0,
|
|
5645
|
+
(0, import_typeorm60.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5719
5646
|
], User.prototype, "lastLoginIp", 2);
|
|
5720
5647
|
__decorateClass([
|
|
5721
|
-
(0,
|
|
5648
|
+
(0, import_typeorm60.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5722
5649
|
], User.prototype, "resetToken", 2);
|
|
5723
5650
|
__decorateClass([
|
|
5724
|
-
(0,
|
|
5651
|
+
(0, import_typeorm60.Column)({
|
|
5725
5652
|
name: "reset_token_expire_at",
|
|
5726
5653
|
type: "timestamp with time zone",
|
|
5727
5654
|
nullable: true
|
|
5728
5655
|
})
|
|
5729
5656
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5730
5657
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5658
|
+
(0, import_typeorm60.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5732
5659
|
], User.prototype, "setPasswordToken", 2);
|
|
5733
5660
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5661
|
+
(0, import_typeorm60.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5735
5662
|
], User.prototype, "refreshTokens", 2);
|
|
5736
5663
|
__decorateClass([
|
|
5737
|
-
(0,
|
|
5664
|
+
(0, import_typeorm60.Column)({
|
|
5738
5665
|
name: "provider",
|
|
5739
5666
|
type: "enum",
|
|
5740
5667
|
enum: Provider,
|
|
@@ -5743,208 +5670,208 @@ __decorateClass([
|
|
|
5743
5670
|
})
|
|
5744
5671
|
], User.prototype, "provider", 2);
|
|
5745
5672
|
__decorateClass([
|
|
5746
|
-
(0,
|
|
5673
|
+
(0, import_typeorm60.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5747
5674
|
], User.prototype, "providerToken", 2);
|
|
5748
5675
|
__decorateClass([
|
|
5749
|
-
(0,
|
|
5676
|
+
(0, import_typeorm60.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5750
5677
|
], User.prototype, "linkedInId", 2);
|
|
5751
5678
|
__decorateClass([
|
|
5752
|
-
(0,
|
|
5679
|
+
(0, import_typeorm60.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5753
5680
|
], User.prototype, "googleId", 2);
|
|
5754
5681
|
__decorateClass([
|
|
5755
|
-
(0,
|
|
5682
|
+
(0, import_typeorm60.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5756
5683
|
], User.prototype, "gitLabsId", 2);
|
|
5757
5684
|
__decorateClass([
|
|
5758
|
-
(0,
|
|
5685
|
+
(0, import_typeorm60.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5759
5686
|
], User.prototype, "onBoardedBy", 2);
|
|
5760
5687
|
__decorateClass([
|
|
5761
|
-
(0,
|
|
5688
|
+
(0, import_typeorm60.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5762
5689
|
], User.prototype, "otps", 2);
|
|
5763
5690
|
__decorateClass([
|
|
5764
|
-
(0,
|
|
5691
|
+
(0, import_typeorm60.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5765
5692
|
], User.prototype, "senseloafLogs", 2);
|
|
5766
5693
|
__decorateClass([
|
|
5767
|
-
(0,
|
|
5694
|
+
(0, import_typeorm60.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5768
5695
|
], User.prototype, "companyProfile", 2);
|
|
5769
5696
|
__decorateClass([
|
|
5770
|
-
(0,
|
|
5697
|
+
(0, import_typeorm60.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5771
5698
|
], User.prototype, "companySkills", 2);
|
|
5772
5699
|
__decorateClass([
|
|
5773
|
-
(0,
|
|
5700
|
+
(0, import_typeorm60.OneToMany)(
|
|
5774
5701
|
() => CompanyMemberRole,
|
|
5775
5702
|
(companyMemberRole) => companyMemberRole.user
|
|
5776
5703
|
)
|
|
5777
5704
|
], User.prototype, "companyMemberRoles", 2);
|
|
5778
5705
|
__decorateClass([
|
|
5779
|
-
(0,
|
|
5706
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5780
5707
|
], User.prototype, "companyAiInterview", 2);
|
|
5781
5708
|
__decorateClass([
|
|
5782
|
-
(0,
|
|
5709
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5783
5710
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5784
5711
|
__decorateClass([
|
|
5785
|
-
(0,
|
|
5712
|
+
(0, import_typeorm60.OneToOne)(
|
|
5786
5713
|
() => FreelancerProfile,
|
|
5787
5714
|
(freelancerProfile) => freelancerProfile.user
|
|
5788
5715
|
)
|
|
5789
5716
|
], User.prototype, "freelancerProfile", 2);
|
|
5790
5717
|
__decorateClass([
|
|
5791
|
-
(0,
|
|
5718
|
+
(0, import_typeorm60.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5792
5719
|
], User.prototype, "freelancerResume", 2);
|
|
5793
5720
|
__decorateClass([
|
|
5794
|
-
(0,
|
|
5721
|
+
(0, import_typeorm60.OneToMany)(
|
|
5795
5722
|
() => FreelancerAssessment,
|
|
5796
5723
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5797
5724
|
)
|
|
5798
5725
|
], User.prototype, "assessments", 2);
|
|
5799
5726
|
__decorateClass([
|
|
5800
|
-
(0,
|
|
5727
|
+
(0, import_typeorm60.OneToMany)(
|
|
5801
5728
|
() => AssessmentAnswer,
|
|
5802
5729
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5803
5730
|
)
|
|
5804
5731
|
], User.prototype, "assessmentAnswers", 2);
|
|
5805
5732
|
__decorateClass([
|
|
5806
|
-
(0,
|
|
5733
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5807
5734
|
], User.prototype, "freelancerSkills", 2);
|
|
5808
5735
|
__decorateClass([
|
|
5809
|
-
(0,
|
|
5736
|
+
(0, import_typeorm60.OneToMany)(
|
|
5810
5737
|
() => FreelancerExperience,
|
|
5811
5738
|
(freelancerExperience) => freelancerExperience.user
|
|
5812
5739
|
)
|
|
5813
5740
|
], User.prototype, "freelancerExperience", 2);
|
|
5814
5741
|
__decorateClass([
|
|
5815
|
-
(0,
|
|
5742
|
+
(0, import_typeorm60.OneToMany)(
|
|
5816
5743
|
() => FreelancerEducation,
|
|
5817
5744
|
(freelancerEducation) => freelancerEducation.user
|
|
5818
5745
|
)
|
|
5819
5746
|
], User.prototype, "freelancerEducation", 2);
|
|
5820
5747
|
__decorateClass([
|
|
5821
|
-
(0,
|
|
5748
|
+
(0, import_typeorm60.OneToMany)(
|
|
5822
5749
|
() => FreelancerProject,
|
|
5823
5750
|
(freelancerProject) => freelancerProject.user
|
|
5824
5751
|
)
|
|
5825
5752
|
], User.prototype, "freelancerProject", 2);
|
|
5826
5753
|
__decorateClass([
|
|
5827
|
-
(0,
|
|
5754
|
+
(0, import_typeorm60.OneToMany)(
|
|
5828
5755
|
() => FreelancerCaseStudy,
|
|
5829
5756
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5830
5757
|
)
|
|
5831
5758
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5832
5759
|
__decorateClass([
|
|
5833
|
-
(0,
|
|
5760
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5834
5761
|
], User.prototype, "freelancerTool", 2);
|
|
5835
5762
|
__decorateClass([
|
|
5836
|
-
(0,
|
|
5763
|
+
(0, import_typeorm60.OneToMany)(
|
|
5837
5764
|
() => FreelancerFramework,
|
|
5838
5765
|
(freelancerFramework) => freelancerFramework.user
|
|
5839
5766
|
)
|
|
5840
5767
|
], User.prototype, "freelancerFramework", 2);
|
|
5841
5768
|
__decorateClass([
|
|
5842
|
-
(0,
|
|
5769
|
+
(0, import_typeorm60.OneToOne)(
|
|
5843
5770
|
() => FreelancerDeclaration,
|
|
5844
5771
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5845
5772
|
)
|
|
5846
5773
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5847
5774
|
__decorateClass([
|
|
5848
|
-
(0,
|
|
5775
|
+
(0, import_typeorm60.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5849
5776
|
], User.prototype, "freelancerMcq", 2);
|
|
5850
5777
|
__decorateClass([
|
|
5851
|
-
(0,
|
|
5778
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5852
5779
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5853
5780
|
__decorateClass([
|
|
5854
|
-
(0,
|
|
5781
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5855
5782
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5856
5783
|
__decorateClass([
|
|
5857
|
-
(0,
|
|
5784
|
+
(0, import_typeorm60.OneToMany)(
|
|
5858
5785
|
() => F2fInterviewRescheduleRequest,
|
|
5859
5786
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5860
5787
|
)
|
|
5861
5788
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5862
5789
|
__decorateClass([
|
|
5863
|
-
(0,
|
|
5790
|
+
(0, import_typeorm60.OneToMany)(() => Job, (job) => job.user)
|
|
5864
5791
|
], User.prototype, "jobs", 2);
|
|
5865
5792
|
__decorateClass([
|
|
5866
|
-
(0,
|
|
5793
|
+
(0, import_typeorm60.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5867
5794
|
], User.prototype, "jobApplications", 2);
|
|
5868
5795
|
__decorateClass([
|
|
5869
|
-
(0,
|
|
5796
|
+
(0, import_typeorm60.OneToMany)(() => Interview, (interview) => interview.user)
|
|
5870
5797
|
], User.prototype, "interviews", 2);
|
|
5871
5798
|
__decorateClass([
|
|
5872
|
-
(0,
|
|
5799
|
+
(0, import_typeorm60.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5873
5800
|
], User.prototype, "bankDetail", 2);
|
|
5874
5801
|
__decorateClass([
|
|
5875
|
-
(0,
|
|
5802
|
+
(0, import_typeorm60.OneToMany)(
|
|
5876
5803
|
() => SystemPreference,
|
|
5877
5804
|
(systemPreference) => systemPreference.user
|
|
5878
5805
|
)
|
|
5879
5806
|
], User.prototype, "systemPreference", 2);
|
|
5880
5807
|
__decorateClass([
|
|
5881
|
-
(0,
|
|
5808
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
5882
5809
|
], User.prototype, "givenRatings", 2);
|
|
5883
5810
|
__decorateClass([
|
|
5884
|
-
(0,
|
|
5811
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
5885
5812
|
], User.prototype, "receivedRatings", 2);
|
|
5886
5813
|
__decorateClass([
|
|
5887
|
-
(0,
|
|
5814
|
+
(0, import_typeorm60.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5888
5815
|
], User.prototype, "adminUserRoles", 2);
|
|
5889
5816
|
__decorateClass([
|
|
5890
|
-
(0,
|
|
5817
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.client)
|
|
5891
5818
|
], User.prototype, "clientContracts", 2);
|
|
5892
5819
|
__decorateClass([
|
|
5893
|
-
(0,
|
|
5820
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
5894
5821
|
], User.prototype, "clientEscrowWallets", 2);
|
|
5895
5822
|
__decorateClass([
|
|
5896
|
-
(0,
|
|
5823
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
5897
5824
|
], User.prototype, "freelancerContracts", 2);
|
|
5898
5825
|
__decorateClass([
|
|
5899
|
-
(0,
|
|
5826
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
5900
5827
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
5901
5828
|
__decorateClass([
|
|
5902
|
-
(0,
|
|
5829
|
+
(0, import_typeorm60.OneToOne)(() => Signature, (signature) => signature.user)
|
|
5903
5830
|
], User.prototype, "signatures", 2);
|
|
5904
5831
|
__decorateClass([
|
|
5905
|
-
(0,
|
|
5832
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
5906
5833
|
], User.prototype, "clientTimesheets", 2);
|
|
5907
5834
|
__decorateClass([
|
|
5908
|
-
(0,
|
|
5835
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5909
5836
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5910
5837
|
__decorateClass([
|
|
5911
|
-
(0,
|
|
5838
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5912
5839
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5913
5840
|
__decorateClass([
|
|
5914
|
-
(0,
|
|
5841
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
5915
5842
|
], User.prototype, "clientInvoice", 2);
|
|
5916
5843
|
__decorateClass([
|
|
5917
|
-
(0,
|
|
5844
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5918
5845
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5919
5846
|
__decorateClass([
|
|
5920
|
-
(0,
|
|
5847
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
5921
5848
|
], User.prototype, "freelancerInvoice", 2);
|
|
5922
5849
|
__decorateClass([
|
|
5923
|
-
(0,
|
|
5850
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5924
5851
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5925
5852
|
__decorateClass([
|
|
5926
|
-
(0,
|
|
5853
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5927
5854
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5928
5855
|
__decorateClass([
|
|
5929
|
-
(0,
|
|
5856
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5930
5857
|
], User.prototype, "initiatedDisputes", 2);
|
|
5931
5858
|
__decorateClass([
|
|
5932
|
-
(0,
|
|
5859
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5933
5860
|
], User.prototype, "respondentDisputes", 2);
|
|
5934
5861
|
__decorateClass([
|
|
5935
|
-
(0,
|
|
5862
|
+
(0, import_typeorm60.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
5936
5863
|
], User.prototype, "wallet", 2);
|
|
5937
5864
|
__decorateClass([
|
|
5938
|
-
(0,
|
|
5865
|
+
(0, import_typeorm60.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5939
5866
|
], User.prototype, "stripeTransactions", 2);
|
|
5940
5867
|
__decorateClass([
|
|
5941
|
-
(0,
|
|
5868
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
5942
5869
|
], User.prototype, "clientDisputes", 2);
|
|
5943
5870
|
__decorateClass([
|
|
5944
|
-
(0,
|
|
5871
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
5945
5872
|
], User.prototype, "freelancerDisputes", 2);
|
|
5946
5873
|
User = __decorateClass([
|
|
5947
|
-
(0,
|
|
5874
|
+
(0, import_typeorm60.Entity)("users")
|
|
5948
5875
|
], User);
|
|
5949
5876
|
|
|
5950
5877
|
// src/entities/rating.entity.ts
|
|
@@ -5956,36 +5883,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5956
5883
|
var Rating = class extends BaseEntity {
|
|
5957
5884
|
};
|
|
5958
5885
|
__decorateClass([
|
|
5959
|
-
(0,
|
|
5960
|
-
(0,
|
|
5886
|
+
(0, import_typeorm61.Column)({ name: "reviewer_id", type: "integer" }),
|
|
5887
|
+
(0, import_typeorm61.Index)()
|
|
5961
5888
|
], Rating.prototype, "reviewer_id", 2);
|
|
5962
5889
|
__decorateClass([
|
|
5963
|
-
(0,
|
|
5964
|
-
(0,
|
|
5890
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5891
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewer_id" })
|
|
5965
5892
|
], Rating.prototype, "reviewer", 2);
|
|
5966
5893
|
__decorateClass([
|
|
5967
|
-
(0,
|
|
5968
|
-
(0,
|
|
5894
|
+
(0, import_typeorm61.Column)({ name: "reviewee_id", type: "integer" }),
|
|
5895
|
+
(0, import_typeorm61.Index)()
|
|
5969
5896
|
], Rating.prototype, "reviewee_id", 2);
|
|
5970
5897
|
__decorateClass([
|
|
5971
|
-
(0,
|
|
5972
|
-
(0,
|
|
5898
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5899
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewee_id" })
|
|
5973
5900
|
], Rating.prototype, "reviewee", 2);
|
|
5974
5901
|
__decorateClass([
|
|
5975
|
-
(0,
|
|
5902
|
+
(0, import_typeorm61.Column)({
|
|
5976
5903
|
type: "enum",
|
|
5977
5904
|
enum: RatingTypeEnum,
|
|
5978
5905
|
nullable: true
|
|
5979
5906
|
})
|
|
5980
5907
|
], Rating.prototype, "ratingType", 2);
|
|
5981
5908
|
__decorateClass([
|
|
5982
|
-
(0,
|
|
5909
|
+
(0, import_typeorm61.Column)({ type: "integer", nullable: true })
|
|
5983
5910
|
], Rating.prototype, "rating", 2);
|
|
5984
5911
|
__decorateClass([
|
|
5985
|
-
(0,
|
|
5912
|
+
(0, import_typeorm61.Column)({ type: "text", nullable: true })
|
|
5986
5913
|
], Rating.prototype, "review", 2);
|
|
5987
5914
|
Rating = __decorateClass([
|
|
5988
|
-
(0,
|
|
5915
|
+
(0, import_typeorm61.Entity)("ratings")
|
|
5989
5916
|
], Rating);
|
|
5990
5917
|
|
|
5991
5918
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7845,11 +7772,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
7845
7772
|
};
|
|
7846
7773
|
|
|
7847
7774
|
// src/entities/sequence-generator.entity.ts
|
|
7848
|
-
var
|
|
7775
|
+
var import_typeorm62 = require("typeorm");
|
|
7849
7776
|
var SequenceGenerator = class extends BaseEntity {
|
|
7850
7777
|
};
|
|
7851
7778
|
__decorateClass([
|
|
7852
|
-
(0,
|
|
7779
|
+
(0, import_typeorm62.Column)({
|
|
7853
7780
|
name: "module",
|
|
7854
7781
|
type: "varchar",
|
|
7855
7782
|
length: 50,
|
|
@@ -7858,7 +7785,7 @@ __decorateClass([
|
|
|
7858
7785
|
})
|
|
7859
7786
|
], SequenceGenerator.prototype, "module", 2);
|
|
7860
7787
|
__decorateClass([
|
|
7861
|
-
(0,
|
|
7788
|
+
(0, import_typeorm62.Column)({
|
|
7862
7789
|
name: "prefix",
|
|
7863
7790
|
type: "varchar",
|
|
7864
7791
|
length: 10,
|
|
@@ -7867,7 +7794,7 @@ __decorateClass([
|
|
|
7867
7794
|
})
|
|
7868
7795
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7869
7796
|
__decorateClass([
|
|
7870
|
-
(0,
|
|
7797
|
+
(0, import_typeorm62.Column)({
|
|
7871
7798
|
name: "last_sequence",
|
|
7872
7799
|
type: "int",
|
|
7873
7800
|
nullable: false,
|
|
@@ -7875,7 +7802,7 @@ __decorateClass([
|
|
|
7875
7802
|
})
|
|
7876
7803
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7877
7804
|
__decorateClass([
|
|
7878
|
-
(0,
|
|
7805
|
+
(0, import_typeorm62.Column)({
|
|
7879
7806
|
name: "year",
|
|
7880
7807
|
type: "int",
|
|
7881
7808
|
nullable: true,
|
|
@@ -7883,11 +7810,11 @@ __decorateClass([
|
|
|
7883
7810
|
})
|
|
7884
7811
|
], SequenceGenerator.prototype, "year", 2);
|
|
7885
7812
|
SequenceGenerator = __decorateClass([
|
|
7886
|
-
(0,
|
|
7813
|
+
(0, import_typeorm62.Entity)("sequence_generators")
|
|
7887
7814
|
], SequenceGenerator);
|
|
7888
7815
|
|
|
7889
7816
|
// src/entities/question.entity.ts
|
|
7890
|
-
var
|
|
7817
|
+
var import_typeorm63 = require("typeorm");
|
|
7891
7818
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7892
7819
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7893
7820
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7896,16 +7823,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7896
7823
|
var Question = class extends BaseEntity {
|
|
7897
7824
|
};
|
|
7898
7825
|
__decorateClass([
|
|
7899
|
-
(0,
|
|
7826
|
+
(0, import_typeorm63.Column)({ name: "question", type: "varchar" })
|
|
7900
7827
|
], Question.prototype, "question", 2);
|
|
7901
7828
|
__decorateClass([
|
|
7902
|
-
(0,
|
|
7829
|
+
(0, import_typeorm63.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
7903
7830
|
], Question.prototype, "hint", 2);
|
|
7904
7831
|
__decorateClass([
|
|
7905
|
-
(0,
|
|
7832
|
+
(0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7906
7833
|
], Question.prototype, "slug", 2);
|
|
7907
7834
|
__decorateClass([
|
|
7908
|
-
(0,
|
|
7835
|
+
(0, import_typeorm63.Column)({
|
|
7909
7836
|
name: "question_for",
|
|
7910
7837
|
type: "enum",
|
|
7911
7838
|
enum: QuestionFor,
|
|
@@ -7913,45 +7840,45 @@ __decorateClass([
|
|
|
7913
7840
|
})
|
|
7914
7841
|
], Question.prototype, "questionFor", 2);
|
|
7915
7842
|
__decorateClass([
|
|
7916
|
-
(0,
|
|
7843
|
+
(0, import_typeorm63.Column)({ name: "type", type: "varchar", nullable: true })
|
|
7917
7844
|
], Question.prototype, "type", 2);
|
|
7918
7845
|
__decorateClass([
|
|
7919
|
-
(0,
|
|
7846
|
+
(0, import_typeorm63.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
7920
7847
|
], Question.prototype, "options", 2);
|
|
7921
7848
|
__decorateClass([
|
|
7922
|
-
(0,
|
|
7849
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7923
7850
|
], Question.prototype, "isActive", 2);
|
|
7924
7851
|
Question = __decorateClass([
|
|
7925
|
-
(0,
|
|
7852
|
+
(0, import_typeorm63.Entity)("questions")
|
|
7926
7853
|
], Question);
|
|
7927
7854
|
|
|
7928
7855
|
// src/entities/skill.entity.ts
|
|
7929
|
-
var
|
|
7856
|
+
var import_typeorm64 = require("typeorm");
|
|
7930
7857
|
var Skill = class extends BaseEntity {
|
|
7931
7858
|
};
|
|
7932
7859
|
__decorateClass([
|
|
7933
|
-
(0,
|
|
7860
|
+
(0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7934
7861
|
], Skill.prototype, "name", 2);
|
|
7935
7862
|
__decorateClass([
|
|
7936
|
-
(0,
|
|
7863
|
+
(0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7937
7864
|
], Skill.prototype, "slug", 2);
|
|
7938
7865
|
__decorateClass([
|
|
7939
|
-
(0,
|
|
7866
|
+
(0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7940
7867
|
], Skill.prototype, "isActive", 2);
|
|
7941
7868
|
Skill = __decorateClass([
|
|
7942
|
-
(0,
|
|
7869
|
+
(0, import_typeorm64.Entity)("skills")
|
|
7943
7870
|
], Skill);
|
|
7944
7871
|
|
|
7945
7872
|
// src/entities/skill-catalog.entity.ts
|
|
7946
|
-
var
|
|
7873
|
+
var import_typeorm65 = require("typeorm");
|
|
7947
7874
|
var SkillCatalog = class extends BaseEntity {
|
|
7948
7875
|
};
|
|
7949
7876
|
__decorateClass([
|
|
7950
|
-
(0,
|
|
7951
|
-
(0,
|
|
7877
|
+
(0, import_typeorm65.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
7878
|
+
(0, import_typeorm65.Index)()
|
|
7952
7879
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
7953
7880
|
__decorateClass([
|
|
7954
|
-
(0,
|
|
7881
|
+
(0, import_typeorm65.Column)({
|
|
7955
7882
|
name: "aliases",
|
|
7956
7883
|
type: "text",
|
|
7957
7884
|
array: true,
|
|
@@ -7959,20 +7886,20 @@ __decorateClass([
|
|
|
7959
7886
|
})
|
|
7960
7887
|
], SkillCatalog.prototype, "aliases", 2);
|
|
7961
7888
|
__decorateClass([
|
|
7962
|
-
(0,
|
|
7889
|
+
(0, import_typeorm65.Column)({
|
|
7963
7890
|
name: "variations",
|
|
7964
7891
|
type: "jsonb",
|
|
7965
7892
|
default: "{}"
|
|
7966
7893
|
})
|
|
7967
7894
|
], SkillCatalog.prototype, "variations", 2);
|
|
7968
7895
|
__decorateClass([
|
|
7969
|
-
(0,
|
|
7896
|
+
(0, import_typeorm65.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
7970
7897
|
], SkillCatalog.prototype, "category", 2);
|
|
7971
7898
|
__decorateClass([
|
|
7972
|
-
(0,
|
|
7899
|
+
(0, import_typeorm65.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
7973
7900
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
7974
7901
|
__decorateClass([
|
|
7975
|
-
(0,
|
|
7902
|
+
(0, import_typeorm65.Column)({
|
|
7976
7903
|
name: "related_skills",
|
|
7977
7904
|
type: "text",
|
|
7978
7905
|
array: true,
|
|
@@ -7980,111 +7907,111 @@ __decorateClass([
|
|
|
7980
7907
|
})
|
|
7981
7908
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
7982
7909
|
__decorateClass([
|
|
7983
|
-
(0,
|
|
7984
|
-
(0,
|
|
7910
|
+
(0, import_typeorm65.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
7911
|
+
(0, import_typeorm65.Index)()
|
|
7985
7912
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
7986
7913
|
__decorateClass([
|
|
7987
|
-
(0,
|
|
7914
|
+
(0, import_typeorm65.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
7988
7915
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
7989
7916
|
__decorateClass([
|
|
7990
|
-
(0,
|
|
7917
|
+
(0, import_typeorm65.Column)({ name: "first_seen_date", type: "date" })
|
|
7991
7918
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
7992
7919
|
__decorateClass([
|
|
7993
|
-
(0,
|
|
7920
|
+
(0, import_typeorm65.Column)({ name: "last_updated_date", type: "date" })
|
|
7994
7921
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
7995
7922
|
__decorateClass([
|
|
7996
|
-
(0,
|
|
7923
|
+
(0, import_typeorm65.Column)({
|
|
7997
7924
|
name: "search_vector",
|
|
7998
7925
|
type: "tsvector",
|
|
7999
7926
|
nullable: true
|
|
8000
7927
|
})
|
|
8001
7928
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8002
7929
|
SkillCatalog = __decorateClass([
|
|
8003
|
-
(0,
|
|
7930
|
+
(0, import_typeorm65.Entity)("skill_catalogs")
|
|
8004
7931
|
], SkillCatalog);
|
|
8005
7932
|
|
|
8006
7933
|
// src/entities/job-role.entity.ts
|
|
8007
|
-
var
|
|
7934
|
+
var import_typeorm66 = require("typeorm");
|
|
8008
7935
|
var JobRoles = class extends BaseEntity {
|
|
8009
7936
|
};
|
|
8010
7937
|
__decorateClass([
|
|
8011
|
-
(0,
|
|
7938
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8012
7939
|
], JobRoles.prototype, "slug", 2);
|
|
8013
7940
|
__decorateClass([
|
|
8014
|
-
(0,
|
|
7941
|
+
(0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8015
7942
|
], JobRoles.prototype, "name", 2);
|
|
8016
7943
|
__decorateClass([
|
|
8017
|
-
(0,
|
|
7944
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8018
7945
|
], JobRoles.prototype, "isActive", 2);
|
|
8019
7946
|
JobRoles = __decorateClass([
|
|
8020
|
-
(0,
|
|
7947
|
+
(0, import_typeorm66.Entity)("job_roles")
|
|
8021
7948
|
], JobRoles);
|
|
8022
7949
|
|
|
8023
7950
|
// src/entities/plan.entity.ts
|
|
8024
|
-
var
|
|
7951
|
+
var import_typeorm68 = require("typeorm");
|
|
8025
7952
|
|
|
8026
7953
|
// src/entities/feature.entity.ts
|
|
8027
|
-
var
|
|
7954
|
+
var import_typeorm67 = require("typeorm");
|
|
8028
7955
|
var Feature = class extends BaseEntity {
|
|
8029
7956
|
};
|
|
8030
7957
|
__decorateClass([
|
|
8031
|
-
(0,
|
|
7958
|
+
(0, import_typeorm67.Column)({ name: "name", type: "varchar", unique: true })
|
|
8032
7959
|
], Feature.prototype, "name", 2);
|
|
8033
7960
|
__decorateClass([
|
|
8034
|
-
(0,
|
|
7961
|
+
(0, import_typeorm67.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
8035
7962
|
], Feature.prototype, "plans", 2);
|
|
8036
7963
|
Feature = __decorateClass([
|
|
8037
|
-
(0,
|
|
7964
|
+
(0, import_typeorm67.Entity)("features")
|
|
8038
7965
|
], Feature);
|
|
8039
7966
|
|
|
8040
7967
|
// src/entities/plan.entity.ts
|
|
8041
7968
|
var Plan = class extends BaseEntity {
|
|
8042
7969
|
};
|
|
8043
7970
|
__decorateClass([
|
|
8044
|
-
(0,
|
|
7971
|
+
(0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
|
|
8045
7972
|
], Plan.prototype, "name", 2);
|
|
8046
7973
|
__decorateClass([
|
|
8047
|
-
(0,
|
|
7974
|
+
(0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8048
7975
|
], Plan.prototype, "description", 2);
|
|
8049
7976
|
__decorateClass([
|
|
8050
|
-
(0,
|
|
7977
|
+
(0, import_typeorm68.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8051
7978
|
], Plan.prototype, "price", 2);
|
|
8052
7979
|
__decorateClass([
|
|
8053
|
-
(0,
|
|
7980
|
+
(0, import_typeorm68.Column)({ name: "billing_period", type: "varchar" })
|
|
8054
7981
|
], Plan.prototype, "billingPeriod", 2);
|
|
8055
7982
|
__decorateClass([
|
|
8056
|
-
(0,
|
|
7983
|
+
(0, import_typeorm68.Column)({ name: "is_current", type: "boolean", default: false })
|
|
8057
7984
|
], Plan.prototype, "isCurrent", 2);
|
|
8058
7985
|
__decorateClass([
|
|
8059
|
-
(0,
|
|
8060
|
-
(0,
|
|
7986
|
+
(0, import_typeorm68.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7987
|
+
(0, import_typeorm68.JoinTable)()
|
|
8061
7988
|
], Plan.prototype, "features", 2);
|
|
8062
7989
|
Plan = __decorateClass([
|
|
8063
|
-
(0,
|
|
7990
|
+
(0, import_typeorm68.Entity)("plans")
|
|
8064
7991
|
], Plan);
|
|
8065
7992
|
|
|
8066
7993
|
// src/entities/cms.entity.ts
|
|
8067
|
-
var
|
|
7994
|
+
var import_typeorm69 = require("typeorm");
|
|
8068
7995
|
var Cms = class extends BaseEntity {
|
|
8069
7996
|
};
|
|
8070
7997
|
__decorateClass([
|
|
8071
|
-
(0,
|
|
7998
|
+
(0, import_typeorm69.Column)({ name: "title", type: "varchar", nullable: true })
|
|
8072
7999
|
], Cms.prototype, "title", 2);
|
|
8073
8000
|
__decorateClass([
|
|
8074
|
-
(0,
|
|
8001
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8075
8002
|
], Cms.prototype, "slug", 2);
|
|
8076
8003
|
__decorateClass([
|
|
8077
|
-
(0,
|
|
8004
|
+
(0, import_typeorm69.Column)({ name: "content", type: "varchar", nullable: true })
|
|
8078
8005
|
], Cms.prototype, "content", 2);
|
|
8079
8006
|
__decorateClass([
|
|
8080
|
-
(0,
|
|
8007
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8081
8008
|
], Cms.prototype, "isActive", 2);
|
|
8082
8009
|
Cms = __decorateClass([
|
|
8083
|
-
(0,
|
|
8010
|
+
(0, import_typeorm69.Entity)("cms")
|
|
8084
8011
|
], Cms);
|
|
8085
8012
|
|
|
8086
8013
|
// src/entities/lead.entity.ts
|
|
8087
|
-
var
|
|
8014
|
+
var import_typeorm70 = require("typeorm");
|
|
8088
8015
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8089
8016
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
8090
8017
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -8093,22 +8020,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8093
8020
|
var Lead = class extends BaseEntity {
|
|
8094
8021
|
};
|
|
8095
8022
|
__decorateClass([
|
|
8096
|
-
(0,
|
|
8023
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8097
8024
|
], Lead.prototype, "name", 2);
|
|
8098
8025
|
__decorateClass([
|
|
8099
|
-
(0,
|
|
8026
|
+
(0, import_typeorm70.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8100
8027
|
], Lead.prototype, "mobileCode", 2);
|
|
8101
8028
|
__decorateClass([
|
|
8102
|
-
(0,
|
|
8029
|
+
(0, import_typeorm70.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
8103
8030
|
], Lead.prototype, "mobile", 2);
|
|
8104
8031
|
__decorateClass([
|
|
8105
|
-
(0,
|
|
8032
|
+
(0, import_typeorm70.Column)({ name: "email", type: "varchar", nullable: true })
|
|
8106
8033
|
], Lead.prototype, "email", 2);
|
|
8107
8034
|
__decorateClass([
|
|
8108
|
-
(0,
|
|
8035
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8109
8036
|
], Lead.prototype, "description", 2);
|
|
8110
8037
|
__decorateClass([
|
|
8111
|
-
(0,
|
|
8038
|
+
(0, import_typeorm70.Column)({
|
|
8112
8039
|
name: "category",
|
|
8113
8040
|
type: "enum",
|
|
8114
8041
|
enum: CategoryEmum,
|
|
@@ -8116,129 +8043,129 @@ __decorateClass([
|
|
|
8116
8043
|
})
|
|
8117
8044
|
], Lead.prototype, "category", 2);
|
|
8118
8045
|
Lead = __decorateClass([
|
|
8119
|
-
(0,
|
|
8046
|
+
(0, import_typeorm70.Entity)("leads")
|
|
8120
8047
|
], Lead);
|
|
8121
8048
|
|
|
8122
8049
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
8123
|
-
var
|
|
8050
|
+
var import_typeorm71 = require("typeorm");
|
|
8124
8051
|
var JobFreelancerRecommendation = class {
|
|
8125
8052
|
};
|
|
8126
8053
|
__decorateClass([
|
|
8127
|
-
(0,
|
|
8054
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_id" })
|
|
8128
8055
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
8129
8056
|
__decorateClass([
|
|
8130
|
-
(0,
|
|
8057
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_uuid" })
|
|
8131
8058
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
8132
8059
|
__decorateClass([
|
|
8133
|
-
(0,
|
|
8060
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_unique_id" })
|
|
8134
8061
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
8135
8062
|
__decorateClass([
|
|
8136
|
-
(0,
|
|
8063
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_role" })
|
|
8137
8064
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
8138
8065
|
__decorateClass([
|
|
8139
|
-
(0,
|
|
8066
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_openings" })
|
|
8140
8067
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
8141
8068
|
__decorateClass([
|
|
8142
|
-
(0,
|
|
8069
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_location" })
|
|
8143
8070
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
8144
8071
|
__decorateClass([
|
|
8145
|
-
(0,
|
|
8072
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_currency" })
|
|
8146
8073
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
8147
8074
|
__decorateClass([
|
|
8148
|
-
(0,
|
|
8075
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_from" })
|
|
8149
8076
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
8150
8077
|
__decorateClass([
|
|
8151
|
-
(0,
|
|
8078
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_to" })
|
|
8152
8079
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
8153
8080
|
__decorateClass([
|
|
8154
|
-
(0,
|
|
8081
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_employment_type" })
|
|
8155
8082
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
8156
8083
|
__decorateClass([
|
|
8157
|
-
(0,
|
|
8084
|
+
(0, import_typeorm71.ViewColumn)({ name: "application_received" })
|
|
8158
8085
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
8159
8086
|
__decorateClass([
|
|
8160
|
-
(0,
|
|
8087
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_posted_at" })
|
|
8161
8088
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
8162
8089
|
__decorateClass([
|
|
8163
|
-
(0,
|
|
8090
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
|
|
8164
8091
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8165
8092
|
__decorateClass([
|
|
8166
|
-
(0,
|
|
8093
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
|
|
8167
8094
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8168
8095
|
__decorateClass([
|
|
8169
|
-
(0,
|
|
8096
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8170
8097
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8171
8098
|
__decorateClass([
|
|
8172
|
-
(0,
|
|
8099
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
|
|
8173
8100
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8174
8101
|
__decorateClass([
|
|
8175
|
-
(0,
|
|
8102
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
|
|
8176
8103
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8177
8104
|
__decorateClass([
|
|
8178
|
-
(0,
|
|
8105
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
|
|
8179
8106
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8180
8107
|
__decorateClass([
|
|
8181
|
-
(0,
|
|
8108
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8182
8109
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8183
8110
|
__decorateClass([
|
|
8184
|
-
(0,
|
|
8111
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
|
|
8185
8112
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8186
8113
|
__decorateClass([
|
|
8187
|
-
(0,
|
|
8114
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
|
|
8188
8115
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8189
8116
|
__decorateClass([
|
|
8190
|
-
(0,
|
|
8117
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
|
|
8191
8118
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8192
8119
|
__decorateClass([
|
|
8193
|
-
(0,
|
|
8120
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
|
|
8194
8121
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8195
8122
|
__decorateClass([
|
|
8196
|
-
(0,
|
|
8123
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8197
8124
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8198
8125
|
__decorateClass([
|
|
8199
|
-
(0,
|
|
8126
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8200
8127
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8201
8128
|
__decorateClass([
|
|
8202
|
-
(0,
|
|
8129
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
|
|
8203
8130
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8204
8131
|
__decorateClass([
|
|
8205
|
-
(0,
|
|
8132
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8206
8133
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8207
8134
|
__decorateClass([
|
|
8208
|
-
(0,
|
|
8135
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_id" })
|
|
8209
8136
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
8210
8137
|
__decorateClass([
|
|
8211
|
-
(0,
|
|
8138
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
|
|
8212
8139
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8213
8140
|
__decorateClass([
|
|
8214
|
-
(0,
|
|
8141
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_first_name" })
|
|
8215
8142
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
8216
8143
|
__decorateClass([
|
|
8217
|
-
(0,
|
|
8144
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_last_name" })
|
|
8218
8145
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
8219
8146
|
__decorateClass([
|
|
8220
|
-
(0,
|
|
8147
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_email" })
|
|
8221
8148
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
8222
8149
|
__decorateClass([
|
|
8223
|
-
(0,
|
|
8150
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_logo" })
|
|
8224
8151
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
8225
8152
|
__decorateClass([
|
|
8226
|
-
(0,
|
|
8153
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_name" })
|
|
8227
8154
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
8228
8155
|
__decorateClass([
|
|
8229
|
-
(0,
|
|
8156
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
|
|
8230
8157
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8231
8158
|
__decorateClass([
|
|
8232
|
-
(0,
|
|
8159
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
|
|
8233
8160
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8234
8161
|
__decorateClass([
|
|
8235
|
-
(0,
|
|
8162
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills" })
|
|
8236
8163
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8237
8164
|
__decorateClass([
|
|
8238
|
-
(0,
|
|
8165
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
|
|
8239
8166
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8240
8167
|
JobFreelancerRecommendation = __decorateClass([
|
|
8241
|
-
(0,
|
|
8168
|
+
(0, import_typeorm71.ViewEntity)({
|
|
8242
8169
|
name: "job_freelancer_recommendations",
|
|
8243
8170
|
materialized: true,
|
|
8244
8171
|
synchronize: false
|
|
@@ -8247,32 +8174,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
8247
8174
|
], JobFreelancerRecommendation);
|
|
8248
8175
|
|
|
8249
8176
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
8250
|
-
var
|
|
8177
|
+
var import_typeorm72 = require("typeorm");
|
|
8251
8178
|
var JobFreelancerRecommendationV2 = class {
|
|
8252
8179
|
};
|
|
8253
8180
|
__decorateClass([
|
|
8254
|
-
(0,
|
|
8181
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_id" })
|
|
8255
8182
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
8256
8183
|
__decorateClass([
|
|
8257
|
-
(0,
|
|
8184
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_owner_id" })
|
|
8258
8185
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
8259
8186
|
__decorateClass([
|
|
8260
|
-
(0,
|
|
8187
|
+
(0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
|
|
8261
8188
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
8262
8189
|
__decorateClass([
|
|
8263
|
-
(0,
|
|
8190
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
|
|
8264
8191
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
8265
8192
|
__decorateClass([
|
|
8266
|
-
(0,
|
|
8193
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
|
|
8267
8194
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
8268
8195
|
__decorateClass([
|
|
8269
|
-
(0,
|
|
8196
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills" })
|
|
8270
8197
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
8271
8198
|
__decorateClass([
|
|
8272
|
-
(0,
|
|
8199
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
|
|
8273
8200
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8274
8201
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8275
|
-
(0,
|
|
8202
|
+
(0, import_typeorm72.ViewEntity)({
|
|
8276
8203
|
name: "job_freelancer_recommendations_v2",
|
|
8277
8204
|
materialized: true,
|
|
8278
8205
|
synchronize: false
|
|
@@ -8281,74 +8208,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8281
8208
|
], JobFreelancerRecommendationV2);
|
|
8282
8209
|
|
|
8283
8210
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8284
|
-
var
|
|
8211
|
+
var import_typeorm73 = require("typeorm");
|
|
8285
8212
|
var ClientFreelancerRecommendation = class {
|
|
8286
8213
|
};
|
|
8287
8214
|
__decorateClass([
|
|
8288
|
-
(0,
|
|
8215
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_id" })
|
|
8289
8216
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8290
8217
|
__decorateClass([
|
|
8291
|
-
(0,
|
|
8218
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
|
|
8292
8219
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8293
8220
|
__decorateClass([
|
|
8294
|
-
(0,
|
|
8221
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
|
|
8295
8222
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8296
8223
|
__decorateClass([
|
|
8297
|
-
(0,
|
|
8224
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
|
|
8298
8225
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8299
8226
|
__decorateClass([
|
|
8300
|
-
(0,
|
|
8227
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8301
8228
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8302
8229
|
__decorateClass([
|
|
8303
|
-
(0,
|
|
8230
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
|
|
8304
8231
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8305
8232
|
__decorateClass([
|
|
8306
|
-
(0,
|
|
8233
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
|
|
8307
8234
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8308
8235
|
__decorateClass([
|
|
8309
|
-
(0,
|
|
8236
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
|
|
8310
8237
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8311
8238
|
__decorateClass([
|
|
8312
|
-
(0,
|
|
8239
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8313
8240
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8314
8241
|
__decorateClass([
|
|
8315
|
-
(0,
|
|
8242
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
|
|
8316
8243
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8317
8244
|
__decorateClass([
|
|
8318
|
-
(0,
|
|
8245
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
|
|
8319
8246
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8320
8247
|
__decorateClass([
|
|
8321
|
-
(0,
|
|
8248
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
|
|
8322
8249
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8323
8250
|
__decorateClass([
|
|
8324
|
-
(0,
|
|
8251
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
|
|
8325
8252
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8326
8253
|
__decorateClass([
|
|
8327
|
-
(0,
|
|
8254
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8328
8255
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8329
8256
|
__decorateClass([
|
|
8330
|
-
(0,
|
|
8257
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8331
8258
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8332
8259
|
__decorateClass([
|
|
8333
|
-
(0,
|
|
8260
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
|
|
8334
8261
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8335
8262
|
__decorateClass([
|
|
8336
|
-
(0,
|
|
8263
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8337
8264
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8338
8265
|
__decorateClass([
|
|
8339
|
-
(0,
|
|
8266
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
|
|
8340
8267
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8341
8268
|
__decorateClass([
|
|
8342
|
-
(0,
|
|
8269
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
|
|
8343
8270
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8344
8271
|
__decorateClass([
|
|
8345
|
-
(0,
|
|
8272
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills" })
|
|
8346
8273
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8347
8274
|
__decorateClass([
|
|
8348
|
-
(0,
|
|
8275
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
|
|
8349
8276
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8350
8277
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8351
|
-
(0,
|
|
8278
|
+
(0, import_typeorm73.ViewEntity)({
|
|
8352
8279
|
name: "client_freelancer_recommendations",
|
|
8353
8280
|
materialized: true,
|
|
8354
8281
|
synchronize: false
|
|
@@ -8357,7 +8284,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8357
8284
|
], ClientFreelancerRecommendation);
|
|
8358
8285
|
|
|
8359
8286
|
// src/entities/commission.entity.ts
|
|
8360
|
-
var
|
|
8287
|
+
var import_typeorm74 = require("typeorm");
|
|
8361
8288
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8362
8289
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8363
8290
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8366,7 +8293,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8366
8293
|
var Commission = class extends BaseEntity {
|
|
8367
8294
|
};
|
|
8368
8295
|
__decorateClass([
|
|
8369
|
-
(0,
|
|
8296
|
+
(0, import_typeorm74.Column)({
|
|
8370
8297
|
name: "freelancer_commission_type",
|
|
8371
8298
|
type: "enum",
|
|
8372
8299
|
enum: CommissionTypeEnum,
|
|
@@ -8374,10 +8301,10 @@ __decorateClass([
|
|
|
8374
8301
|
})
|
|
8375
8302
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8376
8303
|
__decorateClass([
|
|
8377
|
-
(0,
|
|
8304
|
+
(0, import_typeorm74.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8378
8305
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8379
8306
|
__decorateClass([
|
|
8380
|
-
(0,
|
|
8307
|
+
(0, import_typeorm74.Column)({
|
|
8381
8308
|
name: "client_commission_type",
|
|
8382
8309
|
type: "enum",
|
|
8383
8310
|
enum: CommissionTypeEnum,
|
|
@@ -8385,93 +8312,93 @@ __decorateClass([
|
|
|
8385
8312
|
})
|
|
8386
8313
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8387
8314
|
__decorateClass([
|
|
8388
|
-
(0,
|
|
8315
|
+
(0, import_typeorm74.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8389
8316
|
], Commission.prototype, "clientCommission", 2);
|
|
8390
8317
|
Commission = __decorateClass([
|
|
8391
|
-
(0,
|
|
8318
|
+
(0, import_typeorm74.Entity)("commissions")
|
|
8392
8319
|
], Commission);
|
|
8393
8320
|
|
|
8394
8321
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8395
|
-
var
|
|
8322
|
+
var import_typeorm75 = require("typeorm");
|
|
8396
8323
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8397
8324
|
};
|
|
8398
8325
|
__decorateClass([
|
|
8399
|
-
(0,
|
|
8400
|
-
(0,
|
|
8326
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8327
|
+
(0, import_typeorm75.Index)()
|
|
8401
8328
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8402
8329
|
__decorateClass([
|
|
8403
|
-
(0,
|
|
8330
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8404
8331
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8405
8332
|
__decorateClass([
|
|
8406
|
-
(0,
|
|
8333
|
+
(0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8407
8334
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8408
8335
|
CalendlyMeetingLog = __decorateClass([
|
|
8409
|
-
(0,
|
|
8336
|
+
(0, import_typeorm75.Entity)("calendly_meeting_logs")
|
|
8410
8337
|
], CalendlyMeetingLog);
|
|
8411
8338
|
|
|
8412
8339
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8413
|
-
var
|
|
8340
|
+
var import_typeorm76 = require("typeorm");
|
|
8414
8341
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8415
8342
|
};
|
|
8416
8343
|
__decorateClass([
|
|
8417
|
-
(0,
|
|
8418
|
-
(0,
|
|
8344
|
+
(0, import_typeorm76.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8345
|
+
(0, import_typeorm76.Index)()
|
|
8419
8346
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8420
8347
|
__decorateClass([
|
|
8421
|
-
(0,
|
|
8348
|
+
(0, import_typeorm76.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8422
8349
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8423
8350
|
__decorateClass([
|
|
8424
|
-
(0,
|
|
8351
|
+
(0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8425
8352
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8426
8353
|
ZoomMeetingLog = __decorateClass([
|
|
8427
|
-
(0,
|
|
8354
|
+
(0, import_typeorm76.Entity)("zoom_meeting_logs")
|
|
8428
8355
|
], ZoomMeetingLog);
|
|
8429
8356
|
|
|
8430
8357
|
// src/entities/stripe-logs.entity.ts
|
|
8431
|
-
var
|
|
8358
|
+
var import_typeorm77 = require("typeorm");
|
|
8432
8359
|
var StripeLog = class extends BaseEntity {
|
|
8433
8360
|
};
|
|
8434
8361
|
__decorateClass([
|
|
8435
|
-
(0,
|
|
8362
|
+
(0, import_typeorm77.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8436
8363
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8437
8364
|
__decorateClass([
|
|
8438
|
-
(0,
|
|
8365
|
+
(0, import_typeorm77.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8439
8366
|
], StripeLog.prototype, "eventType", 2);
|
|
8440
8367
|
__decorateClass([
|
|
8441
|
-
(0,
|
|
8368
|
+
(0, import_typeorm77.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8442
8369
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8443
8370
|
__decorateClass([
|
|
8444
|
-
(0,
|
|
8371
|
+
(0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8445
8372
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8446
8373
|
StripeLog = __decorateClass([
|
|
8447
|
-
(0,
|
|
8374
|
+
(0, import_typeorm77.Entity)("stripe_logs")
|
|
8448
8375
|
], StripeLog);
|
|
8449
8376
|
|
|
8450
8377
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8451
|
-
var
|
|
8378
|
+
var import_typeorm78 = require("typeorm");
|
|
8452
8379
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8453
8380
|
};
|
|
8454
8381
|
__decorateClass([
|
|
8455
|
-
(0,
|
|
8382
|
+
(0, import_typeorm78.Column)({
|
|
8456
8383
|
type: "varchar",
|
|
8457
8384
|
length: 100,
|
|
8458
8385
|
unique: true,
|
|
8459
8386
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8460
8387
|
}),
|
|
8461
|
-
(0,
|
|
8388
|
+
(0, import_typeorm78.Index)()
|
|
8462
8389
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8463
8390
|
__decorateClass([
|
|
8464
|
-
(0,
|
|
8391
|
+
(0, import_typeorm78.Column)({
|
|
8465
8392
|
type: "jsonb",
|
|
8466
8393
|
comment: "JSON object containing weight values",
|
|
8467
8394
|
nullable: true
|
|
8468
8395
|
})
|
|
8469
8396
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8470
8397
|
__decorateClass([
|
|
8471
|
-
(0,
|
|
8398
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8472
8399
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8473
8400
|
RecommendationWeightageConfig = __decorateClass([
|
|
8474
|
-
(0,
|
|
8401
|
+
(0, import_typeorm78.Entity)("recommendation_weightage_configs")
|
|
8475
8402
|
], RecommendationWeightageConfig);
|
|
8476
8403
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8477
8404
|
0 && (module.exports = {
|
|
@@ -8539,10 +8466,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8539
8466
|
CompanyRolePermission,
|
|
8540
8467
|
CompanySkill,
|
|
8541
8468
|
Contract,
|
|
8542
|
-
ContractHistory,
|
|
8543
|
-
ContractHistoryActionEnum,
|
|
8544
|
-
ContractHistoryStatusEnum,
|
|
8545
|
-
ContractHistoryTypeEnum,
|
|
8546
8469
|
ContractRMQAdapter,
|
|
8547
8470
|
ContractStatusEnum,
|
|
8548
8471
|
ContractTCPAdapter,
|
|
@@ -8770,5 +8693,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8770
8693
|
WalletTransaction,
|
|
8771
8694
|
WalletTransactionStatusEnum,
|
|
8772
8695
|
WalletTransactionTypeEnum,
|
|
8773
|
-
ZoomMeetingLog
|
|
8696
|
+
ZoomMeetingLog,
|
|
8697
|
+
typeOfExperienceEnum
|
|
8774
8698
|
});
|